function Core(){var n=this;n.onReady=[];n.stylesheets=[];n.scripts=[];n.addReady=function(t){n.docReady?t():n.onReady.push(t)};n.runOnReady=function(){for(var t=0;t<n.stylesheets.length;t++)n.loadCss(n.stylesheets[t]);for(n.stylesheets=[],t=0;t<n.scripts.length;t++)try{n.scripts[t].load()}catch(i){console.log(i)}for(n.scripts=[],t=0;t<n.onReady.length;t++)try{n.onReady[t]()}catch(i){console.log(i)}};n.docReady=function(){return document.readyState==="complete"||document.readyState==="interactive"};n.initDocReady=function(){n.docReady()?setTimeout(n.runOnReady,1):document.addEventListener("DOMContentLoaded",n.runOnReady)};n.addCss=function(t){n.docReady()?n.loadCss(t):n.stylesheets.push(t)};n.addScript=function(t,i){var u=new ScriptLoader(t),r;if(i)for(r=0;r<i.length;r++)u.add(i[r]);if(n.docReady())u.load();else{for(r=0;r<n.scripts.length;r++)if(n.scripts[r].href==t)return n.scripts[r];n.scripts.push(u)}return u};n.addJs=n.addScript;n.loadCss=function(n){var t=document.createElement("link");t.rel="stylesheet";t.href=n;t.type="text/css";document.head.appendChild(t)};n.initDocReady()}function ScriptLoader(n){var t=this;t.href=n;t.children=[];t.node=null;t.loaded=!1;t.add=function(n){for(var r=new ScriptLoader(n),i=0;i<t.children.length;i++)if(t.children[i].href==r.href)return t.children[i];return t.children.push(r),t.loaded&&r.load(),r};t.load=function(){t.node=document.createElement("script");t.node.onload=function(){t.loaded=!0;window.setTimeout(function(){for(var n=0;n<t.children.length;n++)t.children[n].load()},150)};t.node.src=t.href;document.body.appendChild(t.node)}}function LazyScript(){var n=this;n.item=null;n.updateTimer=null;n.delayedUpdate=function(){n.updateTimer&&window.clearTimeout(n.updateTimer);n.updateTimer=window.setTimeout(n.update,50)};n.update=function(){if(n.item.isVisible())try{n.item.trigger();window.removeEventListener("scroll",n.update)}catch(t){}};n.init=function(t,i,r){n.item=new LazyScriptItem(t,r,i);window.addEventListener("scroll",n.update);n.update()}}function LazyScriptItem(n,t,i){var r=this;r.element=null;r.script=null;r.triggered=!1;r.offset=0;r.init=function(n,t,i){r.element=n;r.script=t;r.offset=i};r.trigger=function(){r.triggered=!0;r.script()};r.isVisible=function(){var n=r.element.offsetTop-r.offset;return n<window.pageYOffset+window.outerHeight?!0:!1};r.init(n,t,i)}var $core=new Core