!function(n){"use strict";function t(n,t){N[n]=N[n]||t}function e(){var n;return n=T[j]("link"),n.rel="stylesheet",n.type="text/css",n}function r(n,e){n.onload=function(){t("load",!0),e()}}function o(n,e){n.onerror=function(){t("error",!0),e()}}function u(n,t,e){var r;R.push({url:n,cb:t,eb:function(){e(new Error(B))}}),r=s(),r&&i(r)}function i(n){var t,e;t=R.shift(),e=n.styleSheet,t?(n.onload=function(){t.cb(t.ss),i(n)},n.onerror=function(){t.eb(),i(n)},t.ss=e.imports[e.addImport(t.url)]):(f(n),c(n))}function c(n){I.push(n)}function s(){var n;return n=I.shift(),!n&&C.length<k&&(n=T.createElement("style"),C.push(n),w.appendChild(n)),n}function l(n){var t,e,r;if(!n.href||!y())return!1;t=!1;try{e=n.sheet,e&&(r=e.cssRules,t=null===r,!t&&r&&(e.insertRule("-curl-css-test {}",0),e.deleteRule(0),t=!0))}catch(o){t="[object Opera]"!=Object.prototype.toString.call(window.opera)&&0==/security|denied/i.test(o.message)}return t}function f(n){n.onload=n.onerror=S}function a(n){return n.onload==S||!n.onload}function d(n,t,e){N.load||(l(n)?e(n.sheet):a(n)||O(function(){d(n,t,e)},t))}function h(){N.error}function p(n,t,e){function o(){a(n)||(f(n),v(function(){e(n.sheet)}))}r(n,o),d(n,t,o)}function g(n,t,e){function r(){a(n)||(f(n),e(new Error(B)))}o(n,r),h(n,t,r)}function m(n,t,r,o){var u;u=e(),p(u,o,t),g(u,o,r),u.href=n,w.appendChild(u)}function v(n){function t(){y()?n():O(t,10)}t()}function y(){return!T.readyState||"complete"==T.readyState}function b(n,t){return n.lastIndexOf(".")<=n.lastIndexOf("/")?n+"."+t:n}function S(){}var w,E,j="createElement",O=n.setTimeout,T=n.document,x=T&&T.createStyleSheet&&!(T.documentMode>=10),C=[],I=[],R=[],k=12,B="HTTP or network error.",N={};T&&(w=T.head||T.getElementsByTagName("head")[0],E=x?u:m),define({normalize:function(n,t){var e,r;if(!n)return n;e=n.split(","),r=[];for(var o=0,u=e.length;u>o;o++)r.push(t(e[o]));return r.join(",")},load:function(n,t,r,o){function u(n){s.length>1&&c.push(n),0==--a&&r(1==s.length?n:c)}function i(n){var t;(t=r.reject||function(n){throw n})(n)}var c,s,l,f,a,d;for(c=[],s=(n||"").split(","),l=o.cssWatchPeriod||50,f=o.cssNoWait,a=s.length,d=0;d<s.length;d++){n=s[d];var h,p;h=b(t.toUrl(n),"css"),f?(p=e(),p.href=h,w.appendChild(p),u(p.sheet||p.styleSheet)):E(h,u,i,l)}},"plugin-builder":"css",pluginBuilder:"css"})}(this);
//# sourceMappingURL=css.js.map