(function(){var c={401:function(b,e,c){var d;function a(b){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(b)}b=c.nmd(b),function(){var P,f={},C,Q,k,x,B,G;function h(){}function j(a){return a}function M(a){return!!a}function q(a){return!a}C="object"===("undefined"==typeof self?"undefined":a(self))&&self.self===self&&self||"object"===(void 0===c.g?"undefined":a(c.g))&&c.g.global===c.g&&c.g||this;function n(a){return function(){if(null===a)throw new Error("Callback was already called.");a.apply(this,arguments),a=null}}function m(a){return function(){null!==a&&(a.apply(this,arguments),a=null)}}null!=C&&(P=C.async),f.noConflict=function(){return C.async=P,f},Q=Object.prototype.toString,k=Array.isArray||function(a){return"[object Array]"===Q.call(a)};function v(a){return k(a)||"number"==typeof a.length&&a.length>=0&&a.length%1==0}function i(a,c){for(var b=-1,d=a.length;++b<d;)c(a[b],b,a)}function o(b,e){for(var a=-1,c=b.length,d=Array(c);++a<c;)d[a]=e(b[a],a,b);return d}function K(a){return o(Array(a),function(b,a){return a})}function R(b,c,a){return i(b,function(b,d,e){a=c(a,b,d,e)}),a}function S(a,b){i(x(a),function(c){b(a[c],c)})}function H(b,c){for(var a=0;a<b.length;a++)if(b[a]===c)return a;return-1}x=Object.keys||function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b};function y(c){var a,d,b=-1;return v(c)?(a=c.length,function(){return++b<a?b:null}):(d=x(c),a=d.length,function(){return++b<a?d[b]:null})}function g(b,a){return a=null==a?b.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),d=Array(e),c=0;c<e;c++)d[c]=arguments[c+a];switch(a){case 0:return b.call(this,d);case 1:return b.call(this,arguments[0],d)}}}function A(a){return function(b,d,c){return a(b,c)}}B="function"==typeof setImmediate&&setImmediate,G=B?function(a){B(a)}:function(a){setTimeout(a,0)};function s(a){return function(d,i,b){var g,e,c,f;if(b=m(b||h),g=y(d=d||[]),a<=0)return b(null);e=!1,c=0,f=!1,!function j(){if(e&&c<=0)return b(null);for(;c<a&&!f;){var h=g();if(null===h)return e=!0,void(c<=0&&b(null));c+=1,i(d[h],h,n(function(a){c-=1,a?(b(a),f=!0):j()}))}}()}}function t(a){return function(b,c,d){return a(f.eachOf,b,c,d)}}function E(a){return function(b,c,d,e){return a(s(c),b,d,e)}}function p(a){return function(b,c,d){return a(f.eachOfSeries,b,c,d)}}function w(d,a,e,b){b=m(b||h);var c=v(a=a||[])?[]:{};d(a,function(a,b,d){e(a,function(a,e){c[b]=e,d(a)})},function(a){b(a,c)})}function r(b,c,d,e){var a=[];b(c,function(b,c,e){d(b,function(d){d&&a.push({index:c,value:b}),e()})},function(){e(o(a.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})}function u(a,b,c,d){r(a,b,function(a,b){c(a,function(a){b(!a)})},d)}function l(a,c,b){return function(f,g,e,d){function h(){d&&d(b(!1,void 0))}function i(a,g,f){if(!d)return f();e(a,function(g){d&&c(g)&&(d(b(!0,a)),d=e=!1),f()})}arguments.length>3?a(f,g,i,h):(d=e,e=g,a(f,i,h))}}function z(b,a){return a}function D(d,b,a){a=a||h;var c=v(b)?[]:{};d(b,function(a,b,d){a(g(function(e,a){a.length<=1&&(a=a[0]),c[b]=a,d(e)}))},function(b){a(b,c)})}function N(b,c,d,e){var a=[];b(c,function(b,e,c){d(b,function(b,d){a=a.concat(d||[]),c(b)})},function(b){e(b,a)})}function O(l,d,g){if(null==d)d=1;else if(0===d)throw new Error("Concurrency must not be zero");function e(a,b,d,c){if(null!=c&&"function"!=typeof c)throw new Error("task callback must be a function");if(a.started=!0,k(b)||(b=[b]),0===b.length&&a.idle())return f.setImmediate(function(){a.drain()});i(b,function(e){var b={data:e,callback:c||h};d?a.tasks.unshift(b):a.tasks.push(b),a.tasks.length===a.concurrency&&a.saturated()}),f.setImmediate(a.process)}function j(a,d){return function(){b-=1;var e=!1,f=arguments;i(d,function(a){i(c,function(b,d){b!==a||e||(c.splice(d,1),e=!0)}),a.callback.apply(a,f)}),a.tasks.length+b===0&&a.drain(),a.process()}}var b=0,c=[],a={tasks:[],concurrency:d,payload:g,saturated:h,empty:h,drain:h,started:!1,paused:!1,push:function(b,c){e(a,b,!1,c)},kill:function(){a.drain=h,a.tasks=[]},unshift:function(b,c){e(a,b,!0,c)},process:function(){for(var d,e,f;!a.paused&&b<a.concurrency&&a.tasks.length;)d=a.payload?a.tasks.splice(0,a.payload):a.tasks.splice(0,a.tasks.length),e=o(d,function(a){return a.data}),0===a.tasks.length&&a.empty(),b+=1,c.push(d[0]),f=n(j(a,d)),l(e,f)},length:function(){return a.tasks.length},running:function(){return b},workersList:function(){return c},idle:function(){return a.tasks.length+b===0},pause:function(){a.paused=!0},resume:function(){if(!1!==a.paused){a.paused=!1;for(var c=Math.min(a.concurrency,a.tasks.length),b=1;b<=c;b++)f.setImmediate(a.process)}}};return a}function L(b){return g(function(c,d){c.apply(null,d.concat([g(function(c,d){"object"===("undefined"==typeof console?"undefined":a(console))&&(c?console.error&&console.error(c):console[b]&&i(d,function(a){console[b](a)}))})]))})}function J(a){return function(b,c,d){a(K(b),c,d)}}function I(a){return g(function(d,b){var c=g(function(b){var c=this,e=b.pop();return a(d,function(a,e,d){a.apply(c,b.concat([d]))},e)});return b.length?c.apply(this,b):c})}function F(a){return g(function(b){var c=b.pop(),d;b.push(function(){var a=arguments;d?f.setImmediate(function(){c.apply(null,a)}):c.apply(null,a)}),d=!0,a.apply(this,b),d=!1})}"object"===("undefined"==typeof process?"undefined":a(process))&&"function"==typeof process.nextTick?f.nextTick=process.nextTick:f.nextTick=G,f.setImmediate=B?G:f.nextTick,f.forEach=f.each=function(a,b,c){return f.eachOf(a,A(b),c)},f.forEachSeries=f.eachSeries=function(a,b,c){return f.eachOfSeries(a,A(b),c)},f.forEachLimit=f.eachLimit=function(a,b,c,d){return s(b)(a,A(c),d)},f.forEachOf=f.eachOf=function(d,e,a){a=m(a||h);for(var b,f=y(d=d||[]),c=0;null!=(b=f());)c+=1,e(d[b],b,n(g));function g(d){c--,d?a(d):null===b&&c<=0&&a(null)}0===c&&a(null)},f.forEachOfSeries=f.eachOfSeries=function(c,e,a){a=m(a||h);var d=y(c=c||[]),b=d();!function g(){var h=!0;if(null===b)return a(null);e(c[b],b,n(function(c){if(c)a(c);else{if(null===(b=d()))return a(null);h?f.setImmediate(g):g()}})),h=!1}()},f.forEachOfLimit=f.eachOfLimit=function(a,b,c,d){s(b)(a,c,d)},f.map=t(w),f.mapSeries=p(w),f.mapLimit=E(w),f.inject=f.foldl=f.reduce=function(b,a,c,d){f.eachOfSeries(b,function(b,e,d){c(a,b,function(b,c){a=c,d(b)})},function(b){d(b,a)})},f.foldr=f.reduceRight=function(a,b,c,d){var e=o(a,j).reverse();f.reduce(e,b,c,d)},f.transform=function(c,a,b,d){3===arguments.length&&(d=b,b=a,a=k(c)?[]:{}),f.eachOf(c,function(c,d,e){b(a,c,d,e)},function(b){d(b,a)})},f.select=f.filter=t(r),f.selectLimit=f.filterLimit=E(r),f.selectSeries=f.filterSeries=p(r),f.reject=t(u),f.rejectLimit=E(u),f.rejectSeries=p(u),f.any=f.some=l(f.eachOf,M,j),f.someLimit=l(f.eachOfLimit,M,j),f.all=f.every=l(f.eachOf,q,q),f.everyLimit=l(f.eachOfLimit,q,q),f.detect=l(f.eachOf,j,z),f.detectSeries=l(f.eachOfSeries,j,z),f.detectLimit=l(f.eachOfLimit,j,z),f.sortBy=function(b,c,a){function d(c,d){var a=c.criteria,b=d.criteria;return a<b?-1:a>b?1:0}f.map(b,function(a,b){c(a,function(c,d){c?b(c):b(null,{value:a,criteria:d})})},function(b,c){if(b)return a(b);a(null,o(c.sort(d),function(a){return a.value}))})},f.auto=function(c,d,b){var n,e,a,j,o,l;if("function"==typeof arguments[1]&&(b=d,d=null),b=m(b||h),n=x(c),e=n.length,!e)return b(null);d||(d=e),a={},j=0,o=!1,l=[];function p(a){l.unshift(a)}function q(b){var a=H(l,b);a>=0&&l.splice(a,1)}function r(){e--,i(l.slice(0),function(a){a()})}p(function(){e||b(null,a)}),i(n,function(e){if(!o){for(var l,h=k(c[e])?c[e]:[c[e]],m=g(function(g,c){if(j--,c.length<=1&&(c=c[0]),g){var d={};S(a,function(a,b){d[b]=a}),d[e]=c,o=!0,b(g,d)}else a[e]=c,f.setImmediate(r)}),i=h.slice(0,h.length-1),n=i.length;n--;){if(!(l=c[i[n]]))throw new Error("Has nonexistent dependency in "+i.join(", "));if(k(l)&&H(l,e)>=0)throw new Error("Has cyclic dependencies")}s()?(j++,h[h.length-1](m,a)):p(function b(){s()&&(j++,q(b),h[h.length-1](m,a))})}function s(){return j<d&&R(i,function(b,c){return b&&a.hasOwnProperty(c)},!0)&&!a.hasOwnProperty(e)}})},f.retry=function(c,d,j){var g=5,i=0,h=[],b={times:g,interval:i},e;function l(c,b){if("number"==typeof b)c.times=parseInt(b,10)||g;else{if("object"!==a(b))throw new Error("Unsupported argument type for 'times': "+a(b));c.times=parseInt(b.times,10)||g,c.interval=parseInt(b.interval,10)||i}}if(e=arguments.length,e<1||e>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function k(c,d){function e(a,b){return function(c){a(function(a,d){c(!a||b,{err:a,result:d})},d)}}function g(a){return function(b){setTimeout(function(){b(null)},a)}}for(;b.times;){var a=!(b.times-=1);h.push(e(b.task,a)),!a&&b.interval>0&&h.push(g(b.interval))}f.series(h,function(d,a){a=a[a.length-1],(c||b.callback)(a.err,a.result)})}return e<=2&&"function"==typeof c&&(j=d,d=c),"function"!=typeof c&&l(b,c),b.callback=j,b.task=d,b.callback?k():k},f.waterfall=function(b,a){if(a=m(a||h),!k(b)){var c=new Error("First argument to waterfall must be an array of functions");return a(c)}if(!b.length)return a();!function c(b){return g(function(e,d){if(e)a.apply(null,[e].concat(d));else{var f=b.next();f?d.push(c(f)):d.push(a),F(b).apply(null,d)}})}(f.iterator(b))()},f.parallel=function(a,b){D(f.eachOf,a,b)},f.parallelLimit=function(a,b,c){D(s(b),a,c)},f.series=function(a,b){D(f.eachOfSeries,a,b)},f.iterator=function(a){return function d(b){function c(){return a.length&&a[b].apply(null,arguments),c.next()}return c.next=function(){return b<a.length-1?d(b+1):null},c}(0)},f.apply=g(function(a,b){return g(function(c){return a.apply(null,b.concat(c))})}),f.concat=t(N),f.concatSeries=p(N),f.whilst=function(b,c,a){if(a=a||h,b()){var d=g(function(e,f){e?a(e):b.apply(this,f)?c(d):a.apply(null,[null].concat(f))});c(d)}else a(null)},f.doWhilst=function(a,b,c){var d=0;return f.whilst(function(){return++d<=1||b.apply(this,arguments)},a,c)},f.until=function(a,b,c){return f.whilst(function(){return!a.apply(this,arguments)},b,c)},f.doUntil=function(a,b,c){return f.doWhilst(a,function(){return!b.apply(this,arguments)},c)},f.during=function(b,d,a){a=a||h;var e=g(function(d,e){d?a(d):(e.push(c),b.apply(this,e))}),c=function(b,c){b?a(b):c?d(e):a(null)};b(c)},f.doDuring=function(a,b,c){var d=0;f.during(function(a){d++<1?a(null,!0):b.apply(this,arguments)},a,c)},f.queue=function(a,b){return O(function(b,c){a(b[0],c)},b,1)},f.priorityQueue=function(b,c){function d(a,b){return a.priority-b.priority}var a=f.queue(b,c);return a.push=function(b,c,e){!function(a,b,e,c){if(null!=c&&"function"!=typeof c)throw new Error("task callback must be a function");if(a.started=!0,k(b)||(b=[b]),0===b.length)return f.setImmediate(function(){a.drain()});i(b,function(g){var b={data:g,priority:e,callback:"function"==typeof c?c:h};a.tasks.splice(function(d,e,f){for(var a=-1,b=d.length-1,c;a<b;)c=a+(b-a+1>>>1),f(e,d[c])>=0?a=c:b=c-1;return a}(a.tasks,b,d)+1,0,b),a.tasks.length===a.concurrency&&a.saturated(),f.setImmediate(a.process)})}(a,b,c,e)},delete a.unshift,a},f.cargo=function(a,b){return O(a,1,b)},f.log=L("log"),f.dir=L("dir"),f.memoize=function(e,c){var b={},a={},h=Object.prototype.hasOwnProperty,d;return c=c||j,d=g(function(i){var j=i.pop(),d=c.apply(null,i);h.call(b,d)?f.setImmediate(function(){j.apply(null,b[d])}):h.call(a,d)?a[d].push(j):(a[d]=[j],e.apply(null,i.concat([g(function(f){var e,c,g;b[d]=f,e=a[d],delete a[d];for(c=0,g=e.length;c<g;c++)e[c].apply(null,f)})])))}),d.memo=b,d.unmemoized=e,d},f.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},f.times=J(f.map),f.timesSeries=J(f.mapSeries),f.timesLimit=function(a,b,c,d){return f.mapLimit(K(a),b,c,d)},f.seq=function(){var a=arguments;return g(function(b){var d=this,c=b[b.length-1];"function"==typeof c?b.pop():c=h,f.reduce(a,b,function(a,b,c){b.apply(d,a.concat([g(function(a,b){c(a,b)})]))},function(a,b){c.apply(d,[a].concat(b))})})},f.compose=function(){return f.seq.apply(null,Array.prototype.reverse.call(arguments))},f.applyEach=I(f.eachOf),f.applyEachSeries=I(f.eachOfSeries),f.forever=function(a,b){var c=n(b||h),d=F(a);!function b(a){if(a)return c(a);d(b)}()},f.ensureAsync=F,f.constant=g(function(a){var b=[null].concat(a);return function(a){return a.apply(this,b)}}),f.wrapSync=f.asyncify=function(b){return g(function(e){var c,f,g,d=e.pop();try{c=b.apply(this,e)}catch(a){return d(a)}("function"===(g=a(f=c))||"object"===g&&f)&&"function"==typeof c.then?c.then(function(a){d(null,a)}).catch(function(a){d(a.message?a:new Error(a))}):d(null,c)})},"object"===a(b)&&b.exports?b.exports=f:void 0===(d=function(){return f}.apply(e,[]))||(b.exports=d)}()},693:function(j,b,c){"use strict";function d(a){if(!a)return a;if(-1!==document.location.search.indexOf("?p="))return a;var b=document.location.search.substr(1);return b?(-1===a.indexOf("?")?a+="?"+b:a+="&"+b,a):a}function e(){try{return"localStorage"in window&&null!==window.localStorage}catch(a){return!1}}function f(a){"undefined"!=typeof _wpmejsSettings&&window.jQuery(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer(_wpmejsSettings),"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&void 0!==instgrm.Embeds.process&&instgrm.Embeds.process();try{document.dispatchEvent(new CustomEvent("theiaPostSlider.changeSlide",{detail:{currentSlide:a}})),window.jQuery&&window.jQuery(document).trigger("theiaPostSlider.changeSlide",[a])}catch(a){console.error(a)}}function a(a){return window.getComputedStyle(a).getPropertyValue("width")}function g(a){return window.getComputedStyle(a).getPropertyValue("height")}function h(b){a(b)}function i(a){return 1.1*a}c.d(b,{sC:function(){return d},EC:function(){return e},rL:function(){return f},Xt:function(){return a},fA:function(){return g},vI:function(){return h},fj:function(){return i}})},420:function(e,b,a){"use strict";a.d(b,{S:function(){return d}});var c=a(447);function d(){window.tpsObjects=[],window.tpsInstance=void 0,document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll("[data-theia-post-slider-options]").forEach(function(b){if(!b.dataset.theiaPostSliderLoaded){b.dataset.theiaPostSliderLoaded="true";var a={};a.definitionElement=b,a.sliderOptions=b.dataset.theiaPostSliderOptions?JSON.parse(b.dataset.theiaPostSliderOptions):"",a.onChangeSlide=b.dataset.theiaPostSliderOnChangeSlide?JSON.parse(b.dataset.theiaPostSliderOnChangeSlide):"",document.addEventListener("theiaPostSlider.changeSlide",function(b){eval(a.onChangeSlide)}),a.tpsInstance=new c.j(a.sliderOptions),0===window.tpsObjects.length&&(window.tpsInstance=a.tpsInstance),window.tpsObjects.push(a)}})})}},447:function(g,f,c){"use strict";var b,d,e;c.d(f,{j:function(){return e}}),b=c(693),d=c(401);function a(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}e=function e(f){var c=this;if(function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"defaults",{slideContainer:"",nav:"",navText:"%{currentSlide} of %{totalSlides}",helperText:"",defaultSlide:0,transitionEffect:"none",transitionSpeed:400,keyboardShortcuts:!1,scrollAfterRefresh:!0,numberOfSlides:0,slides:[],useSlideSources:!1,themeType:"classic",prevPost:null,nextPost:null,prevText:null,nextText:null,buttonWidth:0,prevText_post:null,nextText_post:null,buttonWidth_post:0,onShowPost:null,postUrl:null,postId:null,refreshAds:!1,refreshAdsEveryNSlides:1,adRefreshingMechanism:"javascript",ajaxUrl:"/",loopSlides:!1,scrollTopOffset:0,isRtl:!1,excludedWords:[]}),a(this,"options",void 0),a(this,"slides",[]),a(this,"slideContainer",void 0),a(this,"navEl",[]),a(this,"currentPostId",void 0),a(this,"isLoading",!1),a(this,"slidesSinceLastAdRefresh",0),a(this,"remoteLoadingQueue",void 0),a(this,"asyncQueue",void 0),a(this,"currentSlide",null),a(this,"currentlyDisplayedSlide",null),a(this,"animations",0),a(this,"semaphore",0),a(this,"incrementSemaphore",function(){c.asyncQueue.pause(),c.semaphore++}),a(this,"decrementSemaphore",function(){c.semaphore--,0===c.semaphore&&c.asyncQueue.resume()}),a(this,"init",function(){c.loadScrollTop(),Object.keys(c.options.slides).forEach(function(b){var a=c.options.slides[b],d;"content"in a&&(c.options.useSlideSources&&(a.source=a.content),d=document.createElement("div"),d.innerHTML=a.content,a.content=d),c.slides[b]=a}),c.options.slides=null,c.slideContainer.querySelectorAll(".theiaPostSlider_preloadedSlide").forEach(function(b,a){a=c.options.defaultSlide+a,c.slides[a]=c.slides[a]||{},c.slides[a].title=document.title,c.slides[a].permalink=document.location.href,c.slides[a].content=b,a!==c.options.defaultSlide&&b.parentElement.removeChild(b)}),c.numberOfSlides=c.options.numberOfSlides,c.navEl.forEach(function(a,b){a.text=a.container.querySelector("._text"),a.prev=a.container.querySelector("._prev"),a.prev.addEventListener("click",function(a){c.onNavClick("prev",a)}),a.next=a.container.querySelector("._next"),a.next.addEventListener("click",function(a){c.onNavClick("next",a)}),a.title=a.container.querySelector("._title"),0===b&&(c.slides[c.options.defaultSlide].shortCodeTitle=a.title.innerHTML)}),c.navigationDropdowns=document.querySelectorAll(".theiaPostSlider_dropdown select"),c.navigationDropdowns.forEach(function(a){a.addEventListener("change",function(a){c.setSlide(parseInt(a.target.value)-1)})}),1===c.numberOfSlides||c.options.refreshAds&&"page"===c.options.adRefreshingMechanism&&c.options.refreshAdsEveryNSlides<=1?c.currentSlide=c.options.defaultSlide:(c.setSlide(c.options.defaultSlide),window.history&&window.history.pushState&&(window.onpopstate=function(a){a.state&&void 0!==a.state.currentPostId&&(void 0!==a.state.currentSlide?c.setSlide(a.state.currentSlide):c.setSlide(c.options.defaultSlide))})),"undefined"!=typeof Hammer&&(c.previousTouch=0,c.minimumTimeBetweenGestures=500,delete Hammer.defaults.cssProps.userSelect,new Hammer(c.slideContainer[0],{inputClass:Hammer.TouchInput}).on("swipeleft",function(){var a=(new Date).getTime();a-c.minimumTimeBetweenGestures>=c.previousTouch&&(c.setNext(),c.previousTouch=a)}).on("swiperight",function(){var a=(new Date).getTime();a-c.minimumTimeBetweenGestures>=c.previousTouch&&(c.setPrev(),c.previousTouch=a)})),c.options.keyboardShortcuts&&document.addEventListener("keydown",function(a){if(window.tpsObjects.length>1)return!0;if(/textarea|select/i.test(a.target.nodeName)||"text"===a.target.type||a.target.isContentEditable)return!0;switch(a.which){case 37:return c.navEl[0].prev.click(),!1;case 39:return c.navEl[0].next.click(),!1}return!0})}),a(this,"loadSlides",function(a,b){c.remoteLoadingQueue.push({name:""},function(h){var f=!0,g,d,e;for(g in a)if(!(a[g]in c.slides)||!("content"in c.slides[a[g]])){f=!1;break}f?b&&b():(c.remoteLoadingQueue.concurrency=0,d=new XMLHttpRequest,d.onreadystatechange=function(){var a,e,f,g;if(4===d.readyState){if(200===d.status){if(a=JSON.parse(d.response),!a)return;if(a.postId===c.currentPostId)for(e in a.slides){e in c.slides||(c.slides[e]={}),"content"in a.slides[e]&&(c.options.useSlideSources&&(a.slides[e].source=a.slides[e].content),f=document.createElement("div"),f.innerHTML=a.slides[e].content,a.slides[e].content=f);for(g in a.slides[e])c.slides[e][g]=a.slides[e][g]}else console.error("Received AJAX results for a different post ID.")}b&&b(),c.remoteLoadingQueue.concurrency=1,c.remoteLoadingQueue.push({})}},d.open("POST",c.options.ajaxUrl,!0),e=new FormData,e.append("action","tps_get_slides"),e.append("postId",c.currentPostId),a.forEach(function(a){e.append("slides[]",a)}),d.send(e))})}),a(this,"setSlide",function(a,r){var q,m,i,f,d,k,n,l,h,j,o,p,g,e;if((!0!==c.isLoading||!0===r)&&c.currentSlide!==a){if(c.needToRefreshPage()&&a in c.slides)return c.saveScrollTop(),void(window.location=(0,b.sC)(c.slides[a].permalink));try{document.dispatchEvent(new CustomEvent("theiaPostSlider.willChangeSlide",{detail:{index:a}}))}catch(a){console.error(a)}if(!c.isSlideLoaded(a))return r?void console.error("The slide could not be loaded via AJAX."):(c.showLoading(),void c.loadSlides([a],function(){c.hideLoading(),c.setSlide(a,!0)}));if(q=c.slides[a].source,q)for(m=0;m<c.options.excludedWords.length;m++)if(i=c.options.excludedWords[m],"string"==typeof i&&0!=(i=i.trim()).length&&-1!==q.indexOf(i))return c.showLoading(),void(window.location=(0,b.sC)(c.slides[a].permalink));if(f=c.currentSlide,c.currentSlide=a,null!=f){for(d=c.slideContainer.offsetTop,k=0;k<c.navEl.length;k++)d=Math.min(d,c.navEl[k].container.offsetTop);for(n=0;n<c.navigationDropdowns.length;n++)d=Math.min(d,c.navigationDropdowns[n].offsetTop);d+=c.options.scrollTopOffset,d=Math.max(0,d),window.pageYOffset>d&&(window.scroll?window.scroll({top:d,behavior:"smooth"}):document.documentElement.scrollTop=d);for(l=0;l<c.navEl.length;l++)c.navEl[l].container.classList.remove("_slide_number_"+f)}c.updateTitleText(),document.title=c.slides[a].title,window.history&&window.history.pushState&&(h=c.slides[c.currentSlide].permalink,j=document.createElement("a"),(j.href=h,(h=(0,b.sC)(window.location.protocol+"//"+window.location.host+j.pathname+j.search)+j.hash)&&null!==f)&&(o={currentSlide:a,currentPostId:c.currentPostId},p=c.slides[c.currentSlide].title,h===window.location?window.history.replaceState(o,p,h):window.history.pushState(o,p,h))),(c.asyncQueue.push({name:""},c.showSlide),c.updateNavigationBars(),!(c.options.refreshAds&&c.slidesSinceLastAdRefresh+1>=c.options.refreshAdsEveryNSlides&&"page"===c.options.adRefreshingMechanism))&&(null==f||0===c.currentSlide&&f===c.numberOfSlides-1?g=1:c.currentSlide===c.numberOfSlides-1&&0===f?g=-1:(g=c.currentSlide-f,g=Math.max(Math.min(g,1),-1)),e=c.currentSlide+g,-1===e&&c.options.loopSlides?e=c.numberOfSlides-1:e===c.numberOfSlides&&c.options.loopSlides&&(e=0),e>=0&&e<c.numberOfSlides&&!c.isSlideLoaded(e)&&c.loadSlides([e]))}}),a(this,"showSlide",function(){var a,g,b,d,e,h,f;if(c.currentlyDisplayedSlide!==c.currentSlide){if(null!=c.currentlyDisplayedSlide&&c.slides[c.currentSlide].permalink)if(a=c.slides[c.currentSlide].permalink.split("/"),a.length>=4){if(a="/"+a.slice(3).join("/"),"undefined"!=typeof gtag){for(g="",b=0;b<window.dataLayer.length;b++)if(window.dataLayer[b].length>=1&&"config"===window.dataLayer[b][0]){g=window.dataLayer[b][1];break}gtag("config",g,{page_path:a})}else"undefined"!=typeof _gaq&&void 0!==_gaq.push?_gaq.push(["_trackPageview",a]):"undefined"!=typeof __gaTracker?(__gaTracker("set","page",a),__gaTracker("send","pageview",a)):"undefined"!=typeof ga?(ga("set","page",a),ga("send","pageview",a)):"undefined"!=typeof pageTracker&&void 0!==pageTracker._trackPageview&&pageTracker._trackPageview(a);"undefined"!=typeof piwikTracker&&void 0!==piwikTracker.trackPageView&&piwikTracker.trackPageView(a),"undefined"!=typeof sc_project&&"undefined"!=typeof sc_security&&((new Image).src="//c.statcounter.com/"+sc_project+"/0/"+sc_security+"/1/"),"undefined"!=typeof _qacct&&((new Image).src="//pixel.quantserve.com/pixel/"+_qacct+".gif")}d=c.currentlyDisplayedSlide,c.currentlyDisplayedSlide=c.currentSlide,c.createSlideContentFromSource(c.slides[c.currentSlide]),c.navigationDropdowns.forEach(function(a){a.value=c.currentSlide+1});for(e=window.tps.transitions[c.options.transitionEffect](c,d,c.currentlyDisplayedSlide),h=0;h<e.length;h++)c.incrementSemaphore();null!==d&&c.asyncQueue.unshift({name:""},function(){c.onRemovedSlide(d)});for(f=0;f<e.length;f++)e[f]()}}),a(this,"createSlideContentFromSource",function(a){if(!("content"in a)&&"source"in a){var b=document.createElement("div");b.innerHTML=a.source,a.content=b,!1===c.options.useSlideSources&&delete a.source}}),a(this,"isSlideLoaded",function(a){return a in c.slides&&(null===c.currentlyDisplayedSlide||!c.options.useSlideSources||"source"in c.slides[a])&&("content"in c.slides[a]||"source"in c.slides[a])}),a(this,"onRemovedSlide",function(b){if(c.options.useSlideSources&&(c.slides[b].content.remove(),delete c.slides[b].content),c.options.refreshAds&&(c.slidesSinceLastAdRefresh++,c.slidesSinceLastAdRefresh>=c.options.refreshAdsEveryNSlides&&(c.slidesSinceLastAdRefresh=0,"javascript"==c.options.adRefreshingMechanism))){var a=null;"undefined"==typeof pubService?"undefined"!=typeof googletag&&"function"==typeof googletag.pubads&&(a=googletag.pubads()):a=pubService,a&&"function"==typeof a.refresh&&a.refresh();try{document.dispatchEvent(new CustomEvent("theiaPostSlider.refreshAds")),window.jQuery&&window.jQuery(document).trigger("theiaPostSlider.refreshAds")}catch(a){console.error(a)}}}),a(this,"updateTitleText",function(){var a=c.slides[c.currentSlide].shortCodeTitle,b;a||(a='<span class="_helper">'+c.options.helperText+"</span>");for(b=0;b<c.navEl.length;b++)c.navEl[b].title.innerHTML=a}),a(this,"updateNavigationBars",function(){for(var d=0,a,b;d<c.navEl.length;d++)a=c.navEl[d],b=void 0,b=1==c.numberOfSlides?"":(b=(b=c.options.navText).replace("%{currentSlide}",c.currentSlide+1)).replace("%{totalSlides}",c.numberOfSlides),a.text.innerHTML=b,a.container.classList.add("_slide_number_"+c.currentSlide),a.container.classList.remove("_first_slide","_last_slide","_middle_slide"),0===c.currentSlide?a.container.classList.add("_first_slide"):c.currentSlide===c.numberOfSlides-1?a.container.classList.add("_last_slide"):a.container.classList.add("_middle_slide"),c.updateNavigationBarButton(a,!1),c.updateNavigationBarButton(a,!0)}),a(this,"updateNavigationBarButton",function(l,a){var h,d,j="",f="",i="",g=a?"next":"prev",b=l[g],e,k;"font"==c.options.themeType?(h=0,f=c.options[g+"FontIcon"],0==a?i=c.options.prevText_post&&0==c.currentSlide?c.options.prevText_post:c.options.prevText:j=c.options.nextText_post&&c.currentSlide==c.numberOfSlides-1?c.options.nextText_post:c.options.nextText):(h=c.options.buttonWidth,0==a&&c.options.prevPost&&0==c.currentSlide||1==a&&c.options.nextPost&&c.currentSlide==c.numberOfSlides-1?(f=c.options[g+"Text_post"],d=a?c.options.nextPost:c.options.prevPost):f=c.options[g+"Text"]),e=null,(0==a&&c.options.loopSlides&&0==c.currentSlide?e=c.numberOfSlides-1:1==a&&c.options.loopSlides&&c.currentSlide==c.numberOfSlides-1?e=0:0==a&&c.options.prevPost&&0==c.currentSlide||1==a&&c.options.nextPost&&c.currentSlide==c.numberOfSlides-1?(b.classList.add("_another_post"),d=a?c.options.nextPost:c.options.prevPost):(b.classList.remove("_another_post"),e=c.currentSlide+(a?1:-1)),null!==e)&&(c.needToRefreshPage()?(k=c.slides[e],k&&(d=k.permalink)):d="#"),b.querySelector("._1").innerHTML=j,b.querySelectorAll("._2").forEach(function(a){a.style.width=h>0?h:"",a.innerHTML=f}),b.querySelector("._3").innerHTML=i,!1===a&&null==c.options.prevPost&&!c.options.loopSlides&&0==c.currentSlide||!0===a&&null==c.options.nextPost&&!c.options.loopSlides&&c.currentSlide==c.numberOfSlides-1?(b.classList.add("_disabled"),d="#"):b.classList.remove("_disabled"),b.href=d}),a(this,"onNavClick",function(d,a){if(void 0!==a.currentTarget.href){var b=a.currentTarget.getAttribute("href");if("#"!==b&&b)return c.showLoading(),void c.saveScrollTop();"prev"===d?c.setPrev():c.setNext(),a.currentTarget.focus(),a&&a.preventDefault()}}),a(this,"saveScrollTop",function(){c.options.scrollAfterRefresh&&(0,b.EC)()&&localStorage.setItem("scrollTop",JSON.stringify({postId:c.currentPostId,scrollTop:window.pageYOffset}))}),a(this,"loadScrollTop",function(){var a,e,d,f;c.options.scrollAfterRefresh&&(0,b.EC)()&&(a=JSON.parse(localStorage.getItem("scrollTop")),a&&a.postId===c.currentPostId&&(e=Math.min(a.scrollTop,c.slideContainer.offsetTop),d=document.documentElement.style,f=d.scrollBehavior,d.scrollBehavior="inherit",window.scrollTo(0,e),d.scrollBehavior=f),localStorage.removeItem("scrollTop"))}),a(this,"setPrev",function(){0===c.currentSlide?c.options.loopSlides?c.setSlide(c.numberOfSlides-1):c.options.prevPost&&c.showPost(c.options.prevPost):c.setSlide(c.currentSlide-1)}),a(this,"setNext",function(){c.currentSlide===c.numberOfSlides-1?c.options.loopSlides?c.setSlide(0):c.options.nextPost&&c.showPost(c.options.nextPost):c.setSlide(c.currentSlide+1)}),a(this,"showPost",function(a){document.location=a}),a(this,"setTransition",function(a){var b={effect:c.options.transitionEffect,speed:c.options.transitionSpeed};a=Object.assign({},b,a),c.options.transitionEffect=a.effect,c.options.transitionSpeed=a.speed}),a(this,"setNavText",function(a){c.options.navText=a,c.updateNavigationBars()}),a(this,"setTitleText",function(b){for(var a=0;a<c.slides.length;a++)c.slides[a].shortCodeTitle="";c.options.helperText=b,c.updateTitleText()}),a(this,"showLoading",function(){var a,b,d;c.isLoading=!0;for(a=0;a<c.navEl.length;a++)b=document.createElement("div"),b.classList.add("_loading"),d=c.navEl[a].container,d.append(b),d.querySelectorAll("._buttons > a").forEach(function(a){return a.classList.add("_disabled")})}),a(this,"hideLoading",function(){var a,b;c.isLoading=!1;for(a=0;a<c.navEl.length;a++)b=c.navEl[a].container.querySelector("._loading"),b.parentNode.removeChild(b);c.updateNavigationBars()}),a(this,"needToRefreshPage",function(){return null!==c.currentSlide&&c.options.refreshAds&&c.slidesSinceLastAdRefresh+1>=c.options.refreshAdsEveryNSlides&&"page"===c.options.adRefreshingMechanism}),this.options=Object.assign({},this.defaults,f),Object.keys(this.options).forEach(function(a){if(!isNaN(c.defaults[a])&&"string"==typeof c.options[a]){var b=parseFloat(b);isNaN(b)||(c.options[a]=b)}}),this.slideContainer=document.querySelector(this.options.slideContainer),0===this.slideContainer.length)return null;document.querySelectorAll(this.options.nav).forEach(function(a){c.navEl.push({container:a})}),this.currentPostId=this.options.postId,this.remoteLoadingQueue=d.queue(function(b,a){a()},1),this.asyncQueue=d.queue(function(b,a){a()},1),this.init()}}},b={};function a(d){if(b[d])return b[d].exports;var e=b[d]={id:d,loaded:!1,exports:{}};return c[d](e,e.exports,a),e.loaded=!0,e.exports}a.n=function(b){var c=b&&b.__esModule?function(){return b.default}:function(){return b};return a.d(c,{a:c}),c},a.d=function(d,c){for(var b in c)a.o(c,b)&&!a.o(d,b)&&Object.defineProperty(d,b,{enumerable:!0,get:c[b]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),a.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},a.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a},function(){"use strict";var c=a(420),b=a(693);window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.fade=function(a,f,g){var e=[],c=null!==f?a.slides[f].content:null,d;return c&&(a.slideContainer.style.height=(0,b.fA)(c),e.push(function(){c.style.width="100%",c.style.position="absolute",c.style.transition="opacity "+a.options.transitionSpeed/1e3+"s ease-in",c.style.opacity=0,setTimeout(function(){c.parentNode.removeChild(c),c.style.position="",c.style.opacity=1,a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))})),d=a.slides[g].content,null==c?a.slideContainer.append(d):(a.slideContainer.append(d),(0,b.rL)(a.currentSlide),e.push(function(){a.slideContainer.style.transition="height "+a.options.transitionSpeed/1e3+"s ease-in",a.slideContainer.style.height=(0,b.fA)(d),setTimeout(function(){d.style.position="",a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))}),e.push(function(){d.style.transition="",d.style.opacity=0,(0,b.vI)(d),d.style.transition="opacity "+a.options.transitionSpeed/1e3+"s ease-in",d.style.opacity=1,setTimeout(function(){d.style.position="",a.slideContainer.style.height="",a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))})),e},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.none=function(a,d,e){var c=null!==d?a.slides[d].content:null,f;return c&&c.parentNode.removeChild(c),f=a.slides[e].content,a.slideContainer.append(f),c&&(0,b.rL)(a.currentSlide),[]},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.simple=function(a,e,g){var f=[],c=null!==e?a.slides[e].content:null,d;return c&&(a.slideContainer.style.height=(0,b.fA)(c),c.parentNode.removeChild(c)),d=a.slides[g].content,null==c?a.slideContainer.append(d):(a.slideContainer.append(d),(0,b.rL)(a.currentSlide),f.push(function(){a.slideContainer.style.transition="height "+a.options.transitionSpeed/1e3+"s ease-in",a.slideContainer.style.height=(0,b.fA)(d),setTimeout(function(){a.slideContainer.style.position="",a.slideContainer.style.width="",a.slideContainer.style.height="",a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))})),f},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.slide=function(a,h,j){var e=a.options.isRtl?"right":"left",f=(0,b.Xt)(a.slideContainer),i=j-h>0?1:-1,g=[],d=null!==h?a.slides[h].content:null,c;return d&&(a.slideContainer.style.height=(0,b.fA)(d),g.push(function(){d.style.width=f,d.style.position="absolute",d.style[e]=0,c.style.transition="",(0,b.vI)(c),d.style.transition=e+" "+a.options.transitionSpeed/1e3+"s ease-in",d.style[e]=-i*parseFloat(f)+"px",setTimeout(function(){d.parentNode.removeChild(d),d.style.position="",d.style[e]="",a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))})),c=a.slides[j].content,null==d?a.slideContainer.append(c):(c.style.width=f,c.style.visibility="hidden",a.slideContainer.append(c),(0,b.rL)(a.currentSlide),g.push(function(){a.slideContainer.style.transition="height "+a.options.transitionSpeed/1e3+"s ease-in",a.slideContainer.style.height=(0,b.fA)(c),setTimeout(function(){a.slideContainer.style.position="",a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))}),g.push(function(){c.style.position="absolute",c.style.visibility="visible",c.style[e]=i*parseFloat(f)+"px",c.style.transition="",(0,b.vI)(c),c.style.transition=e+" "+a.options.transitionSpeed/1e3+"s ease-in",c.style[e]=0,setTimeout(function(){c.style.position="",c.style.width="",a.slideContainer.style.height="",a.decrementSemaphore()},(0,b.fj)(a.options.transitionSpeed))})),g},(0,c.S)()}()})()