(t=>{const e=t.RLG||(t.RLG={}),i=t=>t&&"function"==typeof t.sanitize,r=/["'<>`]/,o=/^data:image\/(?:png|jpeg|gif|webp);base64,[a-z0-9+/=\r\n]+$/i,n=t=>{const e=Array.prototype.some.call(t,t=>{const e=t.charCodeAt(0);return e<=31||127===e});return"string"==typeof t&&""!==t&&t.trim()===t&&!e&&!r.test(t)};e.getPurifier=()=>i(e.DOMPurify)?e.DOMPurify:i(t.DOMPurify)?t.DOMPurify:null,e.sanitizeConfig=e.sanitizeConfig||{ALLOWED_TAGS:["a","abbr","b","br","code","em","i","li","ol","p","pre","small","strong","sub","sup","u","ul","img","div","span"],ALLOWED_ATTR:["href","src","alt","title","width","height","class","id","rel","target","data-*"],ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel):|[^a-z]|data:image\/(?:png|jpeg|gif|webp);base64,)/i},e.isAllowedMediaUrl=t=>{if(!n(t))return!1;if(o.test(t))return!0;if(e.sanitizeConfig&&e.sanitizeConfig.ALLOWED_URI_REGEXP&&!e.sanitizeConfig.ALLOWED_URI_REGEXP.test(t))return!1;try{const e=new URL(t,location.href);return"http:"===e.protocol||"https:"===e.protocol}catch(i){return!1}},e.isAllowedEmbedUrl=t=>{if(!n(t))return!1;try{const i=new URL(t,location.href);if("http:"!==i.protocol&&"https:"!==i.protocol)return!1;if(i.hostname===location.hostname)return!0;if(Array.isArray(e.sanitizeAllowedHosts)){const t=i.hostname.toLowerCase();return e.sanitizeAllowedHosts.some(e=>(e=(e||"").toLowerCase(),t===e||t.endsWith("."+e)))}return!1}catch(i){return!1}};const a=e.getPurifier();a&&"function"==typeof a.addHook&&a.addHook("uponSanitizeElement",function(t){if("iframe"===(t&&t.nodeName&&t.nodeName.toLowerCase&&t.nodeName.toLowerCase())){const i=t.getAttribute&&t.getAttribute("src");i&&e.isAllowedEmbedUrl(i)||t.parentNode&&t.parentNode.removeChild(t)}}),e.sanitizeHtml=(t,i=null)=>{const r=e.getPurifier();return r?r.sanitize(t,i||e.sanitizeConfig||{}):t}})(window);
!function(i){function t(){n=function(i){return s+"-"+i},o=function(i){return s+"-"+i},a=function(i){return i+"."+s},i.each([n,o,a],function(i,t){t.add=function(i){for(var e in i=i.split(" "))t[i[e]]=t(i[e])}}),n.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),o.add("slide anchor"),a.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),r={complObject:function(t,e){return i.isPlainObject(t)||(t=e),t},complBoolean:function(i,t){return"boolean"!=typeof i&&(i=t),i},complNumber:function(i,t){return!isNaN(parseFloat(i))&&isFinite(i)||(i=t),i},complString:function(i,t){return"string"!=typeof i&&(i=t),i},isPercentage:function(i){return"string"==typeof i&&"%"==i.slice(-1)},getPercentage:function(i){return parseInt(i.slice(0,-1))},resizeRatio:function(i,t,e,s,n){if(t.is(":visible")){var o=t.width(),a=t.height();e&&o>e&&(o=e),s&&a>s&&(a=s),n>o/a?a=o/n:o=a*n,i.width(o).height(a)}},transitionend:function(i,t,e){var s=!1,n=function(){s||t.call(i[0]),s=!0};i.one(a.transitionend,n),i.one(a.webkitTransitionEnd,n),setTimeout(n,1.1*e)},setViewportScale:function(){if(d.viewportScale){var i=d.viewportScale.getScale();void 0!==i&&(i=1/i,d.$body.removeClass(n["scale-1"]).removeClass(n["scale-2"]).removeClass(n["scale-3"]).addClass(n["scale-"+Math.max(Math.min(Math.round(i),3),1)]))}}},(d={$wndw:i(window),$html:i("html"),$body:i("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null}).$body.addClass(i[e].support.touch?n.touch:n.desktop),d.$wndw.on(a.scroll,function(i){d.$body.hasClass(n.opened)&&(window.scrollTo(0,d.scrollPosition),i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation())}),!d.viewportScale&&i[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(d.viewportScale=new FlameViewportScale,r.setViewportScale(),d.$wndw.on(a.orientationchange+" "+a.resize,function(i){d.viewportScaleInterval&&(clearTimeout(d.viewportScaleInterval),d.viewportScaleInterval=null),d.viewportScaleInterval=setTimeout(function(){r.setViewportScale()},500)})),i[e]._c=n,i[e]._d=o,i[e]._e=a,i[e]._f=r,i[e]._g=d}var e="tosrus",s="tos";if(!i[e]){var n={},o={},a={},r={},d={};i[e]=function(i,t,e){return this.$node=i,this.opts=t,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this},i[e].prototype={_init:function(){var t=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=i('<div class="'+n.wrapper+'" />'),this.nodes.$sldr=i('<div class="'+n.slider+'" />').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?n.fixed:n.inline).addClass(n("fx-"+this.opts.effect)).addClass(n(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(a.open+" "+a.close+" "+a.prev+" "+a.next+" "+a.slideTo,function(i){var e=Array.prototype.slice.call(arguments),s=e.shift().type;i.stopPropagation(),"function"==typeof t[s]&&t[s].apply(t,e)}).on(a.opening+" "+a.closing+" "+a.sliding+" "+a.loading+" "+a.loaded,function(i){i.stopPropagation()}).on(a.click,function(e){switch(e.stopPropagation(),t.opts.wrapper.onClick){case"toggleUI":t.nodes.$wrpr.toggleClass(n.hover);break;case"close":i(e.target).is("img")||t.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var s=0;s<i[e].addons.length;s++)"function"==typeof this["_addon_"+i[e].addons[s]]&&this["_addon_"+i[e].addons[s]]();for(var o=0;o<i[e].ui.length;o++)this.nodes.$wrpr.find("."+n[i[e].ui[o]]).length&&this.nodes.$wrpr.addClass(n("has-"+i[e].ui[o]));"close"==this.opts.wrapper.onClick&&(this.nodes.$uibg||i().add(this.nodes.$capt||i()).add(this.nodes.$pagr||i()).on(a.click,function(i){i.stopPropagation()})),this.vars.fixed?(this.nodes.$wrpr.appendTo(d.$body),this.close(!0)):(this.nodes.$wrpr.appendTo(this.opts.wrapper.target),this.opts.show?(this.vars.opened=!1,this.open(0,!0)):this.close(!0))},open:function(i,t){var e=this;this.vars.opened||(this.vars.fixed&&(d.scrollPosition=d.$wndw.scrollTop(),d.$body.addClass(n.opened),r.setViewportScale()),t?this.nodes.$wrpr.addClass(n.opening).trigger(a.opening,[i,t]):setTimeout(function(){e.nodes.$wrpr.addClass(n.opening).trigger(a.opening,[i,t])},5),this.nodes.$wrpr.addClass(n.hover).addClass(n.opened)),this.vars.opened=!0,this._loadContents(),!isNaN(parseFloat(i))&&isFinite(i)&&(t=t||!this.vars.opened,this.slideTo(i,t))},close:function(t){this.vars.opened&&(this.vars.fixed&&d.$body.removeClass(n.opened),t?this.nodes.$wrpr.removeClass(n.opened):r.transitionend(this.nodes.$wrpr,function(){i(this).removeClass(n.opened)},this.conf.transitionDuration),this.nodes.$wrpr.removeClass(n.hover).removeClass(n.opening).trigger(a.closing,[this.slides.index,t])),this.vars.opened=!1},prev:function(i,t){!isNaN(parseFloat(i))&&isFinite(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index-i,t)},next:function(i,t){!isNaN(parseFloat(i))&&isFinite(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index+i,t)},slideTo:function(t,s){if(!this.vars.opened)return!1;if(isNaN(parseFloat(t))||!isFinite(t))return!1;var o=!0;if(0>t){var d=0==this.slides.index;this.opts.infinite?t=d?this.slides.total-this.slides.visible:0:(t=0,d&&(o=!1))}if(t+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?t=l?0:this.slides.total-this.slides.visible:(t=this.slides.total-this.slides.visible,l&&(o=!1))}if(this.slides.index=t,this._loadContents(),o){var p=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;for(var c in this.slides.widthPercentage&&(p+="%"),s&&(this.nodes.$sldr.addClass(n.noanimation),r.transitionend(this.nodes.$sldr,function(){i(this).removeClass(n.noanimation)},5)),i[e].effects)if(c==this.opts.effect){i[e].effects[c].call(this,p,s);break}this.nodes.$wrpr.trigger(a.sliding,[t,s])}},_initAnchors:function(){var t=this,s=i();if(this.$node.is("a"))for(var n in i[e].media)s=s.add(this.$node.filter(function(){if(t.opts.media[n]&&t.opts.media[n].filterAnchors){var s=t.opts.media[n].filterAnchors.call(t,i(this));if("boolean"==typeof s)return s}return i[e].media[n].filterAnchors.call(t,i(this))}));return s},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var t=this;this.nodes.$anchors.each(function(e){var s=i(this),r=i('<div class="'+n.slide+" "+n.loading+'" />').data(o.anchor,s).appendTo(t.nodes.$sldr);s.data(o.slide,r).on(a.click,function(i){i.preventDefault(),t.open(e)})})},_initSlidesFromContent:function(){var t=this;this.$node.children().each(function(){var s=i(this);for(var o in i('<div class="'+n.slide+'" />').append(s).appendTo(t.nodes.$sldr),i[e].media){var a=null;if(t.opts.media[o]&&t.opts.media[o].filterSlides&&(a=t.opts.media[o].filterSlides.call(t,s)),"boolean"!=typeof a&&(a=i[e].media[o].filterSlides.call(t,s)),a){i[e].media[o].initSlides.call(t,s),s.parent().addClass(n(o));break}}})},_loadContents:function(){var i=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){i._loadContent(i.slides.index-i.slides.visible,i.slides.index),i._loadContent(i.slides.index+i.slides.visible,i.slides.index+2*i.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(t,s){var r=this;this.nodes.$slides.slice(t,s).each(function(){var t=i(this);if(0==t.children().length){var s=t.data(o.anchor),d=s.attr("href");for(var l in i[e].media){var p=null;if(r.opts.media[l]&&r.opts.media[l].filterAnchors&&(p=r.opts.media[l].filterAnchors.call(r,s)),"boolean"!=typeof p&&(p=i[e].media[l].filterAnchors.call(r,s)),p){i[e].media[l].initAnchors.call(r,t,d),t.addClass(n(l));break}}t.trigger(a.loading,[t.data(o.anchor)])}})},_complementOptions:function(){if(void 0===this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=i(this.opts.wrapper.target)),this.opts.show=r.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),!isNaN(parseFloat(this.opts.slides.width))&&isFinite(this.opts.slides.width))this.slides.widthPercentage=!1,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,1);else{var t=!!r.isPercentage(this.opts.slides.width)&&r.getPercentage(this.opts.slides.width);this.slides.widthPercentage=!0,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,t?Math.floor(100/t):1),this.opts.slides.width=t||Math.ceil(1e4/this.opts.slides.visible)/100}this.opts.slides.slide=r.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=r.isPercentage(this.opts.slides.offset)?r.getPercentage(this.opts.slides.offset):r.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,n("uid-"+this.__uniqueID)}},i.fn[e]=function(s,n,o,a){d.$wndw||t(),s=i.extend(!0,{},i[e].defaults,s),s=i.extend(!0,{},s,i[e].support.touch?o:n),a=i.extend(!0,{},i[e].configuration,a);var r=new i[e](this,s,a);return this.data(e,r),r.nodes.$wrpr},i[e].support={touch:"ontouchstart"in window.document||navigator.msMaxTouchPoints},i[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},i[e].configuration={transitionDuration:400},i[e].constants={},i[e].debug=function(i){},i[e].deprecated=function(i,t){"undefined"!=typeof console&&void 0!==console.warn&&console.warn(e+": "+i+" is deprecated, use "+t+" instead.")},i[e].effects={slide:function(i){this.nodes.$sldr.css("left",i)},fade:function(t){r.transitionend(this.nodes.$sldr,function(){i(this).css("left",t).css("opacity",1)},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0)}},i[e].version="2.5.0",i[e].media={},i[e].addons=[],i[e].ui=[]}}(jQuery),function(i){var t,e="tosrus",s="autoplay",n=!1;i[e].prototype["_addon_"+s]=function(){n||(i[e]._c,i[e]._d,t=i[e]._e,i[e]._f,i[e]._g,t.add("mouseover mouseout"),n=!0);var o=this,a=this.opts[s];a.play&&(this.opts.infinite=!0,this.nodes.$wrpr.on(t.sliding,function(i){o.autoplay()}),a.pauseOnHover&&this.nodes.$wrpr.on(t.mouseover,function(i){o.autostop()}).on(t.mouseout,function(i){o.autoplay()}),this.autoplay())},i[e].prototype.autoplay=function(){var i=this;this.autostop(),this.vars.autoplay=setTimeout(function(){i.next()},this.opts[s].timeout)},i[e].prototype.autostop=function(){this.vars.autoplay&&clearTimeout(this.vars.autoplay)},i[e].defaults[s]={play:!1,timeout:4e3,pauseOnHover:!1},i[e].addons.push(s)}(jQuery),function(i){function t(t,e){return i('<a class="'+s[t]+e+'" href="#"><span></span></a>')}function e(i,t,e,s){t.on(n.click,function(t){t.preventDefault(),t.stopPropagation(),i.trigger(n[e],[s])})}var s,n,o="tosrus",a="buttons",r=!1;i[o].prototype["_addon_"+a]=function(){r||(s=i[o]._c,i[o]._d,n=i[o]._e,i[o]._f,i[o]._g,s.add("prev next close disabled"),r=!0);var d=this,l=this.opts[a];this.nodes.$prev=null,this.nodes.$next=null,this.nodes.$clse=null,("boolean"==typeof l||"string"==typeof l&&"inline"==l)&&(l={prev:l,next:l}),void 0===l.close&&(l.close=this.vars.fixed),this.nodes.$slides.length<2&&(l.prev=!1,l.next=!1),i.each({prev:"prev",next:"next",close:"clse"},function(o,a){l[o]&&("string"==typeof l[o]&&"inline"==l[o]?d.vars.fixed&&"close"!=o&&d.nodes.$slides.on(n.loading,function(n,a){var r=t(o," "+s.inline)["prev"==o?"prependTo":"appendTo"](this);e(d.nodes.$wrpr,r,o,1),d.opts.infinite||("prev"==o&&i(this).is(":first-child")||"next"==o&&i(this).is(":last-child"))&&r.addClass(s.disabled)}):("string"==typeof l[o]&&(l[o]=i(l[o])),d.nodes["$"+a]=l[o]instanceof i?l[o]:t(o,"").appendTo(d.nodes.$wrpr),e(d.nodes.$wrpr,d.nodes["$"+a],o,null)))}),this.opts.infinite||(this.updateButtons(),this.nodes.$wrpr.on(n.sliding,function(i,t,e){d.updateButtons()}))},i[o].prototype.updateButtons=function(){this.nodes.$prev&&this.nodes.$prev[(this.slides.index<1?"add":"remove")+"Class"](s.disabled),this.nodes.$next&&this.nodes.$next[(this.slides.index>=this.slides.total-this.slides.visible?"add":"remove")+"Class"](s.disabled)},i[o].defaults[a]={prev:!i[o].support.touch,next:!i[o].support.touch},i[o].addons.push(a),i[o].ui.push("prev"),i[o].ui.push("next"),i[o].ui.push("close")}(jQuery),function(i){var t,e,s,n="tosrus",o="caption",a=!1;i[n].prototype["_addon_"+o]=function(){a||(t=i[n]._c,e=i[n]._d,s=i[n]._e,i[n]._f,i[n]._g,t.add("caption uibg"),e.add("caption"),a=!0);var r=this,d=this.opts[o];if(d.add){d.attributes=d.attributes||[],"string"==typeof d.target&&(d.target=i(d.target)),d.target instanceof i?this.nodes.$capt=d.target:(this.nodes.$capt=i('<div class="'+t.caption+'" />').appendTo(this.nodes.$wrpr),this.nodes.$uibg||(this.nodes.$uibg=i('<div class="'+t.uibg+'" />').prependTo(this.nodes.$wrpr)));for(var l=0,p=this.slides.visible;p>l;l++)i('<div class="'+t.caption+"-"+l+'" />').css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px")).appendTo(this.nodes.$capt);this.nodes.$slides.each(function(t){var s=i(this),n=r.vars.fixed?s.data(e.anchor):s.children();s.data(e.caption,"");for(var o=0,a=d.attributes.length;a>o;o++){var l=n.attr(d.attributes[o]);if(l&&l.length){s.data(e.caption,l);break}}}),this.nodes.$wrpr.on(s.sliding,function(i,t,s){for(var n=0,o=r.slides.visible;o>n;n++)r.nodes.$capt.children().eq(n).html(window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(r.nodes.$sldr.children().eq(r.slides.index+n).data(e.caption)||""):r.nodes.$sldr.children().eq(r.slides.index+n).data(e.caption)||"")})}},i[n].defaults[o]={add:!1,target:null,attributes:["title","alt","rel"]},i[n].addons.push(o),i[n].ui.push("caption")}(jQuery),function(i){var t,e,s,n,o="tosrus",a="drag",r=!1;i[o].prototype["_addon_"+a]=function(){r||(t=i[o]._c,i[o]._d,e=i[o]._e,s=i[o]._f,n=i[o]._g,r=!0);var d=this;if(this.opts[a]&&"slide"==this.opts.effect&&this.nodes.$slides.length>1){var l=0,p=!1,c=!1,h=null,u=null,f=0;this.nodes.$wrpr.on("touchstart pointerdown MSPointerDown mousedown",function(i){var t=i.originalEvent.touches?i.originalEvent.touches[0]:i.originalEvent;h=t.pageX,u=t.pageY,p=!1,c=!1,f=(new Date).getTime()}),this.nodes.$wrpr.on("touchmove pointermove MSPointerMove mousemove",function(i){if(null!==h){var e=i.originalEvent.touches?i.originalEvent.touches[0]:i.originalEvent,s=e.pageY-u;if(l=e.pageX-h,void 0!==p&&!1!==p||(p=Math.abs(l)>Math.abs(s)?"horizontal":"vertical"),"horizontal"==p){i.preventDefault(),d.nodes.$sldr.addClass(t.noanimation);var n=l;(l<0&&d.slides.index+d.slides.visible>=d.slides.total||l>0&&0==d.slides.index)&&(n/=2.5),d.nodes.$sldr.css("margin-left",Math.round(n))}}}),this.nodes.$wrpr.on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel mouseup mouseleave",function(i){if(null!==h&&"horizontal"==p&&(d.nodes.$sldr.removeClass(t.noanimation).addClass(t.fastanimation),s.transitionend(d.nodes.$sldr,function(){d.nodes.$sldr.removeClass(t.fastanimation)},d.conf.transitionDuration/2),d.nodes.$sldr.css("margin-left",0),(new Date).getTime()-f<300&&Math.abs(l)>20&&(c=!0),l<0||l>0)){if(c)n=d.slides.visible;else{var o=d.nodes.$slides.first().width();n=Math.floor((Math.abs(l)+o/2)/o)}n>0&&d.nodes.$wrpr.trigger(e[l<0?"next":"prev"],[n])}h=null,p=!1,c=!1})}},i[o].defaults[a]=i[o].support.touch,i[o].addons.push(a)}(jQuery),function(i){var t,e="tosrus",s="keys",n=!1;i[e].prototype["_addon_"+s]=function(){n||(i[e]._c,i[e]._d,t=i[e]._e,i[e]._f,i[e]._g,t.add("keyup"),n=!0);var o=this,a=this.opts[s];if("boolean"==typeof a&&a&&(a={prev:!0,next:!0,close:!0}),i.isPlainObject(a)){for(var r in i[e].constants[s])"boolean"==typeof a[r]&&a[r]&&(a[r]=i[e].constants[s][r]);this.nodes.$slides.length<2&&(a.prev=!1,a.next=!1),i(document).on(t.keyup,function(i){if(o.vars.opened){var e=!1;switch(i.keyCode){case a.prev:e=t.prev;break;case a.next:e=t.next;break;case a.close:e=t.close}e&&(i.preventDefault(),i.stopPropagation(),o.nodes.$wrpr.trigger(e))}})}},i[e].defaults[s]=!1,i[e].constants[s]={prev:37,next:39,close:27},i[e].addons.push(s)}(jQuery),function(i){var t,e,s,n="tosrus",o="pagination",a=!1;function r(i){return window.RLG&&window.RLG.isAllowedMediaUrl?window.RLG.isAllowedMediaUrl(i)?i:"":window.RLG&&window.RLG.sanitizeConfig&&window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP&&!window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP.test(i)?"":i}function d(t){var e=i('<a href="#"></a>');return t&&e.css("background-image",'url("'+t+'")'),e}i[n].prototype["_addon_"+o]=function(){a||(t=i[n]._c,e=i[n]._d,s=i[n]._e,i[n]._f,i[n]._g,t.add("pagination selected uibg bullets thumbnails"),a=!0);var l=this,p=this.opts[o];if(this.nodes.$slides.length<2&&(p.add=!1),p.add){if("string"==typeof p.target&&(p.target=i(p.target)),p.target instanceof i?this.nodes.$pagr=p.target:(this.nodes.$pagr=i('<div class="'+t.pagination+" "+t[p.type]+'" />').appendTo(this.nodes.$wrpr),this.nodes.$uibg||(this.nodes.$uibg=i('<div class="'+t.uibg+'" />').prependTo(this.nodes.$wrpr))),"function"!=typeof p.anchorBuilder)if("thumbnails"===p.type)this.vars.fixed?p.anchorBuilder=function(t){return d(r(i(this).data(e.anchor).attr("href")))}:p.anchorBuilder=function(t){return d(r(i(this).find("img").attr("src")))};else p.anchorBuilder=function(i){return'<a href="#"></a>'};this.nodes.$slides.each(function(t){i(p.anchorBuilder.call(this,t+1)).appendTo(l.nodes.$pagr).on(s.click,function(i){i.preventDefault(),i.stopPropagation(),l.nodes.$wrpr.trigger(s.slideTo,[t])})}),this.updatePagination(),this.nodes.$wrpr.on(s.sliding,function(i,t,e){l.updatePagination()})}},i[n].prototype.updatePagination=function(){this.nodes.$pagr&&this.nodes.$pagr.children().removeClass(t.selected).eq(this.slides.index).addClass(t.selected)},i[n].defaults[o]={add:!1,type:"bullets",target:null,anchorBuilder:null},i[n].addons.push(o),i[n].ui.push("pagination"),i[n].ui.push("bullets"),i[n].ui.push("thumbnails")}(jQuery),function(i){var t="tosrus",e="html";i[t].media[e]={filterAnchors:function(t){var e=t.attr("href");return"#"==e.slice(0,1)&&i(e).is("div")},initAnchors:function(e,s){var n=i(s).html(),o=window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(n):n;i('<div class="'+i[t]._c("html")+'" />').html(o).appendTo(e),e.removeClass(i[t]._c.loading).trigger(i[t]._e.loaded)},filterSlides:function(i){return i.is("div")},initSlides:function(i){}},i[t].defaults.media[e]={}}(jQuery),function(i){var t="tosrus",e="image";i[t].media[e]={filterAnchors:function(t){return i.inArray(t.attr("href").toLowerCase().split(".").pop().split("?")[0],["jpg","jpe","jpeg","gif","png","webp"])>-1},initAnchors:function(e,s){var n;(n=s,window.RLG&&window.RLG.isAllowedMediaUrl?!window.RLG.isAllowedMediaUrl(n)||!n:window.RLG&&window.RLG.sanitizeConfig&&window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP&&!window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP.test(n)||!n)||i('<img border="0" />').on(i[t]._e.load,function(s){s.stopPropagation(),e.removeClass(i[t]._c.loading).trigger(i[t]._e.loaded)}).appendTo(e).attr("src",s)},filterSlides:function(i){return i.is("img")},initSlides:function(i){}},i[t].defaults.media[e]={}}(jQuery),function(i){function t(t){function p(){c.length&&(c.attr("src",""),c.attr("src",u))}l||(e=i[r]._c,s=i[r]._d,n=i[r]._e,o=i[r]._f,a=i[r]._g,s.add("ratio maxWidth maxHeight"),l=!0);var c=t.children(),h=t.data(i[r]._d.anchor)||i(),u=c.attr("src"),f=h.data(s.ratio)||this.opts[d].ratio,v=h.data(s.maxWidth)||this.opts[d].maxWidth,w=h.data(s.maxHeight)||this.opts[d].maxHeight;t.removeClass(e.loading).trigger(n.loaded).on(n.loading,function(i){o.resizeRatio(c,t,v,w,f)}),this.nodes.$wrpr.on(n.sliding,function(i){p()}).on(n.opening,function(i){o.resizeRatio(c,t,v,w,f)}).on(n.closing,function(i){p()}),a.$wndw.on(n.resize,function(i){o.resizeRatio(c,t,v,w,f)})}var e,s,n,o,a,r="tosrus",d="vimeo",l=!1;i[r].media[d]={filterAnchors:function(i){return i.attr("href").toLowerCase().indexOf("vimeo.com/")>-1},initAnchors:function(e,s){var n=this._uniqueID(),o=s.split("vimeo.com/")[1].split("?")[0].replace(/\D/g,"");if(o){var a="https://player.vimeo.com/video/"+o+"?api=1&player_id="+n;window.RLG&&window.RLG.isAllowedEmbedUrl&&!window.RLG.isAllowedEmbedUrl(a)||(i("<iframe/>",{id:n,src:a,frameborder:0,allowfullscreen:"allowfullscreen"}).appendTo(e),t.call(this,e))}},filterSlides:function(i){return!(!i.is("iframe")||!i.attr("src"))&&i.attr("src").toLowerCase().indexOf("vimeo.com/video/")>-1},initSlides:function(i){t.call(this,i)}},i[r].defaults.media[d]={},i[r].defaults[d]={ratio:16/9,maxWidth:!1,maxHeight:!1}}(jQuery),function(i){function t(t){function p(i){c.length&&c[0].contentWindow.postMessage('{ "event": "command", "func": "'+i+'Video" }',"*")}l||(e=i[r]._c,s=i[r]._d,n=i[r]._e,o=i[r]._f,a=i[r]._g,s.add("ratio maxWidth maxHeight"),l=!0);var c=t.children(),h=t.data(i[r]._d.anchor)||i(),u=h.data(s.ratio)||this.opts[d].ratio,f=h.data(s.maxWidth)||this.opts[d].maxWidth,v=h.data(s.maxHeight)||this.opts[d].maxHeight;t.removeClass(e.loading).trigger(n.loaded).on(n.loading,function(i){o.resizeRatio(c,t,f,v,u)}),this.nodes.$wrpr.on(n.sliding,function(i){p("pause")}).on(n.opening,function(i){o.resizeRatio(c,t,f,v,u)}).on(n.closing,function(i){p("stop")}),a.$wndw.on(n.resize,function(i){o.resizeRatio(c,t,f,v,u)})}var e,s,n,o,a,r="tosrus",d="youtube",l=!1;i[r].media[d]={filterAnchors:function(i){return i.attr("href").toLowerCase().indexOf("youtube.com/watch?v=")>-1},initAnchors:function(e,s){var n=s.split("?v=")[1].split("&")[0].replace(/[^a-zA-Z0-9_-]/g,"");if(n)if(this.opts[d].imageLink){var o="https://img.youtube.com/vi/"+n+"/0.jpg",a="https://www.youtube.com/watch?v="+n;!function(i){return window.RLG&&window.RLG.isAllowedMediaUrl?window.RLG.isAllowedMediaUrl(i)?i:"":window.RLG&&window.RLG.sanitizeConfig&&window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP&&!window.RLG.sanitizeConfig.ALLOWED_URI_REGEXP.test(i)?"":i}(o)||window.RLG&&window.RLG.isAllowedEmbedUrl&&!window.RLG.isAllowedEmbedUrl(a)||(i("<a/>",{href:a,class:i[r]._c("play"),target:"_blank",rel:"noopener noreferrer"}).appendTo(e),i('<img border="0" />').on(i[r]._e.load,function(t){t.stopPropagation(),e.removeClass(i[r]._c.loading).trigger(i[r]._e.loaded)}).appendTo(e).attr("src",o))}else{var l="https://www.youtube.com/embed/"+n+"?enablejsapi=1";window.RLG&&window.RLG.isAllowedEmbedUrl&&!window.RLG.isAllowedEmbedUrl(l)||(i("<iframe/>",{src:l,frameborder:0,allowfullscreen:"allowfullscreen"}).appendTo(e),t.call(this,e))}},filterSlides:function(i){return!(!i.is("iframe")||!i.attr("src"))&&i.attr("src").toLowerCase().indexOf("youtube.com/embed/")>-1},initSlides:function(i){t.call(this,i)}},i[r].defaults.media[d]={},i[r].defaults[d]={ratio:16/9,maxWidth:!1,maxHeight:!1,imageLink:i[r].support.touch}}(jQuery);
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.8",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,i){return i=null==i?u.length-1:+i,function(){for(var n=Math.max(arguments.length-i,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+i];switch(i){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(i+1),r=0;r<i;r++)e[r]=arguments[r];return e[i]=t,u.apply(this,e)}}function i(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function o(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=o("String"),Y=o("Number"),Z=o("Date"),nn=o("RegExp"),tn=o("Error"),rn=o("Symbol"),en=o("ArrayBuffer"),a=o("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=o("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=o("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,c=U||o("Array");function v(n,t){return null!=n&&q.call(n,t)}var on=o("Arguments"),an=(!function(){on(arguments)||(on=function(n){return v(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var y=sn("byteLength"),pn=ln(y),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),d=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,i="constructor";for(v(n,i)&&!t.contains(i)&&t.push(i);r--;)(i=J[r])in n&&n[i]!==u[i]&&!t.contains(i)&&t.push(i)}function g(n){if(!i(n))return[];if(W)return W(n);var t,r=[];for(t in n)v(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=g(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0}function b(n){return n instanceof b?n:this instanceof b?void(this._wrapped=n):new b(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,y(n))}b.VERSION=n,b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function m(n){if(!i(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function mn(e){var u=d(e);return function(n){if(null==n)return!1;var t=m(n);if(d(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==wn||!p(n[jn])}}var jn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(jn,u),wn=t.concat(u),r=["add"].concat(t,jn,"has"),u=a?mn(U):o("Map"),t=a?mn(wn):o("WeakMap"),U=a?mn(r):o("Set"),a=o("WeakSet");function j(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function _n(n){for(var t={},r=g(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function An(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function xn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),i=u.length,o=0;o<i;o++){var a=u[o];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var Sn=xn(m),w=xn(g),On=xn(m,!0);function Mn(n){var t;return i(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function En(n){return c(n)?n:[n]}function _(n){return b.toPath(n)}function Bn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function Nn(n,t,r){n=Bn(n,_(t));return H(n)?r:n}function kn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function In(t){return t=_(t),function(n){return Bn(n,t)}}function x(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}}function Tn(n,t,r){return null==n?kn:p(n)?x(n,t,r):(i(n)&&!c(n)?A:In)(n)}function Dn(n,t){return Tn(n,t,1/0)}function S(n,t,r){return b.iteratee!==Dn?b.iteratee(n,t):Tn(n,t,r)}function Rn(){}function Vn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}b.toPath=En,b.iteratee=Dn;var O=Date.now||function(){return(new Date).getTime()};function Fn(t){function r(n){return t[n]}var n="(?:"+g(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Pn=Fn(r),r=Fn(_n(r)),qn=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Un=/(.)^/,Wn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function Ln(n){return"\\"+Wn[n]}var $n=/^\s*(\w|\$)+\s*$/;var Cn=0;function Kn(n,t,r,e,u){return e instanceof t?(e=Mn(n.prototype),i(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,i){function o(){for(var n=0,t=i.length,r=Array(t),e=0;e<t;e++)r[e]=i[e]===a?arguments[n++]:i[e];for(;n<arguments.length;)r.push(arguments[n++]);return Kn(u,o,this,this,r)}var a=M.placeholder;return o}),Jn=(M.placeholder=b,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Kn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(d);function B(n,t,r){t||0===t||(t=1/0);for(var e=[],u=0,i=0,o=d(n)||0,a=[];;){if(o<=i){if(a.length){var f=a.pop(),i=f.i,o=d(n=f.v);continue}break}f=n[i++];t<=a.length?e[u++]=f:E(f)&&(c(f)||an(f))?(a.push({i:i,v:n}),i=0,o=d(n=f)):r||(e[u++]=f)}return e}var Gn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Jn(n[e],n)}return n});var Hn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Qn=M(Hn,b,1);function Xn(n){return function(){return!n.apply(this,arguments)}}function Yn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var Zn=M(Yn,2);function nt(n,t,r){t=S(t,r);for(var e,u=g(n),i=0,o=u.length;i<o;i++)if(t(n[e=u[i]],e,n))return e}function tt(i){return function(n,t,r){t=S(t,r);for(var e=d(n),u=0<i?0:e-1;0<=u&&u<e;u+=i)if(t(n[u],u,n))return u;return-1}}var rt=tt(1),et=tt(-1);function ut(n,t,r,e){for(var u=(r=S(r,e,1))(t),i=0,o=d(n);i<o;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i}function it(i,o,a){return function(n,t,r){var e=0,u=d(n);if("number"==typeof r)0<i?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=o(f.call(n,e,u),fn))?r+e:-1;for(r=0<i?e:u-1;0<=r&&r<u;r+=i)if(n[r]===t)return r;return-1}}var ot=it(1,rt,ut),at=it(-1,et);function ft(n,t,r){t=(E(n)?rt:nt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,i=n.length;u<i;u++)t(n[u],u,n);else for(var e=g(n),u=0,i=e.length;u<i;u++)t(n[e[u]],e[u],n);return n}function k(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i}function ct(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&g(n),i=(u||n).length,o=0<f?0:i-1;for(e||(r=n[u?u[o]:o],o+=f);0<=o&&o<i;o+=f){var a=u?u[o]:o;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var lt=ct(1),st=ct(-1);function I(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function pt(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1}function T(n,t,r,e){return E(n)||(n=j(n)),0<=ot(n,t,r="number"==typeof r&&!e?r:0)}var vt=l(function(n,r,e){var u,i;return p(r)?i=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),k(n,function(n){var t=i;if(!t){if(null==(n=u&&u.length?Bn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function yt(n,t){return k(n,In(t))}function dt(n,e,t){var r,u,i=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&i<r&&(i=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(o<u||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i}var gt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function bt(n){return n?c(n)?f.call(n):X(n)?n.match(gt):E(n)?k(n,kn):j(n):[]}function mt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=bt(n),r=d(e),u=(t=Math.max(Math.min(t,r),0),r-1),i=0;i<t;i++){var o=Vn(i,u),a=e[i];e[i]=e[o],e[o]=a}return e.slice(0,t)}function D(i,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);i(u,n,t)}),u}}var jt=D(function(n,t,r){v(n,r)?n[r].push(t):n[r]=[t]}),wt=D(function(n,t,r){n[r]=t}),_t=D(function(n,t,r){v(n,r)?n[r]++:n[r]=1}),At=D(function(n,t,r){n[r?0:1].push(t)},!0);function xt(n,t,r){return t in r}var St=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=m(n)):(e=xt,t=B(t,!1,!1),n=Object(n));for(var u=0,i=t.length;u<i;u++){var o=t[u],a=n[o];e(a,o,n)&&(r[o]=a)}}return r}),Ot=l(function(n,r){var t,e=r[0];return p(e)?(e=Xn(e),1<r.length&&(t=r[1])):(r=k(B(r,!1,!1),String),e=function(n,t){return!T(r,t)}),St(n,e,t)});function Mt(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Et(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Mt(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Bt=l(function(n,t){return t=B(t,!0,!0),I(n,function(n){return!T(t,n)})}),Nt=l(function(n,t){return Bt(n,t)});function kt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],i=[],o=0,a=d(n);o<a;o++){var f=n[o],c=r?r(f,o,n):f;t&&!r?(o&&i===c||u.push(f),i=c):r?T(i,c)||(i.push(c),u.push(f)):T(u,f)||u.push(f)}return u}var It=l(function(n){return kt(B(n,!0,!0))});function Tt(n){for(var t=n&&dt(n,d).length||0,r=Array(t),e=0;e<t;e++)r[e]=yt(n,e);return r}var Dt=l(Tt);function Rt(n,t){return n._chain?b(t).chain():t}function Vt(r){return N(An(r),function(n){var t=b[n]=r[n];b.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Rt(this,t.apply(b,n))}}),b}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];b.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Rt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];b.prototype[n]=function(){var n=this._wrapped;return Rt(this,n=null!=n?t.apply(n,arguments):n)}});n=Vt({__proto__:null,VERSION:n,restArguments:l,isObject:i,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:c,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=d(n))&&(c(n)||X(n)||an(n))?0===t:0===d(g(n)))},isMatch:dn,isEqual:function(n,t){for(var r=[{a:n,b:t}],e=[],u=[];r.length;){var i=r.pop();if(!0===i)e.pop(),u.pop();else{if((n=i.a)===(t=i.b)){if(0!==n||1/n==1/t)continue;return!1}if(null==n||null==t)return!1;if(n!=n){if(t!=t)continue;return!1}i=typeof n;if("function"!=i&&"object"!=i&&"object"!=typeof t)return!1;n instanceof b&&(n=n._wrapped),t instanceof b&&(t=t._wrapped);i=s.call(n);if(i!==s.call(t))return!1;if(un&&"[object Object]"==i&&h(n)){if(!h(t))return!1;i=bn}switch(i){case"[object RegExp]":case"[object String]":if(""+n==""+t)continue;return!1;case"[object Number]":r.push({a:+n,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+n==+t)continue;return!1;case"[object Symbol]":if(F.valueOf.call(n)===F.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case bn:r.push({a:gn(n),b:gn(t)});continue}i="[object Array]"===i;if(!i&&vn(n)){if(y(n)!==y(t))return!1;if(n.buffer===t.buffer&&n.byteOffset===t.byteOffset)continue;i=!0}if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}for(var f=e.length;f--;)if(e[f]===n){if(u[f]===t)break;return!1}if(!(0<=f))if(e.push(n),u.push(t),r.push(!0),i){if((f=n.length)!==t.length)return!1;for(;f--;)r.push({a:n[f],b:t[f]})}else{var c,l=g(n),f=l.length;if(g(t).length!==f)return!1;for(;f--;){if(!v(t,c=l[f]))return!1;r.push({a:n[c],b:t[c]})}}}}return!0},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:g,allKeys:m,values:j,pairs:function(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:_n,functions:An,methods:An,extend:Sn,extendOwn:w,assign:w,defaults:On,create:function(n,t){return n=Mn(n),t&&w(n,t),n},clone:function(n){return i(n)?c(n)?n.slice():Sn({},n):n},tap:function(n,t){return t(n),n},get:Nn,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!v(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=g(n),u=e.length,i={},o=0;o<u;o++){var a=e[o];i[a]=t(n[a],a,n)}return i},identity:kn,constant:cn,noop:Rn,toPath:En,property:In,propertyOf:function(t){return null==t?Rn:function(n){return Nn(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Vn,now:O,escape:Pn,unescape:r,templateSettings:qn,template:function(i,n,t){n=On({},n=!n&&t?t:n,b.templateSettings);var r,t=RegExp([(n.escape||Un).source,(n.interpolate||Un).source,(n.evaluate||Un).source].join("|")+"|$","g"),o=0,a="__p+='";if(i.replace(t,function(n,t,r,e,u){return a+=i.slice(o,u).replace(zn,Ln),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!$n.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,b)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var i=null==n?void 0:n[t[u]];void 0===i&&(i=r,u=e),n=p(i)?i.call(n):i}return n},uniqueId:function(n){var t=++Cn+"";return n?n+t:t},chain:function(n){return(n=b(n))._chain=!0,n},iteratee:Dn,partial:M,bind:Jn,bindAll:Gn,memoize:function(e,u){function i(n){var t=i.cache,r=""+(u?u.apply(this,arguments):n);return v(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return i.cache={},i},delay:Hn,defer:Qn,throttle:function(r,e,u){function i(){l=!1===u.leading?0:O(),o=null,c=r.apply(a,f),o||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(o&&(clearTimeout(o),o=null),l=n,c=r.apply(a,f),o||(a=f=null)):o||!1===u.trailing||(o=setTimeout(i,t)),c}var o,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(o),l=0,o=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-o;n<r?i=setTimeout(u,r-n):(i=null,e||(f=t.apply(c,a)),i||(a=c=null))}var i,o,a,f,c,n=l(function(n){return c=this,a=n,o=O(),i||(i=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(i),i=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Xn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Yn,once:Zn,findKey:nt,findIndex:rt,findLastIndex:et,sortedIndex:ut,indexOf:ot,lastIndexOf:at,find:ft,detect:ft,findWhere:function(n,t){return ft(n,A(t))},each:N,forEach:N,map:k,collect:k,reduce:lt,foldl:lt,inject:lt,reduceRight:st,foldr:st,filter:I,select:I,reject:function(n,t,r){return I(n,Xn(S(t)),r)},every:pt,all:pt,some:ht,any:ht,contains:T,includes:T,include:T,invoke:vt,pluck:yt,where:function(n,t){return I(n,A(t))},max:dt,min:function(n,e,t){var r,u,i=1/0,o=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<i&&(i=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<o||u===1/0&&i===1/0)&&(i=n,o=u)});return i},shuffle:function(n){return mt(n,1/0)},sample:mt,sortBy:function(n,e,t){var u=0;return e=S(e,t),yt(k(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:jt,indexBy:wt,countBy:_t,partition:At,toArray:bt,size:function(n){return null==n?0:(E(n)?n:g(n)).length},pick:St,omit:Ot,first:Et,head:Et,take:Et,initial:Mt,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return I(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:Nt,uniq:kt,unique:kt,union:It,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=d(n);e<u;e++){var i=n[e];if(!T(t,i)){for(var o=1;o<r&&T(arguments[o],i);o++);o===r&&t.push(i)}}return t},difference:Bt,unzip:Tt,transpose:Tt,zip:Dt,object:function(n,t){for(var r={},e=0,u=d(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;i<e;i++,n+=r)u[i]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Vt,default:b});return n._=n});
!function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){let i=t.console,n=void 0===i?function(){}:function(t){i.error(t)};return function(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){t&&(this.options=Object.assign(this.options||{},t))}),s.fn[i]=function(t,...e){return"string"==typeof t?function(t,e,o){let r,l=`$().${i}("${e}")`;return t.each((function(t,h){let a=s.data(h,i);if(!a)return void n(`${i} not initialized. Cannot call method ${l}`);let c=a[e];if(!c||"_"==e.charAt(0))return void n(`${l} is not a valid method`);let u=c.apply(a,o);r=void 0===r?u:r})),void 0!==r?r:t}(this,t,e):(r=t,this.each((function(t,e){let n=s.data(e,i);n?(n.option(r),n._init()):(n=new o(e,r),s.data(e,i,n))})),this);var r})}})),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of i){n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t):t.fizzyUIUtils=e(t)}(this,(function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){if(Array.isArray(t))return t;if(null==t)return[];return"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter((t=>t instanceof HTMLElement)).reduce(((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t=t.concat(...n)}),[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[o]);let t=arguments;this[o]=setTimeout((()=>{n.apply(this,t),delete this[o]}),i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,o){e.docReady((function(){let s="data-"+e.toDashed(o),r=document.querySelectorAll(`[${s}]`),l=t.jQuery;[...r].forEach((t=>{let e,r=t.getAttribute(s);try{e=r&&JSON.parse(r)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let h=new n(t,e);l&&l.data(t,o,h)}))}))},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,(function(t,e,i){let n=t.jQuery,o={};function s(t,e){let r=i.getQueryElement(t);if(r){if((t=r).infiniteScrollGUID){let i=o[t.infiniteScrollGUID];return i.option(e),i}this.element=t,this.options={...s.defaults},this.option(e),n&&(this.$element=n(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(r||t))}s.defaults={},s.create={},s.destroy={};let r=s.prototype;Object.assign(r,e.prototype);let l=0;r.create=function(){let t=this.guid=++l;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath()){this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(let t in s.create)s.create[t].call(this)}else console.error("Disabling InfiniteScroll")},r.option=function(t){Object.assign(this.options,t)},r.callOnInit=function(){let t=this.options.onInit;t&&t.call(this,this)},r.dispatchEvent=function(t,e,i){this.log(t,i);let o=e?[e].concat(i):i;if(this.emitEvent(t,o),!n||!this.$element)return;let s=t+=".infiniteScroll";if(e){let i=n.Event(e);i.type=t,s=i}this.$element.trigger(s,i)};let h={initialized:t=>`on ${t}`,request:t=>`URL: ${t}`,load:(t,e)=>`${t.title||""}. URL: ${e}`,error:(t,e)=>`${t}. URL: ${e}`,append:(t,e,i)=>`${i.length} items. URL: ${e}`,last:(t,e)=>`URL: ${e}`,history:(t,e)=>`URL: ${e}`,pageIndex:function(t,e){return`current page determined to be: ${t} from ${e}`}};r.log=function(t,e){if(!this.options.debug)return;let i=`[InfiniteScroll] ${t}`,n=h[t];n&&(i+=". "+n.apply(this,e)),console.log(i)},r.updateMeasurements=function(){this.windowHeight=t.innerHeight;let e=this.element.getBoundingClientRect();this.top=e.top+t.scrollY},r.updateScroller=function(){let e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw new Error(`Unable to find elementScroll: ${e}`)}else this.scroller=t},r.updateGetPath=function(){let t=this.options.path;if(!t)return void console.error(`InfiniteScroll path option required. Set as: ${t}`);let e=typeof t;"function"!=e?"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t):this.getPath=t},r.updateGetPathTemplate=function(t){this.getPath=()=>{let e=this.pageIndex+1;return t.replace("{{#}}",e)};let e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};let a=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/],c=s.getPathParts=function(t){if(t)for(let e of a){let i=t.match(e);if(i){let[,t,e,n]=i;return{begin:t,index:e,end:n}}}};r.updateGetPathSelector=function(t){let e=document.querySelector(t);if(!e)return void console.error(`Bad InfiniteScroll path option. Next link not found: ${t}`);let i=e.getAttribute("href"),n=c(i);if(!n)return void console.error(`InfiniteScroll unable to parse next link href: ${i}`);let{begin:o,index:s,end:r}=n;this.isPathSelector=!0,this.getPath=()=>o+(this.pageIndex+1)+r,this.pageIndex=parseInt(s,10)-1,this.log("pageIndex",[this.pageIndex,"next link"])},r.updateGetAbsolutePath=function(){let t=this.getPath();if(t.match(/^http/)||t.match(/^\//))return void(this.getAbsolutePath=this.getPath);let{pathname:e}=location,i=t.match(/^\?/),n=e.substring(0,e.lastIndexOf("/")),o=i?e:n+"/";this.getAbsolutePath=()=>o+this.getPath()},s.create.hideNav=function(){let t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},s.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){this.allOff();for(let t in s.destroy)s.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},s.throttle=function(t,e){let i,n;return e=e||200,function(){let o=+new Date,s=arguments,r=()=>{i=o,t.apply(this,s)};i&&o<i+e?(clearTimeout(n),n=setTimeout(r,e)):r()}},s.data=function(t){let e=(t=i.getQueryElement(t))&&t.infiniteScrollGUID;return e&&o[e]},s.setJQuery=function(t){n=t},i.htmlInit(s,"infinite-scroll"),r._init=function(){};let{jQueryBridget:u}=t;return n&&u&&u("infiniteScroll",s,n),s})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core")):e(t,t.InfiniteScroll)}(window,(function(t,e){let i=e.prototype;Object.assign(e.defaults,{loadOnScroll:!0,checkLastPage:!0,responseBody:"text",domParseResponse:!0}),e.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},i.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()};let n=new DOMParser;function o(t){let e=document.createDocumentFragment();return t&&e.append(...t),e}return i.loadNextPage=function(){if(this.isLoading||!this.canLoad)return;let{responseBody:t,domParseResponse:e,fetchOptions:i}=this.options,o=this.getAbsolutePath();this.isLoading=!0,"function"==typeof i&&(i=i());let s=fetch(o,i).then((i=>{if(!i.ok){let t=new Error(i.statusText);return this.onPageError(t,o,i),{response:i}}return i[t]().then((s=>("text"==t&&e&&(s=n.parseFromString(s,"text/html")),204==i.status?(this.lastPageReached(s,o),{body:s,response:i}):this.onPageLoad(s,o,i))))})).catch((t=>{this.onPageError(t,o)}));return this.dispatchEvent("request",null,[o,s]),s},i.onPageLoad=function(t,e,i){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e,i]),this.appendNextPage(t,e,i)},i.appendNextPage=function(t,e,i){let{append:n,responseBody:s,domParseResponse:r}=this.options;if(!("text"==s&&r)||!n)return{body:t,response:i};let l=t.querySelectorAll(n),h={body:t,response:i,items:l};if(!l||!l.length)return this.lastPageReached(t,e),h;let a=o(l),c=()=>(this.appendItems(l,a),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,l,i]),h);return this.options.outlayer?this.appendOutlayerItems(a,c):c()},i.appendItems=function(t,e){t&&t.length&&(function(t){let e=t.querySelectorAll("script");for(let t of e){let e=document.createElement("script"),i=t.attributes;for(let t of i)e.setAttribute(t.name,t.value);e.innerHTML=t.innerHTML,t.parentNode.replaceChild(e,t)}}(e=e||o(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,n){let o=e.imagesLoaded||t.imagesLoaded;return o?new Promise((function(t){o(i,(function(){let e=n();t(e)}))})):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){let i,{checkLastPage:n,path:o}=this.options;if(n){if("function"==typeof o){if(!this.getPath())return void this.lastPageReached(t,e)}"string"==typeof n?i=n:this.isPathSelector&&(i=o),i&&t.querySelector&&(t.querySelector(i)||this.lastPageReached(t,e))}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e,i){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e,i]),t},e.create.prefill=function(){if(!this.options.prefill)return;let t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error(`append option required for prefill. Set as :${t}`)},i.prefill=function(){let t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;return Object.assign(e.defaults,{scrollThreshold:400}),e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);let t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle((function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")})),n.getBottomDistance=function(){let e,i;return this.options.elementScroll?(e=this.scroller.scrollHeight,i=this.scroller.scrollTop+this.scroller.clientHeight):(e=this.top+this.element.clientHeight,i=t.scrollY+this.windowHeight),e-i},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;Object.assign(e.defaults,{history:"replace"});let o=document.createElement("a");return e.create.history=function(){if(!this.options.history)return;o.href=this.getAbsolutePath(),(o.origin||o.protocol+"//"+o.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error(`[InfiniteScroll] cannot set history with different origin: ${o.origin} on ${location.origin} . History behavior disabled.`)},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPage=this.scrollPages[0],this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(!i||!i.length)return;let n=i[0],s=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:s,path:o.href,title:t.title})},n.getElementScrollY=function(e){if(this.options.elementScroll)return e.offsetTop-this.top;return e.getBoundingClientRect().top+t.scrollY},n.onScrollHistory=function(){let t=this.getClosestScrollPage();t!=this.scrollPage&&(this.scrollPage=t,this.setHistory(t.title,t.path))},i.debounceMethod(e,"onScrollHistory",150),n.getClosestScrollPage=function(){let e,i;e=this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.scrollY+this.windowHeight/2;for(let t of this.scrollPages){if(t.top>=e)break;i=t}return i},n.setHistory=function(t,e){let i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){if(0===this.scrollPage.top)return;let e=t.scrollY-this.scrollPage.top+this.top;this.destroyHistory(),scrollTo(0,e)},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){class n{constructor(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}onClick(t){t.preventDefault(),this.infScroll.loadNextPage()}enable(){this.element.removeAttribute("disabled")}disable(){this.element.disabled="disabled"}hide(){this.element.style.display="none"}destroy(){this.element.removeEventListener("click",this.clickHandler)}}return e.create.button=function(){let t=i.getQueryElement(this.options.button);t&&(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},e.Button=n,e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;function o(t){r(t,"none")}function s(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}return e.create.status=function(){let t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},n.bindHideStatus=function(t){let e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},n.showRequestStatus=function(){this.showStatus("request")},n.showErrorStatus=function(){this.showStatus("error")},n.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},n.showStatus=function(t){s(this.statusElement),this.hideStatusEventElements(),s(this.statusEventElements[t])},n.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},n.hideStatusEventElements=function(){for(let t in this.statusEventElements){o(this.statusEventElements[t])}},e})),
function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function r(t,e,l){if(!(this instanceof r))return new r(t,e,l);var h,a=t;("string"==typeof t&&(a=document.querySelectorAll(t)),a)?(this.elements=(h=a,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?s.call(h):[h]),this.options=o({},this.options),"function"==typeof e?l=e:o(this.options,e),l&&this.on("always",l),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(a||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var r=s[n];this.addElementBackgroundImages(r)}}}};var l={1:!0,9:!0,11:!0};function h(t){this.img=t}function a(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new h(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new a(t,e);this.images.push(i)},r.prototype.check=function(){var t=this;function e(e,i,n){setTimeout((function(){t.progress(e,i,n)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},h.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(h.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}));
(e=>{const t=(e,t)=>{const a=new RegExp("[?&]"+e.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec("&"+t);return a&&a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):""},a=(e,t,a)=>{"undefined"!=typeof MutationObserver&&new MutationObserver((e,l)=>{t?e[0].addedNodes.length&&a():(e[0].addedNodes.length||e[0].removedNodes.length)&&a()}).observe(e,{childList:!0,subtree:!0})};e(()=>{l()}),e(document).on(rlArgs.customEvents,()=>{l()});const l=()=>{const t=[];if(e(".rl-gallery-container").each((a,l)=>{const r=e(l);r.hasClass("rl-pagination-infinite")?t.push(r):r.removeClass("rl-loading")}),t.length>0){const a=[];for(let l=0;l<t.length;l++){const r=t[l],i=r.find(".rl-gallery"),o=parseInt(r.data("gallery_id")),n=r.find(".rl-pagination-bottom").data("button"),s=void 0!==n&&"manually"===n;a[l]={container:r,gallery:i,galleryId:o,galleryButton:s},a[l].gallery.infiniteScroll({path:`.rl-gallery-container[data-gallery_id="${a[l].galleryId}"] .rl-pagination-bottom .next`,append:`.rl-gallery-container[data-gallery_id="${a[l].galleryId}"] .rl-gallery-item`,status:!1,hideNav:`.rl-gallery-container[data-gallery_id="${a[l].galleryId}"] .rl-pagination-bottom`,prefill:!a[l].galleryButton,loadOnScroll:!0,scrollThreshold:!a[l].galleryButton&&400,button:!!a[l].galleryButton&&`.rl-gallery-container[data-gallery_id="${a[l].galleryId}"] .rl-load-more`,debug:!1,history:!1,responseBody:"text",onInit(){const t=a[l];t.container.hasClass("rl-pagination-infinite")&&t.galleryButton&&t.container.removeClass("rl-loading"),this.on("request",()=>{t.container.addClass("rl-loading")}),this.on("append",(a,l,r,i)=>{t.container.removeClass("rl-loading"),e.event.trigger({type:"doResponsiveLightbox",script:rlArgs.script,selector:rlArgs.selector,args:rlArgs,pagination_type:"infinite",gallery_id:t.galleryId,masonry:t.gallery.hasClass("rl-masonry-gallery")||t.gallery.hasClass("rl-basicmasonry-gallery"),delayLightbox:t.gallery.hasClass("rl-expander-gallery"),infinite:{gallery:t.gallery,body:a,items:r,response:i}})})}})}}e.event.trigger({type:"doResponsiveLightbox",script:rlArgs.script,selector:rlArgs.selector,args:rlArgs})};e(document).on("click",".rl-pagination a.page-numbers",a=>{const l=e(a.currentTarget),r=l.closest(".rl-gallery-container");if(r.hasClass("rl-pagination-ajax")){a.preventDefault(),a.stopPropagation();const i=r.data("gallery_id"),o=r.find(".rl-gallery").data("gallery_no");return r.addClass("rl-loading"),e.post(rlArgs.ajaxurl,{action:"rl-get-gallery-page-content",gallery_id:i,gallery_no:o,post_id:rlArgs.postId,page:t("rl_page",l.prop("href")),nonce:rlArgs.nonce,preview:rlArgs.preview?"true":"false",lightbox:rlArgs.script}).done(t=>{r.replaceWith(e(t).removeClass("rl-loading")),e.event.trigger({type:"doResponsiveLightbox",script:rlArgs.script,selector:rlArgs.selector,args:rlArgs,pagination_type:"ajax",gallery_id:i,gallery_no:o})}).always(()=>{r.removeClass("rl-loading")}),!1}}),e(document).on("doResponsiveLightbox",t=>{if(void 0!==t.masonry&&!0===t.masonry)return!1;const a=t.script,l=t.selector;if(void 0===a||void 0===l)return!1;const i=t.args;let o=!1;void 0!==t.delayLightbox&&!0===t.delayLightbox&&(o=!0),rl_view_image=(t,a)=>{e.event.trigger({type:"doLightboxViewImage",script:t,url:a})},rl_hide_image=(t,a)=>{e.event.trigger({type:"doLightboxHideImage",script:t,url:a})},setTimeout(()=>{const t=e(".flex-viewport");if(i.woocommerce_gallery){const l=e(".woocommerce-product-gallery");0===l.find(".woocommerce-product-gallery__trigger").length&&(l.prepend('<a href="#" class="woocommerce-product-gallery__trigger">🔍</a>'),l.on("click",".woocommerce-product-gallery__trigger",e=>{if(e.preventDefault(),e.stopPropagation(),"lightgallery"===a)if(t.length){const e=t.find(".flex-active-slide a[data-rel] img"),a=t.find(".flex-active-slide a[data-rel]").data("lg-id");e.trigger("click.lgcustom-item-"+a)}else{const e=l.find("a[data-rel]").first();e.find("img").trigger("click.lgcustom-item-"+e.data("lg-id"))}else if("fancybox_pro"===a)if(t.length){const e=t.find(".flex-active-slide").index(),a=t.find(".flex-active-slide a[data-rel]").data("fancybox");Fancybox.fromOpener(`[data-fancybox="${a}"]`,{startIndex:e})}else{const e=l.find("a[data-rel]").first();Fancybox.fromOpener(`[data-fancybox="${e.data("fancybox")}"]`,{startIndex:0})}else t.length?t.find(".flex-active-slide a[data-rel]").trigger("click"):l.find("a[data-rel]").first().trigger("click")}))}},10),o?setTimeout(()=>{r(t)},0):r(t)});const r=t=>{const l=t.script,r=t.selector,i=t.args;switch(l){case"swipebox":let o=e("#swipebox-overlay").find(".slide.current"),n="",s=!1,d=!1;e(`a[rel*="${r}"], a[data-rel*="${r}"]`).swipebox({useCSS:i.animation,useSVG:i.useSVG,hideCloseButtonOnMobile:i.hideCloseButtonOnMobile,removeBarsOnMobile:i.removeBarsOnMobile,hideBarsDelay:i.hideBars?parseInt(i.hideBarsDelay):0,videoMaxWidth:parseInt(i.videoMaxWidth),loopAtEnd:i.loopAtEnd,afterOpen:()=>{d=!1,o=e("#swipebox-overlay").find(".slide.current");const t=o.find("img").attr("src");void 0!==t?(n=t,rl_view_image(l,n)):n="",a(document.getElementById("swipebox-slider"),!1,()=>{if(""===n){const e=o.find("img").attr("src");void 0!==e?(n=e,rl_view_image(l,n)):n=""}})},nextSlide:()=>{o=e("#swipebox-overlay").find(".slide.current");const t=o.find("img").attr("src");void 0!==t?(n=t,rl_view_image(l,n)):n=""},prevSlide:()=>{o=e("#swipebox-overlay").find(".slide.current");const t=o.find("img").attr("src");void 0!==t?(n=t,rl_view_image(l,n)):n=""},afterClose:()=>{d=!0,s&&(rl_hide_image(l,n),s=!1)}}),e(window).on("resize",()=>{d||(s=!0)});break;case"prettyphoto":let c=!1,g="";e(`a[rel*="${r}"], a[data-rel*="${r}"]`).each((t,a)=>{const l=e(a);let r=l.data("rl_title"),i=l.data("rl_caption");if(r=r?r.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",i=i?i.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",l.attr("title",i),r){const e=l.find("img"),t=e.attr("alt");void 0!==t&&""!==t||e.attr("alt",r)}}),e(`a[rel*="${r}"], a[data-rel*="${r}"]`).prettyPhoto({hook:"data-rel",animation_speed:i.animationSpeed,slideshow:!!i.slideshow&&parseInt(i.slideshowDelay),autoplay_slideshow:i.slideshowAutoplay,opacity:i.opacity,show_title:i.showTitle,allow_resize:i.allowResize,allow_expand:i.allowExpand,default_width:parseInt(i.width),default_height:parseInt(i.height),counter_separator_label:i.separator,theme:i.theme,horizontal_padding:parseInt(i.horizontalPadding),hideflash:i.hideFlash,wmode:i.wmode,autoplay:i.videoAutoplay,modal:i.modal,deeplinking:i.deeplinking,overlay_gallery:i.overlayGallery,keyboard_shortcuts:i.keyboardShortcuts,social_tools:i.social?`<div class="pp_social"><div class="twitter"><a href="//twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href=${location.href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>`:"",ie6_fallback:!0,changepicturecallback:()=>{c?c=!1:(g=e("#pp_full_res").find("img").attr("src"),rl_view_image(l,g),i.allowExpand&&e("a.pp_expand").on("click",()=>{c=!0}))},callback:()=>{rl_hide_image(l,g)}});break;case"nivo":e.each(e(`a[rel*="${r}"], a[data-rel*="${r}"]`),(t,a)=>{const l=e(a);let i=l.attr("data-rel");void 0!==i&&0!=i||(i=l.attr("rel")),void 0!==i&&!1!==i&&i.startsWith(r+"-gallery-")&&l.attr("data-lightbox-gallery",i)});let p=!1,h=!0,m="";e(`a[rel*="${r}"], a[data-rel*="${r}"]`).nivoLightbox({effect:i.effect,clickOverlayToClose:i.clickOverlayToClose,keyboardNav:i.keyboardNav,errorMessage:i.errorMessage,afterShowLightbox:t=>{const r=e(t)[0].find(".nivo-lightbox-content");p||(p=!0,a(document.getElementsByClassName("nivo-lightbox-content")[0],!0,()=>{h&&(m=r.find(".nivo-lightbox-image img").attr("src"),rl_view_image(l,m),h=!1)}))},afterHideLightbox:()=>{h=!0,rl_hide_image(l,m)},onPrev:e=>{h=!1,m=e[0].attr("href"),rl_view_image(l,m)},onNext:e=>{h=!1,m=e[0].attr("href"),rl_view_image(l,m)}});break;case"imagelightbox":let f=[],u="";e(`a[rel*="${r}"], a[data-rel*="${r}"]`).each((t,a)=>{let l=e(a).attr("data-rel");void 0!==l&&!1!==l&&"norl"!==l?f.push(l):(l=e(a).attr("rel"),void 0!==l&&!1!==l&&"norl"!==l&&f.push(l))}),f.length>0&&(f=_.uniq(f),e(f).each((a,r)=>{void 0!==t.pagination_type&&e(`a[data-rel="${r}"], a[rel="${r}"]`).each((t,a)=>{e(a).off("click.imageLightbox")}),e(`a[data-rel="${r}"], a[rel="${r}"]`).imageLightbox({animationSpeed:parseInt(i.animationSpeed),preloadNext:i.preloadNext,enableKeyboard:i.enableKeyboard,quitOnEnd:i.quitOnEnd,quitOnImgClick:i.quitOnImageClick,quitOnDocClick:i.quitOnDocumentClick,onLoadEnd:()=>{u=e("#imagelightbox").attr("src"),rl_view_image(l,u)},onEnd:()=>{rl_hide_image(l,u)}})}));break;case"tosrus":let y=[],w="";e(`a[rel*="${r}"], a[data-rel*="${r}"]`).each((t,a)=>{let l=e(a).attr("data-rel");void 0!==l&&!1!==l&&"norl"!==l?y.push(l):(l=e(a).attr("rel"),void 0!==l&&!1!==l&&"norl"!==l&&y.push(l))}),y.length>0&&(y=_.uniq(y),e(y).each((a,r)=>{void 0!==t.pagination_type&&(e("body").find(".tosrus-"+r).remove(),e(`a[data-rel="${r}"], a[rel="${r}"]`).each((t,a)=>{e(a).off("click.tos")}));const o=e(`a[data-rel="${r}"], a[rel="${r}"]`).tosrus({drag:!0,infinite:i.infinite,autoplay:{play:i.autoplay,pauseOnHover:i.pauseOnHover,timeout:i.timeout},effect:i.effect,keys:{prev:i.keys,next:i.keys,close:i.keys},pagination:{add:i.pagination,type:i.paginationType},show:!1,buttons:!0,caption:{add:!0,attributes:["title"]},wrapper:{classes:"tosrus-"+r,onClick:i.closeOnClick?"close":"toggleUI"}});o.on("sliding.tos",(t,a)=>{w=e(e(t.target).find(".tos-slider .tos-slide")[a]).find("img").attr("src"),rl_view_image(l,w)}),o.on("closing.tos",()=>{rl_hide_image(l,w)})}));break;case"featherlight":{delete e.featherlight.contentFilters.jquery,e.extend(e.featherlight.contentFilters,{html:{regex:/[^]/,process:t=>e("<div>",{text:t})}}),e.featherlight.contentFilters.ajax.process=function(t){var a=e("<div/>");return e.get(t).done(function(e){a.html(window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(e):e)}).fail(function(){a.text("No content found.")}).promise(a)},e.featherlight.contentFilters.iframe.process=function(t){if(window.RLG&&window.RLG.isAllowedEmbedUrl&&!window.RLG.isAllowedEmbedUrl(t)){var a=e("<div/>");return a.text("Iframe not allowed."),a.contents()}var l=e("<div/>"),r=e("<iframe>",{src:t});return r.attr({allowfullscreen:"",webkitallowfullscreen:"",mozallowfullscreen:""}),l.append(r),l.contents()},e.featherlight.contentFilters.image.process=function(t){if(window.RLG&&window.RLG.isAllowedMediaUrl&&!window.RLG.isAllowedMediaUrl(t)){var a=e("<div/>");return a.text("Image not allowed."),a.contents()}var l=e.Deferred(),r=new Image,i=e("<img>",{alt:"",class:this.namespace+"-image"});return r.onload=function(){i.naturalWidth=r.width,i.naturalHeight=r.height,l.resolve(i)},r.onerror=function(){l.reject(i)},i.attr("src",t),r.src=t,l.promise()},e.featherlight.readElementConfig=function(e,t){return{}};let a=[],o="";e('a[rel*="'+r+'"], a[data-rel*="'+r+'"]').each((t,l)=>{let r=e(l).attr("data-rel");void 0!==r&&!1!==r&&"norl"!==r?a.push(r):(r=e(l).attr("rel"),void 0!==r&&!1!==r&&"norl"!==r&&a.push(r))}),a.length>0&&(a=_.uniq(a),e.extend(e.featherlight.defaults,{contentFilters:["image","html","ajax","iframe","text"],openSpeed:parseInt(i.openSpeed),closeSpeed:parseInt(i.closeSpeed),closeOnClick:i.closeOnClick,closeOnEsc:i.closeOnEsc,afterOpen:e=>{o=e.currentTarget.href,rl_view_image(l,o)},afterClose:()=>{rl_hide_image(l,o)}}),e(a).each((a,l)=>{void 0!==t.pagination_type&&e('a[data-rel="'+l+'"], a[rel="'+l+'"]').each((t,a)=>{e(a).off("click.featherlight")}),/-gallery-/.test(l)?e('a[data-rel="'+l+'"], a[rel="'+l+'"]').featherlightGallery({galleryFadeIn:parseInt(i.galleryFadeIn),galleryFadeOut:parseInt(i.galleryFadeOut),previousIcon:"&#10094;",nextIcon:"&#10095;"}):(/-video-/.test(l),e('a[data-rel="'+l+'"], a[rel="'+l+'"]').featherlight())}));break}case"magnific":{let t=[];e('a[rel*="'+r+'"], a[data-rel*="'+r+'"]').each((a,l)=>{let r=e(l).attr("data-rel");void 0!==r&&!1!==r&&"norl"!==r?t.push(r):(r=e(l).attr("rel"),void 0!==r&&!1!==r&&"norl"!==r&&t.push(r))}),t.length>0&&(t=_.uniq(t),e(t).each((t,a)=>{const r=e('a[data-rel="'+a+'"], a[rel="'+a+'"]'),o=e(r[0]);let n=o.data("magnific_type");const s=o.data("rl_content");void 0!==s&&(n=s),void 0===n&&(n="image");let d="auto",c="auto";"true"===i.fixedContentPos?d=!0:"false"===i.fixedContentPos&&(d=!1),"true"===i.fixedBgPos?c=!0:"false"===i.fixedBgPos&&(c=!1),r.magnificPopup({allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!0,type:"gallery"===n?"image":"video"===n?"iframe":n,disableOn:i.disableOn,midClick:i.midClick,preloader:i.preloader,closeOnContentClick:i.closeOnContentClick,closeOnBgClick:i.closeOnBgClick,closeBtnInside:i.closeBtnInside,showCloseBtn:i.showCloseBtn,enableEscapeKey:i.enableEscapeKey,alignTop:i.alignTop,autoFocusLast:i.autoFocusLast,fixedContentPos:d,fixedBgPos:c,image:{titleSrc:e=>{let t=e.el.data("rl_title"),a=e.el.data("rl_caption");return t=t?t.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",a=a?a.replace(/[^]/g,e=>"&#"+e.charCodeAt(0)+";"):"",t+"<small>"+a+"</small>"}},gallery:{enabled:r.length>1&&"gallery"===n,navigateByImgClick:!0,preload:[0,1]},callbacks:{close(){rl_hide_image(l,this.currItem.src)},imageLoadComplete(){rl_view_image(l,this.currItem.src)},elementParse:e=>{e.src.trim().includes("<")&&("inline"===e.type?e.src="<div>HTML is disallowed.</div>":"iframe"!==e.type&&"ajax"!==e.type||(e.src=""))}}})}));break}case"glightbox":{void 0!==window.rl_glightbox&&null!==window.rl_glightbox&&window.rl_glightbox.destroy();const t=`a[rel*="${r}"]:not([rel*="-video-"]), a[data-rel*="${r}"]:not([data-rel*="-video-"])`;e(t).each((t,a)=>{const l=e(a),r=l.data("rl_title"),i=l.data("rl_caption");r&&l.attr("data-title",window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(r):r),i&&l.attr("data-description",window.RLG&&window.RLG.sanitizeHtml?window.RLG.sanitizeHtml(i):i);const o=l.attr("data-rel")||l.attr("rel");o&&l.attr("data-gallery",o)}),window.rl_glightbox=GLightbox({selector:t,slideEffect:i.slideEffect,closeButton:i.closeButton,touchNavigation:i.touchNavigation,keyboardNavigation:i.keyboardNavigation,closeOnOutsideClick:i.closeOnOutsideClick,loop:i.loop,zoomable:i.zoomable,moreLength:0,preload:!1}),window.rl_glightbox.on("slide_after_load",e=>{rl_view_image(l,e.slideConfig.href)}),window.rl_glightbox.on("close",()=>{const e=window.rl_glightbox.index,t=window.rl_glightbox.elements[e];t&&t.href&&rl_hide_image(l,t.href)});break}}}})(jQuery);
(function (){
"use strict";
function initButton(){
var buttonPath=document.querySelector('.smooth-back-to-top-button path, .smooth-back-to-top-button rect');
if(!buttonPath){
return;
}
var pathLength=buttonPath.getTotalLength();
buttonPath.style.strokeDasharray=pathLength + ' ' + pathLength;
buttonPath.style.strokeDashoffset=pathLength;
var isTicking=false;
var updateButtonProgress=function (){
var scroll=window.scrollY;
var height=document.documentElement.scrollHeight - window.innerHeight;
var progress=height > 0 ? pathLength - (scroll * pathLength / height):pathLength;
buttonPath.style.strokeDashoffset=progress;
isTicking=false;
};
var onScroll=function (){
if(!isTicking){
window.requestAnimationFrame(updateButtonProgress);
isTicking=true;
}};
updateButtonProgress();
window.addEventListener('scroll', onScroll, { passive: true });
}
if(document.readyState==='loading'){
document.addEventListener('DOMContentLoaded', initButton);
}else{
initButton();
}})();
! function(t, e){
"use strict";
"object"==typeof module&&"object"==typeof module.exports&&(module.exports=t.document ? void 0:function(t){
if(!t.document) throw new Error("jQuery requires a window with a document")
})
}("undefined"!=typeof window ? window:this),
function(t){
"use strict";
t.t4bnewsTicker=function(e, i){
var s={
effect: "scroll",
direction: "ltr",
height: 40,
titleFontSize: "default",
fontSize: "default",
titleFontColor: "default",
fontColor: "default",
mouseOver: "default",
themeColor: "default",
background: "default",
controlColor: "default",
iconColor: "default",
separator: "default",
imgmaxWidth: 32,
imgminWidth: 16,
borderWidth: 1,
radius: 2,
source: "html",
rss2jsonApiKey: "",
play: !0,
delayTimer: 4e3,
scrollSpeed: 2,
scrWidth: 1,
fadeInSpeed: 600,
typoSpeed: 1500,
stopOnHover: !0,
position: "auto",
zIndex: 99999
},
n=this;
n.settings={};
var r=t(e),
o=(e=e, r.children(".t4b-label")),
a=r.children(".t4b-news"),
l=a.children("ul"),
c=l.children("li"),
d=r.children(".t4b-controls"),
f=d.find(".t4b-prev").parent(),
h=d.find(".t4b-action").parent(),
u=d.find(".t4b-next").parent(),
g = !1,
p = !0,
m=l.children("li").length,
b=0,
y = !1,
sw=a.attr('data-id'),
ss=a.attr('data-start'),
screenwidth=document.documentElement.clientWidth;
var j;
if(screenwidth > 2048){
j=(screenwidth - l.outerWidth()) * sw*0.71;
}else if(screenwidth > 1856&&screenwidth <=2048){
j=(screenwidth - l.outerWidth()) * sw/1.58;
}else if(screenwidth > 1600&&screenwidth <=1856){
j=(screenwidth - l.outerWidth()) * sw/1.5;
}else if(screenwidth > 1400&&screenwidth <=1600){
j=(screenwidth - l.outerWidth()) * sw/1.28;
}else if(screenwidth > 1280&&screenwidth <=1400){
j=(screenwidth - l.outerWidth()) * sw/1.02;
}else if(screenwidth > 1024&&screenwidth <=1280){
j=(screenwidth - l.outerWidth()) * sw*1.36;
}else if(screenwidth > 640&&screenwidth <=1024){
j=(screenwidth - l.outerWidth()) * sw*3.5;
}else{
j=(screenwidth - l.outerWidth()) * sw*0.3;
}
var	scrwidth=screenwidth - j - ss,
z=scrwidth,
w=function(){
if(0 < o.length&&("rtl"==n.settings.direction ? a.css({
right: o.outerWidth()
}):a.css({
left: o.outerWidth()
})), 0 < d.length){
var e=d.outerWidth();
"rtl"==n.settings.direction ? a.css({
left: e
}):a.css({
right: e
})
}
if("scroll"===n.settings.effect){
var i=0;
c.each(function(){
i +=t(this).outerWidth()
}), i +=1000, l.css({
width: i
})
}},
k=function(){
var width=0;
c.each(function(){
width +=c.width();
});
if(c.length===1){
var t=parseFloat(z, l.css("marginLeft"));
t -=n.settings.scrollSpeed / 2, l.css({
marginLeft: t
}), t <=-l.find("li:first-child").outerWidth()&&(l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginLeft: l.outerWidth() - width
}), z=scrwidth), !1===g&&(window.requestAnimationFrame&&requestAnimationFrame(k)||setTimeout(k, 16))
}
else if((c.length > 1&&c.length < 10)&&width < scrwidth){
var t=parseFloat(z, l.css("marginLeft"));
t -=n.settings.scrollSpeed / 2, l.css({
marginLeft: t
}), t / c.length <=-l.find("li:first-child").outerWidth()&&(l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginLeft: l.outerWidth() - width
}), z=scrwidth), !1===g&&(window.requestAnimationFrame&&requestAnimationFrame(k)||setTimeout(k, 16))
}else{
var t=parseFloat(l.css("marginLeft"));
t -=n.settings.scrollSpeed / 2, l.css({
marginLeft: t
}), t <=-l.find("li:first-child").outerWidth()&&(l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginLeft: 0
})), !1===g&&(window.requestAnimationFrame&&requestAnimationFrame(k)||setTimeout(k, 16))
}
z--;
},
v=function(){
var width=0;
c.each(function(){
width +=c.width();
});
if(c.length===1){
var t=parseFloat(z, l.css("marginRight"));
t -=n.settings.scrollSpeed / 2, l.css({
marginRight: t
}), t <=-l.find("li:first-child").outerWidth()&&(l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginRight: l.outerWidth() - width
}), z=scrwidth), !1===g&&(window.requestAnimationFrame&&requestAnimationFrame(v)||setTimeout(v, 16))
}
else if((c.length > 1&&c.length < 10)&&width < scrwidth){
var t=parseFloat(z, l.css("marginRight"));
t -=n.settings.scrollSpeed / 2, l.css({
marginRight: t
}), t / c.length <=-l.find("li:first-child").outerWidth()&&(l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginRight: l.outerWidth() - width
}), z=scrwidth), !1===g&&(window.requestAnimationFrame&&requestAnimationFrame(v)||setTimeout(v, 16))
}else{
var t=parseFloat(l.css("marginRight"));
t -=n.settings.scrollSpeed / 2, l.css({
marginRight: t
}), t <=-l.find("li:first-child").outerWidth()&&(l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginRight: 0
})), !1===g&&(window.requestAnimationFrame&&requestAnimationFrame(v)||setTimeout(v, 16))
}
z--;
},
q=function(){
switch (p = !0, n.settings.effect){
case "typography":
l.find("li").hide(), l.find("li").eq(b).width(60).show(), l.find("li").eq(b).animate({
width: "100%",
opacity: 1
}, n.settings.typoSpeed);
break;
case "fade":
l.find("li").hide(), l.find("li").eq(b).fadeIn(n.settings.fadeInSpeed);
break;
case "slide-down":
m <=1 ? l.find("li").animate({
top: 30,
opacity: 0
}, 300, function(){
t(this).css({
top: -30,
opacity: 0,
display: "block"
}), t(this).animate({
top: 0,
opacity: 1
}, 300)
}):(l.find("li:visible").animate({
top: 30,
opacity: 0
}, 300, function(){
t(this).hide()
}), l.find("li").eq(b).css({
top: -30,
opacity: 0
}).show(), l.find("li").eq(b).animate({
top: 0,
opacity: 1
}, 300));
break;
case "slide-up":
m <=1 ? l.find("li").animate({
top: -30,
opacity: 0
}, 300, function(){
t(this).css({
top: 30,
opacity: 0,
display: "block"
}), t(this).animate({
top: 0,
opacity: 1
}, 300)
}):(l.find("li:visible").animate({
top: -30,
opacity: 0
}, 300, function(){
t(this).hide()
}), l.find("li").eq(b).css({
top: 30,
opacity: 0
}).show(), l.find("li").eq(b).animate({
top: 0,
opacity: 1
}, 300));
break;
case "slide-left":
m <=1 ? l.find("li").animate({
left: "50%",
opacity: 0
}, 300, function(){
t(this).css({
left: -50,
opacity: 0,
display: "block"
}), t(this).animate({
left: 0,
opacity: 1
}, 300)
}):(l.find("li:visible").animate({
left: "50%",
opacity: 0
}, 300, function(){
t(this).hide()
}), l.find("li").eq(b).css({
left: -50,
opacity: 0
}).show(), l.find("li").eq(b).animate({
left: 0,
opacity: 1
}, 300));
break;
case "slide-right":
m <=1 ? l.find("li").animate({
left: "-50%",
opacity: 0
}, 300, function(){
t(this).css({
left: "50%",
opacity: 0,
display: "block"
}), t(this).animate({
left: 0,
opacity: 1
}, 300)
}):(l.find("li:visible").animate({
left: "-50%",
opacity: 0
}, 300, function(){
t(this).hide()
}), l.find("li").eq(b).css({
left: "50%",
opacity: 0
}).show(), l.find("li").eq(b).animate({
left: 0,
opacity: 1
}, 300));
break;
default:
l.find("li").hide(), l.find("li").eq(b).show()
}},
x=function(){
if(g = !1, n.settings.play) switch (n.settings.effect){
case "scroll":
"rtl"===n.settings.direction ? l.width() > a.width()&&v():l.width() > a.width()&&k();
break;
default:
n.pause(), y=setInterval(function(){
n.next();
}, n.settings.delayTimer)
}};
n.init=function(){
if(n.settings=t.extend({}, s, i), "fixed-top"===n.settings.position ? r.addClass("t4b-fixed-top").css({
"z-index": n.settings.zIndex
}):"fixed-bottom"===n.settings.position&&r.addClass("t4b-fixed-bottom").css({
"z-index": n.settings.zIndex
}), "default"!==n.settings.titleFontSize&&o.css({
"font-size": n.settings.titleFontSize
}), "default"!==n.settings.titleFontColor&&o.css({
"color": n.settings.titleFontColor
}), "default"!==n.settings.fontColor&&(c.css({
"color": n.settings.fontColor
}), c.find("a").css({
"color": n.settings.fontColor
})), "default"!==n.settings.mouseOver&&c.on("mouseover", function(){
c.find("a").css("color", n.settings.mouseOver);
c.css("color", n.settings.mouseOver);
}) .on("mouseout", function(){
c.find("a").css("color", n.settings.fontColor);
c.css("color", n.settings.fontColor);
}), "default"!==n.settings.fontSize&&c.css({
"font-size": n.settings.fontSize
}), "default"!==n.settings.separator&&c.find(".t4b-separator").css({
"background-image": n.settings.separator
}), "default"!==n.settings.themeColor&&(r.css({
"border-color": n.settings.themeColor,
"color": n.settings.themeColor
}), o.css({
"background": n.settings.themeColor
})), "default"!==n.settings.background&&r.css({
"background": n.settings.background
}), "default"!==n.settings.controlColor&&r.find(".t4b-controls button").css({
"background": n.settings.controlColor
}), "default"!==n.settings.iconColor&&r.find(".t4b-controls span").css({
"color": n.settings.iconColor
}), r.css({
"height": n.settings.height,
"line-height": n.settings.height - 2 * n.settings.borderWidth + "px",
"border-radius": n.settings.radius,
"border-width": n.settings.borderWidth
}), c.css({
"line-height": n.settings.height - 2 * n.settings.borderWidth + "px"
}), c.find(".t4b-separator").css({
"height": n.settings.height - 2 * n.settings.borderWidth
}), 32!==n.settings.imgmaxWidth&&c.find(".t4b-separator").css({
"max-width": n.settings.imgmaxWidth + "px"
}), 16!==n.settings.imgminWidth&&c.find(".t4b-separator").css({
"min-width": n.settings.imgminWidth + "px"
}), r.addClass("t4b-effect-" + n.settings.effect + " t4b-direction-" + n.settings.direction), w(), "object"==typeof n.settings.source) switch (n.settings.source.type){
case "rss":
"rss2json"===n.settings.source.usingApi ? ((d=new XMLHttpRequest).onreadystatechange=function(){
if(4==d.readyState&&200==d.status){
var t=JSON.parse(d.responseText),
e="",
i="";
switch (n.settings.source.showingField){
case "title":
i="title";
break;
case "body":
i="body";
break;
case "link":
i="link";
break;
default:
i="title"
}
var s="";
void 0!==n.settings.source.separator&&void 0!==typeof n.settings.source.separator&&(s=n.settings.source.separator);
for (var r=0; r < t.items.length; r++) n.settings.source.linkEnabled ? e +='<li><a target="' + n.settings.source.target + '" href="' + t.items[r].link + '">' + s + t.items[r][i] + "</a></li>":e +="<li><a>" + s + t.items[r][i] + "</a></li>";
l.empty().append(e), c=l.children("li"), m=l.children("li").length, w(), "scroll"!=n.settings.effect&&q(), c.find(".t4b-separator").css({
height: n.settings.height - 2 * n.settings.borderWidth
}), 32!==n.settings.source.imgmaxWidth&&c.find(".t4b-separator").css({
"max-width": n.settings.source.imgmaxWidth + "px"
}), 16!==n.settings.source.imgminWidth&&c.find(".t4b-separator").css({
"min-width": n.settings.source.imgminWidth + "px"
}), "default"!==n.settings.fontSize&&(c.css({
"font-size": n.settings.fontSize
}), c.find("a").css({
"font-size": n.settings.fontSize
})), "default"!==n.settings.fontColor&&(c.css({
"color": n.settings.fontColor
}), c.find("a").css({
"color": n.settings.fontColor,
})), "default"!==n.settings.mouseOver&&c.hover(function(){
c.find("a").css("color", n.settings.mouseOver);
c.css("color", n.settings.mouseOver);
}, function(){
c.find("a").css("color", n.settings.fontColor);
c.css("color", n.settings.fontColor);
}), c.css({
"line-height": n.settings.height - 2 * n.settings.borderWidth + "px"
}), x()
}}, d.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=" + n.settings.source.url + "&count=" + n.settings.source.limit + "&api_key=" + n.settings.source.rss2jsonApiKey, !0), d.send()):((e=new XMLHttpRequest).open("GET", "https://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent('select * from rss where url="' + n.settings.source.url + '" limit ' + n.settings.source.limit) + "&format=json", !0), e.onreadystatechange=function(){
if(4==e.readyState)
if(200==e.status){
var t=JSON.parse(e.responseText),
i="",
s="";
switch (n.settings.source.showingField){
case "title":
s="title";
break;
case "description":
s="description";
break;
case "link":
s="link";
break;
default:
s="title"
}
var r="";
"undefined"!=n.settings.source.separator&&void 0!==n.settings.source.separator&&(r=n.settings.source.separator);
for (var o=0; o < t.query.results.item.length; o++) n.settings.source.linkEnabled ? i +='<li><a target="' + n.settings.source.target + '" href="' + t.query.results.item[o].link + '">' + r + t.query.results.item[o][s] + "</a></li>":i +="<li><a>" + r + t.query.results.item[o][s] + "</a></li>";
l.empty().append(i), c=l.children("li"), m=l.children("li").length, w(), "scroll"!=n.settings.effect&&q(), c.find(".t4b-separator").css({
height: n.settings.height - 2 * n.settings.borderWidth
}), x()
} else l.empty().append('<li><span class="t4b-loader-text">' + n.settings.source.errorMsg + "</span></li>")
}, e.send(null));
break;
case "json":
t.getJSON(n.settings.source.url, function(t){
var e, i="";
e="undefined"===n.settings.source.showingField ? "title":n.settings.source.showingField;
var s="";
void 0!==n.settings.source.separator&&void 0!==typeof n.settings.source.separator&&(s=n.settings.source.separator);
for (var r=0; r < t.length&&!(r >=n.settings.source.limit); r++) n.settings.source.linkEnabled ? i +='<li><a target="' + n.settings.source.target + '" href="' + t[r].link + '">' + s + t[r][e] + "</a></li>":i +="<li><a>" + s + t[r][e] + "</a></li>", "undefined"===t[r][e]&&console.log('"' + e + '" does not exist in this json.');
l.empty().append(i), c=l.children("li"), m=l.children("li").length, w(), "scroll"!=n.settings.effect&&q(), c.find(".t4b-separator").css({
height: n.settings.height - 2 * n.settings.borderWidth
}), "default"!==n.settings.fontSize&&(c.css({
"font-size": n.settings.fontSize
}), c.find("a").css({
"font-size": n.settings.fontSize
})), "default"!==n.settings.fontColor&&(c.css({
"color": n.settings.fontColor
}), c.find("a").css({
"color": n.settings.fontColor,
})), "default"!==n.settings.mouseOver&&c.hover(function(){
c.find("a").css("color", n.settings.mouseOver);
c.css("color", n.settings.mouseOver);
}, function(){
c.find("a").css("color", n.settings.fontColor);
c.css("color", n.settings.fontColor);
}), c.css({
"line-height": n.settings.height - 2 * n.settings.borderWidth + "px"
}), x()
});
break;
default:
console.log('Please check your "source" object parameter. Incorrect Value')
} else "html"===n.settings.source ? ("scroll"!=n.settings.effect&&q(), x()):console.log('Please check your "source" parameter. Incorrect Value');
var e, d;
n.settings.play ? h.find("span").removeClass("t4b-play").addClass("t4b-pause"):h.find("span").removeClass("t4b-pause").addClass("t4b-play"), r.on("mouseleave", function(e){
var i=t(document.elementFromPoint(e.clientX, e.clientY)).parents(".t4b-news-ticker")[0];
t(this)[0]!==i&&(!0===n.settings.stopOnHover ? !0===n.settings.play&&n.play():!0===n.settings.play&&!0===g&&n.play())
}), r.on("mouseenter", function(){
!0===n.settings.stopOnHover&&n.pause()
}), u.on("click", function(){
p&&(p = !1, n.pause(), n.next())
}), f.on("click", function(){
p&&(p = !1, n.pause(), n.prev())
}), h.on("click", function(){
p&&(h.find("span").hasClass("t4b-pause") ? (h.find("span").removeClass("t4b-pause").addClass("t4b-play"), n.stop()):(n.settings.play = !0, h.find("span").removeClass("t4b-play").addClass("t4b-pause")))
}), t(window).on("resize", function(){
r.width() < 480 ? (o.hide(), "rtl"==n.settings.direction ? a.css({
right: 0
}):a.css({
left: 0
})):(o.show(), "rtl"==n.settings.direction ? a.css({
right: o.outerWidth()
}):a.css({
left: o.outerWidth()
}))
})
}, n.pause=function(){
g = !0, clearInterval(y)
}, n.stop=function(){
g = !0, n.settings.play = !1
}, n.play=function(){
x()
}, n.next=function(){
! function(){
switch (n.settings.effect){
case "scroll":
"rtl"===n.settings.direction ? l.stop().animate({
marginRight: -l.find("li:first-child").outerWidth()
}, 300, function(){
l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginRight: 0
}), p = !0
}):l.stop().animate({
marginLeft: -l.find("li:first-child").outerWidth()
}, 300, function(){
l.find("li:first-child").insertAfter(l.find("li:last-child")), l.css({
marginLeft: 0
}), p = !0
});
break;
default:
m <=++b&&(b=0), q()
}}()
}, n.prev=function(){
! function(){
switch (n.settings.effect){
case "scroll":
"rtl"===n.settings.direction ? (0 <=parseInt(l.css("marginRight"), 10)&&(l.css({
"margin-right": -l.find("li:last-child").outerWidth()
}), l.find("li:last-child").insertBefore(l.find("li:first-child"))), l.stop().animate({
marginRight: 0
}, 300, function(){
p = !0
})):(0 <=parseInt(l.css("marginLeft"), 10)&&(l.css({
"margin-left": -l.find("li:last-child").outerWidth()
}), l.find("li:last-child").insertBefore(l.find("li:first-child"))), l.stop().animate({
marginLeft: 0
}, 300, function(){
p = !0
}));
break;
default:
--b < 0&&(b=m - 1), q()
}}()
}, n.init()
}, t.fn.t4bnewsTicker=function(e){
return this.each(function(){
if(null==t(this).data("t4bnewsTicker")){
var i=new t.t4bnewsTicker(this, e);
t(this).data("t4bnewsTicker", i)
}})
}}(jQuery);
(function($){
'use strict';
$.fn.t4bScrollTicker=function(options){
let opts=$.extend({}, $.fn.t4bScrollTicker.defaults, options);
let thisTicker=$(this), intervalID, timeoutID, isPause=false;
thisTicker.wrap("<div class='t4bscrollticker-wrap'></div>");
thisTicker.parent().css({
position: 'relative'
})
thisTicker.children("li").not(":first").hide();
init();
function init(){
switch (opts.type){
case 'vertical':
case 'horizontal':
vertiZontal()
break;
case 'marquee':
marQuee()
break;
case 'typewriter':
typeWriter()
break;
default:
break
}}
function vertiZontal(prevNext=false){
let speed=opts.speed,
autoplay=opts.autoplay,
direction=opts.direction;
if(prevNext){
speed=0;
autoplay=0;
clearInterval(intervalID);
intervalID=false;
}
function play(){
if(isPause){
clearInterval(intervalID);
intervalID=false;
return false;
}
let dChild,
eqType,
mType,
mVal;
dChild=thisTicker.find('li:first');
if(direction==='up'||direction==='right'){
eqType='-=';
}else{
eqType='+=';
}
if(opts.type==='horizontal'){
mType='left';
mVal=dChild.outerWidth(true);
}else{
mType='margin-top';
mVal=dChild.outerHeight(true);
}
if(prevNext==='prev'){
thisTicker.find('li:last').detach().prependTo(thisTicker);
}else{
dChild.detach().appendTo(thisTicker);
}
thisTicker.find('li').css({
opacity: '0',
display: 'none'
});
thisTicker.find('li:first').css({
opacity: '1',
position: 'absolute',
display: 'block',
[mType]: eqType + mVal + 'px',
});
thisTicker.find('li:first').animate({[mType]: '0px'},
speed,
function (){
clearInterval(intervalID);
intervalID=false;
vertiZontal();
});
}
if(intervalID){
return false
}
intervalID=setInterval(play, autoplay);
}
function typeWriter(prevNext=false){
if(isPause){
return false;
}
if(prevNext){
clearInterval(intervalID);
intervalID=false;
clearTimeout(timeoutID);
timeoutID=false;
if(prevNext==='prev'){
thisTicker.find('li:last').detach().prependTo(thisTicker);
}else{
thisTicker.find('li:first').detach().appendTo(thisTicker);
}}
let speed=opts.speed,
autoplay=opts.autoplay,
typeEl=thisTicker.find('li:first'),
wrapEl=typeEl.children(),
count=0;
if(typeEl.attr('data-text')){
wrapEl.text(typeEl.attr('data-text'))
}
let allText=typeEl.text();
thisTicker.find('li').css({
opacity: '0',
display: 'none'
});
function tNext(){
thisTicker.find('li:first').detach().appendTo(thisTicker);
clearTimeout(timeoutID);
timeoutID=false;
typeWriter();
}
function type(){
count++;
let typeText=allText.substring(0, count);
if(!typeEl.attr('data-text')){
typeEl.attr('data-text',allText);
}
if(count <=allText.length){
wrapEl.text(typeText);
typeEl.css({
opacity: '1',
display: 'block',
});
}else{
clearInterval(intervalID);
intervalID=false;
timeoutID=setTimeout(tNext, autoplay);
}}
if(!intervalID){
intervalID=setInterval(type, speed);
}}
function marQuee(){
let speed=opts.speed,
direction=opts.direction,
wrapWidth,
dir='left',
totalTravel,
defTiming,
listWidth=0,
mPause=false;
mInit();
function mInit(){
thisTicker.css({
position: 'absolute'
});
thisTicker.find('li').css({
display: 'inline',
marginRight: '20px',
});
let tickerList=thisTicker.find("li");
wrapWidth=thisTicker.parent().outerWidth(true);
if(direction==='right'){
dir='right'
}
thisTicker.width(10000);
tickerList.each(function(){
listWidth +=$(this).outerWidth(true)+5;
});
thisTicker.width(listWidth);
thisTicker.css({
[dir]: wrapWidth
});
totalTravel=listWidth + wrapWidth;
defTiming=totalTravel / speed;
marQueeIt(totalTravel, listWidth*2/speed);
}
function marQueeIt(lPos, lSpeed){
thisTicker.animate({ [dir]: '-=' + lPos },
lSpeed,
"linear",
function(){
thisTicker.css({
[dir]: wrapWidth
});
marQueeIt(totalTravel, defTiming);
}
);
}
function mRestart(){
let offset=thisTicker.offset(),
rOffset=direction==='right'?(listWidth-offset.left):offset.left,
remainingSpace=rOffset + listWidth,
remainingTime=remainingSpace/speed;
marQueeIt(remainingSpace, remainingTime);
}
opts.controls.toggle&&opts.controls.toggle.on('click', function(e){
mPause = !mPause;
$(document).trigger('t4bScrollTickerToggle', thisTicker, mPause)
if(mPause){
thisTicker.stop();
$("#" + opts.tickerID).addClass("t4b-ticker-pause");
}else{
mRestart();
$("#" + opts.tickerID).removeClass("t4b-ticker-pause");
}});
if(opts.pauseOnHover){
thisTicker.mouseenter(function(){
thisTicker.stop();
$("#" + opts.tickerID).addClass("t4b-ticker-pause");
}).mouseleave(function(){
mRestart();
$("#" + opts.tickerID).removeClass("t4b-ticker-pause");
});
}
if(opts.pauseOnFocus){
thisTicker.focusin(function(){
thisTicker.stop();
$("#" + opts.tickerID).addClass("t4b-ticker-pause");
}).focusout(function(){
mRestart();
$("#" + opts.tickerID).removeClass("t4b-ticker-pause");
});
}}
if(opts.type!=='marquee'){
opts.controls.prev&&opts.controls.prev.on('click', function(e){
e.preventDefault();
switch (opts.type){
case 'typewriter':
typeWriter('prev')
break;
default:
vertiZontal('prev')
break
}});
opts.controls.next&&opts.controls.next.on('click', function(e){
e.preventDefault();
switch (opts.type){
case 'typewriter':
typeWriter('next')
break;
default:
vertiZontal('next')
break
}});
function restart(){
if(!isPause){
init();
}}
opts.controls.toggle&&opts.controls.toggle.on('click', function(e){
e.preventDefault();
isPause = !isPause;
$(document).trigger('t4bScrollTickerToggle', thisTicker, isPause)
restart();
});
if(opts.pauseOnHover){
thisTicker.mouseenter(function(){
isPause=true;
}).mouseleave(function(){
isPause=false;
});
restart();
}
if(opts.pauseOnFocus){
thisTicker.focusin(function(){
isPause=true;
}).focusout(function(){
isPause=false;
});
restart();
}}
};
$.fn.t4bScrollTicker.defaults={
type:'horizontal',
autoplay: 2000, 
speed: 50, 
direction: 'up',
pauseOnFocus: true,
pauseOnHover: true,
tickerID: '',
controls: {
prev: '',
next: '',
toggle: ''
}};})(jQuery);