!function(i){i.fn.theiaStickySidebar=function(t){function e(t,e){var a=o(t,e);a||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),i(document).on("scroll."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)),i(window).on("resize."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)))}function o(t,e){return t.initialized===!0||!(i("body").width()<t.minWidth)&&(a(t,e),!0)}function a(t,e){t.initialized=!0;var o=i("#theia-sticky-sidebar-stylesheet-"+t.namespace);0===o.length&&i("head").append(i('<style id="theia-sticky-sidebar-stylesheet-'+t.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>')),e.each(function(){function e(){a.fixedScrollTop=0,a.sidebar.css({"min-height":"1px"}),a.stickySidebar.css({position:"static",width:"",transform:"none"})}function o(t){var e=t.height();return t.children().each(function(){e=Math.max(e,i(this).height())}),e}var a={};if(a.sidebar=i(this),a.options=t||{},a.container=i(a.options.containerSelector),0==a.container.length&&(a.container=a.sidebar.parent()),a.sidebar.parents().css("-webkit-transform","none"),a.sidebar.css({position:a.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),a.stickySidebar=a.sidebar.find(".theiaStickySidebar"),0==a.stickySidebar.length){var s=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;a.sidebar.find("script").filter(function(i,t){return 0===t.type.length||t.type.match(s)}).remove(),a.stickySidebar=i("<div>").addClass("theiaStickySidebar").append(a.sidebar.children()),a.sidebar.append(a.stickySidebar)}a.marginBottom=parseInt(a.sidebar.css("margin-bottom")),a.paddingTop=parseInt(a.sidebar.css("padding-top")),a.paddingBottom=parseInt(a.sidebar.css("padding-bottom"));var r=a.stickySidebar.offset().top,d=a.stickySidebar.outerHeight();a.stickySidebar.css("padding-top",1),a.stickySidebar.css("padding-bottom",1),r-=a.stickySidebar.offset().top,d=a.stickySidebar.outerHeight()-d-r,0==r?(a.stickySidebar.css("padding-top",0),a.stickySidebarPaddingTop=0):a.stickySidebarPaddingTop=1,0==d?(a.stickySidebar.css("padding-bottom",0),a.stickySidebarPaddingBottom=0):a.stickySidebarPaddingBottom=1,a.previousScrollTop=null,a.fixedScrollTop=0,e(),a.onScroll=function(a){if(a.stickySidebar.is(":visible")){if(i("body").width()<a.options.minWidth)return void e();if(a.options.disableOnResponsiveLayouts){var s=a.sidebar.outerWidth("none"==a.sidebar.css("float"));if(s+50>a.container.width())return void e()}var r=i(document).scrollTop(),d="static";if(r>=a.sidebar.offset().top+(a.paddingTop-a.options.additionalMarginTop)){var c,p=a.paddingTop+t.additionalMarginTop,b=a.paddingBottom+a.marginBottom+t.additionalMarginBottom,l=a.sidebar.offset().top,f=a.sidebar.offset().top+o(a.container),h=0+t.additionalMarginTop,g=a.stickySidebar.outerHeight()+p+b<i(window).height();c=g?h+a.stickySidebar.outerHeight():i(window).height()-a.marginBottom-a.paddingBottom-t.additionalMarginBottom;var u=l-r+a.paddingTop,S=f-r-a.paddingBottom-a.marginBottom,y=a.stickySidebar.offset().top-r,m=a.previousScrollTop-r;"fixed"==a.stickySidebar.css("position")&&"modern"==a.options.sidebarBehavior&&(y+=m),"stick-to-top"==a.options.sidebarBehavior&&(y=t.additionalMarginTop),"stick-to-bottom"==a.options.sidebarBehavior&&(y=c-a.stickySidebar.outerHeight()),y=m>0?Math.min(y,h):Math.max(y,c-a.stickySidebar.outerHeight()),y=Math.max(y,u),y=Math.min(y,S-a.stickySidebar.outerHeight());var k=a.container.height()==a.stickySidebar.outerHeight();d=(k||y!=h)&&(k||y!=c-a.stickySidebar.outerHeight())?r+y-a.sidebar.offset().top-a.paddingTop<=t.additionalMarginTop?"static":"absolute":"fixed"}if("fixed"==d){var v=i(document).scrollLeft();a.stickySidebar.css({position:"fixed",width:n(a.stickySidebar)+"px",transform:"translateY("+y+"px)",left:a.sidebar.offset().left+parseInt(a.sidebar.css("padding-left"))-v+"px",top:"0px"})}else if("absolute"==d){var x={};"absolute"!=a.stickySidebar.css("position")&&(x.position="absolute",x.transform="translateY("+(r+y-a.sidebar.offset().top-a.stickySidebarPaddingTop-a.stickySidebarPaddingBottom)+"px)",x.top="0px"),x.width=n(a.stickySidebar)+"px",x.left="",a.stickySidebar.css(x)}else"static"==d&&e();"static"!=d&&1==a.options.updateSidebarHeight&&a.sidebar.css({"min-height":a.stickySidebar.outerHeight()+a.stickySidebar.offset().top-a.sidebar.offset().top+a.paddingBottom}),a.previousScrollTop=r}},a.onScroll(a),i(document).on("scroll."+a.options.namespace,function(i){return function(){i.onScroll(i)}}(a)),i(window).on("resize."+a.options.namespace,function(i){return function(){i.stickySidebar.css({position:"static"}),i.onScroll(i)}}(a)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(a.stickySidebar[0],function(i){return function(){i.onScroll(i)}}(a))})}function n(i){var t;try{t=i[0].getBoundingClientRect().width}catch(i){}return"undefined"==typeof t&&(t=i.width()),t}var s={containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"};return t=i.extend(s,t),t.additionalMarginTop=parseInt(t.additionalMarginTop)||0,t.additionalMarginBottom=parseInt(t.additionalMarginBottom)||0,e(t,this),this}}(jQuery);
(function ($){
jQuery('.kanews-sticky').theiaStickySidebar({
additionalMarginTop: 50
});
})(jQuery);
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,o=void 0===n?function(){}:function(t){n.error(t)};function r(n,r,l){(l=l||e||t.jQuery)&&(r.prototype.option||(r.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[n]=function(t){var e;return"string"==typeof t?function(t,e,i){var r,s="$()."+n+'("'+e+'")';return t.each((function(t,a){var h=l.data(a,n);if(h){var c=h[e];if(c&&"_"!=e.charAt(0)){var u=c.apply(h,i);r=void 0===r?u:r}else o(s+" is not a valid method")}else o(n+" not initialized. Cannot call methods, i.e. "+s)})),void 0!==r?r:t}(this,t,i.call(arguments,1)):(e=t,this.each((function(t,i){var o=l.data(i,n);o?(o.option(e),o._init()):(o=new r(i,e),l.data(i,n,o))})),this)},s(l))}function s(t){!t||t&&t.bridget||(t.bridget=r)}return s(e||t.jQuery),r})),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}})),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,(function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}else o.push(t)})),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout((function(){n.apply(r,e),delete r[o]}),i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady((function(){var r=i.toDashed(n),s="data-"+r,l=document.querySelectorAll("["+s+"]"),a=document.querySelectorAll(".js-"+r),h=i.makeArray(l).concat(i.makeArray(a)),c=s+"-options",u=t.jQuery;h.forEach((function(t){var i,r=t.getAttribute(s)||t.getAttribute(c);try{i=r&&JSON.parse(r)}catch(e){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+e))}var l=new e(t,i);u&&u.data(t,n,l)}))}))},i})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/core",["ev-emitter/ev-emitter","fizzy-ui-utils/utils"],(function(i,n){return e(t,i,n)})):"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){var n=t.jQuery,o={};function r(t,e){var s=i.getQueryElement(t);if(s){if((t=s).infiniteScrollGUID){var l=o[t.infiniteScrollGUID];return l.option(e),l}this.element=t,this.options=i.extend({},r.defaults),this.option(e),n&&(this.$element=n(this.element)),this.create()}}r.defaults={},r.create={},r.destroy={};var s=r.prototype;i.extend(s,e.prototype);var l=0;s.create=function(){var t=this.guid=++l;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath())for(var e in this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit(),r.create)r.create[e].call(this)},s.option=function(t){i.extend(this.options,t)},s.callOnInit=function(){var t=this.options.onInit;t&&t.call(this,this)},s.dispatchEvent=function(t,e,i){this.log(t,i);var o=e?[e].concat(i):i;if(this.emitEvent(t,o),n&&this.$element){var r=t+=".infiniteScroll";if(e){var s=n.Event(e);s.type=t,r=s}this.$element.trigger(r,i)}};var a={initialized:function(t){return"on "+t},request:function(t){return"URL: "+t},load:function(t,e){return(t.title||"")+". URL: "+e},error:function(t,e){return t+". URL: "+e},append:function(t,e,i){return i.length+" items. URL: "+e},last:function(t,e){return"URL: "+e},history:function(t,e){return"URL: "+e},pageIndex:function(t,e){return"current page determined to be: "+t+" from "+e}};s.log=function(t,e){if(this.options.debug){var i="[InfiniteScroll] "+t,n=a[t];n&&(i+=". "+n.apply(this,e)),console.log(i)}},s.updateMeasurements=function(){this.windowHeight=t.innerHeight;var e=this.element.getBoundingClientRect();this.top=e.top+t.pageYOffset},s.updateScroller=function(){var e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw"Unable to find elementScroll: "+e}else this.scroller=t},s.updateGetPath=function(){var t=this.options.path;if(t){var e=typeof t;if("function"!=e)"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t);else this.getPath=t}},s.updateGetPathTemplate=function(t){this.getPath=function(){var e=this.pageIndex+1;return t.replace("{{#}}",e)}.bind(this);var 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"]))};var h=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return s.updateGetPathSelector=function(t){var e=document.querySelector(t);if(e){for(var i,n,o=e.getAttribute("href"),r=0;o&&r<h.length;r++){n=h[r];var s=o.match(n);if(s){i=s.slice(1);break}}i&&(this.isPathSelector=!0,this.getPath=function(){var t=this.pageIndex+1;return i[0]+t+i[2]}.bind(this),this.pageIndex=parseInt(i[1],10)-1,this.log("pageIndex",[this.pageIndex,"next link"]))}},s.updateGetAbsolutePath=function(){var t=this.getPath();if(t.match(/^http/)||t.match(/^\//))this.getAbsolutePath=this.getPath;else{var e=location.pathname;if(t.match(/^\?/))this.getAbsolutePath=function(){return e+this.getPath()};else{var i=e.substring(0,e.lastIndexOf("/"));this.getAbsolutePath=function(){return i+"/"+this.getPath()}}}},r.create.hideNav=function(){var t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},r.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},s.destroy=function(){for(var t in this.allOff(),r.destroy)r.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},r.throttle=function(t,e){var i,n;return e=e||200,function(){var o=+new Date,r=arguments,s=function(){i=o,t.apply(this,r)}.bind(this);i&&o<i+e?(clearTimeout(n),n=setTimeout(s,e)):s()}},r.data=function(t){var e=(t=i.getQueryElement(t))&&t.infiniteScrollGUID;return e&&o[e]},r.setJQuery=function(t){n=t},i.htmlInit(r,"infinite-scroll"),s._init=function(){},n&&n.bridget&&n.bridget("infiniteScroll",r),r})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/page-load",["./core"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("./core")):e(t,t.InfiniteScroll)}(window,(function(t,e){var i=e.prototype;function n(t){for(var e=document.createDocumentFragment(),i=0;t&&i<t.length;i++)e.appendChild(t[i]);return e}function o(t,e){for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n];e.setAttribute(o.name,o.value)}}return e.defaults.loadOnScroll=!0,e.defaults.checkLastPage=!0,e.defaults.responseType="document",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()},i.loadNextPage=function(){if(!this.isLoading&&this.canLoad){var t=this.getAbsolutePath();this.isLoading=!0;var e=function(e){this.onPageLoad(e,t)}.bind(this),i=function(e){this.onPageError(e,t)}.bind(this),n=function(e){this.lastPageReached(e,t)}.bind(this);!function(t,e,i,n,o){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType=e||"",r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.onload=function(){if(200==r.status)i(r.response);else if(204==r.status)o(r.response);else{var t=new Error(r.statusText);n(t)}},r.onerror=function(){var e=new Error("Network error requesting "+t);n(e)},r.send()}(t,this.options.responseType,e,i,n),this.dispatchEvent("request",null,[t])}},i.onPageLoad=function(t,e){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e]),this.appendNextPage(t,e),t},i.appendNextPage=function(t,e){var i=this.options.append;if("document"==this.options.responseType&&i){var o=t.querySelectorAll(i),r=n(o),s=function(){this.appendItems(o,r),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,o])}.bind(this);this.options.outlayer?this.appendOutlayerItems(r,s):s()}},i.appendItems=function(t,e){t&&t.length&&(function(t){for(var e=t.querySelectorAll("script"),i=0;i<e.length;i++){var n=e[i],r=document.createElement("script");o(n,r),r.innerHTML=n.innerHTML,n.parentNode.replaceChild(r,n)}}(e=e||n(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,n){var o=e.imagesLoaded||t.imagesLoaded;if(!o)return console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1);o(i,n)},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){var i=this.options.checkLastPage;if(i){var n,o=this.options.path;if("function"==typeof o)if(!this.getPath())return void this.lastPageReached(t,e);if("string"==typeof i?n=i:this.isPathSelector&&(n=o),n&&t.querySelector)t.querySelector(n)||this.lastPageReached(t,e)}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e]),t},e.create.prefill=function(){if(this.options.prefill){var 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(){var 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){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],(function(i,n){return e(t,i,n)})):"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){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var 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){var 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(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){return this.top+this.element.clientHeight-(t.pageYOffset+this.windowHeight)},n.getElementBottomDistance=function(){return this.scroller.scrollHeight-(this.scroller.scrollTop+this.scroller.clientHeight)},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],(function(i,n){return e(t,i,n)})):"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){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){this.options.history&&(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.scrollPageIndex=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){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("pagehide",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){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})}},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){return e.getBoundingClientRect().top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n<this.scrollPages.length;n++){var o=this.scrollPages[n];if(o.top>=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var 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(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],(function(i,n){return e(t,i,n)})):"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){function n(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))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);t&&(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=n,e})),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],(function(i,n){return e(t,i,n)})):"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){var n=e.prototype;function o(t){s(t,"none")}function r(t){s(t,"block")}function s(t,e){t&&(t.style.display=e)}return e.create.status=function(){var 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){var 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){r(this.statusElement),this.hideStatusEventElements(),r(this.statusEventElements[t])},n.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},n.hideStatusEventElements=function(){for(var t in this.statusEventElements){o(this.statusEventElements[t])}},e})),
function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,(function(t){return t})),
function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["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){var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var r=Array.prototype.slice;function s(t,e,l){if(!(this instanceof s))return new s(t,e,l);var a,h=t;("string"==typeof t&&(h=document.querySelectorAll(t)),h)?(this.elements=(a=h,Array.isArray(a)?a:"object"==typeof a&&"number"==typeof a.length?r.call(a):[a]),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 "+(h||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.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 r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var l={1:!0,9:!0,11:!0};function a(t){this.img=t}function h(t,e){this.url=t,this.element=e,this.img=new Image}return s.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)}},s.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new h(t,e);this.images.push(i)},s.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()},s.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)},s.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)}},a.prototype=Object.create(e.prototype),a.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)},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype=Object.create(a.prototype),h.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())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(i(this))})},s.makeJQueryPlugin(),s}));
(function($){
"use strict";
var page_pagination=function(){
var status=kan_vars.pagination,
scrollThreshold=kan_vars.pagination=='button' ? !1:100,
custom=$('[kanews-data-load-more]').attr("data-status"),
path=(custom==true) ? '.nav-links .next':'.kanews_pagination_next a',
scrollThreshold=(custom==true) ? 100:scrollThreshold;
if(typeof $.fn.infiniteScroll==='undefined'){
return false;
}
if(status==='button'||status==='infinite'||custom===true){
$('[kanews-data-load-more]').infiniteScroll({
path: path,
append: '[kanews-data-load-more] .toinfinite',
button: '[kanews-data-load-more-button]',
scrollThreshold: scrollThreshold,
status: '.page-load-status',
}).on("append.infiniteScroll",function(){
var myLazyLoad=new LazyLoad();
myLazyLoad.update();
var myLazyLoad2=new LazyLoad({
elements_selector: ".entry-content-inner img",
});
myLazyLoad2.update();
if(typeof window.pageTracker!=='undefined') window.pageTracker._trackPageview(path);
window.history.pushState(null, (0, $(document).attr('title'), $(location).attr('href')));
});
}else{
return false;
}}
page_pagination();
})(jQuery);
(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)})(function(c){var s={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},t=c.noop;function o(t,e){this.element=t,this.el=c(t),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=c.extend(!0,{},o.defaults,e),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(e)}o.utils=s,(c.Autocomplete=o).defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,onHint:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(t,e){return e?(e="("+s.escapeRegExChars(e)+")",t.value.replace(new RegExp(e,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")):t.value},formatGroup:function(t,e){return'<div class="autocomplete-group">'+e+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:t,onSearchComplete:t,onSearchError:t,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,s){return-1!==t.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(t){return"string"==typeof t?c.parseJSON(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},o.prototype={initialize:function(){var t,e=this,s="."+e.classes.suggestion,i=e.classes.selected,n=e.options;e.element.setAttribute("autocomplete","off"),e.noSuggestionsContainer=c('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),e.suggestionsContainer=o.utils.createNode(n.containerClass),(t=c(e.suggestionsContainer)).appendTo(n.appendTo||"body"),"auto"!==n.width&&t.css("width",n.width),t.on("mouseover.autocomplete",s,function(){e.activate(c(this).data("index"))}),t.on("mouseout.autocomplete",function(){e.selectedIndex=-1,t.children("."+i).removeClass(i)}),t.on("click.autocomplete",s,function(){e.select(c(this).data("index"))}),t.on("click.autocomplete",function(){clearTimeout(e.blurTimeoutId)}),e.fixPositionCapture=function(){e.visible&&e.fixPosition()},c(window).on("resize.autocomplete",e.fixPositionCapture),e.el.on("keydown.autocomplete",function(t){e.onKeyPress(t)}),e.el.on("keyup.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("blur.autocomplete",function(){e.onBlur()}),e.el.on("focus.autocomplete",function(){e.onFocus()}),e.el.on("change.autocomplete",function(t){e.onKeyUp(t)}),e.el.on("input.autocomplete",function(t){e.onKeyUp(t)})},onFocus:function(){this.disabled||(this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange())},onBlur:function(){var t=this,e=t.options,s=t.el.val(),i=t.getQuery(s);t.blurTimeoutId=setTimeout(function(){t.hide(),t.selection&&t.currentValue!==i&&(e.onInvalidateSelection||c.noop).call(t.element)},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(t){t=c.extend({},this.options,t);this.isLocal=Array.isArray(t.lookup),this.isLocal&&(t.lookup=this.verifySuggestionsFormat(t.lookup)),t.orientation=this.validateOrientation(t.orientation,"bottom"),c(this.suggestionsContainer).css({"max-height":t.maxHeight+"px",width:t.width+"px","z-index":t.zIndex}),this.options=t},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t,e,s,i,n,o,a,u,l=c(this.suggestionsContainer),r=l.parent().get(0);r!==document.body&&!this.options.forceFixPosition||(o=this.options.orientation,t=l.outerHeight(),e=this.el.outerHeight(),s={top:(a=this.el.offset()).top,left:a.left},"auto"===o&&(u=c(window).height(),i=-(n=c(window).scrollTop())+a.top-t,n=n+u-(a.top+e+t),o=Math.max(i,n)===i?"top":"bottom"),s.top+="top"===o?-t:e,r!==document.body&&(u=l.css("opacity"),this.visible||l.css("opacity",0).show(),a=l.offsetParent().offset(),s.top-=a.top,s.top+=r.scrollTop,s.left-=a.left,this.visible||l.css("opacity",u).hide()),"auto"===this.options.width&&(s.width=this.el.outerWidth()+"px"),l.css(s))},isCursorAtEnd:function(){var t=this.el.val().length,e=this.element.selectionStart;return"number"==typeof e?e===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||40!==t.which||!this.currentValue){if(!this.disabled&&this.visible){switch(t.which){case 27:this.el.val(this.currentValue),this.hide();break;case 39:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case 9:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case 13:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case 38:case 40:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),0<e.options.deferRequestBy?e.onChangeTimeout=setTimeout(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){var t,e,s;this.ignoreValueChange?this.ignoreValueChange=!1:(t=this.options,e=this.el.val(),s=this.getQuery(e),this.selection&&this.currentValue!==s&&(this.selection=null,(t.onInvalidateSelection||c.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=e,this.selectedIndex=-1,t.triggerSelectOnValidInput&&this.isExactMatch(s)?this.select(0):s.length<t.minChars?this.hide():this.getSuggestions(s))},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(t){var e=this.options.delimiter;return e?(e=t.split(e),c.trim(e[e.length-1])):t},getSuggestionsLocal:function(e){var t=this.options,s=e.toLowerCase(),i=t.lookupFilter,n=parseInt(t.lookupLimit,10),t={suggestions:c.grep(t.lookup,function(t){return i(t,e,s)})};return n&&t.suggestions.length>n&&(t.suggestions=t.suggestions.slice(0,n)),t},getSuggestions:function(i){var t,e,s,n=this,o=n.options,a=o.serviceUrl;o.params[o.paramName]=i,!1!==o.onSearchStart.call(n.element,o.params)&&(t=o.ignoreParams?null:o.params,c.isFunction(o.lookup)?o.lookup(i,function(t){n.suggestions=t.suggestions,n.suggest(),o.onSearchComplete.call(n.element,i,t.suggestions)}):(s=n.isLocal?n.getSuggestionsLocal(i):(c.isFunction(a)&&(a=a.call(n.element,i)),e=a+"?"+c.param(t||{}),n.cachedResponse[e]))&&Array.isArray(s.suggestions)?(n.suggestions=s.suggestions,n.suggest(),o.onSearchComplete.call(n.element,i,s.suggestions)):n.isBadQuery(i)?o.onSearchComplete.call(n.element,i,[]):(n.abortAjax(),s={url:a,data:t,type:o.type,dataType:o.dataType},c.extend(s,o.ajaxSettings),n.currentRequest=c.ajax(s).done(function(t){n.currentRequest=null,t=o.transformResult(t,i),n.processResponse(t,i,e),o.onSearchComplete.call(n.element,i,t.suggestions)}).fail(function(t,e,s){o.onSearchError.call(n.element,i,t,e,s)})))},isBadQuery:function(t){if(this.options.preventBadQueries)for(var e=this.badQueries,s=e.length;s--;)if(0===t.indexOf(e[s]))return!0;return!1},hide:function(){var t=c(this.suggestionsContainer);c.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,t),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),c(this.suggestionsContainer).hide(),this.onHint(null)},suggest:function(){var i,n,o,a,u,l,t,e,s,r,h;this.suggestions.length?(n=this.options,o=n.groupBy,a=n.formatResult,u=this.getQuery(this.currentValue),l=this.classes.suggestion,t=this.classes.selected,e=c(this.suggestionsContainer),s=c(this.noSuggestionsContainer),r=n.beforeRender,h="",n.triggerSelectOnValidInput&&this.isExactMatch(u)?this.select(0):(c.each(this.suggestions,function(t,e){var s;o&&(h+=(s=e.data[o],i===s?"":(i=s,n.formatGroup(e,i)))),h+='<div class="'+l+'" data-index="'+t+'">'+a(e,u,t)+"</div>"}),this.adjustContainerWidth(),s.detach(),e.html(h),c.isFunction(r)&&r.call(this.element,e,this.suggestions),this.fixPosition(),e.show(),n.autoSelectFirst&&(this.selectedIndex=0,e.scrollTop(0),e.children("."+l).first().addClass(t)),this.visible=!0,this.findBestHint())):this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this.options.beforeRender,e=c(this.suggestionsContainer),s=c(this.noSuggestionsContainer);this.adjustContainerWidth(),s.detach(),e.empty(),e.append(s),c.isFunction(t)&&t.call(this.element,e,this.suggestions),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var t,e=this.options,s=c(this.suggestionsContainer);"auto"===e.width?(t=this.el.outerWidth(),s.css("width",0<t?t:300)):"flex"===e.width&&s.css("width","")},findBestHint:function(){var i=this.el.val().toLowerCase(),n=null;i&&(c.each(this.suggestions,function(t,e){var s=0===e.value.toLowerCase().indexOf(i);return s&&(n=e),!s}),this.onHint(n))},onHint:function(t){var e=this.options.onHint,s="";t&&(s=this.currentValue+t.value.substr(this.currentValue.length)),this.hintValue!==s&&(this.hintValue=s,this.hint=t,c.isFunction(e))&&e.call(this.element,s)},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?c.map(t,function(t){return{value:t,data:null}}):t},validateOrientation:function(t,e){return t=c.trim(t||"").toLowerCase(),t=-1===c.inArray(t,["auto","bottom","top"])?e:t},processResponse:function(t,e,s){var i=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),i.noCache||(this.cachedResponse[s]=t,i.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&(this.suggestions=t.suggestions,this.suggest())},activate:function(t){var e=this.classes.selected,s=c(this.suggestionsContainer),i=s.find("."+this.classes.suggestion);return s.find("."+e).removeClass(e),this.selectedIndex=t,-1!==this.selectedIndex&&i.length>this.selectedIndex?(s=i.get(this.selectedIndex),c(s).addClass(e),s):null},selectHint:function(){var t=c.inArray(this.hint,this.suggestions);this.select(t)},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(c(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(t){var e,s,i,n=this.activate(t);n&&(s=c(n).outerHeight(),n=n.offsetTop,i=(e=c(this.suggestionsContainer).scrollTop())+this.options.maxHeight-s,n<e?c(this.suggestionsContainer).scrollTop(n):i<n&&c(this.suggestionsContainer).scrollTop(n-this.options.maxHeight+s),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[t].value))),this.onHint(null))},onSelect:function(t){var e=this.options.onSelect,t=this.suggestions[t];this.currentValue=this.getValue(t.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.onHint(null),this.suggestions=[],this.selection=t,c.isFunction(e)&&e.call(this.element,t)},getValue:function(t){var e,s=this.options.delimiter;return!s||1===(s=(e=this.currentValue).split(s)).length?t:e.substr(0,e.length-s[s.length-1].length)+t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),c(window).off("resize.autocomplete",this.fixPositionCapture),c(this.suggestionsContainer).remove()}},c.fn.devbridgeAutocomplete=function(s,i){return arguments.length?this.each(function(){var t=c(this),e=t.data("autocomplete");"string"==typeof s?e&&"function"==typeof e[s]&&e[s](i):(e&&e.dispose&&e.dispose(),e=new o(this,s),t.data("autocomplete",e))}):this.first().data("autocomplete")},c.fn.autocomplete||(c.fn.autocomplete=c.fn.devbridgeAutocomplete)});
jQuery(document).ready(function(s){var r={serviceUrl:kan_vars.ajax,params:{action:"kanews_ajax_search",nonce:kan_vars.nonce},type:"post",minChars:3,deferRequestBy:300,width:"auto",maxHeight:400,noSuggestionNotice:kan_vars.noresult,showNoSuggestionNotice:!0,formatResult:function(e){return e.layout},onSelect:function(e){e.url&&(window.location=e.url)}};function o(e){return e.closest("form").find("#kanews-loader")}function i(e,a){e.length&&a&&a.suggestionsContainer&&(e=e.find(".site-header-search-results-mount"),a=s(a.suggestionsContainer),e.length)&&!a.parent().is(e)&&e.append(a)}window.kanewsEnsureSearchAutocompleteMount=function(e){var e=e&&e.length?e:s("#site-header-search-wrapper"),a=e.find(".kanews-ajax-search").data("autocomplete");i(e,a),a&&a.suggestionsContainer&&s(a.suggestionsContainer).css("display","")},s(".kanews-ajax-search").each(function(){var e,a=s(this),n=a.closest("#site-header-search-wrapper"),t=s.extend(!0,{},r);t.onSearchStart=function(){o(a).html('<div class="kanews-loader kanews-loader-sm">Loading...</div>'),n.length&&(i(n,a.data("autocomplete")),n.find(".site-header-search-results").prop("hidden",!1).attr("aria-busy","true"))},t.onSearchComplete=function(){o(a).empty(),n.length&&n.find(".site-header-search-results").attr("aria-busy","false")},n.length&&(e=n.find(".site-header-search-results-mount"),t.appendTo=e.length?e:n.find(".site-header-search-results"),t.containerClass="site-header-search-results-panel autocomplete-suggestions",t.width="flex",t.maxHeight=360,t.orientation="bottom",t.beforeRender=function(e,a){var t,s;n.find(".site-header-search-results").prop("hidden",!1),a&&a.length&&(t=a.length,(s=a[a.length-1])&&s.layout&&-1!==s.layout.indexOf("kanews-search-result-all")&&(t=Math.max(0,a.length-1)),e.prepend('<div class="site-header-search-results-header"><span class="site-header-search-results-title">'+(kan_vars.search_results_heading||"Sonuçlar")+'</span><span class="site-header-search-results-count">'+t+"</span></div>"))}),a.devbridgeAutocomplete(t),n.length&&i(n,a.data("autocomplete"))})});
(L=>{var r={"icon-caret":"M12 8L18 14H6L12 8Z","icon-arrow-long":"M22.0003 13.0001L22.0004 11.0002L5.82845 11.0002L9.77817 7.05044L8.36396 5.63623L2 12.0002L8.36396 18.3642L9.77817 16.9499L5.8284 13.0002L22.0003 13.0001Z","icon-arrow":"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z","icon-close":"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z","icon-envelope":"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM20 7.23792L12.0718 14.338L4 7.21594V19H20V7.23792ZM4.51146 5L12.0619 11.662L19.501 5H4.51146Z"};function o(L){return String(L).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}L.kanewsGetIconHtml=function(L,n){var e;return L&&r[L]?(e=r[L],'<svg class="'+o(L+" kanews-icon-inline-svg"+(n?" "+n:""))+'" viewBox="0 0 24 24" fill="currentColor" width="20" height="20" aria-hidden="true"><path d="'+o(e)+'" /></svg>'):""}})(window);
(i=>{function n(t,e){this.$element=i(t),this.options=i.extend({},n.DEFAULTS,e),this.$trigger=i('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function s(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return i(document).find(t)}function l(a){return this.each(function(){var t=i(this),e=t.data("bs.collapse"),s=i.extend({},n.DEFAULTS,t.data(),"object"==typeof a&&a);!e&&s.toggle&&/show|hide/.test(a)&&(s.toggle=!1),e||t.data("bs.collapse",e=new n(this,s)),"string"==typeof a&&e[a]()})}n.VERSION="3.4.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".collapse-item").children(".in, .collapsing");if(!(t&&t.length&&(a=t.data("bs.collapse"))&&a.transitioning)){var e=i.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(l.call(t,"hide"),a||t.data("bs.collapse",null));var s=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!i.support.transition)return e.call(this);var a=i.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",i.proxy(e,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][a])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=i.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var t=this.dimension(),e=(this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!i.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",i.proxy(e,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return i(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(i.proxy(function(t,e){e=i(e);this.addAriaAndCollapsedClass(s(e),e)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var s=t.hasClass("in");t.attr("aria-expanded",s),e.toggleClass("collapsed",!s).attr("aria-expanded",s)};var t=i.fn.collapse;i.fn.collapse=l,i.fn.collapse.Constructor=n,i.fn.collapse.noConflict=function(){return i.fn.collapse=t,this},i(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=i(this),t=(e.attr("data-target")||t.preventDefault(),s(e)),e=t.data("bs.collapse")?"toggle":e.data();l.call(t,e)})})(jQuery);
1==kan_vars.text_share&&(((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Sharect=t():e.Sharect=t()})(window,function(){return r=[function(e,t,r){function n(){return window.getSelection().toString()}function c(e){var n=(window.getSelection().baseNode||window.getSelection().anchorNode).parentNode;return e.some(function(e){var t=n,r=e;if(Element.prototype.closest)return t.closest(r);Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector);var o=t;do{if(o.matches(r))return o}while(null!==(o=o.parentNode)&&o.nodeType===Node.ELEMENT_NODE);return null})}function a(e){var t=e.iconSize,r=e.buttonMargin,o=e.arrowSize,e=e.icons,n=window.getSelection().getRangeAt(0).getBoundingClientRect(),t=t+r,r=window.pageXOffset||document.documentElement.scrollTop||document.body.scrollTop;return{top:n.top+r-t-o,left:n.left+(n.width-t*e.length)/2}}r.r(t);var s=function(e){return"line-height:0;transition:all .2s ease-in-out;background:"+e+";"},u=function(e,t){return"position:absolute;border-radius:3px;top:"+e+"px;left:"+t+"px;"},p=function(e){var t=e.arrowSize;return"position:absolute;border-left:"+t+"px solid transparent;border-right:"+t+"px solid transparent;border-top:"+t+"px solid "+e.backgroundColor+";bottom:-"+(t-1)+"px;left:"+(e.buttonSize*e.icons.length/2-t)+"px;width:0;height:0;"};function f(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function i(e){var t,r,o,n,c,i,l=a(e),e=function(o){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){var t,r;t=o,r=n[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))})}return o}({},e,{top:l.top,left:l.left});document.body.appendChild((t=(l=e).top,r=e.left,o=e.iconSize,n=e.buttonMargin,c=e.backgroundColor,i=e.icons,l=e.arrowSize,e=document.createElement("div"),o+=n,e.className="sharect",e.style.cssText=s(c),e.style.cssText+=u(t,r),e.appendChild(i.icons),n={arrowSize:l,backgroundColor:c,buttonSize:o,icons:i},(t=document.createElement("div")).style.cssText=p(n),r=t,e.appendChild(r),e))}function l(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function d(o){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){var t,r;t=o,r=n[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))})}return o}function b(o){setTimeout(function(){if(document.querySelector(".sharect")){if(n()&&c(o.selectableElements))return e=a(d({},o)),t=e.top,e=e.left,(r=document.querySelector(".sharect")).style.top="".concat(t,"px"),void(r.style.left="".concat(e,"px"));document.body.removeChild(document.querySelector(".sharect"))}var e,t,r;n()&&c(o.selectableElements)&&i(d({},o))},10)}var h,w,m,g,y,v;function O(){this.style.transform="scale(1.2)"}function E(){this.style.transform="scale(1)"}function S(e,t,r){return e=e,(o=document.createElement("div")).style.cssText="display:inline-block;margin:7px;cursor:pointer;transition:all .2s ease-in-out;",o.innerHTML=e,o.onmousedown=function(){var e=function(e,t){return e.replace(/PAGE_URL/,window.location.href).replace(/TEXT_SELECTION/,window.getSelection().toString()).replace(/USERNAME/,t)}(t,r);window.open(e,"Share","width=550, height=280")},o.onmouseover=O,o.onmouseout=E,o;var o}function j(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function P(o){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(e){var t,r;t=o,r=n[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))})}return o}t.default=(h={twitter:{isActive:!0,username:"",url:"https://twitter.com/intent/tweet?text=TEXT_SELECTION&via=USERNAME&url=PAGE_URL",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8.2,20.2c6.5,0,11.7-5.2,11.8-11.6c0-0.1,0-0.1,0-0.2c0-0.2,0-0.4,0-0.5c0.8-0.6,1.5-1.3,2.1-2.2c-0.8,0.3-1.6,0.6-2.4,0.7c0.9-0.5,1.5-1.3,1.8-2.3c-0.8,0.5-1.7,0.8-2.6,1c-1.6-1.7-4.2-1.7-5.9-0.1c-1.1,1-1.5,2.5-1.2,3.9C8.5,8.7,5.4,7.1,3.3,4.6c-1.1,1.9-0.6,4.3,1.3,5.5c-0.7,0-1.3-0.2-1.9-0.5l0,0c0,2,1.4,3.7,3.3,4.1c-0.6,0.2-1.2,0.2-1.9,0.1c0.5,1.7,2.1,2.8,3.9,2.9c-1.7,1.4-3.9,2-6.1,1.7C3.8,19.5,6,20.2,8.2,20.2"/></svg>'},facebook:{isActive:!0,url:"https://www.facebook.com/sharer/sharer.php?u=PAGE_URL&quote=TEXT_SELECTION",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" enable-background="new 0 0 24 24" width="24" height="24" class="sharect__icon"><path d="M20,2H4C2.9,2,2,2.9,2,4v16c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V4C22,2.9,21.1,2,20,2z M18.4,7.4H17c-0.9,0-1,0.3-1,1l0,1.3 h2.1L18,12h-1.9v7h-3.2v-7h-1.2V9.6h1.2V8.1c0-2,0.8-3.1,3.1-3.1h2.4V7.4z"/></svg>'}},m=["body"],g=[],y="#333",v="#fff",{config:function(e){return void 0!==e.twitter&&(h.twitter.isActive=e.twitter),void 0!==e.facebook&&(h.facebook.isActive=e.facebook),e.twitterUsername&&(h.twitter.username=e.twitterUsername),e.backgroundColor&&(y=e.backgroundColor),e.iconColor&&(v=e.iconColor),e.selectableElements&&(m=e.selectableElements),this},appendCustomShareButtons:function(e){return g=e,this},init:function(){var e,t,r,o={backgroundColor:y,iconColor:v,arrowSize:5,buttonMargin:14,iconSize:24,selectableElements:m,networks:h,customShareButtons:g};return t=P({},o).iconColor,(r=document.createElement("style")).id="sharect-style",r.innerHTML=".sharect svg{fill:".concat(t,";}"),document.body.appendChild(r),w=(e=>{var t,r,o,n=e.networks,e=e.customShareButtons,c=document.createElement("div"),i=0;for(t in n)n[t]&&n[t].isActive&&(o=(r=n[t]).icon,c.appendChild(S(o,r.url,r.username)),i++);return 0<e.length&&e.forEach(function(e){c.appendChild(S(e.icon,e.url)),i++}),{icons:c,length:i}})(P({},o)),e=P({},o,{icons:w}),window.addEventListener("mouseup",function(){return b(e)},!1),this}})}],o={},n.m=r,n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0).default;function n(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,n),t.l=!0,t)).exports}var r,o}),Sharect.appendCustomShareButtons([{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 478.165 478.165"><path d="M478.165 232.946c0 128.567-105.057 232.966-234.679 232.966-41.102 0-79.814-10.599-113.445-28.969L0 478.165l42.437-125.04c-21.438-35.065-33.77-76.207-33.77-120.159C8.667 104.34 113.763 0 243.485 0c129.623 0 234.68 104.34 234.68 232.946zM243.485 37.098c-108.802 0-197.422 87.803-197.422 195.868 0 42.915 13.986 82.603 37.576 114.879l-24.586 72.542 75.849-23.968c31.121 20.481 68.457 32.296 108.583 32.296 108.723 0 197.323-87.843 197.323-195.908 0-107.886-88.6-195.709-197.323-195.709zM361.931 286.62c-1.395-2.331-5.22-3.746-10.898-6.814-5.917-2.849-34.089-16.497-39.508-18.37-5.16-1.913-8.986-2.849-12.811 2.829-4.005 5.638-14.903 18.629-18.23 22.354-3.546 3.785-6.854 4.264-12.552 1.435-5.618-2.809-24.267-8.866-46.203-28.391-17.055-15.042-28.67-33.711-31.997-39.508-3.427-5.758-.398-8.826 2.471-11.635 2.69-2.59 5.778-6.734 8.627-10.041 2.969-3.287 3.905-5.638 5.798-9.424 1.913-3.905.936-7.192-.478-10.141-1.415-2.849-13.01-30.881-17.752-42.337-4.841-11.416-9.543-9.523-12.871-9.523-3.467 0-7.212-.478-11.117-.478-3.785 0-10.041 1.395-15.381 7.192-5.2 5.658-20.123 19.465-20.123 47.597 0 28.052 20.601 55.308 23.55 59.053 2.869 3.785 39.747 63.197 98.303 86.07 58.476 22.872 58.476 15.321 69.115 14.365 10.38-.956 34.069-13.867 38.811-27.096 4.66-13.45 4.66-24.766 3.246-27.137z"/></svg>',url:"https://api.whatsapp.com/send?text=TEXT_SELECTION%20PAGE_URL"}]).init(),Sharect.config({facebook:!0,twitter:!0,backgroundColor:"#555",iconColor:"#fff",selectableElements:[".entry-content-inner",".kanews-article-title",".kanews-article-title + p"]}).init());
(i=>{i(document).on("click",".kanews-like-button",function(){var e=i(this),a=e.attr("data-post-id"),t=e.attr("data-nonce"),e=e.attr("data-iscomment"),n=i("1"===e?".kanews-like-comment-button-"+a:".kanews-like-button-"+a),s=n.find("#kanews-like-loader");return""!==a&&i.ajax({type:"POST",url:kan_vars.ajax,data:{action:"process_simple_like",post_id:a,nonce:t,is_comment:e},beforeSend:function(){s.html('<div class="kanews-loader-2 kanews-loader-sm">Yükleniyor..</div>')},success:function(e){var a=e.icon;n.html(a+"<span>"+e.count+'</span><span id="kanews-like-loader"></div>'),"unliked"===e.status?(n.prop("title",""),n.removeClass("liked")):(n.prop("title",""),n.addClass("liked")),s.empty()}}),!1})})(jQuery);
var $kan=jQuery(document),$window=jQuery(window),intialWidth=window.innerWidth,kan_loader='<div class="kanews-loader kanews-loader-sm">Loading...</div>';kan_loader2='<div class="kanews-loader kanews-loader-md">Loading...</div>',kan_loader3='<div class="kanews-loader-2 kanews-loader-sm">Loading...</div>',(y=>{function t(){var e,m="kanews_reading_font_size";function g(e,t,a){return Math.max(t,Math.min(a,e))}function k(e){e=g(parseInt(e,10)||100,80,150);document.documentElement.style.setProperty("--kanews-reading-font-scale",String(e/100))}function f(e){e=parseInt(e,10)||100;return e<=90?"Küçük":e<=100?"Normal":e<=110?"Büyük":e<=120?"Çok Büyük":"Dev"}y(".kanews-article-content").first().length&&(y(".kanews-reading-font-dropdown").length?(y(".kanews-reading-font-dropdown").each(function(){var t=y(this),e=t.find(".kanews-dropdown-item"),a=t.find(".kanews-dropdown-content"),n=t.find(".kanews-reading-font-slider__input"),i=t.find(".kanews-reading-font-slider__value"),s=t.find(".kanews-reading-font-slider__reset"),r=null;try{r=window.localStorage?localStorage.getItem(m):null}catch(e){}var o,l,c,d=parseInt(t.data("default"),10)||100;function u(){a.removeClass("is-active"),e.attr("aria-expanded","false")}function h(){a.hasClass("is-active")?u():(y(".kanews-reading-font-dropdown .kanews-dropdown-content.is-active").removeClass("is-active"),y('.kanews-reading-font-dropdown .kanews-dropdown-item[aria-expanded="true"]').attr("aria-expanded","false"),a.addClass("is-active"),e.attr("aria-expanded","true"))}function p(e){e=g(parseInt(e,10)||100,80,150);if(e!==c){c=e,k(e),t.find(".kanews-reading-font-dropdown__label").text(f(e)+" ("+e+"%)"),i.length&&i.text(e+"%");try{window.localStorage&&localStorage.setItem(m,String(e))}catch(e){}}}k(o=g(parseInt(r,10)||d,80,150)),t.find(".kanews-reading-font-dropdown__label").text(f(o)+" ("+o+"%)"),n.length&&n.val(String(o)),i.length&&i.text(o+"%"),t.find(".kanews-reading-font-dropdown__option").each(function(){var e=y(this),t=String(e.data("size"))===String(o);e.toggleClass("active",t),e.attr("aria-checked",t?"true":"false")}),e.on("click",function(e){e.preventDefault(),e.stopPropagation(),h()}),e.on("keydown",function(e){var t=e.key||e.keyCode;"Enter"!==t&&" "!==t&&13!==t&&32!==t||(e.preventDefault(),h()),"Escape"!==t&&"Esc"!==t&&27!==t||(e.preventDefault(),u())}),n.length&&(l=null,c=o,n.on("input",function(e){var t=this.value;i.length&&i.text(t+"%"),l&&cancelAnimationFrame(l),l=requestAnimationFrame(function(){l=null,p(t)})}),n.on("change",function(){p(this.value)}),s.length)&&s.on("click",function(e){e.preventDefault(),e.stopPropagation();e=g(parseInt(d,10)||100,80,150);n.val(String(e)),p(e),i.length&&i.text(e+"%");try{window.localStorage&&localStorage.removeItem(m)}catch(e){}}),t.on("click",".kanews-reading-font-dropdown__option",function(e){var a;e.preventDefault(),e.stopPropagation(),k(a=g(parseInt(y(this).data("size"),10)||100,80,150)),t.find(".kanews-reading-font-dropdown__label").text(f(a)+" ("+a+"%)"),n.length&&n.val(String(a)),i.length&&i.text(a+"%"),t.find(".kanews-reading-font-dropdown__option").each(function(){var e=y(this),t=String(e.data("size"))===String(a);e.toggleClass("active",t),e.attr("aria-checked",t?"true":"false")});try{window.localStorage&&localStorage.setItem(m,String(a))}catch(e){}u()})}),$kan.on("click",function(){y(".kanews-reading-font-dropdown .kanews-dropdown-content.is-active").removeClass("is-active"),y('.kanews-reading-font-dropdown .kanews-dropdown-item[aria-expanded="true"]').attr("aria-expanded","false")}),$kan.on("keydown",function(e){e=e.key||e.keyCode;"Escape"!==e&&"Esc"!==e&&27!==e||(y(".kanews-reading-font-dropdown .kanews-dropdown-content.is-active").removeClass("is-active"),y('.kanews-reading-font-dropdown .kanews-dropdown-item[aria-expanded="true"]').attr("aria-expanded","false"))})):(e=100,y(".increase-text").off("click.kanewsFont").on("click.kanewsFont",function(){if(150<=e)return!1;k(e=g(e+5,80,150))}),y(".decrease-text").off("click.kanewsFont").on("click.kanewsFont",function(){if(e<=80)return!1;k(e=g(e-5,80,150))})))}function a(){var a=".entry-content-inner .page-links",e=y(a).attr("data-scrollThreshold"),t=y(a).attr("data-button");1==y(a).attr("data-status")&&y(".entry-content-wrapper").infiniteScroll({path:".entry-content-inner .page-links .next",append:".entry-content-inner",button:t,scrollThreshold:e,status:".page-load-status"}).on("append.infiniteScroll",function(){(new LazyLoad).update(),void 0!==window.pageTracker&&window.pageTracker._trackPageview(path),window.history.pushState(null,(y(document).attr("title"),y(location).attr("href")))}).on("last",function(e,t){y(a).addClass("last")})}jQuery(document).ready(function(d){$kan.on("click",".kanews-ai-summary__toggle",function(e){e.preventDefault();var s=d(this),r=s.closest(".kanews-ai-summary"),e=r.data("post-id"),t=r.find(".kanews-ai-summary__body"),o=r.find(".kanews-ai-summary__content");function a(e){s.attr("aria-expanded",e?"true":"false"),r.toggleClass("is-expanded",!!e),s.find(".kanews-ai-summary__toggle-text").text(e?"Gizle":"Tümünü Gör")}function l(){var e=r.data("typingTimer");e&&(clearTimeout(e),r.removeData("typingTimer")),r.removeClass("is-typing")}function n(e,a){l(),r.addClass("is-typing"),o.empty();var t=document.createElement("div"),n=(t.innerHTML=e||"",o.get(0)),c=[];for(var i=t.firstChild;i;)!function e(t,a){if(t){var n,i;if(t.nodeType===Node.TEXT_NODE)return(n=t.nodeValue||"")?(i=document.createTextNode(""),a.appendChild(i),void c.push({type:"text",node:i,text:n,i:0})):void 0;if(t.nodeType===Node.ELEMENT_NODE){var s=document.createElement(t.tagName);if(t.attributes&&t.attributes.length)for(var r=0;r<t.attributes.length;r++){var o=t.attributes[r];s.setAttribute(o.name,o.value)}a.appendChild(s);for(var l=t.firstChild;l;)e(l,s),l=l.nextSibling}}}(i,n),i=i.nextSibling;!function e(){if("true"!==s.attr("aria-expanded"))l();else{for(;c.length&&"text"===c[0].type;){var t=c[0];if(t.i=Math.min(t.text.length,t.i+2),t.node.nodeValue=t.text.slice(0,t.i),!(t.i>=t.text.length))break;c.shift()}c.length?r.data("typingTimer",setTimeout(e,10)):(l(),"function"==typeof a&&a())}}()}if("true"===s.attr("aria-expanded")){l();var i=r.data("xhr");if(i&&i.readyState&&4!==i.readyState)try{i.abort()}catch(e){}r.removeData("xhr");i=r.data("previewHtml");"string"==typeof i&&i.length&&(t.attr("data-state","preview"),o.html(i)),a(!1)}else{var c,i=r.data("fullHtml");"string"==typeof i&&i.length?(t.attr("data-state","full"),a(!0),n(i)):(a(!0),t.attr("data-state","loading"),r.data("previewHtml")||r.data("previewHtml",o.html()),o.html('<span class="kanews-ai-summary__thinking">Düşünüyor<span class="dots"><span>.</span><span>.</span><span>.</span></span></span>'),(c=s.find("#kanews-loader")).length||(s.append('<span id="kanews-loader" class="kanews-ai-summary__loader"></span>'),c=s.find("#kanews-loader")),s.prop("disabled",!0),c.html(kan_loader3),e=d.ajax({url:kan_vars.ajax,type:"POST",data:{action:"get_post_summary",post_id:e,nonce:kan_vars.nonce},success:function(e){e.success?(r.data("fullHtml",e.data.summary),t.attr("data-state","full"),n(e.data.summary)):console.log("Özet bulunamadı.")},error:function(){console.log("Bir hata oluştu.")},complete:function(){s.prop("disabled",!1),c.empty()}}),r.data("xhr",e))}})}),$kan.on("click",".css-15q1ax4",function(){y("#glkj1").toggleClass("is-show")}),$kan.ready(function(){$window.scroll(function(){var e,t,a,n;y(".js-bar").length&&(n=y(".site-main-inner:last-child"),e=y(".js-bar"),!(100<=(n=((t=y(this).scrollTop()+y(this).height())-(a=n.offset().top))/n.height()*100))&&a<=t?e.css("width",n+"%"):e.css("width","0%"))})}),$kan.on("click","#expandPlayer",function(){y(".kanews-watch-panel-right").hasClass("d-none")?y("#expandPlayer").attr("aria-label",kan_vars.translate.expand2):y("#expandPlayer").attr("aria-label",kan_vars.translate.expand),y(".kanews-watch-panel-left").toggleClass("col-lg-9"),y(".kanews-watch-panel-right").toggleClass("d-none")}),t(),a(),1==kan_vars.infinite_scroll&&y(".site-main-wrapper").infiniteScroll({path:function(){return y(".site-main-inner .kanews-prev-post-link a").attr("href")},append:".site-main-inner",button:0,scrollThreshold:600,history:"replace",historyTitle:!0,status:".page-load-status"}).on("append.infiniteScroll",function(){(new LazyLoad).update(),a(),y(".kanews-reading-bar").not(":last").remove(),y(".kanews-prev-post-link").not(":last").remove(),jQuery(document).ready(function(){jQuery(".kanews-sticky").theiaStickySidebar({additionalMarginTop:50})}),t();var e=document.createElement("script"),e=(e.type="text/javascript",e.src=kan_vars.assets+"js/magnific-popup.min.js",y("html").before().append(e),y("head").append("<link id='yournewcss' href='"+kan_vars.assets+"css/magnific-popup.css' type='text/css' rel='stylesheet' />"),y(".kanews-gallery-lightbox").on("click",function(){y(this).magnificPopup("open")}),jQuery(".kanews-gallery").each(function(){jQuery(this).magnificPopup({delegate:"figure",type:"image",mainClass:"mfp-zoom-in kanews-post-gallery-lightbox",zoom:{enabled:!0,duration:300},cursor:"mfp-zoom-out-cur",closeBtnInside:!1,removalDelay:400,overflowY:"hidden",gallery:{enabled:!0,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',tCounter:'<span class="mfp-counter">%curr%/%total%</span>'},image:{titleSrc:!1,markup:'<div class="mfp-figure d-flex flex-column"><div class="mfp-top-bar d-flex align-items-center justify-content-between"><div class="mfp-title"></div><div class="mfp-counter"></div></div><div class="mfp-inner row m-0"><div class="mfp-left-column col-12 col-md-7 col-lg-9"><div class="mfp-img"></div></div><div class="mfp-right-column col-12 col-md-5 col-lg-3"><div class="mfp-inner-content"></div></div></div></div>'},callbacks:{change:function(){y(this.content).find(".mfp-inner-content").html("<h5>"+y(this.currItem.el).attr("title")+"</h5>"+y(this.currItem.el).attr("content"))}}})}),y(".entry-content-inner:last-child .page-links[data-status='1']").show(),y(".site-main-inner:not(:first-child) .kanews-article-assets").hide(),void 0!==window.pageTracker&&window.pageTracker._trackPageview(path),window.history.pushState(null,(y(document).attr("title"),y(location).attr("href"))),y(this).find(".audio-icon:not([initialized])"));void 0===window.kanAudioPlayer&&(window.kanAudioPlayer=new KanAudioPlayer({playingIconURL:kan_vars.assets+"img/static/sound.gif",playLabel:"Dinlemeye Başla",pauseLabel:"Dinlemeyi Durdur"})),e.each(function(){window.kanAudioPlayer.addPlayer(this),y(this).attr("initialized","true")})}),$kan.ready(function(){var t=y("#comment"),a=y("#comment-char-count");function e(){var e=t.val().length;a.text(e),30<=e?a.parent().removeClass("is-invalid").addClass("is-valid"):0<e?a.parent().removeClass("is-valid").addClass("is-invalid"):a.parent().removeClass("is-valid is-invalid")}t.length&&a.length&&(t.on("input",e),e())}),$kan.ready(function(){$kan.on("click",".reaction-item",function(){var e=y(this),t=!!e.hasClass("clicked"),a=e.parent().data("postId")||e.parent().data("post-id"),n=kan_vars.ajax,i=e.data().reaction,n=(y.post(n,{postid:a,action:"kanews_react",reaction:i,unreact:t},function(e){console.log("Ajax: "+e)}),e.toggleClass("clicked"),y(".reaction-item").toggleClass("none"),e.hasClass("clicked none")&&e.removeClass("none"),parseInt(e.find(".reaction-count").text()));0<n?e.hasClass("clicked")?n+=1:--n:n=1,e.find(".reaction-count").text(n)})}),$kan.ready(function(){$kan.on("click",".kan-reactions__item",function(e){e.preventDefault();var i=y(this),s=i.closest(".kan-reactions"),e=s.data("post-id"),t=s.data("nonce"),a=i.data("reaction");i.hasClass("is-loading")||(i.addClass("is-loading"),y.ajax({type:"POST",url:kan_vars.ajax,data:{action:"kanews_post_react",post_id:e,reaction:a,nonce:t},dataType:"json",success:function(e){function t(e,t){var a=e.find(".kan-reactions__count");0<t?a.length?a.text(t):e.append('<span class="kan-reactions__count">'+t+"</span>"):a.remove()}var a,n;e.success&&(e=e.data,s.find(".kan-reactions__item").removeClass("is-selected"),"removed"===e.action?(a=parseInt(i.find(".kan-reactions__count").text())||0,t(i,a-1)):(e.previous&&(a=s.find('[data-reaction="'+e.previous+'"]'),n=parseInt(a.find(".kan-reactions__count").text())||0,t(a,n-1)),i.addClass("is-selected"),t(i,e.count),i.find(".kan-reactions__icon").addClass("kan-bounce"),setTimeout(function(){i.find(".kan-reactions__icon").removeClass("kan-bounce")},600)))},complete:function(){i.removeClass("is-loading")}}))})}),$kan.ready(function(){var u=null,h={like:'<svg viewBox="0 0 64 64" width="SIZE" height="SIZE"><path fill="#ee5a5a" d="M32 58C17.6 48.8 8 39.2 8 28c0-8.8 7.2-16 16-16 5.6 0 8 2.4 8 2.4s2.4-2.4 8-2.4c8.8 0 16 7.2 16 16 0 11.2-9.6 20.8-24 30z"/></svg>',love:'<svg viewBox="0 0 64 64" width="SIZE" height="SIZE"><circle fill="#ffc83d" cx="32" cy="32" r="28"/><path fill="#ff6b6b" d="M22 28c-2.5-4-7.5-4-10 0-3 5 5 12 10 16 5-4 13-11 10-16-2.5-4-7.5-4-10 0z"/><path fill="#ff6b6b" d="M42 28c-2.5-4-7.5-4-10 0-3 5 5 12 10 16 5-4 13-11 10-16-2.5-4-7.5-4-10 0z"/><path fill="#664e27" d="M32 52c8 0 14-4 14-4s-2-4-14-4-14 4-14 4 6 4 14 4z"/></svg>',haha:'<svg viewBox="0 0 64 64" width="SIZE" height="SIZE"><circle fill="#ffc83d" cx="32" cy="32" r="28"/><path fill="#664e27" d="M32 54c10 0 16-8 16-14H16c0 6 6 14 16 14z"/><path fill="#ff717f" d="M32 54c6 0 10-2 10-4H22c0 2 4 4 10 4z"/></svg>',wow:'<svg viewBox="0 0 64 64" width="SIZE" height="SIZE"><circle fill="#ffc83d" cx="32" cy="32" r="28"/><ellipse fill="#664e27" cx="22" cy="26" rx="4" ry="6"/><ellipse fill="#664e27" cx="42" cy="26" rx="4" ry="6"/><ellipse fill="#664e27" cx="32" cy="46" rx="8" ry="10"/></svg>',sad:'<svg viewBox="0 0 64 64" width="SIZE" height="SIZE"><circle fill="#ffc83d" cx="32" cy="32" r="28"/><ellipse fill="#664e27" cx="22" cy="28" rx="4" ry="5"/><ellipse fill="#664e27" cx="42" cy="28" rx="4" ry="5"/><path fill="none" stroke="#664e27" stroke-width="3" d="M22 46c4-6 16-6 20 0"/><ellipse fill="#4bc9ff" cx="16" cy="36" rx="4" ry="6" opacity="0.7"/></svg>',angry:'<svg viewBox="0 0 64 64" width="SIZE" height="SIZE"><circle fill="#e25950" cx="32" cy="32" r="28"/><ellipse fill="#664e27" cx="22" cy="30" rx="4" ry="5"/><ellipse fill="#664e27" cx="42" cy="30" rx="4" ry="5"/><path fill="none" stroke="#664e27" stroke-width="3" d="M22 48c4 4 16 4 20 0"/></svg>'};$kan.on("click",".kan-comment-reactions__trigger",function(e){e.stopPropagation();e=y(this).closest(".kan-comment-reactions__action");u=e.hasClass("is-open")?(e.removeClass("is-open"),null):(y(".kan-comment-reactions__action").removeClass("is-open"),e.addClass("is-open"),e)}),y(document).on("click",function(e){u&&!y(e.target).closest(".kan-comment-reactions__action").length&&(u.removeClass("is-open"),u=null)}),y(document).on("keydown",function(e){"Escape"===e.key&&u&&(u.removeClass("is-open"),u=null)}),$kan.on("click",".kan-comment-reactions__item",function(e){e.preventDefault(),e.stopPropagation();var r=y(this),o=r.closest(".kan-comment-reactions"),l=r.closest(".kan-comment-reactions__action"),e=o.data("comment-id"),t=o.data("nonce"),c=r.data("reaction"),d=r.data("label");r.hasClass("is-loading")||(r.addClass("is-loading"),y.ajax({type:"POST",url:kan_vars.ajax,data:{action:"kanews_comment_react",comment_id:e,reaction:c,nonce:t},dataType:"json",success:function(e){var t,a,n,i,s;e.success&&(e=e.data,s=(t=o.find(".kan-comment-reactions__trigger")).find(".kan-comment-reactions__trigger-icon"),a=t.find(".kan-comment-reactions__trigger-text"),n=t.find(".kan-comment-reactions__trigger-count"),o.find(".kan-comment-reactions__item").removeClass("is-selected"),"removed"===e.action?(t.removeClass("has-reaction"),s.html('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg>'),a.text("Tepki Ver"),o.attr("data-user-reaction",""),0<e.total?n.length?n.text(e.total):t.append('<span class="kan-comment-reactions__trigger-count">'+e.total+"</span>"):n.remove()):(r.addClass("is-selected"),t.addClass("has-reaction"),s.html((s=16,h[i=c]?h[i].replace(/SIZE/g,s):"")),a.text(d),o.attr("data-user-reaction",c),n.length?n.text(e.total):t.append('<span class="kan-comment-reactions__trigger-count">'+e.total+"</span>"),r.find(".kan-comment-reactions__icon").addClass("kan-bounce"),setTimeout(function(){r.find(".kan-comment-reactions__icon").removeClass("kan-bounce")},600)),setTimeout(function(){l.removeClass("is-open"),u=null},300))},complete:function(){r.removeClass("is-loading")}}))})}),$kan.on("submit","#kanews-login-form",function(e){e.preventDefault();var t=y(this).find('button[type="submit"]'),a=y(this),n=a.find("#kanews-loader");y.ajax({type:"POST",url:kan_vars.ajax,data:y(this).serialize()+"&action=kanews_ajax_login&nonce="+kan_vars.nonce,dataType:"json",beforeSend:function(){t.attr("disabled",!0),n.html(kan_loader)},success:function(e){var t=e.success?"success":"danger",t=y('<div class="kanews-response bg-'+t+'" role="alert">'+e.data.message+"</div>");a.find(".kanews-response").remove(),t.prependTo(a),e.success&&setTimeout(function(){var e=window.location.href;-1<e.indexOf("?")?e+="&login=1":e+="?login=1",window.location.href=e,window.location.href.reload()},2500),n.empty()},error:function(e){t.attr("disabled",!1),n.empty()},complete:function(){t.attr("disabled",!1)}})}),$kan.on("submit","#kanews-register-form",function(e){e.preventDefault();var t=y(this).find('button[type="submit"]'),a=y(this),n=a.find("#kanews-loader");y.ajax({type:"POST",url:kan_vars.ajax,data:y(this).serialize()+"&action=kanews_ajax_register&nonce="+kan_vars.nonce,dataType:"json",beforeSend:function(){t.attr("disabled",!0),n.html(kan_loader)},success:function(e){var t=e.success?"success":"danger",t=y('<div class="kanews-response bg-'+t+'" role="alert">'+e.data.message+"</div>");a.find(".kanews-response").remove(),t.prependTo(a),e.success&&setTimeout(function(){var e=window.location.href;-1<e.indexOf("?")?e+="&register=1":e+="?register=1",window.location.href=e,window.location.href.reload()},2500),n.empty()},error:function(e){t.attr("disabled",!1),n.empty()},complete:function(){t.attr("disabled",!1)}})}),$kan.on("submit","#kanews-contact-form",function(e){e.preventDefault();var t=y(this).find('button[type="submit"]'),a=y(this),n=a.find("#kanews-loader");y.ajax({type:"POST",url:kan_vars.ajax,data:y(this).serialize()+"&action=kanews_ajax_contact&nonce="+kan_vars.nonce,dataType:"json",beforeSend:function(){t.attr("disabled",!0),n.html(kan_loader)},success:function(e){var t=e.success?"success":"danger",t=y('<div class="kanews-response bg-'+t+'" role="alert">'+e.data.message+"</div>");a.find(".kanews-response").remove(),t.prependTo(a),e.success&&setTimeout(function(){window.location.reload()},2500),n.empty()},error:function(e){t.attr("disabled",!1),n.empty()},complete:function(){t.attr("disabled",!1)}})}),$kan.on("submit","#kanews-profile-form",function(e){e.preventDefault();var t=y(this).find('button[type="submit"]'),a=y(this),n=a.find("#kanews-loader");y.ajax({type:"POST",url:kan_vars.ajax,data:y(this).serialize()+"&action=kanews_ajax_profile&nonce="+kan_vars.nonce,dataType:"json",beforeSend:function(){t.attr("disabled",!0),n.html(kan_loader)},success:function(e){var t=e.success?"success":"danger",t=y('<div class="kanews-response bg-'+t+'" role="alert">'+e.data.message+"</div>");a.find(".kanews-response").remove(),t.prependTo(a),e.success&&setTimeout(function(){window.location.reload()},2500),n.empty()},error:function(e){t.attr("disabled",!1),n.empty()},complete:function(){t.attr("disabled",!1)}})}),$kan.on("click",".kanews-collapse-btn",function(){var e=y(this),t=e.closest(".kanews-collapse-wrapper").find(".kanews-collapse-item"),a=e.find("span"),e=e.find(".icon-arrow");e.hasClass("icon-180deg")?(e.removeClass("icon-180deg"),a.html(kan_vars.translate.showmore)):(e.addClass("icon-180deg"),a.html(kan_vars.translate.showless)),t.each(function(){y(this).toggleClass("hidden-mobile")})}),$kan.on("click","#kanews-ilan-update",function(e){e.preventDefault();var a=y(this),t=a.find("#kanews-loader");y.ajax({type:"POST",url:kan_vars.ajax,data:{action:"kanews_ilan_ilan_update",nonce:kan_vars.nonce,pid:y(this).data("pid"),puid:y(this).data("puid")},dataType:"json",beforeSend:function(){a.attr("disabled",!0),t.html(kan_loader)},success:function(e){var t=e.success?"success":"danger";y("body").append('<div id="kanews-ilan-alert" class="kanews-response-fixed kanews-response bg-'+t+'" role="alert">'+e.data.message+"</div>"),setTimeout(function(){y("#kanews-ilan-alert").fadeOut("normal",function(){y(this).remove()})},5e3),a.remove()}})}),$kan.on("click",".kanews-comment-show-more",function(){var e=y(this).closest("li").attr("id"),e=y("#"+e+" + .children"),t=y(this).find(".icon-caret"),a=y(this).find("span");t.hasClass("icon-180deg")?(t.removeClass("icon-180deg"),a.text(kan_vars.hide_children)):(t.addClass("icon-180deg"),a.text(kan_vars.show_children)),e.slideToggle(300)}),navigator.share?$kan.on("click",".kanews-native-share",function(){var e=y("head title").text(),t=window.location.href;navigator.share({title:e,url:t}).then(console.log("Successful share")).catch(console.error)}):(e=y("head title").text(),n=window.location.href,y(".kanews-native-share").html(kanewsGetIconHtml("icon-envelope")),y(".kanews-native-share").removeAttr("onclick"),y(".kanews-native-share").attr("href","mailto:e-posta@domain.com?subject="+e+">&body="+n)),$kan.on("click",".kanews-show-password",function(){var e=y(this),t=e.parent().find("input");"password"===t.attr("type")?(t.attr("type","text"),e.addClass("skew-on"),e.removeClass("skew-off")):(t.attr("type","password"),e.addClass("skew-off"),e.removeClass("skew-on"))}),$kan.ready(function(){var t=!1,n=(y("#countrySelect").click(function(){t||y.getJSON("https://kanews.codezenic.com/api/countries",function(e){var a="";y.each(e,function(e,t){"Turkey"==t.name?a+="<option value='"+t.name+"' selected>"+t.name+"</option>":a+="<option value='"+t.name+"'>"+t.name+"</option>"}),y("#countrySelect").html(a),t=!0})}),y("#countrySelect").change(function(){var t="Turkey";y.getJSON("https://kanews.codezenic.com/api/regions?country="+t,function(e){var a="";y.each(e,function(e,t){a+="<option value='"+t+"'>"+t+"</option>"}),y("#regionSelect").html(a)}),setTimeout(function(){var e=y("#regionSelect").val();""!==e&&a(t,e)},3e3)}),y("#regionSelect").change(function(){var e=y(this).val();""!==n&&""!==e&&a(n,e)}),"Turkey"),e=y("#regionSelect").val();function a(e,t){var a,n;Cookies.get(t+"_cities")?(a=JSON.parse(Cookies.get(t+"_cities")),n="",y.each(a,function(e,t){n+="<option value='"+t+"'>"+t+"</option>"}),y("#citySelect").html(n)):y.getJSON("https://kanews.codezenic.com/api/cities?country="+e+"&region="+t,function(e){var a="";Cookies.set(t+"_cities",JSON.stringify(e),{expires:9999}),y.each(e,function(e,t){a+="<option value='"+t+"'>"+t+"</option>"}),y("#citySelect").html(a)})}function i(){let i=new Date;document.querySelectorAll(".time").forEach(e=>{var t=e.textContent.split(":"),a=parseInt(t[0],10),t=parseInt(t[1],10),n=new Date;n.setHours(a,t,0,0),n<i?e.parentElement.parentElement.classList.add("active"):e.parentElement.parentElement.classList.remove("active")})}""!==n&&""!==e&&a(n,e),y("#getirButton").click(function(){var e,t=y("#regionSelect").val(),a=y("#citySelect").val();""!==n&&""!==t&&(e=window.location.href.split("?")[0],window.location.href=e+"?sehir="+t+"&ilce="+a)}),setInterval(i,6e4),i()});var e,n,i=y(".table-sorter").find("tbody"),s=i.find("tr").length,r=y(".table-sorter").data("shown")?y(".table-sorter").data("shown"):9,o=y(".table-sorter").data("more")?y(".table-sorter").data("more"):3;i.find("tr:gt("+(r-1)+")").hide().end().after('<tbody id="more"><tr><td colspan="'+i.find("tr:first td").length+'"><div style="display:inline-block" class="kanews-label">\t'+kan_vars.translate.showmore+" <span>("+o+")</span></div</tbody></td></tr>"),y("#more").click(function(){s<=(r+=o)&&y("#more").remove(),s-r<o&&y("#more span").html(s-r),i.find("tr:lt("+r+")").show()})})(jQuery),document.addEventListener("DOMContentLoaded",function(){try{void 0!==KanAudioPlayer&&void 0===window.kanAudioPlayer&&document.querySelector(".audio-icon")&&(window.kanAudioPlayer=new KanAudioPlayer({playingIconURL:"undefined"!=typeof kan_vars&&kan_vars.assets?kan_vars.assets+"img/static/sound.gif":"/assets/img/static/sound.gif",playLabel:"Dinlemeye Başla",pauseLabel:"Dinlemeyi Durdur"}))}catch(e){}});class KanAudioPlayer{constructor(e={}){this.options={iconSelector:".audio-icon",audioPlayerID:"kan-audio-player",progressCircleRadius:16,playingIconURL:e.playingIconURL||"/assets/img/static/sound.gif",playLabel:e.playLabel||"Dinlemeye Başla",pauseLabel:e.pauseLabel||"Dinlemeyi Durdur",...e},this.players=new Map,this.globalAudioElement=null,this.currentlyPlaying=null,this.init()}init(){document.getElementById(this.options.audioPlayerID)?this.globalAudioElement=document.getElementById(this.options.audioPlayerID):(this.globalAudioElement=document.createElement("audio"),this.globalAudioElement.id=this.options.audioPlayerID,this.globalAudioElement.style.display="none",document.body.appendChild(this.globalAudioElement)),document.querySelectorAll(this.options.iconSelector).forEach(e=>{this.setupAudioIcon(e)}),document.addEventListener("click",e=>{e=e.target.closest(this.options.iconSelector);e&&!this.players.has(e)&&(this.setupAudioIcon(e),e.click())})}setupAudioIcon(t){if(!this.players.has(t)){var a=t.getAttribute("data-src");if(a){this.ensureIconStructure(t);let e={element:t,originalIcon:t.querySelector(".icon-mic"),progressCircle:t.querySelector(".progress-circle circle"),isPlaying:!1,pauseTime:0,audioSrc:a};a=2*Math.PI*this.options.progressCircleRadius;e.progressCircle.style.strokeDasharray=""+a,e.progressCircle.style.strokeDashoffset=""+a,e.circumference=a,t.addEventListener("click",()=>this.togglePlayback(e)),this.players.set(t,e)}}}ensureIconStructure(e){var t,a;"static"===getComputedStyle(e).position&&(e.style.position="relative"),e.querySelector(".progress-circle")||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("class","progress-circle"),t.setAttribute("width","40"),t.setAttribute("height","40"),t.setAttribute("viewBox","0 0 40 40"),t.style.position="absolute",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)",(a=document.createElementNS("http://www.w3.org/2000/svg","circle")).setAttribute("cx","20"),a.setAttribute("cy","20"),a.setAttribute("r",this.options.progressCircleRadius.toString()),a.setAttribute("fill","none"),a.setAttribute("stroke","#3498db"),a.setAttribute("stroke-width","3"),a.setAttribute("transform","rotate(-90, 20, 20)"),t.appendChild(a),e.appendChild(t)),e.querySelector(".icon-mic")||((a=document.createElement("div")).classList.add("icon-mic"),a.innerHTML="🔊",e.appendChild(a)),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label",this.options.playLabel)}togglePlayback(t){let e=t.element.classList.contains("kanews-article-audio-intro__btn");var a;t.isPlaying?(t.pauseTime=this.globalAudioElement.currentTime,this.globalAudioElement.pause(),t.isPlaying=!1,this.currentlyPlaying=null,t.element.setAttribute("aria-label",this.options.playLabel),t.originalIcon&&(t.originalIcon.style.display="block"),e?(t.element.classList.remove("is-playing"),t.element.style.removeProperty("--kan-audio-progress")):(a=t.element.querySelector(".playing"))&&(a.style.display="none")):(this.currentlyPlaying&&(a=this.players.get(this.currentlyPlaying))&&(a.pauseTime=this.globalAudioElement.currentTime,a.isPlaying=!1,a.element.setAttribute("aria-label",this.options.playLabel),a.originalIcon&&(a.originalIcon.style.display="block"),a.element.classList.contains("kanews-article-audio-intro__btn")?(a.element.classList.remove("is-playing"),a.element.style.removeProperty("--kan-audio-progress")):(a=a.element.querySelector(".playing"))&&(a.style.display="none")),this.globalAudioElement.src!==t.audioSrc&&(this.globalAudioElement.src=t.audioSrc,t.pauseTime=0),this.globalAudioElement.currentTime=t.pauseTime,this.globalAudioElement.play().then(()=>{if(t.isPlaying=!0,this.currentlyPlaying=t.element,t.element.setAttribute("aria-label",this.options.pauseLabel),e)t.element.classList.add("is-playing"),t.element.style.setProperty("--kan-audio-progress","0%");else{let e=t.element.querySelector(".playing");e?e.style.display="block":((e=document.createElement("img")).src=this.options.playingIconURL,e.classList.add("playing"),e.style.display="block",e.style.position="absolute",e.style.width="24px",e.style.height="24px",e.style.top="50%",e.style.left="50%",e.style.transform="translate(-50%, -50%)",t.element.appendChild(e)),t.originalIcon&&(t.originalIcon.style.display="none")}this.updateProgress(t)}).catch(e=>{console.error("Error playing audio:",e)}))}updateProgress(a){let n=a.element.classList.contains("kanews-article-audio-intro__btn");this.globalAudioElement.ontimeupdate=null,this.globalAudioElement.ontimeupdate=()=>{var e,t;this.currentlyPlaying===a.element&&(e=this.globalAudioElement.currentTime/this.globalAudioElement.duration,n?(t=100*Math.max(0,Math.min(e,1)),a.element.style.setProperty("--kan-audio-progress",t+"%")):(t=a.circumference-e*a.circumference,a.progressCircle.style.strokeDashoffset=t))},this.globalAudioElement.onended=()=>{var e;this.currentlyPlaying===a.element&&(a.isPlaying=!1,this.currentlyPlaying=null,a.pauseTime=0,a.element.setAttribute("aria-label",this.options.playLabel),a.originalIcon&&(a.originalIcon.style.display="block"),n?(a.element.classList.remove("is-playing"),a.element.style.removeProperty("--kan-audio-progress")):((e=a.element.querySelector(".playing"))&&(e.style.display="none"),a.progressCircle.style.strokeDashoffset=a.circumference))}}addPlayer(e){return!!e&&(this.setupAudioIcon(e),!0)}removePlayer(e){return!!this.players.has(e)&&(this.currentlyPlaying===e&&(this.globalAudioElement.pause(),this.currentlyPlaying=null),this.players.delete(e),!0)}}class ArticleChat{constructor(){"undefined"!=typeof kanews_chat&&null!==kanews_chat&&(this.chatButton=null,this.chatWindow=null,this.messagesContainer=null,this.questionCount=0,this.articleId=null,this.isSubscribed="1"===kan_vars.subscribe||1===kan_vars.subscribe||!0===kan_vars.subscribe,this.insights=kanews_chat.insights,this.subscriptionUrl=kanews_chat.subscription_url,this.maxQuestionsPerArticle=this.isSubscribed?kanews_chat.premium_limit:kanews_chat.free_limit,this.maxArticlesPerDay=this.isSubscribed?kanews_chat.premium_limit:kanews_chat.free_limit,this.init())}init(){var e;jQuery("body").hasClass("single-post")&&(this.articleId=jQuery("body").attr("class").match(/postid-(\d+)/)[1],this.initializeChat(),this.bindEvents(),this.loadChatState(),0<(e=this.getChatHistoryMessages(this.articleId)).length?e.forEach(e=>this.addMessage(e.text,e.type)):this.addWelcomeMessage(),this.updateRemainingQuestions(),this.renderHistoryPanel())}addWelcomeMessage(){var e=window.kanews_chat_texts||{},t=kanews_chat.free_limit,a=this.subscriptionUrl||"";let n;this.isSubscribed?n=(e.welcome_premium||"").replace(/\{premium_limit\}/g,kanews_chat.premium_limit):(n=(e.welcome_free||"").replace(/\{free_limit\}/g,t),this.insights&&e.upgrade_text&&(n+=" "+(e.upgrade_text||"").replace(/\{upgrade_url\}/g,a))),n&&this.addMessage(n,"bot")}initializeChat(){this.chatButton=jQuery(".kanews-chat-button"),this.chatWindow=jQuery(".kanews-chat-window"),this.messagesContainer=jQuery(".kanews-chat-panel-sohbet .kanews-chat-messages"),this.chatButton.length&&this.chatWindow.length&&this.messagesContainer.length?this.updateRemainingQuestions():console.error("Chat elements not found")}bindEvents(){this.chatButton.on("click",e=>{jQuery(e.target).closest(".kanews-chat-button-close").length||this.toggleChat()}),jQuery(".kanews-chat-button-close").on("click",e=>{e.stopPropagation(),this.chatButton.fadeOut(200)}),jQuery(".close-chat").on("click",()=>this.toggleChat()),jQuery(document).on("click",".kanews-open-chat",()=>this.toggleChat()),jQuery(".kanews-chat-send, .kanews-chat-input button").on("click",()=>this.handleUserMessage()),jQuery(".kanews-chat-input input").on("keypress",e=>{13===e.which&&this.handleUserMessage()}),jQuery(".kanews-chat-tab").on("click",function(){var e=jQuery(this).data("tab");jQuery(".kanews-chat-tab").removeClass("active").attr("aria-pressed","false"),jQuery(this).addClass("active").attr("aria-pressed","true"),jQuery(".kanews-chat-panel").addClass("hidden").attr("aria-hidden","true"),jQuery(".kanews-chat-panel-"+e).removeClass("hidden").attr("aria-hidden","false")}),jQuery(".kanews-chat-suggested-link").on("click",e=>{e.preventDefault();var e=jQuery(e.currentTarget).data("action"),t={summarize:"Bu haberi tüm kapsamıyla özetler misin?",main_points:"Bu haberin ana fikirlerini maddeler halinde listeler misin?",short_summary:"Bu haberi 3 cümlede özetler misin?",three_points:"Bu haberin en önemli 3 noktasını maddeler halinde çıkarır mısın?"};t[e]&&this.sendSuggestedMessage(t[e])}),jQuery(".kanews-chat-expand").on("click",()=>this.chatWindow.toggleClass("kanews-chat-fullscreen"))}sendSuggestedMessage(e){jQuery(".kanews-chat-input input").val(e),this.handleUserMessage()}toggleChat(){var e=this.chatWindow.hasClass("active");this.chatWindow.toggleClass("active"),e?this.chatButton.fadeIn(200):this.chatButton.fadeOut(200)}async handleUserMessage(){var e=jQuery(".kanews-chat-panel-sohbet .kanews-chat-input input"),t=e.val().trim();if(t)if(this.canAskQuestion()){e.val(""),this.addMessage(t,"user"),e.prop("disabled",!0),jQuery(".kanews-chat-send, .kanews-chat-input button").prop("disabled",!0);var a=this.addMessage('<span class="kanews-typing"><span></span><span></span><span></span></span>',"bot");try{var n=await this.sendMessageToBackend(t);this.removeMessage(a),n.success?(this.addMessage(n.data.message,"bot"),this.incrementQuestionCount(),this.updateRemainingQuestions()):this.showError(n.data.message||"Bir hata oluştu. Lütfen tekrar deneyin.")}catch(e){this.removeMessage(a),this.showError("Bir hata oluştu. Lütfen tekrar deneyin."),console.error("Chat error:",e)}e.prop("disabled",!1),jQuery(".kanews-chat-send, .kanews-chat-input button").prop("disabled",!1)}else this.showError("Günlük veya makale soru limitine ulaştınız.")}async sendMessageToBackend(e){var t=jQuery(".kanews-article-title").text().trim(),a=jQuery(".kanews-article-content").text().trim();let n=null;if(!(n=(n=(n=jQuery("#kanews_chat_nonce").val())||"undefined"==typeof kanews_chat?n:kanews_chat.nonce)||kan_vars.nonce))throw this.showError("Güvenlik doğrulaması yapılamadı. Lütfen sayfayı yenileyip tekrar deneyin."),new Error("Güvenlik anahtarı bulunamadı.");try{var i,s=await jQuery.ajax({url:kan_vars.ajax,type:"POST",data:{action:"kanews_chat_message",nonce:n,message:e,article_id:this.articleId,article_title:t,article_content:a}});if(s.success)return s;throw i=s.data?.message||"Bir hata oluştu.",this.showError(i),new Error(i)}catch(e){throw console.error("Backend error:",e),e}}addMessage(e,t){var a=Date.now(),e=(this.messagesContainer.append(`
<div class="kanews-chat-message ${t}" data-id="${a}">
${e}
</div>
`),this.messagesContainer.scrollTop(this.messagesContainer[0].scrollHeight),"string"==typeof e&&(-1!==e.indexOf("kanews-typing")||/<span class="kanews-typing"/.test(e)));return"user"!==t&&"bot"!==t||e||(this.saveChatHistoryForArticle(),this.renderHistoryPanel()),a}removeMessage(e){jQuery(`.kanews-chat-message[data-id="${e}"]`).remove()}showError(e){this.addMessage(e,"bot")}canAskQuestion(){var e=this.getDailyChatData(),t=this.getArticleChatData();return Object.keys(e.articles).length>=this.maxArticlesPerDay&&!e.articles[this.articleId]?(e=this.isSubscribed?`Günlük ${kanews_chat.premium_limit} makale limitine ulaştınız.`:this.insights?`Günlük ${kanews_chat.free_limit} makale limitine ulaştınız. Daha fazlası için <a href="${this.subscriptionUrl}">premium üyelik</a> satın alın.`:`Günlük ${kanews_chat.free_limit} makale limitine ulaştınız.`,this.showError(e),!1):!(t.questionCount>=this.maxQuestionsPerArticle&&(e=this.isSubscribed?`Bu makale için ${kanews_chat.premium_limit} soru limitine ulaştınız.`:this.insights?`Bu makale için ${kanews_chat.free_limit} soru limitine ulaştınız. Daha fazlası için <a href="${this.subscriptionUrl}">premium üyelik</a> satın alın.`:`Bu makale için ${kanews_chat.free_limit} soru limitine ulaştınız.`,this.showError(e),1))}incrementQuestionCount(){var e=this.getDailyChatData(),e=(e.articles[this.articleId]||(e.articles[this.articleId]=0),e.articles[this.articleId]++,this.saveDailyChatData(e),this.getArticleChatData());e.questionCount++,this.saveArticleChatData(e)}updateRemainingQuestions(){var e=window.kanews_chat_texts||{},t=this.getArticleChatData(),t=this.maxQuestionsPerArticle-t.questionCount,a=this.subscriptionUrl||"";let n;this.isSubscribed?n=(e.remaining_premium||"Premium üye olarak {remaining} soru hakkınız kaldı.").replace(/\{remaining\}/g,t):(n=(e.remaining_free||"Ücretsiz kullanıcı olarak {remaining} soru hakkınız kaldı.").replace(/\{remaining\}/g,t),this.insights&&e.upgrade_text&&(n+=" "+(e.upgrade_text||"").replace(/\{upgrade_url\}/g,a))),jQuery(".kanews-chat-panel-sohbet .kanews-chat-remaining").html(n)}getDailyChatData(){var e=Cookies.get("kanews_chat_daily");return e?JSON.parse(e):{date:(new Date).toDateString(),articles:{}}}saveDailyChatData(e){Cookies.set("kanews_chat_daily",JSON.stringify(e),{expires:1})}getArticleChatData(){var e="kanews_chat_article_"+this.articleId,e=Cookies.get(e);return e?JSON.parse(e):{questionCount:0}}saveArticleChatData(e){var t="kanews_chat_article_"+this.articleId;Cookies.set(t,JSON.stringify(e),{expires:7})}loadChatState(){this.getDailyChatData().date!==(new Date).toDateString()&&this.saveDailyChatData({date:(new Date).toDateString(),articles:{}})}getChatHistoryKey(){return"kanews_chat_history"}getChatHistory(){var e=Cookies.get(this.getChatHistoryKey());if(!e)return{articles:{}};try{var t=JSON.parse(e);return t&&"object"==typeof t.articles?t:{articles:{}}}catch(e){return{articles:{}}}}saveChatHistory(e){Cookies.set(this.getChatHistoryKey(),JSON.stringify(e),{expires:30})}getChatHistoryMessages(e){e=this.getChatHistory().articles[String(e)];return e&&Array.isArray(e.messages)?e.messages:[]}saveChatHistoryForArticle(){let n=[];this.messagesContainer.find(".kanews-chat-message").each(function(){var e=jQuery(this),t=e.hasClass("user")?"user":"bot";let a=e.html().trim();-1===a.indexOf("kanews-typing")&&(500<a.length&&(a=a.substring(0,500)+"…"),n.push({type:t,text:a}))});var e=jQuery(".kanews-article-title").length?jQuery(".kanews-article-title").text().trim():"";let a=this.getChatHistory();var i=void 0!==window.location?window.location.href:"",e=(a.articles[String(this.articleId)]={title:(e||"Makale #"+this.articleId).substring(0,80),permalink:i,messages:n.slice(-30),updated:(new Date).toISOString()},Object.keys(a.articles));if(10<e.length){i=e.sort((e,t)=>(a.articles[t].updated||"").localeCompare(a.articles[e].updated||"")).slice(0,10);let t={};i.forEach(e=>{t[e]=a.articles[e]}),a.articles=t}this.saveChatHistory(a)}renderHistoryPanel(){let o=this.getChatHistory();var e=jQuery(".kanews-chat-history-list"),t=jQuery(".kanews-chat-history-empty"),a=Object.keys(o.articles);if(0===a.length)e.empty().hide(),t.show();else{t.hide();t=a.sort((e,t)=>(o.articles[t].updated||"").localeCompare(o.articles[e].updated||""));let s=String(this.articleId),r="undefined"!=typeof kanews_chat&&kanews_chat.home_url?kanews_chat.home_url.replace(/\/?$/,"/"):window.location.origin+"/";a=t.map(e=>{var t=o.articles[e],a=(a=(t.title||"Makale #"+e).substring(0,60),(n=document.createElement("div")).textContent=a,n.innerHTML),n=t.updated?new Date(t.updated).toLocaleDateString("tr-TR",{day:"numeric",month:"short",year:"numeric"}):"";let i="#";e!==s&&(i=t.permalink&&0!==t.permalink.indexOf("#")?t.permalink:r+(0<=r.indexOf("?")?"&":"?")+"p="+encodeURIComponent(e));t=e===s;return`<a href="${i}" class="kanews-chat-history-item ${t?"is-current":""}" data-article-id="${e}">`+`<span class="kanews-chat-history-title">${a}</span>`+`<span class="kanews-chat-history-date">${n}</span>`+"</a>"});e.html(a.join("")).show(),e.find(".kanews-chat-history-item").on("click",e=>{jQuery(e.currentTarget).hasClass("is-current")&&e.preventDefault()})}}}jQuery(document).ready(function(){"undefined"!=typeof kanews_chat&&null!==kanews_chat&&new ArticleChat});
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,i="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){o(),e&&new e(d).observe(E.body,{childList:!0,subtree:!0})}function o(e){if(i&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,d=n.length;o<d;o++)n[o].addEventListener("click",r)}}function l(e){var t,n,o=g(b.temporaryFormId);o&&h&&(g(b.parentIdFieldId).value="0",t=o.textContent,o.parentNode.replaceChild(h,o),this.style.display="none",n=(o=(o=g(b.commentReplyTitleId))&&o.firstChild)&&o.nextSibling,o&&o.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),o.textContent=t),e.preventDefault())}function r(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,o=a(n,"belowelement"),d=a(n,"commentid"),i=a(n,"respondelement"),l=a(n,"postid"),n=a(n,"replyto")||t;o&&d&&i&&l&&!1===v.addComment.moveForm(o,d,i,l,n)&&e.preventDefault()}function d(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void o()}function a(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return i&&"loading"!==E.readyState?t():i&&v.addEventListener("DOMContentLoaded",t,!1),{init:o,moveForm:function(e,t,n,o,d){var i,l,r,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===d&&(d=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),o&&y&&(y.value=o),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=d),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],l=!1,"getComputedStyle"in v?r=v.getComputedStyle(i):E.documentElement.currentStyle&&(r=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===r.visibility)&&(l=!0),"hidden"!==i.type&&!i.disabled&&!l){i.focus();break}}catch(e){}return!1}}}}(window);
!function(){var e={5574:function(e,t,i){"use strict";i.r(t),i.d(t,{AutoResizing:function(){return y},LAZY_BEFORE_SIZES:function(){return l},SMUSH_BEFORE_SIZES:function(){return c}});var n=i(356);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,a,o,s=[],u=!0,l=!1;try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;u=!1}else for(;!(u=(n=a.call(i)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var l="lazybeforesizes",c="smush:beforeSizes",d="data-original-sizes",f="data-srcset",v=["gif","jpg","jpeg","png","webp"],h="w",y=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.precision,n=void 0===i?0:i,r=t.skipAutoWidth,a=void 0!==r&&r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.precision=parseInt(n,10),this.precision=isNaN(this.precision)?0:this.precision,this.skipAutoWidth=a,this.initEventListeners()},t=[{key:"initEventListeners",value:function(){var e=this;document.addEventListener(l,function(t){var i;(0,n.G)(null===(i=t.detail)||void 0===i?void 0:i.instance)&&e.maybeAutoResize(t)})}},{key:"maybeAutoResize",value:function(e){var t,i,n,r=e.target,a=null===(t=e.detail)||void 0===t?void 0:t.width;if("IMG"===(null==r?void 0:r.nodeName)&&a)if(null===(i=e.detail)||void 0===i?void 0:i.dataAttr){if(this.isElementEligibleForResizing(r))if(this.shouldRevertToOriginalSizes(r,a))this.revertToOriginalSizesIfNeeded(r)&&e.preventDefault();else{var o=this.triggerEvent(r,c,{resizeWidth:a});if(o.defaultPrevented)this.revertToOriginalSizesIfNeeded(r)&&e.preventDefault();else{a=(null===(n=o.detail)||void 0===n?void 0:n.resizeWidth)||a;var s=this.getDataSrc(r);this.isFromSmushCDN(s)&&(this.resizeImageWithCDN(r,a),this.isChildOfPicture(r)&&this.resizeSourceElements(r.parentNode.querySelectorAll("source"),a))}}}else this.getOriginalSizesAttr(r)||e.preventDefault()}},{key:"shouldAutoResize",value:function(e,t){var i=e.parentNode;if(i&&this.isInlineElement(i)){if("PICTURE"===i.nodeName)return!1;var n=i.clientWidth,r=e.offsetWidth;if(t===n&&n===r)return!1}return!0}},{key:"isInlineElement",value:function(e){if(!e||1!==e.nodeType)return!1;var t=window.getComputedStyle(e).display;return"inline"===t||"inline-block"===t}},{key:"isChildOfPicture",value:function(e){var t;return e&&"PICTURE"===(null==e||null===(t=e.parentNode)||void 0===t?void 0:t.nodeName)}},{key:"resizeSourceElements",value:function(e,t){var i=this;e&&null!=e&&e.length&&e.forEach(function(e){return i.resizeSourceElement(e,t)})}},{key:"resizeSourceElement",value:function(e,t){var i=e.getAttribute(f);if(i){var n=this.parseSrcSet(i);if(n&&n.length)if(1===n.length&&""===n[0].unit)this.resizeNonResponsiveSource(e,n[0].src,t);else{var r=this.getBaseSourceSrcForResize(n,t);this.isFromSmushCDN(r)&&this.updateSrcsetForResize(e,i,r,t,n)}}}},{key:"resizeNonResponsiveSource",value:function(e,t,i){if(this.isFromSmushCDN(t)&&this.isSourceActive(e)){var n=this.getResizedCDNURL(t,i),r=this.getPixelRatio();if(r>1){var a=Math.ceil(i*r),o=this.getResizedCDNURL(t,a)+" "+a+h;n+=" ".concat(i).concat(h,", ").concat(o)}this.updateElementSrcset(e,null,n)}}},{key:"isSourceActive",value:function(e){var t,i=e.getAttribute("media");return!(i&&(null===(t=window)||void 0===t||null===(t=t.matchMedia(i))||void 0===t||!t.matches))}},{key:"getBaseSourceSrcForResize",value:function(e,t){var i=e[0];return h!==i.unit?null:!this.isThumbnail(i.src)||i.value>=t?i.src:null}},{key:"isElementEligibleForResizing",value:function(e){var t=this.getOriginalSizesAttr(e),i=this.getDataSrc(e),n=this.getDataSrcSet(e);return Boolean(t&&i&&n)}},{key:"shouldRevertToOriginalSizes",value:function(e,t){if("auto"===this.getElementWidth(e))return this.shouldSkipAutoWidth();var i=this.getOriginalSizesAttr(e),n=this.getMaxWidthFromSizes(i);return!(!(n&&t>n)||this.isChildOfPicture(e))||!this.shouldAutoResize(e,t)}},{key:"triggerEvent",value:function(e,t){var i=new CustomEvent(t,{detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},bubbles:!(arguments.length>3&&void 0!==arguments[3])||arguments[3],cancelable:!(arguments.length>4&&void 0!==arguments[4])||arguments[4]});return e.dispatchEvent(i),i}},{key:"shouldSkipAutoWidth",value:function(){return this.skipAutoWidth}},{key:"resizeImageWithCDN",value:function(e,t){var i=this.getDataSrcSet(e),n=this.getDataSrc(e);if(i&&n){var r=this.parseSrcSet(i),a=this.getBaseImageSrcForResize(n,r,t);this.updateSrcsetForResize(e,i,a,t,r)}}},{key:"updateSrcsetForResize",value:function(e,t,i,n,r){var a=this.updateSrcsetWithTargetWidth(t,i,n,r);a=this.updateSrcsetWithRetinaWidth(a,i,n,r),this.updateElementSrcset(e,t,a)}},{key:"getBaseImageSrcForResize",value:function(e,t,i){if(!this.isThumbnail(e))return e;var n=t.find(function(e){return e.value>=i});return n?n.src:e}},{key:"isThumbnail",value:function(e){return new RegExp("(-\\d+x\\d+)\\.(".concat(v.join("|"),")(?:\\?.+)?$"),"i").test(e)}},{key:"updateSrcsetWithTargetWidth",value:function(e,t,i,n){return this.findSimilarSource(n,i)?e:e+", "+this.getResizedCDNURL(t,i)+" "+i+h}},{key:"updateSrcsetWithRetinaWidth",value:function(e,t,i,n){var r=this.getPixelRatio();if(r<=1)return e;var a=Math.ceil(i*r);return this.findSimilarSource(n,r,"x")||this.findSimilarSource(n,a,h)?e:e+", "+this.getResizedCDNURL(t,a)+" "+a+h}},{key:"updateElementSrcset",value:function(e,t,i){i!==t&&e.setAttribute("data-srcset",i)}},{key:"getPixelRatio",value:function(){return window.devicePixelRatio||1}},{key:"findSimilarSource",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.precision;return e.find(function(e){return n===e.unit&&e.value>=t&&i.isFuzzyMatch(e.value,t,r)})}},{key:"getResizedCDNURL",value:function(e,t){var i=this.parseURL(e);if(i){var n=new URLSearchParams(i.search);n.set("size","".concat(t,"x0"));var r=i.origin+i.pathname;return"".concat(r,"?").concat(n.toString())}}},{key:"parseURL",value:function(e){try{return new URL(e)}catch(e){return null}}},{key:"parseSrcSet",value:function(e){var t=this.extractSourcesFromSrcSet(e);return this.sortSources(t)}},{key:"extractSourcesFromSrcSet",value:function(e){return e.split(",").map(function(e){var t=a(e.trim().split(/\s+/),2),i=t[0],n=t[1],r=0,o="";return n&&(n.endsWith(h)?(r=parseInt(n,10),o=h):n.endsWith("x")&&(r=parseFloat(n),o="x")),{markup:e,src:i,value:r,unit:o}})}},{key:"sortSources",value:function(e){return e.sort(function(e,t){return e.value===t.value?0:e.value>t.value?-1:1}),e}},{key:"revertToOriginalSizesIfNeeded",value:function(e){var t=this.getOriginalSizesAttr(e);return!!t&&(e.setAttribute("sizes",t),e.removeAttribute(d),!0)}},{key:"getElementWidth",value:function(e){var t,i=null===(t=e.style)||void 0===t?void 0:t.width;if(i&&"auto"===i.trim())return"auto";var n=window.getComputedStyle(e).width,r=parseInt(n,10);return isNaN(r)?n:r}},{key:"getMaxWidthFromSizes",value:function(e){var t=e.match(/\(max-width:\s*(\d+)px\)\s*100vw,\s*\1px/);return t?parseInt(t[1],10):0}},{key:"getOriginalSizesAttr",value:function(e){return e.getAttribute(d)}},{key:"getDataSrcSet",value:function(e){return e.getAttribute(f)}},{key:"getDataSrc",value:function(e){return e.getAttribute("data-src")}},{key:"isFromSmushCDN",value:function(e){return e&&e.includes("smushcdn.com")}},{key:"isFuzzyMatch",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.abs(e-t)<=i}}],t&&s(e.prototype,t),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}();!function(e,t){if(null===(e=window.smushLazyLoadOptions)||void 0===e?void 0:e.autoResizingEnabled){var i=(null===(t=window.smushLazyLoadOptions)||void 0===t?void 0:t.autoResizeOptions)||{};i=Object.assign({precision:5,skipAutoWidth:!0},i),new y(i)}}()},356:function(e,t,i){"use strict";i.d(t,{G:function(){return a}});var n=i(6879),r=i.n(n),a=function(e){return e===r()||JSON.stringify((null==e?void 0:e.cfg)||{})===JSON.stringify((null===r()||void 0===r()?void 0:r().cfg)||{})};t.A=r()},9566:function(e,t,i){"use strict";i.r(t);var n=i(356);document.addEventListener("lazybeforeunveil",function(e){var t;(0,n.G)(null==e||null===(t=e.detail)||void 0===t?void 0:t.instance)&&function(e){var t=e.getAttribute("data-bg-image")||e.getAttribute("data-bg"),i=e.hasAttribute("data-bg-image")?"background-image":"background";if(t){var n,r=e.getAttribute("style")||"",a="".concat(i,": ").concat(t,";"),o=new RegExp("".concat(i,"\\s*:\\s*[^;]+;?"));n=o.test(r)?r.replace(o,a):r.length>0?r.replace(/;$/g,"")+";"+a:a,e.setAttribute("style",n.trim())}}(e.target)})},5380:function(e,t,i){"use strict";i.r(t);var n,r,a,o,s,u,l,c=i(356);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}r="smush-lazyload-video",a="smush-lazyloaded-video",o="smush-lazyload-autoplay",s="ontouchstart"in window?"touchstart":"pointerdown",u=Number(null===(n=window)||void 0===n?void 0:n.smush_video_render_delay)||0,l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldDelayVideoRenderingForMobile=this.supportsIntersectionObserver(),this.queuedVideoElements=[],this.isMobileOrSafari=null,this.init()},t=[{key:"init",value:function(){var e=this;document.addEventListener("lazybeforeunveil",function(t){return e.handleVideoLazyLoad(t)}),document.addEventListener(s,function(){return e.enableVideoRenderingForMobile()},{once:!0,passive:!0}),document.addEventListener("DOMContentLoaded",function(){u<=0?document.querySelector(".".concat(r,".").concat(o))&&e.enableVideoRenderingForMobile():setTimeout(function(){return e.enableVideoRenderingForMobile()},u)})}},{key:"handleVideoLazyLoad",value:function(e){var t,i=e.target;(0,c.G)(null==e||null===(t=e.detail)||void 0===t?void 0:t.instance)&&i.classList.contains(r)&&(this.handleButtonPlay(i),this.maybePrepareVideoForPlay(i))}},{key:"handleButtonPlay",value:function(e){var t=this,i=e.querySelector(".".concat("smush-play-btn"));if(i){var n=function(){return t.loadIframeVideoWithAutoPlay(e)};i.addEventListener("click",n),i.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n())})}else{var r;this.loadIframeVideo(e),null===(r=window.console)||void 0===r||r.warning("Missing play button [.smush-play-btn] for video element:",e)}}},{key:"maybePrepareVideoForPlay",value:function(e){var t=e.classList.contains(o);this.shouldPrepareIframeForPlay()?this.maybePrepareVideoForMobileAndSafari(e,t):t&&this.loadIframeVideoWithAutoPlay(e)}},{key:"enableVideoRenderingForMobile",value:function(){this.shouldDelayVideoRenderingForMobile&&(this.shouldDelayVideoRenderingForMobile=!1,this.maybeObserveQueuedVideoElements())}},{key:"supportsIntersectionObserver",value:function(){return"IntersectionObserver"in window}},{key:"maybeObserveQueuedVideoElements",value:function(){this.queuedVideoElements.length&&this.observeQueuedVideoElements()}},{key:"observeQueuedVideoElements",value:function(){var e=this,t=new IntersectionObserver(function(i){i.forEach(function(i){if(i.isIntersecting){var n=i.target;e.loadIframeVideo(n),t.unobserve(n)}})},{rootMargin:"0px 0px 200px 0px",threshold:.1});this.queuedVideoElements.forEach(function(e){t.observe(e)})}},{key:"maybePrepareVideoForMobileAndSafari",value:function(e,t){this.shouldDelayVideoRenderingForMobile?this.queuedVideoElements.push(e):this.loadIframeVideo(e,t)}},{key:"shouldPrepareIframeForPlay",value:function(){return null===this.isMobileOrSafari&&(this.isMobileOrSafari=this.checkIfMobileOrSafari()),this.isMobileOrSafari}},{key:"checkIfMobileOrSafari",value:function(){var e=navigator.userAgent;return e.includes("Mobi")||e.includes("Safari")&&!e.includes("Chrome")}},{key:"loadIframeVideo",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.classList.contains(a)){e.classList.add(a,"loading");var n=e.querySelector("iframe");if(n){var r=null===(t=n.dataset)||void 0===t?void 0:t.src;if(r){if(i){var o=new URL(r);o.searchParams.set("autoplay","1"),o.searchParams.set("playsinline","1"),r=o.toString()}var s=n.getAttribute("allow")||"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";s.includes("autoplay")||(s+="; autoplay"),n.setAttribute("allow",s),n.setAttribute("allowFullscreen","true"),n.setAttribute("src",r),e.classList.remove("loading")}else{var u;null===(u=window.console)||void 0===u||u.error("Missing data-src attribute for iframe:",n)}}else{var l;null===(l=window.console)||void 0===l||l.error("Missing iframe element in video wrapper:",e)}}}},{key:"loadIframeVideoWithAutoPlay",value:function(e){this.loadIframeVideo(e,!0)}}],t&&f(e.prototype,t),i&&f(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}(),new l},6879:function(e){!function(t){var i=function(e,t,i){"use strict";var n,r;if(function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in r=e.lazySizesConfig||e.lazysizesConfig||{},i)t in r||(r[t]=i[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var a=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",u="getAttribute",l=e[s].bind(e),c=e.setTimeout,d=e.requestAnimationFrame||c,f=e.requestIdleCallback,v=/^picture$/i,h=["load","error","lazyincluded","_lazyloaded"],y={},m=Array.prototype.forEach,g=function(e,t){return y[t]||(y[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),y[t].test(e[u]("class")||"")&&y[t]},p=function(e,t){g(e,t)||e.setAttribute("class",(e[u]("class")||"").trim()+" "+t)},b=function(e,t){var i;(i=g(e,t))&&e.setAttribute("class",(e[u]("class")||"").replace(i," "))},S=function(e,t,i){var n=i?s:"removeEventListener";i&&S(e,t),h.forEach(function(i){e[n](i,t)})},z=function(e,i,r,a,o){var s=t.createEvent("Event");return r||(r={}),r.instance=n,s.initEvent(i,!a,!o),s.detail=r,e.dispatchEvent(s),s},w=function(t,i){var n;!o&&(n=e.picturefill||r.pf)?(i&&i.src&&!t[u]("srcset")&&t.setAttribute("srcset",i.src),n({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},A=function(e,t,i){for(i=i||e.offsetWidth;i<r.minSize&&t&&!e._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},k=(pe=[],be=[],Se=pe,ze=function(){var e=Se;for(Se=pe.length?be:pe,me=!0,ge=!1;e.length;)e.shift()();me=!1},we=function(e,i){me&&!i?e.apply(this,arguments):(Se.push(e),ge||(ge=!0,(t.hidden?c:d)(ze)))},we._lsFlush=ze,we),C=function(e,t){return t?function(){k(e)}:function(){var t=this,i=arguments;k(function(){e.apply(t,i)})}},R=function(e){var t,n=0,a=r.throttleDelay,o=r.ricTimeout,s=function(){t=!1,n=i.now(),e()},u=f&&o>49?function(){f(s,{timeout:o}),o!==r.ricTimeout&&(o=r.ricTimeout)}:C(function(){c(s)},!0);return function(e){var r;(e=!0===e)&&(o=33),t||(t=!0,(r=a-(i.now()-n))<0&&(r=0),e||r<9?u():c(u,r))}},O=function(e){var t,n,r=99,a=function(){t=null,e()},o=function(){var e=i.now()-n;e<r?c(o,r-e):(f||a)(a)};return function(){n=i.now(),t||(t=c(o,r))}},M=(Q=/^img$/i,Z=/^iframe$/i,J="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),Y=0,K=0,X=0,ee=-1,te=function(e){X--,(!e||X<0||!e.target)&&(X=0)},ie=function(e){return null==G&&(G="hidden"==E(t.body,"visibility")),G||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},ne=function(e,i){var n,r=e,o=ie(e);for(U-=i,H+=i,q-=i,$+=i;o&&(r=r.offsetParent)&&r!=t.body&&r!=a;)(o=(E(r,"opacity")||1)>0)&&"visible"!=E(r,"overflow")&&(n=r.getBoundingClientRect(),o=$>n.left&&q<n.right&&H>n.top-1&&U<n.bottom+1);return o},re=function(){var e,i,o,s,l,c,d,f,v,h,y,m,g=n.elements;if((T=r.loadMode)&&X<8&&(e=g.length)){for(i=0,ee++;i<e;i++)if(g[i]&&!g[i]._lazyRace)if(!J||n.prematureUnveil&&n.prematureUnveil(g[i]))fe(g[i]);else if((f=g[i][u]("data-expand"))&&(c=1*f)||(c=K),h||(h=!r.expand||r.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:r.expand,n._defEx=h,y=h*r.expFactor,m=r.hFac,G=null,K<y&&X<1&&ee>2&&T>2&&!t.hidden?(K=y,ee=0):K=T>1&&ee>1&&X<6?h:Y),v!==c&&(j=innerWidth+c*m,B=innerHeight+c,d=-1*c,v=c),o=g[i].getBoundingClientRect(),(H=o.bottom)>=d&&(U=o.top)<=B&&($=o.right)>=d*m&&(q=o.left)<=j&&(H||$||q||U)&&(r.loadHidden||ie(g[i]))&&(D&&X<3&&!f&&(T<3||ee<4)||ne(g[i],c))){if(fe(g[i]),l=!0,X>9)break}else!l&&D&&!s&&X<4&&ee<4&&T>2&&(x[0]||r.preloadAfterLoad)&&(x[0]||!f&&(H||$||q||U||"auto"!=g[i][u](r.sizesAttr)))&&(s=x[0]||g[i]);s&&!l&&fe(s)}},ae=R(re),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),p(t,r.loadedClass),b(t,r.loadingClass),S(t,ue),z(t,"lazyloaded"))},se=C(oe),ue=function(e){se({target:e.target})},le=function(e,t){var i=e.getAttribute("data-load-mode")||r.iframeLoadMode;0==i?e.contentWindow.location.replace(t):1==i&&(e.src=t)},ce=function(e){var t,i=e[u](r.srcsetAttr);(t=r.customMedia[e[u]("data-media")||e[u]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)},de=C(function(e,t,i,n,a){var o,s,l,d,f,h;(f=z(e,"lazybeforeunveil",t)).defaultPrevented||(n&&(i?p(e,r.autosizesClass):e.setAttribute("sizes",n)),s=e[u](r.srcsetAttr),o=e[u](r.srcAttr),a&&(d=(l=e.parentNode)&&v.test(l.nodeName||"")),h=t.firesLoad||"src"in e&&(s||o||d),f={target:e},p(e,r.loadingClass),h&&(clearTimeout(_),_=c(te,2500),S(e,ue,!0)),d&&m.call(l.getElementsByTagName("source"),ce),s?e.setAttribute("srcset",s):o&&!d&&(Z.test(e.nodeName)?le(e,o):e.src=o),a&&(s||d)&&w(e,{src:o})),e._lazyRace&&delete e._lazyRace,b(e,r.lazyClass),k(function(){var t=e.complete&&e.naturalWidth>1;h&&!t||(t&&p(e,r.fastLoadedClass),oe(f),e._lazyCache=!0,c(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&X--},!0)}),fe=function(e){if(!e._lazyRace){var t,i=Q.test(e.nodeName),n=i&&(e[u](r.sizesAttr)||e[u]("sizes")),a="auto"==n;(!a&&D||!i||!e[u]("src")&&!e.srcset||e.complete||g(e,r.errorClass)||!g(e,r.lazyClass))&&(t=z(e,"lazyunveilread").detail,a&&L.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,X++,de(e,t,a,n,i))}},ve=O(function(){r.loadMode=3,ae()}),he=function(){3==r.loadMode&&(r.loadMode=2),ve()},ye=function(){D||(i.now()-V<999?c(ye,999):(D=!0,r.loadMode=3,ae(),l("scroll",he,!0)))},{_:function(){V=i.now(),n.elements=t.getElementsByClassName(r.lazyClass),x=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass),l("scroll",ae,!0),l("resize",ae,!0),l("pageshow",function(e){if(e.persisted){var i=t.querySelectorAll("."+r.loadingClass);i.length&&i.forEach&&d(function(){i.forEach(function(e){e.complete&&fe(e)})})}}),e.MutationObserver?new MutationObserver(ae).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s]("DOMNodeInserted",ae,!0),a[s]("DOMAttrModified",ae,!0),setInterval(ae,999)),l("hashchange",ae,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,ae,!0)}),/d$|^c/.test(t.readyState)?ye():(l("load",ye),t[s]("DOMContentLoaded",ae),c(ye,2e4)),n.elements.length?(re(),k._lsFlush()):ae()},checkElems:ae,unveil:fe,_aLSL:he}),L=(F=C(function(e,t,i,n){var r,a,o;if(e._lazysizesWidth=n,n+="px",e.setAttribute("sizes",n),v.test(t.nodeName||""))for(a=0,o=(r=t.getElementsByTagName("source")).length;a<o;a++)r[a].setAttribute("sizes",n);i.detail.dataAttr||w(e,i.detail)}),I=function(e,t,i){var n,r=e.parentNode;r&&(i=A(e,r,i),(n=z(e,"lazybeforesizes",{width:i,dataAttr:!!t})).defaultPrevented||(i=n.detail.width)&&i!==e._lazysizesWidth&&F(e,r,n,i))},W=O(function(){var e,t=P.length;if(t)for(e=0;e<t;e++)I(P[e])}),{_:function(){P=t.getElementsByClassName(r.autosizesClass),l("resize",W)},checkElems:W,updateElem:I}),N=function(){!N.i&&t.getElementsByClassName&&(N.i=!0,L._(),M._())};var P,F,I,W;var x,D,_,T,V,j,B,U,q,$,H,G,Q,Z,J,Y,K,X,ee,te,ie,ne,re,ae,oe,se,ue,le,ce,de,fe,ve,he,ye;var me,ge,pe,be,Se,ze,we;return c(function(){r.init&&N()}),n={cfg:r,autoSizer:L,loader:M,init:N,uP:w,aC:p,rC:b,hC:g,fire:z,gW:A,rAF:k}}(t,t.document,Date);t.lazySizes=i,e.exports&&(e.exports=i)}("undefined"!=typeof window?window:{})}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.lazySizesConfig||null;e&&delete window.lazySizesConfig;var t=function(){e?window.lazySizesConfig=e:"lazySizesConfig"in window&&delete window.lazySizesConfig};(Object.getOwnPropertyDescriptor(t,"name")||{}).writable||Object.defineProperty(t,"name",{value:"default",configurable:!0});var n=i(356);i(9566),i(5380),i(5574),n.A.init(),t()}()}();