// source --> https://tinyhomeexpertise.com/wp-content/plugins/cookie-notice/js/front.min.js?ver=2.5.14 
!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-more-info"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))}),null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document);
// source --> https://tinyhomeexpertise.com/wp-content/cache/autoptimize/js/autoptimize_single_7d79f58e6b9d0f4bb1b653678366362d.js?ver=3.2.6 
class BaseSwitcher{constructor(rootEl){this.root=rootEl;this.list=rootEl?.querySelector('.trp-switcher-dropdown-list')||null;this.isOpen=false;this._pendingFocusOnOpen=false;if(!this.root||!this.list)return;if(!this.list.id){this.list.id=`trp-list-${Math.random().toString(36).slice(2, 9)}`;}
this._onTe=(e)=>{if(e.target!==this.list||e.propertyName!=='max-height')return;this.root.classList.remove('is-transitioning');if(!this.isOpen){this.list.hidden=true;this.list.setAttribute('inert','');}else if(this._pendingFocusOnOpen){this._pendingFocusOnOpen=false;const first=this.list.querySelector('[role="option"], a, button, [tabindex]:not([tabindex="-1"])');first?.focus?.({preventScroll:true});}};this.list.addEventListener('transitionend',this._onTe);this.collapse();this.setAutoWidth();this.bindKeyboard();}
_hasAnimatedTransition(){if(!this.list)return false;const cs=getComputedStyle(this.list);const durationsRaw=cs.transitionDuration||'';if(!durationsRaw)return false;const durations=durationsRaw.split(',').map(str=>parseFloat(str)||0);return durations.some(d=>d>0);}
collapse(){this.list.hidden=true;this.list.setAttribute('inert','');this.setExpanded(false);this.root.classList.remove('is-transitioning');}
setAutoWidth(){const bonusWidth=10;const cs=getComputedStyle(this.root);const declaredWidth=cs.getPropertyValue('--switcher-width').trim();if(declaredWidth==='auto'&&this.root.querySelector('.trp-language-item-name')){const initialWidth=this.root.getBoundingClientRect().width;this.root.style.setProperty('--switcher-width',(initialWidth+bonusWidth)+'px');}}
setExpanded(open){const trigger=this.root.querySelector('.trp-language-item__current[role="button"]');const val=String(!!open);trigger?.setAttribute('aria-expanded',val);this.root.classList.toggle('is-open',!!open);}
setOpen(open,{source=null}={}){if(!this.root||!this.list||open===this.isOpen)return;const prefersReduced=window.matchMedia?.('(prefers-reduced-motion: reduce)')?.matches;const hasTransition=!prefersReduced&&this._hasAnimatedTransition();this.isOpen=open;if(!hasTransition){if(open){this.list.hidden=false;this.list.removeAttribute('inert');this.setExpanded(true);this._pendingFocusOnOpen=(source?.type==='keydown');if(this._pendingFocusOnOpen){this._pendingFocusOnOpen=false;const first=this.list.querySelector('[role="option"], a, button, [tabindex]:not([tabindex="-1"])');first?.focus?.({preventScroll:true});}}else{this.setExpanded(false);this.list.hidden=true;this.list.setAttribute('inert','');this._pendingFocusOnOpen=false;}
return;}
if(open){this.list.hidden=false;this.list.removeAttribute('inert');this._pendingFocusOnOpen=(source?.type==='keydown');this.root.classList.add('is-transitioning');requestAnimationFrame(()=>this.setExpanded(true));}else{this.root.classList.add('is-transitioning');this.setExpanded(false);}}
bindKeyboard(){const trigger=this.root.querySelector('.trp-language-item__current[role="button"]');if(!trigger)return;trigger.addEventListener('keydown',(e)=>{const inList=!!e.target.closest?.('.trp-switcher-dropdown-list');if(e.key==='Enter'||e.key===' '){e.preventDefault();this.setOpen(!this.isOpen,{source:e});return;}
if(e.key==='ArrowDown'&&!this.isOpen){e.preventDefault();this.setOpen(true,{source:e});}
if(e.key==='Escape'){this.setOpen(false,{source:e});trigger.focus?.();}});}}
class ShortcodeSwitcher extends BaseSwitcher{constructor(wrapper){const overlay=wrapper.querySelector('.trp-language-switcher.trp-shortcode-overlay')||[...wrapper.querySelectorAll('.trp-language-switcher')].find(el=>el.classList.contains('trp-shortcode-overlay'));overlay.hidden=false;overlay.removeAttribute('hidden');overlay.removeAttribute('inert');if('inert'in overlay)overlay.inert=false;super(overlay);if(!this.root||!this.list)return;const control=this.root.querySelector('.trp-language-item__current[role="button"]');if(control&&this.list&&!control.hasAttribute('aria-controls')){control.setAttribute('aria-controls',this.list.id);}
const isClickMode=this.root.classList.contains('trp-open-on-click')||wrapper.dataset.openMode==='click'||wrapper.classList.contains('trp-open-on-click');if(isClickMode){this.root.addEventListener('click',(e)=>{const inList=e.target.closest('.trp-switcher-dropdown-list');if(!inList){e.preventDefault();e.stopPropagation();this.setOpen(!this.isOpen,{source:e});}},true);this.onDocClick=(evt)=>{if(!wrapper.contains(evt.target))this.setOpen(false,{source:evt});};document.addEventListener('click',this.onDocClick,true);wrapper.addEventListener('focusout',()=>{setTimeout(()=>{if(!wrapper.contains(document.activeElement)){this.setOpen(false,{source:'keyboard'});}},0);});}else{this.root.addEventListener('mouseenter',(e)=>this.setOpen(true,{source:e}));this.root.addEventListener('mouseleave',(e)=>this.setOpen(false,{source:e}));}}}
class FloaterSwitcher extends BaseSwitcher{constructor(el){super(el);el.addEventListener('mouseenter',(e)=>this.setOpen(true,{source:e}));el.addEventListener('mouseleave',(e)=>this.setOpen(false,{source:e}));this.onDocClick=(evt)=>{if(!el.contains(evt.target))this.setOpen(false,{source:evt});};document.addEventListener('click',this.onDocClick,true);}}
document.addEventListener('DOMContentLoaded',()=>{initLanguageSwitchers(document);if(inGutenberg()&&!getEditorDoc().querySelector(WRAPPER)){observeWrapperUntilFound();}
if(!inGutenberg())
observeShortcodeSwitcher();});const TRP_BOUND=new WeakSet();const mark=(el)=>TRP_BOUND.add(el);const isMarked=(el)=>TRP_BOUND.has(el);const WRAPPER='.trp-shortcode-switcher__wrapper';const OVERLAY='.trp-language-switcher:not(.trp-opposite-button)';function inGutenberg(){return document.body?.classList?.contains('block-editor-page')||!!(window.wp?.data?.select?.('core/block-editor'));}
function getEditorDoc(){const ifr=document.querySelector('iframe[name="editor-canvas"], .editor-canvas__iframe');return(ifr&&ifr.contentDocument)?ifr.contentDocument:document;}
function initLanguageSwitchers(root=document){const floater=root.querySelector('.trp-language-switcher.trp-ls-dropdown:not(.trp-shortcode-switcher):not(.trp-opposite-language)');if(floater)
new FloaterSwitcher(floater);root.querySelectorAll(WRAPPER).forEach(wrapper=>{const overlay=wrapper.querySelector('.trp-language-switcher:not(.trp-opposite-button)');if(overlay&&!isMarked(overlay)){mark(overlay);new ShortcodeSwitcher(wrapper);}});}
function observeShortcodeSwitcher(){const initWrapper=(wrapper)=>{if(!wrapper)
return;const overlay=wrapper.querySelector(OVERLAY);if(!overlay||isMarked(overlay))
return;mark(overlay);new ShortcodeSwitcher(wrapper);}
const mo=new MutationObserver((mutations)=>{for(const m of mutations){for(const n of m.addedNodes){if(n.nodeType!==1)
continue;if(n.matches?.(WRAPPER))
initWrapper(n);n.querySelectorAll?.(WRAPPER).forEach(initWrapper);}}});mo.observe(document,{childList:true,subtree:true});}
function observeWrapperUntilFound(){const edDoc=getEditorDoc();const existing=edDoc.querySelector(WRAPPER);if(existing){initLanguageSwitchers(edDoc);return;}
const findCanvasIframe=()=>document.querySelector('iframe[name="editor-canvas"], .editor-canvas__iframe');const iframeNow=findCanvasIframe();if(iframeNow){watchIframe(iframeNow);return;}
const outerMO=new MutationObserver((mutations)=>{for(const m of mutations){for(const n of m.addedNodes){if(n.nodeType!==1)continue;const iframe=n.matches?.('iframe[name="editor-canvas"], .editor-canvas__iframe')?n:n.querySelector?.('iframe[name="editor-canvas"], .editor-canvas__iframe');if(iframe){outerMO.disconnect();watchIframe(iframe);return;}
const wrapper=n.matches?.(WRAPPER)?n:n.querySelector?.(WRAPPER);if(wrapper){outerMO.disconnect();initLanguageSwitchers(document);return;}}}});outerMO.observe(document,{childList:true,subtree:true});function watchIframe(iframe){tryAttachInside();iframe.addEventListener('load',tryAttachInside);function tryAttachInside(){let doc;try{doc=iframe.contentDocument||iframe.contentWindow?.document;}catch(e){console.warn('Cannot access iframe content due to cross-origin restrictions',e);return;}
if(!doc)return;const hit=doc.querySelector(WRAPPER);if(hit){initLanguageSwitchers(doc);return;}
const innerMO=new MutationObserver((muts)=>{for(const mm of muts){for(const nn of mm.addedNodes){if(nn.nodeType!==1)continue;if(nn.matches?.(WRAPPER)||nn.querySelector?.(WRAPPER)){innerMO.disconnect();initLanguageSwitchers(doc);return;}}}
if(doc.querySelector(WRAPPER)){innerMO.disconnect();initLanguageSwitchers(doc);}});innerMO.observe(doc,{childList:true,subtree:true});}}};