(function(){"use strict";(()=>{function Fr(jt){if(typeof wp_dark_mode_json>"u")return!1;if(jt&&jt.classList&&jt.classList.contains("wp-dark-mode-ignore"))return!0;const Vt=".wp-dark-mode-ignore"+(wp_dark_mode_json.excluded_elements?", "+wp_dark_mode_json.excluded_elements:"");try{const It=document.querySelectorAll(Vt);for(const _t of It)if(_t&&_t.classList.add("wp-dark-mode-ignore"),_t==jt||_t.contains(jt))return!0}catch{}return!1}var No={35:function(jt,Vt){var It,_t,Ir,Wr,Dn;function qr(x,T){var M=Object.keys(x);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(x);T&&(U=U.filter((function(J){return Object.getOwnPropertyDescriptor(x,J).enumerable}))),M.push.apply(M,U)}return M}function tt(x){for(var T=1;T<arguments.length;T++){var M=arguments[T]!=null?arguments[T]:{};T%2?qr(Object(M),!0).forEach((function(U){Fo(x,U,M[U])})):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(M)):qr(Object(M)).forEach((function(U){Object.defineProperty(x,U,Object.getOwnPropertyDescriptor(M,U))}))}return x}function Fo(x,T,M){return(T=Br(T))in x?Object.defineProperty(x,T,{value:M,enumerable:!0,configurable:!0,writable:!0}):x[T]=M,x}function Qe(x,T){if(!(x instanceof T))throw new TypeError("Cannot call a class as a function")}function jo(x,T){for(var M=0;M<T.length;M++){var U=T[M];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(x,Br(U.key),U)}}function Ke(x,T,M){return T&&jo(x.prototype,T),Object.defineProperty(x,"prototype",{writable:!1}),x}function Br(x){var T=(function(M,U){if(Ot(M)!="object"||!M)return M;var J=M[Symbol.toPrimitive];if(J!==void 0){var st=J.call(M,U);if(Ot(st)!="object")return st;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(x,"string");return Ot(T)=="symbol"?T:String(T)}function pt(x,T){return(function(M){if(Array.isArray(M))return M})(x)||(function(M,U){var J=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(J!=null){var st,ut,mt,rt,lt=[],Tt=!0,vt=!1;try{if(mt=(J=J.call(M)).next,U===0){if(Object(J)!==J)return;Tt=!1}else for(;!(Tt=(st=mt.call(J)).done)&&(lt.push(st.value),lt.length!==U);Tt=!0);}catch(te){vt=!0,ut=te}finally{try{if(!Tt&&J.return!=null&&(rt=J.return(),Object(rt)!==rt))return}finally{if(vt)throw ut}}return lt}})(x,T)||Nn(x,T)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function kt(x){return(function(T){if(Array.isArray(T))return Fn(T)})(x)||(function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)})(x)||Nn(x)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Wt(x,T){var M=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!M){if(Array.isArray(x)||(M=Nn(x))||T){M&&(x=M);var U=0,J=function(){};return{s:J,n:function(){return U>=x.length?{done:!0}:{done:!1,value:x[U++]}},e:function(rt){throw rt},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var st,ut=!0,mt=!1;return{s:function(){M=M.call(x)},n:function(){var rt=M.next();return ut=rt.done,rt},e:function(rt){mt=!0,st=rt},f:function(){try{ut||M.return==null||M.return()}finally{if(mt)throw st}}}}function Nn(x,T){if(x){if(typeof x=="string")return Fn(x,T);var M=Object.prototype.toString.call(x).slice(8,-1);return M==="Object"&&x.constructor&&(M=x.constructor.name),M==="Map"||M==="Set"?Array.from(x):M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M)?Fn(x,T):void 0}}function Fn(x,T){(T==null||T>x.length)&&(T=x.length);for(var M=0,U=new Array(T);M<T;M++)U[M]=x[M];return U}function j(){j=function(){return T};var x,T={},M=Object.prototype,U=M.hasOwnProperty,J=Object.defineProperty||function(S,y,_){S[y]=_.value},st=typeof Symbol=="function"?Symbol:{},ut=st.iterator||"@@iterator",mt=st.asyncIterator||"@@asyncIterator",rt=st.toStringTag||"@@toStringTag";function lt(S,y,_){return Object.defineProperty(S,y,{value:_,enumerable:!0,configurable:!0,writable:!0}),S[y]}try{lt({},"")}catch{lt=function(y,_,H){return y[_]=H}}function Tt(S,y,_,H){var N=y&&y.prototype instanceof Ce?y:Ce,X=Object.create(N.prototype),at=new de(H||[]);return J(X,"_invoke",{value:Xe(S,_,at)}),X}function vt(S,y,_){try{return{type:"normal",arg:S.call(y,_)}}catch(H){return{type:"throw",arg:H}}}T.wrap=Tt;var te="suspendedStart",Ye="suspendedYield",qt="executing",Bt="completed",Ct={};function Ce(){}function zt(){}function Pt(){}var se={};lt(se,ut,(function(){return this}));var Ae=Object.getPrototypeOf,ee=Ae&&Ae(Ae(Te([])));ee&&ee!==M&&U.call(ee,ut)&&(se=ee);var Dt=Pt.prototype=Ce.prototype=Object.create(se);function Re(S){["next","throw","return"].forEach((function(y){lt(S,y,(function(_){return this._invoke(y,_)}))}))}function ne(S,y){function _(N,X,at,dt){var gt=vt(S[N],S,X);if(gt.type!=="throw"){var Nt=gt.arg,Qt=Nt.value;return Qt&&Ot(Qt)=="object"&&U.call(Qt,"__await")?y.resolve(Qt.__await).then((function(Ut){_("next",Ut,at,dt)}),(function(Ut){_("throw",Ut,at,dt)})):y.resolve(Qt).then((function(Ut){Nt.value=Ut,at(Nt)}),(function(Ut){return _("throw",Ut,at,dt)}))}dt(gt.arg)}var H;J(this,"_invoke",{value:function(N,X){function at(){return new y((function(dt,gt){_(N,X,dt,gt)}))}return H=H?H.then(at,at):at()}})}function Xe(S,y,_){var H=te;return function(N,X){if(H===qt)throw new Error("Generator is already running");if(H===Bt){if(N==="throw")throw X;return{value:x,done:!0}}for(_.method=N,_.arg=X;;){var at=_.delegate;if(at){var dt=Je(at,_);if(dt){if(dt===Ct)continue;return dt}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(H===te)throw H=Bt,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);H=qt;var gt=vt(S,y,_);if(gt.type==="normal"){if(H=_.done?Bt:Ye,gt.arg===Ct)continue;return{value:gt.arg,done:_.done}}gt.type==="throw"&&(H=Bt,_.method="throw",_.arg=gt.arg)}}}function Je(S,y){var _=y.method,H=S.iterator[_];if(H===x)return y.delegate=null,_==="throw"&&S.iterator.return&&(y.method="return",y.arg=x,Je(S,y),y.method==="throw")||_!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+_+"' method")),Ct;var N=vt(H,S.iterator,y.arg);if(N.type==="throw")return y.method="throw",y.arg=N.arg,y.delegate=null,Ct;var X=N.arg;return X?X.done?(y[S.resultName]=X.value,y.next=S.nextLoc,y.method!=="return"&&(y.method="next",y.arg=x),y.delegate=null,Ct):X:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,Ct)}function Ze(S){var y={tryLoc:S[0]};1 in S&&(y.catchLoc=S[1]),2 in S&&(y.finallyLoc=S[2],y.afterLoc=S[3]),this.tryEntries.push(y)}function le(S){var y=S.completion||{};y.type="normal",delete y.arg,S.completion=y}function de(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(Ze,this),this.reset(!0)}function Te(S){if(S||S===""){var y=S[ut];if(y)return y.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var _=-1,H=function N(){for(;++_<S.length;)if(U.call(S,_))return N.value=S[_],N.done=!1,N;return N.value=x,N.done=!0,N};return H.next=H}}throw new TypeError(Ot(S)+" is not iterable")}return zt.prototype=Pt,J(Dt,"constructor",{value:Pt,configurable:!0}),J(Pt,"constructor",{value:zt,configurable:!0}),zt.displayName=lt(Pt,rt,"GeneratorFunction"),T.isGeneratorFunction=function(S){var y=typeof S=="function"&&S.constructor;return!!y&&(y===zt||(y.displayName||y.name)==="GeneratorFunction")},T.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,Pt):(S.__proto__=Pt,lt(S,rt,"GeneratorFunction")),S.prototype=Object.create(Dt),S},T.awrap=function(S){return{__await:S}},Re(ne.prototype),lt(ne.prototype,mt,(function(){return this})),T.AsyncIterator=ne,T.async=function(S,y,_,H,N){N===void 0&&(N=Promise);var X=new ne(Tt(S,y,_,H),N);return T.isGeneratorFunction(y)?X:X.next().then((function(at){return at.done?at.value:X.next()}))},Re(Dt),lt(Dt,rt,"Generator"),lt(Dt,ut,(function(){return this})),lt(Dt,"toString",(function(){return"[object Generator]"})),T.keys=function(S){var y=Object(S),_=[];for(var H in y)_.push(H);return _.reverse(),function N(){for(;_.length;){var X=_.pop();if(X in y)return N.value=X,N.done=!1,N}return N.done=!0,N}},T.values=Te,de.prototype={constructor:de,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(le),!S)for(var y in this)y.charAt(0)==="t"&&U.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=x)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if(S.type==="throw")throw S.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var y=this;function _(gt,Nt){return X.type="throw",X.arg=S,y.next=gt,Nt&&(y.method="next",y.arg=x),!!Nt}for(var H=this.tryEntries.length-1;H>=0;--H){var N=this.tryEntries[H],X=N.completion;if(N.tryLoc==="root")return _("end");if(N.tryLoc<=this.prev){var at=U.call(N,"catchLoc"),dt=U.call(N,"finallyLoc");if(at&&dt){if(this.prev<N.catchLoc)return _(N.catchLoc,!0);if(this.prev<N.finallyLoc)return _(N.finallyLoc)}else if(at){if(this.prev<N.catchLoc)return _(N.catchLoc,!0)}else{if(!dt)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return _(N.finallyLoc)}}}},abrupt:function(S,y){for(var _=this.tryEntries.length-1;_>=0;--_){var H=this.tryEntries[_];if(H.tryLoc<=this.prev&&U.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var N=H;break}}N&&(S==="break"||S==="continue")&&N.tryLoc<=y&&y<=N.finallyLoc&&(N=null);var X=N?N.completion:{};return X.type=S,X.arg=y,N?(this.method="next",this.next=N.finallyLoc,Ct):this.complete(X)},complete:function(S,y){if(S.type==="throw")throw S.arg;return S.type==="break"||S.type==="continue"?this.next=S.arg:S.type==="return"?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):S.type==="normal"&&y&&(this.next=y),Ct},finish:function(S){for(var y=this.tryEntries.length-1;y>=0;--y){var _=this.tryEntries[y];if(_.finallyLoc===S)return this.complete(_.completion,_.afterLoc),le(_),Ct}},catch:function(S){for(var y=this.tryEntries.length-1;y>=0;--y){var _=this.tryEntries[y];if(_.tryLoc===S){var H=_.completion;if(H.type==="throw"){var N=H.arg;le(_)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(S,y,_){return this.delegate={iterator:Te(S),resultName:y,nextLoc:_},this.method==="next"&&(this.arg=x),Ct}},T}function Ur(x,T,M,U,J,st,ut){try{var mt=x[st](ut),rt=mt.value}catch(lt){return void M(lt)}mt.done?T(rt):Promise.resolve(rt).then(U,J)}function et(x){return function(){var T=this,M=arguments;return new Promise((function(U,J){var st=x.apply(T,M);function ut(rt){Ur(st,U,J,ut,mt,"next",rt)}function mt(rt){Ur(st,U,J,ut,mt,"throw",rt)}ut(void 0)}))}}function Ot(x){return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},Ot(x)}Wr=this,Dn=function(x){var T,M,U,J,st,ut,mt,rt,lt;(function(t){t.GET_DATA="ui-bg-get-data",t.GET_DEVTOOLS_DATA="ui-bg-get-devtools-data",t.SUBSCRIBE_TO_CHANGES="ui-bg-subscribe-to-changes",t.UNSUBSCRIBE_FROM_CHANGES="ui-bg-unsubscribe-from-changes",t.CHANGE_SETTINGS="ui-bg-change-settings",t.SET_THEME="ui-bg-set-theme",t.TOGGLE_ACTIVE_TAB="ui-bg-toggle-active-tab",t.MARK_NEWS_AS_READ="ui-bg-mark-news-as-read",t.MARK_NEWS_AS_DISPLAYED="ui-bg-mark-news-as-displayed",t.LOAD_CONFIG="ui-bg-load-config",t.APPLY_DEV_DYNAMIC_THEME_FIXES="ui-bg-apply-dev-dynamic-theme-fixes",t.RESET_DEV_DYNAMIC_THEME_FIXES="ui-bg-reset-dev-dynamic-theme-fixes",t.APPLY_DEV_INVERSION_FIXES="ui-bg-apply-dev-inversion-fixes",t.RESET_DEV_INVERSION_FIXES="ui-bg-reset-dev-inversion-fixes",t.APPLY_DEV_STATIC_THEMES="ui-bg-apply-dev-static-themes",t.RESET_DEV_STATIC_THEMES="ui-bg-reset-dev-static-themes",t.COLOR_SCHEME_CHANGE="ui-bg-color-scheme-change",t.HIDE_HIGHLIGHTS="ui-bg-hide-highlights"})(T||(T={})),(function(t){t.CHANGES="bg-ui-changes"})(M||(M={})),(function(t){t.CSS_UPDATE="debug-bg-ui-css-update",t.UPDATE="debug-bg-ui-update"})(U||(U={})),(function(t){t.ADD_CSS_FILTER="bg-cs-add-css-filter",t.ADD_DYNAMIC_THEME="bg-cs-add-dynamic-theme",t.ADD_STATIC_THEME="bg-cs-add-static-theme",t.ADD_SVG_FILTER="bg-cs-add-svg-filter",t.CLEAN_UP="bg-cs-clean-up",t.FETCH_RESPONSE="bg-cs-fetch-response",t.UNSUPPORTED_SENDER="bg-cs-unsupported-sender"})(J||(J={})),(function(t){t.RELOAD="debug-bg-cs-reload"})(st||(st={})),(function(t){t.COLOR_SCHEME_CHANGE="cs-bg-color-scheme-change",t.DARK_THEME_DETECTED="cs-bg-dark-theme-detected",t.DARK_THEME_NOT_DETECTED="cs-bg-dark-theme-not-detected",t.FETCH="cs-bg-fetch",t.DOCUMENT_CONNECT="cs-bg-document-connect",t.DOCUMENT_FORGET="cs-bg-document-forget",t.DOCUMENT_FREEZE="cs-bg-document-freeze",t.DOCUMENT_RESUME="cs-bg-document-resume"})(ut||(ut={})),(function(t){t.LOG="debug-cs-bg-log"})(mt||(mt={})),(function(t){t.EXPORT_CSS_RESPONSE="cs-ui-export-css-response"})(rt||(rt={})),(function(t){t.EXPORT_CSS="ui-cs-export-css"})(lt||(lt={}));var Tt=typeof navigator<"u",vt=Tt?navigator.userAgentData&&Array.isArray(navigator.userAgentData.brands)?navigator.userAgentData.brands.map((function(t){return"".concat(t.brand.toLowerCase()," ").concat(t.version)})).join(" "):navigator.userAgent.toLowerCase():"some useragent",te=Tt?navigator.userAgentData&&typeof navigator.userAgentData.platform=="string"?navigator.userAgentData.platform.toLowerCase():navigator.platform.toLowerCase():"some platform",Ye=vt.includes("chrome")||vt.includes("chromium"),qt=vt.includes("firefox")||vt.includes("thunderbird")||vt.includes("librewolf"),Bt=vt.includes("safari")&&!Ye,Ct=te.startsWith("win"),Ce=te.startsWith("mac");Tt&&navigator.userAgentData?navigator.userAgentData.mobile:vt.includes("mobile");var zt,Pt=typeof ShadowRoot=="function",se=typeof MediaQueryList=="function"&&typeof MediaQueryList.prototype.addEventListener=="function";(zt=vt.match(/chrom(?:e|ium)(?:\/|)([^ ]+)/))&&zt[1]&&zt[1],(function(){var t=vt.match(/(?:firefox|librewolf)(?:\/|)([^ ]+)/);t&&t[1]&&t[1]})();var Ae=(function(){try{return document.querySelector(":defined"),!0}catch{return!1}})(),ee=(function(){try{if(typeof document>"u")return!1;var t=document.createElement("div");return!(!t||Ot(t.style)!=="object"||typeof t.style.colorScheme!="string"&&(t.setAttribute("style","color-scheme: dark"),t.style.colorScheme!=="dark"))}catch{return!1}})();function Dt(t,e,n){return Re.apply(this,arguments)}function Re(){return(Re=et(j().mark((function t(e,n,r){var a;return j().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,fetch(e,{cache:"force-cache",credentials:"omit",referrer:r});case 2:if(a=o.sent,!(qt&&n==="text/css"&&e.startsWith("moz-extension://")&&e.endsWith(".css"))){o.next=5;break}return o.abrupt("return",a);case 5:if(!n||a.headers.get("Content-Type").startsWith(n)){o.next=7;break}throw new Error("Mime type mismatch when loading ".concat(e));case 7:if(a.ok){o.next=9;break}throw new Error("Unable to load ".concat(e," ").concat(a.status," ").concat(a.statusText));case 9:return o.abrupt("return",a);case 10:case"end":return o.stop()}}),t)})))).apply(this,arguments)}function ne(t,e){return Xe.apply(this,arguments)}function Xe(){return(Xe=et(j().mark((function t(e,n){var r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Dt(e,n);case 2:return r=a.sent,a.next=5,le(r);case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}}),t)})))).apply(this,arguments)}function Je(t,e){return Ze.apply(this,arguments)}function Ze(){return(Ze=et(j().mark((function t(e,n){var r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Dt(e,n);case 2:return r=a.sent,a.next=5,r.blob();case 5:return a.abrupt("return",a.sent);case 6:case"end":return a.stop()}}),t)})))).apply(this,arguments)}function le(t){return de.apply(this,arguments)}function de(){return(de=et(j().mark((function t(e){var n,r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e.blob();case 2:return n=a.sent,a.next=5,new Promise((function(o){var i=new FileReader;i.onloadend=function(){return o(i.result)},i.readAsDataURL(n)}));case 5:return r=a.sent,a.abrupt("return",r);case 7:case"end":return a.stop()}}),t)})))).apply(this,arguments)}function Te(t,e,n){return S.apply(this,arguments)}function S(){return(S=et(j().mark((function t(e,n,r){var a;return j().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Dt(e,n,r);case 2:return a=o.sent,o.next=5,a.text();case 5:return o.abrupt("return",o.sent);case 6:case"end":return o.stop()}}),t)})))).apply(this,arguments)}var y=(function(){var t=et(j().mark((function e(n){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",null);case 1:case"end":return r.stop()}}),e)})));return function(e){return t.apply(this,arguments)}})(),_=y;function H(t){return N.apply(this,arguments)}function N(){return(N=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),t)})))).apply(this,arguments)}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var X,at,dt=new Set;function gt(){return Nt.apply(this,arguments)}function Nt(){return Nt=et(j().mark((function t(){var e,n,r,a,o,i,u,d,s,f=arguments;return j().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:for(e=f.length,n=new Array(e),r=0;r<e;r++)n[r]=f[r];if(!n[0]||n[0].type!==ut.FETCH){l.next=23;break}return a=n[0].id,l.prev=3,o=n[0].data,i=o.url,u=o.responseType,l.next=7,H(i);case 7:if(d=l.sent,u!=="data-url"){l.next=14;break}return l.next=11,le(d);case 11:s=l.sent,l.next=17;break;case 14:return l.next=16,d.text();case 16:s=l.sent;case 17:dt.forEach((function(c){return c({type:J.FETCH_RESPONSE,data:s,error:null,id:a})})),l.next=23;break;case 20:l.prev=20,l.t0=l.catch(3),dt.forEach((function(c){return c({type:J.FETCH_RESPONSE,data:null,error:l.t0,id:a})}));case 23:case"end":return l.stop()}}),t,null,[[3,20]])}))),Nt.apply(this,arguments)}function Qt(t){dt.add(t)}if(typeof chrome.runtime.sendMessage=="function"){var Ut=chrome.runtime.sendMessage;chrome.runtime.sendMessage=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];gt.apply(void 0,e),Ut.apply(chrome.runtime,e)}}else chrome.runtime.sendMessage=gt;if(chrome.runtime.onMessage||(chrome.runtime.onMessage={}),typeof chrome.runtime.onMessage.addListener=="function"){var Io=chrome.runtime.onMessage.addListener;chrome.runtime.onMessage.addListener=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Qt(e[0]),Io.apply(chrome.runtime.onMessage,e)}}else chrome.runtime.onMessage.addListener=function(){return Qt(arguments.length<=0?void 0:arguments[0])};(function(t){t.cssFilter="cssFilter",t.svgFilter="svgFilter",t.staticTheme="staticTheme",t.dynamicTheme="dynamicTheme"})(X||(X={})),(function(t){t.NONE="",t.TIME="time",t.SYSTEM="system",t.LOCATION="location"})(at||(at={}));var Hr={background:"#181a1b",text:"#e8e6e3"},Gr={background:"#dcdad7",text:"#181a1b"},Wo={mode:1,brightness:100,contrast:100,grayscale:0,sepia:0,useFont:!1,fontFamily:Ce?"Helvetica Neue":Ct?"Segoe UI":"Open Sans",textStroke:0,engine:X.dynamicTheme,stylesheet:"",darkSchemeBackgroundColor:Hr.background,darkSchemeTextColor:Hr.text,lightSchemeBackgroundColor:Gr.background,lightSchemeTextColor:Gr.text,scrollbarColor:null,selectionColor:"auto",styleSystemControls:!ee,lightColorScheme:"Default",darkColorScheme:"Default",immediateModify:!0,excludes:".wp-dark-mode-ignore"};function Et(t,e){if((function(i){return i.length!=null})(t))for(var n=0,r=t.length;n<r;n++)e(t[n]);else{var a,o=Wt(t);try{for(o.s();!(a=o.n()).done;)e(a.value)}catch(i){o.e(i)}finally{o.f()}}}function jn(t,e){Et(e,(function(n){return t.push(n)}))}function In(t){var e,n=!1,r=null;return Object.assign((function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];e=o,r?n=!0:(t.apply(void 0,kt(e)),r=requestAnimationFrame((function(){r=null,n&&(t.apply(void 0,kt(e)),n=!1)})))}),{cancel:function(){cancelAnimationFrame(r),n=!1,r=null}})}at.NONE;var Wn=new Set;function $r(t,e){Wn.has(t)||(Wn.add(t),requestAnimationFrame((function(){Wn.delete(t),e()})))}function tn(t){var e=0;return t.seconds&&(e+=1e3*t.seconds),t.minutes&&(e+=60*t.minutes*1e3),t.hours&&(e+=60*t.hours*60*1e3),t.days&&(e+=24*t.days*60*60*1e3),e}function bt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function qn(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Function.prototype,r=tn({seconds:2}),a=tn({seconds:10}),o=t.previousSibling,i=t.parentNode;if(!i)throw new Error("Unable to watch for node position: parent element not found");if(e==="prev-sibling"&&!o)throw new Error("Unable to watch for node position: there is no previous sibling");var u=0,d=null,s=null,f=In((function(){if(!s){u++;var h=Date.now();if(d==null)d=h;else if(u>=10){if(h-d<a)return void(s=setTimeout((function(){d=null,u=0,s=null,f()}),r));d=h,u=1}if(e==="head"&&o&&o.parentNode!==i)m();else{if(e==="prev-sibling"){if(o.parentNode==null)return void m();o.parentNode!==i&&p(o.parentNode)}e!=="head"||i.isConnected||(i=document.head),i.insertBefore(t,o&&o.isConnected?o.nextSibling:i.firstChild),l.takeRecords(),n&&n()}}})),l=new MutationObserver((function(){(e==="head"&&(t.parentNode!==i||!t.parentNode.isConnected)||e==="prev-sibling"&&t.previousSibling!==o)&&f()})),c=function(){l.observe(i,{childList:!0})},m=function(){clearTimeout(s),l.disconnect(),f.cancel()},p=function(h){i=h,m(),c()};return c(),{run:c,stop:m,skip:function(){l.takeRecords()}}}function fe(t,e){if(t!=null)for(var n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(a){return a.shadowRoot==null?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}}),r=t.shadowRoot?n.currentNode:n.nextNode();r!=null;r=n.nextNode())r.classList.contains("surfingkeys_hints_host")||(e(r),fe(r.shadowRoot,e))}var re=function(){return document.readyState==="complete"||document.readyState==="interactive"},en=new Set;function zr(t){re()?t():en.add(t)}function Qr(t){en.delete(t)}function nn(){return document.readyState==="complete"}var rn=new Set;function Bn(t){nn()?t():rn.add(t)}re()||document.addEventListener("readystatechange",(function t(){re()&&(en.forEach((function(e){return e()})),en.clear(),nn()&&(document.removeEventListener("readystatechange",t),rn.forEach((function(e){return e()})),rn.clear()))}));var an,Kr=1e3,on=new Map,Un=new WeakMap;function Yr(t,e){var n,r,a;if(on.has(t))n=on.get(t),r=Un.get(n);else{var o=!1,i=!1;n=new MutationObserver((function(u){if((function(s){if(s.length>Kr)return!0;for(var f=0,l=0;l<s.length;l++)if((f+=s[l].addedNodes.length)>Kr)return!0;return!1})(u))!o||re()?r.forEach((function(s){return(0,s.onHugeMutations)(t)})):i||(zr(a=function(){return r.forEach((function(s){return(0,s.onHugeMutations)(t)}))}),i=!0),o=!0;else{var d=(function(s){var f=new Set,l=new Set,c=new Set;s.forEach((function(h){Et(h.addedNodes,(function(v){v instanceof Element&&v.isConnected&&f.add(v)})),Et(h.removedNodes,(function(v){v instanceof Element&&(v.isConnected?(c.add(v),f.delete(v)):l.add(v))}))}));var m=[],p=[];return f.forEach((function(h){f.has(h.parentElement)&&m.push(h)})),l.forEach((function(h){l.has(h.parentElement)&&p.push(h)})),m.forEach((function(h){return f.delete(h)})),p.forEach((function(h){return l.delete(h)})),{additions:f,moves:c,deletions:l}})(u);r.forEach((function(s){return(0,s.onMinorMutations)(t,d)}))}})),n.observe(t,{childList:!0,subtree:!0}),on.set(t,n),r=new Set,Un.set(n,r)}return r.add(e),{disconnect:function(){r.delete(e),a&&Qr(a),r.size===0&&(n.disconnect(),Un.delete(n),on.delete(t))}}}function Le(t,e){for(var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=[];n=t.exec(e);)a.push(n[r]);return a}function Xr(t){for(var e=t.length,n=0,r=0;r<e;r++)n=(n<<5)-n+t.charCodeAt(r)&4294967295;return n}function Hn(t){return Jr(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,"(",")",[])}function Jr(t,e,n,r,a){var o;o=a.length===0?function(m,p){return t.indexOf(m,p)}:function(m,p){return Gn(t,m,p,a)};for(var i=t.length,u=0,d=-1,s=e;s<i;s++)if(u===0){var f=o(n,s);if(f<0)break;d=f,u++,s=f}else{var l=o(r,s);if(l<0)break;var c=o(n,s);if(c<0||l<=c){if(--u==0)return{start:d,end:l+1};s=l}else u++,s=c}return null}function Gn(t,e,n,r){var a=t.indexOf(e,n),o=r.find((function(i){return a>=i.start&&a<i.end}));return o?Gn(t,e,o.end,r):a}function Zr(t,e,n){for(var r=[],a=-1,o=0;(a=Gn(t,e,o,n))>=0;)r.push(t.substring(o,a).trim()),o=a+1;return r.push(t.substring(o).trim()),r}var Me=new Map;function ta(t){return an||(an=document.createElement("a")),an.href=t,an.href}function un(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n="".concat(t).concat(e?";".concat(e):"");if(Me.has(n))return Me.get(n);if(e){var r=new URL(t,ta(e));return Me.set(n,r),r}var a=new URL(ta(t));return Me.set(t,a),a}function cn(t,e){if(e.match(/^data\\?\:/))return e;if(/^\/\//.test(e))return"".concat(location.protocol).concat(e);var n=un(t);return un(e,n.href).href}function ae(t,e,n){Et(t,(function(r){if(sa(r))e(r);else if((function(u){return!!u&&!pe.has(u)&&(!!oa.has(u)||!!u.href&&(oa.add(u),!0))})(r))try{ae(r.styleSheet.cssRules,e,n)}catch{n==null||n()}else if(zn(r)){var a=Array.from(r.media),o=a.some((function(u){return u.startsWith("screen")||u.startsWith("all")||u.startsWith("(")})),i=a.some((function(u){return u.startsWith("print")||u.startsWith("speech")}));!o&&i||ae(r.cssRules,e,n)}else(function(u){return!!u&&!pe.has(u)&&(!!ua.has(u)||u instanceof CSSSupportsRule&&(ua.add(u),!0))})(r)?CSS.supports(r.conditionText)&&ae(r.cssRules,e,n):la(r)&&ae(r.cssRules,e,n)}))}var ea=["background","border","border-color","border-bottom","border-left","border-right","border-top","outline","outline-color"],qo=Bt?ea.map((function(t){return[t,new RegExp("".concat(t,":\\s*(.*?)\\s*;"))]})):null;function he(t,e){Et(t,(function(r){var a=t.getPropertyValue(r).trim();a&&e(r,a)}));var n=t.cssText;n.includes("var(")&&(Bt?qo.forEach((function(r){var a=pt(r,2),o=a[0],i=a[1],u=n.match(i);if(u&&u[1]){var d=u[1].trim();e(o,d)}})):ea.forEach((function(r){var a=t.getPropertyValue(r);a&&a.includes("var(")&&e(r,a)}))),n.includes("background-color: ;")&&!t.getPropertyValue("background")&&na("background",t,e),n.includes("border-")&&n.includes("-color: ;")&&!t.getPropertyValue("border")&&na("border",t,e)}function na(t,e,n){var r=e.parentRule;if(sa(r)){var a,o=(a=r.parentStyleSheet)===null||a===void 0||(a=a.ownerNode)===null||a===void 0?void 0:a.textContent;if(o){var i=r.selectorText.replaceAll(/[\^$.*+?\(\)\[\]{}|\-\\]/g,"\\$&");i=(i=i.replaceAll(/\s+/g,"\\s*")).replaceAll(/::/g,"::?");var u=new RegExp("".concat(i,"\\s*{[^}]*?").concat(t,":\\s*([^;}]+)")),d=o.match(u);d&&n(t,d[1])}}}var ra=/url\((('.*?')|(".*?")|([^\)]*?))\)/g,aa=/@import\s*(url\()?(('.+?')|(".+?")|([^\)]*?))\)? ?(screen)?;?/gi;function $n(t){return t.trim().replace(/[\n\r\\]+/g,"").replace(/^url\((.*)\)$/,"$1").trim().replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1").replace(/(?:\\(.))/g,"$1")}function sn(t){var e=un(t);return"".concat(e.origin).concat(e.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1"))}function Bo(t,e){return t.replace(ra,(function(n){var r=$n(n);try{return"url('".concat(cn(e,r),"')")}catch{return n}}))}var Uo=/@font-face\s*{[^}]*}/g,pe=new WeakSet,oa=new WeakSet,ia=new WeakSet,ua=new WeakSet,ca=new WeakSet;function sa(t){return!(!t||!pe.has(t)&&(!t.selectorText||(pe.add(t),0)))}function zn(t){return!(!t||pe.has(t)||!ia.has(t)&&(!t.media||(ia.add(t),0)))}function la(t){return!!t&&!pe.has(t)&&(!!ca.has(t)||t instanceof CSSLayerBlockRule&&(ca.add(t),!0))}function Ho(t){for(var e,n=[],r=[],a=0,o=t.length;a<o;a++){var i=t[a];if(i&&i!==" "){if(Ve.has(i)){for(var u=Ve.get(i);r.length;){var d=Ve.get(r[0]);if(!d||!u.lessOrEqualThan(d))break;n.push(r.shift())}r.unshift(i)}else!e||Ve.has(e)?n.push(i):n[n.length-1]+=i;e=i}}n.push.apply(n,r);for(var s=[],f=0,l=n.length;f<l;f++){var c=Ve.get(n[f]);if(c){var m=s.splice(0,2);s.push(c.exec(m[1],m[0]))}else s.unshift(parseFloat(n[f]))}return s[0]}var ln=(function(){function t(e,n){Qe(this,t),this.precendce=e,this.execMethod=n}return Ke(t,[{key:"exec",value:function(e,n){return this.execMethod(e,n)}},{key:"lessOrEqualThan",value:function(e){return this.precendce<=e.precendce}}]),t})(),Ve=new Map([["+",new ln(1,(function(t,e){return t+e}))],["-",new ln(1,(function(t,e){return t-e}))],["*",new ln(2,(function(t,e){return t*e}))],["/",new ln(2,(function(t,e){return t/e}))]]),Go=function(){return matchMedia("(prefers-color-scheme: dark)").matches},dn=new Map,fn=new Map;function ft(t){if(t=t.trim(),fn.has(t))return fn.get(t);t.includes("calc(")&&(t=(function(n){for(var r=0,a=function(s,f,l){n=n.substring(0,s)+l+n.substring(f)};(r=n.indexOf("calc("))!==-1;){var o=Hn(n,r);if(!o)break;var i=n.slice(o.start+1,o.end-1),u=i.includes("%");i=i.split("%").join("");var d=Math.round(Ho(i));a(o.start-4,o.end,d+(u?"%":""))}return n})(t));var e=ha(t);return e&&fn.set(t,e),e}function da(t){if(dn.has(t))return dn.get(t);var e=ft(t);if(!e)return null;var n=hn(e);return dn.set(t,n),n}function fa(t){var e=t.h,n=t.s,r=t.l,a=t.a,o=a===void 0?1:a;if(n===0){var i=[r,r,r].map((function(p){return Math.round(255*p)})),u=pt(i,3),d=u[0],s=u[1];return{r:d,g:u[2],b:s,a:o}}var f=(1-Math.abs(2*r-1))*n,l=f*(1-Math.abs(e/60%2-1)),c=r-f/2,m=pt((e<60?[f,l,0]:e<120?[l,f,0]:e<180?[0,f,l]:e<240?[0,l,f]:e<300?[l,0,f]:[f,0,l]).map((function(p){return Math.round(255*(p+c))})),3);return{r:m[0],g:m[1],b:m[2],a:o}}function hn(t){var e=t.r,n=t.g,r=t.b,a=t.a,o=a===void 0?1:a,i=e/255,u=n/255,d=r/255,s=Math.max(i,u,d),f=Math.min(i,u,d),l=s-f,c=(s+f)/2;if(l===0)return{h:0,s:0,l:c,a:o};var m=60*(s===i?(u-d)/l%6:s===u?(d-i)/l+2:(i-u)/l+4);return m<0&&(m+=360),{h:m,s:l/(1-Math.abs(2*c-1)),l:c,a:o}}function St(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t.toFixed(e);if(e===0)return n;var r=n.indexOf(".");if(r>=0){var a=n.match(/0+$/);if(a)return a.index===r+1?n.substring(0,r):n.substring(0,a.index)}return n}function me(t){var e=t.h,n=t.s,r=t.l,a=t.a;return a!=null&&a<1?"hsla(".concat(St(e),", ").concat(St(100*n),"%, ").concat(St(100*r),"%, ").concat(St(a,2),")"):"hsl(".concat(St(e),", ").concat(St(100*n),"%, ").concat(St(100*r),"%)")}var $o=/^rgba?\([^\(\)]+\)$/,zo=/^hsla?\([^\(\)]+\)$/,Qo=/^#[0-9a-f]+$/i;function ha(t){var e,n,r,a,o,i=t.trim().toLowerCase();if(i.match($o))return ma(i);if(i.match(zo))return e=pt(pa(i,Xo,Jo),4),n=e[0],r=e[1],a=e[2],o=e[3],fa({h:n,s:r,l:a,a:o===void 0?1:o});if(i.match(Qo))return(function(d){var s=d.substring(1);switch(s.length){case 3:case 4:var f=pt([0,1,2].map((function(c){return parseInt("".concat(s[c]).concat(s[c]),16)})),3);return{r:f[0],g:f[1],b:f[2],a:s.length===3?1:parseInt("".concat(s[3]).concat(s[3]),16)/255};case 6:case 8:var l=pt([0,2,4].map((function(c){return parseInt(s.substring(c,c+2),16)})),3);return{r:l[0],g:l[1],b:l[2],a:s.length===6?1:parseInt(s.substring(6,8),16)/255}}return null})(i);if(va.has(i))return(function(d){var s=va.get(d);return{r:s>>16&255,g:s>>8&255,b:s>>0&255,a:1}})(i);if(ga.has(i))return(function(d){var s=ga.get(d);return{r:s>>16&255,g:s>>8&255,b:s>>0&255,a:1}})(i);if(t==="transparent")return{r:0,g:0,b:0,a:0};if((i.startsWith("color(")||i.startsWith("color-mix("))&&i.endsWith(")"))return(function(d){Oe||((Qn=document.createElement("canvas")).width=1,Qn.height=1,Oe=Qn.getContext("2d",{willReadFrequently:!0})),Oe.fillStyle=d,Oe.fillRect(0,0,1,1);var s=Oe.getImageData(0,0,1,1).data;return ma("rgba(".concat(s[0],", ").concat(s[1],", ").concat(s[2],", ").concat((s[3]/255).toFixed(2),")"))})(i);if(i.startsWith("light-dark(")&&i.endsWith(")")){var u=i.match(/^light-dark\(\s*([a-z]+(\(.*\))?),\s*([a-z]+(\(.*\))?)\s*\)$/);if(u)return ha(Go()?u[3]:u[1])}return null}function pa(t,e,n){var r=(function(o){var i=[],u=0,d=!1,s=o.indexOf("(");o=o.substring(s+1,o.length-1);for(var f=0;f<o.length;f++){var l=o[f];l>="0"&&l<="9"||l==="."||l==="+"||l==="-"?d=!0:!d||l!==" "&&l!==","&&l!=="/"?d||(u=f+1):(i.push(o.substring(u,f)),d=!1,u=f+1)}return d&&i.push(o.substring(u,o.length)),i})(t),a=Object.entries(n);return r.map((function(o){return o.trim()})).map((function(o,i){var u,d=a.find((function(s){var f=pt(s,1)[0];return o.endsWith(f)}));return u=d?parseFloat(o.substring(0,o.length-d[0].length))/d[1]*e[i]:parseFloat(o),e[i]>1?Math.round(u):u}))}var Ko=[255,255,255,1],Yo={"%":100};function ma(t){var e=pt(pa(t,Ko,Yo),4),n=e[0],r=e[1],a=e[2],o=e[3];return{r:n,g:r,b:a,a:o===void 0?1:o}}var Qn,Oe,Xo=[360,1,1,1],Jo={"%":100,deg:360,rad:2*Math.PI,turn:1},va=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})),ga=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(t){var e=pt(t,2),n=e[0],r=e[1];return[n.toLowerCase(),r]})));function Zo(t,e,n){return(.2126*t+.7152*e+.0722*n)/255}function Lt(t,e,n,r,a){return(t-e)*(a-r)/(n-e)+r}function Kt(t,e,n){return Math.min(n,Math.max(e,t))}function ve(t,e){for(var n=[],r=0,a=t.length;r<a;r++){n[r]=[];for(var o=0,i=e[0].length;o<i;o++){for(var u=0,d=0,s=t[0].length;d<s;d++)u+=t[r][d]*e[d][o];n[r][o]=u}}return n}function ba(t){var e=ge.identity();return t.sepia!==0&&(e=ve(e,ge.sepia(t.sepia/100))),t.grayscale!==0&&(e=ve(e,ge.grayscale(t.grayscale/100))),t.contrast!==100&&(e=ve(e,ge.contrast(t.contrast/100))),t.brightness!==100&&(e=ve(e,ge.brightness(t.brightness/100))),t.mode===1&&(e=ve(e,ge.invertNHue())),e}var ge={identity:function(){return[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]},invertNHue:function(){return[[.333,-.667,-.667,0,1],[-.667,.333,-.667,0,1],[-.667,-.667,.333,0,1],[0,0,0,1,0],[0,0,0,0,1]]},brightness:function(t){return[[t,0,0,0,0],[0,t,0,0,0],[0,0,t,0,0],[0,0,0,1,0],[0,0,0,0,1]]},contrast:function(t){var e=(1-t)/2;return[[t,0,0,0,e],[0,t,0,0,e],[0,0,t,0,e],[0,0,0,1,0],[0,0,0,0,1]]},sepia:function(t){return[[.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),0,0],[.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),0,0],[.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t),0,0],[0,0,0,1,0],[0,0,0,0,1]]},grayscale:function(t){return[[.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),0,0],[.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),0,0],[.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t),0,0],[0,0,0,1,0],[0,0,0,0,1]]}};function Kn(t){return t[t.mode===1?"darkSchemeBackgroundColor":"lightSchemeBackgroundColor"]}function Yn(t){return t[t.mode===1?"darkSchemeTextColor":"lightSchemeTextColor"]}var pn=new Map,ti=["r","g","b","a"],ei=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];function Pe(t,e,n,r,a){var o;pn.has(n)?o=pn.get(n):(o=new Map,pn.set(n,o));var i=(function(C,A){var V="";return ti.forEach((function(w){V+="".concat(C[w],";")})),ei.forEach((function(w){V+="".concat(A[w],";")})),V})(t,e);if(o.has(i))return o.get(i);var u=fa(n(hn(t),r==null?null:da(r),a==null?null:da(a))),d=u.r,s=u.g,f=u.b,l=u.a,c=(function(C,A){var V=pt(C,3),w=ve(A,[[V[0]/255],[V[1]/255],[V[2]/255],[1],[1]]);return[0,1,2].map((function(D){return Kt(Math.round(255*w[D][0]),0,255)}))})([d,s,f],ba(e)),m=pt(c,3),p=m[0],h=m[1],v=m[2],g=l===1?(function(C){var A=C.r,V=C.g,w=C.b,D=C.a;return"#".concat((D!=null&&D<1?[A,V,w,Math.round(255*D)]:[A,V,w]).map((function(b){return"".concat(b<16?"0":"").concat(b.toString(16))})).join(""))})({r:p,g:h,b:v}):(function(C){var A=C.r,V=C.g,w=C.b,D=C.a;return D!=null&&D<1?"rgba(".concat(St(A),", ").concat(St(V),", ").concat(St(w),", ").concat(St(D,2),")"):"rgb(".concat(St(A),", ").concat(St(V),", ").concat(St(w),")")})({r:p,g:h,b:v,a:l});return o.set(i,g),g}function ni(t){return t}function Xn(t,e){var n=Kn(e);return Pe(t,e,ri,Yn(e),n)}function ri(t,e,n){var r=t.h,a=t.s,o=t.l,i=t.a,u=o<.5,d=r,s=o;return(u?o<.2||a<.12:a<.24||o>.8&&r>200&&r<280)&&(u?(d=e.h,s=e.s):(d=n.h,s=n.s)),{h:d,s,l:Lt(o,0,1,e.l,n.l),a:i}}var ya=.4;function ai(t,e){var n=t.h,r=t.s,a=t.l,o=t.a,i=r<.12||a>.8&&n>200&&n<280;if(a<.5){var u=Lt(a,0,.5,0,ya);return i?{h:e.h,s:e.s,l:u,a:o}:{h:n,s:r,l:u,a:o}}var d=Lt(a,.5,1,ya,e.l);if(i)return{h:e.h,s:e.s,l:d,a:o};var s=n;return n>60&&n<180&&(s=n>120?Lt(n,120,180,135,180):Lt(n,60,120,60,105)),s>40&&s<80&&(d*=.75),{h:s,s:r,l:d,a:o}}function ht(t,e){if(e.mode===0)return Xn(t,e);var n=Kn(e);return Pe(t,tt(tt({},e),{},{mode:0}),ai,n)}var Jn,mn=.55;function wa(t){return Lt(t,205,245,205,220)}function oi(t,e){var n=t.h,r=t.s,a=t.l,o=t.a,i=a<.2||r<.24,u=!i&&n>205&&n<245;if(a>.5){var d=Lt(a,.5,1,mn,e.l);if(i)return{h:e.h,s:e.s,l:d,a:o};var s=n;return u&&(s=wa(n)),{h:s,s:r,l:d,a:o}}if(i)return{h:e.h,s:e.s,l:Lt(a,0,.5,e.l,mn),a:o};var f,l=n;return u?(l=wa(n),f=Lt(a,0,.5,e.l,Math.min(1,mn+.05))):f=Lt(a,0,.5,e.l,mn),{h:l,s:r,l:f,a:o}}function At(t,e){if(e.mode===0)return Xn(t,e);var n=Yn(e);return Pe(t,tt(tt({},e),{},{mode:0}),oi,n)}function ii(t,e,n){var r=t.h,a=t.s,o=t.l,i=t.a,u=r,d=a;return(o<.2||a<.24)&&(o<.5?(u=e.h,d=e.s):(u=n.h,d=n.s)),{h:u,s:d,l:Lt(o,0,1,.5,.2),a:i}}function De(t,e){if(e.mode===0)return Xn(t,e);var n=Yn(e),r=Kn(e);return Pe(t,tt(tt({},e),{},{mode:0}),ii,n,r)}function Zn(t,e){return ht(t,e)}function ka(t){var e=[];return t.mode===Jn.dark&&e.push("invert(100%) hue-rotate(180deg)"),t.brightness!==100&&e.push("brightness(".concat(t.brightness,"%)")),t.contrast!==100&&e.push("contrast(".concat(t.contrast,"%)")),t.grayscale!==0&&e.push("grayscale(".concat(t.grayscale,"%)")),t.sepia!==0&&e.push("sepia(".concat(t.sepia,"%)")),e.length===0?null:e.join(" ")}function Sa(){if("randomUUID"in crypto){var t=crypto.randomUUID();return t.substring(0,8)+t.substring(9,13)+t.substring(14,18)+t.substring(19,23)+t.substring(24)}return"getRandomValues"in crypto?Array.from(crypto.getRandomValues(new Uint8Array(16))).map((function(e){return((n=e)<16?"0":"")+n.toString(16);var n})).join(""):Math.floor(Math.random()*Math.pow(2,55)).toString(36)}(function(t){t[t.light=0]="light",t[t.dark=1]="dark"})(Jn||(Jn={}));var tr=new Map,er=new Map;function Ea(t){return xa.apply(this,arguments)}function xa(){return(xa=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(r,a){var o=Sa();tr.set(o,r),er.set(o,a),chrome.runtime.sendMessage({type:ut.FETCH,data:e,id:o})})));case 1:case"end":return n.stop()}}),t)})))).apply(this,arguments)}chrome.runtime.onMessage.addListener((function(t){var e=t.type,n=t.data,r=t.error,a=t.id;if(e===J.FETCH_RESPONSE){var o=tr.get(a),i=er.get(a);tr.delete(a),er.delete(a),r?i&&i(r):o&&o(n)}}));var nr=new((function(){function t(){Qe(this,t),this.queue=[],this.timerId=null}return Ke(t,[{key:"addTask",value:function(e){this.queue.push(e),this.scheduleFrame()}},{key:"stop",value:function(){this.timerId!==null&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]}},{key:"scheduleFrame",value:function(){var e=this;this.timerId||(this.timerId=requestAnimationFrame((function(){e.timerId=null;for(var n,r=Date.now();n=e.queue.shift();)if(n(),Date.now()-r>=16.666666666666668){e.scheduleFrame();break}})))}}]),t})());function ui(t){return rr.apply(this,arguments)}function rr(){return rr=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(){var r=et(j().mark((function a(o,i){var u,d,s,f,l;return j().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,!e.startsWith("data:")){c.next=5;break}c.t0=e,c.next=8;break;case 5:return c.next=7,ci(e);case 7:c.t0=c.sent;case 8:if(d=c.t0,(u=Ma(d))===null||u===void 0){c.next=13;break}c.t1=u,c.next=16;break;case 13:return c.next=15,Je(e);case 15:c.t1=c.sent;case 16:if(s=c.t1,!d.startsWith("data:image/svg+xml")){c.next=23;break}return c.next=20,Aa(d);case 20:f=c.sent,c.next=37;break;case 23:return c.next=25,si(s);case 25:if(c.t3=l=c.sent,c.t2=c.t3!==null,!c.t2){c.next=29;break}c.t2=l!==void 0;case 29:if(!c.t2){c.next=33;break}c.t4=l,c.next=36;break;case 33:return c.next=35,Aa(d);case 35:c.t4=c.sent;case 36:f=c.t4;case 37:nr.addTask((function(){var m=hi(f);o(tt({src:e,dataURL:m.isLarge?"":d,width:f.width,height:f.height},m))})),c.next=43;break;case 40:c.prev=40,c.t5=c.catch(0),i(c.t5);case 43:case"end":return c.stop()}}),a,null,[[0,40]])})));return function(a,o){return r.apply(this,arguments)}})()));case 1:case"end":return n.stop()}}),t)}))),rr.apply(this,arguments)}function ci(t){return _a.apply(this,arguments)}function _a(){return(_a=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(new URL(e).origin!==location.origin){n.next=5;break}return n.next=4,ne(e);case 4:case 7:return n.abrupt("return",n.sent);case 5:return n.next=7,Ea({url:e,responseType:"data-url"});case 8:case"end":return n.stop()}}),t)})))).apply(this,arguments)}function si(t){return Ca.apply(this,arguments)}function Ca(){return(Ca=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,createImageBitmap(e);case 3:return n.abrupt("return",n.sent);case 6:return n.prev=6,n.t0=n.catch(0),"Unable to create image bitmap for type ".concat(e.type,": ").concat(String(n.t0)),n.abrupt("return",null);case 10:case"end":return n.stop()}}),t,null,[[0,6]])})))).apply(this,arguments)}var li=256,di=0;function Aa(t){return Ra.apply(this,arguments)}function Ra(){return(Ra=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(r,a){var o=new Image;o.onload=function(){return r(o)},o.onerror=function(){return a("Unable to load image ".concat(e))},++di<=li||nn()?o.src=e:Bn((function(){return o.src=e}))})));case 1:case"end":return n.stop()}}),t)})))).apply(this,arguments)}var Ne,Fe,ar=1024,fi=262144;function hi(t){var e,n,r,a;if(Ne||(e=ar,n=ar,(Ne=document.createElement("canvas")).width=e,Ne.height=n,(Fe=Ne.getContext("2d",{willReadFrequently:!0})).imageSmoothingEnabled=!1),t instanceof HTMLImageElement?(r=t.naturalWidth,a=t.naturalHeight):(r=t.width,a=t.height),r===0||a===0)return{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!1};if(r*a>fi)return{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!0};var o=r*a,i=Math.min(1,Math.sqrt(ar/o)),u=Math.ceil(r*i),d=Math.ceil(a*i);Fe.clearRect(0,0,u,d),Fe.drawImage(t,0,0,r,a,0,0,u,d);var s,f,l,c,m,p,h,v=Fe.getImageData(0,0,u,d).data,g=0,C=0,A=0;for(l=0;l<d;l++)for(f=0;f<u;f++)c=v[0+(s=4*(l*u+f))],m=v[s+1],p=v[s+2],v[s+3]/255<.05?g++:((h=Zo(c,m,p))<.4&&C++,h>.7&&A++);var V=u*d,w=V-g;return{isDark:C/w>=.7,isLight:A/w>=.7,isTransparent:g/V>=.1,isLarge:!1}}var je=null,or=!1,Ta=!1,ir=[];function pi(){return La.apply(this,arguments)}function La(){return(La=et(j().mark((function t(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(or){e.next=2;break}return e.abrupt("return");case 2:if(!Ta){e.next=6;break}return e.next=5,new Promise((function(n){return ir.push(n)}));case 5:return e.abrupt("return",e.sent);case 6:return Ta=!0,e.next=9,new Promise((function(n){document.addEventListener("__wp_dark_mode__blobURLCheckResponse",(function(r){je=r.detail.blobURLAllowed,n(),ir.forEach((function(a){return a()})),ir.splice(0)}),{once:!0}),document.dispatchEvent(new CustomEvent("__wp_dark_mode__blobURLCheckRequest"))}));case 9:case"end":return e.stop()}}),t)})))).apply(this,arguments)}document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){return or=!0}),{once:!0}),document.addEventListener("securitypolicyviolation",(function t(e){e.blockedURI==="blob"&&(je=!1,document.removeEventListener("securitypolicyviolation",t))}));var ur=new Set;function cr(t,e){var n=t.dataURL,r=t.width,a=t.height;n.startsWith("data:image/svg+xml")&&(n=n.replace(/[<>&'"]/g,(function(l){var c;return(c=mi[l])!==null&&c!==void 0?c:l})));var o=ba(e).slice(0,4).map((function(l){return l.map((function(c){return c.toFixed(3)})).join(" ")})).join(" "),i=['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'.concat(r,'" height="').concat(a,'">'),"<defs>",'<filter id="wp-dark-mode-image-filter">','<feColorMatrix type="matrix" values="'.concat(o,'" />'),"</filter>","</defs>",'<image width="'.concat(r,'" height="').concat(a,'" filter="url(#wp-dark-mode-image-filter)" xlink:href="').concat(n,'" />'),"</svg>"].join("");if(!je)return"data:image/svg+xml;base64,".concat(btoa(i));for(var u=new Uint8Array(i.length),d=0;d<i.length;d++)u[d]=i.charCodeAt(d);var s=new Blob([u],{type:"image/svg+xml"}),f=URL.createObjectURL(s);return ur.add(f),f}var mi={"<":"&lt;",">":"&gt;","&":"&amp;","'":"&apos;",'"':"&quot;"},vn=new Map;function Ma(t){var e=t.indexOf(":"),n=t.indexOf(";",e+1),r=t.indexOf(",",n+1),a=t.substring(n+1,r).toLocaleLowerCase(),o=t.substring(e+1,n);if(a!=="base64"||!o)return null;for(var i=atob(t.substring(r+1)),u=new Uint8Array(i.length),d=0;d<i.length;d++)u[d]=i.charCodeAt(d);return new Blob([u],{type:o})}function vi(t){return Va.apply(this,arguments)}function Va(){return(Va=et(j().mark((function t(e){var n,r,a,o;return j().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(je){i.next=2;break}return i.abrupt("return",null);case 2:if(n=Xr(e),!(r=vn.get(n))){i.next=6;break}return i.abrupt("return",r);case 6:if(a=Ma(e)){i.next=14;break}return i.next=10,fetch(e);case 10:return o=i.sent,i.next=13,o.blob();case 13:a=i.sent;case 14:return r=URL.createObjectURL(a),vn.set(n,r),i.abrupt("return",r);case 17:case"end":return i.stop()}}),t)})))).apply(this,arguments)}function gi(){nr&&nr.stop(),Ne=null,Fe=null,ur.forEach((function(t){return URL.revokeObjectURL(t)})),ur.clear(),vn.forEach((function(t){return URL.revokeObjectURL(t)})),vn.clear()}var Oa=8,sr="conic-",bi=sr.length,yi="radial-",wi="linear-";function ki(t,e){return!!(t&&t.getPropertyPriority(e))}function Pa(t,e,n,r,a,o){var i=null;if(t.startsWith("--"))i=(function(s,f,l,c,m,p){return s.getModifierForVariable({varName:f,sourceValue:l,rule:c,ignoredImgSelectors:m,isCancelled:p})})(r,t,e,n,a,o);else if(e.includes("var("))i=(function(s,f,l){return s.getModifierForVarDependant(f,l)})(r,t,e);else if(t==="color-scheme")i=function(s){return s.mode===0?"dark light":"dark"};else if(t==="scrollbar-color")i=(function(s){var f=s.match(/^\s*([a-z]+(\(.*\))?)\s+([a-z]+(\(.*\))?)\s*$/);if(!f)return s;var l=ft(f[1]),c=ft(f[3]);return l&&c?function(m){return"".concat(At(l,m)," ").concat(ht(l,m))}:null})(e);else if(t.includes("color")&&t!=="-webkit-print-color-adjust"||t==="fill"||t==="stroke"||t==="stop-color")if(t.startsWith("border")&&t!=="border-color"&&e==="initial"){var u=t.substring(0,t.length-6),d=n.style.getPropertyValue(u);d.startsWith("0px")||d==="none"?(t=u,i=d):i=e}else i=(function(s,f,l){if(xi.has(f.toLowerCase()))return f;var c=ft(f);return c?s.includes("background")?l.style.webkitMaskImage&&l.style.webkitMaskImage!=="none"||l.style.webkitMask&&!l.style.webkitMask.startsWith("none")||l.style.mask&&l.style.mask!=="none"||l.style.getPropertyValue("mask-image")&&l.style.getPropertyValue("mask-image")!=="none"?function(m){return At(c,m)}:function(m){return ht(c,m)}:s.includes("border")||s.includes("outline")?function(m){return De(c,m)}:function(m){return At(c,m)}:null})(t,e,n);else t==="background-image"||t==="list-style-image"?i=Fa(e,n,a,o):t.includes("shadow")&&(i=(function(s){var f=ja(s);return f?function(l){return f(l).result}:null})(e));return i?{property:t,value:i,important:ki(n.style,t),sourceValue:e}:null}function Da(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(", ")}function Si(t,e,n){var r=[];e||(r.push("html {"),r.push("    background-color: ".concat(ht({r:255,g:255,b:255},t)," !important;")),r.push("}")),ee&&t.mode===1&&(r.push("html {"),r.push("    color-scheme: dark !important;"),r.push("}"),r.push("iframe {"),r.push("    color-scheme: initial;"),r.push("}"));var a=Da(e?"":"html, body",n?"input, textarea, select, button, dialog":"");return a&&(r.push("".concat(a," {")),r.push("    background-color: ".concat(ht({r:255,g:255,b:255},t),";")),r.push("}")),r.push("".concat(Da("html, body",n?"input, textarea, select, button":"")," {")),r.push("    border-color: ".concat(De({r:76,g:76,b:76},t),";")),r.push("    color: ".concat(At({r:0,g:0,b:0},t),";")),r.push("}"),r.push("a {"),r.push("    color: ".concat(At({r:0,g:64,b:255},t),";")),r.push("}"),r.push("table {"),r.push("    border-color: ".concat(De({r:128,g:128,b:128},t),";")),r.push("}"),r.push("::placeholder {"),r.push("    color: ".concat(At({r:169,g:169,b:169},t),";")),r.push("}"),r.push("input:-webkit-autofill,"),r.push("textarea:-webkit-autofill,"),r.push("select:-webkit-autofill {"),r.push("    background-color: ".concat(ht({r:250,g:255,b:189},t)," !important;")),r.push("    color: ".concat(At({r:0,g:0,b:0},t)," !important;")),r.push("}"),t.scrollbarColor&&r.push((function(o){var i,u,d,s,f,l,c=[];if(o.scrollbarColor==="auto")i=ht({r:241,g:241,b:241},o),u=At({r:96,g:96,b:96},o),d=ht({r:176,g:176,b:176},o),s=ht({r:144,g:144,b:144},o),f=ht({r:96,g:96,b:96},o),l=ht({r:255,g:255,b:255},o);else{var m=hn(ft(o.scrollbarColor)),p=m.l>.5,h=function(g){return tt(tt({},m),{},{l:Kt(m.l+g,0,1)})},v=function(g){return tt(tt({},m),{},{l:Kt(m.l-g,0,1)})};i=me(v(.4)),u=me(p?v(.4):h(.4)),d=me(m),s=me(h(.1)),f=me(h(.2)),l=me(v(.5))}return c.push("::-webkit-scrollbar {"),c.push("    background-color: ".concat(i,";")),c.push("    color: ".concat(u,";")),c.push("}"),c.push("::-webkit-scrollbar-thumb {"),c.push("    background-color: ".concat(d,";")),c.push("}"),c.push("::-webkit-scrollbar-thumb:hover {"),c.push("    background-color: ".concat(s,";")),c.push("}"),c.push("::-webkit-scrollbar-thumb:active {"),c.push("    background-color: ".concat(f,";")),c.push("}"),c.push("::-webkit-scrollbar-corner {"),c.push("    background-color: ".concat(l,";")),c.push("}"),qt&&(c.push("* {"),c.push("    scrollbar-color: ".concat(d," ").concat(i,";")),c.push("}")),c.join(`
`)})(t)),t.selectionColor&&r.push((function(o){var i=[],u=Na(o),d=u.backgroundColorSelection,s=u.foregroundColorSelection;return["::selection","::-moz-selection"].forEach((function(f){i.push("".concat(f," {")),i.push("    background-color: ".concat(d," !important;")),i.push("    color: ".concat(s," !important;")),i.push("}")})),i.join(`
`)})(t)),r.join(`
`)}function Na(t){var e,n;if(t.selectionColor==="auto")e=ht({r:0,g:96,b:212},tt(tt({},t),{},{grayscale:0})),n=At({r:255,g:255,b:255},tt(tt({},t),{},{grayscale:0}));else{var r=hn(ft(t.selectionColor));e=t.selectionColor,n=r.l<.5?"#FFF":"#000"}return{backgroundColorSelection:e,foregroundColorSelection:n}}function lr(t,e){return Ei(t,{strict:e.strict})}function Ei(t,e){var n=e.strict,r=[];return r.push("html, body, ".concat(n?"body :not(iframe)":"body > :not(iframe)"," {")),r.push("    background-color: ".concat(ht({r:255,g:255,b:255},t)," !important;")),r.push("    border-color: ".concat(De({r:64,g:64,b:64},t)," !important;")),r.push("    color: ".concat(At({r:0,g:0,b:0},t)," !important;")),r.push("}"),r.push('div[style*="background-color: rgb(135, 135, 135)"] {'),r.push("    background-color: #878787 !important;"),r.push("}"),r.join(`
`)}var xi=new Set(["inherit","transparent","initial","currentcolor","none","unset","auto"]),gn=new Map,Ht=new Map;function Fa(t,e,n,r){try{var a=(function(l){for(var c=[],m=0,p=sr.length,h=function(){var v;if([wi,yi,sr].find((function(w){if(m-w.length>=0&&l.substring(m-w.length,m)===w)return l.slice(m-w.length-10,m-w.length-1)==="repeating"?(v="repeating-".concat(w,"gradient"),!0):l.slice(m-w.length-8,m-w.length-1)==="-webkit"?(v="-webkit-".concat(w,"gradient"),!0):(v="".concat(w,"gradient"),!0)})),!v)return 1;var g=Hn(l,m+Oa),C=g.start,A=g.end,V=l.substring(C+1,A-1);p=A+1+bi,c.push({typeGradient:v,match:V,offset:v.length+2,index:m-v.length+Oa,hasComma:!0})};(m=l.indexOf("gradient",p))!==-1&&!h(););return c.length&&(c[c.length-1].hasComma=!1),c})(t),o=Le(ra,t);if(o.length===0&&a.length===0)return t;var i=a.map((function(l){return tt({type:"gradient"},l)})).concat((function(l){var c=0;return l.map((function(m){var p=t.indexOf(m,c);return c=p+m.length,{match:m,index:p}}))})(o).map((function(l){return tt({type:"url",offset:0},l)}))).sort((function(l,c){return l.index>c.index?1:-1})),u=function(l,c){var m,p=l.isDark,h=l.isLight,v=l.isTransparent,g=l.isLarge,C=l.width,A=l.src.startsWith("data:")?"data:":l.src;if(g)"Not modifying too large image ".concat(A),m=null;else if(p&&v&&c.mode===1&&C>2){"Inverting dark image ".concat(A);var V=cr(l,tt(tt({},c),{},{sepia:Kt(c.sepia+10,0,100)}));m='url("'.concat(V,'")')}else if(h&&!v&&c.mode===1){"Dimming light image ".concat(A);var w=cr(l,c);m='url("'.concat(w,'")')}else if(c.mode===0&&h){"Applying filter to image ".concat(A);var D=cr(l,tt(tt({},c),{},{brightness:Kt(c.brightness-10,5,200),sepia:Kt(c.sepia+10,0,100)}));m='url("'.concat(D,'")')}else"Not modifying the image ".concat(A),m=null;return m},d=[],s=0,f=!1;return i.forEach((function(l,c){var m=l.type,p=l.match,h=l.index,v=l.typeGradient,g=l.hasComma,C=l.offset,A=h,V=s,w=A+p.length+C;s=w,V!==A&&(f?d.push((function(){var D=t.substring(V,A);return D[0]===","&&(D=D.substring(1)),D})):d.push((function(){return t.substring(V,A)}))),f=g||!1,m==="url"?d.push((function(D){var b;if((function(F,E){if(!F||E.length===0)return!1;if(E.some((function(q){return q==="*"})))return!0;for(var W,I=F.split(/,\s*/g),Q=function(){var q=E[P];if(I.some((function(R){return R===q})))return{v:!0}},P=0;P<E.length;P++)if(W=Q())return W.v;return!1})(e.selectorText,n))return null;var k=$n(D),L=k.length===0,O=e.parentStyleSheet,B=O&&O.href?sn(O.href):(O==null||(b=O.ownerNode)===null||b===void 0?void 0:b.baseURI)||location.origin;return k=cn(B,k),(function(){var F=et(j().mark((function E(W){var I,Q,P,q;return j().wrap((function(R){for(;;)switch(R.prev=R.next){case 0:if(!L){R.next=2;break}return R.abrupt("return","url('')");case 2:if(I=null,!gn.has(k)){R.next=7;break}I=gn.get(k),R.next=35;break;case 7:if(R.prev=7,je!=null||!or){R.next=11;break}return R.next=11,pi();case 11:if(!Ht.has(k)){R.next=20;break}return Q=Ht.get(k),R.next=15,new Promise((function(z){return Q.push(z)}));case 15:if(I=R.sent){R.next=18;break}return R.abrupt("return",null);case 18:R.next=27;break;case 20:return Ht.set(k,[]),R.next=23,ui(k);case 23:I=R.sent,gn.set(k,I),Ht.get(k).forEach((function(z){return z(I)})),Ht.delete(k);case 27:if(!r()){R.next=29;break}return R.abrupt("return",null);case 29:R.next=35;break;case 31:R.prev=31,R.t0=R.catch(7),R.t0,Ht.has(k)&&(Ht.get(k).forEach((function(z){return z(null)})),Ht.delete(k));case 35:if(!I){R.next=39;break}if(!(P=u(I,W))){R.next=39;break}return R.abrupt("return",P);case 39:if(!k.startsWith("data:")){R.next=45;break}return R.next=42,vi(k);case 42:if(!(q=R.sent)){R.next=45;break}return R.abrupt("return",'url("'.concat(q,'")'));case 45:return R.abrupt("return",'url("'.concat(k,'")'));case 46:case"end":return R.stop()}}),E,null,[[7,31]])})));return function(E){return F.apply(this,arguments)}})()})(p)):m==="gradient"&&d.push((function(D){var b=D.typeGradient,k=D.match,L=D.hasComma,O=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,B=Le(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?([^\(\), ]|((?!calc)))*),?/g,k,1).map((function(F){var E=ft(F=F.trim());if(E)return function(Q){return Zn(E,Q)};var W=F.lastIndexOf(" ");if(E=ft(F.substring(0,W)))return function(Q){return"".concat(Zn(E,Q)," ").concat(F.substring(W+1))};var I=F.match(O);return I&&(E=ft(I[3]))?function(Q){return"".concat(I[1],"(").concat(I[2]?"".concat(I[2],", "):"").concat(Zn(E,Q),")")}:function(){return F}}));return function(F){return"".concat(b,"(").concat(B.map((function(E){return E(F)})).join(", "),")").concat(L?", ":"")}})({match:p,index:h,typeGradient:v,hasComma:g||!1,offset:C})),c===i.length-1&&d.push((function(){return t.substring(w)}))})),function(l){var c=d.filter(Boolean).map((function(p){return p(l)}));if(c.some((function(p){return p instanceof Promise})))return Promise.all(c).then((function(p){return p.filter(Boolean).join("")}));var m=c.join("");return m.endsWith(", initial")?m.slice(0,-9):m}}catch{return null}}function ja(t){try{var e=0,n=Le(/(^|\s)(?!calc)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,t,2),r=0,a=n.map((function(o,i){var u=e,d=t.indexOf(o,e),s=d+o.length;e=s;var f=ft(o);return f?function(l){return"".concat(t.substring(u,d)).concat((function(c,m){return ht(c,m)})(f,l)).concat(i===n.length-1?t.substring(s):"")}:(r++,function(){return t.substring(u,s)})}));return function(o){var i=a.map((function(u){return u(o)})).join("");return{matchesLength:n.length,unparseableMatchesLength:r,result:i}}}catch{return null}}function _i(){pn.clear(),gn.clear(),gi(),Ht.clear()}var Ci=(function(){function t(){Qe(this,t),this.varTypes=new Map,this.rulesQueue=[],this.inlineStyleQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return Ke(t,[{key:"clear",value:function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.inlineStyleQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()}},{key:"isVarType",value:function(e,n){return this.varTypes.has(e)&&(this.varTypes.get(e)&n)>0}},{key:"addRulesForMatching",value:function(e){this.rulesQueue.push(e)}},{key:"addInlineStyleForMatching",value:function(e){this.inlineStyleQueue.push(e)}},{key:"matchVariablesAndDependents",value:function(){var e=this;this.rulesQueue.length===0&&this.inlineStyleQueue.length===0||(this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.collectVariablesAndVarDep(),this.collectRootVarDependents(),this.varRefs.forEach((function(n,r){n.forEach((function(a){e.varTypes.has(r)&&e.resolveVariableType(a,e.varTypes.get(r))}))})),this.unknownColorVars.forEach((function(n){e.unknownBgVars.has(n)?(e.unknownColorVars.delete(n),e.unknownBgVars.delete(n),e.resolveVariableType(n,1)):e.isVarType(n,7)?e.unknownColorVars.delete(n):e.undefinedVars.add(n)})),this.unknownBgVars.forEach((function(n){e.findVarRef(n,(function(r){return e.unknownColorVars.has(r)||e.isVarType(r,7)}))!=null?e.iterateVarRefs(n,(function(r){e.resolveVariableType(r,1)})):e.isVarType(n,9)?e.unknownBgVars.delete(n):e.undefinedVars.add(n)})),this.changedTypeVars.forEach((function(n){e.typeChangeSubscriptions.has(n)&&e.typeChangeSubscriptions.get(n).forEach((function(r){r()}))})),this.changedTypeVars.clear())}},{key:"getModifierForVariable",value:function(e){var n=this;return function(r){var a=e.varName,o=e.sourceValue,i=e.rule,u=e.ignoredImgSelectors,d=e.isCancelled,s=function(){var l=[],c=function(v,g,C){if(n.isVarType(a,v)){var A,V=g(a);if(oe(o))if(Ba(o)){var w=mr(o,n.unstableVarValues);w||(w=v===1?"#ffffff":"#000000"),A=C(w,r)}else A=Yt(o,(function(D){return g(D)}),(function(D){return C(D,r)}));else A=C(o,r);l.push({property:V,value:A})}};if(c(1,Ie,be),c(2,dr,yn),c(4,fr,wn),n.isVarType(a,8)){var m=qa(a),p=o;oe(o)&&(p=Yt(o,(function(v){return Ie(v)}),(function(v){return be(v,r)})));var h=Fa(p,i,u,d);p=typeof h=="function"?h(r):h,l.push({property:m,value:p})}return l},f=new Set;return{declarations:s(),onTypeChange:{addListener:function(l){var c=function(){var m=s();l(m)};f.add(c),n.subscribeForVarTypeChange(a,c)},removeListeners:function(){f.forEach((function(l){n.unsubscribeFromVariableTypeChanges(a,l)}))}}}}}},{key:"getModifierForVarDependant",value:function(e,n){var r=this;if(n.match(/^\s*(rgb|hsl)a?\(/)){var a=e.startsWith("background"),o=hr(e);return function(i){var u=mr(n,r.unstableVarValues);return u||(u=a?"#ffffff":"#000000"),(a?be:o?yn:wn)(u,i)}}return e==="background-color"?function(i){return Yt(n,(function(u){return Ie(u)}),(function(u){return be(u,i)}))}:hr(e)?function(i){return Yt(n,(function(u){return dr(u)}),(function(u){return yn(u,i)}))}:e==="background"||e==="background-image"||e==="box-shadow"?function(i){var u=new Set,d=function(){var f=Yt(n,(function(c){return r.isVarType(c,1)?Ie(c):r.isVarType(c,8)?qa(c):(u.add(c),c)}),(function(c){return be(c,i)}));if(e==="box-shadow"){var l=ja(f)(i);if(l.unparseableMatchesLength!==l.matchesLength)return l.result}return f},s=d();return u.size>0?s.match(/^var\(.*?, var\(--wp-dark-mode-bg--.*\)\)$/)?s:new Promise((function(f){var l,c=Wt(u.values());try{var m=function(){var p=l.value;r.subscribeForVarTypeChange(p,(function h(){r.unsubscribeFromVariableTypeChanges(p,h);var v=d();f(v)}))};for(c.s();!(l=c.n()).done;)m()}catch(p){c.e(p)}finally{c.f()}})):s}:e.startsWith("border")||e.startsWith("outline")?function(i){return Yt(n,(function(u){return fr(u)}),(function(u){return wn(u,i)}))}:null}},{key:"subscribeForVarTypeChange",value:function(e,n){this.typeChangeSubscriptions.has(e)||this.typeChangeSubscriptions.set(e,new Set);var r=this.typeChangeSubscriptions.get(e);r.has(n)||r.add(n)}},{key:"unsubscribeFromVariableTypeChanges",value:function(e,n){this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).delete(n)}},{key:"collectVariablesAndVarDep",value:function(){var e=this;this.rulesQueue.forEach((function(n){ae(n,(function(r){r.style&&e.collectVarsFromCSSDeclarations(r.style)}))})),this.inlineStyleQueue.forEach((function(n){e.collectVarsFromCSSDeclarations(n)})),this.rulesQueue.splice(0),this.inlineStyleQueue.splice(0)}},{key:"collectVarsFromCSSDeclarations",value:function(e){var n=this;he(e,(function(r,a){bn(r)&&n.inspectVariable(r,a),oe(a)&&n.inspectVarDependant(r,a)}))}},{key:"shouldProcessRootVariables",value:function(){var e;return this.rulesQueue.length>0&&((e=document.documentElement.getAttribute("style"))===null||e===void 0?void 0:e.includes("--"))}},{key:"collectRootVariables",value:function(){var e=this;this.shouldProcessRootVariables()&&he(document.documentElement.style,(function(n,r){bn(n)&&e.inspectVariable(n,r)}))}},{key:"inspectVariable",value:function(e,n){this.unstableVarValues.set(e,n),oe(n)&&Ba(n)&&(this.unknownColorVars.add(e),this.definedVars.add(e)),this.definedVars.has(e)||(this.definedVars.add(e),n.match(Ua)||n.match(Ha)||ft(n)?this.unknownColorVars.add(e):(n.includes("url(")||n.includes("linear-gradient(")||n.includes("radial-gradient("))&&this.resolveVariableType(e,8))}},{key:"resolveVariableType",value:function(e,n){var r=this.initialVarTypes.get(e)||0,a=(this.varTypes.get(e)||0)|n;this.varTypes.set(e,a),(a!==r||this.undefinedVars.has(e))&&(this.changedTypeVars.add(e),this.undefinedVars.delete(e)),this.unknownColorVars.delete(e),this.unknownBgVars.delete(e)}},{key:"collectRootVarDependents",value:function(){var e=this;this.shouldProcessRootVariables()&&he(document.documentElement.style,(function(n,r){oe(r)&&e.inspectVarDependant(n,r)}))}},{key:"inspectVarDependant",value:function(e,n){var r=this;bn(e)?this.iterateVarDeps(n,(function(a){r.varRefs.has(e)||r.varRefs.set(e,new Set),r.varRefs.get(e).add(a)})):e==="background-color"||e==="box-shadow"?this.iterateVarDeps(n,(function(a){return r.resolveVariableType(a,1)})):hr(e)?this.iterateVarDeps(n,(function(a){return r.resolveVariableType(a,2)})):e.startsWith("border")||e.startsWith("outline")?this.iterateVarDeps(n,(function(a){return r.resolveVariableType(a,4)})):e!=="background"&&e!=="background-image"||this.iterateVarDeps(n,(function(a){if(!r.isVarType(a,9)){var o=r.findVarRef(a,(function(i){return r.unknownColorVars.has(i)||r.isVarType(i,7)}))!=null;r.iterateVarRefs(a,(function(i){o?r.resolveVariableType(i,1):r.unknownBgVars.add(i)}))}}))}},{key:"iterateVarDeps",value:function(e,n){var r=new Set;(function(a,o){Yt(a,(function(i){return o(i),i}))})(e,(function(a){return r.add(a)})),r.forEach((function(a){return n(a)}))}},{key:"findVarRef",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(r.has(e))return null;if(r.add(e),n(e))return e;var a=this.varRefs.get(e);if(!a||a.size===0)return null;var o,i=Wt(a);try{for(i.s();!(o=i.n()).done;){var u=o.value,d=this.findVarRef(u,n,r);if(d)return d}}catch(s){i.e(s)}finally{i.f()}return null}},{key:"iterateVarRefs",value:function(e,n){this.findVarRef(e,(function(r){return n(r),!1}))}},{key:"setOnRootVariableChange",value:function(e){this.onRootVariableDefined=e}},{key:"putRootVars",value:function(e,n){var r=this,a=e.sheet;a.cssRules.length>0&&a.deleteRule(0);var o=new Map;he(document.documentElement.style,(function(m,p){bn(m)&&(r.isVarType(m,1)&&o.set(Ie(m),be(p,n)),r.isVarType(m,2)&&o.set(dr(m),yn(p,n)),r.isVarType(m,4)&&o.set(fr(m),wn(p,n)),r.subscribeForVarTypeChange(m,r.onRootVariableDefined))}));var i=[];i.push(":root {");var u,d=Wt(o);try{for(d.s();!(u=d.n()).done;){var s=pt(u.value,2),f=s[0],l=s[1];i.push("    ".concat(f,": ").concat(l,";"))}}catch(m){d.e(m)}finally{d.f()}i.push("}");var c=i.join(`
`);a.insertRule(c)}}]),t})(),nt=new Ci;function Ai(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t.indexOf("var(",e);if(n>=0){var r=Hn(t,n+3);if(r)return{start:n,end:r.end}}return null}function Ia(t,e){var n=(function(f){for(var l,c=[],m=0;l=Ai(f,m);){var p=l,h=p.start,v=p.end;c.push({start:h,end:v,value:f.substring(h,v)}),m=l.end+1}return c})(t),r=n.length;if(r===0)return t;var a=t.length,o=n.map((function(f){return e(f.value)})),i=[];i.push(t.substring(0,n[0].start));for(var u=0;u<r;u++){i.push(o[u]);var d=n[u].end,s=u<r-1?n[u+1].start:a;i.push(t.substring(d,s))}return i.join("")}function Wa(t){var e,n,r=t.indexOf(",");return r>=0?(e=t.substring(4,r).trim(),n=t.substring(r+1,t.length-1).trim()):(e=t.substring(4,t.length-1).trim(),n=""),{name:e,fallback:n}}function Yt(t,e,n){return Ia(t,(function(r){var a,o=Wa(r),i=o.name,u=o.fallback,d=e(i);return u?(a=oe(u)?Yt(u,e,n):n?n(u):u,"var(".concat(d,", ").concat(a,")")):"var(".concat(d,")")}))}function Ie(t){return"--wp-dark-mode-bg".concat(t)}function dr(t){return"--wp-dark-mode-text".concat(t)}function fr(t){return"--wp-dark-mode-border".concat(t)}function qa(t){return"--wp-dark-mode-bgimg".concat(t)}function bn(t){return t.startsWith("--")}function oe(t){return t.includes("var(")}function Ba(t){return t.match(/^\s*(rgb|hsl)a?\(/)}function hr(t){return t==="color"||t==="caret-color"||t==="-webkit-text-fill-color"}var Ua=/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})$/,Ha=/^(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})$/;function pr(t,e,n){var r=(function(s){var f,l=(f=s.match(Ua))!==null&&f!==void 0?f:s.match(Ha);return l?{isRaw:!0,color:"rgb(".concat(l[1],", ").concat(l[2],", ").concat(l[3],")")}:{isRaw:!1,color:s}})(t),a=r.isRaw,o=r.color,i=ft(o);if(i){var u=n(i,e);if(a){var d=ft(u);return d?"".concat(d.r,", ").concat(d.g,", ").concat(d.b):u}return u}return o}function be(t,e){return pr(t,e,ht)}function yn(t,e){return pr(t,e,At)}function wn(t,e){return pr(t,e,De)}function mr(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set,r=!1,a=Ia(t,(function(o){var i=Wa(o),u=i.name,d=i.fallback;if(n.has(u))return r=!0,null;n.add(u);var s=e.get(u)||d,f=null;return s&&(f=oe(s)?mr(s,e,n):s),f||(r=!0,null)}));return r?null:a}var ye={"background-color":{customProp:"--wp-dark-mode-inline-bgcolor",cssProp:"background-color",dataAttr:"data-wp-dark-mode-inline-bgcolor"},"background-image":{customProp:"--wp-dark-mode-inline-bgimage",cssProp:"background-image",dataAttr:"data-wp-dark-mode-inline-bgimage"},"border-color":{customProp:"--wp-dark-mode-inline-border",cssProp:"border-color",dataAttr:"data-wp-dark-mode-inline-border"},"border-bottom-color":{customProp:"--wp-dark-mode-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-wp-dark-mode-inline-border-bottom"},"border-left-color":{customProp:"--wp-dark-mode-inline-border-left",cssProp:"border-left-color",dataAttr:"data-wp-dark-mode-inline-border-left"},"border-right-color":{customProp:"--wp-dark-mode-inline-border-right",cssProp:"border-right-color",dataAttr:"data-wp-dark-mode-inline-border-right"},"border-top-color":{customProp:"--wp-dark-mode-inline-border-top",cssProp:"border-top-color",dataAttr:"data-wp-dark-mode-inline-border-top"},"box-shadow":{customProp:"--wp-dark-mode-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-wp-dark-mode-inline-boxshadow"},color:{customProp:"--wp-dark-mode-inline-color",cssProp:"color",dataAttr:"data-wp-dark-mode-inline-color"},fill:{customProp:"--wp-dark-mode-inline-fill",cssProp:"fill",dataAttr:"data-wp-dark-mode-inline-fill"},stroke:{customProp:"--wp-dark-mode-inline-stroke",cssProp:"stroke",dataAttr:"data-wp-dark-mode-inline-stroke"},"outline-color":{customProp:"--wp-dark-mode-inline-outline",cssProp:"outline-color",dataAttr:"data-wp-dark-mode-inline-outline"},"stop-color":{customProp:"--wp-dark-mode-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-wp-dark-mode-inline-stopcolor"}},Ga={background:{customProp:"--wp-dark-mode-inline-bg",cssProp:"background",dataAttr:"data-wp-dark-mode-inline-bg"}},vr=Object.values(ye),gr={};vr.forEach((function(t){var e=t.cssProp,n=t.customProp;return gr[n]=e}));var kn=["style","fill","stop-color","stroke","bgcolor","color","background"],We=kn.map((function(t){return"[".concat(t,"]")})).join(", ");function $a(){return vr.concat(Object.values(Ga)).map((function(t){var e=t.dataAttr,n=t.customProp,r=t.cssProp;return["[".concat(e,"] {"),"  ".concat(r,": var(").concat(n,") !important;"),"}"].join(`
`)})).join(`
`)}var qe=new Map,Sn=new Map;function br(t,e,n){qe.has(t)&&(qe.get(t).disconnect(),Sn.get(t).disconnect());var r=new WeakSet;function a(p){(function(h){var v=[];return h instanceof Element&&h.matches(We)&&v.push(h),(h instanceof Element||Pt&&h instanceof ShadowRoot||h instanceof Document)&&jn(v,h.querySelectorAll(We)),v})(p).forEach((function(h){r.has(h)||(r.add(h),e(h))})),fe(p,(function(h){r.has(p)||(r.add(p),n(h.shadowRoot),br(h.shadowRoot,e,n))})),nt.matchVariablesAndDependents()}var o=Yr(t,{onMinorMutations:function(p,h){h.additions.forEach((function(v){return a(v)}))},onHugeMutations:function(){a(t)}});qe.set(t,o);var i=0,u=null,d=tn({seconds:10}),s=tn({seconds:2}),f=[],l=null,c=In((function(p){var h=new Set;p.forEach((function(v){var g=v.target;h.has(g)||kn.includes(v.attributeName)&&(h.add(g),e(g))})),nt.matchVariablesAndDependents()})),m=new MutationObserver((function(p){if(l){var h;(h=f).push.apply(h,kt(p))}else{i++;var v=Date.now();if(u==null)u=v;else if(i>=50){var g;if(v-u<d)return l=setTimeout((function(){u=null,i=0,l=null;var C=f;f=[],c(C)}),s),void(g=f).push.apply(g,kt(p));u=v,i=1}c(p)}}));m.observe(t,{attributes:!0,attributeFilter:kn.concat(vr.map((function(p){return p.dataAttr}))),subtree:!0}),Sn.set(t,m)}var yr=new WeakMap,Ri=["brightness","contrast","grayscale","sepia","mode"];function wr(t,e){return kn.map((function(n){return"".concat(n,'="').concat(t.getAttribute(n),'"')})).concat(Ri.map((function(n){return"".concat(n,'="').concat(e[n],'"')}))).join(" ")}function kr(t,e,n,r){var a;if(Fr(t)){t.classList.add("wp-dark-mode-ignore");return}if(wr(t,e)!==yr.get(t)){var o=new Set(Object.keys(ye));if(n.length>0&&(function(p,h){for(var v=0,g=h.length;v<g;v++){var C=h[v];if(p.matches(C))return!0}return!1})(t,n))o.forEach((function(p){t.removeAttribute(ye[p].dataAttr)}));else{if(t.hasAttribute("bgcolor")){var i=t.getAttribute("bgcolor");(i.match(/^[0-9a-f]{3}$/i)||i.match(/^[0-9a-f]{6}$/i))&&(i="#".concat(i)),m("background-color","background-color",i)}if((t===document.documentElement||t===document.body)&&t.hasAttribute("background")){var u,d=cn(location.href,(u=t.getAttribute("background"))!==null&&u!==void 0?u:"");m("background-image","background-image",'url("'.concat(d,'")'))}if(t.hasAttribute("color")&&t.rel!=="mask-icon"){var s=t.getAttribute("color");(s.match(/^[0-9a-f]{3}$/i)||s.match(/^[0-9a-f]{6}$/i))&&(s="#".concat(s)),m("color","color",s)}if(t instanceof SVGElement){if(t.hasAttribute("fill")){var f=t.getAttribute("fill");if(f!=="none")if(t instanceof SVGTextElement)m("fill","color",f);else{var l=function(){var p=t.getBoundingClientRect(),h=p.width,v=p.height;m("fill",h>32||v>32?"background-color":"color",f)};nn()?l():Bn(l)}}t.hasAttribute("stop-color")&&m("stop-color","background-color",t.getAttribute("stop-color"))}if(t.hasAttribute("stroke")){var c=t.getAttribute("stroke");m("stroke",t instanceof SVGLineElement||t instanceof SVGTextElement?"border-color":"color",c)}t.style&&he(t.style,(function(p,h){if(p==="background-image"&&h.includes("url"))t!==document.documentElement&&t!==document.body||m(p,p,h);else if(ye.hasOwnProperty(p)||p.startsWith("--")&&!gr[p])m(p,p,h);else if(p==="background"&&h.includes("var("))m("background","background",h);else{var v=gr[p];if(v&&!t.style.getPropertyValue(v)&&!t.hasAttribute(v)){if(v==="background-color"&&t.hasAttribute("bgcolor"))return;t.style.setProperty(p,"")}}})),t.style&&t instanceof SVGTextElement&&t.style.fill&&m("fill","color",t.style.getPropertyValue("fill")),(a=t.getAttribute("style"))!==null&&a!==void 0&&a.includes("--")&&nt.addInlineStyleForMatching(t.style),Et(o,(function(p){t.removeAttribute(ye[p].dataAttr)})),yr.set(t,wr(t,e))}}function m(p,h,v){var g=Pa(h,v,{style:t.style},nt,r,null);if(g){var C,A=typeof g.value=="function"?g.value(e):g.value;typeof A=="string"?V(A):A instanceof Promise?(C=v,A.then((function(w){w&&p==="background"&&w.startsWith("var(--wp-dark-mode-bg--")&&V(w),w&&p==="background-image"&&(t!==document.documentElement&&t!==document.body||w!==C||(w="none"),V(w)),yr.set(t,wr(t,e))}))):Ot(A)==="object"&&(function(w){var D=[];function b(k){D.forEach((function(L){var O=L.property;t.style.removeProperty(O)})),k.forEach((function(L){var O=L.property,B=L.value;B instanceof Promise||t.style.setProperty(O,B)})),D=k}b(w.declarations),w.onTypeChange.addListener(b)})(A)}function V(w){var D,b=(D=ye[p])!==null&&D!==void 0?D:Ga[p],k=b.customProp,L=b.dataAttr;t.style.setProperty(k,w),t.hasAttribute(L)||t.setAttribute(L,""),o.delete(p)}}}var za="theme-color",Qa='meta[name="'.concat(za,'"]'),En=null,Xt=null;function Ka(t,e){var n=ft(En=En||t.content);n&&(t.content=ht(n,e))}var Ti=/\/\*[\s\S]*?\*\//g;function Sr(t){return t.replace(Ti,"")}var Li=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"],Mi=(function(){var t=[],e=null;function n(){for(var r;r=t.shift();)r();e=null}return{add:function(r){t.push(r),e||(e=requestAnimationFrame(n))},cancel:function(){t.splice(0),cancelAnimationFrame(e),e=null}}})();function Er(){var t=0,e=new Set,n=new Map,r=new Set,a=null,o=!1,i=!1;return{modifySheet:function(u){var d=u.sourceCSSRules,s=u.theme,f=u.ignoreImageAnalysis,l=f===void 0||f,c=u.force,m=u.prepareSheet,p=u.isAsyncCancelled,h=n.size===0,v=new Set(n.keys()),g=(function(E){var W="";return Li.forEach((function(I){W+="".concat(I,":").concat(E[I],";")})),W})(s),C=g!==a;o&&(i=!0);var A=[];if(ae(d,(function(E){var W=(function(R){var z=R.cssText;return zn(R.parentRule)&&(z="".concat(R.parentRule.media.mediaText," { ").concat(z," }")),Xr(z)})(E),I=!1;if(v.delete(W),e.has(W)||(e.add(W),I=!0),I){if(h=!0,E.style.all!=="revert"){var Q=[];E.style&&he(E.style,(function(R,z){var K=Pa(R,z,E,nt,l,p);K&&Q.push(K)}));var P=null;if(Q.length>0){var q=E.parentRule;P={selector:E.selectorText,declarations:Q,parentRule:q},A.push(P)}n.set(W,P)}}else A.push(n.get(W))}),(function(){o=!0})),v.forEach((function(E){e.delete(E),n.delete(E)})),a=g,c||h||C){t++;var V=new Map,w=new Map,D=0,b=0,k={rule:null,rules:[],isGroup:!0},L=new WeakMap;r.forEach((function(E){return E()})),r.clear(),A.filter((function(E){return E})).forEach((function(E){var W=E.selector,I=E.declarations,Q=F(E.parentRule),P={selector:W,declarations:[],isGroup:!1},q=P.declarations;function R(K,Z,Y,it){var ct=++D,G={property:K,value:null,important:Y,asyncKey:ct,sourceValue:it};q.push(G);var wt=t;Z.then((function(_e){_e&&!p()&&wt===t&&(G.value=_e,Mi.add((function(){var ce,Ft,ze,Mt,$t;p()||wt!==t||(ce=ct,Ft=V.get(ce),ze=Ft.rule,Mt=Ft.target,$t=Ft.index,Mt.deleteRule($t),B(Mt,$t,ze),V.delete(ce))})))}))}function z(K,Z,Y,it){var ct=Z.declarations,G=Z.onTypeChange,wt=++b,_e=t,ce=q.length,Ft=[];if(ct.length===0){var ze={property:K,value:it,important:Y,sourceValue:it,varKey:wt};q.push(ze),Ft=[ze]}ct.forEach((function(Mt){if(Mt.value instanceof Promise)R(Mt.property,Mt.value,Y,it);else{var $t={property:Mt.property,value:Mt.value,important:Y,sourceValue:it,varKey:wt};q.push($t),Ft.push($t)}})),G.addListener((function(Mt){if(!p()&&_e===t){var $t=Mt.map((function(Pn){return{property:Pn.property,value:Pn.value,important:Y,sourceValue:it,varKey:wt}})),eu=q.indexOf(Ft[0],ce);q.splice.apply(q,[eu,Ft.length].concat(kt($t))),Ft=$t,(function(Pn){var Nr=w.get(Pn),nu=Nr.rule,Po=Nr.target,Do=Nr.index;Po.deleteRule(Do),B(Po,Do,nu)})(wt)}})),r.add((function(){return G.removeListeners()}))}Q.rules.push(P),I.forEach((function(K){var Z=K.property,Y=K.value,it=K.important,ct=K.sourceValue;if(typeof Y=="function"){var G=Y(s);G instanceof Promise?R(Z,G,it,ct):Z.startsWith("--")?z(Z,G,it,ct):q.push({property:Z,value:G,important:it,sourceValue:ct})}else q.push({property:Z,value:Y,important:it,sourceValue:ct})}))}));var O=m();(function E(W,I,Q){W.rules.forEach((function(P){if(P.isGroup){var q=(function(R,z){var K=R.rule;if(zn(K)){var Z=K.media,Y=z.cssRules.length;return z.insertRule("@media ".concat(Z.mediaText," {}"),Y),z.cssRules[Y]}if(la(K)){var it=K.name,ct=z.cssRules.length;return z.insertRule("@layer ".concat(it," {}"),ct),z.cssRules[ct]}return z})(P,I);E(P,q,Q)}else Q(P,I)}))})(k,O,(function(E,W){var I=W.cssRules.length;E.declarations.forEach((function(Q){var P=Q.asyncKey,q=Q.varKey;P!=null&&V.set(P,{rule:E,target:W,index:I}),q!=null&&w.set(q,{rule:E,target:W,index:I})})),B(W,I,E)}))}function B(E,W,I){var Q=I.selector,P=I.declarations,q=document.querySelector(Q);if(!Fr(q)){var R=Q,z=Ye&&Q.startsWith(":is(")&&(Q.includes(":is()")||Q.includes(":where()")||Q.includes(":where(")&&Q.includes(":-moz")),K=Q.includes("::view-transition-");(z||K)&&(R=".wp-dark-mode-unsupported-selector");var Z,Y=" ".concat(R," {"),it=Wt(P);try{for(it.s();!(Z=it.n()).done;){var ct=Z.value,G=ct.property,wt=ct.value,_e=ct.important;wt&&(Y+=" ".concat(G,": ").concat(wt).concat(_e?" !important":"",";"))}}catch(ce){it.e(ce)}finally{it.f()}Y+=" }",E.insertRule(Y,W)}}function F(E){if(E==null)return k;if(L.has(E))return L.get(E);var W={rule:E,rules:[],isGroup:!0};return L.set(E,W),F(E.parentRule).rules.push(W),W}},shouldRebuildStyle:function(){return o&&!i}}}var xn=!1;function Vi(t,e,n,r){var a=null,o=!1;function i(){var u;xn=!0,(u=a)===null||u===void 0||u.stop(),o||(o=!0,queueMicrotask((function(){o=!1,r()||n()})))}return{start:function(){t.addEventListener("__wp_dark_mode__updateSheet",i),xn&&t.sheet||(a=(function(u,d,s,f){var l=null,c=null;function m(){var g=d();return g?g.length:null}function p(){return m()!==l}function h(){l=m(),v(),(function g(){var C=f();!C&&p()&&(l=m(),s()),C||xn&&u.sheet?v():c=requestAnimationFrame(g)})()}function v(){c&&cancelAnimationFrame(c)}return{start:h,stop:v}})(t,e,n,r),a.start())},stop:function(){var u;t.removeEventListener("__wp_dark_mode__updateSheet",i),(u=a)===null||u===void 0||u.stop()}}}document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){return xn=!0}),{once:!0});var Oi='style, link[rel*="stylesheet" i]:not([disabled])',Pi=["www.onet.pl"];function Ya(t){return(t instanceof HTMLStyleElement||t instanceof SVGStyleElement&&!Pi.includes(location.hostname)||t instanceof HTMLLinkElement&&!!t.rel&&t.rel.toLowerCase().includes("stylesheet")&&!!t.href&&!t.disabled&&(!qt||!t.href.startsWith("moz-extension://"))&&!(function(e){if(!e.href)return!1;try{return new URL(e.href).hostname==="fonts.googleapis.com"}catch{return"Couldn't construct ".concat(e.href," as URL"),!1}})(t))&&!t.classList.contains("wp-dark-mode")&&t.media.toLowerCase()!=="print"&&!t.classList.contains("stylus")&&!t.id.startsWith("wp-dark-mode-")&&!t.classList.contains("wp-dark-mode")&&!t.matches(".wp-dark-mode-ignore, .wp-dark-mode-ignore *")}function Jt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return Ya(t)?e.push(t):(t instanceof Element||Pt&&t instanceof ShadowRoot||t===document)&&(Et(t.querySelectorAll(Oi),(function(r){return Jt(r,e,!1)})),n&&fe(t,(function(r){return Jt(r.shadowRoot,e,!1)}))),e}var Xa=new WeakSet,Ja=new WeakSet,Di=0,we=new Map;function Ni(t,e){for(var n=e.update,r=e.loadingStart,a=e.loadingEnd,o=[],i=t;(i=i.nextElementSibling)&&i.matches(".wp-dark-mode");)o.push(i);var u=o.find((function(P){return P.matches(".wp-dark-mode--cors")&&!Ja.has(P)}))||null,d=o.find((function(P){return P.matches(".wp-dark-mode--sync")&&!Xa.has(P)}))||null,s=null,f=null,l=!1,c=!0,m=function(){return l},p=Er(),h=new MutationObserver((function(P){var q;P.some((function(R){return R.type==="characterData"}))&&g()?L(((q=t.textContent)!==null&&q!==void 0?q:"").trim(),location.href).then(n):n()})),v={attributes:!0,childList:!0,subtree:!0,characterData:!0};function g(){var P;return t instanceof HTMLStyleElement&&Sr((P=t.textContent)!==null&&P!==void 0?P:"").trim().match(aa)}function C(P,q){var R,z=!1;if(P){t:for(var K=0,Z=P.length;K<Z;K++)if((R=P[K]).href){if(!q){z=!0;break t}if(!R.href.startsWith("https://fonts.googleapis.com/")&&R.href.startsWith("http")&&!R.href.startsWith(location.origin)){z=!0;break t}}}return z}function A(){if(u)return u.sheet.cssRules;if(g())return null;var P=E();return t instanceof HTMLLinkElement&&!(function(q){if(q.startsWith("data:"))return!0;var R=un(q);return R.protocol===location.protocol&&R.hostname===location.hostname&&R.port===location.port&&R.pathname===location.pathname})(t.href)&&C(P,!1)||C(P,!0)?null:P}function V(){u?(t.nextSibling!==u&&t.parentNode.insertBefore(u,t.nextSibling),u.nextSibling!==d&&t.parentNode.insertBefore(d,u.nextSibling)):t.nextSibling!==d&&t.parentNode.insertBefore(d,t.nextSibling)}var w=!1,D=!1,b=++Di;function k(){return(k=et(j().mark((function P(){var q,R,z,K,Z,Y,it,ct;return j().wrap((function(G){for(;;)switch(G.prev=G.next){case 0:if(!(t instanceof HTMLLinkElement)){G.next=29;break}if(z=F(),K=pt(z,2),Z=K[0],Y=K[1],!(Bt&&!t.sheet||!Bt&&!Z&&!Y||(wt=Y,wt&&wt.message&&wt.message.includes("loading")))){G.next=18;break}return G.prev=3,G.next=7,Fi(t,b);case 7:G.next=12;break;case 9:G.prev=9,G.t0=G.catch(3),D=!0;case 12:if(!l){G.next=14;break}return G.abrupt("return",null);case 14:it=F(),ct=pt(it,2),Z=ct[0],Y=ct[1];case 18:if(!Z){G.next=21;break}if(C(Z,!1)){G.next=21;break}return G.abrupt("return",Z);case 21:return G.next=23,to(t.href);case 23:if(q=G.sent,R=sn(t.href),!l){G.next=27;break}return G.abrupt("return",null);case 27:G.next=35;break;case 29:if(!g()){G.next=34;break}q=t.textContent.trim(),R=sn(location.href),G.next=35;break;case 34:return G.abrupt("return",null);case 35:return G.next=37,L(q,R);case 37:if(!u){G.next=39;break}return G.abrupt("return",u.sheet.cssRules);case 39:return G.abrupt("return",null);case 40:case"end":return G.stop()}var wt}),P,null,[[3,9]])})))).apply(this,arguments)}function L(P,q){return O.apply(this,arguments)}function O(){return(O=et(j().mark((function P(q,R){var z,K,Z;return j().wrap((function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!q){Y.next=11;break}return Y.prev=1,Y.next=4,no(q,R);case 4:z=Y.sent,u?((K=(Z=u.textContent)===null||Z===void 0?void 0:Z.length)!==null&&K!==void 0?K:0)<z.length&&(u.textContent=z):u=ji(t,z),Y.next=10;break;case 8:Y.prev=8,Y.t0=Y.catch(1);case 10:u&&(s=qn(u,"prev-sibling"));case 11:case"end":return Y.stop()}}),P,null,[[1,8]])})))).apply(this,arguments)}var B=!1;function F(){try{return t.sheet==null?[null,null]:[t.sheet.cssRules,null]}catch(P){return[null,P]}}function E(){var P=pt(F(),2),q=P[0];return P[1]?null:q}var W=Vi(t,E,n,m);function I(){h.disconnect(),l=!0,s&&s.stop(),f&&f.stop(),W.stop()}var Q=0;return{details:function(P){var q=A();return q?{rules:q}:(P.secondRound||w||D||(w=!0,r(),(function(){return k.apply(this,arguments)})().then((function(R){w=!1,a(),R&&n()})).catch((function(R){w=!1,a()}))),null)},render:function(P){var q=A();function R(){return d||((d=t instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style")).classList.add("wp-dark-mode"),d.classList.add("wp-dark-mode--sync"),d.media="screen",t.title&&(d.title=t.title),Xa.add(d)),f&&f.stop(),V(),d.sheet==null&&(d.textContent=""),(function(K){if(K)for(var Z=K.cssRules.length-1;Z>=0;Z--)K.deleteRule(Z)})(d.sheet),f?f.run():f=qn(d,"prev-sibling",(function(){B=!0,z()})),d.sheet}function z(){var K=B;B=!1,p.modifySheet({prepareSheet:R,sourceCSSRules:q,theme:P,ignoreImageAnalysis:!0,force:K,isAsyncCancelled:m}),c=d.sheet.cssRules.length===0,p.shouldRebuildStyle()&&Bn((function(){return n()}))}q&&(l=!1,z())},pause:I,destroy:function(){if(I(),bt(u),bt(d),a(),we.has(b)){var P=we.get(b);we.delete(b),P&&P()}},watch:function(){h.observe(t,v),t instanceof HTMLStyleElement&&W.start()},restore:function(){d&&(++Q>10||(V(),s&&s.skip(),f&&f.skip(),c||(B=!0,n())))}}}function Fi(t,e){return Za.apply(this,arguments)}function Za(){return(Za=et(j().mark((function t(e,n){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(a,o){var i=function(){e.removeEventListener("load",u),e.removeEventListener("error",d),we.delete(n)},u=function(){i(),a()},d=function(){i(),o("Linkelement ".concat(n," couldn't be loaded. ").concat(e.href))};we.set(n,(function(){i(),o()})),e.addEventListener("load",u,{passive:!0}),e.addEventListener("error",d,{passive:!0}),e.href||d()})));case 1:case"end":return r.stop()}}),t)})))).apply(this,arguments)}function to(t){return eo.apply(this,arguments)}function eo(){return(eo=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.startsWith("data:")){n.next=6;break}return n.next=3,fetch(e);case 3:return n.next=5,n.sent.text();case 5:case 10:case 13:return n.abrupt("return",n.sent);case 6:if(new URL(e).origin!==location.origin){n.next=11;break}return n.next=10,Te(e,"text/css",location.origin);case 11:return n.next=13,Ea({url:e,responseType:"text",mimeType:"text/css",origin:location.origin});case 14:case"end":return n.stop()}}),t)})))).apply(this,arguments)}function no(t,e){return xr.apply(this,arguments)}function xr(){return xr=et(j().mark((function t(e,n){var r,a,o,i,u,d,s,f,l=arguments;return j().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:r=l.length>2&&l[2]!==void 0?l[2]:new Map,e=Bo(e=(e=Sr(e)).replace(Uo,""),n),a=Le(aa,e),o=Wt(a),c.prev=6,o.s();case 8:if((i=o.n()).done){c.next=33;break}if(u=i.value,d=$n(u.substring(7).trim().replace(/;$/,"").replace(/screen$/,"")),s=cn(n,d),f=void 0,!r.has(s)){c.next=17;break}f=r.get(s),c.next=30;break;case 17:return c.prev=17,c.next=20,to(s);case 20:return f=c.sent,r.set(s,f),c.next=24,no(f,sn(s),r);case 24:f=c.sent,c.next=30;break;case 27:c.prev=27,c.t0=c.catch(17),f="";case 30:e=e.split(u).join(f);case 31:c.next=8;break;case 33:c.next=38;break;case 35:c.prev=35,c.t1=c.catch(6),o.e(c.t1);case 38:return c.prev=38,o.f(),c.finish(38);case 41:return e=e.trim(),c.abrupt("return",e);case 43:case"end":return c.stop()}}),t,null,[[6,35,38,41],[17,27]])}))),xr.apply(this,arguments)}function ji(t,e){if(!e)return null;var n=document.createElement("style");return n.classList.add("wp-dark-mode"),n.classList.add("wp-dark-mode--cors"),n.media="screen",n.textContent=e,t.parentNode.insertBefore(n,t.nextSibling),n.sheet.disabled=!0,Ja.add(n),n}var _n,ro=new Set,ie=new Map;function ao(t){var e=t.tagName.toLowerCase();if(!e.includes("-")){var n=t.getAttribute("is");if(!n)return;e=n}ie.has(e)||(ie.set(e,new Set),(function(r){return io.apply(this,arguments)})(e).then((function(){if(_n){var r=ie.get(e);ie.delete(e),_n(Array.from(r))}}))),ie.get(e).add(t)}function Cn(t){Ae&&Et(t.querySelectorAll(":not(:defined)"),ao)}var _r=!1;document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){_r=!0}),{once:!0,passive:!0});var ke=new Map;function oo(t){_r=!0;var e=t.detail.tag;if(ro.add(e),ke.has(e)){var n=ke.get(e);ke.delete(e),n.forEach((function(r){return r()}))}}function io(){return(io=et(j().mark((function t(e){return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!ro.has(e)){n.next=2;break}return n.abrupt("return");case 2:return n.abrupt("return",new Promise((function(r){window.customElements&&typeof customElements.whenDefined=="function"?customElements.whenDefined(e).then((function(){return r()})):_r?(ke.has(e)?ke.get(e).push(r):ke.set(e,[r]),document.dispatchEvent(new CustomEvent("__wp_dark_mode__addUndefinedResolver",{detail:{tag:e}}))):requestAnimationFrame((function a(){var o=ie.get(e);o&&o.size>0&&(o.values().next().value.matches(":defined")?r():requestAnimationFrame(a))}))})));case 3:case"end":return n.stop()}}),t)})))).apply(this,arguments)}var An,Rn=[];function Ii(t,e,n){uo();var r=new WeakMap,a=function(h){return r.has(h)||r.set(h,new Set),r.get(h)};t.forEach((function(h){for(var v=h;v=v.parentNode;)if(v===document||v.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a(v).add(h);break}}));var o=new WeakMap,i=new WeakMap;function u(h){o.set(h,h.previousElementSibling),i.set(h,h.nextElementSibling)}function d(h,v){var g=v.createdStyles,C=v.removedStyles,A=v.movedStyles;g.forEach((function(w){return u(w)})),A.forEach((function(w){return u(w)})),C.forEach((function(w){return D=w,o.delete(D),void i.delete(D);var D}));var V=a(h);g.forEach((function(w){return V.add(w)})),C.forEach((function(w){return V.delete(w)})),g.size+C.size+A.size>0&&e({created:Array.from(g),removed:Array.from(C),moved:Array.from(A),updated:[]})}function s(h,v){var g=v.additions,C=v.moves,A=v.deletions,V=new Set,w=new Set,D=new Set;g.forEach((function(b){return Jt(b).forEach((function(k){return V.add(k)}))})),A.forEach((function(b){return Jt(b).forEach((function(k){return w.add(k)}))})),C.forEach((function(b){return Jt(b).forEach((function(k){return D.add(k)}))})),d(h,{createdStyles:V,removedStyles:w,movedStyles:D}),g.forEach((function(b){p(b),Cn(b)})),g.forEach((function(b){return!(!(k=b).tagName.includes("-")&&!k.getAttribute("is"))&&ao(b);var k}))}function f(h){var v=new Set(Jt(h)),g=new Set,C=new Set,A=new Set,V=a(h);v.forEach((function(w){V.has(w)||g.add(w)})),V.forEach((function(w){v.has(w)||C.add(w)})),v.forEach((function(w){var D;g.has(w)||C.has(w)||(D=w).previousElementSibling===o.get(D)&&D.nextElementSibling===i.get(D)||A.add(w)})),d(h,{createdStyles:g,removedStyles:C,movedStyles:A}),p(h),Cn(h)}function l(h){var v=new Set,g=new Set;h.forEach((function(C){var A=C.target;A.isConnected&&(Ya(A)?v.add(A):A instanceof HTMLLinkElement&&A.disabled&&g.add(A))})),v.size+g.size>0&&e({updated:Array.from(v),created:[],removed:Array.from(g),moved:[]})}function c(h){if(!An.has(h)){var v=Yr(h,{onMinorMutations:s,onHugeMutations:f}),g=new MutationObserver(l);g.observe(h,{attributeFilter:["rel","disabled","media","href"],subtree:!0}),Rn.push(v,g),An.add(h)}}function m(h){var v=h.shadowRoot;v==null||An.has(v)||(c(v),n(v))}function p(h){fe(h,m)}t.forEach(u),c(document),p(document.documentElement),_n=function(h){var v=[];h.forEach((function(g){return jn(v,Jt(g.shadowRoot))})),e({created:v,updated:[],removed:[],moved:[]}),h.forEach((function(g){var C=g.shadowRoot;C!=null&&(m(g),p(C),Cn(C))}))},document.addEventListener("__wp_dark_mode__isDefined",oo),Cn(document)}function uo(){Rn.forEach((function(t){return t.disconnect()})),Rn.splice(0,Rn.length),An=new WeakSet,_n=null,ie.clear(),document.removeEventListener("__wp_dark_mode__isDefined",oo)}var Tn=!1;document.addEventListener("__wp_dark_mode__inlineScriptsAllowed",(function(){return Tn=!0}),{once:!0});var Se=new WeakSet,Cr=new WeakMap;function Wi(t){var e=!1;function n(p,h){var v=kt(t.adoptedStyleSheets),g=v.indexOf(p),C=v.indexOf(h);C>=0&&v.splice(C,1),v.splice(g+1,0,h),t.adoptedStyleSheets=v}function r(){for(var p=kt(t.adoptedStyleSheets),h=p.length-1;h>=0;h--){var v=p[h];Se.has(v)&&(p.splice(h,1),Se.delete(v))}t.adoptedStyleSheets.length!==p.length&&(t.adoptedStyleSheets=p),u=new WeakSet,d=new WeakSet}var a=[],o=0;function i(){var p,h=0;if(p=function(g){h+=g.cssRules.length},t.adoptedStyleSheets.forEach((function(g){Se.has(g)||p(g)})),h===1){var v=t.adoptedStyleSheets[0].cssRules[0];return v instanceof CSSStyleRule?v.style.length:h}return h}var u=new WeakSet,d=new WeakSet,s=!1;function f(p){s||(s=!0,queueMicrotask((function(){s=!1;var h=t.adoptedStyleSheets.filter((function(v){return!Se.has(v)}));h.forEach((function(v){return Cr.delete(v)})),p(h)})))}var l=null;function c(p){l=requestAnimationFrame((function(){Tn||(i()!==o&&f(p),c(p))}))}function m(p,h){t.addEventListener(p,h),a.push((function(){return t.removeEventListener(p,h)}))}return{render:function(p){r();for(var h=function(){var g=t.adoptedStyleSheets[v];if(Se.has(g))return 0;u.add(g);var C=Cr.get(g);if(C)return o=i(),n(g,C),0;var A=g.cssRules,V=new CSSStyleSheet;Cr.set(g,V),ae(A,(function(w){return d.add(w.style)})),Er().modifySheet({prepareSheet:function(){for(var w=V.cssRules.length-1;w>=0;w--)V.deleteRule(w);return V.insertRule("#__wp_dark_mode__adoptedOverride {}"),n(g,V),Se.add(V),V},sourceCSSRules:A,theme:p,ignoreImageAnalysis:!0,force:!1,isAsyncCancelled:function(){return e}})},v=t.adoptedStyleSheets.length-1;v>=0;v--)h();o=i()},destroy:function(){a.forEach((function(p){return p()})),a.splice(0),e=!0,r(),l&&(cancelAnimationFrame(l),l=null)},watch:function(p){var h=function(){Tn=!0,f(p)};m("__wp_dark_mode__adoptedStyleSheetsChange",h),m("__wp_dark_mode__adoptedStyleSheetChange",h),m("__wp_dark_mode__adoptedStyleDeclarationChange",h),Tn||c(p)}}}var qi=(function(){function t(e){Qe(this,t),this.cssRules=[],this.commands=[],this.onChange=e}return Ke(t,[{key:"insertRule",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.commands.push({type:"insert",index:n,cssText:e}),this.cssRules.splice(n,0,new t(this.onChange)),this.onChange(),n}},{key:"deleteRule",value:function(e){this.commands.push({type:"delete",index:e}),this.cssRules.splice(e,1),this.onChange()}},{key:"replaceSync",value:function(e){if(this.commands.splice(0),this.commands.push({type:"replace",cssText:e}),e!=="")throw new Error("StyleSheetCommandBuilder.replaceSync() is not fully supported");this.cssRules.splice(0),this.onChange()}},{key:"getDeepCSSCommands",value:function(){var e=[];return this.commands.forEach((function(n){e.push({type:n.type,cssText:n.type!=="delete"?n.cssText:"",path:n.type==="replace"?[]:[n.index]})})),this.cssRules.forEach((function(n,r){n.getDeepCSSCommands().forEach((function(a){return a.path.unshift(r)}))})),e}},{key:"clearDeepCSSCommands",value:function(){this.commands.splice(0),this.cssRules.forEach((function(e){return e.clearDeepCSSCommands()}))}}]),t})();function Bi(t,e){document.dispatchEvent(new CustomEvent("__wp_dark_mode__inlineScriptsAllowed"));var n=[];function r(b,k,L){document.addEventListener(b,k,L),n.push((function(){return document.removeEventListener(b,k)}))}function a(b,k,L){var O=b.prototype,B=Object.getOwnPropertyDescriptor(O,k),F=tt({},B);Object.keys(L).forEach((function(E){var W=L[E];F[E]=W(B[E])})),Object.defineProperty(O,k,F),n.push((function(){return Object.defineProperty(O,k,B)}))}function o(b,k,L){a(b,k,{value:L})}function i(b){var k;return b==null||(k=b.classList)===null||k===void 0?void 0:k.contains("wp-dark-mode")}function u(b){return i(b.ownerNode)}r("__wp_dark_mode__cleanUp",(function(){n.forEach((function(b){return b()})),n.splice(0)}));var d=new CustomEvent("__wp_dark_mode__updateSheet"),s=new CustomEvent("__wp_dark_mode__adoptedStyleSheetChange"),f=new WeakMap,l=new WeakMap;function c(b){var k=f.get(b);k==null||k.forEach((function(L){L.isConnected?L.dispatchEvent(s):k.delete(L)}))}function m(b){b.ownerNode&&!u(b)&&b.ownerNode.dispatchEvent(d),f.has(b)&&c(b)}function p(b){customElements.whenDefined(b).then((function(){document.dispatchEvent(new CustomEvent("__wp_dark_mode__isDefined",{detail:{tag:b}}))}))}function h(){return(h=et(j().mark((function b(){var k,L,O,B,F,E,W;return j().wrap((function(I){for(;;)switch(I.prev=I.next){case 0:for(k='<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" fill="transparent"/></svg>',L=new Uint8Array(114),O=0;O<114;O++)L[O]=k.charCodeAt(O);return B=new Blob([L],{type:"image/svg+xml"}),F=URL.createObjectURL(B),I.prev=5,W=new Image,I.next=9,new Promise((function(Q,P){W.onload=function(){return Q()},W.onerror=function(){return P()},W.src=F}));case 9:E=!0,I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),E=!1;case 15:document.dispatchEvent(new CustomEvent("__wp_dark_mode__blobURLCheckResponse",{detail:{blobURLAllowed:E}}));case 16:case"end":return I.stop()}}),b,null,[[5,12]])})))).apply(this,arguments)}o(CSSStyleSheet,"addRule",(function(b){return function(k,L,O){return b.call(this,k,L,O),m(this),-1}})),o(CSSStyleSheet,"insertRule",(function(b){return function(k,L){var O=b.call(this,k,L);return m(this),O}})),o(CSSStyleSheet,"deleteRule",(function(b){return function(k){b.call(this,k),m(this)}})),o(CSSStyleSheet,"removeRule",(function(b){return function(k){b.call(this,k),m(this)}})),o(CSSStyleSheet,"replace",(function(b){return function(k){var L,O,B,F=b.call(this,k);return O=F,(B=(L=this).ownerNode)&&!u(L)&&O&&O instanceof Promise&&O.then((function(){return B.dispatchEvent(d)})),f.has(L)&&O&&O instanceof Promise&&O.then((function(){return c(L)})),F}})),o(CSSStyleSheet,"replaceSync",(function(b){return function(k){b.call(this,k),m(this)}})),(location.hostname==="baidu.com"||location.hostname.endsWith(".baidu.com"))&&o(Element,"getElementsByTagName",(function(b){return function(k){var L=this;if(k!=="style")return b.call(this,k);var O=function(){var F=b.call(L,k);return Object.setPrototypeOf(kt(F).filter((function(E){return E&&!i(E)})),NodeList.prototype)},B=O();return B=new Proxy(B,{get:function(F,E){return O()[Number(E)||E]}})}})),["brilliant.org","www.vy.no"].includes(location.hostname)&&a(Node,"childNodes",{get:function(b){return function(){var k=b.call(this);return Object.setPrototypeOf(kt(k).filter((function(L){return!i(L)})),NodeList.prototype)}}}),r("__wp_dark_mode__addUndefinedResolver",(function(b){return p(b.detail.tag)})),e&&o(CustomElementRegistry,"define",(function(b){return function(k,L,O){p(k),b.call(this,k,L,O)}})),r("__wp_dark_mode__blobURLCheckRequest",(function(){return h.apply(this,arguments)}),{once:!0}),t&&a(Document,"styleSheets",{get:function(b){return function(){var k=this,L=function(){var B=kt(b.call(k)).filter((function(F){return F.ownerNode&&!u(F)}));return B.item=function(F){return B[F]},Object.setPrototypeOf(B,StyleSheetList.prototype)},O=L();return O=new Proxy(O,{get:function(B,F){return L()[F]}})}}});var v=new WeakMap,g=new WeakMap,C=new CustomEvent("__wp_dark_mode__adoptedStyleSheetsChange"),A=new WeakSet,V=new WeakMap,w=function(b){var k,L,O=V.get(b),B=(b.adoptedStyleSheets||[]).filter((function(F){return!((E=F)&&E.cssRules&&(A.has(E)||E.cssRules.length>0&&E.cssRules[0].cssText.startsWith("#__wp_dark_mode__adoptedOverride")&&(A.add(E),1)));var E}));V.set(b,B),O&&(L=B,(k=O).length===L.length&&k.every((function(F,E){return F===L[E]})))||(B.forEach((function(F){f.has(F)||f.set(F,new Set),f.get(F).add(b);var E,W=Wt(F.cssRules);try{for(W.s();!(E=W.n()).done;){var I=E.value.style;I&&l.set(I,F)}}catch(Q){W.e(Q)}finally{W.f()}})),b.dispatchEvent(C))};[Document,ShadowRoot].forEach((function(b){a(b,"adoptedStyleSheets",{get:function(k){return function(){return(function(L,O){if(g.has(O))return O;if(v.has(O))return v.get(O);var B=new Proxy(O,{deleteProperty:function(F,E){return delete F[E],!0},set:function(F,E,W){return F[E]=W,E==="length"&&w(L),!0}});return v.set(O,B),g.set(B,O),B})(this,k.call(this))}},set:function(k){return function(L){g.has(L)&&(L=g.get(L)),k.call(this,L),w(this)}}})}));var D=new CustomEvent("__wp_dark_mode__adoptedStyleDeclarationChange");["setProperty","removeProperty"].forEach((function(b){o(CSSStyleDeclaration,b,(function(k){return function(){for(var L=arguments.length,O=new Array(L),B=0;B<L;B++)O[B]=arguments[B];var F=k.apply(this,O),E=l.get(this);if(E){var W=f.get(E);W&&W.forEach((function(I){I.dispatchEvent(D)}))}return F}}))}))}var Gt=null,co=!document.hidden,Ee={capture:!0,passive:!0};function Ui(t){var e=!!Gt;Gt=function(){document.hidden||(so(),t(),co=!0)},e||(document.addEventListener("visibilitychange",Gt,Ee),window.addEventListener("pageshow",Gt,Ee),window.addEventListener("focus",Gt,Ee))}function so(){document.removeEventListener("visibilitychange",Gt,Ee),window.removeEventListener("pageshow",Gt,Ee),window.removeEventListener("focus",Gt,Ee),Gt=null}function lo(){return co}var fo=Sa(),Rt=new Map,Ln=[],Mn=new Map,ho=new WeakMap,Ar=new WeakMap,$=null,ot=null,po=null,xt=[],Be=[];function yt(t){var e=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.head||document).querySelector(".".concat(t));return e||((e=document.createElement("style")).classList.add("wp-dark-mode"),e.classList.add(t),e.media="screen",e.textContent=""),e}var Ue=new Map;function ue(t,e){Ue.has(e)&&Ue.get(e).stop(),Ue.set(e,qn(t,"head"))}var xe={};function Hi(){var t=yt("wp-dark-mode--fallback",document);t.textContent=lr($,{strict:!0}),document.head.insertBefore(t,document.head.firstChild),ue(t,"fallback");var e=yt("wp-dark-mode--user-agent");e.textContent=Si($,po,$.styleSystemControls),document.head.insertBefore(e,t.nextSibling),ue(e,"user-agent");var n,r,a=yt("wp-dark-mode--text");$.useFont||$.textStroke>0?a.textContent=(n=$,(r=[]).push('*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"],[class*="fa-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon, .dashicons, .ab-icon, .wp-dark-mode-ignore *, i){'),n.useFont&&n.fontFamily&&r.push("  font-family: ".concat(n.fontFamily," !important;")),n.textStroke>0&&(r.push("  -webkit-text-stroke: ".concat(n.textStroke,"px !important;")),r.push("  text-stroke: ".concat(n.textStroke,"px !important;"))),r.push("}"),r.join(`
`)):a.textContent="",document.head.insertBefore(a,t.nextSibling),ue(a,"text");var o=yt("wp-dark-mode--invert");ot&&Array.isArray(ot.invert)&&ot.invert.length>0?o.textContent=["".concat(ot.invert.join(", ")," {"),"    filter: ".concat(ka(tt(tt({},$),{},{contrast:$.mode===0?$.contrast:Kt($.contrast-10,0,100)}))," !important;"),"}"].join(`
`):o.textContent="",document.head.insertBefore(o,a.nextSibling),ue(o,"invert");var i=yt("wp-dark-mode--inline");i.textContent=$a(),document.head.insertBefore(i,o.nextSibling),ue(i,"inline");var u=yt("wp-dark-mode--override");u.textContent=ot&&ot.css?vo(ot.css):"",document.head.appendChild(u),ue(u,"override");var d=yt("wp-dark-mode--variables"),s=Na($),f=$,l=f.darkSchemeBackgroundColor,c=f.darkSchemeTextColor,m=f.lightSchemeBackgroundColor,p=f.lightSchemeTextColor,h=f.mode,v=h===0?m:l,g=h===0?p:c;v=ht(ft(v),$),g=At(ft(g),$),d.textContent=[":root {","  --wp-dark-mode-neutral-background: ".concat(v,";"),"  --wp-dark-mode-neutral-text: ".concat(g,";"),"  --wp-dark-mode-selection-background: ".concat(s.backgroundColorSelection,";"),"  --wp-dark-mode-selection-text: ".concat(s.foregroundColorSelection,";"),"}"].join(`
`),document.head.insertBefore(d,i.nextSibling),ue(d,"variables");var C=yt("wp-dark-mode--root-vars");document.head.insertBefore(C,d.nextSibling);var A=!(ot&&ot.disableStyleSheetsProxy),V=!(ot&&ot.disableCustomElementRegistryProxy);document.dispatchEvent(new CustomEvent("__wp_dark_mode__cleanUp"));var w=(function(D){var b=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.head||document).querySelector(".".concat(D));return b||((b=document.createElement("script")).classList.add("wp-dark-mode"),b.classList.add(D)),b})("wp-dark-mode--proxy");w.append("(".concat(Bi,")(").concat(A,", ").concat(V,")")),w.remove(),xe.background=v,xe.text=g,xe.selectionBackground=s.backgroundColorSelection,xe.selectionText=s.foregroundColorSelection}var Rr=new Set;function mo(t){var e=yt("wp-dark-mode--inline",t);e.textContent=$a(),t.insertBefore(e,t.firstChild);var n=yt("wp-dark-mode--override",t);n.textContent=ot&&ot.css?vo(ot.css):"",t.insertBefore(n,e.nextSibling);var r=yt("wp-dark-mode--invert",t);ot&&Array.isArray(ot.invert)&&ot.invert.length>0?r.textContent=["".concat(ot.invert.join(", ")," {"),"    filter: ".concat(ka(tt(tt({},$),{},{contrast:$.mode===0?$.contrast:Kt($.contrast-10,0,100)}))," !important;"),"}"].join(`
`):r.textContent="",t.insertBefore(r,n.nextSibling),Rr.add(t)}function Tr(t){var e=t.firstChild===null;mo(t),e&&(function(n){new MutationObserver((function(r,a){a.disconnect();var o,i=Wt(r);try{for(i.s();!(o=i.n()).done;){var u=o.value,d=u.type,s=u.removedNodes;if(d==="childList"){var f,l=Wt(s);try{for(l.s();!(f=l.n()).done;){var c=f.value,m=c.nodeName,p=c.className;if(m==="STYLE"&&["wp-dark-mode wp-dark-mode-inline","wp-dark-mode wp-dark-mode-override","wp-dark-mode wp-dark-mode-invert"].includes(p))return void mo(n)}}catch(h){l.e(h)}finally{l.f()}}}}catch(h){i.e(h)}finally{i.f()}})).observe(n,{childList:!0})})(t)}function vo(t){return t.replace(/\${(.+?)}/g,(function(e,n){var r=ft(n);return r?(function(a,o){return Pe(a,o,ni)})(r,$):n}))}function Lr(){var t=document.querySelector(".wp-dark-mode--fallback");t&&(t.textContent="")}var Gi=0,Zt=new Set;function go(t){var e=++Gi,n=Ni(t,{update:function(){var r=n.details({secondRound:!0});r&&(nt.addRulesForMatching(r.rules),nt.matchVariablesAndDependents(),n.render($,xt))},loadingStart:function(){if(!re()||!lo()){Zt.add(e),"Current amount of styles loading: ".concat(Zt.size);var r=document.querySelector(".wp-dark-mode--fallback");r.textContent||(r.textContent=lr($,{strict:!1}))}},loadingEnd:function(){Zt.delete(e),"Removed loadingStyle ".concat(e,", now awaiting: ").concat(Zt.size),Zt.size===0&&re()&&Lr()}});return Rt.set(t,n),n}function bo(t){var e=Rt.get(t);e&&(e.destroy(),Rt.delete(t))}var Vn,$i=In((function(t){Rt.forEach((function(e){return e.render($,xt)})),Ln.forEach((function(e){return e.render($,xt)})),t&&t()})),yo=function(){$i.cancel()};function wo(){Zt.size!==0||Lr()}function ko(){(function(){yo();var t=Jt(document).filter((function(o){return!Rt.has(o)})).map((function(o){return go(o)}));t.map((function(o){return o.details({secondRound:!1})})).filter((function(o){return o&&o.rules.length>0})).forEach((function(o){nt.addRulesForMatching(o.rules)})),nt.matchVariablesAndDependents(),nt.setOnRootVariableChange((function(){var o=yt("wp-dark-mode--root-vars");nt.putRootVars(o,$)}));var e=yt("wp-dark-mode--root-vars");nt.putRootVars(e,$),Rt.forEach((function(o){return o.render($,xt)})),Zt.size===0&&Lr(),t.forEach((function(o){return o.watch()}));var n=(function(o){for(var i=[],u=0,d=o.length;u<d;u++)i.push(o[u]);return i})(document.querySelectorAll(We));if(fe(document.documentElement,(function(o){Tr(o.shadowRoot);var i=o.shadowRoot.querySelectorAll(We);i.length>0&&jn(n,i)})),n.forEach((function(o){return kr(o,$,Be,xt)})),Eo(document),nt.matchVariablesAndDependents(),qt){var r=Symbol(),a=function(o){var i=o.detail,u=i.node,d=i.id,s=i.cssRules,f=i.entries;Array.isArray(f)?(f.forEach((function(l){var c=l[2];nt.addRulesForMatching(c)})),nt.matchVariablesAndDependents()):s&&(nt.addRulesForMatching(s),$r(r,(function(){return nt.matchVariablesAndDependents()}))),(Array.isArray(f)?f:u&&s?[[u,d,s]]:[]).forEach((function(l){var c=pt(l,3),m=c[0],p=c[1],h=c[2];ho.set(m,p),xo(m).updateCSS(h)}))};document.addEventListener("__wp_dark_mode__adoptedStyleSheetsChange",a),Mr.push((function(){return document.removeEventListener("__wp_dark_mode__adoptedStyleSheetsChange",a)})),document.dispatchEvent(new CustomEvent("__wp_dark_mode__startAdoptedStyleSheetsWatcher"))}})(),Ii(Array.from(Rt.keys()),(function(t){var e=t.created,n=t.updated,r=t.removed,a=t.moved,o=r,i=e.concat(n).concat(a).filter((function(s){return!Rt.has(s)})),u=a.filter((function(s){return Rt.has(s)}));o.forEach((function(s){return bo(s)}));var d=i.map((function(s){return go(s)}));d.map((function(s){return s.details({secondRound:!1})})).filter((function(s){return s&&s.rules.length>0})).forEach((function(s){nt.addRulesForMatching(s.rules)})),nt.matchVariablesAndDependents(),d.forEach((function(s){return s.render($,xt)})),d.forEach((function(s){return s.watch()})),u.forEach((function(s){return Rt.get(s).restore()}))}),(function(t){Tr(t),Eo(t)})),(function(t,e){br(document,t,e),fe(document.documentElement,(function(n){br(n.shadowRoot,t,e)}))})((function(t){if(kr(t,$,Be,xt),t===document.documentElement&&(t.getAttribute("style")||"").includes("--")){nt.matchVariablesAndDependents();var e=yt("wp-dark-mode--root-vars");nt.putRootVars(e,$)}}),(function(t){Tr(t);var e=t.querySelectorAll(We);e.length>0&&Et(e,(function(n){return kr(n,$,Be,xt)}))})),zr(wo)}function So(){Hi(),lo()||$.immediateModify?ko():Ui(ko),(function(t){var e=document.querySelector(Qa);e?Ka(e,t):(Xt&&Xt.disconnect(),(Xt=new MutationObserver((function(n){t:for(var r=0;r<n.length;r++)for(var a=n[r].addedNodes,o=0;o<a.length;o++){var i=a[o];if(i instanceof HTMLMetaElement&&i.name===za){Xt.disconnect(),Xt=null,Ka(i,t);break t}}}))).observe(document.head,{childList:!0}))})($)}function Eo(t){if(qt)xo(t).render($,xt);else if((function(n){return Array.isArray(n.adoptedStyleSheets)})(t)){t.adoptedStyleSheets.forEach((function(n){nt.addRulesForMatching(n.cssRules)}));var e=Wi(t);Ln.push(e),e.render($,xt),e.watch((function(n){n.forEach((function(r){nt.addRulesForMatching(r.cssRules)})),nt.matchVariablesAndDependents(),e.render($,xt)}))}}function xo(t){var e=Mn.get(t);return e||(e=(function(n){var r,a=!1,o=[],i=!0,u=new qi(n);function d(s,f){r=s,i=f,Er().modifySheet({prepareSheet:function(){return u.replaceSync(""),u},sourceCSSRules:o,theme:s,ignoreImageAnalysis:!0,force:!1,isAsyncCancelled:function(){return a}})}return{render:d,destroy:function(){a=!0},updateCSS:function(s){o=s,r&&i&&d(r,i)},commands:function(){var s=u.getDeepCSSCommands();return u.clearDeepCSSCommands(),s}}})((function(){var n=(function(r){if(Ar.has(r))return Ar.get(r);var a=Symbol();return Ar.set(r,a),a})(t);$r(n,(function(){var r,a=ho.get(t),o=(r=e)===null||r===void 0?void 0:r.commands();if(a&&o){var i={id:a,commands:o};document.dispatchEvent(new CustomEvent("__wp_dark_mode__adoptedStyleSheetCommands",{detail:JSON.stringify(i)}))}}))})),Mn.set(t,e)),e}function zi(){Rt.forEach((function(t){return t.pause()})),Et(Ue.values(),(function(t){return t.stop()})),Ue.clear(),uo(),qe.forEach((function(t){return t.disconnect()})),Sn.forEach((function(t){return t.disconnect()})),qe.clear(),Sn.clear(),Qr(wo),rn.clear()}function _o(){if(document.querySelector('meta[name="wp-dark-mode-lock"]'))return!0;var t,e=document.querySelector('meta[name="wp-dark-mode"]');return e?e.content!==fo:((t=document.createElement("meta")).name="wp-dark-mode",t.content=fo,document.head.appendChild(t),(Vn=new MutationObserver((function(){document.querySelector('meta[name="wp-dark-mode-lock"]')&&(Vn.disconnect(),On())}))).observe(document.head,{childList:!0,subtree:!0}),!1)}function Qi(t,e,n){if($=t,(ot=e)?(xt=Array.isArray(ot.ignoreImageAnalysis)?ot.ignoreImageAnalysis:[],Be=Array.isArray(ot.ignoreInlineStyle)?ot.ignoreInlineStyle:[]):(xt=[],Be=[]),$.immediateModify&&(re=function(){return!0}),po=n,document.head){if(_o())return void On();document.documentElement.setAttribute("data-wp-dark-mode-scheme","dark"),So()}else{if(!qt){var r=yt("wp-dark-mode--fallback");document.documentElement.appendChild(r),r.textContent=lr($,{strict:!0})}var a=new MutationObserver((function(){if(document.head){if(a.disconnect(),_o())return void On();So()}}));a.observe(document,{childList:!0,subtree:!0})}}var Mr=[];function On(){document.documentElement.removeAttribute("data-wp-dark-mode-mode"),document.documentElement.removeAttribute("data-wp-dark-mode-scheme"),nt.clear(),Me.clear(),so(),yo(),zi(),_i(),dn.clear(),fn.clear(),bt(document.querySelector(".wp-dark-mode--fallback")),document.head&&((function(){Xt&&(Xt.disconnect(),Xt=null);var t=document.querySelector(Qa);t&&En&&(t.content=En)})(),bt(document.head.querySelector(".wp-dark-mode--user-agent")),bt(document.head.querySelector(".wp-dark-mode--text")),bt(document.head.querySelector(".wp-dark-mode--invert")),bt(document.head.querySelector(".wp-dark-mode--inline")),bt(document.head.querySelector(".wp-dark-mode--override")),bt(document.head.querySelector(".wp-dark-mode--variables")),bt(document.head.querySelector(".wp-dark-mode--root-vars")),bt(document.head.querySelector('meta[name="wp-dark-mode"]')),document.dispatchEvent(new CustomEvent("__wp_dark_mode__cleanUp")),bt(document.head.querySelector(".wp-dark-mode--proxy"))),Rr.forEach((function(t){bt(t.querySelector(".wp-dark-mode--inline")),bt(t.querySelector(".wp-dark-mode--override"))})),Rr.clear(),Et(Rt.keys(),(function(t){return bo(t)})),Zt.clear(),we.clear(),Et(document.querySelectorAll(".wp-dark-mode"),bt),Ln.forEach((function(t){return t.destroy()})),Ln.splice(0),Mn.forEach((function(t){return t.destroy()})),Mn.clear(),Vn&&Vn.disconnect(),Mr.forEach((function(t){return t()})),Mr.splice(0)}function Co(t){if(!(t=(t=Sr(t)).trim()))return[];var e=[],n=Vr(t),r=He(t,"{","}",n),a=0;return r.forEach((function(o){var i,u,d,s=t.substring(a,o.start).trim(),f=t.substring(o.start+1,o.end-1);if(s.startsWith("@")){var l=s.search(/[\s\(]/),c={type:l<0?s:s.substring(0,l),query:l<0?"":s.substring(l).trim(),rules:Co(f)};e.push(c)}else{var m={selectors:(d=s,Zr(d,",",Vr(d))),declarations:(i=f,u=[],Zr(i,";",Vr(i)).forEach((function(p){var h=p.indexOf(":");if(h>0){var v=p.indexOf("!important");u.push({property:p.substring(0,h).trim(),value:p.substring(h+1,v>0?v:p.length).trim(),important:v>0})}})),u)};e.push(m)}a=o.end})),e}function He(t,e,n){for(var r,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=[],i=0;r=Jr(t,i,e,n,a);)o.push(r),i=r.end;return o}function Vr(t){var e=t.indexOf("'")<t.indexOf('"'),n=e?"'":'"',r=e?'"':"'",a=He(t,n,n);return a.push.apply(a,kt(He(t,r,r,a))),a.push.apply(a,kt(He(t,"[","]",a))),a.push.apply(a,kt(He(t,"(",")",a))),a}function Ao(t){return"selectors"in t}function Ki(t){return(function(e){var n=[],r="    ";function a(u,d){Ao(u)?i(u,d):o(u,d)}function o(u,d){var s=u.type,f=u.query,l=u.rules;n.push("".concat(d).concat(s," ").concat(f," {")),l.forEach((function(c){return a(c,"".concat(d).concat(r))})),n.push("".concat(d,"}"))}function i(u,d){var s=u.selectors,f=u.declarations,l=s.length-1;s.forEach((function(m,p){n.push("".concat(d).concat(m).concat(p<l?",":" {"))}));var c=(function(m){var p=/^-[a-z]-/;return kt(m).sort((function(h,v){var g,C,A,V,w=h.property,D=v.property,b=(g=(C=w.match(p))===null||C===void 0?void 0:C[0])!==null&&g!==void 0?g:"",k=(A=(V=D.match(p))===null||V===void 0?void 0:V[0])!==null&&A!==void 0?A:"",L=b?w.replace(p,""):w,O=k?D.replace(p,""):D;return L===O?b.localeCompare(k):L.localeCompare(O)}))})(f);c.forEach((function(m){var p=m.property,h=m.value,v=m.important;n.push("".concat(d).concat(r).concat(p,": ").concat(h).concat(v?" !important":"",";"))})),n.push("".concat(d,"}"))}return Ro(e),e.forEach((function(u){return a(u,"")})),n.join(`
`)})(Co(t))}function Ro(t){for(var e=t.length-1;e>=0;e--){var n=t[e];Ao(n)?n.declarations.length===0&&t.splice(e,1):(Ro(n.rules),n.rules.length===0&&t.splice(e,1))}}var To=/url\(\"(blob\:.*?)\"\)/g;function Yi(t){return Lo.apply(this,arguments)}function Lo(){return(Lo=et(j().mark((function t(e){var n,r;return j().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=[],Le(To,e,1).forEach((function(o){var i=ne(o);n.push(i)})),a.next=4,Promise.all(n);case 4:return r=a.sent,a.abrupt("return",e.replace(To,(function(){return'url("'.concat(r.shift(),'")')})));case 6:case"end":return a.stop()}}),t)})))).apply(this,arguments)}var Xi="";function Ji(){return Mo.apply(this,arguments)}function Mo(){return(Mo=et(j().mark((function t(){var e,n,r,a;return j().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=function(i,u){var d=document.querySelector(i);d&&d.textContent&&(e.push("/* ".concat(u," */")),e.push(d.textContent),e.push(""))},e=[Xi],n(".wp-dark-mode--fallback","Fallback Style"),n(".wp-dark-mode--user-agent","User-Agent Style"),n(".wp-dark-mode--text","Text Style"),n(".wp-dark-mode--invert","Invert Style"),n(".wp-dark-mode--variables","Variables Style"),r=[],document.querySelectorAll(".wp-dark-mode--sync").forEach((function(i){Et(i.sheet.cssRules,(function(u){u&&u.cssText&&r.push(u.cssText)}))})),!r.length){o.next=18;break}return a=Ki(r.join(`
`)),e.push(""),o.t0=e,o.next=15,Yi(a);case 15:o.t1=o.sent,o.t0.push.call(o.t0,o.t1),e.push("");case 18:return n(".wp-dark-mode--override","Override Style"),o.abrupt("return",e.join(`
`));case 20:case"end":return o.stop()}}),t)})))).apply(this,arguments)}var Or=!1,Zi=(function(){try{return window.self!==window.top}catch{return!0}})();function Vo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=tt(tt({},Wo),t);if(r.engine!==X.dynamicTheme)throw new Error("Theme engine is not supported.");if(Qi(r,e,Zi),Or=!0,!n){var a=new CustomEvent("wp-dark-mode:enable",{detail:{theme:r,colors:xe}});document.dispatchEvent(a)}}function Pr(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(On(),Or=!1,!t){var e=new CustomEvent("wp-dark-mode:disable");document.dispatchEvent(e)}}var Ge=matchMedia("(prefers-color-scheme: dark)"),Dr={themeOptions:null,fixes:null};function $e(){Ge.matches?Vo(Dr.themeOptions,Dr.fixes,window.DarkModeAuto==="auto"):Pr()}function Oo(){return(Oo=et(j().mark((function t(){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ji();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),t)})))).apply(this,arguments)}var tu=function(t){_=t||y};x.auto=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t?(Dr={themeOptions:t,fixes:arguments.length>1&&arguments[1]!==void 0?arguments[1]:null},$e(),se?Ge.addEventListener("change",$e):Ge.addListener($e)):(se?Ge.removeEventListener("change",$e):Ge.removeListener($e),Pr());var e=new CustomEvent("wp-dark-mode:auto");document.dispatchEvent(e)},x.disable=Pr,x.enable=Vo,x.exportGeneratedCSS=function(){return Oo.apply(this,arguments)},x.isEnabled=function(){return Or},x.setFetchMethod=tu,x.colors=xe,Object.defineProperty(x,"__esModule",{value:!0})},window.DarkModeAuto=Wr,Ot(Vt)==="object"?Dn(Vt):(_t=[Vt],(Ir=typeof(It=Dn)=="function"?It.apply(Vt,_t):It)===void 0||(jt.exports=Ir))}},jr={};(function jt(Vt){var It=jr[Vt];if(It!==void 0)return It.exports;var _t=jr[Vt]={exports:{}};return No[Vt].call(_t.exports,_t,_t.exports,jt),_t.exports})(35)})()})();
var Vn=Object.defineProperty;var Kt=v=>{throw TypeError(v)};var Wn=(v,C,y)=>C in v?Vn(v,C,{enumerable:!0,configurable:!0,writable:!0,value:y}):v[C]=y;var J=(v,C,y)=>Wn(v,typeof C!="symbol"?C+"":C,y),$t=(v,C,y)=>C.has(v)||Kt("Cannot "+y);var U=(v,C,y)=>($t(v,C,"read from private field"),y?y.call(v):C.get(v)),Ie=(v,C,y)=>C.has(v)?Kt("Cannot add the same private member more than once"):C instanceof WeakSet?C.add(v):C.set(v,y),dt=(v,C,y,Fe)=>($t(v,C,"write to private field"),Fe?Fe.call(v,y):C.set(v,y),y);(function(){"use strict";var be,We,K,ae;const ke=class ke{static set(t,r,n=365){t=`${ke.prefix}${t}`;const s=n?`expires=${new Date(Date.now()+n*24*60*60*1e3).toUTCString()};`:"";return document.cookie=`${t}=${encodeURIComponent(r)};${s}path=/ `,this}static get(t){t=`${ke.prefix}${t}`;const r=document.cookie.split(";");for(const n of r){const[s,i]=n.split("=").map(o=>o.trim());if(s===t)return decodeURIComponent(i)}return null}static delete(t){return t=`${ke.prefix}${t}`,document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/ ;`,this}};J(ke,"prefix","wp-dark-mode-");let v=ke;const ue=class ue{constructor(){Ie(this,We,{onChange:[]});Ie(this,K,{target:"html",activeAttribute:"data-wp-dark-mode-active",activeClass:"wp-dark-mode-active",ignoreClass:"wp-dark-mode-ignore"})}static getInstance(){return U(ue,be)||dt(ue,be,new ue),U(ue,be)}onChange(t){return U(this,We).onChange.push(t),this}get isDeviceDark(){return window.matchMedia("(prefers-color-scheme: dark)").matches}get target(){return document.querySelector(U(this,K).target)}get isActive(){var t;return(t=this.target)==null?void 0:t.hasAttribute(U(this,K).activeAttribute)}toggle(){return this.isActive?this.deactivate():this.activate(),this}updateTarget(t){return t?this.target.setAttribute(U(this,K).activeAttribute,""):this.target.removeAttribute(U(this,K).activeAttribute),t?this.target.classList.add(U(this,K).activeClass):this.target.classList.remove(U(this,K).activeClass),this}activate(t={}){dt(this,K,{...U(this,K),...t}),this.updateTarget(!0);const r=new CustomEvent("wp_dark_mode",{detail:{isActive:this.isActive}});return document.dispatchEvent(r),this}deactivate(){this.updateTarget(!1);const t=new CustomEvent("wp_dark_mode",{detail:{isActive:this.isActive}});return document.dispatchEvent(t),this}remember(){return v.set("choice",this.isActive?"dark":"light"),this}forget(){return v.delete("choice").delete("device").delete("timezone"),this}};be=new WeakMap,We=new WeakMap,K=new WeakMap,Ie(ue,be,null);let C=ue;const y=C.getInstance();window.WPDarkMode=y;function Fe(){const e="img, picture img, img[srcset], picture source, picture source[srcset]",t="body *:not(.wp-dark-mode-ignore):not(.wp-dark-mode-ignore *):not(iframe):not(script):not(style)";var r=null;const n=()=>document.querySelectorAll(e);function s(){document==null||document.body.style.setProperty("--wpdm-img-opacity",1);var d=document.querySelectorAll(t);if(!d)return;S(d);const p=n();if(p&&p.length&&(l(p),f(p)),document.addEventListener("wp_dark_mode",E=>{S(d);const A=n();A&&A.length&&(l(A),f(A))}),!wp_dark_mode_json.options.performance_track_dynamic_content)return;const k=new MutationObserver(E=>{r||(r=!0,setTimeout(()=>{r=null},500),E.forEach(A=>{if(A.type==="attributes"&&A.attributeName==="src"){const D=A.target;D.src&&D.src.startsWith("http")&&!D.dataset.processed&&(D.dataset.processed="true",m(D))}}))});document.querySelectorAll("img").forEach(E=>{k.observe(E,{attributes:!0,attributeFilter:["src"]})})}function i(){document.body?s():document.addEventListener("DOMContentLoaded",s)}function o(d){if(d.srcset=d.srcset||d.dataset.srcset||d.dataset.lazySrcset||"",d.src=d.src||d.dataset.src||d.dataset.lazySrc||"",d.srcset&&d.srcset.startsWith("http")){let p=d.srcset;wp_dark_mode_json.options.image_replaces.forEach(k=>{p=p.replaceAll(k.light,k.dark)}),d.dataset.lightSrcset=d.srcset,d.srcset=p}if(d.src&&d.src.startsWith("http")){const p=T(d.src);p&&(d.dataset.lightSrc=d.src,d.src=p)}}function a(d){d.dataset.lightSrcset&&(d.srcset=d.dataset.lightSrcset),d.dataset.lightSrc&&(d.src=d.dataset.lightSrc)}function m(d){d&&(d.classList.contains("wp-dark-mode-ignore")||(WPDarkMode.isActive?o(d):a(d)))}function l(d){wp_dark_mode_json.options.image_replaces.length&&(!d||!d.length||d.forEach(m))}function u(d){var p,k,E;return((p=window.getComputedStyle(d))==null?void 0:p.getPropertyValue("background-image"))!=="none"||((k=window.getComputedStyle(d,"::after"))==null?void 0:k.getPropertyValue("background-image"))!=="none"||((E=window.getComputedStyle(d,"::before"))==null?void 0:E.getPropertyValue("background-image"))!=="none"}function w(d){if(d&&u(d)){d.classList.add("wp-dark-mode-bg-image");var p=window.getComputedStyle(d).getPropertyValue("background-image");if(p=p.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(",")[0],WPDarkMode.isActive){const k=T(p);k&&(d.style.background=`url(${k})`,d.style.backgroundImage=`url(${k})`,d.dataset.lightSrc=p,d.dataset.darkSrc=k)}else{const k=d.dataset.lightSrc;k&&(d.style.background=`url(${k})`,d.style.backgroundImage=`url(${k})`)}}}function S(d){d.forEach(w)}function T(d){if(!d)return;const p=wp_dark_mode_json.options.image_replaces||!1;if(!p)return!1;const k=p.find(E=>{const A=d.split("?")[0];return E.light===A});return k?k.dark:!1}function f(d){const p=wp_dark_mode_json.options.image_enabled_low_brightness?wp_dark_mode_json.options.image_low_brightness_excludes:!1,k=wp_dark_mode_json.options.image_enabled_low_grayscale?wp_dark_mode_json.options.image_low_grayscale_excludes:!1;d&&d.length&&d.forEach(E=>{const A=E.src;p&&p.includes(A)&&E.style.setProperty("--wpdm-img-brightness","100%"),k&&k.includes(A)&&E.style.setProperty("--wpdm-img-grayscale","0%")})}return{init:i}}class we{constructor(){J(this,"_el",(t,r=document)=>r.querySelector(t));J(this,"_els",(t,r=document)=>r.querySelectorAll(t));Ie(this,ae,{})}isTrue(t){return["1","true","yes","on",1,!0].includes(t)}get isPremium(){return typeof window.wp_dark_mode_json>"u"?!1:this.isTrue(window.wp_dark_mode_json.is_ultimate||window.wp_dark_mode_json.is_pro)}on(t,r){U(this,ae)[t]||(U(this,ae)[t]=[]);try{U(this,ae)[t].push(r)}catch{}return this}emit(t,...r){return U(this,ae)[t]&&U(this,ae)[t].forEach(n=>{n(...r)}),this}init(){this.events(),document.addEventListener("DOMContentLoaded",()=>{this.ready()})}ready(){}events(){}get html(){return document.querySelector("html")}}ae=new WeakMap;function lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yt}=Object.prototype,{getPrototypeOf:Ke}=Object,{iterator:Me,toStringTag:ut}=Symbol,Ue=(e=>t=>{const r=Yt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),X=e=>(e=e.toLowerCase(),t=>Ue(t)===e),Ne=e=>t=>typeof t===e,{isArray:ge}=Array,_e=Ne("undefined");function Re(e){return e!==null&&!_e(e)&&e.constructor!==null&&!_e(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=X("ArrayBuffer");function er(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ft(e.buffer),t}const tr=Ne("string"),j=Ne("function"),pt=Ne("number"),Te=e=>e!==null&&typeof e=="object",rr=e=>e===!0||e===!1,je=e=>{if(Ue(e)!=="object")return!1;const t=Ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ut in e)&&!(Me in e)},nr=e=>{if(!Te(e)||Re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sr=X("Date"),ir=X("File"),or=e=>!!(e&&typeof e.uri<"u"),ar=e=>e&&typeof e.getParts<"u",cr=X("Blob"),dr=X("FileList"),lr=e=>Te(e)&&j(e.pipe);function ur(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const mt=ur(),ht=typeof mt.FormData<"u"?mt.FormData:void 0,fr=e=>{let t;return e&&(ht&&e instanceof ht||j(e.append)&&((t=Ue(e))==="formdata"||t==="object"&&j(e.toString)&&e.toString()==="[object FormData]"))},pr=X("URLSearchParams"),[mr,hr,wr,gr]=["ReadableStream","Request","Response","Headers"].map(X),_r=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oe(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),ge(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Re(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(n=0;n<o;n++)a=i[n],t.call(null,e[a],a,e)}}function wt(e,t){if(Re(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const ce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gt=e=>!_e(e)&&e!==ce;function $e(){const{caseless:e,skipUndefined:t}=gt(this)&&this||{},r={},n=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&wt(r,i)||i;je(r[o])&&je(s)?r[o]=$e(r[o],s):je(s)?r[o]=$e({},s):ge(s)?r[o]=s.slice():(!t||!_e(s))&&(r[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Oe(arguments[s],n);return r}const kr=(e,t,r,{allOwnKeys:n}={})=>(Oe(t,(s,i)=>{r&&j(s)?Object.defineProperty(e,i,{value:lt(s,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),br=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yr=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},vr=(e,t,r,n)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&Ke(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Sr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Ar=e=>{if(!e)return null;if(ge(e))return e;let t=e.length;if(!pt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Er=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ke(Uint8Array)),Rr=(e,t)=>{const n=(e&&e[Me]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Tr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Or=X("HTMLFormElement"),Cr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),_t=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Lr=X("RegExp"),kt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Oe(r,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(n[i]=o||s)}),Object.defineProperties(e,n)},Dr=e=>{kt(e,(t,r)=>{if(j(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(j(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xr=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return ge(e)?n(e):n(String(e).split(t)),r},Pr=()=>{},Ir=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Fr(e){return!!(e&&j(e.append)&&e[ut]==="FormData"&&e[Me])}const Mr=e=>{const t=new Array(10),r=(n,s)=>{if(Te(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[s]=n;const i=ge(n)?[]:{};return Oe(n,(o,a)=>{const m=r(o,s+1);!_e(m)&&(i[a]=m)}),t[s]=void 0,i}}return n};return r(e,0)},Ur=X("AsyncFunction"),Nr=e=>e&&(Te(e)||j(e))&&j(e.then)&&j(e.catch),bt=((e,t)=>e?setImmediate:t?((r,n)=>(ce.addEventListener("message",({source:s,data:i})=>{s===ce&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),ce.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",j(ce.postMessage)),jr=typeof queueMicrotask<"u"?queueMicrotask.bind(ce):typeof process<"u"&&process.nextTick||bt,c={isArray:ge,isArrayBuffer:ft,isBuffer:Re,isFormData:fr,isArrayBufferView:er,isString:tr,isNumber:pt,isBoolean:rr,isObject:Te,isPlainObject:je,isEmptyObject:nr,isReadableStream:mr,isRequest:hr,isResponse:wr,isHeaders:gr,isUndefined:_e,isDate:sr,isFile:ir,isReactNativeBlob:or,isReactNative:ar,isBlob:cr,isRegExp:Lr,isFunction:j,isStream:lr,isURLSearchParams:pr,isTypedArray:Er,isFileList:dr,forEach:Oe,merge:$e,extend:kr,trim:_r,stripBOM:br,inherits:yr,toFlatObject:vr,kindOf:Ue,kindOfTest:X,endsWith:Sr,toArray:Ar,forEachEntry:Rr,matchAll:Tr,isHTMLForm:Or,hasOwnProperty:_t,hasOwnProp:_t,reduceDescriptors:kt,freezeMethods:Dr,toObjectSet:xr,toCamelCase:Cr,noop:Pr,toFiniteNumber:Ir,findKey:wt,global:ce,isContextDefined:gt,isSpecCompliantForm:Fr,toJSONObject:Mr,isAsyncFn:Ur,isThenable:Nr,setImmediate:bt,asap:jr,isIterable:e=>e!=null&&j(e[Me])};let _=class Gt extends Error{static from(t,r,n,s,i,o){const a=new Gt(t.message,r||t.code,n,s,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,r,n,s,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){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:c.toJSONObject(this.config),code:this.code,status:this.status}}};_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",_.ERR_BAD_OPTION="ERR_BAD_OPTION",_.ECONNABORTED="ECONNABORTED",_.ETIMEDOUT="ETIMEDOUT",_.ERR_NETWORK="ERR_NETWORK",_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",_.ERR_DEPRECATED="ERR_DEPRECATED",_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",_.ERR_CANCELED="ERR_CANCELED",_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",_.ERR_INVALID_URL="ERR_INVALID_URL";const Br=null;function Ge(e){return c.isPlainObject(e)||c.isArray(e)}function yt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ze(e,t,r){return e?e.concat(t).map(function(s,i){return s=yt(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function qr(e){return c.isArray(e)&&!e.some(Ge)}const Hr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function Be(e,t,r){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=c.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!c.isUndefined(p[d])});const n=r.metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,m=(r.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(c.isBoolean(f))return f.toString();if(!m&&c.isBlob(f))throw new _("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?m&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,d,p){let k=f;if(c.isReactNative(t)&&c.isReactNativeBlob(f))return t.append(Ze(p,d,i),l(f)),!1;if(f&&!p&&typeof f=="object"){if(c.endsWith(d,"{}"))d=n?d:d.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&qr(f)||(c.isFileList(f)||c.endsWith(d,"[]"))&&(k=c.toArray(f)))return d=yt(d),k.forEach(function(A,D){!(c.isUndefined(A)||A===null)&&t.append(o===!0?Ze([d],D,i):o===null?d:d+"[]",l(A))}),!1}return Ge(f)?!0:(t.append(Ze(p,d,i),l(f)),!1)}const w=[],S=Object.assign(Hr,{defaultVisitor:u,convertValue:l,isVisitable:Ge});function T(f,d){if(!c.isUndefined(f)){if(w.indexOf(f)!==-1)throw Error("Circular reference detected in "+d.join("."));w.push(f),c.forEach(f,function(k,E){(!(c.isUndefined(k)||k===null)&&s.call(t,k,c.isString(E)?E.trim():E,d,S))===!0&&T(k,d?d.concat(E):[E])}),w.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return T(e),t}function vt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ye(e,t){this._pairs=[],e&&Be(e,this,t)}const St=Ye.prototype;St.append=function(t,r){this._pairs.push([t,r])},St.toString=function(t){const r=t?function(n){return t.call(this,n,vt)}:vt;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function zr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function At(e,t,r){if(!t)return e;const n=r&&r.encode||zr,s=c.isFunction(r)?{serialize:r}:r,i=s&&s.serialize;let o;if(i?o=i(t,s):o=c.isURLSearchParams(t)?t.toString():new Ye(t,s).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Et{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(n){n!==null&&t(n)})}}const et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ye,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},tt=typeof window<"u"&&typeof document<"u",rt=typeof navigator=="object"&&navigator||void 0,Vr=tt&&(!rt||["ReactNative","NativeScript","NS"].indexOf(rt.product)<0),Wr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xr=tt&&window.location.href||"http://localhost",F={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tt,hasStandardBrowserEnv:Vr,hasStandardBrowserWebWorkerEnv:Wr,navigator:rt,origin:Xr},Symbol.toStringTag,{value:"Module"})),...Jr};function Qr(e,t){return Be(e,new F.classes.URLSearchParams,{visitor:function(r,n,s,i){return F.isNode&&c.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Kr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $r(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function Rt(e){function t(r,n,s,i){let o=r[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),m=i>=r.length;return o=!o&&c.isArray(s)?s.length:o,m?(c.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(r,n,s[o],i)&&c.isArray(s[o])&&(s[o]=$r(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const r={};return c.forEachEntry(e,(n,s)=>{t(Kr(n),s,r,0)}),r}return null}function Gr(e,t,r){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ce={transitional:et,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Rt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Qr(t,this.formSerializer).toString();if((a=c.isFileList(t))||n.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Be(a?{"files[]":t}:t,m&&new m,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),Gr(t)):t}],transformResponse:[function(t){const r=this.transitional||Ce.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(n&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?_.from(a,_.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Ce.headers[e]={}});const Zr=c.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"]),Yr=e=>{const t={};let r,n,s;return e&&e.split(`
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),n=o.substring(s+1).trim(),!(!r||t[r]&&Zr[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Tt=Symbol("internals");function Le(e){return e&&String(e).trim().toLowerCase()}function qe(e){return e===!1||e==null?e:c.isArray(e)?e.map(qe):String(e)}function en(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const tn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nt(e,t,r,n,s){if(c.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!c.isString(t)){if(c.isString(n))return t.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function nn(e,t){const r=c.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,o){return this[n].call(this,t,s,i,o)},configurable:!0})})}let B=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(a,m,l){const u=Le(m);if(!u)throw new Error("header name must be a non-empty string");const w=c.findKey(s,u);(!w||s[w]===void 0||l===!0||l===void 0&&s[w]!==!1)&&(s[w||m]=qe(a))}const o=(a,m)=>c.forEach(a,(l,u)=>i(l,u,m));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(c.isString(t)&&(t=t.trim())&&!tn(t))o(Yr(t),r);else if(c.isObject(t)&&c.isIterable(t)){let a={},m,l;for(const u of t){if(!c.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(m=a[l])?c.isArray(m)?[...m,u[1]]:[m,u[1]]:u[1]}o(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=Le(t),t){const n=c.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return en(s);if(c.isFunction(r))return r.call(this,s,n);if(c.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Le(t),t){const n=c.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||nt(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(o){if(o=Le(o),o){const a=c.findKey(n,o);a&&(!r||nt(n,n[a],a,r))&&(delete n[a],s=!0)}}return c.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||nt(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return c.forEach(this,(s,i)=>{const o=c.findKey(n,i);if(o){r[o]=qe(s),delete r[i];return}const a=t?rn(i):String(i).trim();a!==i&&delete r[i],r[a]=qe(s),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return c.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&c.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Tt]=this[Tt]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Le(o);n[a]||(nn(s,o),n[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};B.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(B.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),c.freezeMethods(B);function st(e,t){const r=this||Ce,n=t||r,s=B.from(n.headers);let i=n.data;return c.forEach(e,function(a){i=a.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Ot(e){return!!(e&&e.__CANCEL__)}let De=class extends _{constructor(t,r,n){super(t??"canceled",_.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ct(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new _("Request failed with status code "+r.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function sn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function on(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(m){const l=Date.now(),u=n[i];o||(o=l),r[s]=m,n[s]=l;let w=i,S=0;for(;w!==s;)S+=r[w++],w=w%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const T=u&&l-u;return T?Math.round(S*1e3/T):void 0}}function an(e,t){let r=0,n=1e3/t,s,i;const o=(l,u=Date.now())=>{r=u,s=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),w=u-r;w>=n?o(l,u):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},n-w)))},()=>s&&o(s)]}const He=(e,t,r=3)=>{let n=0;const s=on(50,250);return an(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,m=o-n,l=s(m),u=o<=a;n=o;const w={loaded:o,total:a,progress:a?o/a:void 0,bytes:m,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(w)},r)},Lt=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Dt=e=>(...t)=>c.asap(()=>e(...t)),cn=F.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,F.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,dn=F.hasStandardBrowserEnv?{write(e,t,r,n,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),c.isString(n)&&a.push(`path=${n}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|;)"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ln(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function un(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xt(e,t,r){let n=!ln(t);return e&&(n||r==!1)?un(e,t):t}const Pt=e=>e instanceof B?{...e}:e;function de(e,t){t=t||{};const r={};function n(l,u,w,S){return c.isPlainObject(l)&&c.isPlainObject(u)?c.merge.call({caseless:S},l,u):c.isPlainObject(u)?c.merge({},u):c.isArray(u)?u.slice():u}function s(l,u,w,S){if(c.isUndefined(u)){if(!c.isUndefined(l))return n(void 0,l,w,S)}else return n(l,u,w,S)}function i(l,u){if(!c.isUndefined(u))return n(void 0,u)}function o(l,u){if(c.isUndefined(u)){if(!c.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,w){if(w in t)return n(l,u);if(w in e)return n(void 0,l)}const m={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,w)=>s(Pt(l),Pt(u),w,!0)};return c.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const w=c.hasOwnProp(m,u)?m[u]:s,S=w(e[u],t[u],u);c.isUndefined(S)&&w!==a||(r[u]=S)}),r}const It=e=>{const t=de({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=B.from(o),t.url=At(xt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(r)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(r.getHeaders)){const m=r.getHeaders(),l=["content-type","content-length"];Object.entries(m).forEach(([u,w])=>{l.includes(u.toLowerCase())&&o.set(u,w)})}}if(F.hasStandardBrowserEnv&&(n&&c.isFunction(n)&&(n=n(t)),n||n!==!1&&cn(t.url))){const m=s&&i&&dn.read(i);m&&o.set(s,m)}return t},fn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const s=It(e);let i=s.data;const o=B.from(s.headers).normalize();let{responseType:a,onUploadProgress:m,onDownloadProgress:l}=s,u,w,S,T,f;function d(){T&&T(),f&&f(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function k(){if(!p)return;const A=B.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),q={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:A,config:e,request:p};Ct(function(N){r(N),d()},function(N){n(N),d()},q),p=null}"onloadend"in p?p.onloadend=k:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(k)},p.onabort=function(){p&&(n(new _("Request aborted",_.ECONNABORTED,e,p)),p=null)},p.onerror=function(D){const q=D&&D.message?D.message:"Network Error",ne=new _(q,_.ERR_NETWORK,e,p);ne.event=D||null,n(ne),p=null},p.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const q=s.transitional||et;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),n(new _(D,q.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&c.forEach(o.toJSON(),function(D,q){p.setRequestHeader(q,D)}),c.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),a&&a!=="json"&&(p.responseType=s.responseType),l&&([S,f]=He(l,!0),p.addEventListener("progress",S)),m&&p.upload&&([w,T]=He(m),p.upload.addEventListener("progress",w),p.upload.addEventListener("loadend",T)),(s.cancelToken||s.signal)&&(u=A=>{p&&(n(!A||A.type?new De(null,e,p):A),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const E=sn(s.url);if(E&&F.protocols.indexOf(E)===-1){n(new _("Unsupported protocol "+E+":",_.ERR_BAD_REQUEST,e));return}p.send(i||null)})},pn=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const i=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof _?u:new De(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new _(`timeout of ${t}ms exceeded`,_.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:m}=n;return m.unsubscribe=()=>c.asap(a),m}},mn=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},hn=async function*(e,t){for await(const r of wn(e))yield*mn(r,t)},wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Ft=(e,t,r,n)=>{const s=hn(e,t);let i=0,o,a=m=>{o||(o=!0,n&&n(m))};return new ReadableStream({async pull(m){try{const{done:l,value:u}=await s.next();if(l){a(),m.close();return}let w=u.byteLength;if(r){let S=i+=w;r(S)}m.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(m){return a(m),s.return()}},{highWaterMark:2})},Mt=64*1024,{isFunction:ze}=c,gn=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:Ut,TextEncoder:Nt}=c.global,jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_n=e=>{e=c.merge.call({skipUndefined:!0},gn,e);const{fetch:t,Request:r,Response:n}=e,s=t?ze(t):typeof fetch=="function",i=ze(r),o=ze(n);if(!s)return!1;const a=s&&ze(Ut),m=s&&(typeof Nt=="function"?(f=>d=>f.encode(d))(new Nt):async f=>new Uint8Array(await new r(f).arrayBuffer())),l=i&&a&&jt(()=>{let f=!1;const d=new r(F.origin,{body:new Ut,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!d}),u=o&&a&&jt(()=>c.isReadableStream(new n("").body)),w={stream:u&&(f=>f.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!w[f]&&(w[f]=(d,p)=>{let k=d&&d[f];if(k)return k.call(d);throw new _(`Response type '${f}' is not supported`,_.ERR_NOT_SUPPORT,p)})});const S=async f=>{if(f==null)return 0;if(c.isBlob(f))return f.size;if(c.isSpecCompliantForm(f))return(await new r(F.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(c.isArrayBufferView(f)||c.isArrayBuffer(f))return f.byteLength;if(c.isURLSearchParams(f)&&(f=f+""),c.isString(f))return(await m(f)).byteLength},T=async(f,d)=>{const p=c.toFiniteNumber(f.getContentLength());return p??S(d)};return async f=>{let{url:d,method:p,data:k,signal:E,cancelToken:A,timeout:D,onDownloadProgress:q,onUploadProgress:ne,responseType:N,headers:ye,withCredentials:fe="same-origin",fetchOptions:H}=It(f),ve=t||fetch;N=N?(N+"").toLowerCase():"text";let pe=pn([E,A&&A.toAbortSignal()],D),me=null;const Z=pe&&pe.unsubscribe&&(()=>{pe.unsubscribe()});let xe;try{if(ne&&l&&p!=="get"&&p!=="head"&&(xe=await T(ye,k))!==0){let h=new r(d,{method:"POST",body:k,duplex:"half"}),g;if(c.isFormData(k)&&(g=h.headers.get("content-type"))&&ye.setContentType(g),h.body){const[b,O]=Lt(xe,He(Dt(ne)));k=Ft(h.body,Mt,b,O)}}c.isString(fe)||(fe=fe?"include":"omit");const M=i&&"credentials"in r.prototype,Xe={...H,signal:pe,method:p.toUpperCase(),headers:ye.normalize().toJSON(),body:k,duplex:"half",credentials:M?fe:void 0};me=i&&new r(d,Xe);let Y=await(i?ve(me,H):ve(d,Xe));const Pe=u&&(N==="stream"||N==="response");if(u&&(q||Pe&&Z)){const h={};["status","statusText","headers"].forEach(R=>{h[R]=Y[R]});const g=c.toFiniteNumber(Y.headers.get("content-length")),[b,O]=q&&Lt(g,He(Dt(q),!0))||[];Y=new n(Ft(Y.body,Mt,b,()=>{O&&O(),Z&&Z()}),h)}N=N||"text";let Se=await w[c.findKey(w,N)||"text"](Y,f);return!Pe&&Z&&Z(),await new Promise((h,g)=>{Ct(h,g,{data:Se,headers:B.from(Y.headers),status:Y.status,statusText:Y.statusText,config:f,request:me})})}catch(M){throw Z&&Z(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new _("Network Error",_.ERR_NETWORK,f,me,M&&M.response),{cause:M.cause||M}):_.from(M,M&&M.code,f,me,M&&M.response)}}},kn=new Map,Bt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,i=[n,s,r];let o=i.length,a=o,m,l,u=kn;for(;a--;)m=i[a],l=u.get(m),l===void 0&&u.set(m,l=a?new Map:_n(t)),u=l;return l};Bt();const it={http:Br,xhr:fn,fetch:{get:Bt}};c.forEach(it,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qt=e=>`- ${e}`,bn=e=>c.isFunction(e)||e===null||e===!1;function yn(e,t){e=c.isArray(e)?e:[e];const{length:r}=e;let n,s;const i={};for(let o=0;o<r;o++){n=e[o];let a;if(s=n,!bn(n)&&(s=it[(a=String(n)).toLowerCase()],s===void 0))throw new _(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([m,l])=>`adapter ${m} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=r?o.length>1?`since :
`+o.map(qt).join(`
`):" "+qt(o[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Ht={getAdapter:yn,adapters:it};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new De(null,e)}function zt(e){return ot(e),e.headers=B.from(e.headers),e.data=st.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ht.getAdapter(e.adapter||Ce.adapter,e)(e).then(function(n){return ot(e),n.data=st.call(e,e.transformResponse,n),n.headers=B.from(n.headers),n},function(n){return Ot(n)||(ot(e),n&&n.response&&(n.response.data=st.call(e,e.transformResponse,n.response),n.response.headers=B.from(n.response.headers))),Promise.reject(n)})}const Jt="1.13.6",Je={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Vt={};Je.transitional=function(t,r,n){function s(i,o){return"[Axios v"+Jt+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,a)=>{if(t===!1)throw new _(s(o," has been removed"+(r?" in "+r:"")),_.ERR_DEPRECATED);return r&&!Vt[o]&&(Vt[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,a):!0}},Je.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function vn(e,t,r){if(typeof e!="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const a=e[i],m=a===void 0||o(a,i,e);if(m!==!0)throw new _("option "+i+" must be "+m,_.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new _("Unknown option "+i,_.ERR_BAD_OPTION)}}const Ve={assertOptions:vn,validators:Je},V=Ve.validators;let le=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Et,response:new Et}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=de(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Ve.assertOptions(n,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean),legacyInterceptorReqResOrdering:V.transitional(V.boolean)},!1),s!=null&&(c.isFunction(s)?r.paramsSerializer={serialize:s}:Ve.assertOptions(s,{encode:V.function,serialize:V.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ve.assertOptions(r,{baseUrl:V.spelling("baseURL"),withXsrfToken:V.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&c.merge(i.common,i[r.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),r.headers=B.concat(o,i);const a=[];let m=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(r)===!1)return;m=m&&d.synchronous;const p=r.transitional||et;p&&p.legacyInterceptorReqResOrdering?a.unshift(d.fulfilled,d.rejected):a.push(d.fulfilled,d.rejected)});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let u,w=0,S;if(!m){const f=[zt.bind(this),void 0];for(f.unshift(...a),f.push(...l),S=f.length,u=Promise.resolve(r);w<S;)u=u.then(f[w++],f[w++]);return u}S=a.length;let T=r;for(;w<S;){const f=a[w++],d=a[w++];try{T=f(T)}catch(p){d.call(this,p);break}}try{u=zt.call(this,T)}catch(f){return Promise.reject(f)}for(w=0,S=l.length;w<S;)u=u.then(l[w++],l[w++]);return u}getUri(t){t=de(this.defaults,t);const r=xt(t.baseURL,t.url,t.allowAbsoluteUrls);return At(r,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){le.prototype[t]=function(r,n){return this.request(de(n||{},{method:t,url:r,data:(n||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,a){return this.request(de(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}le.prototype[t]=r(),le.prototype[t+"Form"]=r(!0)});let Sn=class Zt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,a){n.reason||(n.reason=new De(i,o,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Zt(function(s){t=s}),cancel:t}}};function An(e){return function(r){return e.apply(null,r)}}function En(e){return c.isObject(e)&&e.isAxiosError===!0}const at={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(at).forEach(([e,t])=>{at[t]=e});function Wt(e){const t=new le(e),r=lt(le.prototype.request,t);return c.extend(r,le.prototype,t,{allOwnKeys:!0}),c.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Wt(de(e,s))},r}const x=Wt(Ce);x.Axios=le,x.CanceledError=De,x.CancelToken=Sn,x.isCancel=Ot,x.VERSION=Jt,x.toFormData=Be,x.AxiosError=_,x.Cancel=x.CanceledError,x.all=function(t){return Promise.all(t)},x.spread=An,x.isAxiosError=En,x.mergeConfig=de,x.AxiosHeaders=B,x.formToJSON=e=>Rt(c.isHTMLForm(e)?new FormData(e):e),x.getAdapter=Ht.getAdapter,x.HttpStatusCode=at,x.default=x;const{Axios:Yn,AxiosError:es,CanceledError:ts,isCancel:rs,CancelToken:ns,VERSION:ss,all:is,Cancel:os,isAxiosError:as,spread:cs,toFormData:ds,AxiosHeaders:ls,HttpStatusCode:us,formToJSON:fs,getAdapter:ps,mergeConfig:ms}=x;class Rn{async request(t="GET",r="",n={}){var l;const s=typeof wp_dark_mode_admin_json<"u"?wp_dark_mode_admin_json:wp_dark_mode_json;let i=((l=s==null?void 0:s.url)==null?void 0:l.ajax)+"?action="+r+"&_wpnonce="+s.security_key;const a={method:t,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},credentials:"same-origin"};return t!=="POST"&&Object.keys(n).length>0?i+="&"+this.serialize(n):a.data=n,(await x(i,a)).data}async get(t="",r={}){return await this.request("GET",t,r)}async post(t="",r={}){return await this.request("POST",t,r)}serialize(t){var r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return r.join("&")}}const Tn=new Rn;class On extends we{constructor(){super(...arguments);J(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 n=wp_dark_mode_json.options.typography_font_size;n==="custom"&&(n=wp_dark_mode_json.options.typography_font_size_custom/100),r.forEach(s=>{if(s.closest(".wp-dark-mode-ignore"))return;const i=getComputedStyle(s).fontSize;if(i){const o=this.calculateFontSize(i,n);s.style.setProperty("--wpdm-large-font-size",o)}})});J(this,"calculateFontSize",(r,n=1)=>{const s=r.replace(/[0-9]/g,""),i=parseFloat(r.replace(/[a-z]/g,""));let o=0;return o=i*n,`${o}${s}`});J(this,"checkLargeFont",()=>{v.get("large-font")==="on"?(document.querySelector("html").classList.add("wp-dark-mode-large-font"),document.addEventListener("wp-dark-mode-switches-updated",()=>{const n=document.querySelectorAll(".wp-dark-mode-switch ._font");!n||!n.length||n.forEach(s=>{s.classList.add("active"),s.setAttribute("role","button"),s.removeAttribute("aria-checked"),s.removeAttribute("aria-pressed"),s.getAttribute("aria-label")||s.setAttribute("aria-label","Toggle Font Size")})})):document.addEventListener("wp-dark-mode-switches-updated",()=>{const n=document.querySelectorAll(".wp-dark-mode-switch ._font");!n||!n.length||n.forEach(s=>{s.classList.remove("active"),s.setAttribute("role","button"),s.removeAttribute("aria-checked"),s.removeAttribute("aria-pressed"),s.getAttribute("aria-label")||s.setAttribute("aria-label","Toggle Font Size")})})})}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 n=document.querySelector("html"),s=n.classList.contains("wp-dark-mode-large-font");n.classList[s?"remove":"add"]("wp-dark-mode-large-font");const i=r.classList.contains("active"),o=!i;r.classList[i?"remove":"add"]("active"),r.setAttribute("role","button"),r.removeAttribute("aria-checked"),r.removeAttribute("aria-pressed"),r.getAttribute("aria-label")||r.setAttribute("aria-label","Toggle Font Size");const a=o?"Large Font On":"Normal Font On",m=document.getElementById("wp-dark-mode-announcer");m&&(m.textContent="",setTimeout(()=>{m.textContent=a},50)),v.set("large-font",s?"off":"on");const l=document.querySelectorAll(".wp-dark-mode-switch ._font");!l||!l.length||l.forEach(u=>{u.classList[i?"remove":"add"]("active"),u.setAttribute("role","button"),u.removeAttribute("aria-checked"),u.removeAttribute("aria-pressed"),u.getAttribute("aria-label")||u.setAttribute("aria-label","Toggle Font Size")})}async updateVisitor(){var i;if(!wp_dark_mode_json.analytics_enabled)return;localStorage.getItem("wp-dark-mode-visitor");const r=localStorage.getItem("wp-dark-mode-visitor")||null,n={visitor_id:r||!1,mode:WPDarkMode.isActive?"dark":"light",security_key:wp_dark_mode_json.security_key,website:""};if(!r){n.meta=(i=JSON.stringify({os:navigator.platform,browser:navigator.appCodeName,browser_version:navigator.appVersion,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}))==null?void 0:i.replace(";","");try{n.ip=await fetch("https://api.ipify.org?format=json").then(o=>o.json()).then(o=>o.ip)}catch{}}const s=await Tn.post("wp_dark_mode_update_visitor",n);s&&s.success&&!r&&localStorage.setItem("wp-dark-mode-visitor",s.data.visitor_id)}}const Xt=new On;class Cn extends we{events(){if(document.body)this.initDarkModeColor();else{const t=new MutationObserver(()=>{document.body&&(this.initDarkModeColor(!1),t.disconnect())});t.observe(document.documentElement,{childList:!0,subtree:!0})}}removeTransition(){document.documentElement.style.setProperty("--wp-dark-mode-transition","0s"),setTimeout(()=>{document.documentElement.style.removeProperty("--wp-dark-mode-transition")},300)}initDarkModeColor(t=!1){try{this.removeLoader(),this.removeTransition();let r=this.isAutoColor?this.automaticArgs():this.presetArgs();y.isActive&&DarkModeAuto.enable(r,{ignoreInlineStyle:".wp-dark-mode-ignore"}),document.addEventListener("wp_dark_mode",n=>{n.detail.isActive||!1?DarkModeAuto.enable(r,{ignoreInlineStyle:".wp-dark-mode-ignore"}):DarkModeAuto.disable()})}catch{}}removeLoader(){const t=document.querySelector("html");t==null||t.removeAttribute("data-wp-dark-mode-loading"),this.isPremium&&this.handleIncludes()}automaticArgs(){return{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,excludes:".wp-dark-mode-ignore, "+wp_dark_mode_json.options.excludes_elements_includes,scrollbarColor:null}}presetArgs(){const t=wp_dark_mode_json.options.color_presets[this.presetId-1];return{brightness:100,contrast:90,sepia:10,grayscale:0,darkSchemeBackgroundColor:t.bg||"#222",darkSchemeTextColor:t.text||"#eee",lightSchemeBackgroundColor:t.bg||"#eee",lightSchemeTextColor:t.text||"#222",scrollbarColor:null}}handleExcludes(){if(!wp_dark_mode_json.excluded_elements)return;const t=document.querySelectorAll(wp_dark_mode_json.excluded_elements);!t||!t.length||t.forEach(r=>{!r||!(r instanceof HTMLElement)||r.classList.contains("wp-dark-mode-include")||r.classList.add("wp-dark-mode-ignore")})}handleIncludes(){const t=document.querySelectorAll(wp_dark_mode_json.options.excludes_elements_includes||".wp_dark_mode_include");!t||!t.length||t.forEach(r=>{!r||!(r instanceof HTMLElement)||(r.classList.add("wp-dark-mode-include"),r.classList.remove("wp-dark-mode-ignore"))})}get presetId(){var s;const t=typeof wp_dark_mode_admin_json<"u"?wp_dark_mode_admin_json:wp_dark_mode_json;let r=((s=t==null?void 0:t.options)==null?void 0:s.color_preset_id)||!1;return!this.isPremium&&r>=3&&r!==14&&(r=1),r}get isAutoColor(){return Number(this.presetId)===0}}const Ln=new Cn;class Dn extends we{constructor(){super(...arguments);J(this,"getVideoHost",r=>{const n=/^(https?:\/\/)?(www\.)?(youtube\.com\/(watch\?v=|embed\/)|youtu\.be\/)[\w-]+/,s=/^(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/(video\/)?\d+/,i=/\.(mp4|avi|mov|flv|wmv|webm|m4v|mkv|mpg|mpeg|vob|asf|divx|ogv|3gp)$/i;return n.test(r)?"youtube":s.test(r)?"vimeo":i.test(r)?"file":!1});J(this,"getYouTubeVideoID",r=>{const n=/(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/i,s=r.match(n);return s?s[1]:null});J(this,"getVimeoVideoID",r=>{const n=/(?:vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/|)(\d+)|vimeo\.com\/(?:\w*\/)?(\d+))/i,s=r.match(n);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(n=>{const s=this.getVideoHost(r[n]);if(s==="youtube"){const i=this.getYouTubeVideoID(r[n]);if(!i)return;r[n]=`https://www.youtube.com/embed/${i}`}if(s==="vimeo"){const i=this.getVimeoVideoID(r[n]);if(!i)return;r[n]=`https://player.vimeo.com/video/${i}`}}),r)),document.body.style.setProperty("--wpdm-vid-opacity",1),this.replaceVideos(),this.adjustEmbeds(),this.setVideoFilters(),document.addEventListener("wp_dark_mode",r=>{this.replaceVideos(),this.setVideoFilters()})}replaceVideos(){if(!this.isPremium)return;const r=document.querySelectorAll("video, iframe, video source");!r||!r.length||r.forEach(n=>{if(!n.src)return;let s=n.dataset.lightSrc||n.src;if(n.classList.add("wp-dark-mode-ignore"),WPDarkMode.isActive){const i=this.getDarkSrc(s);i&&(n.dataset.lightSrc=s,n.dataset.darkSrc=i,n.src=i,n.srcset=i)}else{const i=n.dataset.lightSrc;i&&(n.src=i,n.srcset=i)}})}getDarkSrc(r=null){if(!r)return;const n=wp_dark_mode_json.options.video_replaces||!1;if(!n)return!1;const s=n.find(i=>{const o=r.split("?")[0];return i.light===o});return s?s.dark:!1}adjustEmbeds(){const r=document.querySelectorAll("iframe");if(!r||!r.length)return;const n=Array.from(r).filter(s=>{if(!s.src)return!1;const i=this.getVideoHost(s.src);return i==="youtube"||i==="vimeo"||i==="file"});!n||!n.length||n.forEach(s=>{!s||!s.style||(s.style.filter="brightness(var(--wpdm-video-brightness, 100%)) grayscale(var(--wpdm-video-grayscale, 0%))")})}setVideoFilters(){const r=wp_dark_mode_json.options.video_enabled_low_brightness?wp_dark_mode_json.options.video_low_brightness_excludes:[],n=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(i=>{const o=i.src;r&&r.includes(o)&&(i==null||i.style.setProperty("--wpdm-video-brightness","100%")),n&&n.includes(o)&&(i==null||i.style.setProperty("--wpdm-video-grayscale","0"))})}}const xn=new Dn;function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={exports:{}},Qt;function In(){return Qt||(Qt=1,(function(e,t){(function(){var r=Math.PI,n=Math.sin,s=Math.cos,i=Math.tan,o=Math.asin,a=Math.atan2,m=Math.acos,l=r/180,u=1e3*60*60*24,w=2440588,S=2451545;function T(h){return h.valueOf()/u-.5+w}function f(h){return new Date((h+.5-w)*u)}function d(h){return T(h)-S}var p=l*23.4397;function k(h,g){return a(n(h)*s(p)-i(g)*n(p),s(h))}function E(h,g){return o(n(g)*s(p)+s(g)*n(p)*n(h))}function A(h,g,b){return a(n(h),s(h)*n(g)-i(b)*s(g))}function D(h,g,b){return o(n(g)*n(b)+s(g)*s(b)*s(h))}function q(h,g){return l*(280.16+360.9856235*h)-g}function ne(h){return h<0&&(h=0),2967e-7/Math.tan(h+.00312536/(h+.08901179))}function N(h){return l*(357.5291+.98560028*h)}function ye(h){var g=l*(1.9148*n(h)+.02*n(2*h)+3e-4*n(3*h)),b=l*102.9372;return h+g+b+r}function fe(h){var g=N(h),b=ye(g);return{dec:E(b,0),ra:k(b,0)}}var H={};H.getPosition=function(h,g,b){var O=l*-b,R=l*g,P=d(h),L=fe(P),I=q(P,O)-L.ra;return{azimuth:A(I,R,L.dec),altitude:D(I,R,L.dec)}};var ve=H.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];H.addTime=function(h,g,b){ve.push([h,g,b])};var pe=9e-4;function me(h,g){return Math.round(h-pe-g/(2*r))}function Z(h,g,b){return pe+(h+g)/(2*r)+b}function xe(h,g,b){return S+h+.0053*n(g)-.0069*n(2*b)}function M(h,g,b){return m((n(h)-n(g)*n(b))/(s(g)*s(b)))}function Xe(h){return-2.076*Math.sqrt(h)/60}function Y(h,g,b,O,R,P,L){var I=M(h,b,O),z=Z(I,g,R);return xe(z,P,L)}H.getTimes=function(h,g,b,O){O=O||0;var R=l*-b,P=l*g,L=Xe(O),I=d(h),z=me(I,R),$=Z(0,R,z),ee=N($),se=ye(ee),he=E(se,0),te=xe($,ee,se),ie,Ae,re,G,oe,Ee,W={solarNoon:f(te),nadir:f(te-.5)};for(ie=0,Ae=ve.length;ie<Ae;ie+=1)re=ve[ie],G=(re[0]+L)*l,oe=Y(G,R,P,he,z,ee,se),Ee=te-(oe-te),W[re[1]]=f(Ee),W[re[2]]=f(oe);return W};function Pe(h){var g=l*(218.316+13.176396*h),b=l*(134.963+13.064993*h),O=l*(93.272+13.22935*h),R=g+l*6.289*n(b),P=l*5.128*n(O),L=385001-20905*s(b);return{ra:k(R,P),dec:E(R,P),dist:L}}H.getMoonPosition=function(h,g,b){var O=l*-b,R=l*g,P=d(h),L=Pe(P),I=q(P,O)-L.ra,z=D(I,R,L.dec),$=a(n(I),i(R)*s(L.dec)-n(L.dec)*s(I));return z=z+ne(z),{azimuth:A(I,R,L.dec),altitude:z,distance:L.dist,parallacticAngle:$}},H.getMoonIllumination=function(h){var g=d(h||new Date),b=fe(g),O=Pe(g),R=149598e3,P=m(n(b.dec)*n(O.dec)+s(b.dec)*s(O.dec)*s(b.ra-O.ra)),L=a(R*n(P),O.dist-R*s(P)),I=a(s(b.dec)*n(b.ra-O.ra),n(b.dec)*s(O.dec)-s(b.dec)*n(O.dec)*s(b.ra-O.ra));return{fraction:(1+s(L))/2,phase:.5+.5*L*(I<0?-1:1)/Math.PI,angle:I}};function Se(h,g){return new Date(h.valueOf()+g*u/24)}H.getMoonTimes=function(h,g,b,O){var R=new Date(h);O?R.setUTCHours(0,0,0,0):R.setHours(0,0,0,0);for(var P=.133*l,L=H.getMoonPosition(R,g,b).altitude-P,I,z,$,ee,se,he,te,ie,Ae,re,G,oe,Ee,W=1;W<=24&&(I=H.getMoonPosition(Se(R,W),g,b).altitude-P,z=H.getMoonPosition(Se(R,W+1),g,b).altitude-P,se=(L+z)/2-I,he=(z-L)/2,te=-he/(2*se),ie=(se*te+he)*te+I,Ae=he*he-4*se*I,re=0,Ae>=0&&(Ee=Math.sqrt(Ae)/(Math.abs(se)*2),G=te-Ee,oe=te+Ee,Math.abs(G)<=1&&re++,Math.abs(oe)<=1&&re++,G<-1&&(G=oe)),re===1?L<0?$=W+G:ee=W+G:re===2&&($=W+(ie<0?oe:G),ee=W+(ie<0?G:oe)),!($&&ee));W+=2)L=z;var Qe={};return $&&(Qe.rise=Se(R,$)),ee&&(Qe.set=Se(R,ee)),!$&&!ee&&(Qe[ie>0?"alwaysUp":"alwaysDown"]=!0),Qe},e.exports=H})()})(ct)),ct.exports}var Fn=In();const Mn=Pn(Fn);class Un extends we{ready(){this.removeDarkModeClasses()}removeDarkModeClasses(){const t=n=>{if(!Array.from(n.classList).some(o=>/^et_pb_blog_\d+$/.test(o)))return;Array.from(n.classList).filter(o=>o.startsWith("wp-dark-")).forEach(o=>n.classList.remove(o))};this._els('[class*="et_pb_blog_"]').forEach(t),new MutationObserver(n=>{n.forEach(s=>{if(s.addedNodes.forEach(i=>{i.nodeType===1&&i.matches('[class*="et_pb_blog_"]')&&(t(i),this.observeClassChanges(i,t))}),s.type==="attributes"&&s.attributeName==="class"){const i=s.target;i.matches('[class*="et_pb_blog_"]')&&t(i)}})}).observe(document.body,{childList:!0,subtree:!0}),this._els('[class*="et_pb_blog_"]').forEach(n=>{this.observeClassChanges(n,t)})}observeClassChanges(t,r){new MutationObserver(s=>{s.forEach(i=>{i.type==="attributes"&&i.attributeName==="class"&&r(t)})}).observe(t,{attributes:!0,attributeFilter:["class"]})}}const Nn=new Un;class jn extends we{async events(){return this.syncStorage(),this.tryApplyingDarkMode(),this.registerEvents(),this}get hasUserChoice(){return v.get("choice")!==null}syncStorage(){if(v.set("device",y.isDeviceDark?"dark":"light"),!this.isPremium)return;let t=new Date().getTimezoneOffset()/60;t>0?t="-"+t:t="+"+Math.abs(Number(t)),v.set("timezone",t),wp_dark_mode_json.options.frontend_mode==="sunset"&&this.syncDeviceLocation()}async syncDeviceLocation(){const t=v.get("location-updated");t&&new Date-new Date().setTime(t)<1440*60*1e3||!navigator||!navigator.geolocation||navigator.geolocation.getCurrentPosition(r=>{v.set("location",r.coords.latitude+","+r.coords.longitude),v.set("location-updated",new Date().getTime()),wp_dark_mode_json.options.frontend_mode==="sunset"&&this.isPremium&&this.applySunsetMode()})}registerEvents(){Ln.init(),Xt.init(),Fe().init(),xn.init(),this.followDevice(),Nn.init()}followDevice(){if(wp_dark_mode_json.options.frontend_mode!=="device"||!window||!window.matchMedia)return;const t=matchMedia("(prefers-color-scheme: dark)");if(!t)return!1;const r=()=>{t.matches?y.activate():y.deactivate()};t.addEventListener("change",function(){v.set("device",t.matches?"dark":"light"),v.get("choice")===null&&r()}),!y.isActive&&!this.hasUserChoice&&r()}async tryApplyingDarkMode(){return new Promise(async t=>{if(wp_dark_mode_json.is_excluded==1){t(!0);return}if(this.isPremium&&this.isTrue(wp_dark_mode_json.options.performance_exclude_cache)&&t(!0),!this.isTrue(wp_dark_mode_json.options.frontend_enabled)){t(!0);return}if(this.hasUserChoice){v.get("choice")=="dark"?y.activate():y.deactivate(),t(!0);return}switch(wp_dark_mode_json.options.frontend_mode){case"default_light":y.deactivate();break;default:case"default":y.activate();break;case"device":y.isDeviceDark?y.activate():y.deactivate();break;case"time":let s=function(u){const[w,S]=u.split(" ");let[T,f]=w.split(":").map(Number);return S==="PM"&&T!==12?T+=12:S==="AM"&&T===12&&(T=0),T*60+f};if(!this.isPremium){t(!0);return}const r=wp_dark_mode_json.options.frontend_time_starts,n=wp_dark_mode_json.options.frontend_time_ends,i=new Date,o=i.getHours()*60+i.getMinutes(),a=s(r),m=s(n);let l=!1;a<m?o>=a&&o<m&&(l=!0):(o>=a||o<m)&&(l=!0),l?y.activate():y.deactivate();break;case"sunset":if(!this.isPremium){t(!0);return}await this.applySunsetMode();break}t(!0)})}async applySunsetMode(){const t=v.get("location").split(",").map(Number);let{sunrise:r,sunset:n}=Mn.getTimes(new Date,t[0],t[1]);const s=new Date;s>n||s<r?y.activate():y.deactivate()}}const Bn=new jn,qn=Object.freeze(Object.defineProperty({__proto__:null,Switch_1:(e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.HalfMoonFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonFilled)+"</div></div>",Switch_10:((e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunFilled)+'</div><div class="_thumb wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.StarMoonFilled)+"</div></div></div>"),Switch_11:((e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_thumb wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonFilled)+"</div></div></div>"),Switch_12:((e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_thumb wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonFilled)+"</div></div></div>"),Switch_13:(e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.SunOutlined)+"</div></div>",Switch_14:(e={})=>'<div class="_scheme wp-dark-mode-ignore" tabindex="0" role="switch" aria-label="Light Mode On" aria-checked="true" title="Light Mode On"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.FullMoonFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.FullMoonFilled)+'</div></div><div class="_font wp-dark-mode-ignore" tabindex="0" role="switch" aria-label="Normal Font On" aria-checked="true" title="Normal Font On"><div class="_icon">'+(e.fontIcon||wp_dark_mode_icons.DoubleUpperT)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.fontIconActive||wp_dark_mode_icons.DoubleUpperT)+"</div></div>",Switch_15:(e={})=>{const t=e.fontIcon?'<img src="'+e.fontIcon+'"></img>':"a",r=e.fontIconActive?'<img src="'+e.fontIconActive+'"></img>':"A";return'<div class="_scheme wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonFilled)+'</div></div><div class="_font wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+t+'</div><div class="_icon wp-dark-mode-ignore">'+r+"</div></div>"},Switch_16:(e={})=>'<div class="_scheme wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.StarMoonOutlined)+'</div></div><div class="_font wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.fontIcon?'<img src="'+e.fontIcon+'"></img>':wp_dark_mode_icons.DoubleT)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.fontIconActive?'<img src="'+e.fontIconActive+'"></img>':wp_dark_mode_icons.DoubleT)+"</div></div>",Switch_17:(e={})=>'<div class="_scheme wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.RichSunFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.RichMoonFilled)+'</div></div><div class="_font wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.fontIcon||wp_dark_mode_icons.UpperA)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.fontIconActive||wp_dark_mode_icons.UpperA)+"</div></div>",Switch_18:(e={})=>'<div class="_font wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.fontIcon||wp_dark_mode_icons.UpperA)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.fontIconActive||wp_dark_mode_icons.UpperA)+'</div></div><div class="_scheme wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.FullMoonFilled)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.FullMoonFilled)+"</div></div>",Switch_19:(e={})=>'<div class="_font wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.fontIcon||wp_dark_mode_icons.UpperA)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.fontIconActive||wp_dark_mode_icons.UpperA)+'</div></div><div class="_scheme wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.StarMoonFilled)+"</div></div>",Switch_2:(e={})=>'<div class="_track wp-dark-mode-ignore"><span class="wp-dark-mode-ignore">'+(e.textLight||"Light")+'</span><div class="_thumb wp-dark-mode-ignore"></div><span class="wp-dark-mode-ignore">'+(e.textDark||"Dark")+"</span></div>",Switch_20:(e={})=>'<div class="_track wp-dark-mode-ignore"><span class="_thumb wp-dark-mode-ignore"></span></div>',Switch_21:(e={})=>`
<label class="theme-switch _track wp-dark-mode-ignore">
<div class="theme-switch__container wp-dark-mode-ignore">
<div class="theme-switch__clouds wp-dark-mode-ignore"></div>
<div class="theme-switch__stars-container wp-dark-mode-ignore">
${wp_dark_mode_icons.Stars}
</div>
<div class="theme-switch__circle-container wp-dark-mode-ignore">
<div class="theme-switch__sun-moon-container wp-dark-mode-ignore">
<div class="theme-switch__moon wp-dark-mode-ignore">
<div class="theme-switch__spot wp-dark-mode-ignore"></div>
<div class="theme-switch__spot wp-dark-mode-ignore"></div>
</div>
</div>
</div>
</div>
</label>
`.trim(),Switch_22:((e={})=>'<div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.Halloween.light)+'</div><div class="_track wp-dark-mode-ignore"><span class="_thumb wp-dark-mode-ignore"></span></div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.Halloween.dark)+"</div>"),Switch_23:((e={})=>`<div class="switch-inner">
<span>${e.iconLight||wp_dark_mode_icons.LOWSUN}</span>
<span>${e.iconDark||wp_dark_mode_icons.TILTMOON}</span>
<span class="glass"></span>
</div>
<svg style="display:none;">
<filter id="glassEffect">
<feImage href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAMoElEQVRogZ1a3ZqjyI6MkBJc3XOz7/+g+53pMoq9kJQk2K6Zs0yNGzAG/YRCSgn+/r0PYpCD2IEH+SC/yIdZfj6MD9pu3M02cjMb5KC50cycNBoJ0kiCJKn8BEWCACgCAkAAIAhQAGAAIRccNGIDBjCADdilHdilh/QAH9AX+DA+yN1sM9vAYRw2SIKg1dNJkm61Y0YzGkmDGc1A0og8JEGT1Q1gBCkQJEgArENgCi4QFDR1AABIAEEJggAIECRJogBJeblIkLK0AUEOjpQUBMzMyPk/naTRUvTUgTQDjWZESmxgfgJGIA8poE62+HNHvSeJedzngdYgZZaASNepr1HelgQhYthuhjKrpaBmrP+MZuUHt9IqP9mKWnkEZiAxzc8UkgQFkDzFLAeohZJw7qh3InRAIYYUQAhBCOVStauHbaTBQXMaPWV2L4Sb08ytxPUS1wxmaftohIEX0QkT076Fe1UcZExISB3Uhp3Ctw9CSt0i2jMSKCKmP4nBB70AYsbEudtwcx++DR/DbJi7mafh6WVs2sSPQJql+Zmxm9Y/kVPSsw1OlB/K3gIhEwI4ICqDO47QM8Lj2BShCFHMCEnTaPhXYd5TBXN3H2N/7PtjezzG/nDfzDe6kw66+cRQBsQKfaSLK2RXBU6Y84SSFtwrhCOjNcULAaEIHId/f38f37tCoQAEBCBQ0uCXO+E0N7rb5j58e+y/f339/v3462t7bDaGuTMZkwZ6RgBIEvk50d/Si1DGMi8KqHVicc8ZstEIknBAh3Aojjjw/Obzb/v7z/78ez9CVAhKiAHDv8qYLPSPfX/8+vX719f//Nr/2rd9s+FWdOPNWCk9KzpZzM7Cjdr2J0+CnPSji+yEAATAPqeCO0IRccTzie9tH//7/A+ex98hISoeAhr2SCah08wSPV/7778eX3899t/DNrdJnMVXGapW4hbceSLnZP4VP9P20jw76afUUAMqACkkQYPb+OP8j8WXjnhGxHFECBQEcPCr2JFGp49tG4992x/742GeadcIFNXgBE3zQJ1sE99wX0Q/sbXkrsvRCa+ZCxonh/jc9Y3vZ4yDT4UiEJLIkIZ9mYFmNtLGw20bY9vMh/mocAVViM/Yb7uDInlyJRfEL9C/RO881HJGEFtZQJnBLc8LDBwxxrF7wCNiZmmBw3abGcvo5u6bcTg9MzEh4sXkrUMVBLwY/oV83m7pNgEpO1sNZDSUtWAZL6ag3GKjghIVRabDdzeaZx6AmRs35yCsLTq5pUHPhW1O/LwXnauVr1t7RQuvcuYHAKpUSIYgMzkhyiAwQkWjtruDltUlRuZf+qx/WCiZ9cdCO9OQn23fmp940eUrCMwgpgArNVQRiqo5YJBn8UGJQEAsCPnmDnoXOk7H8CQm2Mru09LzD1cs/ajAaXV79cUstZupqoA6CcsIIZyiEIiqMxJCw410ZJ5y0tyJTrbT0h20L9J/9MNVE85/rrFbUs4I4HpeVXJKAVlWIQxrjpJEDPOytlkyvaOL0AUti7icKt00WSR+5SKhi5eVTtdMrdUH0kJveRElL29nJi4P2Kh1SqcqTvzwLmsF9Sn0xwC4UdDbzHaTm7WqqeDOmpuiQCIaRVVr5dIHQHmgFlqmWqmwFll5La/QZ+P61Q/9mUkNpzxX2c8lzZReaJOvsdCHygVAUAYJwUxzDGDQ5wLRDEZ5umHlnKvtL5iZCe6uxksk36XXTb1Xn+R9VKkzuSgoEmZSZOk0LFcyuSYrD3T4LtIvbHMR9L0H3oTvi+3Lf1otnd92NPfCIRc7hGSy6hXUugwYtQyWmVmulgm78D1XWW5S/iD9HezvtlfpZ3CXDmWlJCMjZAELSvAswIeZTfxkAjtDtrI9X2RdDf9WsZv9Lwb+IDcnVXE9vER/rvVy0Vc5wgzu8FMHeHqA5++4yLJq8rMTbpd90vPyqeVQ19/OsiI/xVozDaMbaLLsmWR3oYJmeeQ1Kv9RxJsf5vaD7W/kc95B/XlKn9eQgHJ9PkU3g6E8cIoyeeaKnFWTH3b+q1D5IXJOL6kWxBRg7GZVU03uGLhQp2636SB58+BXV9xUvetzWyq8/Xk7YWny9WaE5anknyyrVgy+M+fbJ93M/Oknr9sPqHvxku7ONCBbUGwdzr+K/PePfCv6W7F+UO9ywZuc9vLzeU35ROgYmDpk1/WN+f/l9paLflCPL6fOMwu6lLUbs4brOABglKXQldl62f7JBv8k+n+98ePRHauq/kXvIxWoFmGmYauerz5J/BoDc9PLlf8k7Rs/XPsU77cmeBGAUYQKQiV9k8+rT3/cbpe9fbxeD/Xm/PvnMoXXSYwUzJr1iTlamYy7pvJ/3N4uFOff/2Ob04OWWK8eaw6d31GmPqTeWv+tl+/08Gnh+7r/zxZqSjmlLLUEcXRqarqYJe3lQe+f8qKgfoyKtzp8MsFlu4ZdO0UkZZgeOlsCuCpx2X138hXZPwfAv0fUTKtYhWq6zPCtb7he11HwD0Lw5cz1UJ8NfH7qZyeUDDUUnAzTa1blWOUknHzmOVJ70eEDRG5i3aDy0fYXTjnFAq5wB9AzsbZtMiY1ijKN6hblyaB97+Ve1XA6EyT4Y0n8ul2Uud58VeyycyV1nRASLBXJYpt2XQW8mutFgs+k9IlVbzv3Gy6EeOqmU/pe8mbdbBhFpPOurGKjdU87lYG7WwNBOX2vFSBnUEwP4IMTrvpXE1TvKPvs5FNIwukUm01zGDBy7Jfd1e43anJv31arC+uwwr+/Onmre5pamw7vdVjgevfJ+txqRVmPPxMvIsAhx5nS1U3hALITebFKD0bvlsbd8BcS+yj9y7darFAgWNfm2U8x5mqrwD7gU/wUUTUwj1sqTqtnHJ9d2G4itL2n7d6IfhX0JLv3V5Zz2HFnVXUmU3bvhINeaqdzJPEQONvgN0yfcXU+pn/auJrS/FjecbJQBcPCp7XPs0gQTTVZN/asUSQGvSdb1TVtrUO3x7bNl4nQyaq44Gr96RrPd1C9wImn9OdTa34LmuiiJ51EQYhb1qHdwIq2ztoau2eAoiau2p3Mpbvpb85YvMSrDpwj5v66gQQ6MECHeQ6ZSMCoga3SQiKfQQAIQmd1NAclyoyIOdW9RsgFJG9TyXLBawDwclkzppj8YzIXh+DZfcjFlw2NnJaVDnFAgELIt0Im68xIPcXFkk3/fQSvoresN33WZk5lAdDB0X+A2cwDe1JP5i/CJECHEksFHS3PzmUGm4h068JqccZE1HL+1SFr3F/VKD8Q5qmAbAcd3UAXwIGHEMzkq5CegqQnFKpUgJo9vFD/VeiLGlex1mi+A+ZF9NlcQOEaBpg4xB3cZCNbo6kDB/bm5chJpwKBI6QIhcmkGvEscvfsKSPijt77diEprqGPnsqAKFqsHEhgzvgsfMi2sE22ywaybCNAw+DeHkvMuALHoe8Dw2k6OqwZC7+tcQzcC5nGUI3dsfiIa52FHmrPYE2TlAsV2bEaI3w8t8cxHoc/wAFI9Gq0D37RauhBShrS0GHHk9/m8OdQ0MFDsE4UBEw43wZIyS4R/NEPtd+/5Aqk2VojDNnmj0GN7bnvf/Zff7avw7fDh5w01GuSg49eKgQA46E4jm//5gb+ifh+ejBkFhXQJhgQoqWZZqu76sEzF826SZp+KKyzxZ3Qz4ZUNacgJ5wYjM31tT9/7X++Ht/b4+kuOskga4w3+EVEY0OKgAmxP78fwvMYTzuCLrhgwXrzol8ctO71sVj4bMovpYYWQBHz336jlN0ezL6aQ8MwKCc2xu56+PPXFvv2HEOVELrhT8PQXgFTr6+IEXHsxHEwQgc8KEABE0aVLTAxXxJL+J3NvJM/EiWFk7N866ivV0t7oIKckEKDGIQzdtcG7B4P0/AYLmOQSPTnRIPkwKOKgswDqnqUETpCQL2JR5ChrFBTn9RWUivASvqauGoU9QtAlRNmbZPrlLJ9v5QLGTEMngHgcmKYzETO+VdOISlhxKNeAGE6PtOWInkpJ+IUQjLNfKekpXRFLbVbh8XOXX0vyOl1d2eMjKosgZofsnYAROtpmFULEcsMGDASQ3t6WpbLmJyCZySklFAIEcpXOxkpgBigGIBJyPqql4d5p+aXtUaizhfCiX7Pes7UaSJIE7C8nFrXdAPU5uyCAIe2IoyADMwJeOK7DV+LnNyvMjtfyy78GM7XPc/grXeje2mFfqdO6CbURRLAquggOeXukJ2pF0V4pwIjpotzdFw4yUIi+iXIwo9KpWg+73FDgUL9YnSTEdfVLuv1MhE2XyrlJCXjgiLU6AXovAsqybPKAlHA/wH75uVy+EFM3wAAAABJRU5ErkJggg=="
preserveAspectRatio="none" />
<feDisplacementMap in="SourceGraphic"
in2="turbulence"
scale="200" xChannelSelector="R" yChannelSelector="G" />
</filter>
</svg>`),Switch_24:((e={})=>`<span class="_label">${e.textLight||"Light"}</span>
<div class="_track">
<div class="_circles">
<span></span>
<span></span>
</div>
<div class="_stars">
${wp_dark_mode_icons.LITTLE_STAR}
${wp_dark_mode_icons.LITTLE_STAR}
${wp_dark_mode_icons.LITTLE_STAR}
${wp_dark_mode_icons.LITTLE_STAR}
${wp_dark_mode_icons.LITTLE_STAR}
</div>
<div class="_thumb">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 30.457 30.457"
xml:space="preserve">
<g>
<path d="M29.693,14.49c-0.469-0.174-1-0.035-1.32,0.353c-1.795,2.189-4.443,3.446-7.27,3.446c-5.183,0-9.396-4.216-9.396-9.397
c0-2.608,1.051-5.036,2.963-6.835c0.366-0.347,0.471-0.885,0.264-1.343c-0.207-0.456-0.682-0.736-1.184-0.684
C5.91,0.791,0,7.311,0,15.194c0,8.402,6.836,15.238,15.238,15.238c8.303,0,14.989-6.506,15.219-14.812
C30.471,15.118,30.164,14.664,29.693,14.49z"/>
</g>
</svg>
</div>
</div>
<span class="_label">${e.textDark||"Dark"}</span>`),Switch_3:((e={})=>'<div class="_track wp-dark-mode-ignore"> <div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+'</div> <span class="_thumb wp-dark-mode-ignore"></span> <div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonOutlined)+"</div> </div>"),Switch_4:(function(e={}){return'<div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+'</div><div class="_track wp-dark-mode-ignore"><span class="_thumb wp-dark-mode-ignore"></span></div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonOutlined)+"</div>"}),Switch_5:(e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_thumb wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.RichSunOutlined)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.CurvedMoonOutlined)+"</div></div></div>",Switch_6:(function(e={}){return'<span class="wp-dark-mode-ignore">'+(e.textLight||"Light")+'</span><div class="_track wp-dark-mode-ignore"><div class="_thumb wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.RichSunOutlined)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.CurvedMoonOutlined)+'</div></div></div><span class="wp-dark-mode-ignore">'+(e.textDark||"Dark")+"</span>"}),Switch_7:((e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_thumb wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.RichSunOutlined)+'</div><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.CurvedMoonOutlined)+"</div></div></div>"),Switch_8:((e={})=>'<div class="_track wp-dark-mode-ignore"><div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+'</div><span class="_thumb wp-dark-mode-ignore"></span><div class="_icon wp-dark-mode-ignore">'+(e.iconDark||wp_dark_mode_icons.HalfMoonOutlined)+"</div></div>"),Switch_9:((e={})=>' <div class="_track wp-dark-mode-ignore"> <div class="_thumb wp-dark-mode-ignore"> <div class="_icon wp-dark-mode-ignore">'+(e.iconLight||wp_dark_mode_icons.SunOutlined)+"</div> </div> </div>")},Symbol.toStringTag,{value:"Module"})),Q=typeof window.wp_dark_mode_admin_json<"u"?window.wp_dark_mode_admin_json:window.wp_dark_mode_json;class Hn extends we{constructor(){super(...arguments);J(this,"userActivity",!1);J(this,"userActivityTimeout",null);J(this,"injectSwitches",()=>{const r=this.getSwitches(".ignore");if(!r||!r.length)return;const n=this;r.forEach(s=>{if(s.querySelector(".wp-dark-mode-switch-styled"))return;const i=["style","size","reactive","textLight","textDark","iconLight","iconDark"],o={};if(i.forEach(m=>{o[m]=s.dataset[m]||null}),!o.style)return;const a=n.buildSwitch(o);s.innerHTML=a})});J(this,"updateSwitches",()=>{const r=this.getSwitches(".dummy");if(!r||!r.length)return;const n=y.isActive,s="Toggle Dark Mode",i=n?"Dark Mode On":"Light Mode On";r.forEach(o=>{const a=o.querySelector("._scheme"),m=o.querySelector("._font");if(this.clickedSwitch&&(o===this.clickedSwitch||o.contains(this.clickedSwitch)),a||m)o.setAttribute("role","group"),o.setAttribute("aria-label","Dark Mode Settings"),o.removeAttribute("aria-checked"),o.removeAttribute("aria-pressed"),o.removeAttribute("title"),o.removeAttribute("tabindex"),a&&(a.classList[n?"add":"remove"]("active"),a.setAttribute("role","button"),a.removeAttribute("aria-checked"),a.removeAttribute("aria-pressed"),a.getAttribute("aria-label")||a.setAttribute("aria-label",s),a.getAttribute("tabindex")||a.setAttribute("tabindex","0")),m&&(m.getAttribute("tabindex")||m.setAttribute("tabindex","0"));else{o.setAttribute("role","button"),o.removeAttribute("aria-checked"),o.removeAttribute("aria-pressed"),o.getAttribute("aria-label")||o.setAttribute("aria-label",s);const l=o.querySelector(".switch");if(l)l.classList[n?"add":"remove"]("active");else{let u=o.querySelector("div:not(.light):not(.dark)");u||(u=o),u.classList[n?"add":"remove"]("active")}}}),this.clickedSwitch&&setTimeout(()=>{this.announce(i)},50),this.clickedSwitch=null})}getSwitches(r=""){return r!==""?document.querySelectorAll(".wp-dark-mode-switch:not("+r+")"):document.querySelectorAll(".wp-dark-mode-switch")}ready(){Q&&Q.is_excluded||(this.adjustFloatingSwitchDelay(),this.injectSwitches(),this.hideFloatingSwitch(),this.listenSwitches(),this.reactiveSwitches(),this.listenCustomTriggers(),this.throttle=!1,this.createAriaLiveRegion(),window.addEventListener("elementor/frontend/init",()=>{this.dynamicSwitches()}))}createAriaLiveRegion(){if(document.getElementById("wp-dark-mode-announcer"))return;const r=document.createElement("div");r.id="wp-dark-mode-announcer",r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),r.style.position="absolute",r.style.left="-10000px",r.style.width="1px",r.style.height="1px",r.style.overflow="hidden",document.body.appendChild(r)}announce(r){const n=document.getElementById("wp-dark-mode-announcer");n&&(n.textContent="",setTimeout(()=>{n.textContent=r},100))}adjustFloatingSwitchDelay(){if(!(!Q.options.floating_switch_has_delay||!Q.options.floating_switch_delay)){var r=document.querySelector(".wp-dark-mode-floating-switch");r&&(r.style.opacity="0",r.style.display="none",r.classList.add("wp-dark-mode-floating-switch-hidden"),setTimeout(function(){r.classList.remove("wp-dark-mode-floating-switch-hidden"),r.style.display="",r.style.transition="opacity 0.1s linear",r.offsetWidth,r.style.opacity="1"},Q.options.floating_switch_delay*1e3))}}hideFloatingSwitch(){if(!Q.options.floating_switch_hide_on_idle)return;var r=document.querySelector(".wp-dark-mode-floating-switch");if(!r)return;var n=["mousemove","keydown","click","scroll","touchstart","touchmove","touchend","wheel"],s=this;function i(a,m){a.style.opacity=0,a.style.display="",a.style.transition="opacity "+m/1e3+"s linear",a.offsetWidth,a.style.opacity=1}function o(a,m){a.style.transition="opacity "+m/1e3+"s linear",a.style.opacity=0,setTimeout(function(){a.style.display="none"},m)}n.forEach(function(a){window.addEventListener(a,function(){s.userActivityTimeout||(clearTimeout(s.userActivityTimeout),r.classList.remove("wp-dark-mode-floating-switch-hidden"),i(r,100),s.userActivityTimeout=setTimeout(function(){s.userActivityTimeout=null,clearTimeout(s.userActivityTimeout),o(r,200),r.classList.add("wp-dark-mode-floating-switch-hidden")},Q.options.floating_switch_idle_timeout*1e3))})})}dynamicSwitches(){if(this.dynamicSwitchesInitialized)return;this.dynamicSwitchesInitialized=!0,new MutationObserver(n=>{n.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(),this.clickedSwitch=r.target.closest(".wp-dark-mode-switch"),r.target.closest("._font")||r.target.matches("._font")?(Xt.toggleFontSize(r.target.closest(".wp-dark-mode-switch ._font")),this.emit("font-toggled",r)):y.toggle().remember()))},!0),window==null||window.addEventListener("keydown",r=>{(r.key==="Enter"||r.key===" ")&&(r.target.closest(".wp-dark-mode-switch")||r.target.matches(".wp-dark-mode-switch"))&&(r.preventDefault(),r.target.click())})}listenCustomTriggers(){if(!Q||!Q.options||!Q.options.custom_triggers_enabled)return;const r=Q.options.custom_triggers_triggers||[];!r||r.length===0||(window==null||window.addEventListener("click",n=>{let s=null;for(const i of r)if(!(!i.element_selector||i.element_selector.trim()===""))try{if(n.target.closest(i.element_selector)||n.target.matches(i.element_selector)){s=i;break}}catch(o){console.warn("WP Dark Mode: Invalid custom trigger selector:",i.element_selector,o)}if(s)switch(n.preventDefault(),s.action){case"toggle":y.toggle().remember();break;case"switch_to_dark":y.isActive||y.activate().remember();break;case"switch_to_light":y.isActive&&y.deactivate().remember();break}},!0),window==null||window.addEventListener("keydown",n=>{if(!(n.key!=="Enter"&&n.key!==" ")){for(const s of r)if(!(!s.element_selector||s.element_selector.trim()===""))try{if(n.target.closest(s.element_selector)||n.target.matches(s.element_selector)){n.preventDefault(),n.target.click();break}}catch{}}},!0))}reactiveSwitches(){this.updateSwitches(),document.addEventListener("wp_dark_mode",r=>{this.updateSwitches()})}buildSwitch(r={}){const n=y.isActive,s=r.reactive!==!1;let i='<div class="wp-dark-mode-switch-styled wp-dark-mode-switch-'+(r.style||1)+(n&&s?" active":"")+'" style="--wpdm-switch-scale: '+(r.size||1)+'">';const o="Switch_"+(r.style||1);return r.iconLight=r.iconLight?'<img src="'+r.iconLight+'" width="100%"></img>':null,r.iconDark=r.iconDark?'<img src="'+r.iconDark+'" width="100%"></img>':null,i+=qn[o](r),i+="</div>",i}}const zn=new Hn,Jn=(...e)=>{wp_dark_mode_json.debug};window.Log=Jn,window.WPDarkModeApp=Bn.init(),zn.init()})();
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand (o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
jQuery.noConflict();
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery('#') is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass(boolean) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css("'+e+'", value)')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
var CLI_ACCEPT_COOKIE_NAME=(typeof CLI_ACCEPT_COOKIE_NAME!=='undefined' ? CLI_ACCEPT_COOKIE_NAME:'viewed_cookie_policy');
var CLI_PREFERENCE_COOKIE=(typeof CLI_PREFERENCE_COOKIE!=='undefined' ? CLI_PREFERENCE_COOKIE:'CookieLawInfoConsent');
var CLI_ACCEPT_COOKIE_EXPIRE=(typeof CLI_ACCEPT_COOKIE_EXPIRE!=='undefined' ? CLI_ACCEPT_COOKIE_EXPIRE:365);
var CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP!=='undefined' ? CLI_COOKIEBAR_AS_POPUP:false);
var CLI_Cookie={
set: function (name, value, days){
var secure="";
if(true===Boolean(Cli_Data.secure_cookies)){
secure=";secure";
}
if(days){
var date=new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires="; expires=" + date.toGMTString();
}else{
var expires="";
}
document.cookie=name + "=" + value + secure + expires + "; path=/";
if(days < 1){
let host_name=window.location.hostname;
document.cookie=name + "=" + value + expires + "; path=/; domain=." + host_name + ";";
if(host_name.indexOf("www")!=1){
var host_name_withoutwww=host_name.replace('www', '');
document.cookie=name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";";
}
host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1));
document.cookie=name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";";
}},
read: function (name){
var nameEQ=name + "=";
var ca=document.cookie.split(';');
for (var i=0; i < ca.length; i++){
var c=ca[i];
while (c.charAt(0)==' '){
c=c.substring(1, c.length);
}
if(c.indexOf(nameEQ)===0){
return c.substring(nameEQ.length, c.length);
}}
return null;
},
erase: function (name){
this.set(name, "", -10);
},
exists: function (name){
return (this.read(name)!==null);
},
getallcookies: function (){
var pairs=document.cookie.split(";");
var cookieslist={};
for (var i=0; i < pairs.length; i++){
var pair=pairs[i].split("=");
cookieslist[(pair[0] + '').trim()]=unescape(pair[1]);
}
return cookieslist;
}}
var CLI =
{
bar_config: {},
showagain_config: {},
allowedCategories: [],
js_blocking_enabled: false,
set: function (args){
if(typeof JSON.parse!=="function"){
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
return;
}
if(typeof args.settings!=='object'){
this.settings=JSON.parse(args.settings);
}else{
this.settings=args.settings;
}
this.js_blocking_enabled=Boolean(Cli_Data.js_blocking);
this.settings=args.settings;
this.bar_elm=jQuery(this.settings.notify_div_id);
this.showagain_elm=jQuery(this.settings.showagain_div_id);
this.settingsModal=jQuery('#cliSettingsPopup');
this.main_button=jQuery('.cli-plugin-main-button');
this.main_link=jQuery('.cli-plugin-main-link');
this.reject_link=jQuery('.cookie_action_close_header_reject');
this.delete_link=jQuery(".cookielawinfo-cookie-delete");
this.settings_button=jQuery('.cli_settings_button');
this.accept_all_button=jQuery('.wt-cli-accept-all-btn');
if(this.settings.cookie_bar_as=='popup'){
CLI_COOKIEBAR_AS_POPUP=true;
}
this.mayBeSetPreferenceCookie();
this.addStyleAttribute();
this.configBar();
this.toggleBar();
this.attachDelete();
this.attachEvents();
this.configButtons();
this.reviewConsent();
var cli_hidebar_on_readmore=this.hideBarInReadMoreLink();
if(Boolean(this.settings.scroll_close)===true&&cli_hidebar_on_readmore===false){
window.addEventListener("scroll", CLI.closeOnScroll, false);
}},
hideBarInReadMoreLink: function (){
if(Boolean(CLI.settings.button_2_hidebar)===true&&this.main_link.length > 0&&this.main_link.hasClass('cli-minimize-bar')){
this.hideHeader();
cliBlocker.cookieBar(false);
this.showagain_elm.slideDown(this.settings.animate_speed_show);
return true;
}
return false;
},
attachEvents: function (){
jQuery(document).on('click',
'.wt-cli-privacy-btn',
function (e){
e.preventDefault();
CLI.accept_close();
CLI.settingsPopUpClose();
}
);
jQuery('.wt-cli-accept-btn').on("click",
function (e){
e.preventDefault();
CLI.acceptRejectCookies(jQuery(this));
});
jQuery('.wt-cli-accept-all-btn').on("click",
function (e){
e.preventDefault();
CLI.acceptRejectCookies(jQuery(this), 'accept');
});
jQuery('.wt-cli-reject-btn').on("click",
function (e){
e.preventDefault();
CLI.acceptRejectCookies(jQuery(this), 'reject');
});
this.settingsPopUp();
this.settingsTabbedAccordion();
this.toggleUserPreferenceCheckBox();
this.hideCookieBarOnClose();
this.cookieLawInfoRunCallBacks();
},
acceptRejectCookies(element, action='custom'){
var open_link=element[0].hasAttribute("href")&&element.attr("href")!='#' ? true:false;
var new_window=false;
if(action=='accept'){
this.enableAllCookies();
this.accept_close();
new_window=CLI.settings.button_7_new_win ? true:false;
}else if(action=='reject'){
this.disableAllCookies();
this.reject_close();
new_window=Boolean(this.settings.button_3_new_win) ? true:false;
}else{
this.accept_close();
new_window=Boolean(this.settings.button_1_new_win) ? true:false;
}
if(open_link){
if(new_window){
window.open(element.attr("href"), '_blank');
}else{
window.location.href=element.attr("href");
}}
},
toggleUserPreferenceCheckBox: function (){
jQuery('.cli-user-preference-checkbox').each(function (){
const categoryCookie='cookielawinfo-' + jQuery(this).attr('data-id');
const categoryCookieValue=CLI_Cookie.read(categoryCookie);
if(categoryCookieValue==null){
if(jQuery(this).is(':checked')){
CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
}else{
CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
}}else{
if(categoryCookieValue=="yes"){
jQuery(this).prop("checked", true);
}else{
jQuery(this).prop("checked", false);
}}
}
);
jQuery('.cli-user-preference-checkbox').on("click",
function (e){
var dataID=jQuery(this).attr('data-id');
var currentToggleElm=jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']');
if(jQuery(this).is(':checked')){
CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
currentToggleElm.prop('checked', true);
}else{
CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
currentToggleElm.prop('checked', false);
}
CLI.checkCategories();
CLI.generateConsent();
}
);
},
settingsPopUp: function (){
jQuery(document).on('click',
'.cli_settings_button',
function (e){
e.preventDefault();
CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 });
CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup");
jQuery('body').addClass("cli-modal-open");
jQuery(".cli-settings-overlay").addClass("cli-show");
jQuery("#cookie-law-info-bar").css({ 'opacity': .1 });
if(!jQuery('.cli-settings-mobile').is(':visible')){
CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click");
}}
);
jQuery('#cliModalClose').on("click",
function (e){
CLI.settingsPopUpClose();
}
);
CLI.settingsModal.on("click",
function (e){
if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))){
CLI.settingsPopUpClose();
}}
);
jQuery('.cli_enable_all_btn').on("click",
function (e){
var cli_toggle_btn=jQuery(this);
var enable_text=cli_toggle_btn.attr('data-enable-text');
var disable_text=cli_toggle_btn.attr('data-disable-text');
if(cli_toggle_btn.hasClass('cli-enabled')){
CLI.disableAllCookies();
cli_toggle_btn.html(enable_text);
}else{
CLI.enableAllCookies();
cli_toggle_btn.html(disable_text);
}
jQuery(this).toggleClass('cli-enabled');
}
);
this.privacyReadmore();
},
settingsTabbedAccordion: function (){
jQuery(".cli-tab-header").on("click",
function (e){
if(!(jQuery(e.target).hasClass('cli-slider')||jQuery(e.target).hasClass('cli-user-preference-checkbox'))){
if(jQuery(this).hasClass("cli-tab-active")){
jQuery(this).removeClass("cli-tab-active");
jQuery(this)
.siblings(".cli-tab-content")
.slideUp(200);
}else{
jQuery(".cli-tab-header").removeClass("cli-tab-active");
jQuery(this).addClass("cli-tab-active");
jQuery(".cli-tab-content").slideUp(200);
jQuery(this)
.siblings(".cli-tab-content")
.slideDown(200);
}}
}
);
},
settingsPopUpClose: function (){
this.settingsModal.removeClass('cli-show');
this.settingsModal.addClass('cli-out');
jQuery('body').removeClass("cli-modal-open");
jQuery(".cli-settings-overlay").removeClass("cli-show");
jQuery("#cookie-law-info-bar").css({ 'opacity': 1 });
},
privacyReadmore: function (){
var el=jQuery('.cli-privacy-content .cli-privacy-content-text');
if(el.length > 0){
var clone=el.clone(),
originalHtml=clone.html(),
originalHeight=el.outerHeight(),
Trunc={
addReadmore: function (textBlock){
if(textBlock.html().length > 250){
jQuery('.cli-privacy-readmore').show();
}else{
jQuery('.cli-privacy-readmore').hide();
}},
truncateText: function (textBlock){
var strippedText=jQuery('<div />').html(textBlock.html());
strippedText.find('table').remove();
textBlock.html(strippedText.html());
const currentText=textBlock.text();
if(currentText.trim().length > 250){
var newStr=currentText.substring(0, 250);
textBlock.empty().html(newStr).append('...');
}},
replaceText: function (textBlock, original){
return textBlock.html(original);
}};
Trunc.addReadmore(el);
Trunc.truncateText(el);
jQuery('a.cli-privacy-readmore').on("click",
function (e){
e.preventDefault();
if(jQuery('.cli-privacy-overview').hasClass('cli-collapsed')){
Trunc.truncateText(el);
jQuery('.cli-privacy-overview').removeClass('cli-collapsed');
el.css('height', '100%');
}else{
jQuery('.cli-privacy-overview').addClass('cli-collapsed');
Trunc.replaceText(el, originalHtml);
}}
);
}},
attachDelete: function (){
this.delete_link.on("click",
function (e){
CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
for (var k in Cli_Data.nn_cookie_ids){
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI.generateConsent();
return false;
}
);
},
configButtons: function (){
this.main_button.css('color', this.settings.button_1_link_colour);
if(Boolean(this.settings.button_1_as_button)){
this.main_button.css('background-color', this.settings.button_1_button_colour);
this.main_button.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_1_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_1_button_colour);
}
);
}
this.main_link.css('color', this.settings.button_2_link_colour);
if(Boolean(this.settings.button_2_as_button)){
this.main_link.css('background-color', this.settings.button_2_button_colour);
this.main_link.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_2_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_2_button_colour);
}
);
}
this.reject_link.css('color', this.settings.button_3_link_colour);
if(Boolean(this.settings.button_3_as_button)){
this.reject_link.css('background-color', this.settings.button_3_button_colour);
this.reject_link.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_3_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_3_button_colour);
}
);
}
this.settings_button.css('color', this.settings.button_4_link_colour);
if(Boolean(this.settings.button_4_as_button)){
this.settings_button.css('background-color', this.settings.button_4_button_colour);
this.settings_button.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_4_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_4_button_colour);
}
);
}
this.accept_all_button.css('color', this.settings.button_7_link_colour);
if(this.settings.button_7_as_button){
this.accept_all_button.css('background-color', this.settings.button_7_button_colour);
this.accept_all_button.on('mouseenter',
function (){
jQuery(this).css('background-color', CLI.settings.button_7_button_hover);
}
)
.on('mouseleave',
function (){
jQuery(this).css('background-color', CLI.settings.button_7_button_colour);
}
);
}},
toggleBar: function (){
if(CLI_COOKIEBAR_AS_POPUP){
this.barAsPopUp(1);
}
if(CLI.settings.cookie_bar_as=='widget'){
this.barAsWidget(1);
}
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){
this.displayHeader();
}else{
this.hideHeader();
}
if(Boolean(this.settings.show_once_yn)){
setTimeout(
function (){
CLI.close_header();
},
CLI.settings.show_once
);
}
if(CLI.js_blocking_enabled===false){
if(Boolean(Cli_Data.ccpaEnabled)===true){
if(Cli_Data.ccpaType==='ccpa'&&Boolean(Cli_Data.ccpaBarEnabled)===false){
cliBlocker.cookieBar(false);
}}else{
jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
}}
this.showagain_elm.on("click",
function (e){
e.preventDefault();
CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide,
function (){
CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
if(CLI_COOKIEBAR_AS_POPUP){
CLI.showPopupOverlay();
}}
);
}
);
},
configShowAgain: function (){
this.showagain_config={
'background-color': this.settings.background,
'color': this.l1hs(this.settings.text),
'position': 'fixed',
'font-family': this.settings.font_family
};
if(Boolean(this.settings.border_on)){
var border_to_hide='border-' + this.settings.notify_position_vertical;
this.showagain_config['border']='1px solid ' + this.l1hs(this.settings.border);
this.showagain_config[border_to_hide]='none';
}
var cli_win=jQuery(window);
var cli_winw=cli_win.width();
var showagain_x_pos=this.settings.showagain_x_position;
if(cli_winw < 300){
showagain_x_pos=10;
this.showagain_config.width=cli_winw - 20;
}else{
this.showagain_config.width='auto';
}
var cli_defw=cli_winw > 400 ? 500:cli_winw - 20;
if(CLI_COOKIEBAR_AS_POPUP){ 
var sa_pos=this.settings.popup_showagain_position;
var sa_pos_arr=sa_pos.split('-');
if(sa_pos_arr[1]=='left'){
this.showagain_config.left=showagain_x_pos;
}else if(sa_pos_arr[1]=='right'){
this.showagain_config.right=showagain_x_pos;
}
if(sa_pos_arr[0]=='top'){
this.showagain_config.top=0;
}else if(sa_pos_arr[0]=='bottom'){
this.showagain_config.bottom=0;
}
this.bar_config['position']='fixed';
}else if(this.settings.cookie_bar_as=='widget'){
this.showagain_config.bottom=0;
if(this.settings.widget_position=='left'){
this.showagain_config.left=showagain_x_pos;
}else if(this.settings.widget_position=='right'){
this.showagain_config.right=showagain_x_pos;
}}else{
if(this.settings.notify_position_vertical=="top"){
this.showagain_config.top='0';
}else if(this.settings.notify_position_vertical=="bottom"){
this.bar_config['position']='fixed';
this.bar_config['bottom']='0';
this.showagain_config.bottom='0';
}
if(this.settings.notify_position_horizontal=="left"){
this.showagain_config.left=showagain_x_pos;
}else if(this.settings.notify_position_horizontal=="right"){
this.showagain_config.right=showagain_x_pos;
}}
this.showagain_elm.css(this.showagain_config);
},
configBar: function (){
this.bar_config={
'background-color': this.settings.background,
'color': this.settings.text,
'font-family': this.settings.font_family
};
if(this.settings.notify_position_vertical=="top"){
this.bar_config['top']='0';
if(Boolean(this.settings.header_fix)===true){
this.bar_config['position']='fixed';
}}else{
this.bar_config['bottom']='0';
}
this.configShowAgain();
this.bar_elm.css(this.bar_config).hide();
},
l1hs: function (str){
if(str.charAt(0)=="#"){
str=str.substring(1, str.length);
}else{
return "#" + str;
}
return this.l1hs(str);
},
close_header: function (){
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
this.hideHeader();
},
accept_close: function (){
this.hidePopupOverlay();
this.generateConsent();
this.cookieLawInfoRunCallBacks();
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
if(Boolean(this.settings.notify_animate_hide)){
if(CLI.js_blocking_enabled===true){
this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
}else{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}}else{
if(CLI.js_blocking_enabled===true){
this.bar_elm.hide(0, cliBlocker.runScripts);
}else{
this.bar_elm.hide();
}}
if(Boolean(this.settings.showagain_tab)){
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(Boolean(this.settings.accept_close_reload)===true){
this.reload_current_page();
}
return false;
},
reject_close: function (){
this.hidePopupOverlay();
this.generateConsent();
this.cookieLawInfoRunCallBacks();
for (var k in Cli_Data.nn_cookie_ids){
CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
}
CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
if(Boolean(this.settings.notify_animate_hide)){
if(CLI.js_blocking_enabled===true){
this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
}else{
this.bar_elm.slideUp(this.settings.animate_speed_hide);
}}else{
if(CLI.js_blocking_enabled===true){
this.bar_elm.hide(cliBlocker.runScripts);
}else{
this.bar_elm.hide();
}}
if(Boolean(this.settings.showagain_tab)){
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}
if(Boolean(this.settings.reject_close_reload)===true){
this.reload_current_page();
}
return false;
},
reload_current_page: function (){
window.location.reload(true);
},
closeOnScroll: function (){
if(window.pageYOffset > 100&&!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)){
CLI.accept_close();
if(Boolean(CLI.settings.scroll_close_reload)===true){
window.location.reload();
}
window.removeEventListener("scroll", CLI.closeOnScroll, false);
}},
displayHeader: function (){
if(Boolean(this.settings.notify_animate_show)){
this.bar_elm.slideDown(this.settings.animate_speed_show);
}else{
this.bar_elm.show();
}
this.showagain_elm.hide();
if(CLI_COOKIEBAR_AS_POPUP){
this.showPopupOverlay();
}},
hideHeader: function (){
if(Boolean(this.settings.showagain_tab)){
if(Boolean(this.settings.notify_animate_show)){
this.showagain_elm.slideDown(this.settings.animate_speed_show);
}else{
this.showagain_elm.show();
}}else{
this.showagain_elm.hide();
}
this.bar_elm.slideUp(this.settings.animate_speed_show);
this.hidePopupOverlay();
},
hidePopupOverlay: function (){
jQuery('body').removeClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").removeClass("cli-show");
},
showPopupOverlay: function (){
if(this.bar_elm.length){
if(Boolean(this.settings.popup_overlay)){
jQuery('body').addClass("cli-barmodal-open");
jQuery(".cli-popupbar-overlay").addClass("cli-show");
}}
},
barAsWidget: function (a){
var cli_elm=this.bar_elm;
cli_elm.attr('data-cli-type', 'widget');
var cli_win=jQuery(window);
var cli_winh=cli_win.height() - 40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw > 400 ? 300:cli_winw - 30;
cli_elm.css({
'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box'
}
);
if(this.checkifStyleAttributeExist()===false){
cli_elm.css({ 'padding': '25px 15px' });
}
if(this.settings.widget_position=='left'){
cli_elm.css({
'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto'
}
);
}else{
cli_elm.css({
'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto'
}
);
}
if(a){
this.setResize();
}},
barAsPopUp: function (a){
if(typeof cookie_law_info_bar_as_popup==='function'){
return false;
}
var cli_elm=this.bar_elm;
cli_elm.attr('data-cli-type', 'popup');
var cli_win=jQuery(window);
var cli_winh=cli_win.height() - 40;
var cli_winw=cli_win.width();
var cli_defw=cli_winw > 700 ? 500:cli_winw - 20;
cli_elm.css({
'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto'
}
).addClass('cli-bar-popup cli-modal-content');
if(this.checkifStyleAttributeExist()===false){
cli_elm.css({ 'padding': '25px 15px' });
}
const cli_h=cli_elm.height();
cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 });
setTimeout(
function (){
cli_elm.css({
'bottom': ''
}
);
},
100
);
if(a){
this.setResize();
}},
setResize: function (){
var resizeTmr=null;
jQuery(window).resize(function (){
clearTimeout(resizeTmr);
resizeTmr=setTimeout(
function (){
if(CLI_COOKIEBAR_AS_POPUP){
CLI.barAsPopUp();
}
if(CLI.settings.cookie_bar_as=='widget'){
CLI.barAsWidget();
}
CLI.configShowAgain();
},
500
);
}
);
},
enableAllCookies: function (){
jQuery('.cli-user-preference-checkbox').each(function (){
var cli_chkbox_elm=jQuery(this);
var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');
if(cli_chkbox_data_id!='checkbox-necessary'){
cli_chkbox_elm.prop('checked', true);
CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
}}
);
},
disableAllCookies: function (){
jQuery('.cli-user-preference-checkbox').each(function (){
var cli_chkbox_elm=jQuery(this);
var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');
const cliCategorySlug=cli_chkbox_data_id.replace('checkbox-', '');
if(Cli_Data.strictlyEnabled.indexOf(cliCategorySlug)===-1){
cli_chkbox_elm.prop('checked', false);
CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
}}
);
},
hideCookieBarOnClose: function (){
jQuery(document).on('click',
'.cli_cookie_close_button',
function (e){
e.preventDefault();
var elm=jQuery(this);
if(Cli_Data.ccpaType==='ccpa'){
CLI.enableAllCookies();
}
CLI.accept_close();
}
);
},
checkCategories: function (){
var cliAllowedCategories=[];
var cli_categories={};
jQuery('.cli-user-preference-checkbox').each(function (){
var status=false;
const cli_chkbox_elm=jQuery(this);
let cli_chkbox_data_id=cli_chkbox_elm.attr('data-id');
cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-', '');
const cli_chkbox_data_id_trimmed=cli_chkbox_data_id.replace('-', '_')
if(jQuery(cli_chkbox_elm).is(':checked')){
status=true;
cliAllowedCategories.push(cli_chkbox_data_id);
}
cli_categories[cli_chkbox_data_id_trimmed]=status;
}
);
CLI.allowedCategories=cliAllowedCategories;
},
cookieLawInfoRunCallBacks: function (){
this.checkCategories();
if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'){
if("function"==typeof CookieLawInfo_Accept_Callback){
CookieLawInfo_Accept_Callback();
}}
},
generateConsent: function (){
var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);
let cliConsent={};
if(preferenceCookie!==null){
cliConsent=window.atob(preferenceCookie);
cliConsent=JSON.parse(cliConsent);
}
cliConsent.ver=Cli_Data.consentVersion;
jQuery('.cli-user-preference-checkbox').each(function (){
let categoryVal='';
let cli_chkbox_data_id=jQuery(this).attr('data-id');
cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-', '');
if(jQuery(this).is(':checked')){
categoryVal=true;
}else{
categoryVal=false;
}
cliConsent[cli_chkbox_data_id]=categoryVal;
}
);
cliConsent=JSON.stringify(cliConsent);
cliConsent=window.btoa(cliConsent);
CLI_Cookie.set(CLI_PREFERENCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE);
},
addStyleAttribute: function (){
var bar=this.bar_elm;
var styleClass='';
if(jQuery(bar).find('.cli-bar-container').length > 0){
styleClass=jQuery('.cli-bar-container').attr('class');
styleClass=styleClass.replace('cli-bar-container', '');
styleClass=styleClass.trim();
jQuery(bar).attr('data-cli-style', styleClass);
}},
getParameterByName: function (name, url){
if(!url){
url=window.location.href;
}
name=name.replace(/[\[\]]/g, '\\$&');
var regex=new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results=regex.exec(url);
if(!results){
return null;
}
if(!results[2]){
return '';
}
return decodeURIComponent(results[2].replace(/\+/g, ' '));
},
CookieLawInfo_Callback: function (enableBar, enableBlocking){
enableBar=typeof enableBar!=='undefined' ? enableBar:true;
enableBlocking=typeof enableBlocking!=='undefined' ? enableBlocking:true;
if(CLI.js_blocking_enabled===true&&Boolean(Cli_Data.custom_integration)===true){
cliBlocker.cookieBar(enableBar);
cliBlocker.runScripts(enableBlocking);
}},
checkifStyleAttributeExist: function (){
var exist=false;
var attr=this.bar_elm.attr('data-cli-style');
if(typeof attr!==typeof undefined&&attr!==false){
exist=true;
}
return exist;
},
reviewConsent: function (){
jQuery(document).on('click',
'.cli_manage_current_consent,.wt-cli-manage-consent-link',
function (){
CLI.displayHeader();
}
);
},
mayBeSetPreferenceCookie: function (){
if(CLI.getParameterByName('cli_bypass')==="1"){
CLI.generateConsent();
}}
}
var cliBlocker =
{
blockingStatus: true,
scriptsLoaded: false,
ccpaEnabled: false,
ccpaRegionBased: false,
ccpaApplicable: false,
ccpaBarEnabled: false,
cliShowBar: true,
isBypassEnabled: CLI.getParameterByName('cli_bypass'),
checkPluginStatus: function (callbackA, callbackB){
this.ccpaEnabled=Boolean(Cli_Data.ccpaEnabled);
this.ccpaRegionBased=Boolean(Cli_Data.ccpaRegionBased);
this.ccpaBarEnabled=Boolean(Cli_Data.ccpaBarEnabled);
if(Boolean(Cli_Data.custom_integration)===true){
callbackA(false);
}else{
if(this.ccpaEnabled===true){
this.ccpaApplicable=true;
if(Cli_Data.ccpaType==='ccpa'){
if(this.ccpaBarEnabled!==true){
this.cliShowBar=false;
this.blockingStatus=false;
}}
}else{
jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
}
if(cliBlocker.isBypassEnabled==="1"){
cliBlocker.blockingStatus=false;
}
callbackA(this.cliShowBar);
callbackB(this.blockingStatus);
}},
cookieBar: function (showbar){
showbar=typeof showbar!=='undefined' ? showbar:true;
cliBlocker.cliShowBar=showbar;
if(cliBlocker.cliShowBar===false){
CLI.bar_elm.hide();
CLI.showagain_elm.hide();
CLI.settingsModal.removeClass('cli-blowup cli-out');
CLI.hidePopupOverlay();
jQuery(".cli-settings-overlay").removeClass("cli-show");
}else{
if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)){
CLI.displayHeader();
}else{
CLI.hideHeader();
}}
},
removeCookieByCategory: function (){
if(cliBlocker.blockingStatus===true){
if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)!==null){
var non_necessary_cookies=Cli_Data.non_necessary_cookies;
for (var key in non_necessary_cookies){
const currentCategory=key;
if(CLI.allowedCategories.indexOf(currentCategory)===-1){
var nonNecessaryCookies=non_necessary_cookies[currentCategory];
for (var i=0; i < nonNecessaryCookies.length; i++){
if(CLI_Cookie.read(nonNecessaryCookies[i])!==null){
CLI_Cookie.erase(nonNecessaryCookies[i]);
}}
}}
}}
},
runScripts: function (blocking){
blocking=typeof blocking!=='undefined' ? blocking:true;
cliBlocker.blockingStatus=blocking;
var genericFuncs =
{
renderByElement: function (callback){
cliScriptFuncs.renderScripts();
callback();
cliBlocker.scriptsLoaded=true;
},
};
var cliScriptFuncs =
{
scriptsDone: function (){
if(typeof Cli_Data.triggerDomRefresh!=='undefined'){
if(Boolean(Cli_Data.triggerDomRefresh)===true){
var DOMContentLoadedEvent=document.createEvent('Event')
DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true)
window.document.dispatchEvent(DOMContentLoadedEvent);
}}
},
seq: function (arr, callback, index){
if(typeof index==='undefined'){
index=0
}
arr[index](
function (){
index++
if(index===arr.length){
callback()
}else{
cliScriptFuncs.seq(arr, callback, index)
}}
)
},
insertScript: function ($script, callback){
var s='';
var scriptType=$script.getAttribute('data-cli-script-type');
var elementPosition=$script.getAttribute('data-cli-element-position');
var isBlock=$script.getAttribute('data-cli-block');
var s=document.createElement('script');
var ccpaOptedOut=cliBlocker.ccpaOptedOut();
s.type='text/plain';
if($script.async){
s.async=$script.async;
}
if($script.defer){
s.defer=$script.defer;
}
if($script.src){
s.onload=callback
s.onerror=callback
s.src=$script.src
}else{
s.textContent=$script.innerText
}
var attrs=jQuery($script).prop("attributes");
for (var ii=0; ii < attrs.length; ++ii){
if(attrs[ii].nodeName!=='id'){
s.setAttribute(attrs[ii].nodeName, attrs[ii].value);
}}
if(cliBlocker.blockingStatus===true){
if((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes'&&CLI.allowedCategories.indexOf(scriptType)!==-1)){
s.setAttribute('data-cli-consent', 'accepted');
s.type='text/javascript';
}
if(cliBlocker.ccpaApplicable===true){
if(ccpaOptedOut===true||CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)==null){
s.type='text/plain';
}}
}else{
s.type='text/javascript';
}
if($script.type!=s.type){
if(elementPosition==='head'){
document.head.appendChild(s);
}else{
document.body.appendChild(s);
}
if(!$script.src){
callback()
}
$script.parentNode.removeChild($script);
}else{
callback();
}},
renderScripts: function (){
var $scripts=document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');
if($scripts.length > 0){
var runList=[]
var typeAttr
Array.prototype.forEach.call($scripts,
function ($script){
typeAttr=$script.getAttribute('type')
runList.push(function (callback){
cliScriptFuncs.insertScript($script, callback)
}
)
}
)
cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone);
}}
};
genericFuncs.renderByElement(cliBlocker.removeCookieByCategory);
},
ccpaOptedOut: function (){
var ccpaOptedOut=false;
var preferenceCookie=CLI_Cookie.read(CLI_PREFERENCE_COOKIE);
if(preferenceCookie!==null){
let cliConsent=window.atob(preferenceCookie);
cliConsent=JSON.parse(cliConsent);
if(typeof cliConsent.ccpaOptout!=='undefined'){
ccpaOptedOut=cliConsent.ccpaOptout;
}}
return ccpaOptedOut;
}}
jQuery(document).ready(function (){
if(typeof cli_cookiebar_settings!='undefined'){
CLI.set({
settings: cli_cookiebar_settings
}
);
if(CLI.js_blocking_enabled===true){
cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts);
}}
}
);
(function($){
'use strict';
$(window).on('load', function(){
var winHeight=$(window).height(),
docHeight=$(document).height();
var max=docHeight - winHeight;
$('.readingProgressbar').attr('max', max);
var progressForeground=$('.readingProgressbar').attr('data-foreground');
var progressBackground=$('.readingProgressbar').attr('data-background');
var progressHeight=$('.readingProgressbar').attr('data-height');
var progressPosition=$('.readingProgressbar').attr('data-position');
var progressCustomPosition=$('.readingProgressbar').attr('data-custom-position');
var progressFixedOrAbsolute='fixed';
if(progressPosition=='custom'){
$('.readingProgressbar').appendTo(progressCustomPosition);
progressPosition='bottom';
progressFixedOrAbsolute='absolute';
}
if(progressPosition=='top'){
var progressTop='0';
var progressBottom='auto';
}else{
var progressTop='auto';
var progressBottom='0';
}
$('.readingProgressbar').css({
'background-color':progressBackground,
'color':progressForeground,
'height':progressHeight + 'px',
'top':progressTop,
'bottom':progressBottom,
'position':progressFixedOrAbsolute,
'display':'block'
});
$('<style>.readingProgressbar::-webkit-progress-bar { background-color: transparent } .readingProgressbar::-webkit-progress-value { background-color: ' + progressForeground + ' } .readingProgressbar::-moz-progress-bar { background-color: ' + progressForeground + ' }</style>')
.appendTo('head');
var value=$(window).scrollTop();
$('.readingProgressbar').attr('value', value);
$(document).on('scroll', function(){
value=$(window).scrollTop();
$('.readingProgressbar').attr('value', value);
});
});
})(jQuery);
jQuery(document).on("click","a.um-toggle-gdpr",function(e){var e=jQuery(e.currentTarget),t=e.closest(".um-field-area"),g=t.find(".um-gdpr-content");g.is(":visible")?(t.find("a.um-toggle-gdpr").text(e.data("toggle-show")),g.hide().find("a.um-toggle-gdpr").remove(),e.length&&e.get(0).scrollIntoView()):(t.find("a.um-toggle-gdpr").text(e.data("toggle-hide")),g.show().prepend(e.clone()))});