function t_lazyload_update(){"undefined"!=typeof lazyload_cover&&lazyload_cover.update(),"undefined"!=typeof lazyload_img&&lazyload_img.update(),"undefined"!=typeof lazyload_bgimg&&lazyload_bgimg.update()}!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.LazyLoad=e()}(this,function(){function t(t,e,o){var l;d?t.addEventListener(e,o):u&&(t.attachEvent("on"+e,(l=t,function(){o.call(l,window.event)})),t=null)}function e(t,e,o){d?t.removeEventListener(e,o):u&&t.detachEvent("on"+e,o)}function o(t,e,o){var l,n,i;function s(){return window.innerWidth||l.documentElement.clientWidth||document.body.clientWidth}function a(t){return t.getBoundingClientRect().top+n-l.documentElement.clientTop}function r(t){return t.getBoundingClientRect().left+i-l.documentElement.clientLeft}return l=t.ownerDocument,n=window.pageYOffset||l.body.scrollTop,i=window.pageXOffset||l.body.scrollLeft,"fixed"===t.getAttribute("data-content-cover-parallax")&&t.closest&&t.closest(".t-cover__container")&&(t=t.closest(".t-cover__container")),!((e===window?(window.innerHeight||l.documentElement.clientHeight||document.body.clientHeight)+n:a(e)+e.offsetHeight)<=a(t)-o||(e===window?n:a(e))>=a(t)+1200+t.offsetHeight||(e===window?s()+window.pageXOffset:r(e)+s())<=r(t)-o||(e===window?i:r(e))>=r(t)+o+t.offsetWidth)}function l(){return(new Date).getTime()}function n(t,e){_?t.classList.add(e):t.className+=(t.className?" ":"")+e}function i(t,e){_?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function s(t,e,o,l){var n=e.getAttribute("data-"+l),i=e.getAttribute("data-"+o),s=t.tagName;return"IMG"===s?(i&&t.setAttribute("srcset",i),void(n&&t.setAttribute("src",n))):"IFRAME"===s?void(n&&t.setAttribute("src",n)):void(t.style.backgroundImage="url("+n+")")}function a(t,e){return function(){return t.apply(e,arguments)}}function r(e){h||(c={elements_selector:"img",container:window,threshold:300,throttle:50,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",skip_invisible:!0,show_while_loading:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},d=!!window.addEventListener,u=!!window.attachEvent,_=!!document.body.classList,h=!0),this._settings=function(t,e){var o,l={};for(o in t)t.hasOwnProperty(o)&&(l[o]=t[o]);for(o in e)e.hasOwnProperty(o)&&(l[o]=e[o]);return l}(c,e),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._handleScrollFn=a(this.handleScroll,this),t(window,"resize",this._handleScrollFn),this.update()}var c,d,u,_,h=!1;return r.prototype._showOnLoad=function(o){var l,a=this._settings;o.getAttribute("src")||o.setAttribute("src",a.placeholder),t(l=document.createElement("img"),"load",function t(){null!==a&&(a.callback_load&&a.callback_load(o),s(o,o,a.data_srcset,a.data_src),a.callback_set&&a.callback_set(o),i(o,a.class_loading),n(o,a.class_loaded),e(l,"load",t))}),t(l,"error",function(){i(o,a.class_loading),a.callback_error&&a.callback_error(o)}),n(o,a.class_loading),s(l,o,a.data_srcset,a.data_src)},r.prototype._showOnAppear=function(o){function l(){null!==a&&(a.callback_load&&a.callback_load(o),i(o,a.class_loading),n(o,a.class_loaded),e(o,"load",l))}var a=this._settings;("IMG"===o.tagName||"IFRAME"===o.tagName)&&(t(o,"load",l),t(o,"error",function(){e(o,"load",l),i(o,a.class_loading),a.callback_error&&a.callback_error(o)}),n(o,a.class_loading)),s(o,o,a.data_srcset,a.data_src),a.callback_set&&a.callback_set(o)},r.prototype._loopThroughElements=function(){var t,e,l=this._settings,n=this._elements,i=n?n.length:0,s=[];for(t=0;i>t;t++)e=n[t],l.skip_invisible&&e.isSkipByPosition||o(e,l.container,l.threshold)&&(l.show_while_loading?this._showOnAppear(e):this._showOnLoad(e),s.push(t),e.wasProcessed=!0);for(;s.length>0;)n.splice(s.pop(),1),l.callback_processed&&l.callback_processed(n.length);0===i&&this._stopScrollHandler()},r.prototype._purgeElements=function(){var t,e=this._elements,o=e.length,l=[];for(t=0;o>t;t++)e[t].wasProcessed&&l.push(t);for(;l.length>0;)e.splice(l.pop(),1)},r.prototype._startScrollHandler=function(){this._isHandlingScroll||(this._isHandlingScroll=!0,t(this._settings.container,"scroll",this._handleScrollFn))},r.prototype._stopScrollHandler=function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,e(this._settings.container,"scroll",this._handleScrollFn))},r.prototype.handleScroll=function(){var t,e,o;this._settings&&(e=l(),0!==(o=this._settings.throttle)?0>=(t=o-(e-this._previousLoopTime))||t>o?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=e,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(a(function(){this._previousLoopTime=l(),this._loopTimeout=null,this._loopThroughElements()},this),t)):this._loopThroughElements())},r.prototype.update=function(){this._elements=function(t){var e;try{e=Array.prototype.slice.call(t)}catch(i){var o,l=[],n=t.length;for(o=0;o<n;o++)l.push(t[o]);e=l}return e.forEach(function(t){t.isSkipByPosition=null===t.offsetParent&&0===$(t).parents(".t396__carrier-wrapper").length&&"fixed"!==t.getAttribute("data-content-cover-parallax")}),e}(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()},r.prototype.destroy=function(){e(window,"resize",this._handleScrollFn),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},r}),window.lazy="y",$(document).ready(function(){setTimeout(function(){lazyload_cover=new LazyLoad({elements_selector:".t-cover__carrier",show_while_loading:!1,data_src:"content-cover-bg",placeholder:"",threshold:700})},100),setTimeout(function(){lazyload_img=new LazyLoad({elements_selector:".t-img",threshold:800}),lazyload_bgimg=new LazyLoad({elements_selector:".t-bgimg",show_while_loading:!1,placeholder:"",threshold:800}),lazyload_iframe=new LazyLoad({elements_selector:".t-iframe"}),$(document).bind("slide.bs.carousel",function(t){setTimeout(function(){lazyload_cover.update(),lazyload_img.update(),lazyload_bgimg.update()},500)}),window.isMobile&&($("body").append("<div class='t-mbfix'></div>"),setTimeout(function(){$(".t-mbfix").addClass("t-mbfix_hide")},50),setTimeout(function(){$(".t-mbfix").remove()},1e3))},500)});