(function(w){"use strict";var loadCSS=function(href,before,media){function ready(cb){if(doc.body)return cb();setTimeout(function(){ready(cb)})}function loadCB(){ss.addEventListener&&ss.removeEventListener("load",loadCB);ss.media=media||"all"}var doc=w.document,ss=doc.createElement("link"),ref,refs,sheets,onloadcssdefined;return before?ref=before:(refs=(doc.body||doc.getElementsByTagName("head")[0]).childNodes,ref=refs[refs.length-1]),sheets=doc.styleSheets,ss.rel="stylesheet",ss.href=href,ss.media="only x",ready(function(){ref.parentNode.insertBefore(ss,before?ref:ref.nextSibling)}),onloadcssdefined=function(cb){for(var resolvedHref=ss.href,i=sheets.length;i--;)if(sheets[i].href===resolvedHref)return cb();setTimeout(function(){onloadcssdefined(cb)})},ss.addEventListener&&ss.addEventListener("load",loadCB),ss.onloadcssdefined=onloadcssdefined,onloadcssdefined(loadCB),ss};typeof exports!="undefined"?exports.loadCSS=loadCSS:w.loadCSS=loadCSS})(typeof global!="undefined"?global:this),function(w){var rp,run;w.loadCSS&&(rp=loadCSS.relpreload={},rp.support=function(){try{return w.document.createElement("link").relList.supports("preload")}catch(e){return!1}},rp.poly=function(){for(var link,links=w.document.getElementsByTagName("link"),i=0;i<links.length;i++)link=links[i],link.rel==="preload"&&link.getAttribute("as")==="style"&&(w.loadCSS(link.href,link),link.rel=null)},rp.support()||(rp.poly(),run=w.setInterval(rp.poly,300),w.addEventListener&&w.addEventListener("load",function(){w.clearInterval(run)}),w.attachEvent&&w.attachEvent("onload",function(){w.clearInterval(run)})))}(this);
