1(function(){var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJSMin=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),__copyProps=(t,e,n,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(var s,o=__getOwnPropNames(e),r=0,l=o.length;r<l;r++)s=o[r],__hasOwnProp.call(t,s)||s===n||__defProp(t,s,{get:(t=>e[t]).bind(null,s),enumerable:!(i=__getOwnPropDesc(e,s))||i.enumerable});return t},__toESM=(t,e,n)=>(n=null!=t?__create(__getProtoOf(t)):{},__copyProps(!e&&t&&t.__esModule&&__hasOwnProp.call(t,"default")?n:__defProp(n,"default",{value:t,enumerable:!0}),t));function addQueryString(t){if(!t)return t;if(-1!==document.location.search.indexOf("?p="))return t;const e=document.location.search.substr(1);return e?(-1===t.indexOf("?")?t+="?"+e:t+="&"+e,t):t}function isHtml5StorageAvailable(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}function onNewSlide(t){"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:t}})),window.jQuery&&window.jQuery(document).trigger("theiaPostSlider.changeSlide",[t])}catch(e){console.error(e)}}function getInnerWidth(t){return window.getComputedStyle(t).getPropertyValue("width")}function getInnerHeight(t){return window.getComputedStyle(t).getPropertyValue("height")}function forceRender(t){getInnerWidth(t)}function getTimeout(t){return 1.1*t}var SWAP_STYLES=["position","top","left","width","zIndex","visibility","transition","transform","opacity"];function resetSwapStyles(t){SWAP_STYLES.forEach(e=>{t.style[e]=""})}function swapSlides(t,e,n,i){const s=null!==e?t.slides[e].content:null,o=t.slides[n].content,r=t.slideContainer;if(null==s)return r.append(o),[];const l=getInnerWidth(r),a=getInnerHeight(s),c=t.options.transitionSpeed/1e3,u=getTimeout(t.options.transitionSpeed),d="transform "+c+"s ease-in, opacity "+c+"s ease-in",p=n-e>0?1:-1,h={width:parseFloat(l),height:parseFloat(a),direction:p,x:t.options.isRtl?-p:p};r.style.height=a,o.style.width=l,o.style.visibility="hidden",r.append(o),onNewSlide(t.currentSlide);const f=[];return f.push(function(){s.style.width=l,s.style.position="absolute",s.style.top=0,s.style.left=0,s.style.transition="",forceRender(s),s.style.transition=d,i.leave(s,h),setTimeout(()=>{s.parentNode.removeChild(s),resetSwapStyles(s),t.decrementSemaphore()},u)}),f.push(function(){r.style.transition="height "+c+"s ease-in",r.style.height=getInnerHeight(o),setTimeout(()=>{r.style.transition="",t.decrementSemaphore()},u)}),f.push(function(){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.zIndex=1,o.style.transition="",i.enter(o,h),o.style.visibility="visible",forceRender(o),o.style.transition=d,o.style.transform="",o.style.opacity="",setTimeout(()=>{resetSwapStyles(o),r.style.height="",t.decrementSemaphore()},u)}),f}var require_async=__commonJSMin((t,e)=>{!function(){var t,n={};function i(){}function s(t){return t}function o(t){return!!t}function r(t){return!t}var l="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this;function a(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function c(t){return function(){null!==t&&(t.apply(this,arguments),t=null)}}null!=l&&(t=l.async),n.noConflict=function(){return l.async=t,n};var u=Object.prototype.toString,d=Array.isArray||function(t){return"[object Array]"===u.call(t)};function p(t){return d(t)||"number"==typeof t.length&&t.length>=0&&t.length%1==0}function h(t,e){for(var n=-1,i=t.length;++n<i;)e(t[n],n,t)}function f(t,e){for(var n=-1,i=t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}function y(t){return f(Array(t),function(t,e){return e})}function m(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var S=Object.keys||function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e};function g(t){var e,n,i=-1;return p(t)?(e=t.length,function(){return++i<e?i:null}):(n=S(t),e=n.length,function(){return++i<e?n[i]:null})}function w(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),i=Array(n),s=0;s<n;s++)i[s]=arguments[s+e];switch(e){case 0:return t.call(this,i);case 1:return t.call(this,arguments[0],i)}}}function v(t){return function(e,n,i){return t(e,i)}}var _="function"==typeof setImmediate&&setImmediate,b=_?function(t){_(t)}:function(t){setTimeout(t,0)};function P(t){return function(e,n,s){s=c(s||i);var o=g(e=e||[]);if(t<=0)return s(null);var r=!1,l=0,u=!1;!function i(){if(r&&l<=0)return s(null);for(;l<t&&!u;){var c=o();if(null===c)return r=!0,void(l<=0&&s(null));l+=1,n(e[c],c,a(function(t){l-=1,t?(s(t),u=!0):i()}))}}()}}function T(t){return function(e,i,s){return t(n.eachOf,e,i,s)}}function O(t){return function(e,n,i,s){return t(P(n),e,i,s)}}function x(t){return function(e,i,s){return t(n.eachOfSeries,e,i,s)}}function E(t,e,n,s){s=c(s||i);var o=p(e=e||[])?[]:{};
vendor: 3,027 bytes, line 1
1t(e,function(t,e,i){n(t,function(t,n){o[e]=n,i(t)})},function(t){s(t,o)})}function k(t,e,n,i){var s=[];t(e,function(t,e,i){n(t,function(n){n&&s.push({index:e,value:t}),i()})},function(){i(f(s.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})}function L(t,e,n,i){k(t,e,function(t,e){n(t,function(t){e(!t)})},i)}function C(t,e,n){return function(i,s,o,r){function l(){r&&r(n(!1,void 0))}function a(t,i,s){if(!r)return s();o(t,function(i){r&&e(i)&&(r(n(!0,t)),r=o=!1),s()})}arguments.length>3?t(i,s,a,l):(r=o,o=s,t(i,a,l))}}function I(t,e){return e}function j(t,e,n){n=n||i;var s=p(e)?[]:{};t(e,function(t,e,n){t(w(function(t,i){i.length<=1&&(i=i[0]),s[e]=i,n(t)}))},function(t){n(t,s)})}function A(t,e,n,i){var s=[];t(e,function(t,e,i){n(t,function(t,e){s=s.concat(e||[]),i(t)})},function(t){i(t,s)})}function N(t,e,s){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");function o(t,e,s,o){if(null!=o&&"function"!=typeof o)throw new Error("task callback must be a function");if(t.started=!0,d(e)||(e=[e]),0===e.length&&t.idle())return n.setImmediate(function(){t.drain()});h(e,function(e){var n={data:e,callback:o||i};s?t.tasks.unshift(n):t.tasks.push(n),t.tasks.length===t.concurrency&&t.saturated()}),n.setImmediate(t.process)}function r(t,e){return function(){l-=1;var n=!1,i=arguments;h(e,function(t){h(c,function(e,i){e!==t||n||(c.splice(i,1),n=!0)}),t.callback.apply(t,i)}),t.tasks.length+l===0&&t.drain(),t.process()}}var l=0,c=[],u={tasks:[],concurrency:e,payload:s,saturated:i,empty:i,drain:i,started:!1,paused:!1,push:function(t,e){o(u,t,!1,e)},kill:function(){u.drain=i,u.tasks=[]},unshift:function(t,e){o(u,t,!0,e)},process:function(){for(;!u.paused&&l<u.concurrency&&u.tasks.length;){var e=u.payload?u.tasks.splice(0,u.payload):u.tasks.splice(0,u.tasks.length),n=f(e,function(t){return t.data});0===u.tasks.length&&u.empty(),l+=1,c.push(e[0]),t(n,a(r(u,e)))}},length:function(){return u.tasks.length},running:function(){return l},workersList:function(){return c},idle:function(){return u.tasks.length+l===0},pause:function(){u.paused=!0},resume:function(){if(!1!==u.paused){u.paused=!1;for(var t=Math.min(u.concurrency,u.tasks.length),e=1;e<=t;e++)n.setImmediate(u.process)}}};return u}function R(t){return w(function(e,n){e.apply(null,n.concat([w(function(e,n){"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&h(n,function(e){console[t](e)}))})]))})}function q(t){return function(e,n,i){t(y(e),n,i)}}function M(t){return w(function(e,n){var i=w(function(n){var i=this;return t(e,function(t,e,s){t.apply(i,n.concat([s]))},n.pop())});return n.length?i.apply(this,n):i})}function H(t){return w(function(e){var i=e.pop();e.push(function(){var t=arguments;s?n.setImmediate(function(){i.apply(null,t)}):i.apply(null,t)});var s=!0;t.apply(this,e),s=!1})}"object"==typeof process&&"function"==typeof process.nextTick?n.nextTick=process.nextTick:n.nextTick=b,n.setImmediate=_?b:n.nextTick,n.forEach=n.each=function(t,e,i){return n.eachOf(t,v(e),i)}
vendor: 3,041 bytes, line 1
1,n.forEachSeries=n.eachSeries=function(t,e,i){return n.eachOfSeries(t,v(e),i)},n.forEachLimit=n.eachLimit=function(t,e,n,i){return P(e)(t,v(n),i)},n.forEachOf=n.eachOf=function(t,e,n){n=c(n||i);for(var s,o=g(t=t||[]),r=0;null!=(s=o());)r+=1,e(t[s],s,a(l));function l(t){r--,t?n(t):null===s&&r<=0&&n(null)}0===r&&n(null)},n.forEachOfSeries=n.eachOfSeries=function(t,e,s){s=c(s||i);var o=g(t=t||[]),r=o();!function i(){var l=!0;if(null===r)return s(null);e(t[r],r,a(function(t){if(t)s(t);else{if(null===(r=o()))return s(null);l?n.setImmediate(i):i()}})),l=!1}()},n.forEachOfLimit=n.eachOfLimit=function(t,e,n,i){P(e)(t,n,i)},n.map=T(E),n.mapSeries=x(E),n.mapLimit=O(E),n.inject=n.foldl=n.reduce=function(t,e,i,s){n.eachOfSeries(t,function(t,n,s){i(e,t,function(t,n){e=n,s(t)})},function(t){s(t,e)})},n.foldr=n.reduceRight=function(t,e,i,o){var r=f(t,s).reverse();n.reduce(r,e,i,o)},n.transform=function(t,e,i,s){3===arguments.length&&(s=i,i=e,e=d(t)?[]:{}),n.eachOf(t,function(t,n,s){i(e,t,n,s)},function(t){s(t,e)})},n.select=n.filter=T(k),n.selectLimit=n.filterLimit=O(k),n.selectSeries=n.filterSeries=x(k),n.reject=T(L),n.rejectLimit=O(L),n.rejectSeries=x(L),n.any=n.some=C(n.eachOf,o,s),n.someLimit=C(n.eachOfLimit,o,s),n.all=n.every=C(n.eachOf,r,r),n.everyLimit=C(n.eachOfLimit,r,r),n.detect=C(n.eachOf,s,I),n.detectSeries=C(n.eachOfSeries,s,I),n.detectLimit=C(n.eachOfLimit,s,I),n.sortBy=function(t,e,i){function s(t,e){var n=t.criteria,i=e.criteria;return n<i?-1:n>i?1:0}n.map(t,function(t,n){e(t,function(e,i){e?n(e):n(null,{value:t,criteria:i})})},function(t,e){if(t)return i(t);i(null,f(e.sort(s),function(t){return t.value}))})},n.auto=function(t,e,s){"function"==typeof arguments[1]&&(s=e,e=null),s=c(s||i);var o=S(t),r=o.length;if(!r)return s(null);e||(e=r);var l={},a=0,u=!1,p=[];function f(t){p.unshift(t)}function y(){r--,h(p.slice(0),function(t){t()})}f(function(){r||s(null,l)}),h(o,function(i){if(!u){for(var o,r=d(t[i])?t[i]:[t[i]],c=w(function(t,e){if(a--,e.length<=1&&(e=e[0]),t){var o={};c=function(t,e){o[e]=t},h(S(r=l),function(t){c(r[t],t)}),o[i]=e,u=!0,s(t,o)}else l[i]=e,n.setImmediate(y);var r,c}),g=r.slice(0,r.length-1),v=g.length;v--;){if(!(o=t[g[v]]))throw new Error("Has nonexistent dependency in "+g.join(", "));if(d(o)&&m(o,i)>=0)throw new Error("Has cyclic dependencies")}_()?(a++,r[r.length-1](c,l)):f(function t(){_()&&(a++,(e=m(p,t))>=0&&p.splice(e,1),r[r.length-1](c,l));var e})}function _(){return a<e&&(t=function(t,e){return t&&l.hasOwnProperty(e)},n=!0,h(g,function(e,i,s){n=t(n,e,i,s)}),n)&&!l.hasOwnProperty(i);var t,n}})},n.retry=function(t,e,i){var s=[],o={times:5,interval:0};var r=arguments.length;if(r<1||r>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function l(t,e){function i(t,n){return function(i){t(function(t,e){i(!t||n,{err:t,result:e})},e)}}function r(t){return function(e){setTimeout(function(){e(null)},t)}}for(;o.times;){var l=!(o.times-=1);s.push(i(o.task,l)),!l&&o.interval>0&&s.push(r(o.interval))}
vendor: 3,435 bytes, line 1
1n.series(s,function(e,n){n=n[n.length-1],(t||o.callback)(n.err,n.result)})}return r<=2&&"function"==typeof t&&(i=e,e=t),"function"!=typeof t&&function(t,e){if("number"==typeof e)t.times=parseInt(e,10)||5;else{if("object"!=typeof e)throw new Error("Unsupported argument type for 'times': "+typeof e);t.times=parseInt(e.times,10)||5,t.interval=parseInt(e.interval,10)||0}}(o,t),o.callback=i,o.task=e,o.callback?l():l},n.waterfall=function(t,e){if(e=c(e||i),!d(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();!function t(n){return w(function(i,s){if(i)e.apply(null,[i].concat(s));else{var o=n.next();o?s.push(t(o)):s.push(e),H(n).apply(null,s)}})}(n.iterator(t))()},n.parallel=function(t,e){j(n.eachOf,t,e)},n.parallelLimit=function(t,e,n){j(P(e),t,n)},n.series=function(t,e){j(n.eachOfSeries,t,e)},n.iterator=function(t){return function e(n){function i(){return t.length&&t[n].apply(null,arguments),i.next()}return i.next=function(){return n<t.length-1?e(n+1):null},i}(0)},n.apply=w(function(t,e){return w(function(n){return t.apply(null,e.concat(n))})}),n.concat=T(A),n.concatSeries=x(A),n.whilst=function(t,e,n){if(n=n||i,t()){var s=w(function(i,o){i?n(i):t.apply(this,o)?e(s):n.apply(null,[null].concat(o))});e(s)}else n(null)},n.doWhilst=function(t,e,i){var s=0;return n.whilst(function(){return++s<=1||e.apply(this,arguments)},t,i)},n.until=function(t,e,i){return n.whilst(function(){return!t.apply(this,arguments)},e,i)},n.doUntil=function(t,e,i){return n.doWhilst(t,function(){return!e.apply(this,arguments)},i)},n.during=function(t,e,n){n=n||i;var s=w(function(e,i){e?n(e):(i.push(o),t.apply(this,i))}),o=function(t,i){t?n(t):i?e(s):n(null)};t(o)},n.doDuring=function(t,e,i){var s=0;n.during(function(t){s++<1?t(null,!0):e.apply(this,arguments)},t,i)},n.queue=function(t,e){return N(function(e,n){t(e[0],n)},e,1)},n.priorityQueue=function(t,e){function s(t,e){return t.priority-e.priority}var o=n.queue(t,e);return o.push=function(t,e,r){!function(t,e,o,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(t.started=!0,d(e)||(e=[e]),0===e.length)return n.setImmediate(function(){t.drain()});h(e,function(e){var l={data:e,priority:o,callback:"function"==typeof r?r:i};t.tasks.splice(function(t,e,n){for(var i=-1,s=t.length-1;i<s;){var o=i+(s-i+1>>>1);n(e,t[o])>=0?i=o:s=o-1}return i}(t.tasks,l,s)+1,0,l),t.tasks.length===t.concurrency&&t.saturated(),n.setImmediate(t.process)})}(o,t,e,r)},delete o.unshift,o},n.cargo=function(t,e){return N(t,1,e)},n.log=R("log"),n.dir=R("dir"),n.memoize=function(t,e){var i={},o={},r=Object.prototype.hasOwnProperty;e=e||s;var l=w(function(s){var l=s.pop(),a=e.apply(null,s);r.call(i,a)?n.setImmediate(function(){l.apply(null,i[a])}):r.call(o,a)?o[a].push(l):(o[a]=[l],t.apply(null,s.concat([w(function(t){i[a]=t;var e=o[a];delete o[a];for(var n=0,s=e.length;n<s;n++)e[n].apply(null,t)})])))});return l.memo=i,l.unmemoized=t,l},n.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},n.times=q(n.map),n.timesSeries=q(n.mapSeries),n.timesLimit=function(t,e,i,s){return n.mapLimit(y(t),e,i,s)},n.seq=function(){var t=arguments;return w(function(e){var s=this,o=e[e.length-1];"function"==typeof o?e.pop():o=i,n.reduce(t,e,function(t,e,n){e.apply(s,t.concat([w(function(t,e){n(t,e)})]))},function(t,e){o.apply(s,[t].concat(e))})})},n.compose=function(){return n.seq.a
1pply(null,Array.prototype.reverse.call(arguments))},n.applyEach=M(n.eachOf),n.applyEachSeries=M(n.eachOfSeries),n.forever=function(t,e){var n=a(e||i),s=H(t);!function t(e){if(e)return n(e);s(t)}()},n.ensureAsync=H,n.constant=w(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),n.wrapSync=n.asyncify=function(t){return w(function(e){var n,i,s,o=e.pop();try{n=t.apply(this,e)}catch(r){return o(r)}("function"===(s=typeof(i=n))||"object"===s&&i)&&"function"==typeof n.then?n.then(function(t){o(null,t)}).catch(function(t){o(t.message?t:new Error(t))}):o(null,n)})},"object"==typeof e&&e.exports?e.exports=n:"function"==typeof define&&define.amd?define([],function(){return n}):l.async=n}()}),import_async=__toESM(require_async());function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function toPropertyKey(t){var e=toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _defineProperty(t,e,n){return(e=toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TheiaPostSlider=class{constructor(t){if(_defineProperty(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:[]}),_defineProperty(this,"options",void 0),_defineProperty(this,"slides",[]),_defineProperty(this,"slideContainer",void 0),_defineProperty(this,"navEl",[]),_defineProperty(this,"currentPostId",void 0),_defineProperty(this,"isLoading",!1),_defineProperty(this,"slidesSinceLastAdRefresh",0),_defineProperty(this,"remoteLoadingQueue",void 0),_defineProperty(this,"asyncQueue",void 0),_defineProperty(this,"currentSlide",null),_defineProperty(this,"currentlyDisplayedSlide",null),_defineProperty(this,"animations",0),_defineProperty(this,"semaphore",0),_defineProperty(this,"incrementSemaphore",()=>{this.asyncQueue.pause(),this.semaphore++}),_defineProperty(this,"decrementSemaphore",()=>{this.semaphore--,0===this.semaphore&&this.asyncQueue.resume()}),_defineProperty(this,"init",()=>{this.loadScrollTop(),Object.keys(this.options.slides).forEach(t=>{const e=this.options.slides[t];if("content"in e){this.options.useSlideSources&&(e.source=e.content);const t=document.createElement("div");t.innerHTML=e.content,e.content=t}this.slides[t]=e}),this.options.slides=null,this.slideContainer.querySelectorAll(".theiaPostSlider_preloadedSlide").forEach((t,e)=>{e=this.options.defaultSlide+e,this.slides[e]=this.slides[e]||{},this.slides[e].title=document.title,this.slides[e].permalink=document.location.href,this.slides[e].content=t,e!==this.options.defaultSlide&&t.parentElement.removeChild(t)}),this.numberOfSlides=this.options.numberOfSlides,this.navEl.forEach((t,e)=>{t.text=t.container.querySelector("._text"),t.prev=t.container.querySelector("._prev"),t.prev.addEventListener("click",t=>{this.onNavClick("prev",t)}),t.next=t.container.querySelector("._next"),t.next.addEventListener("click",t=>{this.onNavClick("next",t)}),t.title=t.container.querySelector("._title"),0===e&&(this.slides[this.options.defaultSlide].shortCodeTitle=t.title.innerHTML)}),this.navigationDropdowns=document.querySelectorAll(".theiaPostSlider_dropdown select"),this.navigationDropdowns.forEach(t=>{t.addEventListener("change",t=>{this.setSlide(parseInt(t.target.value)-1)})}),1===this.numberOfSlides||this.options.refreshAds&&"page"===this.options.adRefreshingMechanism&&this.options.refreshAdsEveryNSlides<=1?this.currentSlide=this.options.defaultSlide:(this.setSlide(this.options.defaultSlide),window.history&&window.history.pushState&&(window.onpopstate=t=>{t.state&&void 0!==t.state.currentPostId&&(void 0!==t.state.currentSlide?this.setSlide(t.state.currentSlide):this.setSlide(this.options.defaultSlide))})),"undefined"!=typeof ZingTouch&&(this.previousTouch=0,this.minimumTimeBetweenGestures=500,new ZingTouch.Region(document.body,!1,!1).bind(this.slideContainer,"swipe",t=>{const e=(new Date).getTime();if(e-this.minimumTimeBetweenGestures<this.previousTouch)return;if("touchend"!==t.detail.events[0].originalEvent.type)return;const n=parseInt(t.detail.data[0].currentDirection);180===n?(this.setNext(),this.previousTouch=e):360===n&&(this.setPrev(
1),this.previousTouch=e)},!1)),this.options.keyboardShortcuts&&document.addEventListener("keydown",t=>{if(window.tpsObjects.length>1)return!0;if(/textarea|select/i.test(t.target.nodeName)||"text"===t.target.type||t.target.isContentEditable)return!0;switch(t.which){case 37:return this.navEl[0].prev.click(),!1;case 39:return this.navEl[0].next.click(),!1}return!0})}),_defineProperty(this,"loadSlides",(t,e)=>{this.remoteLoadingQueue.push({name:""},n=>{let i=!0;for(let e in t)if(!(t[e]in this.slides)||!("content"in this.slides[t[e]])){i=!1;break}if(i)return void(e&&e());this.remoteLoadingQueue.concurrency=0;const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState){if(200===s.status){const t=JSON.parse(s.response);if(!t)return;if(t.postId===this.currentPostId)for(const e in t.slides){if(e in this.slides||(this.slides[e]={}),"content"in t.slides[e]){this.options.useSlideSources&&(t.slides[e].source=t.slides[e].content);const n=document.createElement("div");n.innerHTML=t.slides[e].content,t.slides[e].content=n}for(const n in t.slides[e])this.slides[e][n]=t.slides[e][n]}else console.error("Received AJAX results for a different post ID.")}e&&e(),this.remoteLoadingQueue.concurrency=1,this.remoteLoadingQueue.push({})}},s.open("POST",this.options.ajaxUrl,!0);const o=new FormData;o.append("action","tps_get_slides"),o.append("postId",this.currentPostId),t.forEach(t=>{o.append("slides[]",t)}),s.send(o)})}),_defineProperty(this,"setSlide",(t,e)=>{if(!0===this.isLoading&&!0!==e||this.currentSlide===t)return;if(this.needToRefreshPage()&&t in this.slides)return this.saveScrollTop(),void(window.location=addQueryString(this.slides[t].permalink));try{document.dispatchEvent(new CustomEvent("theiaPostSlider.willChangeSlide",{detail:{index:t}}))}catch(s){console.error(s)}if(!this.isSlideLoaded(t))return e?void console.error("The slide could not be loaded via AJAX."):(this.showLoading(),void this.loadSlides([t],()=>{this.hideLoading(),this.setSlide(t,!0)}));const n=this.slides[t].source;if(n)for(let o=0;o<this.options.excludedWords.length;o++){let e=this.options.excludedWords[o];if("string"==typeof e&&(e=e.trim(),0!=e.length&&-1!==n.indexOf(e)))return this.showLoading(),void(window.location=addQueryString(this.slides[t].permalink))}let i=this.currentSlide;if(this.currentSlide=t,null!=i){let t=this.slideContainer.offsetTop;for(let e=0;e<this.navEl.length;e++)t=Math.min(t,this.navEl[e].container.offsetTop);for(let e=0;e<this.navigationDropdowns.length;e++)t=Math.min(t,this.navigationDropdowns[e].offsetTop);t+=this.options.scrollTopOffset,t=Math.max(0,t),window.pageYOffset>t&&(window.scroll?window.scroll({top:t,behavior:"smooth"}):document.documentElement.scrollTop=t);for(let e=0;e<this.navEl.length;e++)this.navEl[e].container.classList.remove("_slide_number_"+i)}if(this.updateTitleText(),document.title=this.slides[t].title,window.history&&window.history.pushState){let e=this.slides[this.currentSlide].permalink;const n=document.createElement("a");if(n.href=e,e=addQueryString(window.location.protocol+"//"+window.location.host+n.pathname+n.search)+n.hash,e&&null!==i){const n={currentSlide:t,currentPostId:this.currentPostId},i=this.slides[this.currentSlide].title;e===window.location?window.history.replaceState(n,i,e):window.history.pushState(n,i,e)}}if(this.asyncQueue.push({name:""},this.showSlide),this.updateNavigationBars(),!(this.options.refreshAds&&this.slidesSinceLastAdRefresh+1>=this.options.refreshAdsEveryNSlides&&"page"===this.options.adRefreshingMechanism)){let t;null==i||0===this.currentSlide&&i===this.numberOfSlides-1?t=1:this.currentSlide===this.numberOfSlides-1&&0===i?t=-1:(t=this.currentSlide-i,t=Math.max(Math.min(t,1),-1));let e=this.currentSlide+t;-1===e&&this.options.loopSlides?e=this.numberOfSlides-1:e===this.numberOfSlides&&this.options.loopSlides&&(e=0),e>=0&&e<this.numberOfSlides&&!this.isSlideLoaded(e)&&this.loadSlides([e])}}),_defineProperty(this,"showSlide",()=>{if(this.currentlyDisplayedSlide===this.currentSlide)return;if(null!=this.currentlyDisplayedSlide&&this.slides[this.currentSlide].permalink){let t=this.slides[this.currentSlide].permalink.split("/");if(t.length>=4){if(t="/"+t.slice(3).join("/"),"undefined"!=typeof gtag){let e="";for(let t=0;t<window.dataLayer.length;t++)if(window.dataLayer[t].length>=1&&"config"===window.dataLayer[t][0]){e=window.dataLayer[t][1];break}gtag("config",e,{page_path:t})}else"undefined"!=typeof _gaq&&void 0!==_gaq.push?_gaq.push(["_trackPageview",t]):"undefined"!=typeof __gaTracker?(__gaTracker("set","page",t),__gaTracker("send","pageview",t)):"undefined"!=typeof ga?(ga("set","page",t),ga("send","pageview",t)):"undefined"!=typeof pageTracker&&void 0!==pageTracker._trackPageview&&pageTracker._trackPageview(t);if("undefined"!=typeof piwikTracker&&void 0!==piwikTracker.trackPageView&&piwikTracker.trackPageView(t),"undefined"!=typeof sc_project&&"undefined"!=typeof sc_security){(new Image).src="//c.statcounter.com/"+sc_project+"/0/"+sc_security+"/1/"}
1if("undefined"!=typeof _qacct){(new Image).src="//pixel.quantserve.com/pixel/"+_qacct+".gif"}}}const t=this.currentlyDisplayedSlide;this.currentlyDisplayedSlide=this.currentSlide,this.createSlideContentFromSource(this.slides[this.currentSlide]),this.navigationDropdowns.forEach(t=>{t.value=this.currentSlide+1});const e=window.tps.transitions[this.options.transitionEffect](this,t,this.currentlyDisplayedSlide);for(let n=0;n<e.length;n++)this.incrementSemaphore();null!==t&&this.asyncQueue.unshift({name:""},()=>{this.onRemovedSlide(t)});for(let n=0;n<e.length;n++)e[n]()}),_defineProperty(this,"createSlideContentFromSource",t=>{if(!("content"in t)&&"source"in t){const e=document.createElement("div");e.innerHTML=t.source,t.content=e,!1===this.options.useSlideSources&&delete t.source}}),_defineProperty(this,"isSlideLoaded",t=>t in this.slides&&((null===this.currentlyDisplayedSlide||!this.options.useSlideSources||"source"in this.slides[t])&&("content"in this.slides[t]||"source"in this.slides[t]))),_defineProperty(this,"onRemovedSlide",t=>{if(this.options.useSlideSources&&(this.slides[t].content.remove(),delete this.slides[t].content),this.options.refreshAds&&(this.slidesSinceLastAdRefresh++,this.slidesSinceLastAdRefresh>=this.options.refreshAdsEveryNSlides&&(this.slidesSinceLastAdRefresh=0,"javascript"==this.options.adRefreshingMechanism))){let t=null;"undefined"==typeof pubService?"undefined"!=typeof googletag&&"function"==typeof googletag.pubads&&(t=googletag.pubads()):t=pubService,t&&"function"==typeof t.refresh&&t.refresh();try{document.dispatchEvent(new CustomEvent("theiaPostSlider.refreshAds")),window.jQuery&&window.jQuery(document).trigger("theiaPostSlider.refreshAds")}catch(e){console.error(e)}}}),_defineProperty(this,"updateTitleText",()=>{let t=this.slides[this.currentSlide].shortCodeTitle;t||(t='<span class="_helper">'+this.options.helperText+"</span>");for(let e=0;e<this.navEl.length;e++)this.navEl[e].title.innerHTML=t}),_defineProperty(this,"updateNavigationBars",()=>{for(let t=0;t<this.navEl.length;t++){let e,n=this.navEl[t];1==this.numberOfSlides?e="":(e=this.options.navText,e=e.replace("%{currentSlide}",this.currentSlide+1),e=e.replace("%{totalSlides}",this.numberOfSlides)),n.text.innerHTML=e,n.container.classList.add("_slide_number_"+this.currentSlide),n.container.classList.remove("_first_slide","_last_slide","_middle_slide"),0===this.currentSlide?n.container.classList.add("_first_slide"):this.currentSlide===this.numberOfSlides-1?n.container.classList.add("_last_slide"):n.container.classList.add("_middle_slide"),this.updateNavigationBarButton(n,!1),this.updateNavigationBarButton(n,!0)}}),_defineProperty(this,"updateNavigationBarButton",(t,e)=>{let n,i,s="",o="",r="",l=e?"next":"prev",a=t[l];"font"==this.options.themeType?(n=0,o=this.options[l+"FontIcon"],0==e?r=this.options.prevText_post&&0==this.currentSlide?this.options.prevText_post:this.options.prevText:s=this.options.nextText_post&&this.currentSlide==this.numberOfSlides-1?this.options.nextText_post:this.options.nextText):(n=this.options.buttonWidth,0==e&&this.options.prevPost&&0==this.currentSlide||1==e&&this.options.nextPost&&this.currentSlide==this.numberOfSlides-1?(o=this.options[l+"Text_post"],i=e?this.options.nextPost:this.options.prevPost):o=this.options[l+"Text"]);{let t=null;if(0==e&&this.options.loopSlides&&0==this.currentSlide?t=this.numberOfSlides-1:1==e&&this.options.loopSlides&&this.currentSlide==this.numberOfSlides-1?t=0:0==e&&this.options.prevPost&&0==this.currentSlide||1==e&&this.options.nextPost&&this.currentSlide==this.numberOfSlides-1?(a.classList.add("_another_post"),i=e?this.options.nextPost:this.options.prevPost):(a.classList.remove("_another_post"),t=this.currentSlide+(e?1:-1)),null!==t)if(this.needToRefreshPage()){let e=this.slides[t];e&&(i=e.permalink)}else i="#"}a.querySelector("._1").innerHTML=s,a.querySelectorAll("._2").forEach(t=>{t.style.width=n>0?n:"",t.innerHTML=o}),a.querySelector("._3").innerHTML=r,!1===e&&null==this.options.prevPost&&!this.options.loopSlides&&0==this.currentSlide||!0===e&&null==this.options.nextPost&&!this.options.loopSlides&&this.currentSlide==this.numberOfSlides-1?(a.classList.add("_disabled"),i="#"):a.classList.remove("_disabled"),a.href=i}),_defineProperty(this,"onNavClick",(t,e)=>{if(void 0===e.currentTarget.href)return;const n=e.currentTarget.getAttribute("href");if("#"!==n&&n)return this.showLoading(),void this.saveScrollTop();
1"prev"===t?this.setPrev():this.setNext(),e.currentTarget.focus(),e&&e.preventDefault()}),_defineProperty(this,"saveScrollTop",()=>{this.options.scrollAfterRefresh&&isHtml5StorageAvailable()&&localStorage.setItem("scrollTop",JSON.stringify({postId:this.currentPostId,scrollTop:window.pageYOffset}))}),_defineProperty(this,"loadScrollTop",()=>{if(!this.options.scrollAfterRefresh||!isHtml5StorageAvailable())return;const t=JSON.parse(localStorage.getItem("scrollTop"));if(t&&t.postId===this.currentPostId){const e=Math.min(t.scrollTop,this.slideContainer.offsetTop),n=document.documentElement.style,i=n.scrollBehavior;n.scrollBehavior="inherit",window.scrollTo(0,e),n.scrollBehavior=i}localStorage.removeItem("scrollTop")}),_defineProperty(this,"setPrev",()=>{0===this.currentSlide?this.options.loopSlides?this.setSlide(this.numberOfSlides-1):this.options.prevPost&&this.showPost(this.options.prevPost):this.setSlide(this.currentSlide-1)}),_defineProperty(this,"setNext",()=>{this.currentSlide===this.numberOfSlides-1?this.options.loopSlides?this.setSlide(0):this.options.nextPost&&this.showPost(this.options.nextPost):this.setSlide(this.currentSlide+1)}),_defineProperty(this,"showPost",function(t){document.location=t}),_defineProperty(this,"setTransition",t=>{const e={effect:this.options.transitionEffect,speed:this.options.transitionSpeed};t=Object.assign({},e,t),this.options.transitionEffect=t.effect,this.options.transitionSpeed=t.speed}),_defineProperty(this,"setNavText",t=>{this.options.navText=t,this.updateNavigationBars()}),_defineProperty(this,"setTitleText",t=>{for(let e=0;e<this.slides.length;e++)this.slides[e].shortCodeTitle="";this.options.helperText=t,this.updateTitleText()}),_defineProperty(this,"showLoading",()=>{this.isLoading=!0;for(let t=0;t<this.navEl.length;t++){const e=document.createElement("div");e.classList.add("_loading");const n=this.navEl[t].container;n.append(e),n.querySelectorAll("._buttons > a").forEach(t=>t.classList.add("_disabled"))}}),_defineProperty(this,"hideLoading",()=>{this.isLoading=!1;for(let t=0;t<this.navEl.length;t++){const e=this.navEl[t].container.querySelector("._loading");e.parentNode.removeChild(e)}this.updateNavigationBars()}),_defineProperty(this,"needToRefreshPage",()=>null!==this.currentSlide&&this.options.refreshAds&&this.slidesSinceLastAdRefresh+1>=this.options.refreshAdsEveryNSlides&&"page"===this.options.adRefreshingMechanism),this.options=Object.assign({},this.defaults,t),Object.keys(this.options).forEach(t=>{if(!isNaN(this.defaults[t])&&"string"==typeof this.options[t]){const e=parseFloat(this.options[t]);isNaN(e)||(this.options[t]=e)}}),this.slideContainer=document.querySelector(this.options.slideContainer),0===this.slideContainer.length)return null;document.querySelectorAll(this.options.nav).forEach(t=>{this.navEl.push({container:t})}),this.currentPostId=this.options.postId,this.remoteLoadingQueue=import_async.queue(function(t,e){e()},1),this.asyncQueue=import_async.queue(function(t,e){e()},1),this.init()}};function init(){window.tpsObjects=[],window.tpsInstance=void 0,document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("[data-theia-post-slider-options]").forEach(e=>{if(e.dataset.theiaPostSliderLoaded)return;e.dataset.theiaPostSliderLoaded="true";const o={};o.definitionElement=e,o.sliderOptions=e.dataset.theiaPostSliderOptions?JSON.parse(e.dataset.theiaPostSliderOptions):"",o.onChangeSlide=e.dataset.theiaPostSliderOnChangeSlide?JSON.parse(e.dataset.theiaPostSliderOnChangeSlide):"",document.addEventListener("theiaPostSlider.changeSlide",event=>{eval(o.onChangeSlide)}),o.tpsInstance=new TheiaPostSlider(o.sliderOptions),0===window.tpsObjects.length&&(window.tpsInstance=o.tpsInstance),window.tpsObjects.push(o)})})}window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.cover=function(t,e,n){return swapSlides(t,e,n,{leave:()=>{},enter:(t,e)=>{t.style.transform="translateX("+e.x*e.width+"px)"}})},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.fade=function(t,e,n){const i=[],s=null!==e?t.slides[e].content:null;s&&(t.slideContainer.style.height=getInnerHeight(s),i.push(function(){s.style.width="100%",s.style.position="absolute",s.style.transition="opacity "+t.options.transitionSpeed/1e3+"s ease-in",s.style.opacity=0,setTimeout(()=>{s.parentNode.removeChild(s),s.style.position="",s.style.width="",s.style.transition="",s.style.opacity="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))}));const o=t.slides[n].content;return null==s?t.slideContainer.append(o):(t.slideContainer.append(o),onNewSlide(t.currentSlide),i.push(function(){t.slideContainer.style.transition="height "+t.options.transitionSpeed/1e3+"s ease-in",t.slideContainer.style.height=getInnerHeight(o),setTimeout(()=>{o.style.position="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))}),i.push(function(){o.style.transition="",o.style.opacity=0,forceRender(o),o.style.transition="opacity "+t.options.transitionSpeed/1e3+"s ease-in",o.style.opacity=1,setTimeout(()=>{o.style.position="",o.style.opacity="",o.style.transition="",t.slideContainer.style.height="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))})),i},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.none=function(t,e,n){const i=null!==e?t.slides[e].content:null;i&&i.parentNode.removeChild(i);const s=t.slides[n].content;return t.slideContainer.append(s),i&&onNewSlide(t.currentSlide),[]},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.simple=function(t,e,n){const i=[],s=null!==e?t.slides[e].content:null;s&&(t.slideContainer.style.height=getInnerHeight(s),s.parentNode.removeChild(s));const o=t.slides[n].content;return null==s?t.slideContainer.append(o):(t.slideContainer.append(o),onNewSlide(t.currentSlide),i.push(function(){t.slideContainer.style.transition="height "+t.options.transitionSpeed/1e3+"s ease-in",t.slideContainer.style.height=getInnerHeight(o),setTimeout(()=>{t.slideContainer.style.position="",t.slideContainer.style.width="",t.slideContainer.style.height="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))})),i},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.slide=function(t,e,n){const i=t.options.isRtl?"right":"left",s=getInnerWidth(t.slideContainer),o=n-e>0?1:-1,r=[],l=null!==e?t.slides[e].content:null;l&&(t.slideContainer.style.height=getInnerHeight(l),r.push(function(){l.
1style.width=s,l.style.position="absolute",l.style[i]=0,a.style.transition="",forceRender(a),l.style.transition=i+" "+t.options.transitionSpeed/1e3+"s ease-in",l.style[i]=-o*parseFloat(s)+"px",setTimeout(()=>{l.parentNode.removeChild(l),l.style.position="",l.style.width="",l.style.transition="",l.style[i]="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))}));const a=t.slides[n].content;return null==l?t.slideContainer.append(a):(a.style.width=s,a.style.visibility="hidden",t.slideContainer.append(a),onNewSlide(t.currentSlide),r.push(function(){t.slideContainer.style.transition="height "+t.options.transitionSpeed/1e3+"s ease-in",t.slideContainer.style.height=getInnerHeight(a),setTimeout(()=>{t.slideContainer.style.position="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))}),r.push(function(){a.style.position="absolute",a.style.visibility="visible",a.style[i]=o*parseFloat(s)+"px",a.style.transition="",forceRender(a),a.style.transition=i+" "+t.options.transitionSpeed/1e3+"s ease-in",a.style[i]=0,setTimeout(()=>{a.style.position="",a.style.width="",a.style.visibility="",a.style.transition="",a.style[i]="",t.slideContainer.style.height="",t.decrementSemaphore()},getTimeout(t.options.transitionSpeed))})),r},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions["slide-fade"]=function(t,e,n){const i=t=>t.x*t.width/3;return swapSlides(t,e,n,{leave:(t,e)=>{t.style.transform="translateX("+-i(e)+"px)",t.style.opacity=0},enter:(t,e)=>{t.style.transform="translateX("+i(e)+"px)",t.style.opacity=0}})},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions["slide-vertical"]=function(t,e,n){return swapSlides(t,e,n,{leave:(t,e)=>{t.style.transform="translateY("+-e.direction*e.height+"px)"},enter:(t,e)=>{t.style.transform="translateY("+e.direction*e.height+"px)"}})},window.tps=window.tps||{},window.tps.transitions=window.tps.transitions||{},window.tps.transitions.zoom=function(t,e,n){return swapSlides(t,e,n,{leave:t=>{t.style.transform="scale(1.1)",t.style.opacity=0},enter:t=>{t.style.transform="scale(0.9)",t.style.opacity=0}})},init()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.