var drExports;!function(){var e={4144:function(e){e.exports=function(){"use strict";const e="undefined"!=typeof window,t=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=e&&window.devicePixelRatio>1,i={elements_selector:".lazy",container:t||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},o=e=>Object.assign({},i,e),r=function(e,t){let n;const i="LazyLoad::Initialized",o=new e(t);try{n=new CustomEvent(i,{detail:{instance:o}})}catch(e){n=document.createEvent("CustomEvent"),n.initCustomEvent(i,!1,!1,{instance:o})}window.dispatchEvent(n)},s="src",a="srcset",c="sizes",l="poster",u="llOriginalAttrs",d="data",f="loading",p="loaded",g="applied",h="error",v="native",m="data-",y="ll-status",_=(e,t)=>e.getAttribute(m+t),b=e=>_(e,y),w=(e,t)=>((e,t,n)=>{const i=m+t;null!==n?e.setAttribute(i,n):e.removeAttribute(i)})(e,y,t),E=e=>w(e,null),k=e=>null===b(e),x=e=>b(e)===v,S=[f,p,g,h],L=(e,t,n,i)=>{e&&"function"==typeof e&&(void 0===i?void 0===n?e(t):e(t,n):e(t,n,i))},C=(t,n)=>{e&&""!==n&&t.classList.add(n)},A=(t,n)=>{e&&""!==n&&t.classList.remove(n)},I=e=>e.llTempImage,P=(e,t)=>{if(!t)return;const n=t._observer;n&&n.unobserve(e)},M=(e,t)=>{e&&(e.loadingCount+=t)},O=(e,t)=>{e&&(e.toLoadCount=t)},D=e=>{let t=[];for(let n,i=0;n=e.children[i];i+=1)"SOURCE"===n.tagName&&t.push(n);return t},T=(e,t)=>{const n=e.parentNode;n&&"PICTURE"===n.tagName&&D(n).forEach(t)},z=(e,t)=>{D(e).forEach(t)},N=[s],j=[s,l],q=[s,a,c],F=[d],R=e=>!!e[u],G=e=>e[u],H=e=>delete e[u],B=(e,t)=>{if(R(e))return;const n={};t.forEach(t=>{n[t]=e.getAttribute(t)}),e[u]=n},W=(e,t)=>{if(!R(e))return;const n=G(e);t.forEach(t=>{((e,t,n)=>{n?e.setAttribute(t,n):e.removeAttribute(t)})(e,t,n[t])})},X=(e,t,n)=>{C(e,t.class_applied),w(e,g),n&&(t.unobserve_completed&&P(e,t),L(t.callback_applied,e,n))},U=(e,t,n)=>{C(e,t.class_loading),w(e,f),n&&(M(n,1),L(t.callback_loading,e,n))},V=(e,t,n)=>{n&&e.setAttribute(t,n)},J=(e,t)=>{V(e,c,_(e,t.data_sizes)),V(e,a,_(e,t.data_srcset)),V(e,s,_(e,t.data_src))},Y={IMG:(e,t)=>{T(e,e=>{B(e,q),J(e,t)}),B(e,q),J(e,t)},IFRAME:(e,t)=>{B(e,N),V(e,s,_(e,t.data_src))},VIDEO:(e,t)=>{z(e,e=>{B(e,N),V(e,s,_(e,t.data_src))}),B(e,j),V(e,l,_(e,t.data_poster)),V(e,s,_(e,t.data_src)),e.load()},OBJECT:(e,t)=>{B(e,F),V(e,d,_(e,t.data_src))}},$=["IMG","IFRAME","VIDEO","OBJECT"],K=(e,t)=>{!t||(e=>e.loadingCount>0)(t)||(e=>e.toLoadCount>0)(t)||L(e.callback_finish,t)},Q=(e,t,n)=>{e.addEventListener(t,n),e.llEvLisnrs[t]=n},Z=(e,t,n)=>{e.removeEventListener(t,n)},ee=e=>!!e.llEvLisnrs,te=e=>{if(!ee(e))return;const t=e.llEvLisnrs;for(let n in t){const i=t[n];Z(e,n,i)}delete e.llEvLisnrs},ne=(e,t,n)=>{(e=>{delete e.llTempImage})(e),M(n,-1),(e=>{e&&(e.toLoadCount-=1)})(n),A(e,t.class_loading),t.unobserve_completed&&P(e,n)},ie=(e,t,n)=>{const i=I(e)||e;ee(i)||((e,t,n)=>{ee(e)||(e.llEvLisnrs={});const i="VIDEO"===e.tagName?"loadeddata":"load";Q(e,i,t),Q(e,"error",n)})(i,o=>{((e,t,n,i)=>{const o=x(t);ne(t,n,i),C(t,n.class_loaded),w(t,p),L(n.callback_loaded,t,i),o||K(n,i)})(0,e,t,n),te(i)},o=>{((e,t,n,i)=>{const o=x(t);ne(t,n,i),C(t,n.class_error),w(t,h),L(n.callback_error,t,i),n.restore_on_error&&W(t,q),o||K(n,i)})(0,e,t,n),te(i)})},oe=(e,t,i)=>{(e=>$.indexOf(e.tagName)>-1)(e)?((e,t,n)=>{ie(e,t,n),((e,t,n)=>{const i=Y[e.tagName];i&&(i(e,t),U(e,t,n))})(e,t,n)})(e,t,i):((e,t,i)=>{(e=>{e.llTempImage=document.createElement("IMG")})(e),ie(e,t,i),(e=>{R(e)||(e[u]={backgroundImage:e.style.backgroundImage})})(e),((e,t,i)=>{const o=_(e,t.data_bg),r=_(e,t.data_bg_hidpi),a=n&&r?r:o;a&&(e.style.backgroundImage=`url("${a}")`,I(e).setAttribute(s,a),U(e,t,i))})(e,t,i),((e,t,i)=>{const o=_(e,t.data_bg_multi),r=_(e,t.data_bg_multi_hidpi),s=n&&r?r:o;s&&(e.style.backgroundImage=s,X(e,t,i))})(e,t,i),((e,t,n)=>{const i=_(e,t.data_bg_set);if(!i)return;let o=i.split("|").map(e=>`image-set(${e})`);e.style.backgroundImage=o.join(),X(e,t,n)})(e,t,i)})(e,t,i)},re=e=>{e.removeAttribute(s),e.removeAttribute(a),e.removeAttribute(c)},se=e=>{T(e,e=>{W(e,q)}),W(e,q)},ae={IMG:se,IFRAME:e=>{W(e,N)},VIDEO:e=>{z(e,e=>{W(e,N)}),W(e,j),e.load()},OBJECT:e=>{W(e,F)}},ce=["IMG","IFRAME","VIDEO"],le=e=>e.use_native&&"loading"in HTMLImageElement.prototype,ue=e=>Array.prototype.slice.call(e),de=e=>e.container.querySelectorAll(e.elements_selector),fe=e=>(e=>b(e)===h)(e),pe=(e,t)=>(e=>ue(e).filter(k))(e||de(t)),ge=function(t,n){const i=o(t);this._settings=i,this.loadingCount=0,((e,t)=>{le(e)||(t._observer=new IntersectionObserver(n=>{((e,t,n)=>{e.forEach(e=>(e=>e.isIntersecting||e.intersectionRatio>0)(e)?((e,t,n,i)=>{const o=(e=>S.indexOf(b(e))>=0)(e);w(e,"entered"),C(e,n.class_entered),A(e,n.class_exited),((e,t,n)=>{t.unobserve_entered&&P(e,n)})(e,n,i),L(n.callback_enter,e,t,i),o||oe(e,n,i)})(e.target,e,t,n):((e,t,n,i)=>{k(e)||(C(e,n.class_exited),((e,t,n,i)=>{n.cancel_on_exit&&(e=>b(e)===f)(e)&&"IMG"===e.tagName&&(te(e),(e=>{T(e,e=>{re(e)}),re(e)})(e),se(e),A(e,n.class_loading),M(i,-1),E(e),L(n.callback_cancel,e,t,i))})(e,t,n,i),L(n.callback_exit,e,t,i))})(e.target,e,t,n))})(n,e,t)},(e=>({root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}))(e)))})(i,this),((t,n)=>{e&&(n._onlineHandler=()=>{((e,t)=>{var n;(n=de(e),ue(n).filter(fe)).forEach(t=>{A(t,e.class_error),E(t)}),t.update()})(t,n)},window.addEventListener("online",n._onlineHandler))})(i,this),this.update(n)};return ge.prototype={update:function(e){const n=this._settings,i=pe(e,n);var o,r;O(this,i.length),t?this.loadAll(i):le(n)?((e,t,n)=>{e.forEach(e=>{-1!==ce.indexOf(e.tagName)&&((e,t,n)=>{e.setAttribute("loading","lazy"),ie(e,t,n),((e,t)=>{const n=Y[e.tagName];n&&n(e,t)})(e,t),w(e,v)})(e,t,n)}),O(n,0)})(i,n,this):(r=i,(e=>{e.disconnect()})(o=this._observer),((e,t)=>{t.forEach(t=>{e.observe(t)})})(o,r))},destroy:function(){this._observer&&this._observer.disconnect(),e&&window.removeEventListener("online",this._onlineHandler),de(this._settings).forEach(e=>{H(e)}),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){const t=this._settings;pe(e,t).forEach(e=>{P(e,this),oe(e,t,this)})},restoreAll:function(){const e=this._settings;de(e).forEach(t=>{((e,t)=>{(e=>{const t=ae[e.tagName];t?t(e):(e=>{if(!R(e))return;const t=G(e);e.style.backgroundImage=t.backgroundImage})(e)})(e),((e,t)=>{k(e)||x(e)||(A(e,t.class_entered),A(e,t.class_exited),A(e,t.class_applied),A(e,t.class_loading),A(e,t.class_loaded),A(e,t.class_error))})(e,t),E(e),H(e)})(t,e)})}},ge.load=(e,t)=>{const n=o(t);oe(e,n)},ge.resetStatus=e=>{E(e)},e&&((e,t)=>{if(t)if(t.length)for(let n,i=0;n=t[i];i+=1)r(e,n);else r(e,t)})(ge,window.lazyLoadOptions),ge}()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(4144),t=n.n(e);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o="(prefers-reduced-motion: reduce)";function r(e){e.length=0}function s(e,t,n){return Array.prototype.slice.call(e,t,n)}function a(e){return e.bind.apply(e,[null].concat(s(arguments,1)))}var c=setTimeout,l=function(){};function u(e){return requestAnimationFrame(e)}function d(e,t){return typeof t===e}function f(e){return!m(e)&&d("object",e)}var p=Array.isArray,g=a(d,"function"),h=a(d,"string"),v=a(d,"undefined");function m(e){return null===e}function y(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function _(e){return p(e)?e:[e]}function b(e,t){_(e).forEach(t)}function w(e,t){return e.indexOf(t)>-1}function E(e,t){return e.push.apply(e,_(t)),e}function k(e,t,n){e&&b(t,function(t){t&&e.classList[n?"add":"remove"](t)})}function x(e,t){k(e,h(t)?t.split(" "):t,!0)}function S(e,t){b(t,e.appendChild.bind(e))}function L(e,t){b(e,function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)})}function C(e,t){return y(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function A(e,t){var n=e?s(e.children):[];return t?n.filter(function(e){return C(e,t)}):n}function I(e,t){return t?A(e,t)[0]:e.firstElementChild}var P=Object.keys;function M(e,t,n){return e&&(n?P(e).reverse():P(e)).forEach(function(n){"__proto__"!==n&&t(e[n],n)}),e}function O(e){return s(arguments,1).forEach(function(t){M(t,function(n,i){e[i]=t[i]})}),e}function D(e){return s(arguments,1).forEach(function(t){M(t,function(t,n){p(t)?e[n]=t.slice():f(t)?e[n]=D({},f(e[n])?e[n]:{},t):e[n]=t})}),e}function T(e,t){b(t||P(e),function(t){delete e[t]})}function z(e,t){b(e,function(e){b(t,function(t){e&&e.removeAttribute(t)})})}function N(e,t,n){f(t)?M(t,function(t,n){N(e,n,t)}):b(e,function(e){m(n)||""===n?z(e,t):e.setAttribute(t,String(n))})}function j(e,t,n){var i=document.createElement(e);return t&&(h(t)?x(i,t):N(i,t)),n&&S(n,i),i}function q(e,t,n){if(v(n))return getComputedStyle(e)[t];m(n)||(e.style[t]=""+n)}function F(e,t){q(e,"display",t)}function R(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function G(e,t){return e.getAttribute(t)}function H(e,t){return e&&e.classList.contains(t)}function B(e){return e.getBoundingClientRect()}function W(e){b(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function X(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function U(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function V(e,t){return e&&e.querySelector(t)}function J(e,t){return t?s(e.querySelectorAll(t)):[]}function Y(e,t){k(e,t,!1)}function $(e){return e.timeStamp}function K(e){return h(e)?e:e?e+"px":""}var Q="splide",Z="data-"+Q;function ee(e,t){if(!e)throw new Error("["+Q+"] "+(t||""))}var te=Math.min,ne=Math.max,ie=Math.floor,oe=Math.ceil,re=Math.abs;function se(e,t,n){return re(e-t)<n}function ae(e,t,n,i){var o=te(t,n),r=ne(t,n);return i?o<e&&e<r:o<=e&&e<=r}function ce(e,t,n){var i=te(t,n),o=ne(t,n);return te(ne(i,e),o)}function le(e){return+(e>0)-+(e<0)}function ue(e,t){return b(t,function(t){e=e.replace("%s",""+t)}),e}function de(e){return e<10?"0"+e:""+e}var fe={};function pe(){var e=[];function t(e,t,n){b(e,function(e){e&&b(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");n(e,i[0],i[1])})})})}return{bind:function(n,i,o,r){t(n,i,function(t,n,i){var s="addEventListener"in t,a=s?t.removeEventListener.bind(t,n,o,r):t.removeListener.bind(t,o);s?t.addEventListener(n,o,r):t.addListener(o),e.push([t,n,i,o,a])})},unbind:function(n,i,o){t(n,i,function(t,n,i){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==i||o&&e[3]!==o)||(e[4](),!1)})})},dispatch:function(e,t,n){var i,o=!0;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:o,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,o,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),r(e)}}}var ge="mounted",he="ready",ve="move",me="moved",ye="click",_e="refresh",be="updated",we="resize",Ee="resized",ke="scroll",xe="scrolled",Se="destroy",Le="navigation:mounted",Ce="autoplay:play",Ae="autoplay:pause",Ie="lazyload:loaded",Pe="ei";function Me(e){var t=e?e.event.bus:document.createDocumentFragment(),n=pe();return e&&e.event.on(Se,n.destroy),O(n,{bus:t,on:function(e,i){n.bind(t,_(e).join(" "),function(e){i.apply(i,p(e.detail)?e.detail:[])})},off:a(n.unbind,t),emit:function(e){n.dispatch(t,e,s(arguments,1))}})}function Oe(e,t,n,i){var o,r,s=Date.now,a=0,c=!0,l=0;function d(){if(!c){if(a=e?te((s()-o)/e,1):1,n&&n(a),a>=1&&(t(),o=s(),i&&++l>=i))return f();r=u(d)}}function f(){c=!0}function p(){r&&cancelAnimationFrame(r),a=0,r=0,c=!0}return{start:function(t){t||p(),o=s()-(t?a*e:0),c=!1,r=u(d)},rewind:function(){o=s(),a=0,n&&n(a)},pause:f,cancel:p,set:function(t){e=t},isPaused:function(){return c}}}var De="Arrow",Te=De+"Left",ze=De+"Right",Ne=De+"Up",je=De+"Down",qe="ttb",Fe={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ne,ze],ArrowRight:[je,Te]};var Re="role",Ge="tabindex",He="aria-",Be=He+"controls",We=He+"current",Xe=He+"selected",Ue=He+"label",Ve=He+"labelledby",Je=He+"hidden",Ye=He+"orientation",$e=He+"roledescription",Ke=He+"live",Qe=He+"busy",Ze=He+"atomic",et=[Re,Ge,"disabled",Be,We,Ue,Ve,Je,Ye,$e],tt=Q+"__",nt="is-",it=Q,ot=tt+"track",rt=tt+"list",st=tt+"slide",at=st+"--clone",ct=st+"__container",lt=tt+"arrows",ut=tt+"arrow",dt=ut+"--prev",ft=ut+"--next",pt=tt+"pagination",gt=pt+"__page",ht=tt+"progress__bar",vt=tt+"toggle",mt=tt+"sr",yt=nt+"initialized",_t=nt+"active",bt=nt+"prev",wt=nt+"next",Et=nt+"visible",kt=nt+"loading",xt=nt+"focus-in",St=nt+"overflow",Lt=[_t,Et,bt,wt,kt,xt,St],Ct={slide:st,clone:at,arrows:lt,arrow:ut,prev:dt,next:ft,pagination:pt,page:gt,spinner:tt+"spinner"},At="touchstart mousedown",It="touchmove mousemove",Pt="touchend touchcancel mouseup click",Mt="slide",Ot="loop",Dt="fade";var Tt=Z+"-interval",zt={passive:!1,capture:!0},Nt={Spacebar:" ",Right:ze,Left:Te,Up:Ne,Down:je};function jt(e){return e=h(e)?e:e.key,Nt[e]||e}var qt="keydown",Ft=Z+"-lazy",Rt=Ft+"-srcset",Gt="["+Ft+"], ["+Rt+"]",Ht=[" ","Enter"],Bt=Object.freeze({__proto__:null,Media:function(e,t,n){var i=e.state,r=n.breakpoints||{},s=n.reducedMotion||{},a=pe(),c=[];function l(e){e&&a.destroy()}function u(e,t){var n=matchMedia(t);a.bind(n,"change",d),c.push([e,n])}function d(){var t=i.is(7),o=n.direction,r=c.reduce(function(e,t){return D(e,t[1].matches?t[0]:{})},{});T(n),f(r),n.destroy?e.destroy("completely"===n.destroy):t?(l(!0),e.mount()):o!==n.direction&&e.refresh()}function f(t,o,r){D(n,t),o&&D(Object.getPrototypeOf(n),t),!r&&i.is(1)||e.emit(be,n)}return{setup:function(){var e="min"===n.mediaQuery;P(r).sort(function(t,n){return e?+t-+n:+n-+t}).forEach(function(t){u(r[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),u(s,o),d()},destroy:l,reduce:function(e){matchMedia(o).matches&&(e?D(n,s):T(n,P(s)))},set:f}},Direction:function(e,t,n){return{resolve:function(e,t,i){var o="rtl"!==(i=i||n.direction)||t?i===qe?0:-1:1;return Fe[e]&&Fe[e][o]||e.replace(/width|left|right/i,function(e,t){var n=Fe[e.toLowerCase()][o]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n})},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var i,o,s,a=Me(e),c=a.on,l=a.bind,u=e.root,d=n.i18n,f={},p=[],h=[],v=[];function m(){var e,t,r;i=b("."+ot),o=I(i,"."+rt),ee(i&&o,"A track/list element is missing."),E(p,A(o,"."+st+":not(."+at+")")),M({arrows:lt,pagination:pt,prev:dt,next:ft,bar:ht,toggle:vt},function(e,t){f[t]=b("."+e)}),O(f,{root:u,track:i,list:o,slides:p}),t=u.id||""+(e=Q)+de(fe[e]=(fe[e]||0)+1),r=n.role,u.id=t,i.id=i.id||t+"-track",o.id=o.id||t+"-list",!G(u,Re)&&"SECTION"!==u.tagName&&r&&N(u,Re,r),N(u,$e,d.carousel),N(o,Re,"presentation"),_()}function y(e){var t=et.concat("style");r(p),Y(u,h),Y(i,v),z([i,o],t),z(u,e?t:["style",$e])}function _(){Y(u,h),Y(i,v),h=w(it),v=w(ot),x(u,h),x(i,v),N(u,Ue,n.label),N(u,Ve,n.labelledby)}function b(e){var t=V(u,e);return t&&function(e,t){if(g(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!C(n,t);)n=n.parentElement;return n}(t,"."+it)===u?t:void 0}function w(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===it&&_t]}return O(f,{setup:m,mount:function(){c(_e,y),c(_e,m),c(be,_),l(document,At+" keydown",function(e){s="keydown"===e.type},{capture:!0}),l(u,"focusin",function(){k(u,xt,!!s)})},destroy:y})},Slides:function(e,t,n){var i=Me(e),o=i.on,s=i.emit,c=i.bind,l=t.Elements,u=l.slides,d=l.list,f=[];function p(){u.forEach(function(e,t){m(e,t,-1)})}function v(){A(function(e){e.destroy()}),r(f)}function m(t,n,i){var o=function(e,t,n,i){var o,r=Me(e),s=r.on,c=r.emit,l=r.bind,u=e.Components,d=e.root,f=e.options,p=f.isNavigation,g=f.updateOnMove,h=f.i18n,v=f.pagination,m=f.slideFocus,y=u.Direction.resolve,_=G(i,"style"),b=G(i,Ue),w=n>-1,E=I(i,"."+ct);function x(){var o=e.splides.map(function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""}).join(" ");N(i,Ue,ue(h.slideX,(w?n:t)+1)),N(i,Be,o),N(i,Re,m?"button":""),m&&z(i,$e)}function S(){o||L()}function L(){if(!o){var n=e.index;(r=C())!==H(i,_t)&&(k(i,_t,r),N(i,We,p&&r||""),c(r?"active":"inactive",A)),function(){var t=function(){if(e.is(Dt))return C();var t=B(u.Elements.track),n=B(i),o=y("left",!0),r=y("right",!0);return ie(t[o])<=oe(n[o])&&ie(n[r])<=oe(t[r])}(),n=!t&&(!C()||w);if(e.state.is([4,5])||N(i,Je,n||""),N(J(i,f.focusableNodes||""),Ge,n?-1:""),m&&N(i,Ge,n?-1:0),t!==H(i,Et)&&(k(i,Et,t),c(t?"visible":"hidden",A)),!t&&document.activeElement===i){var o=u.Slides.getAt(e.index);o&&R(o.slide)}}(),k(i,bt,t===n-1),k(i,wt,t===n+1)}var r}function C(){var i=e.index;return i===t||f.cloneStatus&&i===n}var A={index:t,slideIndex:n,slide:i,container:E,isClone:w,mount:function(){w||(i.id=d.id+"-slide"+de(t+1),N(i,Re,v?"tabpanel":"group"),N(i,$e,h.slide),N(i,Ue,b||ue(h.slideLabel,[t+1,e.length]))),l(i,"click",a(c,ye,A)),l(i,"keydown",a(c,"sk",A)),s([me,"sh",xe],L),s(Le,x),g&&s(ve,S)},destroy:function(){o=!0,r.destroy(),Y(i,Lt),z(i,et),N(i,"style",_),N(i,Ue,b||"")},update:L,style:function(e,t,n){q(n&&E||i,e,t)},isWithin:function(n,i){var o=re(n-t);return w||!f.rewind&&!e.is(Ot)||(o=te(o,e.length-o)),o<=i}};return A}(e,n,i,t);o.mount(),f.push(o),f.sort(function(e,t){return e.index-t.index})}function E(e){return e?P(function(e){return!e.isClone}):f}function A(e,t){E(t).forEach(e)}function P(e){return f.filter(g(e)?e:function(t){return h(e)?C(t.slide,e):w(_(e),t.index)})}return{mount:function(){p(),o(_e,v),o(_e,p)},destroy:v,update:function(){A(function(e){e.update()})},register:m,get:E,getIn:function(e){var i=t.Controller,o=i.toIndex(e),r=i.hasFocus()?1:n.perPage;return P(function(e){return ae(e.index,o,o+r-1)})},getAt:function(e){return P(e)[0]},add:function(e,t){b(e,function(e){if(h(e)&&(e=X(e)),y(e)){var i=u[t];i?L(e,i):S(d,e),x(e,n.classes.slide),o=e,r=a(s,we),l=J(o,"img"),(f=l.length)?l.forEach(function(e){c(e,"load error",function(){--f||r()})}):r()}var o,r,l,f}),s(_e)},remove:function(e){W(P(e).map(function(e){return e.slide})),s(_e)},forEach:A,filter:P,style:function(e,t,n){A(function(i){i.style(e,t,n)})},getLength:function(e){return e?u.length:f.length},isEnough:function(){return f.length>n.perPage}}},Layout:function(e,t,n){var i,o,r,s=Me(e),c=s.on,l=s.bind,u=s.emit,d=t.Slides,p=t.Direction.resolve,g=t.Elements,h=g.root,v=g.track,m=g.list,y=d.getAt,_=d.style;function b(){i=n.direction===qe,q(h,"maxWidth",K(n.width)),q(v,p("paddingLeft"),E(!1)),q(v,p("paddingRight"),E(!0)),w(!0)}function w(e){var t,s=B(h);(e||o.width!==s.width||o.height!==s.height)&&(q(v,"height",(t="",i&&(ee(t=x(),"height or heightRatio is missing."),t="calc("+t+" - "+E(!1)+" - "+E(!0)+")"),t)),_(p("marginRight"),K(n.gap)),_("width",n.autoWidth?null:K(n.fixedWidth)||(i?"":S())),_("height",K(n.fixedHeight)||(i?n.autoHeight?null:S():x()),!0),o=s,u(Ee),r!==(r=M())&&(k(h,St,r),u("overflow",r)))}function E(e){var t=n.padding,i=p(e?"right":"left");return t&&K(t[i]||(f(t)?0:t))||"0px"}function x(){return K(n.height||B(m).width*n.heightRatio)}function S(){var e=K(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function L(){return B(m)[p("width")]}function C(e,t){var n=y(e||0);return n?B(n.slide)[p("width")]+(t?0:P()):0}function A(e,t){var n=y(e);if(n){var i=B(n.slide)[p("right")],o=B(m)[p("left")];return re(i-o)+(t?0:P())}return 0}function I(t){return A(e.length-1)-A(0)+C(0,t)}function P(){var e=y(0);return e&&parseFloat(q(e.slide,p("marginRight")))||0}function M(){return e.is(Dt)||I(!0)>L()}return{mount:function(){var e,t;b(),l(window,"resize load",(e=a(u,we),t=Oe(0,e,null,1),function(){t.isPaused()&&t.start()})),c([be,_e],b),c(we,w)},resize:w,listSize:L,slideSize:C,sliderSize:I,totalSize:A,getPadding:function(e){return parseFloat(q(v,p("padding"+(e?"Right":"Left"))))||0},isOverflow:M}},Clones:function(e,t,n){var i,o=Me(e),s=o.on,a=t.Elements,c=t.Slides,l=t.Direction.resolve,u=[];function d(){s(_e,f),s([be,we],g),(i=h())&&(function(t){var i=c.get().slice(),o=i.length;if(o){for(;i.length<t;)E(i,i);E(i.slice(-t),i.slice(0,t)).forEach(function(r,s){var l=s<t,d=function(t,i){var o=t.cloneNode(!0);return x(o,n.classes.clone),o.id=e.root.id+"-clone"+de(i+1),o}(r.slide,s);l?L(d,i[0].slide):S(a.list,d),E(u,d),c.register(d,s-t+(l?0:o),r.index)})}}(i),t.Layout.resize(!0))}function f(){p(),d()}function p(){W(u),r(u),o.destroy()}function g(){var e=h();i!==e&&(i<e||!e)&&o.emit(_e)}function h(){var i=n.clones;if(e.is(Ot)){if(v(i)){var o=n[l("fixedWidth")]&&t.Layout.slideSize(0);i=o&&oe(B(a.track)[l("width")]/o)||n[l("autoWidth")]&&e.length||2*n.perPage}}else i=0;return i}return{mount:d,destroy:p}},Move:function(e,t,n){var i,o=Me(e),r=o.on,s=o.emit,a=e.state.set,c=t.Layout,l=c.slideSize,u=c.getPadding,d=c.totalSize,f=c.listSize,p=c.sliderSize,g=t.Direction,h=g.resolve,m=g.orient,y=t.Elements,_=y.list,b=y.track;function w(){t.Controller.isBusy()||(t.Scroll.cancel(),E(e.index),t.Slides.update())}function E(e){k(C(e,!0))}function k(n,i){if(!e.is(Dt)){var o=i?n:function(n){if(e.is(Ot)){var i=L(n),o=i>t.Controller.getEnd();(i<0||o)&&(n=x(n,o))}return n}(n);q(_,"transform","translate"+h("X")+"("+o+"px)"),n!==o&&s("sh")}}function x(e,t){var n=e-I(t),i=p();return e-m(i*(oe(re(n)/i)||1))*(t?1:-1)}function S(){k(A(),!0),i.cancel()}function L(e){for(var n=t.Slides.get(),i=0,o=1/0,r=0;r<n.length;r++){var s=n[r].index,a=re(C(s,!0)-e);if(!(a<=o))break;o=a,i=s}return i}function C(t,i){var o=m(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-l(e,!0))/2:+t*l(e)||0}(t));return i?function(t){return n.trimSpace&&e.is(Mt)&&(t=ce(t,0,m(p(!0)-f()))),t}(o):o}function A(){var e=h("left");return B(_)[e]-B(b)[e]+m(u(!1))}function I(e){return C(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){i=t.Transition,r([ge,Ee,be,_e],w)},move:function(e,t,n,o){var r,c;e!==t&&(r=e>n,c=m(x(A(),r)),r?c>=0:c<=_[h("scrollWidth")]-B(b)[h("width")])&&(S(),k(x(A(),e>n),!0)),a(4),s(ve,t,n,e),i.start(t,function(){a(3),s(me,t,n,e),o&&o()})},jump:E,translate:k,shift:x,cancel:S,toIndex:L,toPosition:C,getPosition:A,getLimit:I,exceededLimit:function(e,t){t=v(t)?A():t;var n=!0!==e&&m(t)<m(I(!1)),i=!1!==e&&m(t)>m(I(!0));return n||i},reposition:w}},Controller:function(e,t,n){var i,o,r,s,c=Me(e),l=c.on,u=c.emit,d=t.Move,f=d.getPosition,p=d.getLimit,g=d.toPosition,m=t.Slides,y=m.isEnough,_=m.getLength,b=n.omitEnd,w=e.is(Ot),E=e.is(Mt),k=a(I,!1),x=a(I,!0),S=n.start||0,L=S;function C(){o=_(!0),r=n.perMove,s=n.perPage,i=O();var e=ce(S,0,b?i:o-1);e!==S&&(S=e,d.reposition())}function A(){i!==O()&&u(Pe)}function I(e,t){var n=r||(N()?1:s),o=P(S+n*(e?-1:1),S,!(r||N()));return-1===o&&E&&!se(f(),p(!e),1)?e?0:i:t?o:M(o)}function P(t,a,c){if(y()||N()){var l=function(t){if(E&&"move"===n.trimSpace&&t!==S)for(var i=f();i===g(t,!0)&&ae(t,0,e.length-1,!n.rewind);)t<S?--t:++t;return t}(t);l!==t&&(a=t,t=l,c=!1),t<0||t>i?t=r||!ae(0,t,a,!0)&&!ae(i,a,t,!0)?w?c?t<0?-(o%s||s):o:t:n.rewind?t<0?i:0:-1:D(T(t)):c&&t!==a&&(t=D(T(a)+(t<a?-1:1)))}else t=-1;return t}function M(e){return w?(e+o)%o||0:e}function O(){for(var e=o-(N()||w&&r?1:s);b&&e-- >0;)if(g(o-1,!0)!==g(e,!0)){e++;break}return ce(e,0,o-1)}function D(e){return ce(N()?e:s*e,0,i)}function T(e){return N()?te(e,i):ie((e>=i?o-1:e)/s)}function z(e){e!==S&&(L=S,S=e)}function N(){return!v(n.focus)||n.isNavigation}function j(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){C(),l([be,_e,Pe],C),l(Ee,A)},go:function(e,t,n){if(!j()){var o=function(e){var t=S;if(h(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],o=n[1],r=n[2];"+"===o||"-"===o?t=P(S+ +(""+o+(+r||1)),S):">"===o?t=r?D(+r):k(!0):"<"===o&&(t=x(!0))}else t=w?e:ce(e,0,i);return t}(e),r=M(o);r>-1&&(t||r!==S)&&(z(r),d.move(o,r,L,n))}},scroll:function(e,n,o,r){t.Scroll.scroll(e,n,o,function(){var e=M(d.toIndex(f()));z(b?te(e,i):e),r&&r()})},getNext:k,getPrev:x,getAdjacent:I,getEnd:O,setIndex:z,getIndex:function(e){return e?L:S},toIndex:D,toPage:T,toDest:function(e){var t=d.toIndex(e);return E?ce(t,0,i):t},hasFocus:N,isBusy:j}},Arrows:function(e,t,n){var i,o,r=Me(e),s=r.on,c=r.bind,l=r.emit,u=n.classes,d=n.i18n,f=t.Elements,p=t.Controller,g=f.arrows,h=f.track,v=g,m=f.prev,y=f.next,_={};function b(){var e;!(e=n.arrows)||m&&y||(v=g||j("div",u.arrows),m=C(!0),y=C(!1),i=!0,S(v,[m,y]),!g&&L(v,h)),m&&y&&(O(_,{prev:m,next:y}),F(v,e?"":"none"),x(v,o=lt+"--"+n.direction),e&&(s([ge,me,_e,xe,Pe],A),c(y,"click",a(k,">")),c(m,"click",a(k,"<")),A(),N([m,y],Be,h.id),l("arrows:mounted",m,y))),s(be,w)}function w(){E(),b()}function E(){r.destroy(),Y(v,o),i?(W(g?[m,y]:v),m=y=null):z([m,y],et)}function k(e){p.go(e,!0)}function C(e){return X('<button class="'+u.arrow+" "+(e?u.prev:u.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function A(){if(m&&y){var t=e.index,n=p.getPrev(),i=p.getNext(),o=n>-1&&t<n?d.last:d.prev,r=i>-1&&t>i?d.first:d.next;m.disabled=n<0,y.disabled=i<0,N(m,Ue,o),N(y,Ue,r),l("arrows:updated",m,y,n,i)}}return{arrows:_,mount:b,destroy:E,update:A}},Autoplay:function(e,t,n){var i,o,r=Me(e),s=r.on,a=r.bind,c=r.emit,l=Oe(n.interval,e.go.bind(e,">"),function(e){var t=d.bar;t&&q(t,"width",100*e+"%"),c("autoplay:playing",e)}),u=l.isPaused,d=t.Elements,f=t.Elements,p=f.root,g=f.toggle,h=n.autoplay,v="pause"===h;function m(){u()&&t.Slides.isEnough()&&(l.start(!n.resetProgress),o=i=v=!1,b(),c(Ce))}function y(e){void 0===e&&(e=!0),v=!!e,b(),u()||(l.pause(),c(Ae))}function _(){v||(i||o?y(!1):m())}function b(){g&&(k(g,_t,!v),N(g,Ue,n.i18n[v?"play":"pause"]))}function w(e){var i=t.Slides.getAt(e);l.set(i&&+G(i.slide,Tt)||n.interval)}return{mount:function(){h&&(n.pauseOnHover&&a(p,"mouseenter mouseleave",function(e){i="mouseenter"===e.type,_()}),n.pauseOnFocus&&a(p,"focusin focusout",function(e){o="focusin"===e.type,_()}),g&&a(g,"click",function(){v?m():y(!0)}),s([ve,ke,_e],l.rewind),s(ve,w),g&&N(g,Be,d.track.id),v||m(),b())},destroy:l.cancel,play:m,pause:y,isPaused:u}},Cover:function(e,t,n){var i=Me(e).on;function o(e){t.Slides.forEach(function(t){var n=I(t.container||t.slide,"img");n&&n.src&&r(e,n,t)})}function r(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),F(t,e?"none":"")}return{mount:function(){n.cover&&(i(Ie,a(r,!0)),i([ge,be,_e],a(o,!0)))},destroy:a(o,!1)}},Scroll:function(e,t,n){var i,o,r=Me(e),s=r.on,c=r.emit,l=e.state.set,u=t.Move,d=u.getPosition,f=u.getLimit,p=u.exceededLimit,g=u.translate,h=e.is(Mt),v=1;function m(e,n,r,s,f){var g=d();if(b(),r&&(!h||!p())){var m=t.Layout.sliderSize(),w=le(e)*m*ie(re(e)/m)||0;e=u.toPosition(t.Controller.toDest(e%m))+w}var E=se(g,e,1);v=1,n=E?0:n||ne(re(e-g)/1.5,800),o=s,i=Oe(n,y,a(_,g,e,f),1),l(5),c(ke),i.start()}function y(){l(3),o&&o(),c(xe)}function _(e,t,i,r){var s,a,c=d(),l=(e+(t-e)*(s=r,(a=n.easingFunc)?a(s):1-Math.pow(1-s,4))-c)*v;g(c+l),h&&!i&&p()&&(v*=.6,re(l)<10&&m(f(p(!0)),600,!1,o,!0))}function b(){i&&i.cancel()}function w(){i&&!i.isPaused()&&(b(),y())}return{mount:function(){s(ve,b),s([be,_e],w)},destroy:b,scroll:m,cancel:w}},Drag:function(e,t,n){var i,o,r,s,a,c,u,d,p=Me(e),g=p.on,h=p.emit,v=p.bind,m=p.unbind,y=e.state,_=t.Move,b=t.Scroll,w=t.Controller,E=t.Elements.track,k=t.Media.reduce,x=t.Direction,S=x.resolve,L=x.orient,A=_.getPosition,I=_.exceededLimit,P=!1;function M(){var e=n.drag;H(!e),s="free"===e}function O(e){if(c=!1,!u){var t=G(e);i=e.target,o=n.noDrag,C(i,"."+gt+", ."+ut)||o&&C(i,o)||!t&&e.button||(w.isBusy()?U(e,!0):(d=t?E:window,a=y.is([4,5]),r=null,v(d,It,D,zt),v(d,Pt,T,zt),_.cancel(),b.cancel(),N(e)))}var i,o}function D(t){if(y.is(6)||(y.set(6),h("drag")),t.cancelable)if(a){_.translate(i+j(t)/(P&&e.is(Mt)?5:1));var o=q(t)>200,r=P!==(P=I());(o||r)&&N(t),c=!0,h("dragging"),U(t)}else(function(e){return re(j(e))>re(j(e,!0))})(t)&&(a=function(e){var t=n.dragMinThreshold,i=f(t),o=i&&t.mouse||0,r=(i?t.touch:+t)||10;return re(j(e))>(G(e)?r:o)}(t),U(t))}function T(i){y.is(6)&&(y.set(3),h("dragged")),a&&(function(i){var o=function(t){if(e.is(Ot)||!P){var n=q(t);if(n&&n<200)return j(t)/n}return 0}(i),r=function(e){return A()+le(e)*te(re(e)*(n.flickPower||600),s?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(o),a=n.rewind&&n.rewindByDrag;k(!1),s?w.scroll(r,0,n.snap):e.is(Dt)?w.go(L(le(o))<0?a?"<":"-":a?">":"+"):e.is(Mt)&&P&&a?w.go(I(!0)?">":"<"):w.go(w.toDest(r),!0),k(!0)}(i),U(i)),m(d,It,D),m(d,Pt,T),a=!1}function z(e){!u&&c&&U(e,!0)}function N(e){r=o,o=e,i=A()}function j(e,t){return R(e,t)-R(F(e),t)}function q(e){return $(e)-$(F(e))}function F(e){return o===e&&r||o}function R(e,t){return(G(e)?e.changedTouches[0]:e)["page"+S(t?"Y":"X")]}function G(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function H(e){u=e}return{mount:function(){v(E,It,l,zt),v(E,Pt,l,zt),v(E,At,O,zt),v(E,"click",z,{capture:!0}),v(E,"dragstart",U),g([ge,be],M)},disable:H,isDragging:function(){return a}}},Keyboard:function(e,t,n){var i,o,r=Me(e),s=r.on,a=r.bind,l=r.unbind,u=e.root,d=t.Direction.resolve;function f(){var e=n.keyboard;e&&(i="global"===e?window:u,a(i,qt,h))}function p(){l(i,qt)}function g(){var e=o;o=!0,c(function(){o=e})}function h(t){if(!o){var n=jt(t);n===d(Te)?e.go("<"):n===d(ze)&&e.go(">")}}return{mount:function(){f(),s(be,p),s(be,f),s(ve,g)},destroy:p,disable:function(e){o=e}}},LazyLoad:function(e,t,n){var i=Me(e),o=i.on,s=i.off,c=i.bind,l=i.emit,u="sequential"===n.lazyLoad,d=[me,xe],f=[];function p(){r(f),t.Slides.forEach(function(e){J(e.slide,Gt).forEach(function(t){var i=G(t,Ft),o=G(t,Rt);if(i!==t.src||o!==t.srcset){var r=n.classes.spinner,s=t.parentElement,a=I(s,"."+r)||j("span",r,s);f.push([t,e,a]),t.src||F(t,"none")}})}),u?m():(s(d),o(d,g),g())}function g(){(f=f.filter(function(t){var i=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,i)||h(t)})).length||s(d)}function h(e){var t=e[0];x(e[1].slide,kt),c(t,"load error",a(v,e)),N(t,"src",G(t,Ft)),N(t,"srcset",G(t,Rt)),z(t,Ft),z(t,Rt)}function v(e,t){var n=e[0],i=e[1];Y(i.slide,kt),"error"!==t.type&&(W(e[2]),F(n,""),l(Ie,n,i),l(we)),u&&m()}function m(){f.length&&h(f.shift())}return{mount:function(){n.lazyLoad&&(p(),o(_e,p))},destroy:a(r,f),check:g}},Pagination:function(e,t,n){var i,o,c=Me(e),l=c.on,u=c.emit,d=c.bind,f=t.Slides,p=t.Elements,g=t.Controller,h=g.hasFocus,v=g.getIndex,m=g.go,y=t.Direction.resolve,_=p.pagination,b=[];function w(){i&&(W(_?s(i.children):i),Y(i,o),r(b),i=null),c.destroy()}function E(e){m(">"+e,!0)}function k(e,t){var n=b.length,i=jt(t),o=S(),r=-1;i===y(ze,!1,o)?r=++e%n:i===y(Te,!1,o)?r=(--e+n)%n:"Home"===i?r=0:"End"===i&&(r=n-1);var s=b[r];s&&(R(s.button),m(">"+r),U(t,!0))}function S(){return n.paginationDirection||n.direction}function L(e){return b[g.toPage(e)]}function C(){var e=L(v(!0)),t=L(v());if(e){var n=e.button;Y(n,_t),z(n,Xe),N(n,Ge,-1)}if(t){var o=t.button;x(o,_t),N(o,Xe,!0),N(o,Ge,"")}u("pagination:updated",{list:i,items:b},e,t)}return{items:b,mount:function t(){w(),l([be,_e,Pe],t);var r=n.pagination;_&&F(_,r?"":"none"),r&&(l([ve,ke,xe],C),function(){var t=e.length,r=n.classes,s=n.i18n,c=n.perPage,l=h()?g.getEnd()+1:oe(t/c);x(i=_||j("ul",r.pagination,p.track.parentElement),o=pt+"--"+S()),N(i,Re,"tablist"),N(i,Ue,s.select),N(i,Ye,S()===qe?"vertical":"");for(var u=0;u<l;u++){var v=j("li",null,i),m=j("button",{class:r.page,type:"button"},v),y=f.getIn(u).map(function(e){return e.slide.id}),w=!h()&&c>1?s.pageX:s.slideX;d(m,"click",a(E,u)),n.paginationKeyboard&&d(m,"keydown",a(k,u)),N(v,Re,"presentation"),N(m,Re,"tab"),N(m,Be,y.join(" ")),N(m,Ue,ue(w,u+1)),N(m,Ge,-1),b.push({li:v,button:m,page:u})}}(),C(),u("pagination:mounted",{list:i,items:b},L(e.index)))},destroy:w,getAt:L,update:C}},Sync:function(e,t,n){var i=n.isNavigation,o=n.slideFocus,s=[];function c(){var t,n;e.splides.forEach(function(t){t.isParent||(u(e,t.splide),u(t.splide,e))}),i&&((n=(t=Me(e)).on)(ye,f),n("sk",p),n([ge,be],d),s.push(t),t.emit(Le,e.splides))}function l(){s.forEach(function(e){e.destroy()}),r(s)}function u(e,t){var n=Me(e);n.on(ve,function(e,n,i){t.go(t.is(Ot)?i:e)}),s.push(n)}function d(){N(t.Elements.list,Ye,n.direction===qe?"vertical":"")}function f(t){e.go(t.index)}function p(e,t){w(Ht,jt(t))&&(f(e),U(t))}return{setup:a(t.Media.set,{slideFocus:v(o)?i:o},!0),mount:c,destroy:l,remount:function(){l(),c()}}},Wheel:function(e,t,n){var i=Me(e).bind,o=0;function r(i){if(i.cancelable){var r=i.deltaY,s=r<0,a=$(i),c=n.wheelMinThreshold||0,l=n.wheelSleep||0;re(r)>c&&a-o>l&&(e.go(s?"<":">"),o=a),function(i){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(i)}(s)&&U(i)}}return{mount:function(){n.wheel&&i(t.Elements.track,"wheel",r,zt)}}},Live:function(e,t,n){var i=Me(e).on,o=t.Elements.track,r=n.live&&!n.isNavigation,s=j("span",mt),c=Oe(90,a(l,!1));function l(e){N(o,Qe,e),e?(S(o,s),c.start()):(W(s),c.cancel())}function u(e){r&&N(o,Ke,e?"off":"polite")}return{mount:function(){r&&(u(!t.Autoplay.isPaused()),N(o,Ze,!0),s.textContent="…",i(Ce,a(u,!0)),i(Ae,a(u,!1)),i([me,xe],a(l,!0)))},disable:u,destroy:function(){z(o,[Ke,Ze,Qe]),W(s)}}}}),Wt={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Ct,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Xt(e,t,n){var i=t.Slides;function o(){i.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){Me(e).on([ge,_e],o)},start:function(e,t){i.style("transition","opacity "+n.speed+"ms "+n.easing),c(t)},cancel:l}}function Ut(e,t,n){var i,o=t.Move,r=t.Controller,s=t.Scroll,c=t.Elements.list,l=a(q,c,"transition");function u(){l(""),s.cancel()}return{mount:function(){Me(e).bind(c,"transitionend",function(e){e.target===c&&i&&(u(),i())})},start:function(t,a){var c=o.toPosition(t,!0),u=o.getPosition(),d=function(t){var i=n.rewindSpeed;if(e.is(Mt)&&i){var o=r.getIndex(!0),s=r.getEnd();if(0===o&&t>=s||o>=s&&0===t)return i}return n.speed}(t);re(c-u)>=1&&d>=1?n.useScroll?s.scroll(c,d,!1,a):(l("transform "+d+"ms "+n.easing),o.translate(c,!0),i=a):(o.jump(t),a())},cancel:u}}var Vt=function(){function e(t,n){var i;this.event=Me(),this.Components={},this.state=(i=1,{set:function(e){i=e},is:function(e){return w(_(e),i)}}),this.splides=[],this._o={},this._E={};var o=h(t)?V(document,t):t;ee(o,o+" is invalid."),this.root=o,n=D({label:G(o,Ue)||"",labelledby:G(o,Ve)||""},Wt,e.defaults,n||{});try{D(n,JSON.parse(G(o,Z)))}catch(e){ee(!1,"Invalid JSON")}this._o=Object.create(D({},n))}var t,n,o=e.prototype;return o.mount=function(e,t){var n=this,i=this.state,o=this.Components;return ee(i.is([1,7]),"Already mounted!"),i.set(1),this._C=o,this._T=t||this._T||(this.is(Dt)?Xt:Ut),this._E=e||this._E,M(O({},Bt,this._E,{Transition:this._T}),function(e,t){var i=e(n,o,n._o);o[t]=i,i.setup&&i.setup()}),M(o,function(e){e.mount&&e.mount()}),this.emit(ge),x(this.root,yt),i.set(3),this.emit(he),this},o.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},o.go=function(e){return this._C.Controller.go(e),this},o.on=function(e,t){return this.event.on(e,t),this},o.off=function(e){return this.event.off(e),this},o.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(s(arguments,1))),this},o.add=function(e,t){return this._C.Slides.add(e,t),this},o.remove=function(e){return this._C.Slides.remove(e),this},o.is=function(e){return this._o.type===e},o.refresh=function(){return this.emit(_e),this},o.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?Me(this).on(he,this.destroy.bind(this,e)):(M(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(Se),t.destroy(),e&&r(this.splides),n.set(7)),this},t=e,(n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Jt=Vt;Jt.defaults={},Jt.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7},window.recipe_global=class{constructor(){}},new(t())({elements_selector:".dr-lazy"}).update(),document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){const t=e.target.closest(".dr-recipe-wishlist span.dr-bookmark-wishlist");if(!t)return;e.preventDefault();const n=t.getAttribute("data-recipe-id"),i=t.classList.contains("dr-wishlist-is-bookmarked")?"remove":"add";t.classList.add("loading");const o=new FormData;o.append("action","delicious_recipes_wishlist"),o.append("add_remove",i),o.append("recipe_id",n),fetch(delicious_recipes.ajax_url,{method:"POST",body:o}).then(e=>e.json()).then(e=>{if(e&&e.data){const n=t.querySelector(".dr-wishlist-total"),o=t.querySelector(".dr-wishlist-info");if(n&&(n.innerHTML=e.data.wishlists),t.hasAttribute("data-manage-labels")&&o){const n=e.data.isBookmarked||"add"===i,r=t.getAttribute("data-label-added")||e.data.message||o.textContent,s=t.getAttribute("data-label-default")||o.textContent;o.textContent=n?r:s}e.data.isBookmarked||"add"===i?t.classList.add("dr-wishlist-is-bookmarked"):t.classList.remove("dr-wishlist-is-bookmarked")}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .dr-add-to-wishlist-single .dr-recipe-wishlist")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].wishlist=t.closest(".dr-recipe-wishlist").innerHTML)}})}),function(){const e=document.querySelectorAll(".dr-recipe-wishlist span.dr-popup-user__registration");if(!e.length)return;const t=document.getElementById("dr-user__registration-login-popup");if(!t)return;e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.style.display="flex",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.width="100%",t.style.height="100%",t.style.zIndex="999999",t.style.alignItems="center",t.style.justifyContent="center",document.body.style.overflow="hidden"})});const n=document.querySelector(".dr-user__registration-login-popup-close");n&&(n.onclick=function(){t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent=""}),window.addEventListener("click",function(e){e.target===t&&(t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent="")});const i=document.querySelector("form[name='dr-form__log-in']");i&&i.addEventListener("submit",function(e){e.preventDefault();const t=i.querySelector('input[name="username"]').value,n=i.querySelector('input[name="password"]').value,o=i.querySelector('input[name="rememberme"]').value,r=i.querySelector('input[name="login"]').value,s=i.querySelector('input[name="delicious_recipes_user_login_nonce"]').value;i.classList.add("dr-loading");const a=document.querySelector(".delicious-recipes-success-msg"),c=document.querySelector(".delicious-recipes-error-msg");a&&(a.style.display="none"),c&&(c.style.display="none");const l=new FormData;l.append("action","delicious_recipes_process_login"),l.append("username",t),l.append("password",n),l.append("rememberme",o),l.append("login",r),l.append("delicious_recipes_user_login_nonce",s),l.append("calling_action","delicious_recipes_modal_login"),fetch(delicious_recipes.ajax_url,{method:"POST",body:l}).then(e=>e.json()).then(e=>{e.success?(document.querySelectorAll(".dr-recipe-wishlist > span").forEach(function(e){e.classList.remove("dr-popup-user__registration"),e.classList.add("dr-bookmark-wishlist")}),a&&(a.innerHTML=e.data.success,a.style.display="block"),location.reload()):c&&(c.innerHTML=e.data.error,c.style.display="block")}).finally(()=>{i.classList.remove("dr-loading")})})}(),function(){const e=document.querySelectorAll("[data-liked_recipe_id]");if(e.length){const t=Array.from(e).map(e=>e.getAttribute("data-liked_recipe_id")).filter(Boolean);if(t.length){const n=new FormData;n.append("action","recipe_get_likes"),t.forEach(e=>n.append("ids[]",e)),fetch(delicious_recipes.ajax_url,{method:"POST",body:n}).then(e=>e.json()).then(t=>{if(t.success&&t.data?.recipes)for(const e in t.data.recipes){const n=document.querySelector(`[data-liked_recipe_id="${e}"] .dr-likes-total`),i=document.querySelector(`[data-liked_recipe_id="${e}"] .dr_like__recipe`);n&&i&&(n.textContent=t.data.recipes[e].likes_count,i.setAttribute("title",t.data.recipes[e].likes),i.classList.remove("loading"))}else e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})}).catch(()=>{e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})})}}if(void 0!==delicious_recipes.isUserLoggedIn&&""===delicious_recipes.isUserLoggedIn&&window.location.pathname.includes("/recipe/")){const e=document.querySelector(".dr_like__recipe");if(e){const t=e.id.split("-").pop();let n="";if("undefined"!=typeof Storage&&(n=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes"),n)){const i=new FormData;i.append("action","delicious_recipes_check_like_for_logged_out_users"),i.append("id",t),i.append("unique_user_id",n),e.classList.add("loading"),fetch(delicious_recipes.ajax_url,{method:"POST",body:i}).then(e=>e.json()).then(t=>{t.data&&!t.data.can_like&&e.classList.toggle("recipe-liked",!1)}).finally(()=>{e.classList.remove("loading")})}}}document.addEventListener("click",function(e){const t=e.target.closest(".dr_like__recipe");if(!t)return;e.preventDefault();const n=t.id.split("-").pop();let i,o=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes");o||(o="dr_user_identifier_"+Math.random().toString(36).substring(2,15),localStorage.setItem("delicious_recipes_user_identifier_for_recipe_likes",o)),t.classList.toggle("recipe-liked"),i=t.classList.contains("recipe-liked")?"remove":"add",t.classList.add("loading");const r=new FormData;r.append("action","recipe_likes"),r.append("add_remove",i),r.append("id",n),r.append("unique_user_id",o),fetch(delicious_recipes.ajax_url,{method:"POST",body:r}).then(e=>e.json()).then(e=>{if(e.data){t.setAttribute("title",e.data.likes);const n=t.querySelector(".dr-likes-total");n&&(n.innerHTML=e.data.likes_count)}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .post-like .single-like")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].likes=t.closest(".single-like").innerHTML)}})})}(),document.querySelectorAll(".post-share a.meta-title").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation();const t=this.parentElement.querySelector(".social-networks");t&&(t.classList.contains("active")?t.classList.remove("active"):t.classList.add("active"))})}),document.querySelectorAll(".dr-category a, .post-navigation article .dr-category > span").forEach(function(e){var t=e.offsetWidth,n=e.querySelector(".cat-name");if(n){var i=n.offsetWidth,o=(parseInt(i)-parseInt(t))/2;document.body.classList.contains("rtl")?(n.style.left="auto",n.style.right=-o+"px"):n.style.left=-o+"px"}});var e={on:function(e,t,n){document.addEventListener(e,function(e){for(var i=e.target;i&&i!=this;i=i.parentNode)if(i instanceof Element&&i.matches(t)){n.call(i,e);break}},!1)}};window.delicious_recipes.utilities=e})}(),(drExports=void 0===drExports?{}:drExports).wpdPublic={}}();
var drExports;!function(){var e={8512:function(){!function(){const e=document.createElement("span");e.innerHTML="<svg class='star' width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9 0.94043L11.751 6.61643L18 7.47968L13.452 11.8507L14.562 18.0599L9 15.0847L3.43725 18.0599L4.548 11.8507L0 7.47968L6.249 6.61643L9 0.94043Z' /></svg>";const t=document.createElement("input");t.name="rating",t.type="hidden",t.value=0,window.createRatingSystem=function(n=null,o){const i=n||document;null!==o&&i.querySelectorAll(o).forEach(n=>{const o=n.dataset.dynamicRating,i=n.dataset.readOnly,r=document.createElement("div");r.classList.add("wpd-rating-placeholder"),r.innerHTML=e.outerHTML.repeat(5),n.innerHTML=r.outerHTML;const s=n.querySelectorAll(".star"),a=e=>{for(let t=1;t<=e;t++)s[t-1].querySelector("path").setAttribute("fill","#FFAE34")};if("true"===i&&"null"!=o){const t=document.createElement("div");return t.classList.add("wpd-rated-stars"),t.innerHTML=e.outerHTML.repeat(5),t.style.width=o/5*100+"%",void n.appendChild(t)}n.parentNode.appendChild(t);let c=o||0;a(c),s.forEach((e,o)=>{const i=o+1;e.addEventListener("mouseover",()=>{s.forEach(e=>e.querySelector("path").setAttribute("fill","none")),n.setAttribute("data-dynamic-rating",i),t.setAttribute("value",i),a(i)}),e.addEventListener("mouseout",()=>{s.forEach(e=>e.querySelector("path").setAttribute("fill","none")),a(c>0?c:i)}),e.addEventListener("click",()=>{c=i,a(c),t&&(n.setAttribute("data-dynamic-rating",c),t.setAttribute("value",c))})})})}}()},7609:function(e){var t=function(e,t,n){var o=Math.floor(e),i=1,r=o+1,s=1;if(e!==o)for(;i<=t&&s<=t;){var a=(o+r)/(i+s);if(e===a){i+s<=t?(i+=s,o+=r,s=t+1):i>s?s=t+1:i=t+1;break}e<a?(r=o+r,s=i+s):(o+=r,i+=s)}if(i>t&&(i=s,o=r),!n)return[0,o,i];var c=Math.floor(o/i);return[c,o-c*i,i]};t.cont=function(e,t,n){for(var o=e<0?-1:1,i=e*o,r=0,s=1,a=0,c=1,l=0,d=0,u=Math.floor(i);l<t&&(a=(u=Math.floor(i))*s+r,d=u*l+c,!(i-u<5e-8));)i=1/(i-u),r=s,s=a,c=l,l=d;if(d>t&&(l>t?(d=c,a=r):(d=l,a=s)),!n)return[0,o*a,d];var p=Math.floor(o*a/d);return[p,o*a-p*d,d]},"undefined"==typeof DO_NOT_EXPORT_FRAC&&(e.exports=t)},4067:function(e){window,e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var o,i="fslightbox-",r="".concat(i,"styles"),s="".concat(i,"cursor-grabbing"),a="".concat(i,"full-dimension"),c="".concat(i,"flex-centered"),l="".concat(i,"open"),d="".concat(i,"transform-transition"),u="".concat(i,"absoluted"),p="".concat(i,"slide-btn"),f="".concat(p,"-container"),h="".concat(i,"fade-in"),g="".concat(i,"fade-out"),m=h+"-strong",v=g+"-strong",b="".concat(i,"opacity-"),x="".concat(b,"1"),y="".concat(i,"source");function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e){var t,n=e.props,o=0,i={};this.getSourceTypeFromLocalStorageByUrl=function(e){return t[e]?t[e]:r(e)},this.handleReceivedSourceTypeForUrl=function(e,n){if(!1===i[n]&&(o--,"invalid"!==e?i[n]=e:delete i[n],0===o)){!function(e,t){for(var n in t)e[n]=t[n]}(t,i);try{localStorage.setItem("fslightbox-types",JSON.stringify(t))}catch(e){}}};var r=function(e){o++,i[e]=!1};if(n.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{t=JSON.parse(localStorage.getItem("fslightbox-types"))}catch(e){}t||(t={},this.getSourceTypeFromLocalStorageByUrl=r)}}function S(e,t,n,o){e.data;var i=e.elements.sources,r=n/o,s=0;this.adjustSize=function(){if((s=e.mw/r)<e.mh)return n<e.mw&&(s=o),a();s=o>e.mh?e.mh:o,a()};var a=function(){i[t].style.width=s*r+"px",i[t].style.height=s+"px"}}function I(e,t){var n=this,o=e.collections.sourceSizers,i=e.elements,r=i.sourceAnimationWrappers,s=i.sources,a=e.isl,c=e.props.onSourceLoad,l=e.resolve;function d(e,n){o[t]=l(S,[t,e,n]),o[t].adjustSize()}this.b=function(e,o){s[t].classList.add(x),n.a(),d(e,o),n.b=d},this.a=function(){a[t]=!0,r[t].classList.add(m),r[t].removeChild(r[t].firstChild),c&&c(e,s[t],t)}}function _(e,t){var n,o=this,i=e.elements.sources,r=e.props,s=(0,e.resolve)(I,[t]);this.handleImageLoad=function(e){var t=e.target,n=t.naturalWidth,o=t.naturalHeight;s.b(n,o)},this.handleVideoLoad=function(e){var t=e.target,o=t.videoWidth,i=t.videoHeight;n=!0,s.b(o,i)},this.handleNotMetaDatedVideoLoad=function(){n||o.handleYoutubeLoad()},this.handleYoutubeLoad=function(e,t){e||(e=1920,t=1080),r.maxYoutubeDimensions&&(e=r.maxYoutubeDimensions.width,t=r.maxYoutubeDimensions.height),s.b(e,t)},this.handleCustomLoad=function(){var e=i[t],n=e.offsetWidth,r=e.offsetHeight;n&&r?s.b(n,r):setTimeout(o.handleCustomLoad)}}function A(e,t,n){var o=e.elements.sources,i=e.props.customClasses,r=i[t]?i[t]:"";o[t].className=n+" "+r}function E(e,t){var n=e.elements.sources,o=e.props.customAttributes;for(var i in o[t])n[t].setAttribute(i,o[t][i])}function C(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,r=o.sourceAnimationWrappers,s=e.props.sources;i[t]=document.createElement("img"),A(e,t,y),i[t].src=s[t],i[t].onload=n[t].handleImageLoad,E(e,t),r[t].appendChild(i[t])}function k(e,t){var n=e.ap,o=e.collections.sourceLoadHandlers,i=e.elements,r=i.sources,s=i.sourceAnimationWrappers,a=e.props,c=a.sources,l=a.videosPosters,d=document.createElement("video"),u=document.createElement("source");r[t]=d,A(e,t,"".concat(y," fslightboxv")),d.src=c[t],d.onloadedmetadata=function(e){return o[t].handleVideoLoad(e)},d.controls=!0,d.autoplay=n.i(t),E(e,t),l[t]&&(r[t].poster=l[t]),u.src=c[t],d.appendChild(u),setTimeout(o[t].handleNotMetaDatedVideoLoad,3e3),s[t].appendChild(r[t])}function F(e,t){var n=e.ap,o=e.collections.sourceLoadHandlers,r=e.elements,s=r.sources,a=r.sourceAnimationWrappers,c=e.props.sources[t],l=c.split("?")[1],d=document.createElement("iframe");s[t]=d,A(e,t,"".concat(y," ").concat(i,"youtube-iframe")),d.src="https://www.youtube.com/embed/".concat(c.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],"?").concat(l||"").concat(n.i(t)?"&mute=1&autoplay=1":"","&enablejsapi=1"),d.allowFullscreen=!0,E(e,t),a[t].appendChild(d),o[t].handleYoutubeLoad(parseInt(d.width),parseInt(d.height))}function T(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,r=o.sourceAnimationWrappers,s=e.props.sources;i[t]=s[t],A(e,t,"".concat(i[t].className," ").concat(y)),r[t].appendChild(i[t]),n[t].handleCustomLoad()}function M(e,t){var n=e.elements,o=n.sources,r=n.sourceAnimationWrappers;e.props.sources,o[t]=document.createElement("div"),o[t].className="".concat(i,"invalid-file-wrapper ").concat(c),o[t].innerHTML="Invalid source",r[t].appendChild(o[t]),new I(e,t).a()}function N(e){var t=e.collections,n=t.sourceLoadHandlers,o=t.sourcesRenderFunctions,i=e.core.sourceDisplayFacade,r=e.resolve;this.runActionsForSourceTypeAndIndex=function(t,s){var a;switch("invalid"!==t&&(n[s]=r(_,[s])),t){case"image":a=C;break;case"video":a=k;break;case"youtube":a=F;break;case"custom":a=T;break;default:a=M}o[s]=function(){return a(e,s)},i.displaySourcesWhichShouldBeDisplayed()}}function q(e,t,n){var o=e.props,i=o.types,r=o.type,s=o.sources;this.getTypeSetByClientForIndex=function(e){var t;return i&&i[e]?t=i[e]:r&&(t=r),t},this.retrieveTypeWithXhrForIndex=function(e){!function(e,t){var n=document.createElement("a");n.href=e;var o=n.hostname;if("www.youtube.com"===o||"youtu.be"===o)return t("youtube");var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4!==i.readyState){if(2===i.readyState){var e,n=i.getResponseHeader("content-type");switch(n.slice(0,n.indexOf("/"))){case"image":e="image";break;case"video":e="video";break;default:e="invalid"}i.onreadystatechange=null,i.abort(),t(e)}}else t("invalid")},i.open("GET",e),i.send()}(s[e],function(o){t.handleReceivedSourceTypeForUrl(o,s[e]),n.runActionsForSourceTypeAndIndex(o,e)})}}function P(e,t){var n=e.core.stageManager,o=e.elements,i=o.smw,r=o.sourceWrappersContainer,s=e.props,l=0,p=document.createElement("div");function f(e){p.style.transform="translateX(".concat(e+l,"px)"),l=0}function h(){return(1+s.slideDistance)*innerWidth}p.className="".concat(u," ").concat(a," ").concat(c),p.s=function(){p.style.display="flex"},p.h=function(){p.style.display="none"},p.a=function(){p.classList.add(d)},p.d=function(){p.classList.remove(d)},p.n=function(){p.style.removeProperty("transform")},p.v=function(e){return l=e,p},p.ne=function(){f(-h())},p.z=function(){f(0)},p.p=function(){f(h())},n.i(t)||p.h(),i[t]=p,r.appendChild(p),function(e,t){var n=e.elements,o=n.smw,i=n.sourceAnimationWrappers,r=document.createElement("div"),s=document.createElement("div");s.className="fslightboxl";for(var a=0;a<3;a++){var c=document.createElement("div");s.appendChild(c)}r.appendChild(s),o[t].appendChild(r),i[t]=r}(e,t)}function X(e,t,n){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),r="".concat(i,"svg");o.setAttributeNS(null,"class","".concat(r)),o.setAttributeNS(null,"viewBox",t);var s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttributeNS(null,"class","".concat(r,"p")),s.setAttributeNS(null,"d",n),o.appendChild(s),e.appendChild(o),o}function D(e,t){var n=document.createElement("button");return n.className="fslightboxb ".concat(i,"toolbar-button ").concat(c),n.title=t,e.appendChild(n),n}function z(e){var t=e.props.sources,n=e.elements.container,o=document.createElement("div");o.className="".concat(i,"nav"),n.appendChild(o),function(e,t){var n=document.createElement("div");n.className="".concat(i,"toolbar"),t.appendChild(n),function(e,t){if(!e.hfs){var n="M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",o=D(t);o.title="Enter fullscreen";var r=X(o,"0 0 18 18",n);e.fso=function(){e.ifs=1,o.title="Exit fullscreen",r.classList.add("".concat(i,"fsx")),r.setAttributeNS(null,"viewBox","0 0 950 1024"),r.firstChild.setAttributeNS(null,"d","M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z")},e.fsx=function(){e.ifs=0,o.title="Enter fullscreen",r.classList.remove("".concat(i,"fsx")),r.setAttributeNS(null,"viewBox","0 0 18 18"),r.firstChild.setAttributeNS(null,"d",n)},o.onclick=e.fs.t}}(e,n),function(e,t){var n=D(t,"Close");n.onclick=e.core.lightboxCloser.closeLightbox,X(n,"0 0 24 24","M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z")}(e,n)}(e,o),t.length>1&&function(e,t){var n=e.props.sources,o=(e.stageIndexes,document.createElement("div")),i=document.createElement("span"),r=document.createElement("span"),s=document.createElement("span");o.className="fslightboxsn",e.sn=function(e){return i.innerHTML=e},r.className="fslightboxsl",s.innerHTML=n.length,o.appendChild(i),o.appendChild(r),o.appendChild(s),t.appendChild(o)}(e,o)}function H(e,t,n,o){var i=e.elements.container,r=n.charAt(0).toUpperCase()+n.slice(1),s=document.createElement("div");s.className="".concat(f," ").concat(f,"-").concat(n),s.title="".concat(r," slide"),s.onclick=t,function(e,t){var n=document.createElement("button");n.className="fslightboxb ".concat(p," ").concat(c),X(n,"0 0 20 20",t),e.appendChild(n)}(s,o),i.appendChild(s)}function R(e){var t=e.core,n=t.lightboxCloser,o=t.slideChangeFacade,i=e.fs;this.listener=function(e){switch(e.key){case"Escape":n.closeLightbox();break;case"ArrowLeft":o.changeToPrevious();break;case"ArrowRight":o.changeToNext();break;case"F11":e.preventDefault(),i.t()}}}function O(e){var t=e.elements,n=e.sourcePointerProps,o=e.stageIndexes;function i(e,o){t.smw[e].v(n.swipedX)[o]()}this.runActionsForEvent=function(e){var r,a,c;t.container.contains(t.slideSwipingHoverer)||t.container.appendChild(t.slideSwipingHoverer),r=t.container,a=s,(c=r.classList).contains(a)||c.add(a),n.swipedX=e.screenX-n.downScreenX;var l=o.previous,d=o.next;i(o.current,"z"),void 0!==l&&n.swipedX>0?i(l,"ne"):void 0!==d&&n.swipedX<0&&i(d,"p")}}function j(e){var t=e.dss,n=e.props.sources,o=e.resolve,i=e.sourcePointerProps,r=o(O);1===n.length||t?this.listener=function(){i.swipedX=1}:this.listener=function(e){i.isPointering&&r.runActionsForEvent(e)}}function B(e){var t=e.core.slideIndexChanger,n=e.elements.smw,o=e.stageIndexes,i=e.sws;function r(e){var t=n[o.current];t.a(),t[e]()}function s(e,t){void 0!==e&&(n[e].s(),n[e][t]())}this.runPositiveSwipedXActions=function(){var e=o.previous;if(void 0===e)r("z");else{r("p");var n=o.next;t.changeTo(e);var a=o.previous;i.d(a),i.b(n),r("z"),s(a,"ne")}},this.runNegativeSwipedXActions=function(){var e=o.next;if(void 0===e)r("z");else{r("ne");var n=o.previous;t.changeTo(e);var a=o.next;i.d(a),i.b(n),r("z"),s(a,"p")}}}function V(e,t){e.contains(t)&&e.removeChild(t)}function W(e){var t=e.core.lightboxCloser,n=e.dss,o=e.elements,i=e.props,r=e.resolve,a=e.sourcePointerProps,c=r(B);this.runNoSwipeActions=function(){V(o.container,o.slideSwipingHoverer),a.isSourceDownEventTarget||i.disableBackgroundClose||t.closeLightbox(),a.isPointering=!1},this.runActions=function(){n||(a.swipedX>0?c.runPositiveSwipedXActions():c.runNegativeSwipedXActions()),V(o.container,o.slideSwipingHoverer),o.container.classList.remove(s),a.isPointering=!1}}function $(e){var t=e.resolve,n=e.sourcePointerProps,o=t(W);this.listener=function(){n.isPointering&&(n.swipedX?o.runActions():o.runNoSwipeActions())}}function U(e){var t=this,n=e.core,o=n.globalEventsController,i=n.scrollbarRecompensor,r=(e.data,e.e),s=e.elements,a=e.fs,c=e.props,d=e.sourcePointerProps,u=e.ud;this.runActions=function(){t.i=1,s.container.classList.add(v),o.removeListeners(),c.exitFullscreenOnClose&&e.ifs&&a.x(),setTimeout(function(){t.i=0,d.isPointering=!1,s.container.classList.remove(v),document.documentElement.classList.remove(l),i.removeRecompense(),u&&s.container.close(),document.body.removeChild(s.container),r("onClose")},270)}}function G(e,t){var n=e.classList;n.contains(t)&&n.remove(t)}function Y(e){var t,n,o,i,r,s,a,c,l;!function(e){var t=e.ap,n=e.elements.sources,o=e.props,i=o.autoplay,r=o.autoplays;function s(e,o){if("play"!=o||t.i(e)){var i=n[e];if(i){var r=i.tagName;if("VIDEO"==r)i[o]();else if("IFRAME"==r){var s=i.contentWindow;s&&s.postMessage('{"event":"command","func":"'.concat(o,'Video","args":""}'),"*")}}}}t.i=function(e){return r[e]||i&&0!=r[e]},t.p=function(e){s(e,"play")},t.c=function(e,t){s(e,"pause"),s(t,"play")}}(e),function(e){e.data;var t=e.fs,n=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],o=document.documentElement,i=o.requestFullscreen;function r(e){for(var t=0;t<n.length;t++)document[e](n[t],s)}function s(){document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement?e.fso():e.fsx()}t.i=function(){if(i||(i=o.mozRequestFullScreen),i||(i=o.webkitRequestFullscreen),i||(i=o.msRequestFullscreen),!i)return e.hfs=1,t.o=function(){},t.x=function(){},t.t=function(){},t.l=function(){},void(t.q=function(){});t.o=function(){e.fso();var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},t.x=function(){e.fsx(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},t.t=function(){e.ifs?t.x():t.o()},t.l=function(){r("addEventListener")},t.q=function(){r("removeEventListener")}}}(e),o=(n=(t=e).core).globalEventsController,i=n.windowResizeActioner,r=t.fs,s=t.resolve,a=s(R),c=s(j),l=s($),o.attachListeners=function(){document.addEventListener("pointermove",c.listener),document.addEventListener("pointerup",l.listener),addEventListener("resize",i.runActions),document.addEventListener("keydown",a.listener),r.l()},o.removeListeners=function(){document.removeEventListener("pointermove",c.listener),document.removeEventListener("pointerup",l.listener),removeEventListener("resize",i.runActions),document.removeEventListener("keydown",a.listener),r.q()},function(e){var t=e.core.lightboxCloser,n=(0,e.resolve)(U);t.closeLightbox=function(){n.isLightboxFadingOut||n.runActions()}}(e),function(e){var t=e.data,n=e.core.scrollbarRecompensor;function o(){document.body.offsetHeight>innerHeight&&(document.body.style.marginRight=t.scrollbarWidth+"px")}n.addRecompense=function(){"complete"===document.readyState?o():addEventListener("load",function(){o(),n.addRecompense=o})},n.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(e),function(e){var t=e.core,n=t.slideChangeFacade,o=t.slideIndexChanger,i=t.stageManager;e.props.sources.length>1?(n.changeToPrevious=function(){o.jumpTo(i.getPreviousSlideIndex())},n.changeToNext=function(){o.jumpTo(i.getNextSlideIndex())}):(n.changeToPrevious=function(){},n.changeToNext=function(){})}(e),function(e){var t=e.ap,n=(e.componentsServices,e.core),o=n.slideIndexChanger,i=n.sourceDisplayFacade,r=n.stageManager,s=e.elements,a=s.smw,c=s.sourceAnimationWrappers,l=e.isl,d=e.stageIndexes,u=e.sws;o.changeTo=function(n){t.c(d.current,n),d.current=n,r.updateStageIndexes(),e.sn(n+1),i.displaySourcesWhichShouldBeDisplayed()},o.jumpTo=function(e){var t=d.previous,n=d.current,i=d.next,s=l[n],p=l[e];o.changeTo(e);for(var f=0;f<a.length;f++)a[f].d();u.d(n),u.c(),requestAnimationFrame(function(){requestAnimationFrame(function(){var e=d.previous,o=d.next;function f(){r.i(n)?n===d.previous?a[n].ne():n===d.next&&a[n].p():(a[n].h(),a[n].n())}s&&c[n].classList.add(g),p&&c[d.current].classList.add(h),u.a(),void 0!==e&&e!==n&&a[e].ne(),a[d.current].n(),void 0!==o&&o!==n&&a[o].p(),u.b(t),u.b(i),l[n]?setTimeout(f,260):f()})})}}(e),function(e){var t=e.core.sourcesPointerDown,n=e.elements,o=n.smw,i=n.sources,r=e.sourcePointerProps,s=e.stageIndexes;t.listener=function(e){"VIDEO"!==e.target.tagName&&e.preventDefault(),r.isPointering=!0,r.downScreenX=e.screenX,r.swipedX=0;var t=i[s.current];t&&t.contains(e.target)?r.isSourceDownEventTarget=!0:r.isSourceDownEventTarget=!1;for(var n=0;n<o.length;n++)o[n].d()}}(e),function(e){var t=e.collections.sourcesRenderFunctions,n=e.core.sourceDisplayFacade,o=e.loc,i=e.stageIndexes;function r(e){t[e]&&(t[e](),delete t[e])}n.displaySourcesWhichShouldBeDisplayed=function(){if(o)r(i.current);else for(var e in i)r(i[e])}}(e),function(e){var t=e.core.stageManager,n=e.elements,o=n.smw,i=n.sourceAnimationWrappers,r=e.isl,s=e.stageIndexes,a=e.sws;a.a=function(){for(var e in s)o[s[e]].s()},a.b=function(e){void 0===e||t.i(e)||(o[e].h(),o[e].n())},a.c=function(){for(var e in s)a.d(s[e])},a.d=function(e){if(r[e]){var t=i[e];G(t,m),G(t,h),G(t,g)}}}(e),function(e){var t=e.collections.sourceSizers,n=e.core.windowResizeActioner,o=(e.data,e.elements.smw),i=e.props.sourceMargin,r=e.stageIndexes,s=1-2*i;n.runActions=function(){innerWidth>992?e.mw=s*innerWidth:e.mw=innerWidth,e.mh=s*innerHeight;for(var n=0;n<o.length;n++)o[n].d(),t[n]&&t[n].adjustSize();var i=r.previous,a=r.next;void 0!==i&&o[i].ne(),void 0!==a&&o[a].p()}}(e)}function Z(e,t,n){return(Z=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&J(i,n.prototype),i}).apply(null,arguments)}function J(e,t){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Q(){for(var e=document.getElementsByTagName("a"),t=function(t){if(!e[t].hasAttribute("data-fslightbox"))return"continue";var n=e[t].hasAttribute("data-href")?e[t].getAttribute("data-href"):e[t].getAttribute("href");if(!n)return console.warn('The "data-fslightbox" attribute was set without the "href" attribute.'),"continue";var o=e[t].getAttribute("data-fslightbox");fsLightboxInstances[o]||(fsLightboxInstances[o]=new FsLightbox);var i=null;"#"===n.charAt(0)?(i=document.getElementById(n.substring(1)).cloneNode(!0)).removeAttribute("id"):i=n,fsLightboxInstances[o].props.sources.push(i),fsLightboxInstances[o].elements.a.push(e[t]);var r=fsLightboxInstances[o].props.sources.length-1;e[t].onclick=function(e){e.preventDefault(),fsLightboxInstances[o].open(r)},u("types","data-type"),u("videosPosters","data-video-poster"),u("customClasses","data-class"),u("customClasses","data-custom-class"),u("autoplays","data-autoplay");for(var s=["href","data-fslightbox","data-href","data-type","data-video-poster","data-class","data-custom-class","data-autoplay"],a=e[t].attributes,c=fsLightboxInstances[o].props.customAttributes,l=0;l<a.length;l++)if(-1===s.indexOf(a[l].name)&&"data-"===a[l].name.substr(0,5)){c[r]||(c[r]={});var d=a[l].name.substr(5);c[r][d]=a[l].value}function u(n,i){e[t].hasAttribute(i)&&(fsLightboxInstances[o].props[n][r]=e[t].getAttribute(i))}},n=0;n<e.length;n++)t(n);var o=Object.keys(fsLightboxInstances);window.fsLightbox=fsLightboxInstances[o[o.length-1]]}"object"===("undefined"==typeof window?"undefined":w(window))&&((o=document.createElement("style")).className=r,o.appendChild(document.createTextNode(".fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container::backdrop{display:none}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;padding:0;border:0;max-width:none;max-height:none;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;overflow:hidden;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg{width:20px;height:20px}.fslightbox-svgp{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightboxsn{z-index:0;display:flex;align-items:center;margin:14px 0 0 11px;font-size:15px;color:#d7d7d7}.fslightboxsn span{display:inline;vertical-align:middle}.fslightboxsl{display:inline-block!important;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:white}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex}.fslightbox-toolbar-button{width:45px;height:100%}.fslightbox-fsx{width:24px;height:24px}.fslightboxb{border:0;background:rgba(35,35,35,.65);cursor:pointer}.fslightboxb:focus{outline:0}.fslightboxb:focus .fslightbox-svgp{fill:#fff}.fslightboxb:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}.fslightbox-slide-btn-container-next{padding-right:6px!important;padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}.fslightbox-slide-btn-container-next{padding-left:30px}.fslightbox-slide-btn{padding:10px}}.fslightbox-slide-btn-container:hover .fslightbox-svgp{fill:#fff}.fslightbox-slide-btn{padding:9px}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightboxv{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}@media (min-width:1200px){.fslightboxsn{margin:15px 0 0 12px;font-size:16px;display:block}.fslightboxsl{margin:0 6px 1px 6px;height:14px}.fslightbox-slide-btn{padding:11px}.fslightbox-svg{width:22px;height:22px}.fslightbox-fsx{width:26px;height:26px}.fslightbox-fso{width:22px;height:22px}.fslightboxl div{width:60px;height:60px;border-width:6px;border-color:#999 transparent transparent transparent;border-radius:50%}}@media (min-width:1600px){.fslightbox-nav{height:50px}.fslightboxsn{display:flex;margin:19px 0 0 16px;font-size:20px}.fslightboxsl{margin:0 7px 1px 7px;height:16px;width:2px;background:#d7d7d7}.fslightbox-toolbar-button{width:50px}.fslightbox-slide-btn{padding:12px}.fslightbox-svg{width:24px;height:24px}.fslightbox-fsx{width:28px;height:28px}.fslightbox-fso{width:24px;height:24px}}")),document.head.appendChild(o)),window.FsLightbox=function(){var e=this;this.props={sources:[],customAttributes:[],customClasses:[],autoplays:[],types:[],videosPosters:[],exitFullscreenOnClose:1,sourceMargin:.05,slideDistance:.3},this.data={isFullscreenOpen:!1,scrollbarWidth:0},this.isl=[],this.sourcePointerProps={downScreenX:null,isPointering:!1,isSourceDownEventTarget:!1,swipedX:0},this.stageIndexes={},this.elements={a:[],container:null,slideSwipingHoverer:null,smw:[],sourceWrappersContainer:null,sources:[],sourceAnimationWrappers:[]},this.sn=function(){},this.resolve=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.unshift(e),Z(t,function(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n))},this.collections={sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={globalEventsController:{},lightboxCloser:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},this.ap={},this.fs={},this.sws={},this.e=function(t){e.props[t]&&e.props[t](e)},function(e){var t=e.ap,n=(e.componentsServices,e.core),o=n.globalEventsController,r=n.scrollbarRecompensor,s=n.sourceDisplayFacade,c=n.stageManager,d=n.windowResizeActioner,p=e.data,f=e.e,h=e.elements,g=(e.props,e.stageIndexes),v=e.sws,b=0;function x(){var t,n,o=e.props,r=o.autoplay,s=o.autoplays;b=!0,function(e){var t=e.props,n=t.autoplays;e.c=t.sources.length;for(var o=0;o<e.c;o++)"false"===n[o]&&(n[o]=0),""===n[o]&&(n[o]=1);e.dss=t.disableSlideSwiping,e.loc=t.loadOnlyCurrentSource,e.ud=t.useDialog&&"function"==typeof HTMLDialogElement}(e),p.scrollbarWidth=function(){var e=document.createElement("div"),t=e.style,n=document.createElement("div");t.visibility="hidden",t.width="100px",t.msOverflowStyle="scrollbar",t.overflow="scroll",n.style.width="100%",document.body.appendChild(e);var o=e.offsetWidth;e.appendChild(n);var i=n.offsetWidth;return document.body.removeChild(e),o-i}(),(r||s.length>0)&&(e.loc=1),Y(e),e.fs.i(),h.container=document.createElement(e.ud?"dialog":"div"),h.container.className="".concat(i,"container ").concat(a," ").concat(m),h.container.setAttribute("tabindex","0"),function(e){var t=e.elements;t.slideSwipingHoverer=document.createElement("div"),t.slideSwipingHoverer.className="".concat(i,"slide-swiping-hoverer ").concat(a," ").concat(u)}(e),z(e),function(e){var t=e.core.sourcesPointerDown,n=e.elements,o=e.props.sources,i=document.createElement("div");i.className="".concat(u," ").concat(a),n.container.appendChild(i),i.addEventListener("pointerdown",t.listener),n.sourceWrappersContainer=i;for(var r=0;r<o.length;r++)P(e,r)}(e),e.props.sources.length>1&&(n=(t=e).core.slideChangeFacade,H(t,n.changeToPrevious,"previous","M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"),H(t,n.changeToNext,"next","M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z")),function(e){for(var t=e.props.sources,n=e.resolve,o=n(L),i=n(N),r=n(q,[o,i]),s=0;s<t.length;s++)if("string"==typeof t[s]){var a=r.getTypeSetByClientForIndex(s);if(a)i.runActionsForSourceTypeAndIndex(a,s);else{var c=o.getSourceTypeFromLocalStorageByUrl(t[s]);c?i.runActionsForSourceTypeAndIndex(c,s):r.retrieveTypeWithXhrForIndex(s)}}else i.runActionsForSourceTypeAndIndex("custom",s)}(e),f("onInit")}e.open=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=g.previous,a=g.current,u=g.next;g.current=n,b||function(e){var t=e.stageIndexes,n=e.core.stageManager,o=e.props.sources.length-1;n.getPreviousSlideIndex=function(){return 0===t.current?o:t.current-1},n.getNextSlideIndex=function(){return t.current===o?0:t.current+1},n.updateStageIndexes=0===o?function(){}:1===o?function(){0===t.current?(t.next=1,delete t.previous):(t.previous=0,delete t.next)}:function(){t.previous=n.getPreviousSlideIndex(),t.next=n.getNextSlideIndex()},n.i=o<=2?function(){return!0}:function(e){var n=t.current;if(0===n&&e===o||n===o&&0===e)return!0;var i=n-e;return-1===i||0===i||1===i}}(e),c.updateStageIndexes(),b?(v.c(),v.a(),v.b(i),v.b(a),v.b(u),f("onShow")):x(),s.displaySourcesWhichShouldBeDisplayed(),e.sn(n+1),document.body.appendChild(h.container),e.ud&&h.container.showModal(),h.container.focus(),document.documentElement.classList.add(l),r.addRecompense(),o.attachListeners(),d.runActions(),h.smw[n].n(),t.p(n),f("onOpen")}}(this),this.close=function(){return e.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},Q(),window.refreshFsLightbox=function(){for(var e in fsLightboxInstances){var t=fsLightboxInstances[e].props;fsLightboxInstances[e]=new FsLightbox,fsLightboxInstances[e].props=t,fsLightboxInstances[e].props.sources=[],fsLightboxInstances[e].elements.a=[]}Q()}}])}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";function e(e,t,n,o,i,r,s){try{var a=e[r](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(o,i)}var t=window.wp.i18n;const o=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296,66720,68912,68928,69734,69872,69942,70096,70384,70736,70864,71248,71360,71376,71386,71472,71904,72016,72688,72784,73040,73120,73184,73552,90416,92768,92864,93008,93552,118e3,120782,120792,120802,120812,120822,123200,123632,124144,124401,125264,130032],i={"⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9"},r=/[⁰¹²³⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉]/g,s={"¼":"1/4","½":"1/2","¾":"3/4","⅐":"1/7","⅑":"1/9","⅒":"1/10","⅓":"1/3","⅔":"2/3","⅕":"1/5","⅖":"2/5","⅗":"3/5","⅘":"4/5","⅙":"1/6","⅚":"5/6","⅛":"1/8","⅜":"3/8","⅝":"5/8","⅞":"7/8","⅟":"1/"},a=/^(?=[-+]?\s*\.\d|[-+]?\s*\d)([-+])?\s*((?:\d(?:[,_]\d|\d)*)*)(([eE][+-]?\d(?:[,_]\d|\d)*)?|\.\d(?:[,_]\d|\d)*([eE][+-]?\d(?:[,_]\d|\d)*)?|(\s+\d(?:[,_]\d|\d)*\s*)?\s*\/\s*\d(?:[,_]\d|\d)*)?(\s*[^.\d/].*)?/,c=/([¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟}])/g,l={MMM:3e3,MM:2e3,M:1e3,CM:900,DCCC:800,DCC:700,DC:600,D:500,CD:400,CCC:300,CC:200,C:100,XC:90,LXXX:80,LXX:70,LX:60,L:50,XL:40,XXX:30,XX:20,XII:12,XI:11,X:10,IX:9,VIII:8,VII:7,VI:6,V:5,IV:4,III:3,II:2,I:1},d={"Ⅰ":"I","Ⅱ":"II","Ⅲ":"III","Ⅳ":"IV","Ⅴ":"V","Ⅵ":"VI","Ⅶ":"VII","Ⅷ":"VIII","Ⅸ":"IX","Ⅹ":"X","Ⅺ":"XI","Ⅻ":"XII","Ⅼ":"L","Ⅽ":"C","Ⅾ":"D","Ⅿ":"M","ⅰ":"I","ⅱ":"II","ⅲ":"III","ⅳ":"IV","ⅴ":"V","ⅵ":"VI","ⅶ":"VII","ⅷ":"VIII","ⅸ":"IX","ⅹ":"X","ⅺ":"XI","ⅻ":"XII","ⅼ":"L","ⅽ":"C","ⅾ":"D","ⅿ":"M"},u=/([ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫⅬⅭⅮⅯⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅺⅻⅼⅽⅾⅿ])/gi,p=/^(?=[MDCLXVI])(M{0,3})(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$/i,f={round:3,allowTrailingInvalid:!1,romanNumerals:!1,bigIntOnOverflow:!1,decimalSeparator:".",allowCurrency:!1,percentage:!1,verbose:!1},h=/^\s*\//,g=/^([-+]?)\s*(\p{Sc}+)\s*/u,m=/\s*(\p{Sc}+)$/u,v=/%$/;const b={vulgarFractions:!1,tolerance:.0075,fractionSlash:!1,romanNumerals:!1},x={"¼":"1/4","½":"1/2","¾":"3/4","⅐":"1/7","⅑":"1/9","⅒":"1/10","⅓":"1/3","⅔":"2/3","⅕":"1/5","⅖":"2/5","⅗":"3/5","⅘":"4/5","⅙":"1/6","⅚":"5/6","⅛":"1/8","⅜":"3/8","⅝":"5/8","⅞":"7/8"},y=[[.33,"⅓"],[.66,"⅔"],[.2,"⅕"],[.4,"⅖"],[.6,"⅗"],[.8,"⅘"],[.166,"⅙"],[.833,"⅚"],[.143,"⅐"],[.111,"⅑"],[.1,"⅒"],[.125,"⅛"],[.25,"¼"],[.375,"⅜"],[.5,"½"],[.625,"⅝"],[.75,"¾"],[.875,"⅞"],[.0625,"1/16"],[.1875,"3/16"],[.3125,"5/16"],[.4375,"7/16"],[.5625,"9/16"],[.6875,"11/16"],[.8125,"13/16"],[.9375,"15/16"]],w=(e,t,n)=>Math.abs(e-t)<n,L=(e,{fractionSlash:t,vulgarFractions:n})=>{if(n)return e;const o=x[e]??e;if(t){const[e,t]=o.split("/");return`${(e=>{let t="";for(let n=0;n<e.length;n++)t+="⁰¹²³⁴⁵⁶⁷⁸⁹"[+e[n]];return t})(e)}⁄${(e=>{let t="";for(let n=0;n<e.length;n++)t+="₀₁₂₃₄₅₆₇₈₉"[+e[n]];return t})(t)}`}return o},S=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],I=(e,t=b)=>{const n="string"==typeof e?function(e,t=f){const n={...f,...t},b="string"==typeof e?e:`${e}`;let x,y,w,L,S,I,_,A;const E=e=>n.verbose?(e=>{const t={value:e,input:b};return x&&(t.currencyPrefix=x),y&&(t.currencySuffix=y),w&&(t.percentageSuffix=w),L&&(t.trailingInvalid=L),S&&(t.sign=S),void 0!==I&&(t.whole=I),void 0!==_&&(t.numerator=_),void 0!==A&&(t.denominator=A),t})(e):e;if("number"==typeof e||"bigint"==typeof e)return E(e);let C=NaN,k=`${e}`;if(n.allowCurrency){const e=g.exec(k);e&&e[2]&&(x=e[2],k=(e[1]||"")+k.slice(e[0].length))}if(n.allowCurrency){const e=m.exec(k);e&&(y=e[1],k=k.slice(0,-e[0].length))}n.percentage&&v.test(k)&&(w=!0,k=k.slice(0,-1));const F=k.replace(c,(e,t)=>` ${s[t]}`).replace(r,e=>i[e]).replace("⁄","/").trim().replace(/\p{Nd}/gu,e=>{const t=e.codePointAt(0);if(t<=57)return e;let n=0,i=o.length-1;for(;n<i;){const e=n+i+1>>>1;o[e]<=t?n=e:i=e-1}return String(t-o[n])});if(0===F.length)return E(NaN);let T=F;if(","===n.decimalSeparator){const e=(F.match(/,/g)||[]).length;if(1===e)T=F.replaceAll(".","_").replace(",",".");else if(e>1){if(!n.allowTrailingInvalid)return E(NaN);const e=F.indexOf(","),t=F.indexOf(",",e+1),o=F.substring(0,t).replaceAll(".","_").replace(",","."),i=F.substring(t+1);T=n.allowTrailingInvalid?o+"&"+i:o}else T=F.replaceAll(".","_")}const M=a.exec(T);if(!M)return E(n.romanNumerals?(e=>{const t=`${e}`.replace(u,(e,t)=>d[t]).toUpperCase(),n=p.exec(t);if(!n)return NaN;const[,o,i,r,s]=n;return(l[o]??0)+(l[i]??0)+(l[r]??0)+(l[s]??0)})(F):NaN);const N=(M[7]||T.slice(M[0].length)).trim();if(N&&(L=N,!n.allowTrailingInvalid))return E(NaN);const[,q,P,X]=M;"-"!==q&&"+"!==q||(S=q);const D=P.replaceAll(",","").replaceAll("_",""),z=null==X?void 0:X.replaceAll(",","").replaceAll("_","");if(!D&&z&&z.startsWith("."))C=0;else{if(n.bigIntOnOverflow){const e="-"===q?BigInt(`-${D}`):BigInt(D);if(e>BigInt(Number.MAX_SAFE_INTEGER)||e<BigInt(Number.MIN_SAFE_INTEGER))return E(e)}C=parseInt(D)}if(!z)return C="-"===q?-1*C:C,w&&"number"!==n.percentage&&(C/=100),E(C);const H=!1===n.round?NaN:parseFloat(`1e${Math.floor(Math.max(0,n.round))}`);if(z.startsWith(".")||z.startsWith("e")||z.startsWith("E")){const e=parseFloat(`${C}${z}`);C=isNaN(H)?e:Math.round(e*H)/H}else if(h.test(z)){const e=parseInt(D),t=parseInt(z.replace("/",""));_=e,A=t,C=isNaN(H)?e/t:Math.round(e*H/t)/H}else{const[e,t]=z.split("/").map(e=>parseInt(e));I=C,_=e,A=t,C+=isNaN(H)?e/t:Math.round(e*H/t)/H}return C="-"===q?-1*C:C,w&&"number"!==n.percentage&&(C=isNaN(H)?C/100:Math.round(C/100*H)/H),E(C)}(e,{round:!1,allowTrailingInvalid:!0}):e;if(isNaN(n)||null===n)return null;if(0===n)return"";const I=(e=>({...b,..."boolean"==typeof e?{vulgarFractions:e}:e}))(t??b);if(I.romanNumerals)return(e=>{if("number"!=typeof e||isNaN(e))return null;if(e<1||e>=4e3)return"";const t=`${Math.floor(e)}`.split("");let n="",o=3;for(;o--;)n=`${S[+t.pop()+10*o]||""}${n}`;return`${Array(+t.join("")+1).join("M")}${n}`})(n);const _=Math.abs(n),A=Math.floor(_),E=n<0?"-":"",C=0===A?"":`${A}`,k=_-A;if(0===k)return`${n}`;for(const[e,t]of y)if(w(k,e,I.tolerance)){const e=L(t,I),n=e in x;return`${E}${C}${C?I.separator??(n?"":" "):""}${e}`}return`${n}`};n(7609);const _={"¼":"1/4","½":"1/2","¾":"3/4","⅐":"1/7","⅑":"1/9","⅒":"1/10","⅓":"1/3","⅔":"2/3","⅕":"1/5","⅖":"2/5","⅗":"3/5","⅘":"4/5","⅙":"1/6","⅚":"5/6","⅛":"1/8","⅜":"3/8","⅝":"5/8","⅞":"7/8"};function A(e){var t=(e=(e=(e=(e=(e=((e=(e=(e=""+(e=e.replace("⁄","/"))).replace(",",".")).replace(" to ","-"))+"").replace(/(\u00BC|\u00BD|\u00BE|\u2150|\u2151|\u2152|\u2153|\u2154|\u2155|\u2156|\u2157|\u2158|\u2159|\u215A|\u215B|\u215C|\u215D|\u215E)/,function(e,t){return" "+_[t]})).replace(/(<([^>]+)>)/gi,"")).replace(/(\[([^\]]+)\])/gi,"")).replace(/[^\d\s\.\/-]/gi,"")).trim()).split(" "),n=!1;if(""!==e){n=0;for(var o=0;o<t.length;o++)if(""!==t[o].trim()){var i=t[o].split("/",2),r=parseFloat(i[0]);if(void 0!==i[1]){var s=parseFloat(i[1]);0!==s&&(r/=s)}isNaN(r)||(n+=r)}}return n}n(8512),n(4067),document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){const t=e.target.closest(".dr-recipe-wishlist span.dr-bookmark-wishlist");if(!t)return;e.preventDefault();const n=t.getAttribute("data-recipe-id"),o=t.classList.contains("dr-wishlist-is-bookmarked")?"remove":"add";t.classList.add("loading");const i=new FormData;i.append("action","delicious_recipes_wishlist"),i.append("add_remove",o),i.append("recipe_id",n),fetch(delicious_recipes.ajax_url,{method:"POST",body:i}).then(e=>e.json()).then(e=>{if(e&&e.data){const n=t.querySelector(".dr-wishlist-total"),i=t.querySelector(".dr-wishlist-info");if(n&&(n.innerHTML=e.data.wishlists),t.hasAttribute("data-manage-labels")&&i){const n=e.data.isBookmarked||"add"===o,r=t.getAttribute("data-label-added")||e.data.message||i.textContent,s=t.getAttribute("data-label-default")||i.textContent;i.textContent=n?r:s}e.data.isBookmarked||"add"===o?t.classList.add("dr-wishlist-is-bookmarked"):t.classList.remove("dr-wishlist-is-bookmarked")}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .dr-add-to-wishlist-single .dr-recipe-wishlist")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].wishlist=t.closest(".dr-recipe-wishlist").innerHTML)}})}),function(){const e=document.querySelectorAll(".dr-recipe-wishlist span.dr-popup-user__registration");if(!e.length)return;const t=document.getElementById("dr-user__registration-login-popup");if(!t)return;e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.style.display="flex",t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.width="100%",t.style.height="100%",t.style.zIndex="999999",t.style.alignItems="center",t.style.justifyContent="center",document.body.style.overflow="hidden"})});const n=document.querySelector(".dr-user__registration-login-popup-close");n&&(n.onclick=function(){t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent=""}),window.addEventListener("click",function(e){e.target===t&&(t.style.display="none",document.body.style.overflow="",t.style.position="",t.style.left="",t.style.top="",t.style.width="",t.style.height="",t.style.zIndex="",t.style.alignItems="",t.style.justifyContent="")});const o=document.querySelector("form[name='dr-form__log-in']");o&&o.addEventListener("submit",function(e){e.preventDefault();const t=o.querySelector('input[name="username"]').value,n=o.querySelector('input[name="password"]').value,i=o.querySelector('input[name="rememberme"]').value,r=o.querySelector('input[name="login"]').value,s=o.querySelector('input[name="delicious_recipes_user_login_nonce"]').value;o.classList.add("dr-loading");const a=document.querySelector(".delicious-recipes-success-msg"),c=document.querySelector(".delicious-recipes-error-msg");a&&(a.style.display="none"),c&&(c.style.display="none");const l=new FormData;l.append("action","delicious_recipes_process_login"),l.append("username",t),l.append("password",n),l.append("rememberme",i),l.append("login",r),l.append("delicious_recipes_user_login_nonce",s),l.append("calling_action","delicious_recipes_modal_login"),fetch(delicious_recipes.ajax_url,{method:"POST",body:l}).then(e=>e.json()).then(e=>{e.success?(document.querySelectorAll(".dr-recipe-wishlist > span").forEach(function(e){e.classList.remove("dr-popup-user__registration"),e.classList.add("dr-bookmark-wishlist")}),a&&(a.innerHTML=e.data.success,a.style.display="block"),location.reload()):c&&(c.innerHTML=e.data.error,c.style.display="block")}).finally(()=>{o.classList.remove("dr-loading")})})}(),function(){const e=document.querySelectorAll("[data-liked_recipe_id]");if(e.length){const t=Array.from(e).map(e=>e.getAttribute("data-liked_recipe_id")).filter(Boolean);if(t.length){const n=new FormData;n.append("action","recipe_get_likes"),t.forEach(e=>n.append("ids[]",e)),fetch(delicious_recipes.ajax_url,{method:"POST",body:n}).then(e=>e.json()).then(t=>{if(t.success&&t.data?.recipes)for(const e in t.data.recipes){const n=document.querySelector(`[data-liked_recipe_id="${e}"] .dr-likes-total`),o=document.querySelector(`[data-liked_recipe_id="${e}"] .dr_like__recipe`);n&&o&&(n.textContent=t.data.recipes[e].likes_count,o.setAttribute("title",t.data.recipes[e].likes),o.classList.remove("loading"))}else e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})}).catch(()=>{e.forEach(e=>{const t=e.querySelector(".dr_like__recipe");t&&t.classList.remove("loading")})})}}if(void 0!==delicious_recipes.isUserLoggedIn&&""===delicious_recipes.isUserLoggedIn&&window.location.pathname.includes("/recipe/")){const e=document.querySelector(".dr_like__recipe");if(e){const t=e.id.split("-").pop();let n="";if("undefined"!=typeof Storage&&(n=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes"),n)){const o=new FormData;o.append("action","delicious_recipes_check_like_for_logged_out_users"),o.append("id",t),o.append("unique_user_id",n),e.classList.add("loading"),fetch(delicious_recipes.ajax_url,{method:"POST",body:o}).then(e=>e.json()).then(t=>{t.data&&!t.data.can_like&&e.classList.toggle("recipe-liked",!1)}).finally(()=>{e.classList.remove("loading")})}}}document.addEventListener("click",function(e){const t=e.target.closest(".dr_like__recipe");if(!t)return;e.preventDefault();const n=t.id.split("-").pop();let o,i=localStorage.getItem("delicious_recipes_user_identifier_for_recipe_likes");i||(i="dr_user_identifier_"+Math.random().toString(36).substring(2,15),localStorage.setItem("delicious_recipes_user_identifier_for_recipe_likes",i)),t.classList.toggle("recipe-liked"),o=t.classList.contains("recipe-liked")?"remove":"add",t.classList.add("loading");const r=new FormData;r.append("action","recipe_likes"),r.append("add_remove",o),r.append("id",n),r.append("unique_user_id",i),fetch(delicious_recipes.ajax_url,{method:"POST",body:r}).then(e=>e.json()).then(e=>{if(e.data){t.setAttribute("title",e.data.likes);const n=t.querySelector(".dr-likes-total");n&&(n.innerHTML=e.data.likes_count)}}).finally(()=>{if(t.classList.remove("loading"),"undefined"!=typeof recipeProGlobal&&t.closest(".dr-floating-box .post-like .single-like")){const e=window.location.href,n=recipeProGlobal.filter(t=>t.path===e);n[0]&&(n[0].likes=t.closest(".single-like").innerHTML)}})})}(),document.querySelectorAll(".wpd-fslightbox-images-box").forEach(function(e){e.addEventListener("click",function(){var e=this.closest(".additional-images").querySelector(".dr-lg-media-popup");e&&e.click()})});var n=document.querySelectorAll('input[type="number"]');n&&n.forEach(function(e){e.addEventListener("mousewheel",function(e){e.preventDefault()})});let o="",i="";for(let f=0;f<5;f++)o+='<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 4.37993L10.7513 7.99268L14.73 8.54168L11.8343 11.3242L12.5408 15.2767L9 13.3837L5.45925 15.2774L6.16575 11.3249L3.27 8.54243L7.24875 7.99268L9 4.37993ZM9 0.94043L6.249 6.61643L0 7.47968L4.548 11.8507L3.438 18.0599L9 15.0847L14.562 18.0592L13.452 11.8499L18 7.47968L11.751 6.61718L9 0.94043Z" fill="#FFAE34" /></svg>';for(let h=0;h<5;h++)i+='<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 0.94043L11.751 6.61643L18 7.47968L13.452 11.8507L14.562 18.0599L9 15.0847L3.43725 18.0599L4.548 11.8507L0 7.47968L6.249 6.61643L9 0.94043Z" fill="#FFAE34"/></svg>';const r=document.querySelectorAll(".jq-ry-normal-group"),s=document.querySelectorAll(".jq-ry-rated-group");if(r&&(r.forEach(function(e){e.innerHTML=o}),s.forEach(function(e){e.innerHTML=i})),document.querySelectorAll(".ingredient-link").forEach(function(e){e.addEventListener("click",function(){var e=this.getAttribute("data-ingredient-link-id"),t=parseInt(this.getAttribute("data-clicks"))||0,n=new XMLHttpRequest;n.open("POST",delicious_recipes.ajax_url,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.send("action=get_ingredient_links_count&clicks="+t+"&ingredientLinkID="+e),n.onload=function(){if(n.status>=200&&n.status<400){var e=JSON.parse(n.responseText);e.success?console.log("Ingredient link click count updated successfully"):console.error(e.data)}else console.error("Request failed.  Returned status of "+n.status)}})}),createRatingSystem(null,".wpd-rating-container"),!delicious_recipes.proEnabled||!delicious_recipes.license_validity){const g=document.getElementById("respond");if(g){var a=g.querySelector(".comment-form-rating"),c=document.getElementById("cancel-comment-reply-link");document.querySelectorAll(".comment-reply-link").forEach(function(e){e.addEventListener("click",function(){a.style.display="none"})}),c&&c.addEventListener("click",function(){a.style.display="block"})}document.getElementById("respond")&&[".dr-star-ratings-wrapper",".dr-comment"].forEach(e=>{const t=document.querySelector(e);t&&t.addEventListener("click",()=>{document.getElementById("respond").scrollIntoView({behavior:"smooth"})})});const m=document.querySelectorAll(".comments-area"),v=delicious_recipes.global_settings.enableElementorSupport;v&&"yes"===v[0]&&null!==m&&m.length>1&&m[1].remove();const b=document.querySelector(".view-gallery-btn");b&&b.addEventListener("click",function(){window.fsLightboxInstances&&window.fsLightboxInstances.gallery&&window.fsLightboxInstances.gallery.open(0)})}if(!delicious_recipes.proEnabled||!delicious_recipes.license_validity){const x=delicious_recipes.global_settings.enableRecaptchaForComments,y=delicious_recipes.global_settings.recaptchaSiteKey,w=delicious_recipes.global_settings.recaptchaSecretKey,L=delicious_recipes.global_settings.recpatchaVersion;let S="";if(x&&"yes"==x[0]&&y&&w){const k=document.createElement("script");"v3"===L?k.src=`https://www.google.com/recaptcha/api.js?render=${y}`:"v2"===L&&(k.src="https://www.google.com/recaptcha/api.js"),k.async=!0,k.defer=!0,document.body.appendChild(k)}var l=document.getElementById("submit"),d=document.createElement("span");d.className="dr-tooltip";var u=document.createElement("strong");function _(e){u.innerHTML="",d.innerHTML="";var t=document.createTextNode(e);u.appendChild(t),d.appendChild(u),setTimeout(function(){u.innerHTML="",d.innerHTML=""},4e3)}l&&l.parentNode.insertBefore(d,l);const E=function(){var n,o=(n=function*(){if(S="v3"==L?yield grecaptcha.ready(()=>{grecaptcha.execute(y,{action:"submit"}).then(e=>e)}):grecaptcha.getResponse(),0===S.length)return!1;{const e=yield apiFetch({path:"/deliciousrecipe/v1/recipe-recaptcha-comments",method:"POST",data:{recaptchaResponse:S,googleSecretKey:w}});return e.success?!!e.data.success||(_((0,t.__)("reCAPTCHA verification failed. Please try again..","delicious-recipes")),!1):(_((0,t.__)("Error validating reCAPTCHA. Please try again.","delicious-recipes")),!1)}},function(){var t=this,o=arguments;return new Promise(function(i,r){var s=n.apply(t,o);function a(t){e(s,i,r,a,c,"next",t)}function c(t){e(s,i,r,a,c,"throw",t)}a(void 0)})});return function(){return o.apply(this,arguments)}}();function C(e){"yes"==x[0]&&y&&w&&E().then(n=>{n||(_((0,t.__)("Please verify that you are not a robot.","delicious-recipes")),e.preventDefault())})}var p=document.querySelector(".submit");if(p){if("v2"==L){const F=document.createElement("div");F.classList.add("g-recaptcha"),F.setAttribute("data-sitekey",y),F.setAttribute("style","height: 100px;"),p.parentNode.insertBefore(F,p)}p.addEventListener("click",function(e){C(e)})}}!function(){var e={on:function(e,t,n){document.addEventListener(e,function(e){for(var o=e.target;o&&o!=this;o=o.parentNode)if(o instanceof Element&&o.matches(t)){n.call(o,e);break}},!1)}};if(window.delicious_recipes.utilities=e,e.on("click",".dr-video-toggle",function(e){console.log("clicked"),e.target.matches(".dr-video-toggle")&&document.querySelectorAll(e.target.getAttribute("data-target")).forEach(function(e){"none"===e.style.display?e.style.display="block":e.style.display="none"})}),"scale"===delicious_recipes.global_settings.adjustableServingType){const e=delicious_recipes.global_settings.useFraction,t="yes"===e[e.length-1],n=document.querySelectorAll(".dr-ingredients-list .scale-btn-wrapper button");document.addEventListener("click",function(e){if(e.target.matches("[data-scale]")){e.target.closest(".scale-btn-wrapper").querySelectorAll("button").forEach(e=>e.classList.remove("active"));const o=document.querySelector(".dr-ingredients-scale").getAttribute("data-serving-value"),i=document.querySelectorAll(".dr-ingredients-list .dr-unordered-list li");e.preventDefault(),n.forEach(e=>e.classList.remove("active")),e.target.classList.add("active");const r=A(e.target.getAttribute("data-scale")),s=e.target.getAttribute("data-recipe");document.querySelectorAll(".dr-single-recipe-print-btn-"+s).forEach(function(e){const t=e.getAttribute("href").split("?"),n="print_recipe=true&recipe_servings="+o*r;e.setAttribute("href",t[0]+"?"+n)}),i.forEach(function(e,n){const o=e.querySelector(".ingredient_quantity"),i=A(o.getAttribute("data-original")),s=r*i,a=s%1==0?s:s.toFixed(2);o.innerHTML=t?I(s,!0):a})}})}else["keyup","mouseup"].forEach(function(e){document.addEventListener(e,function(e){if(e.target.classList.contains("dr-scale-ingredients")){let t=e.target.closest(".dr-ingredients-list"),n=e.target.value,o=e.target.getAttribute("data-recipe");n=A(n);let i=e.target.getAttribute("data-original");i=A(i);let r=t.querySelectorAll(".ingredient_quantity");document.querySelectorAll(".dr-single-recipe-print-btn-"+o).forEach(function(e){var t=e.getAttribute("href").split("?"),o="print_recipe=true&recipe_servings="+n;e.setAttribute("href",t[0]+"?"+o)}),r.forEach(function(e,t){let o=e.getAttribute("data-original");if(""!=o){o=A(o);let t=o/i*n;isNaN(t)||(t=function(e,t=2){let n=e;return t=parseInt(t),n=parseFloat(parseFloat(e).toFixed(t)),0==n&&(n+=Math.pow(10,-1*t)),n=""+n,n}(t,2)),e.innerText=t}})}})});e.on("click","a",function(e){let t=e.target.getAttribute("href");if(!t)return;let n=t?.split("");if(n.length>1&&e.target.getAttribute("href")?.match(/^#.*$/)){e.preventDefault();let t=document.querySelector(e.target.getAttribute("href"));t?.scrollIntoView({behavior:"smooth"})}}),document.addEventListener("click",function(e){!function(e){if(e.target.matches(".dr-switch-btn")){let t=e.target;if(t){let e=t.getAttribute("data-switch"),n=t.getAttribute("data-switch-on"),o=t.getAttribute("data-switch-off"),i=t.getAttribute("data-target");"off"==e?(t.setAttribute("data-switch","on"),t.innerText=n):(t.setAttribute("data-switch","off"),t.innerText=o);let r=t.getAttribute("data-switch");!function(e,t){"on"==t?e.forEach(function(e){e.classList.add("faq-active")}):e.forEach(function(e){e.classList.remove("faq-active")})}(document.querySelector(i).querySelectorAll(".dr-faq-item"),r)}}["dr-faq-title-wrap","dr-title"].forEach(function(t){e.target.classList.contains(t)&&(e.target.closest(".dr-faq-item")&&e.target.closest(".dr-faq-item").matches(".faq-active")?e.target.closest(".dr-faq-item").classList.remove("faq-active"):e.target.closest(".dr-faq-item").classList.add("faq-active"))}),document.querySelectorAll('.dr-inst-mark-read input[type="checkbox"]').forEach(function(e){e.addEventListener("click",function(){e.checked?e.closest("li").classList.add("dr-instruction-checked"):e.closest("li").classList.remove("dr-instruction-checked")})})}(e)})}()})}(),(drExports=void 0===drExports?{}:drExports).singleRecipe={}}();
(function (){
'use strict';
function run(){
var tocContainer=document.getElementById('ez-toc-container')||document.querySelector('.ez-toc-widget-sticky-container');
if(!tocContainer) return;
var nav=tocContainer.querySelector('nav');
if(!nav) return;
var tocLinks=nav.querySelectorAll('a.ez-toc-link');
if(!tocLinks.length) return;
var anchorIds=[];
for (var i=0; i < tocLinks.length; i++){
var href=tocLinks[i].getAttribute('href')||tocLinks[i].getAttribute('data-href')||'';
var hashIdx=href.indexOf('#');
var id=hashIdx >=0 ? href.substring(hashIdx + 1):'';
try { id=decodeURIComponent(id); } catch (e){  }
if(id) anchorIds.push(id);
}
if(!anchorIds.length) return;
var allHeadings=document.querySelectorAll('h1, h2, h3, h4, h5, h6');
var contentHeadings=[];
for (var j=0; j < allHeadings.length; j++){
var el=allHeadings[j];
if(el.closest('#ez-toc-container')||el.closest('.ez-toc-widget-sticky-container')) continue;
if(el.querySelector('span.ez-toc-section')) continue;
contentHeadings.push(el);
}
if(!contentHeadings.length) return;
function normalizeText(str){
if(typeof str!=='string') return '';
return str.replace(/\s+/g, ' ').trim();
}
if(contentHeadings.length===anchorIds.length){
for (var k=0; k < contentHeadings.length; k++){
injectSpan(contentHeadings[k], anchorIds[k]);
}
return;
}
for (var m=0; m < tocLinks.length; m++){
var linkText=normalizeText(tocLinks[m].textContent);
var anchorId=anchorIds[m];
for (var n=0; n < contentHeadings.length; n++){
var h=contentHeadings[n];
if(h._eztocMatched) continue;
if(normalizeText(h.textContent)===linkText){
injectSpan(h, anchorId);
h._eztocMatched=true;
break;
}}
}}
function injectSpan(heading, id){
if(heading.querySelector('span.ez-toc-section')) return;
var span=document.createElement('span');
span.className='ez-toc-section';
span.id=id;
heading.insertBefore(span, heading.firstChild);
}
if(document.readyState==='loading'){
document.addEventListener('DOMContentLoaded', run);
}else{
run();
}})();
jQuery(document).ready(function(){var t=!1;void 0!==eztoc_smooth_local.JumpJsLinks&&1===parseInt(eztoc_smooth_local.JumpJsLinks)&&(t=!0),document.querySelectorAll(".ez-toc-link").forEach(t=>{t=t.replaceWith(t.cloneNode(!0))}),document.querySelectorAll(".ez-toc-section").forEach(t=>{t.setAttribute("ez-toc-data-id","#"+decodeURI(t.getAttribute("id")))}),jQuery("a.ez-toc-link").click(function(){let e=jQuery(this).attr("data-href"),i=jQuery(this).attr("href");if(1===parseInt(eztoc_smooth_local.add_request_uri)||1===parseInt(eztoc_smooth_local.add_self_reference_link)){if(jQuery(this).attr("data-href")){let r=jQuery(this).attr("data-href").split("#");r&&r.length>1&&(e=`#${r[1]}`)}if(jQuery(this).attr("href")){let a=jQuery(this).attr("href").split("#");a&&a.length>1&&(i=`#${a[1]}`)}}let l=t?e:i,o=jQuery("#wpadminbar"),s=jQuery("header"),h=0;if(parseInt(eztoc_smooth_local.scroll_offset)>30&&(h=parseInt(eztoc_smooth_local.scroll_offset)),o.length&&(h+=o.height()),(s.length&&"fixed"==s.css("position")||"sticky"==s.css("position"))&&(h+=s.height()),jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').length>0&&(h=jQuery('[ez-toc-data-id="'+decodeURI(l)+'"]').offset().top-h),jQuery("html, body").animate({scrollTop:h},500),t)return!1})});
!function(factory){var registeredInModuleLoader;if("function"==typeof define&&define.amd&&(define(factory),registeredInModuleLoader=!0),"object"==typeof exports&&(module.exports=factory(),registeredInModuleLoader=!0),!registeredInModuleLoader){var OldCookies=window.Cookies,api=window.Cookies=factory();api.noConflict=function(){return window.Cookies=OldCookies,api}}}((function(){function extend(){for(var i=0,result={};i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key]}return result}function decode(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function init(converter){function api(){}function set(key,value,attributes){if("undefined"!=typeof document){"number"==typeof(attributes=extend({path:"/"},api.defaults,attributes)).expires&&(attributes.expires=new Date(1*new Date+864e5*attributes.expires)),attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{var result=JSON.stringify(value);/^[\{\[]/.test(result)&&(value=result)}catch(e){}value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),key=encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes)attributes[attributeName]&&(stringifiedAttributes+="; "+attributeName,!0!==attributes[attributeName]&&(stringifiedAttributes+="="+attributes[attributeName].split(";")[0]));return document.cookie=key+"="+value+stringifiedAttributes}}function get(key,json){if("undefined"!=typeof document){for(var jar={},cookies=document.cookie?document.cookie.split("; "):[],i=0;i<cookies.length;i++){var parts=cookies[i].split("="),cookie=parts.slice(1).join("=");json||'"'!==cookie.charAt(0)||(cookie=cookie.slice(1,-1));try{var name=decode(parts[0]);if(cookie=(converter.read||converter)(cookie,name)||decode(cookie),json)try{cookie=JSON.parse(cookie)}catch(e){}if(jar[name]=cookie,key===name)break}catch(e){}}return key?jar[key]:jar}}return api.set=set,api.get=function(key){return get(key,!1)},api.getJSON=function(key){return get(key,!0)},api.remove=function(key,attributes){set(key,"",extend(attributes,{expires:-1}))},api.defaults={},api.withConverter=init,api}return init((function(){}))}));
(function(){var a,b;a=this.jQuery||window.jQuery;b=a(window);a.fn.stick_in_parent=function(d){var p,m,o,n,j,h,k,f,l,e,c,g;if(d==null){d={};}g=d.sticky_class,h=d.inner_scrolling,c=d.recalc_every,e=d.parent,l=d.offset_top,f=d.spacer,o=d.bottoming;
if(l==null){l=0;}if(e==null){e=void 0;}if(h==null){h=true;}if(g==null){g="is_stuck";}p=a(document);if(o==null){o=true;}n=function(t,G,q,i,B,C,y,z){var D,H,r,F,I,s,w,u,x,A,v,E;
if(t.data("sticky_kit")){return;}t.data("sticky_kit",true);I=p.height();w=t.parent();if(e!=null){w=w.closest(e);}if(!w.length){throw"failed to find stick parent";
}r=false;D=false;v=f!=null?f&&t.closest(f):a("<div />");u=function(){var J,L,K;if(z){return;}I=p.height();J=parseInt(w.css("border-top-width"),10);L=parseInt(w.css("padding-top"),10);
G=parseInt(w.css("padding-bottom"),10);q=w.offset().top+J+L;i=w.height();if(r){r=false;D=false;if(f==null){t.insertAfter(v);v.detach();}t.css({position:"",top:"",width:"",bottom:""}).removeClass(g);
K=true;}B=t.offset().top-(parseInt(t.css("margin-top"),10)||0)-l;C=t.outerHeight(true);y=t.css("float");if(v){v.css({width:t.outerWidth(true),height:C,display:t.css("display"),"vertical-align":t.css("vertical-align"),"float":y});
}if(K){return E();}};u();if(C===i){return;}F=void 0;s=l;A=c;E=function(){var L,O,M,K,J,N;if(z){return;}M=false;if(A!=null){A-=1;if(A<=0){A=c;u();M=true;
}}if(!M&&p.height()!==I){u();M=true;}K=b.scrollTop();if(F!=null){O=K-F;}F=K;if(r){if(o){J=K+C+s>i+q;if(D&&!J){D=false;t.css({position:"fixed",bottom:"",top:s}).trigger("sticky_kit:unbottom");
}}if(K<B){r=false;s=l;if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);}v.detach();}L={position:"",width:"",top:""};t.css(L).removeClass(g).trigger("sticky_kit:unstick");
}if(h){N=b.height();if(C+l>N){if(!D){s-=O;s=Math.max(N-C,s);s=Math.min(l,s);if(r){t.css({top:s+"px"});}}}}}else{if(K>B){r=true;L={position:"fixed",top:s};
L.width=t.css("box-sizing")==="border-box"?t.outerWidth()+"px":t.width()+"px";t.css(L).addClass(g);if(f==null){t.after(v);if(y==="left"||y==="right"){v.append(t);
}}t.trigger("sticky_kit:stick");}}if(r&&o){if(J==null){J=K+C+s>i+q;}if(!D&&J){D=true;if(w.css("position")==="static"){w.css({position:"relative"});}return t.css({position:"absolute",bottom:G,top:"auto"}).trigger("sticky_kit:bottom");
}}};x=function(){u();return E();};H=function(){z=true;b.off("touchmove",E);b.off("scroll",E);b.off("resize",x);a(document.body).off("sticky_kit:recalc",x);
t.off("sticky_kit:detach",H);t.removeData("sticky_kit");t.css({position:"",bottom:"",top:"",width:""});w.position("position","");if(r){if(f==null){if(y==="left"||y==="right"){t.insertAfter(v);
}v.remove();}return t.removeClass(g);}};b.on("touchmove",E);b.on("scroll",E);b.on("resize",x);a(document.body).on("sticky_kit:recalc",x);t.on("sticky_kit:detach",H);
return setTimeout(E,0);};for(j=0,k=this.length;j<k;j++){m=this[j];n(a(m));}return this;};}).call(this);
jQuery((function(e){if("undefined"!=typeof ezTOC){function t(){if(0!==e(".ez-toc-widget-container.ez-toc-affix").length){var t=30;void 0!==ezTOC.scroll_offset&&(t=parseInt(ezTOC.scroll_offset)),e(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:t})}if(e.fn.shrinkTOCWidth=function(){e(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&e(this).css("width","")},void 0!==ezTOC.visibility_hide_by_default){var o=e(".ez-toc-toggle:not(.ez-toc-loaded),.ez-toc-widget-sticky-toggle:not(.ez-toc-loaded)"),i=void 0!==ezTOC.visibility_hide_by_device?ezTOC.visibility_hide_by_device:0,c=ezTOC.visibility_hide_by_default;e.each(o,(function(t,o){var n=e(this);e(n).addClass("ez-toc-loaded");var s=e(n).parents("#ez-toc-container,#ez-toc-widget-container,#ez-toc-widget-sticky-container").find("ul.ez-toc-list,ul.ez-toc-widget-sticky-list");if(e(s).hasClass("eztoc-toggle-hide-by-default")&&(c=1),"undefined"!=typeof Cookies&&(Cookies?(1==Cookies.get("ezTOC_hidetoc-"+t)?e(n).data("visible",!1):e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t)):(e(n).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+t))),c&&"0"!=i&&e(n).data("visible",!1),!e(n).data("visible")){s.hide();const e=document.querySelector("#ez-toc-container");if(e){const t=e.querySelector(".ez-toc-box-title");t&&t.classList.add("toc-closed")}else{const e=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");if(e){const t=e.querySelector(".ez-toc-box-title");t&&t.classList.add("toc-closed")}}}e(n).on("click",(function(o){o.preventDefault();const i=document.querySelector("#ez-toc-container");if(i){i.classList.toggle("toc_close");const e=i.querySelector(".ez-toc-box-title");e&&e.classList.toggle("toc-closed")}else{const e=document.querySelector(".ez-toc-widget-container,.ez-toc-widget-sticky-container");e.classList.toggle("toc_close");const t=e.querySelector(".ez-toc-box-title");t&&t.classList.toggle("toc-closed")}e(this).data("visible")?(e(this).data("visible",!1),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"})),s.hide("fast")):(e(this).data("visible",!0),"undefined"!=typeof Cookies&&Cookies&&(c?Cookies.set("ezTOC_hidetoc-"+t,"1",{expires:30,path:"/",sameSite:"Strict"}):Cookies.set("ezTOC_hidetoc-"+t,null,{path:"/",sameSite:"Strict"})),s.show("fast"))}))}))}var n=e("span.ez-toc-section").toArray(),s=function(t){return t.reduce((function(t,o){return t[o.id]=function(t){return e('.ez-toc-widget-container .ez-toc-list a[href="#'+e(t).attr("id")+'"]')}(o),t}),{})}(n),a=e.map(s,(function(e,t){return e})),l=function(){var t=5;void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(t=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30);var o=e("#wpadminbar");o.length&&(t+=o.height());return t}();function r(){var t=function(t,o){var i=e(window).scrollTop()+t+1,c=o[0],n=i-e(c).offset().top;return o.forEach((function(t){var o=i-e(t).offset().top;o>0&&o<n&&(n=o,c=t)})),c}(l,n);if(t){var o=s[t.id];!function(e,t){t.forEach((function(t){e!==t&&t.parent().hasClass("active")&&t.parent().removeClass("active")}))}(o,a),function(t){var o=t.parent();o.hasClass("active")||o.addClass("active");!function(t){var o=function(t){var o=e(t),i=o.html();o.parent().append('<li id="ez-toc-height-test" class="active">'+i+"</li>");var c=e("#ez-toc-height-test"),n=c.height();return c.remove(),n-(o.children("ul").first().height()||0)}(t);!function(t){e(".ez-toc-widget-container ul.ez-toc-list li.active").css("height",t+"px")}(o)}(o)}(o)}}n.length>0&&e(".ez-toc-widget-container").length&&e(window).on("load resize scroll",r)}function o(){e('.ez-toc-list[class*="ez-toc-columns-"]').each((function(){var t=e(this),o=t.attr("class").match(/ez-toc-columns-(\d+)/);o&&(parseInt(o[1])<=1||(t.addClass("ez-toc-columns-optimized"),t.find("li").each((function(){var t=e(this);t.outerHeight()>50&&t.css("break-inside","avoid")}))))}))}e("#ez-toc-container").length&&(e("#ez-toc-container .ez-toc-toggle label span").html()||e("#ez-toc-container .ez-toc-toggle label").html(ezTOC.fallbackIcon)),ezTOC.init=function(){t()},t(),setTimeout(o,100),void 0!==ezTOC.ajax_toggle&&1===parseInt(ezTOC.ajax_toggle)&&e(document).ajaxComplete((function(){t(),setTimeout(o,100)}))}e(document).on("click","#ez-toc-open-sub-hd",(function(t){e(this).attr("id","ez-toc-open-sub-hd-active"),t.preventDefault()})),e(document).on("click","#ez-toc-open-sub-hd-active",(function(t){e(this).attr("id","ez-toc-open-sub-hd"),t.preventDefault()})),e("#ez-toc-more-links-enabler").click((function(){e(".ez-toc-more-link").show(),e("#ez-toc-more-links-enabler").hide(),e("#ez-toc-more-links-disabler").attr("style","display:inline-block")})),e("#ez-toc-more-links-disabler").click((function(){e(".ez-toc-more-link").hide(),e("#ez-toc-more-links-enabler").show(),e("#ez-toc-more-links-disabler").hide()})),1===parseInt(ezTOC.chamomile_theme_is_on)&&e("#ez-toc-container").find(".hamburger").remove()}));
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
(function ($){
$.fn.theiaStickySidebar=function (options){
var defaults={
'containerSelector': '',
'additionalMarginTop': 0,
'additionalMarginBottom': 0,
'updateSidebarHeight': true,
'minWidth': 0,
'disableOnResponsiveLayouts': true,
'sidebarBehavior': 'modern',
'defaultPosition': 'relative',
'namespace': 'TSS'
};
options=$.extend(defaults, options);
options.additionalMarginTop=parseInt(options.additionalMarginTop)||0;
options.additionalMarginBottom=parseInt(options.additionalMarginBottom)||0;
tryInitOrHookIntoEvents(options, this);
function tryInitOrHookIntoEvents(options, $that){
var success=tryInit(options, $that);
if(!success){
console.log('TSS: Body width smaller than options.minWidth. Init is delayed.');
$(document).on('scroll.' + options.namespace, function (options, $that){
return function (evt){
var success=tryInit(options, $that);
if(success){
$(this).unbind(evt);
}};}(options, $that));
$(window).on('resize.' + options.namespace, function (options, $that){
return function (evt){
var success=tryInit(options, $that);
if(success){
$(this).unbind(evt);
}};}(options, $that))
}}
function tryInit(options, $that){
if(options.initialized===true){
return true;
}
if($('body').width() < options.minWidth){
return false;
}
init(options, $that);
return true;
}
function init(options, $that){
options.initialized=true;
var existingStylesheet=$('#theia-sticky-sidebar-stylesheet-' + options.namespace);
if(existingStylesheet.length===0){
$('head').append($('<style id="theia-sticky-sidebar-stylesheet-' + options.namespace + '">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>'));
}
$that.each(function (){
var o={};
o.sidebar=$(this);
o.options=options||{};
o.sidebar.data('tss-options', o.options);
o.container=$(o.options.containerSelector);
if(o.container.length==0){
o.container=o.sidebar.parent();
}
o.sidebar.parents().css('-webkit-transform', 'none'); // Fix for WebKit bug - https://code.google.com/p/chromium/issues/detail?id=20574
o.sidebar.css({
'position': o.options.defaultPosition,
'overflow': 'visible',
'-webkit-box-sizing': 'border-box',
'-moz-box-sizing': 'border-box',
'box-sizing': 'border-box'
});
o.stickySidebar=o.sidebar.find('.theiaStickySidebar');
if(o.stickySidebar.length==0){
var javaScriptMIMETypes=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;
o.sidebar.find('script').filter(function (index, script){
return script.type.length===0||script.type.match(javaScriptMIMETypes);
}).remove();
o.stickySidebar=$('<div>').addClass('theiaStickySidebar').append(o.sidebar.children());
o.sidebar.append(o.stickySidebar);
}
o.marginBottom=parseInt(o.sidebar.css('margin-bottom'));
o.paddingTop=parseInt(o.sidebar.css('padding-top'));
o.paddingBottom=parseInt(o.sidebar.css('padding-bottom'));
var collapsedTopHeight=o.stickySidebar.offset().top;
var collapsedBottomHeight=o.stickySidebar.outerHeight();
o.stickySidebar.css('padding-top', 1);
o.stickySidebar.css('padding-bottom', 1);
collapsedTopHeight -=o.stickySidebar.offset().top;
collapsedBottomHeight=o.stickySidebar.outerHeight() - collapsedBottomHeight - collapsedTopHeight;
if(collapsedTopHeight==0){
o.stickySidebar.css('padding-top', 0);
o.stickySidebarPaddingTop=0;
}else{
o.stickySidebarPaddingTop=1;
}
if(collapsedBottomHeight==0){
o.stickySidebar.css('padding-bottom', 0);
o.stickySidebarPaddingBottom=0;
}else{
o.stickySidebarPaddingBottom=1;
}
o.previousScrollTop=null;
o.fixedScrollTop=0;
resetSidebar();
o.onScroll=function (o){
if(!o.stickySidebar.is(":visible")){
return;
}
if($('body').width() < o.options.minWidth){
resetSidebar();
return;
}
if(o.options.disableOnResponsiveLayouts){
var sidebarWidth=o.sidebar.outerWidth(o.sidebar.css('float')=='none');
if(sidebarWidth + 50 > o.container.width()){
resetSidebar();
return;
}}
var scrollTop=$(document).scrollTop();
var position='static';
if(scrollTop >=o.sidebar.offset().top + (o.paddingTop - o.options.additionalMarginTop)){
var offsetTop=o.paddingTop + options.additionalMarginTop;
var offsetBottom=o.paddingBottom + o.marginBottom + options.additionalMarginBottom;
var containerTop=o.sidebar.offset().top;
var containerBottom=o.sidebar.offset().top + getClearedHeight(o.container);
var windowOffsetTop=0 + options.additionalMarginTop;
var windowOffsetBottom;
var sidebarSmallerThanWindow=(o.stickySidebar.outerHeight() + offsetTop + offsetBottom) < $(window).height();
if(sidebarSmallerThanWindow){
windowOffsetBottom=windowOffsetTop + o.stickySidebar.outerHeight();
}else{
windowOffsetBottom=$(window).height() - o.marginBottom - o.paddingBottom - options.additionalMarginBottom;
}
var staticLimitTop=containerTop - scrollTop + o.paddingTop;
var staticLimitBottom=containerBottom - scrollTop - o.paddingBottom - o.marginBottom;
var top=o.stickySidebar.offset().top - scrollTop;
var scrollTopDiff=o.previousScrollTop - scrollTop;
if(o.stickySidebar.css('position')=='fixed'){
if(o.options.sidebarBehavior=='modern'){
top +=scrollTopDiff;
}}
if(o.options.sidebarBehavior=='stick-to-top'){
top=options.additionalMarginTop;
}
if(o.options.sidebarBehavior=='stick-to-bottom'){
top=windowOffsetBottom - o.stickySidebar.outerHeight();
}
if(scrollTopDiff > 0){
top=Math.min(top, windowOffsetTop);
}else{
top=Math.max(top, windowOffsetBottom - o.stickySidebar.outerHeight());
}
top=Math.max(top, staticLimitTop);
top=Math.min(top, staticLimitBottom - o.stickySidebar.outerHeight());
var sidebarSameHeightAsContainer=o.container.height()==o.stickySidebar.outerHeight();
if(!sidebarSameHeightAsContainer&&top==windowOffsetTop){
position='fixed';
}
else if(!sidebarSameHeightAsContainer&&top==windowOffsetBottom - o.stickySidebar.outerHeight()){
position='fixed';
}
else if(scrollTop + top - o.sidebar.offset().top - o.paddingTop <=options.additionalMarginTop){
position='static';
}else{
position='absolute';
}}
const transY=window.devicePixelRatio < 1.6 ? Math.round:y=> y;
if(position=='fixed'){
var scrollLeft=$(document).scrollLeft();
o.stickySidebar.css({
'position': 'fixed',
'width': getWidthForObject(o.stickySidebar) + 'px',
'transform': 'translateY(' + transY(top) + 'px)',
'left': (o.sidebar.offset().left + parseInt(o.sidebar.css('padding-left')) + parseInt(o.sidebar.css('border-left')) - scrollLeft) + 'px',
'top': '0px'
});
}
else if(position=='absolute'){
var css={};
if(o.stickySidebar.css('position')!='absolute'){
css.position='absolute';
css.transform='translateY(' + transY(scrollTop + top - o.sidebar.offset().top - o.stickySidebarPaddingTop - o.stickySidebarPaddingBottom) + 'px)';
css.top='0px';
}
css.width=getWidthForObject(o.stickySidebar) + 'px';
css.left='';
o.stickySidebar.css(css);
}
else if(position=='static'){
resetSidebar();
}
if(position!='static'){
if(o.options.updateSidebarHeight==true){
o.sidebar.css({
'min-height': o.stickySidebar.outerHeight() + o.stickySidebar.offset().top - o.sidebar.offset().top + o.paddingBottom
});
}}
o.previousScrollTop=scrollTop;
};
o.onScroll(o);
$(document).on('scroll.' + o.options.namespace, function (o){
return function (){
o.onScroll(o);
};}(o));
$(window).on('resize.' + o.options.namespace, function (o){
return function (){
o.stickySidebar.css({'position': 'static'});
o.onScroll(o);
};}(o));
if(typeof ResizeSensor!=='undefined'){
new ResizeSensor(o.stickySidebar[0], function (o){
return function (){
o.onScroll(o);
};}(o));
}
function resetSidebar(){
o.fixedScrollTop=0;
o.sidebar.css({
'min-height': '1px'
});
o.stickySidebar.css({
'position': 'static',
'width': '',
'transform': 'none'
});
}
function getClearedHeight(e){
var height=e.height();
e.children().each(function (){
height=Math.max(height, $(this).height());
});
return height;
}});
}
function getWidthForObject(object){
var width;
try {
width=object[0].getBoundingClientRect().width;
}
catch (err){
}
if(typeof width==="undefined"){
width=object.width();
}
return width;
}
return this;
}})(jQuery);