function t_lazyload__init(){t_lazyload__detectwebp();var e=document.querySelector("#allrecords");e&&"yes"===e.getAttribute("data-tilda-imgoptimoff")?window.lazy_imgoptimoff="yes":window.lazy_imgoptimoff="";for(var t=document.querySelectorAll(".t156 .t-img"),i=0;i=0&&t.left<=(window.innerWidth||document.documentElement.clientWidth)&&t.right>=0}))}function t_lazyload__getResizeCommand(e,t){return e?"contain"===t?"contain":"cover"===t?"cover":"resize":"contain"===t?"contain":"cover"}window.lazy="y",window.t_loadImgStats=[],function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.LazyLoad=t()}(window,(function(){var e,t,i=!1,n,o,a=!1,r=/\/static\.tildacdn\.(info|.{1,3})\//,l={},d="undefined"!=typeof getComputedStyle;function s(){i||(e={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"},document.body&&"object"==typeof document.body&&(t=!!document.body.classList),a="IntersectionObserver"in window,i=!0,n=["200x151","640x712","320x356","670x744","335x372","300x225","500x375","400x301","748x832","374x416","670x502","335x251","360x234","560x622","280x311","640x416"],o=["353x245","155x151","158x164","372x495","280x272","117x117","291x280","280x269","335x241","283x283","150x156","353x233","414x730","372x362","275x206","290x322","248x207","177x136","173x173","280x308","195x214","248x191","155x196","163x203","320x444","158x162","176x203","412x700","360x88","360x616","167x167","130x144","280x233","560x314","320x299","372x275","320x178","372x242","360x352","353x294","260x182","372x310","335x344","374x432","414x500","374x360","220x338","150x146","335x239","176x176","320x302","374x260","360x568","191x221","192x192","372x558","335x188","320x358","335x258","374x575","26x26","353x360","360x206","335x248","335x322","167x256","560x364","155x172","163x216","163x181","360x257","374x561","374x243","220x212","177x148","291x324","167x160","375x749","335x387","172x172","260x302","414x700","220x254","177x172","374x519","176x169","320x352","335x233","150x203","360x207","158x121","360x396","158x131","150x98","220x169","182x202","320x179","372x413","181x226","353x200","158x153","375x628","176x271","374x364","320x492","374x247","414x833","353x393","335x218","560x399","412x264","293x164","56x56","177x204","248x382","181x181","118x118","260x346","374x497","260x202","393x251","158x158","372x200","373x414","320x229","177x177","312x175","374x312","84x84","320x329","177x194","353x350","335x503","335x446","335x326","374x200","158x182","320x237","335x221","176x196","150x229","320x224","248x276","360x299","260x289","196x216","335x279","177x272","320x426","260x172","155x194","320x369","372x350","360x302","360x402","169x186","158x242","173x199","167x185","360x238","220x123","320x308","414x265","374x350","300x333","177x170","320x222","320x311","260x169","150x173","320x246","353x265","192x222","158x151","372x414","150x144","760x502","314x176","320x208","182x182","320x211","163x163","372x279","360x202","360x252","260x252","260x286","353x392","160x104","374x281","353x353","150x231","320x267","372x372","177x197","275x154","158x175","374x374","150x167","260x146"],l={com:"com",info:"pub",pub:"pub",ink:"ink",pro:"pro",biz:"biz",net:"net",one:"one"})}function c(){var e;return(new Date).getTime()}function u(e,t){var i={},n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i}function _(e){var t;try{t=Array.prototype.slice.call(e)}catch(a){var i=[],n,o=e.length;for(n=0;n-1&&(L=1*C[P].split(":")[1]),C[P].indexOf("comm:")>-1&&"resize"!=(k=C[P].split(":")[1])&&"cover"!=k&&"contain"!=k&&(S=!1),C[P].indexOf("skip")>-1&&(E=!0),C[P].indexOf("optimoff")>-1&&(S=!1)}if(L>1)s=(y=z(k,s,c,L))[0],c=y[1];if("cover"==k&&s>0&&c>0&&s<=1e3)if(s===5*Math.ceil(s/5)&&c===5*Math.ceil(c/5));else if(n.indexOf(s+"x"+c)>-1);else if(o.indexOf(s+"x"+c)>-1);else if(m(t,"tn-atom")||m(t,"tn-atom__img"));else{var y;m(t,"t-cover__carrier")||(k="resize"),s=(y=z(k,s,c,100))[0],c=y[1]}if("resize"==k&&s<30&&(E=!0),!0===S&&(l=!0===E||s>1e3||c>1e3||0==s||"IMG"!=t.tagName&&0==c?O(l):A(t.tagName,k,l,s,c,h,b)),"y"===window.lazy_err_static&&w(l)&&(l=l.replace(r,"/static3.tildacdn.com/")),l){if("IMG"===e.tagName)e.setAttribute("src",l);else if("IFRAME"===e.tagName)e.setAttribute("src",l);else if("OBJECT"===e.tagName)e.setAttribute("data",l);else{var q,D;if(-1!==e.style.backgroundImage.indexOf("-gradient("))q=e.style.backgroundImage.split("), ")[1];q?e.style.backgroundImage="url("+l+"), "+q:(e.style.backgroundImage="url("+l+")",v(e,l))}t.lazy_loading_src=l}}else f(t,"loading")}function v(e,t){var i=e.getAttribute("data-content-cover-id");if(i){var n=t.split(".");n=n[n.length-1];var o=document.getElementById("recorddiv"+i);"svg"===n&&(o.style.backgroundImage="")}}function z(e,t,i,n){if("cover"==e&&t>0&&i>0){var o=t/i,a=1;o<=1?(o<=.8&&(a=.8),o<=.751&&(a=.75),o<=.667&&(a=.667),o<=.563&&(a=.562),o<=.501&&(a=.5),i=Math.ceil(i/n)*n,t=Math.ceil(i*a),t=10*Math.ceil(t/10)):(o>=1.25&&(a=1.25),o>=1.332&&(a=1.333),o>=1.5&&(a=1.5),o>=1.777&&(a=1.777),o>=2&&(a=2),t=Math.ceil(t/n)*n,i=Math.ceil(t/a),i=10*Math.ceil(i/10))}else t>0&&(t=Math.ceil(t/n)*n),i>0&&(i=Math.ceil(i/n)*n);return[t,i]}function A(e,t,i,n,o,a,r){if("undefined"==i||null==i)return i;if(i.indexOf(".svg")>0||i.indexOf(".gif")>0||i.indexOf(".ico")>0||-1===i.indexOf("static.tildacdn.")||i.indexOf("-/empty/")>0||i.indexOf("-/resizeb/")>0)return i;if(i.indexOf("/-/")>-1)return i;if(0==n&&0==o)return i;if("y"==window.lazy_err_thumb)return i;if(i.indexOf("lib")>-1)return i;if("IMG"!==e&&"DIV"!==e&&"TD"!==e&&"A"!==e)return i;var l=1,d;if(1===window.devicePixelRatio&&Math.max(n,o)<=400&&(l=1.2),window.devicePixelRatio>1&&(l=2),n>0&&(n=parseInt(l*n)),o>0&&(o=parseInt(l*o)),n>1e3||o>1800)return d=O(i);if("resize"==t){var s;(s=i.split("/")).splice(i.split("/").length-1,0,"-/resize/"+n+"x"+("DIV"==e&&o>0?o:"")+"/"+("y"==window.lazy_webp?"-/format/webp":""));var d=h(s.join("/"))}else{if(n<=0&&o<=0)return i;var s;"left"!==a&&"right"!==a&&(a="center"),"top"!==r&&"bottom"!==r&&(r="center"),(s=i.split("/")).splice(i.split("/").length-1,0,"-/"+t+"/"+n+"x"+o+"/"+a+"/"+r+"/"+("y"==window.lazy_webp?"-/format/webp":""));var d=h(s.join("/"))}var c=".webp",u=-1!==d.indexOf(c,d.length-5);return"y"!=window.lazy_webp||u||(d+=".webp"),d}function O(e){if("undefined"==e||null==e)return e;if(e.indexOf(".svg")>0||e.indexOf(".gif")>0||e.indexOf(".ico")>0||-1===e.indexOf("static.tildacdn.")||e.indexOf("-/empty/")>0||e.indexOf("-/resizeb/")>0)return e;if(e.indexOf("/-/")>-1)return e;if(e.indexOf("lib")>-1)return e;if("y"!==window.lazy_webp)return e;if("y"===window.lazy_err_thumb)return e;var t=e.split("/");t.splice(e.split("/").length-1,0,"-/format/webp");var i=h(t.join("/")),n=".webp",o;return-1!==i.indexOf(n,i.length-5)||(i+=".webp"),i}function k(e,t,i){if("string"==typeof t&&null!=t&&""!=t){var n;if(console.log("lazy loading err"),w(t))return window.lazy_err_static="y",void I(e,n=t.replace(r,"/static3.tildacdn.com/"));if(-1!==t.indexOf(t_lazyload__getThumbDomainName())&&-1!==t.indexOf("/-/")){window.lazy_err_thumb="y";var o=t.split("/"),a="",l="",n;if(o.length>3)for(var d=0;d1?c()-i:"";"object"!=typeof window.t_cdnerrors&&(window.t_cdnerrors=[]),window.t_cdnerrors.push({url:t,time:u,debug:{domloaded:window.t_lazyload_domloaded}})}}}function I(e,t){console.log("try reload: "+t),"IMG"===e.tagName?t&&e.setAttribute("src",t):t&&(e.style.backgroundImage="url("+t+")")}function L(t){s(),this._settings=u(e,t),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,a&&this._initializeObserver(),this.update(),this.loadAnimatedImages()}return L.prototype._showOnLoad=function(e){var t,i=this._settings,n;function o(){null!==i&&(t_lazyLoad__appendImgStatToArr(t,n),i.callback_load&&i.callback_load(e),b(e,e,i.data_srcset,i.data_src),i.callback_set&&i.callback_set(e),f(e,i.class_loading),x(e,i.class_loaded),t.removeEventListener("load",o))}!e.getAttribute("src")&&i.placeholder&&e.setAttribute("src",i.placeholder),(t=document.createElement("img")).addEventListener("load",o),t.addEventListener("error",(function(t){f(e,i.class_loading),i.callback_error&&i.callback_error(e),void 0!==t.path?k(e,t.path[0].currentSrc,n):void 0!==t.target&&k(e,t.target.currentSrc,n)})),x(e,i.class_loading),n=c(),b(t,e,i.data_srcset,i.data_src)},L.prototype._showOnAppear=function(e){var t=this._settings,i;function n(){null!==t&&(t_lazyLoad__appendImgStatToArr(e,i),t.callback_load&&t.callback_load(e),f(e,t.class_loading),x(e,t.class_loaded),e.removeEventListener("load",n))}"IMG"!==e.tagName&&"IFRAME"!==e.tagName||(e.addEventListener("load",n),e.addEventListener("error",(function(o){e.removeEventListener("load",n),f(e,t.class_loading),t.callback_error&&t.callback_error(e),void 0!==o.path?k(e,o.path[0].currentSrc,i):void 0!==o.target&&k(e,o.target.currentSrc,i)})),x(e,t.class_loading)),i=c(),b(e,e,t.data_srcset,t.data_src),t.callback_set&&t.callback_set(e)},L.prototype._show=function(e){this._settings.show_while_loading?this._showOnAppear(e):this._showOnLoad(e)},L.prototype._initializeObserver=function(){var e=this;this._intersectionObserver=new IntersectionObserver((function(t){var i=window.scrollY;t.forEach((function(t){var n=t.target;if(!(e._settings.skip_invisible&&n.isSkipByPosition&&n.isNotUnderScreenRange)){var o=t.boundingClientRect.top+i<0,a=n.closest(".t396__elem"),r=a&&0===a.style.top.indexOf("-"),l=n.closest(".tn-group"),d=l&&0===l.style.top.indexOf("-");if(n.wasProcessed)return e._intersectionObserver.unobserve(n),void(e._settings.callback_processed&&e._settings.callback_processed(e._elements.length));(t.isIntersecting||o||r||d)&&(e._show(n),n.wasProcessed=!0)}}))}),{rootMargin:this._settings.threshold+"px",threshold:[0]})},L.prototype.loadAnimatedImages=function(){var e,t,i=this._settings,n=this._elements,o=n?n.length:0;function a(e,t){var i;if("trigger"===t){var n=e.getAttribute("data-animate-sbs-trgels");n&&(i=document.querySelector('[data-elem-id="'+n+'"]'))}else"viewport"===t&&(i=g(e,"t396"));return p(i)?y(i):null}function r(e,t){var n=a(e,t);if(!n)return!1;var o=y(e),r=Math.abs(n.top-o.top),l=Math.abs(n.left-o.left);return r>i.threshold||l>i.threshold}for(e=0;e0||o.indexOf(".gif")>0||o.indexOf(".ico")>0||-1===o.indexOf(t_lazyload__getThumbDomainName())||o.indexOf("-/empty/")>0&&o.indexOf("-/resizeb/")>0)){var d=o.indexOf(n)+n.length,s=o.indexOf("/",d);if(d>0&&s>0){var c=o.slice(d,s).split("x"),u=e.clientWidth,_=e.clientHeight;if(u>0&&_>0&&(c[0]>0||c[1]>0)&&(c[0]>0&&u>c[0]||c[1]>0&&_>c[1])&&(c[0]>0&&u-c[0]>100||c[1]>0&&_-c[1]>100)){var x=o.slice(0,d)+(c[0]>0?u:"")+"x"+(c[1]>0?_:"")+o.substring(s);"IMG"==t?e.setAttribute("src",x):e.style.backgroundImage="url('"+x+"')"}}}}};