Comparing version 0.3.5 to 0.3.6
@@ -1,2 +0,2 @@ | ||
var Absurd=function(){function b(a){return a?a.replace(/^\s+|\s+$/g,""):""}var d={api:{},helpers:{},plugins:{},processors:{css:{plugins:{}},html:{plugins:{},helpers:{}},component:{plugins:{}}}},e=function(a){return a.indexOf("css/CSS.js")>0||"/../CSS.js"==a?d.processors.css.CSS:a.indexOf("html/HTML.js")>0?d.processors.html.HTML:a.indexOf("component/Component.js")>0?d.processors.component.Component:"js-beautify"==a?{html:function(a){return a}}:"./helpers/PropAnalyzer"==a?d.processors.html.helpers.PropAnalyzer:"../../helpers/TransformUppercase"==a?d.helpers.TransformUppercase:"./helpers/TemplateEngine"==a||"../html/helpers/TemplateEngine"==a?d.processors.html.helpers.TemplateEngine:"../helpers/Extend"==a?d.helpers.Extend:"../helpers/Clone"==a?d.helpers.Clone:"../helpers/Prefixes"==a||"/../../../helpers/Prefixes"==a?d.helpers.Prefixes:a==f+"/../../../../"?Absurd:"../helpers/CSSParse"==a?d.helpers.CSSParse:function(){}},f="",g=function(a,b){!function c(){a.length>0&&a.shift().apply(b||{},[c].concat(Array.prototype.slice.call(arguments,0)))}()},h=function(a){var b={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],body:[0,"",""],_default:[1,"<div>","</div>"]};b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var c=/<\s*\w.*?>/g.exec(a),d=document.createElement("div");if(null!=c){var e=c[0].replace(/</g,"").replace(/>/g,"").split(" ")[0];if("body"===e.toLowerCase()){var f=(document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null),document.createElement("body"));d.innerHTML=a.replace(/<body/g,"<div").replace(/<\/body>/g,"</div>");var g=d.firstChild.attributes;f.innerHTML=a;for(var h=0;h<g.length;h++)f.setAttribute(g[h].name,g[h].value);return f}var d,i=b[e]||b._default;a=i[1]+a+i[2],d.innerHTML=a;for(var j=i[0]+1;j--;)d=d.lastChild}else d.innerHTML=a,d=d.lastChild;return d},i=function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!1),!0):a.attachEvent?a.attachEvent("on"+b,c):void 0},j=function(a){for(var b,c=a.childNodes,d=c.length,e=0,f=/^\s*$/;d>e;e++)b=c[e],3==b.nodeType&&f.test(b.nodeValue)&&(a.removeChild(b),e--,d--);return a},k=function(b,c,d){for(var e=document.createElement(b),f=0;f<c.length,a=c[f];f++)e.setAttribute(a.name,a.value);return e.innerHTML=d,e},l=function(a,b){return b=b===!1?document:b||this.el||document,b.querySelector(a)},m=function(a,b){return b=b===!1?document:b||this.el||document,b.querySelectorAll(a)},n=function(a,b){return b=b||this.el,b&&b.currentStyle?b.currentStyle[a]:window.getComputedStyle?document.defaultView.getComputedStyle(b,null).getPropertyValue(a):null},q=function(a,b){if(b=b||this.el,b.classList)b.classList.add(a);else{var c=b.className;c.indexOf(a)<0&&(""==c?b.className=a:b.className+=" "+a)}return this},r=function(a,b){if(b=b||this.el,b.classList)b.classList.remove(a);else{for(var c=b.className.split(" "),d=[],e=0;e<c.length;e++)c[e]!=a&&d.push(c[e]);b.className=d.join(" ")}return this},s=function(a,b,c){c=c||this.el;for(var d=c.className.split(" "),e=!1,f=0;f<d.length;f++)d[f]==a&&(e=!0,d[f]=b);return e?(c.className=d.join(" "),this):q(b,c)},t=function(a,b){if(b=b||this.el,b.classList)b.classList.toggle(a);else{for(var c=b.className.split(" "),d=-1,e=c.length;e--;)c[e]===a&&(d=e);d>=0?c.splice(d,1):c.push(a),b.className=c.join(" ")}return this},u=function(a,b,c){return b instanceof Array&&(c=b,b=this),b||(b=this),function(){a.apply(b,(c||[]).concat(Array.prototype.slice.call(arguments,0)))}},w=function(a,b,c,e){var f=d.helpers.Extend({__name:a},e),o=d.helpers.Extend,p=[];f.listeners=p,f.on=function(a,b,c){return p[a]||(p[a]=[]),p[a].push({callback:b,scope:c}),this},f.off=function(a,b){return p[a]?(b||(p[a]=[]),this):this},f.dispatch=function(a,b,d){if(!b||"object"!=typeof b||b instanceof Array||(b.target=this),p[a])for(var e=0;e<p[a].length;e++){var f=p[a][e].callback;f.apply(d||p[a][e].scope||{},[b])}return this[a]&&"function"==typeof this[a]&&this[a](b),c&&c.dispatch(a,b),this};var v={};f.set=function(a,b){return v[a]=b,this},f.get=function(a){return v[a]};var w=!1;f.__handleCSS=function(c){return this.css?b.flush().morph("dynamic-css").add(this.css).compile(function(b,d){if(w)w.raw!==d&&(w.raw=d,w.element.innerHTML=d);else{var e=k("style",[{name:"id",value:a+"-css"},{name:"type",value:"text/css"}],d);(l("head")||l("body")).appendChild(e),w={raw:d,element:e}}c()},this):c(),this},f.applyCSS=function(a,b,c){if(this.html&&"string"==typeof this.html&&!b){var d={};d[this.html]=a,a=d}return this.css=a,c||this.populate(),this};var x=!1;f.__mergeDOMElements=function(a,b){if(j(a),j(b),"undefined"!=typeof a&&"undefined"!=typeof b&&!a.isEqualNode(b)){if(a.nodeName!==b.nodeName)return void(a.parentNode&&a.parentNode.replaceChild(b,a));if(a.nodeValue!==b.nodeValue&&(a.nodeValue=b.nodeValue),a.attributes){for(var c,d,e=a.attributes,g=b.attributes,h={},i=0;i<e.length,c=e[i];i++){for(var k=0;k<g.length,d=g[k];k++)c.name===d.name&&(a.setAttribute(c.name,d.value),h[c.name]=!0,"value"===c.name&&(a.value=d.value));h[c.name]||a.removeAttribute(c.name)}for(var i=0;i<g.length,d=g[i];i++)h[d.name]||(a.setAttribute(d.name,d.value),"value"===d.name&&(a.value=d.value))}var l=[];if(a.childNodes.length>=b.childNodes.length)for(var i=0;i<a.childNodes.length;i++)b.childNodes[i]||b.appendChild(document.createTextNode("")),l.push([a.childNodes[i],b.childNodes[i]]);else for(var i=0;i<b.childNodes.length;i++)a.appendChild(document.createTextNode("")),l.push([a.childNodes[i],b.childNodes[i]]);for(var i=0;i<l.length;i++)f.__mergeDOMElements(l[i][0],l[i][1])}},f.__handleHTML=function(a){var c=this,d=function(){b.flush().morph("html").add(x).compile(function(b,d){c.el?f.__mergeDOMElements(c.el,h(d)):c.el=h(d),a()},c)};if(this.html)if("string"==typeof this.html){if(!this.el){var e=l(this.html);e&&(this.el=e,x={"":this.el.outerHTML.replace(/</g,"<").replace(/>/g,">")})}d()}else"object"==typeof this.html?(x=o({},this.html),d()):a();else a();return this},f.applyHTML=function(a,b){return this.html=a,b||this.populate(),this};var y=!1;f.__append=function(a){return!y&&this.el&&this.get("parent")&&(y=!0,this.get("parent").appendChild(this.el)),a(),this};var z={events:{}};f.__handleEvents=function(a){if(this.el){var b=this,c=function(a){var c=a.getAttribute("data-absurd-event"),d=function(c){if(c=c.split(":"),c.length>=2){var d=c[0],e=c[1];c.splice(0,2);var f=c;(!z.events[d]||z.events[d].indexOf(a)<0)&&(z.events[d]||(z.events[d]=[]),z.events[d].push(a),i(a,d,function(a){if("function"==typeof b[e]){var c=b[e];c.apply(b,[a].concat(f))}}))}};c=c.split(/, ?/g);for(var e=0;e<c.length;e++)d(c[e])};this.el.hasAttribute&&this.el.hasAttribute("data-absurd-event")&&c(this.el);for(var d=this.el.querySelectorAll?this.el.querySelectorAll("[data-absurd-event]"):[],e=0;e<d.length;e++)c(d[e])}return a(),this},f.__getAnimAndTransEndEventName=function(a){if(a){var b,c={animation:["animationend","transitionend"],OAnimation:["oAnimationEnd","oTransitionEnd"],MozAnimation:["animationend","transitionend"],WebkitAnimation:["webkitAnimationEnd","webkitTransitionEnd"]};for(b in c)if(void 0!==a.style[b])return c[b]}},f.onAnimationEnd=function(a,b){1==arguments.length&&(b=a,a=this.el);var c=this,d=f.__getAnimAndTransEndEventName(a);return d?void this.addEventListener(a,d[0],function(a){b.apply(c,[a])}):void b.apply(this,[{error:"Animations not supported."}])},f.onTransitionEnd=function(a,b){1==arguments.length&&(b=a,a=this.el);var c=this,d=f.__getAnimAndTransEndEventName(a);return d?void this.addEventListener(a,d[1],function(a){b.apply(c,[a])}):void b.apply(this,[{error:"Animations not supported."}])};var A={funcs:{},index:0};f.__handleAsyncFunctions=function(a){if(this.el){var b=[];if(this.el.hasAttribute&&this.el.hasAttribute("data-absurd-async"))b.push(this.el);else for(var c=this.el.querySelectorAll?this.el.querySelectorAll("[data-absurd-async]"):[],d=0;d<c.length;d++)b.push(c[d]);if(0===b.length)a();else{var e=this;!function f(){if(0===b.length)a();else{var c=b.shift(),d=c.getAttribute("data-absurd-async"),g=function(a){"string"==typeof a?c.parentNode.replaceChild(h(a),c):c.parentNode.replaceChild(a,c),f()};"function"==typeof e[A.funcs[d].name]?e[A.funcs[d].name].apply(e,[g].concat(A.funcs[d].args)):"function"==typeof A.funcs[d].func&&A.funcs[d].func.apply(e,[g].concat(A.funcs[d].args))}}()}}else a();return this},f.async=function(){var a=Array.prototype.slice.call(arguments,0),b=a.shift(),c="_"+A.index++;return A.funcs[c]={args:a,name:b},'<script data-absurd-async="'+c+'"></script>'},f.child=function(){var a=Array.prototype.slice.call(arguments,0),b=this.get("children"),c=b&&b[a.shift()],d="_"+A.index++;return A.funcs[d]={args:a,func:function(a){c.populate({callback:function(b){a(b.html.element)}})}},'<script data-absurd-async="'+d+'"></script>'},f.wire=function(a){return b.components.events.on(a,this[a]||function(){},this),this};var B=!1;return f.populate=function(a){if(!B){B=!0;var b=function(a){return a(),this};return g([a&&a.css===!1?b:f.__handleCSS,a&&a.html===!1?b:f.__handleHTML,f.__append,f.__handleEvents,f.__handleAsyncFunctions,function(){B=!1,A={funcs:{},index:0};var b={css:w,html:{element:this.el}};this.dispatch("populated",b),a&&"function"==typeof a.callback&&a.callback(b)}],this),this}},f.str2DOMElement=h,f.addEventListener=i,f.queue=g,f.qs=l,f.qsa=m,f.getStyle=n,f.addClass=q,f.removeClass=r,f.replaceClass=s,f.bind=u,f.toggleClass=t,f.compileHTML=function(a,c,d){b.flush().morph("html").add(a).compile(c,d)},f.compileCSS=function(a,c,d){b.flush().add(a).compile(c,d)},f.delay=function(a,b,c){var d=this;setTimeout(function(){b.apply(d,c)},a)},f},x=function(a){a.di.register("is",{appended:function(a){return"undefined"==typeof a&&(a=this.host.html),l(a)?!0:!1},hidden:function(a){return a=a||this.host.el,null===a.offsetParent}}),a.di.register("router",{routes:[],mode:null,root:"/",getFragment:function(){var a="";if("history"===this.mode){if(!location)return"";a=this.clearSlashes(decodeURI(location.pathname+location.search)),a=a.replace(/\?(.*)$/,""),a="/"!=this.root?a.replace(this.root,""):a}else{if(!window)return"";var b=window.location.href.match(/#(.*)$/);a=b?b[1]:""}return this.clearSlashes(a)},clearSlashes:function(a){return a.toString().replace(/\/$/,"").replace(/^\//,"")},add:function(a,b){return"function"==typeof a&&(b=a,a=""),this.routes.push({re:a,handler:b}),this},remove:function(a){for(var b,c=0;c<this.routes.length,b=this.routes[c];c++)if(b.handler===a||b.re===a)return this.routes.splice(c,1),this;return this},flush:function(){return this.routes=[],this.mode=null,this.root="/",this},config:function(a){return this.mode=a&&a.mode&&"history"==a.mode&&history.pushState?"history":"hash",this.root=a&&a.root?"/"+this.clearSlashes(a.root)+"/":"/",this},listen:function(a){var b=this,c=b.getFragment(),d=function(){c!==b.getFragment()&&(c=b.getFragment(),b.check(c))};return clearInterval(this.interval),this.interval=setInterval(d,a||50),this},check:function(a){for(var b=a||this.getFragment(),c=0;c<this.routes.length;c++){var d=b.match(this.routes[c].re);if(d)return d.shift(),this.routes[c].handler.apply(this.host||{},d),this}return this},navigate:function(a){return a=a?a:"","history"===this.mode?history.pushState(null,null,this.root+this.clearSlashes(a)):(window.location.href.match(/#(.*)$/),window.location.href=window.location.href.replace(/#(.*)$/,"")+"#"+a),this}}),a.di.register("ajax",{request:function(a){"string"==typeof a&&(a={url:a}),a.url=a.url||"",a.method=a.method||"get",a.data=a.data||{};var b=function(a,b){var c,d=[];for(var e in a)d.push(e+"="+encodeURIComponent(a[e]));return c=d.join("&"),""!=c?b?b.indexOf("?")<0?"?"+c:"&"+c:c:""},c={host:this.host||{},process:function(a){var c=this;return this.xhr=null,window.ActiveXObject?this.xhr=new ActiveXObject("Microsoft.XMLHTTP"):window.XMLHttpRequest&&(this.xhr=new XMLHttpRequest),this.xhr&&(this.xhr.onreadystatechange=function(){if(4==c.xhr.readyState&&200==c.xhr.status){var b=c.xhr.responseText;a.json===!0&&"undefined"!=typeof JSON&&(b=JSON.parse(b)),c.doneCallback&&c.doneCallback.apply(c.host,[b,c.xhr])}else 4==c.xhr.readyState&&c.failCallback&&c.failCallback.apply(c.host,[c.xhr]);c.alwaysCallback&&c.alwaysCallback.apply(c.host,[c.xhr])},"get"==a.method?this.xhr.open("GET",a.url+b(a.data,a.url),!0):(this.xhr.open(a.method,a.url,!0),this.setHeaders({"X-Requested-With":"XMLHttpRequest","Content-type":"application/x-www-form-urlencoded"})),a.headers&&"object"==typeof a.headers&&this.setHeaders(a.headers),setTimeout(function(){"get"==a.method?c.xhr.send():c.xhr.send(b(a.data))},20)),this},done:function(a){return this.doneCallback=a,this},fail:function(a){return this.failCallback=a,this},always:function(a){return this.alwaysCallback=a,this},setHeaders:function(a){for(var b in a)this.xhr&&this.xhr.setRequestHeader(b,a[b])}};return c.process(a)}});var b=function(a,c){var d=b.prototype.host,e={el:null};switch(typeof a){case"undefined":e.el=d.el;break;case"string":c=c&&"string"==typeof c?l.apply(d,[c]):c,e.el=l(a,c||d.el||document);break;case"object":if("undefined"==typeof a.nodeName){var f=function(a,b){b=b||this;for(var c in b)"undefined"!=typeof b[c].el?b[c]=b[c].val(a):"object"==typeof b[c]&&(b[c]=f(a,b[c]));return delete b.val,b},g={val:f};for(var h in a)g[h]=b.apply(this,[a[h]]);return g}e.el=a}return e.val=function(a){if(!this.el)return null;var b=!!a,d=function(a){return b?(this.el.value=a,e):this.el.value};switch(this.el.nodeName.toLowerCase()){case"input":var f=this.el.getAttribute("type");if("radio"!=f&&"checkbox"!=f)return d.apply(this,[a]);for(var g=m('[name="'+this.el.getAttribute("name")+'"]',c),h=[],i=0;i<g.length;i++)b&&g[i].checked&&g[i].value!==a?g[i].removeAttribute("checked"):b&&g[i].value===a?(g[i].setAttribute("checked","checked"),g[i].checked="checked"):g[i].checked&&h.push(g[i].value);if(!b)return"radio"==f?h[0]:h;break;case"textarea":return d.apply(this,[a]);case"select":if(!b)return this.el.value;for(var j=m("option",this.el),i=0;i<j.length;i++)j[i].getAttribute("value")===a?this.el.selectedIndex=i:j[i].removeAttribute("selected");break;default:if(!b)return"undefined"!=typeof this.el.textContent?this.el.textContent:"undefined"!=typeof this.el.innerText?typeof this.el.innerText:this.el.innerHTML;this.el.innerHTML=a}return b?e:null},e.dom=function(a,c){return b(a,c||e.el)},e};a.di.register("dom",b);var c=function(b,d,e){var f=c.prototype.host,g=!(!window||!window.matchMedia||e);if(g){var h=window.matchMedia(b);d.apply(f,[h.matches,h.media]),h.addListener(function(a){d.apply(f,[a.matches,a.media])})}else{var i=".match-media-"+a.components.numOfComponents,j={},k={};j[i]={display:"block"},j[i]["@media "+b]={display:"none"},k["span"+i]="",a.component(i+"-component",{css:j,html:k,intervaliTime:30,status:"",loop:function(){var a=this;if(this.el){var b=this.getStyle("display");this.status!=b&&(this.status=b,d.apply(f,["none"===b]))}setTimeout(function(){a.loop()},this.intervaliTime)},constructor:["dom",function(a){var b=this;this.set("parent",a("body").el).populate(),setTimeout(function(){b.loop()},this.intervaliTime)}]})()}};a.di.register("mq",c)},y=function(){return function(a){var b=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},e={defaultProcessor:d.processors.css.CSS()},f={},g={},i={},j={};e.getRules=function(a){return"undefined"==typeof a?f:("undefined"==typeof f[a]&&(f[a]=[]),f[a])},e.getPlugins=function(){return i},e.getStorage=function(){return g},e.flush=function(){return f={},g=[],j={},e.defaultProcessor=d.processors.css.CSS(),e},e["import"]=function(){return e.callHooks("import",arguments)?e:e},e.handlecss=function(a,b){var c=e.getPlugins();if(a&&"stylesheet"===a.type&&a.stylesheet&&a.stylesheet.rules)for(var d=a.stylesheet.rules,f=0;rule=d[f];f++)switch(rule.type){case"rule":e.handlecssrule(rule);break;case"import":e.handlecssimport(rule,b);break;default:c[rule.type]&&c[rule.type](e,rule)}return e},e.handlecssimport=function(){return e},e.handlecssrule=function(a,c){var d={},f={};if(a.declarations&&a.declarations.length>0){for(var g=0;decl=a.declarations[g];g++)"declaration"===decl.type&&(f[decl.property]=decl.value);if(a.selectors&&a.selectors.length>0)for(var g=0;selector=a.selectors[g];g++)d[selector]=b({},f);e.add(d,c)}return e},e.addHook=function(a,b){j[a]||(j[a]=[]);for(var d=!1,e=0;c=j[a][e];e++)c===b&&(d=!0);d===!1?j[a].push(b):null},e.callHooks=function(a,b){if(j[a])for(var d=0;c=j[a][d];d++)if(c.apply(e,b)===!0)return!0;return!1},e.numOfAddedRules=0,e.components=function(a){var b=d.helpers.Extend,c=d.helpers.Clone,e={},f=[],g=b({},w()),h={};return function(a){window&&(window.addEventListener?window.addEventListener("load",a):window.attachEvent&&window.attachEvent("onload",a))}(function(){h.broadcast("ready")}),h={numOfComponents:0,events:g,register:function(d,h){return this.numOfComponents+=1,e[d]=function(){var e=b({},w(d,a,g,c(h)));return a.di.resolveObject(e),f.push(e),"function"==typeof e.constructor&&e.constructor.apply(e,Array.prototype.slice.call(arguments,0)),e}},get:function(a){if(e[a])return e[a];throw new Error("There is no component with name '"+a+"'.")},remove:function(a){return e[a]?(delete e[a],!0):!1},list:function(){var a=[];for(var b in e)a.push(b);return a},flush:function(){return e={},f=[],this},broadcast:function(a,b){for(var c=0;c<f.length,instance=f[c];c++)"function"==typeof instance[a]&&instance[a](b);return this}}}(e),e.component=function(a){return function(b,c){return"undefined"==typeof c?a.components.get(b):a.components.register(b,c)}}(e),e.di=d.DI(e),x(e),e.compile=function(a,c){if(e.callHooks("compile",arguments))return e;var d={combineSelectors:!0,minify:!1,processor:e.defaultProcessor,keepCamelCase:!1,api:e};c=b(d,c||{});var f=c.processor(e.getRules(),a||function(){},c);return e.flush(),f};for(var k in d.api)"compile"!==k&&(e[k]=d.api[k](e),e[k]=function(a){return function(){var b=d.api[a](e);return e.callHooks(a,arguments)?e:b.apply(e,arguments)}}(k));for(var l in d.processors.css.plugins)e.plugin(l,d.processors.css.plugins[l]());return"function"==typeof a&&a(e),"undefined"!=typeof Organic&&Organic.init(e),e.utils={str2DOMElement:h},e}};d.DI=function(){var a={dependencies:{},register:function(a,b){return this.dependencies[a]=b,this},resolve:function(){var a,b,c,d=this,e=!1;"string"==typeof arguments[0]?(a=arguments[1],b=arguments[0].replace(/ /g,"").split(","),c=arguments[2]||{}):(a=arguments[0],b=a.toString().match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[1].replace(/ /g,"").split(","),c=arguments[1]||{});for(var f=0;f<b.length;f++)"undefined"!=typeof this.dependencies[b[f]]&&(e=!0);return e?function(){for(var e=[],f=Array.prototype.slice.call(arguments,0),g=0;g<b.length;g++){var h=b[g];if("undefined"!=typeof d.dependencies[h]){var i=d.dependencies[h];"function"==typeof i?i.prototype.host=c:"object"==typeof i&&(i.host=c),e.push(i)}else e.push(f.shift())}return a.apply(c,e)}:a},resolveObject:function(a){if("object"==typeof a)for(var b in a)"function"==typeof a[b]?a[b]=this.resolve(a[b],a):a[b]instanceof Array&&2==a[b].length&&"string"==typeof a[b][0]&&"function"==typeof a[b][1]&&(a[b]=this.resolve(a[b][0],a[b][1],a));return this},flush:function(){return this.dependencies={},this}};return a},d.api.add=function(a){var b=e("../helpers/Extend"),c=e("../helpers/Prefixes"),d=[],f={combineSelectors:!0,preventCombining:["@font-face"]},g=function(b,d,e,f,g){var i=c.nonPrefixProp(d),j=a.getPlugins()[i.prop];if("undefined"!=typeof j){var k=j(a,e,i.prefix);return k&&h(b,k,f,g),!0}return!1},h=function(a,b,e,i){if(e=e||"mainstream",null!==b&&"undefined"!=typeof b&&b!==!1)if(i||a||(a=""),"undefined"!=typeof b.classify&&b.classify===!0&&(b="undefined"!=typeof b.toJSON?b.toJSON():b.toString()),/, ?/g.test(a)&&f.combineSelectors)for(var j=a.replace(/, /g,",").split(","),k=0;k<j.length,p=j[k];k++)h(p,b,e,i);else if(!g(null,a,b,e,i))if("undefined"==typeof b.length||"object"!=typeof b){var l={},m=a,n={},o={};for(var q in b){b[q]&&"undefined"!=typeof b[q].classify&&b[q].classify===!0&&(b[q]="undefined"!=typeof b[q].toJSON?b[q].toJSON():b[q].toString());var r=typeof b[q];"object"!==r&&"function"!==r&&b[q]!==!1&&b[q]!==!0?g(a,q,b[q],e,i)===!1&&(m=0===m.indexOf("^")?m.substr(1,m.length-1)+("undefined"!=typeof i?" "+i:""):"undefined"!=typeof i?i+" "+a:a,l[q]=b[q],c.addPrefixes(q,l)):"object"===r?n[q]=b[q]:"function"===r&&(o[q]=b[q])}d.push({selector:m,props:l,stylesheet:e});for(var q in n)if(":"===q.charAt(0))h(a+q,n[q],e,i);else if(/&/g.test(q))if(/, ?/g.test(q)&&f.combineSelectors)for(var j=q.replace(/, /g,",").split(","),k=0;k<j.length,p=j[k];k++)p.indexOf("&")>=0?h(p.replace(/&/g,a),n[q],e,i):h(p,n[q],e,"undefined"!=typeof i?i+" "+a:a);else h(q.replace(/&/g,a),n[q],e,i);else 0===q.indexOf("@media")||0===q.indexOf("@supports")?h(a,n[q],q,i):0===a.indexOf("@media")||0===q.indexOf("@supports")?h(q,n[q],a,i):0===a.indexOf("^")?h(a.substr(1,a.length-1)+("undefined"!=typeof i?" "+i:"")+" "+q,n[q],e):g(a,q,n[q],e,i)===!1&&h(q,n[q],e,(i?i+" ":"")+a);for(var q in o){var s={};s[q]=o[q](),h(a,s,e,i)}}else for(var k=0;k<b.length;k++)q=b[k],q&&h(a,q,e,i)},i=function(c,e,g){if(a.jsonify)return b(a.getRules(e||"mainstream"),c),a;try{d=[],a.numOfAddedRules+=1,"object"==typeof e&&"undefined"==typeof g&&(f={combineSelectors:"undefined"!=typeof e.combineSelectors?e.combineSelectors:f.combineSelectors,preventCombining:f.preventCombining.concat(e.preventCombining||[])},e=null),"undefined"!=typeof g&&(f={combineSelectors:g.combineSelectors||f.combineSelectors,preventCombining:f.preventCombining.concat(g.preventCombining||[])});var i,j=a.defaultProcessor.type;for(var k in c)h(k,c[k],e||"mainstream");for(var l=0;l<d.length;l++){var e=d[l].stylesheet,k=d[l].selector,m=d[l].props,n=a.getRules(e),o=f&&f.preventCombining?"|"+f.preventCombining.join("|"):"",i=o.indexOf("|"+k.replace(/^%.*?%/,""))>=0?"~~"+a.numOfAddedRules+"~~":"",p=n[i+k]||{};for(var q in m){var r=m[q];q=i+q,"object"!=typeof r&&(p[q]="css"==j?"+"===r.toString().charAt(0)?p&&p[q]?p[q]+", "+r.substr(1,r.length-1):r.substr(1,r.length-1):">"===r.toString().charAt(0)?p&&p[q]?p[q]+" "+r.substr(1,r.length-1):r.substr(1,r.length-1):r:r)}n[i+k]=p}return a}catch(s){throw new Error("Error adding: "+JSON.stringify({rules:c,error:s.toString()}))}};return i};var z=e("../helpers/Extend");d.api.compile=function(a){return function(){for(var b=null,c=function(){},d=null,e=0;e<arguments.length;e++)switch(typeof arguments[e]){case"function":c=arguments[e];break;case"string":b=arguments[e];break;case"object":d=arguments[e]}var f={combineSelectors:!0,minify:!1,keepCamelCase:!1,processor:a.defaultProcessor,api:a};return d=z(f,d||{}),d.processor(a.getRules(),function(d,e){if(null!=b)try{var f=e;"object"==typeof f&&(f=JSON.stringify(f)),C.writeFile(b,f,function(a){c(a,e)})}catch(d){c.apply({},arguments)}else c.apply({},arguments);a.flush()},d)}},d.api.compileFile=function(a){return a.compile};var A=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e};d.api.darken=function(){return function(a,b){return A(a,-(b/100))}},d.api.define=function(a){return function(b,c){return a.getStorage().__defined||(a.getStorage().__defined={}),a.getStorage().__defined[b]=c,a}},d.api.hook=function(a){return function(b,c){return a.addHook(b,c),a}},d.api.importCSS=function(a){var b=e("../helpers/CSSParse");return function(c){try{var d=b(c);a.handlecss(d,"")}catch(e){console.log("Error in the CSS: '"+c+"'",e,e.stack)}return a}};var A=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e};d.api.lighten=function(){return function(a,b){return A(a,b/100)}};var B={html:function(a){a.defaultProcessor=e(f+"/../processors/html/HTML.js")(),a.hook("add",function(b,c){return a.getRules(c||"mainstream").push(b),!0})},component:function(a){a.defaultProcessor=e(f+"/../processors/component/Component.js")(),a.hook("add",function(b){b instanceof Array||(b=[b]);for(var d=0;d<b.length,c=b[d];d++)a.getRules("mainstream").push(c);return!0})},jsonify:function(a){a.jsonify=!0},"dynamic-css":function(a){a.dynamicCSS=!0}};d.api.morph=function(a){return function(b){return B[b]&&(a.flush(),B[b](a)),a}},d.api.plugin=function(a){var b=function(b,c){return a.getPlugins()[b]=c,a};return b},d.api.raw=function(a){return function(b){var c={},d={},e="____raw_"+a.numOfAddedRules;return d[e]=b,c[e]=d,a.add(c),a}};{var C=e("fs");e("path")}d.api.rawImport=function(a){var b=function(b){var c=C.readFileSync(b,{encoding:"utf8"});a.raw(c)};return function(c){var d,e,f;if("string"==typeof c)b(c);else for(e=0,f=c.length;f>e;e++)d=c[e],b(d);return a}},d.api.register=function(a){return function(b,c){return a[b]=c,a}},d.api.storage=function(a){var b=a.getStorage(),c=function(d,e){if("undefined"!=typeof e)b[d]=e;else{if("object"!=typeof d){if(b[d])return b[d];throw new Error("There is no data in the storage associated with '"+d+"'")}for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&c(f,d[f])}return a};return c};var D=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;d.helpers.CSSParse=function(a,c){function d(a){var b=a.match(/\n/g);b&&(F+=b.length);var c=a.lastIndexOf("\n");G=~c?a.length-c:G+a.length}function e(){var a={line:F,column:G};return c.position?function(b){return b.position=new f(a),n(),b}:g}function f(a){this.start=a,this.end={line:F,column:G},this.source=c.source}function g(a){return n(),a}function h(b){var d=new Error(b+" near line "+F+":"+G);throw d.filename=c.source,d.line=F,d.column=G,d.source=a,d}function i(){return{type:"stylesheet",stylesheet:{rules:l()}}}function j(){return m(/^{\s*/)}function k(){return m(/^}/)}function l(){var b,c=[];for(n(),o(c);a.length&&"}"!=a.charAt(0)&&(b=C()||E());)c.push(b),o(c);return c}function m(b){var c=b.exec(a);if(c){var e=c[0];return d(e),a=a.slice(e.length),c}}function n(){m(/^\s*/)}function o(a){var b;for(a=a||[];b=p();)a.push(b);return a}function p(){var b=e();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var c=2;""!=a.charAt(c)&&("*"!=a.charAt(c)||"/"!=a.charAt(c+1));)++c;if(c+=2,""===a.charAt(c-1))return h("End of comment missing");var f=a.slice(2,c-2);return G+=2,d(f),a=a.slice(c),G+=2,b({type:"comment",comment:f})}}function q(){var a=m(/^([^{]+)/);if(a)return b(a[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").split(/\s*,\s*/)}function r(){var a=e(),c=m(/^(\*?[-#\/\*\w]+(\[[0-9a-z_-]+\])?)\s*/);if(c){if(c=b(c[0]),!m(/^:\s*/))return h("property missing ':'");var d=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);if(!d)return h("property missing value");var f=a({type:"declaration",property:c.replace(D,""),value:b(d[0]).replace(D,"")});return m(/^[;\s]*/),f}}function s(){var a=[];if(!j())return h("missing '{'");o(a);for(var b;b=r();)a.push(b),o(a);return k()?a:h("missing '}'")}function t(){for(var a,b=[],c=e();a=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)b.push(a[1]),m(/^,\s*/);return b.length?c({type:"keyframe",values:b,declarations:s()}):void 0}function u(){var a=e(),b=m(/^@([-\w]+)?keyframes */);if(b){var c=b[1],b=m(/^([-\w]+)\s*/);if(!b)return h("@keyframes missing name");var d=b[1];if(!j())return h("@keyframes missing '{'");for(var f,g=o();f=t();)g.push(f),g=g.concat(o());return k()?a({type:"keyframes",name:d,vendor:c,keyframes:g}):h("@keyframes missing '}'")}}function v(){var a=e(),c=m(/^@supports *([^{]+)/);if(c){var d=b(c[1]);if(!j())return h("@supports missing '{'");var f=o().concat(l());return k()?a({type:"supports",supports:d,rules:f}):h("@supports missing '}'")}}function w(){var a=e(),b=m(/^@host */);if(b){if(!j())return h("@host missing '{'");var c=o().concat(l());return k()?a({type:"host",rules:c}):h("@host missing '}'")}}function x(){var a=e(),c=m(/^@media *([^{]+)/);if(c){var d=b(c[1]);if(!j())return h("@media missing '{'");var f=o().concat(l());return k()?a({type:"media",media:d,rules:f}):h("@media missing '}'")}}function y(){var a=e(),b=m(/^@page */);if(b){var c=q()||[];if(!j())return h("@page missing '{'");for(var d,f=o();d=r();)f.push(d),f=f.concat(o());return k()?a({type:"page",selectors:c,declarations:f}):h("@page missing '}'")}}function z(){var a=e(),c=m(/^@([-\w]+)?document *([^{]+)/);if(c){var d=b(c[1]),f=b(c[2]);if(!j())return h("@document missing '{'");var g=o().concat(l());return k()?a({type:"document",document:f,vendor:d,rules:g}):h("@document missing '}'")}}function A(){var a=e(),b=m(/^@font-face */);if(b){if(!j())return h("@font-face missing '{'");for(var c,d=o();c=r();)d.push(c),d=d.concat(o());return k()?a({type:"font-face",declarations:d}):h("@font-face missing '}'")}}function B(a){var b=new RegExp("^@"+a+" *([^;\\n]+);");return function(){var c=e(),d=m(b);if(d){var f={type:a};return f[a]=d[1].trim(),c(f)}}}function C(){return"@"==a[0]?u()||x()||v()||H()||I()||J()||z()||y()||w()||A():void 0}function E(){var a=e(),b=q();return b?(o(),a({type:"rule",selectors:b,declarations:s()})):h("selector missing")}c=c||{},c.position=c.position===!1?!1:!0;var F=1,G=1;f.prototype.content=a;var H=B("import"),I=B("charset"),J=B("namespace");return i()},d.helpers.Clone=function X(a){if(!a)return a;for(var b,c=[Number,String,Boolean],d=0;d<c.length;d++){var e=c[d];a instanceof e&&(b=e(a))}if("undefined"==typeof b)if("[object Array]"===Object.prototype.toString.call(a))b=[],a.forEach(function(a,c){b[c]=X(a)});else if("object"==typeof a)if(a.nodeType&&"function"==typeof a.cloneNode)var b=a.cloneNode(!0);else if(a.prototype)b=a;else if(a instanceof Date)b=new Date(a);else{b={};for(var d in a)b[d]=X(a[d])}else b=a;return b},d.helpers.ColorLuminance=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e},d.helpers.Extend=function(){for(var a=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b=arguments[0],c=1;c<arguments.length;c++)b=a(b,arguments[c]);return b};var E=function(a){var b,c;return(c=a.match(/^\-(w|m|s|o)+\-/)||"-"===a.charAt(0))&&!a.match(/^\-(webkit|moz|ms)+\-/)?null!==c&&c[0]?(b={prefix:c[0].replace(/-/g,"")},b.prop=a.replace(c[0],"")):(b={prefix:""},b.prop=a.substr(1,a.length)):b={prefix:!1,prop:a},b};d.helpers.Prefixes={addPrefixes:function(a,b){var c=a,d=E(a),e=b[a];d.prefix!==!1&&(delete b[c],b[d.prop]=e,(""===d.prefix||d.prefix.indexOf("w")>=0)&&(b["-webkit-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("m")>=0)&&(b["-moz-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("s")>=0)&&(b["-ms-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("o")>=0)&&(b["-o-"+d.prop]=e))},nonPrefixProp:function(a){var b=E(a);return b.prefix!==!1&&(b.prefix=""==b.prefix?"-":"-"+b.prefix+"-"),b}},d.helpers.RequireUncached=function(a){return delete e.cache[e.resolve(a)],e(a)},d.helpers.TransformUppercase=function(a){for(var b="",d=0;c=a.charAt(d);d++)b+=c===c.toUpperCase()&&c.toLowerCase()!==c.toUpperCase()?"-"+c.toLowerCase():c;return b};var F=function(a,b,d){var g="",h="",i=[],j=d.api;cssPreprocessor=e(f+"/../css/CSS.js")(),htmlPreprocessor=e(f+"/../html/HTML.js")();for(var k=function(a){for(var b=0;b<i.length,component=i[b];b++)"function"==typeof component&&(component=component()),j.add(component.css?component.css:{});cssPreprocessor(j.getRules(),function(b,c){g+=c,a(b)},d)},l=function(b){var c=0,e=null,f=function(){if(c>a.length-1)return void b(e);var g=a[c];"function"==typeof g&&(g=g()),j.morph("html").add(g.html?g.html:{}),htmlPreprocessor(j.getRules(),function(a,b){h+=b,c+=1,e=a,f() | ||
},d)};f()},m=function(a){for(var b in a)if("_include"===b)if(a[b]instanceof Array)for(var d=0;d<a[b].length,c=a[b][d];d++)"function"==typeof c&&(c=c()),i.push(c),m(c);else"function"==typeof a[b]&&(a[b]=a[b]()),i.push(a[b]),m(a[b]);else"object"==typeof a[b]&&m(a[b])},n=0;n<a.length,c=a[n];n++)"function"==typeof c&&(c=c()),i.push(c),m(c);j.flush(),k(function(a){j.morph("html"),l(function(c){b(a||c?{error:{css:a,html:c}}:null,g,h)})})};d.processors.component.Component=function(){var a=function(a,b,c){F(a.mainstream,b,c)};return a.type="component",a};var G="\n",H={combineSelectors:!0,minify:!1,keepCamelCase:!1},I=e("../../helpers/TransformUppercase"),z=e("../../helpers/Extend"),J=function(a,b,c){var d="";c=c||[""," "];for(var e in a)if(0===e.indexOf("____raw"))d+=a[e][e]+G;else{var f=c[0]+e.replace(/~~(.+)~~/,"").replace(/^%.*?%/,"")+" {"+G,g="";for(var h in a[e]){var i=a[e][h];""===i&&(i='""'),h=h.replace(/~~(.+)~~/,"").replace(/^%.*?%/,""),g+=b&&b.keepCamelCase===!0?c[1]+h+": "+i+";"+G:c[1]+I(h)+": "+i+";"+G}""!=g&&(f+=g,f+=c[0]+"}"+G,d+=f)}return d},K=function(a){var b={};for(var c in a){var d=a[c];if("mainstream"==c)for(var e in d){b[e]={};for(var f in d[e])b[e][f]=d[e][f]}else if(c.indexOf("@media")>=0){b[c]={};for(var e in d){b[c][e]={};for(var f in d[e])b[c][e][f]=d[e][f]}}}return b},L=function(a,b){var c=[],d={},b=[].concat(b||[]);b.splice(0,0,""),b=b.join("|");for(var e in a){var f=a[e];for(var g in f)c.push({selector:e,prop:g,value:f[g],combine:b.indexOf("|"+g)<0&&e.indexOf("@font-face")<0})}for(var h=0;h<c.length;h++)if(c[h].combine===!0&&c[h].selector!==!1)for(var i=h+1;i<c.length;i++)c[h].prop===c[i].prop&&c[h].value===c[i].value&&(c[h].selector+=", "+c[i].selector.replace(/~~(.+)~~/,"").replace(/^%.*?%/,""),c[i].selector=!1);for(var h=0;h<c.length;h++)c[h].selector!==!1&&(d[c[h].selector]||(d[c[h].selector]={}),d[c[h].selector][c[h].prop]=c[h].value);return d},M=function(a){return a=a.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,""),a=a.replace(/ {2,}/g," "),a=a.replace(/ ([{:}]) /g,"$1"),a=a.replace(/([;,]) /g,"$1"),a=a.replace(/ !/g,"!")},N=function(a,b){if(b&&b.api&&b.api.getStorage().__defined){var c=b.api.getStorage().__defined;for(var d in c){var e=new RegExp("<%( )?"+d+"( )?%>","g");a="function"!=typeof c[d]?a.replace(e,c[d]):a.replace(e,c[d]())}}return a};d.processors.css.CSS=function(){var a=function(a,b,c){if(c=c||H,c.api&&c.api.jsonify){var d=K(a,c);return b(null,d),d}var f="";for(var g in a){var h=a[g];h=c.combineSelectors?L(h,c.preventCombining):h,f+="mainstream"===g?J(h,c):g+" {"+G+J(h,c,[" "," "])+"}"+G}return f=N(f,c),c&&c.api&&c.api.dynamicCSS&&(f=e("../html/helpers/TemplateEngine")(f,c)),c.minify?(f=M(f),b&&b(null,f)):b&&b(null,f),f};return a.type="css",a},d.processors.css.plugins.charset=function(){return function(a,b){"string"==typeof b?a.raw('@charset: "'+b+'";'):"object"==typeof b&&(b=b.charset.replace(/:/g,"").replace(/'/g,"").replace(/"/g,"").replace(/ /g,""),a.raw('@charset: "'+b+'";'))}},d.processors.css.plugins.document=function(){return function(a,b){if("object"==typeof b){var c="";if(c+="@"+b.vendor+"document",c+=" "+b.document,b.rules&&b.rules.length)for(var d=0;rule=b.rules[d];d++)a.handlecssrule(rule,c);else"undefined"!=typeof b.styles&&a.add(b.styles,c)}}},d.processors.css.plugins.keyframes=function(){return function(a,b){e(f+"/../CSS.js")(),e(f+"/../../../helpers/Prefixes");if("object"==typeof b){var c;if("undefined"!=typeof b.frames)c=b.frames;else if("undefined"!=typeof b.keyframes){c={};for(var d=0;rule=b.keyframes[d];d++)if("keyframe"===rule.type)for(var g=c[rule.values]={},h=0;declaration=rule.declarations[h];h++)"declaration"===declaration.type&&(g[declaration.property]=declaration.value)}if(a.jsonify){var i={};i.keyframes={name:b.name,frames:c},a.add(i)}else{var j=e(f+"/../../../../")();j.add(c).compile(function(c,d){var e="@keyframes "+b.name+" {\n";e+=d,e+="}",e=e+"\n"+e.replace("@keyframes","@-webkit-keyframes"),a.raw(e)},{combineSelectors:!1})}}}},d.processors.css.plugins.media=function(){return function(a,b){var c=e(f+"/../CSS.js")();if("object"==typeof b){for(var d="@media "+b.media+" {\n",g={},h={},i=0;rule=b.rules[i];i++){var j,k;if(rule.selectors&&(j=g[rule.selectors.toString()]={},k=h[rule.selectors.toString()]={},"rule"===rule.type))for(var l=0;declaration=rule.declarations[l];l++)"declaration"===declaration.type&&(j[declaration.property]=declaration.value,k[declaration.property]=declaration.value)}d+=c({mainstream:g}),d+="}",a.jsonify?a.add(h,"@media "+b.media):a.raw(d)}}},d.processors.css.plugins.namespace=function(){return function(a,b){"string"==typeof b?a.raw('@namespace: "'+b+'";'):"object"==typeof b&&(b=b.namespace.replace(/: /g,"").replace(/'/g,"").replace(/"/g,"").replace(/ /g,"").replace(/:h/g,"h"),a.raw('@namespace: "'+b+'";'))}},d.processors.css.plugins.page=function(){return function(a,b){if("object"==typeof b){var c="";c+=b.selectors.length>0?"@page "+b.selectors.join(", ")+" {\n":"@page {\n";for(var d=0;declaration=b.declarations[d];d++)"declaration"==declaration.type&&(c+=" "+declaration.property+": "+declaration.value+";\n");c+="}",a.raw(c)}}},d.processors.css.plugins.supports=function(){return function(a,b){var c=e(f+"/../CSS.js")();if("object"==typeof b){for(var d="@supports "+b.supports+" {\n",g={},h=0;rule=b.rules[h];h++){var i=g[rule.selectors.toString()]={};if("rule"===rule.type)for(var j=0;declaration=rule.declarations[j];j++)"declaration"===declaration.type&&(i[declaration.property]=declaration.value)}d+=c({mainstream:g}),d+="}",a.raw(d)}}};var O=null,G="\n",H={},P=e("js-beautify").html,Q=e("../../helpers/TransformUppercase"),R={},S=function(a){var b="";for(var c in O)if(c==a)for(var d=O[c].length,e=0;d>e;e++)b+=U("",O[c][e]);return b},T=function(a,b){return b&&b.keepCamelCase===!0?a:Q(a,b)},U=function(a,b){var c="",d="",f="",g=e("./helpers/PropAnalyzer")(a);if(a=g.tag,""!=g.attrs&&(d+=" "+g.attrs),"string"==typeof b||null===b)return V(a,d,b);var h=function(a){""!=f&&(f+=G),f+=a},i=function(a){var b=[];for(var c in a)b.push(c.replace(/^\$/,"")+":"+a[c]);b.length>0&&(/data-absurd-event/g.test(d)?d.replace(/data-absurd-event="(.*)"/,'data-absurd-event="$1,'+b.join(",")+'"'):d+=' data-absurd-event="'+b.join(",")+'"')};for(var j in b){var k=b[j];if(/^\$/.test(j))i(b);else switch(j){case"_attrs":for(var l in k)d+="function"==typeof k[l]?" "+T(l,R)+'="'+k[l]()+'"':" "+T(l,R)+'="'+k[l]+'"';break;case"_":h(k);break;case"_tpl":if("string"==typeof k)h(S(k));else if(k instanceof Array){for(var m="",n=0;tpl=k[n];n++)m+=S(tpl),n<k.length-1&&(m+=G);h(m)}break;case"_include":var m="",p=function(a){"function"==typeof a&&(a=a()),a.css&&a.html&&(a=a.html),m+=U("",a)};if(k instanceof Array)for(var n=0;n<k.length,o=k[n];n++)p(o);else"object"==typeof k&&p(k);h(m);break;default:switch(typeof k){case"string":h(U(j,k));break;case"object":if(k&&k.length&&k.length>0){for(var m="",n=0;v=k[n];n++)m+=U("","function"==typeof v?v():v),n<k.length-1&&(m+=G);h(U(j,m))}else h(U(j,k));break;case"function":h(U(j,k()))}}}return c+=""!=a?V(a,d,f):f},V=function(a,b,c){var d="";return""==a&&""==b&&""!=c?c:(a=""==a?"div":a,d+=null!==c?"<"+T(a,R)+b+">"+G+c+G+"</"+T(a,R)+">":"<"+T(a,R)+b+"/>")},W=function(a){return a=e("./helpers/TemplateEngine")(a.replace(/[\r\t\n]/g,""),R),R.minify?a:P(a,{indent_size:R.indentSize||4})};return d.processors.html.HTML=function(){var a=function(a,b,c){O=a,b=b||function(){},c=R=c||H;var d=W(S("mainstream"));return b(null,d),d};return a.type="html",a},d.processors.html.helpers.PropAnalyzer=function(a){var b={tag:"",attrs:""},d=(a.length,""),e=!1,f=[],g="",h=!1,i="",j=!1;if(/(#|\.|\[|\])/gi.test(a)===!1)return{tag:a,attrs:""};for(var k=0;k<a.length,c=a[k];k++)"["!==c||j?j?"]"!=c?i+=c:(j=!1,k-=1):"."!==c||e?e?"."!=c&&"#"!=c&&"["!=c&&"]"!=c?d+=c:(f.push(d),e=!1,d="",k-=1):"#"!==c||h?h?"."!=c&&"#"!=c&&"["!=c&&"]"!=c?g+=c:(h=!1,k-=1):"."!=c&&"#"!=c&&"["!=c&&"]"!=c&&(b.tag+=c):h=!0:e=!0:j=!0;""!=d&&f.push(d);for(var l="",k=0;cls=f[k];k++)l+=""===l?cls:" "+cls;return b.attrs+=""!=l?'class="'+l+'"':"",""!=g&&(b.attrs+=(""!=b.attrs?" ":"")+'id="'+g+'"'),""===b.tag&&""!=b.attrs&&(b.tag="div"),""!=i&&(b.attrs+=(""!=b.attrs?" ":"")+i),b},d.processors.html.helpers.TemplateEngine=function(a,b){for(var c,d=/<%(.+?)%>/g,e=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,f="with(obj) { var r=[];\n",g=0,h=function(a,b){return f+=b?a.match(e)?a+"\n":"r.push("+a+");\n":""!=a?'r.push("'+a.replace(/"/g,'\\"')+'");\n':"",h};match=d.exec(a);)h(a.slice(g,match.index))(match[1],!0),g=match.index+match[0].length;h(a.substr(g,a.length-g)),f=(f+'return r.join(""); }').replace(/[\r\t\n]/g,"");try{c=new Function("obj",f).apply(b,[b])}catch(i){console.error("'"+i.message+"'"," in \n\nCode:\n",f,"\n")}return c},y()}(window); | ||
var Absurd=function(b){function d(a){return a?a.replace(/^\s+|\s+$/g,""):""}var e={api:{},helpers:{},plugins:{},processors:{css:{plugins:{}},html:{plugins:{},helpers:{}},component:{plugins:{}}}},f=function(a){return a.indexOf("css/CSS.js")>0||"/../CSS.js"==a?e.processors.css.CSS:a.indexOf("html/HTML.js")>0?e.processors.html.HTML:a.indexOf("component/Component.js")>0?e.processors.component.Component:"js-beautify"==a?{html:function(a){return a}}:"./helpers/PropAnalyzer"==a?e.processors.html.helpers.PropAnalyzer:"../../helpers/TransformUppercase"==a?e.helpers.TransformUppercase:"./helpers/TemplateEngine"==a||"../html/helpers/TemplateEngine"==a?e.processors.html.helpers.TemplateEngine:"../helpers/Extend"==a?e.helpers.Extend:"../helpers/Clone"==a?e.helpers.Clone:"../helpers/Prefixes"==a||"/../../../helpers/Prefixes"==a?e.helpers.Prefixes:a==g+"/../../../../"?Absurd:"../helpers/CSSParse"==a?e.helpers.CSSParse:function(){}},g="",h=function(a,b){!function c(){a.length>0&&a.shift().apply(b||{},[c].concat(Array.prototype.slice.call(arguments,0)))}()},i=function(a){var b={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],body:[0,"",""],_default:[1,"<div>","</div>"]};b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var c=/<\s*\w.*?>/g.exec(a),d=document.createElement("div");if(null!=c){var e=c[0].replace(/</g,"").replace(/>/g,"").split(" ")[0];if("body"===e.toLowerCase()){var f=(document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null),document.createElement("body"));d.innerHTML=a.replace(/<body/g,"<div").replace(/<\/body>/g,"</div>");var g=d.firstChild.attributes;f.innerHTML=a;for(var h=0;h<g.length;h++)f.setAttribute(g[h].name,g[h].value);return f}var d,i=b[e]||b._default;a=i[1]+a+i[2],d.innerHTML=a;for(var j=i[0]+1;j--;)d=d.lastChild}else d.innerHTML=a,d=d.lastChild;return d},j=function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!1),!0):a.attachEvent?a.attachEvent("on"+b,c):void 0},k=function(a){for(var b,c=a.childNodes,d=c.length,e=0,f=/^\s*$/;d>e;e++)b=c[e],3==b.nodeType&&f.test(b.nodeValue)&&(a.removeChild(b),e--,d--);return a},l=function(b,c,d){for(var e=document.createElement(b),f=0;f<c.length,a=c[f];f++)e.setAttribute(a.name,a.value);return e.innerHTML=d,e},m=function(a,b){return b=b===!1?document:b||this.el||document,b.querySelector(a)},n=function(a,b){return b=b===!1?document:b||this.el||document,b.querySelectorAll(a)},q=function(a,b){return b=b||this.el,b&&b.currentStyle?b.currentStyle[a]:window.getComputedStyle?document.defaultView.getComputedStyle(b,null).getPropertyValue(a):null},r=function(a,b){if(b=b||this.el,b.classList)b.classList.add(a);else{var c=b.className;c.indexOf(a)<0&&(""==c?b.className=a:b.className+=" "+a)}return this},s=function(a,b){if(b=b||this.el,b.classList)b.classList.remove(a);else{for(var c=b.className.split(" "),d=[],e=0;e<c.length;e++)c[e]!=a&&d.push(c[e]);b.className=d.join(" ")}return this},t=function(a,b,c){c=c||this.el;for(var d=c.className.split(" "),e=!1,f=0;f<d.length;f++)d[f]==a&&(e=!0,d[f]=b);return e?(c.className=d.join(" "),this):r(b,c)},u=function(a,b){if(b=b||this.el,b.classList)b.classList.toggle(a);else{for(var c=b.className.split(" "),d=-1,e=c.length;e--;)c[e]===a&&(d=e);d>=0?c.splice(d,1):c.push(a),b.className=c.join(" ")}return this},w=function(a,b,c){return b instanceof Array&&(c=b,b=this),b||(b=this),function(){a.apply(b,(c||[]).concat(Array.prototype.slice.call(arguments,0)))}},x=function(a,b,c,d){var f=e.helpers.Extend({__name:a},d),g=e.helpers.Extend,o=[];f.listeners=o,f.on=function(a,b,c){return o[a]||(o[a]=[]),o[a].push({callback:b,scope:c}),this},f.off=function(a,b){return o[a]?(b||(o[a]=[]),this):this},f.dispatch=function(a,b,d){if(!b||"object"!=typeof b||b instanceof Array||(b.target=this),o[a])for(var e=0;e<o[a].length;e++){var f=o[a][e].callback;f.apply(d||o[a][e].scope||{},[b])}return this[a]&&"function"==typeof this[a]&&this[a](b),c&&c.dispatch(a,b),this};var p={};f.set=function(a,b){return p[a]=b,this},f.get=function(a){return p[a]};var v=!1;f.__handleCSS=function(c){return this.css?b.flush().morph("dynamic-css").add(this.css).compile(function(b,d){if(v)v.raw!==d&&(v.raw=d,v.element.innerHTML=d);else{var e=l("style",[{name:"id",value:a+"-css"},{name:"type",value:"text/css"}],d);(m("head")||m("body")).appendChild(e),v={raw:d,element:e}}c()},this):c(),this},f.applyCSS=function(a,b,c){if(this.html&&"string"==typeof this.html&&!b){var d={};d[this.html]=a,a=d}return this.css=a,c||this.populate(),this};var x=!1;f.__mergeDOMElements=function(a,b){if(k(a),k(b),"undefined"!=typeof a&&"undefined"!=typeof b&&!a.isEqualNode(b)){if(a.nodeName!==b.nodeName)return void(a.parentNode&&a.parentNode.replaceChild(b,a));if(a.nodeValue!==b.nodeValue&&(a.nodeValue=b.nodeValue),a.attributes){for(var c,d,e=a.attributes,g=b.attributes,h={},i=0;i<e.length,c=e[i];i++){for(var j=0;j<g.length,d=g[j];j++)c.name===d.name&&(a.setAttribute(c.name,d.value),h[c.name]=!0,"value"===c.name&&(a.value=d.value));h[c.name]||a.removeAttribute(c.name)}for(var i=0;i<g.length,d=g[i];i++)h[d.name]||(a.setAttribute(d.name,d.value),"value"===d.name&&(a.value=d.value))}var l=[];if(a.childNodes.length>=b.childNodes.length)for(var i=0;i<a.childNodes.length;i++)b.childNodes[i]||b.appendChild(document.createTextNode("")),l.push([a.childNodes[i],b.childNodes[i]]);else for(var i=0;i<b.childNodes.length;i++)a.appendChild(document.createTextNode("")),l.push([a.childNodes[i],b.childNodes[i]]);for(var i=0;i<l.length;i++)f.__mergeDOMElements(l[i][0],l[i][1])}},f.__handleHTML=function(a){var c=this,d=function(){b.flush().morph("html").add(x).compile(function(b,d){c.el?f.__mergeDOMElements(c.el,i(d)):c.el=i(d),a()},c)};if(this.html)if("string"==typeof this.html){if(!this.el){var e=m(this.html);e&&(this.el=e,x={"":this.el.outerHTML.replace(/</g,"<").replace(/>/g,">")})}d()}else"object"==typeof this.html?(x=g({},this.html),d()):a();else a();return this},f.applyHTML=function(a,b){return this.html=a,b||this.populate(),this};var y=!1;f.__append=function(a){return!y&&this.el&&this.get("parent")&&(y=!0,this.get("parent").appendChild(this.el)),a(),this};var z={events:{}};f.__handleEvents=function(a){if(this.el){var b=this,c=function(a){var c=a.getAttribute("data-absurd-event"),d=function(c){if(c=c.split(":"),c.length>=2){var d=c[0],e=c[1];c.splice(0,2);var f=c;(!z.events[d]||z.events[d].indexOf(a)<0)&&(z.events[d]||(z.events[d]=[]),z.events[d].push(a),j(a,d,function(a){if("function"==typeof b[e]){var c=b[e];c.apply(b,[a].concat(f))}}))}};c=c.split(/, ?/g);for(var e=0;e<c.length;e++)d(c[e])};this.el.hasAttribute&&this.el.hasAttribute("data-absurd-event")&&c(this.el);for(var d=this.el.querySelectorAll?this.el.querySelectorAll("[data-absurd-event]"):[],e=0;e<d.length;e++)c(d[e])}return a(),this},f.__getAnimAndTransEndEventName=function(a){if(a){var b,c={animation:["animationend","transitionend"],OAnimation:["oAnimationEnd","oTransitionEnd"],MozAnimation:["animationend","transitionend"],WebkitAnimation:["webkitAnimationEnd","webkitTransitionEnd"]};for(b in c)if(void 0!==a.style[b])return c[b]}},f.onAnimationEnd=function(a,b){1==arguments.length&&(b=a,a=this.el);var c=this,d=f.__getAnimAndTransEndEventName(a);return d?void this.addEventListener(a,d[0],function(a){b.apply(c,[a])}):void b.apply(this,[{error:"Animations not supported."}])},f.onTransitionEnd=function(a,b){1==arguments.length&&(b=a,a=this.el);var c=this,d=f.__getAnimAndTransEndEventName(a);return d?void this.addEventListener(a,d[1],function(a){b.apply(c,[a])}):void b.apply(this,[{error:"Animations not supported."}])};var A={funcs:{},index:0};f.__handleAsyncFunctions=function(a){if(this.el){var b=[];if(this.el.hasAttribute&&this.el.hasAttribute("data-absurd-async"))b.push(this.el);else for(var c=this.el.querySelectorAll?this.el.querySelectorAll("[data-absurd-async]"):[],d=0;d<c.length;d++)b.push(c[d]);if(0===b.length)a();else{var e=this;!function f(){if(0===b.length)a();else{var c=b.shift(),d=c.getAttribute("data-absurd-async"),g=function(a){"string"==typeof a?c.parentNode.replaceChild(i(a),c):c.parentNode.replaceChild(a,c),f()};"function"==typeof e[A.funcs[d].name]?e[A.funcs[d].name].apply(e,[g].concat(A.funcs[d].args)):"function"==typeof A.funcs[d].func&&A.funcs[d].func.apply(e,[g].concat(A.funcs[d].args))}}()}}else a();return this},f.async=function(){var a=Array.prototype.slice.call(arguments,0),b=a.shift(),c="_"+A.index++;return A.funcs[c]={args:a,name:b},'<script data-absurd-async="'+c+'"></script>'},f.child=function(){var a=Array.prototype.slice.call(arguments,0),b=this.get("children"),c=b&&b[a.shift()],d="_"+A.index++;return A.funcs[d]={args:a,func:function(a){c.populate({callback:function(b){a(b.html.element)}})}},'<script data-absurd-async="'+d+'"></script>'},f.wire=function(a){return b.components.events.on(a,this[a]||function(){},this),this};var B=!1;return f.populate=function(a){if(!B){B=!0;var b=function(a){return a(),this};return h([a&&a.css===!1?b:f.__handleCSS,a&&a.html===!1?b:f.__handleHTML,f.__append,f.__handleEvents,f.__handleAsyncFunctions,function(){B=!1,A={funcs:{},index:0};var b={css:v,html:{element:this.el}};this.dispatch("populated",b),a&&"function"==typeof a.callback&&a.callback(b)}],this),this}},f.str2DOMElement=i,f.addEventListener=j,f.queue=h,f.qs=m,f.qsa=n,f.getStyle=q,f.addClass=r,f.removeClass=s,f.replaceClass=t,f.bind=w,f.toggleClass=u,f.compileHTML=function(a,c,d){b.flush().morph("html").add(a).compile(c,d)},f.compileCSS=function(a,c,d){b.flush().add(a).compile(c,d)},f.delay=function(a,b,c){var d=this;setTimeout(function(){b.apply(d,c)},a)},f},y=function(a){a.di.register("is",{appended:function(a){return"undefined"==typeof a&&(a=this.host.html),m(a)?!0:!1},hidden:function(a){return a=a||this.host.el,null===a.offsetParent}}),a.di.register("router",{routes:[],mode:null,root:"/",getFragment:function(){var a="";if("history"===this.mode){if(!location)return"";a=this.clearSlashes(decodeURI(location.pathname+location.search)),a=a.replace(/\?(.*)$/,""),a="/"!=this.root?a.replace(this.root,""):a}else{if(!window)return"";var b=window.location.href.match(/#(.*)$/);a=b?b[1]:""}return this.clearSlashes(a)},clearSlashes:function(a){return a.toString().replace(/\/$/,"").replace(/^\//,"")},add:function(a,b){return"function"==typeof a&&(b=a,a=""),this.routes.push({re:a,handler:b}),this},remove:function(a){for(var b,c=0;c<this.routes.length,b=this.routes[c];c++)if(b.handler===a||b.re===a)return this.routes.splice(c,1),this;return this},flush:function(){return this.routes=[],this.mode=null,this.root="/",this},config:function(a){return this.mode=a&&a.mode&&"history"==a.mode&&history.pushState?"history":"hash",this.root=a&&a.root?"/"+this.clearSlashes(a.root)+"/":"/",this},listen:function(a){var b=this,c=b.getFragment(),d=function(){c!==b.getFragment()&&(c=b.getFragment(),b.check(c))};return clearInterval(this.interval),this.interval=setInterval(d,a||50),this},check:function(a){for(var b=a||this.getFragment(),c=0;c<this.routes.length;c++){var d=b.match(this.routes[c].re);if(d)return d.shift(),this.routes[c].handler.apply(this.host||{},d),this}return this},navigate:function(a){return a=a?a:"","history"===this.mode?history.pushState(null,null,this.root+this.clearSlashes(a)):(window.location.href.match(/#(.*)$/),window.location.href=window.location.href.replace(/#(.*)$/,"")+"#"+a),this}}),a.di.register("ajax",{request:function(a){"string"==typeof a&&(a={url:a}),a.url=a.url||"",a.method=a.method||"get",a.data=a.data||{};var b=function(a,b){var c,d=[];for(var e in a)d.push(e+"="+encodeURIComponent(a[e]));return c=d.join("&"),""!=c?b?b.indexOf("?")<0?"?"+c:"&"+c:c:""},c={host:this.host||{},process:function(a){var c=this;return this.xhr=null,window.ActiveXObject?this.xhr=new ActiveXObject("Microsoft.XMLHTTP"):window.XMLHttpRequest&&(this.xhr=new XMLHttpRequest),this.xhr&&(this.xhr.onreadystatechange=function(){if(4==c.xhr.readyState&&200==c.xhr.status){var b=c.xhr.responseText;a.json===!0&&"undefined"!=typeof JSON&&(b=JSON.parse(b)),c.doneCallback&&c.doneCallback.apply(c.host,[b,c.xhr])}else 4==c.xhr.readyState&&c.failCallback&&c.failCallback.apply(c.host,[c.xhr]);c.alwaysCallback&&c.alwaysCallback.apply(c.host,[c.xhr])},"get"==a.method?this.xhr.open("GET",a.url+b(a.data,a.url),!0):(this.xhr.open(a.method,a.url,!0),this.setHeaders({"X-Requested-With":"XMLHttpRequest","Content-type":"application/x-www-form-urlencoded"})),a.headers&&"object"==typeof a.headers&&this.setHeaders(a.headers),setTimeout(function(){"get"==a.method?c.xhr.send():c.xhr.send(b(a.data))},20)),this},done:function(a){return this.doneCallback=a,this},fail:function(a){return this.failCallback=a,this},always:function(a){return this.alwaysCallback=a,this},setHeaders:function(a){for(var b in a)this.xhr&&this.xhr.setRequestHeader(b,a[b])}};return c.process(a)}});var b=function(a,c){var d=b.prototype.host,e={el:null};switch(typeof a){case"undefined":e.el=d.el;break;case"string":c=c&&"string"==typeof c?m.apply(d,[c]):c,e.el=m(a,c||d.el||document);break;case"object":if("undefined"==typeof a.nodeName){var f=function(a,b){b=b||this;for(var c in b)"undefined"!=typeof b[c].el?b[c]=b[c].val(a):"object"==typeof b[c]&&(b[c]=f(a,b[c]));return delete b.val,b},g={val:f};for(var h in a)g[h]=b.apply(this,[a[h]]);return g}e.el=a}return e.val=function(a){if(!this.el)return null;var b=!!a,d=function(a){return b?(this.el.value=a,e):this.el.value};switch(this.el.nodeName.toLowerCase()){case"input":var f=this.el.getAttribute("type");if("radio"!=f&&"checkbox"!=f)return d.apply(this,[a]);for(var g=n('[name="'+this.el.getAttribute("name")+'"]',c),h=[],i=0;i<g.length;i++)b&&g[i].checked&&g[i].value!==a?g[i].removeAttribute("checked"):b&&g[i].value===a?(g[i].setAttribute("checked","checked"),g[i].checked="checked"):g[i].checked&&h.push(g[i].value);if(!b)return"radio"==f?h[0]:h;break;case"textarea":return d.apply(this,[a]);case"select":if(!b)return this.el.value;for(var j=n("option",this.el),i=0;i<j.length;i++)j[i].getAttribute("value")===a?this.el.selectedIndex=i:j[i].removeAttribute("selected");break;default:if(!b)return"undefined"!=typeof this.el.textContent?this.el.textContent:"undefined"!=typeof this.el.innerText?typeof this.el.innerText:this.el.innerHTML;this.el.innerHTML=a}return b?e:null},e.dom=function(a,c){return b(a,c||e.el)},e};a.di.register("dom",b);var c=function(b,d,e){var f=c.prototype.host,g=!(!window||!window.matchMedia||e);if(g){var h=window.matchMedia(b);d.apply(f,[h.matches,h.media]),h.addListener(function(a){d.apply(f,[a.matches,a.media])})}else{var i=".match-media-"+a.components.numOfComponents,j={},k={};j[i]={display:"block"},j[i]["@media "+b]={display:"none"},k["span"+i]="",a.component(i+"-component",{css:j,html:k,intervaliTime:30,status:"",loop:function(a){var b=this;if(this.el){var c=this.getStyle("display");this.status!=c&&(this.status=c,d.apply(f,["none"===c]))}setTimeout(function(){b.loop()},this.intervaliTime)},constructor:["dom",function(a){var b=this;this.set("parent",a("body").el).populate(),setTimeout(function(){b.loop()},this.intervaliTime)}]})()}};a.di.register("mq",c)},z=function(){return function(a){var b=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},d={defaultProcessor:e.processors.css.CSS()},f={},g={},h={},j={};d.getRules=function(a){return"undefined"==typeof a?f:("undefined"==typeof f[a]&&(f[a]=[]),f[a])},d.getPlugins=function(){return h},d.getStorage=function(){return g},d.flush=function(){return f={},g=[],j={},d.defaultProcessor=e.processors.css.CSS(),d},d["import"]=function(){return d.callHooks("import",arguments)?d:d},d.handlecss=function(a,b){var c=d.getPlugins();if(a&&"stylesheet"===a.type&&a.stylesheet&&a.stylesheet.rules)for(var e=a.stylesheet.rules,f=0;rule=e[f];f++)switch(rule.type){case"rule":d.handlecssrule(rule);break;case"import":d.handlecssimport(rule,b);break;default:c[rule.type]&&c[rule.type](d,rule)}return d},d.handlecssimport=function(a,b){return d},d.handlecssrule=function(a,c){var e={},f={};if(a.declarations&&a.declarations.length>0){for(var g=0;decl=a.declarations[g];g++)"declaration"===decl.type&&(f[decl.property]=decl.value);if(a.selectors&&a.selectors.length>0)for(var g=0;selector=a.selectors[g];g++)e[selector]=b({},f);d.add(e,c)}return d},d.addHook=function(a,b){j[a]||(j[a]=[]);for(var d=!1,e=0;c=j[a][e];e++)c===b&&(d=!0);d===!1?j[a].push(b):null},d.callHooks=function(a,b){if(j[a])for(var e=0;c=j[a][e];e++)if(c.apply(d,b)===!0)return!0;return!1},d.numOfAddedRules=0,d.components=function(a){var b=e.helpers.Extend,c=e.helpers.Clone,d={},f=[],g=b({},x()),h={};return function(a){window&&(window.addEventListener?window.addEventListener("load",a):window.attachEvent&&window.attachEvent("onload",a))}(function(){h.broadcast("ready")}),h={numOfComponents:0,events:g,register:function(e,h){return this.numOfComponents+=1,d[e]=function(){var d=b({},x(e,a,g,c(h)));return a.di.resolveObject(d),f.push(d),"function"==typeof d.constructor&&d.constructor.apply(d,Array.prototype.slice.call(arguments,0)),d}},get:function(a){if(d[a])return d[a];throw new Error("There is no component with name '"+a+"'.")},remove:function(a){return d[a]?(delete d[a],!0):!1},list:function(){var a=[];for(var b in d)a.push(b);return a},flush:function(){return d={},f=[],this},broadcast:function(a,b){for(var c=0;c<f.length,instance=f[c];c++)"function"==typeof instance[a]&&instance[a](b);return this}}}(d),d.component=function(a){return function(b,c){return"undefined"==typeof c?a.components.get(b):a.components.register(b,c)}}(d),d.di=e.DI(d),y(d),d.compile=function(a,c){if(d.callHooks("compile",arguments))return d;var e={combineSelectors:!0,minify:!1,processor:d.defaultProcessor,keepCamelCase:!1,api:d};c=b(e,c||{});var f=c.processor(d.getRules(),a||function(){},c);return d.flush(),f};for(var k in e.api)"compile"!==k&&(d[k]=e.api[k](d),d[k]=function(a){return function(){var b=e.api[a](d);return d.callHooks(a,arguments)?d:b.apply(d,arguments)}}(k));for(var l in e.processors.css.plugins)d.plugin(l,e.processors.css.plugins[l]());return"function"==typeof a&&a(d),"undefined"!=typeof Organic&&Organic.init(d),d.utils={str2DOMElement:i},d}};e.DI=function(a){var b={dependencies:{},register:function(a,b){return this.dependencies[a]=b,this},resolve:function(){var a,b,c,d=this,e=!1;"string"==typeof arguments[0]?(a=arguments[1],b=arguments[0].replace(/ /g,"").split(","),c=arguments[2]||{}):(a=arguments[0],b=a.toString().match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[1].replace(/ /g,"").split(","),c=arguments[1]||{});for(var f=0;f<b.length;f++)"undefined"!=typeof this.dependencies[b[f]]&&(e=!0);return e?function(){for(var e=[],f=Array.prototype.slice.call(arguments,0),g=0;g<b.length;g++){var h=b[g];if("undefined"!=typeof d.dependencies[h]){var i=d.dependencies[h];"function"==typeof i?i.prototype.host=c:"object"==typeof i&&(i.host=c),e.push(i)}else e.push(f.shift())}return a.apply(c,e)}:a},resolveObject:function(a){if("object"==typeof a)for(var b in a)"function"==typeof a[b]?a[b]=this.resolve(a[b],a):a[b]instanceof Array&&2==a[b].length&&"string"==typeof a[b][0]&&"function"==typeof a[b][1]&&(a[b]=this.resolve(a[b][0],a[b][1],a));return this},flush:function(){return this.dependencies={},this}};return b},e.api.add=function(a){var b=f("../helpers/Extend"),c=f("../helpers/Prefixes"),d=[],e={combineSelectors:!0,preventCombining:["@font-face"]},g=function(b,d,e,f,g){var i=c.nonPrefixProp(d),j=a.getPlugins()[i.prop];if("undefined"!=typeof j){var k=j(a,e,i.prefix);return k&&h(b,k,f,g),!0}return!1},h=function(a,b,f,i){if(f=f||"mainstream",null!==b&&"undefined"!=typeof b&&b!==!1)if(i||a||(a=""),"undefined"!=typeof b.classify&&b.classify===!0&&(b="undefined"!=typeof b.toJSON?b.toJSON():b.toString()),/, ?/g.test(a)&&e.combineSelectors)for(var j=a.replace(/, /g,",").split(","),k=0;k<j.length,p=j[k];k++)h(p,b,f,i);else if(!g(null,a,b,f,i))if("undefined"==typeof b.length||"object"!=typeof b){var l={},m=a,n={},o={};for(var q in b){b[q]&&"undefined"!=typeof b[q].classify&&b[q].classify===!0&&(b[q]="undefined"!=typeof b[q].toJSON?b[q].toJSON():b[q].toString());var r=typeof b[q];"object"!==r&&"function"!==r&&b[q]!==!1&&b[q]!==!0?g(a,q,b[q],f,i)===!1&&(m=0===m.indexOf("^")?m.substr(1,m.length-1)+("undefined"!=typeof i?" "+i:""):"undefined"!=typeof i?i+" "+a:a,l[q]=b[q],c.addPrefixes(q,l)):"object"===r?n[q]=b[q]:"function"===r&&(o[q]=b[q])}d.push({selector:m,props:l,stylesheet:f});for(var q in n)if(":"===q.charAt(0))h(a+q,n[q],f,i);else if(/&/g.test(q))if(/, ?/g.test(q)&&e.combineSelectors)for(var j=q.replace(/, /g,",").split(","),k=0;k<j.length,p=j[k];k++)p.indexOf("&")>=0?h(p.replace(/&/g,a),n[q],f,i):h(p,n[q],f,"undefined"!=typeof i?i+" "+a:a);else h(q.replace(/&/g,a),n[q],f,i);else 0===q.indexOf("@media")||0===q.indexOf("@supports")?h(a,n[q],q,i):0===a.indexOf("@media")||0===q.indexOf("@supports")?h(q,n[q],a,i):0===a.indexOf("^")?h(a.substr(1,a.length-1)+("undefined"!=typeof i?" "+i:"")+" "+q,n[q],f):g(a,q,n[q],f,i)===!1&&h(q,n[q],f,(i?i+" ":"")+a);for(var q in o){var s={};s[q]=o[q](),h(a,s,f,i)}}else for(var k=0;k<b.length;k++)q=b[k],q&&h(a,q,f,i)},i=function(c,f,g){if(a.jsonify)return b(a.getRules(f||"mainstream"),c),a;try{d=[],a.numOfAddedRules+=1,"object"==typeof f&&"undefined"==typeof g&&(e={combineSelectors:"undefined"!=typeof f.combineSelectors?f.combineSelectors:e.combineSelectors,preventCombining:e.preventCombining.concat(f.preventCombining||[])},f=null),"undefined"!=typeof g&&(e={combineSelectors:g.combineSelectors||e.combineSelectors,preventCombining:e.preventCombining.concat(g.preventCombining||[])});var i,j=a.defaultProcessor.type;for(var k in c)h(k,c[k],f||"mainstream");for(var l=0;l<d.length;l++){var f=d[l].stylesheet,k=d[l].selector,m=d[l].props,n=a.getRules(f),o=e&&e.preventCombining?"|"+e.preventCombining.join("|"):"",i=o.indexOf("|"+k.replace(/^%.*?%/,""))>=0?"~~"+a.numOfAddedRules+"~~":"",p=n[i+k]||{};for(var q in m){var r=m[q];q=i+q,"object"!=typeof r&&("css"==j?"+"===r.toString().charAt(0)?p&&p[q]?p[q]=p[q]+", "+r.substr(1,r.length-1):p[q]=r.substr(1,r.length-1):">"===r.toString().charAt(0)?p&&p[q]?p[q]=p[q]+" "+r.substr(1,r.length-1):p[q]=r.substr(1,r.length-1):p[q]=r:p[q]=r)}n[i+k]=p}return a}catch(s){throw new Error("Error adding: "+JSON.stringify({rules:c,error:s.toString()}))}};return i};var A=f("../helpers/Extend");e.api.compile=function(a){return function(){for(var b=null,c=function(){},d=null,e=0;e<arguments.length;e++)switch(typeof arguments[e]){case"function":c=arguments[e];break;case"string":b=arguments[e];break;case"object":d=arguments[e]}var f={combineSelectors:!0,minify:!1,keepCamelCase:!1,processor:a.defaultProcessor,api:a};return d=A(f,d||{}),d.processor(a.getRules(),function(d,e){if(null!=b)try{var f=e;"object"==typeof f&&(f=JSON.stringify(f)),D.writeFile(b,f,function(a){c(a,e)})}catch(d){c.apply({},arguments)}else c.apply({},arguments);a.flush()},d)}},e.api.compileFile=function(a){return a.compile};var B=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e};e.api.darken=function(a){return function(a,b){return B(a,-(b/100))}},e.api.define=function(a){return function(b,c){return a.getStorage().__defined||(a.getStorage().__defined={}),a.getStorage().__defined[b]=c,a}},e.api.hook=function(a){return function(b,c){return a.addHook(b,c),a}},e.api.importCSS=function(a){var b=f("../helpers/CSSParse");return function(c){try{var d=b(c);a.handlecss(d,"")}catch(e){console.log("Error in the CSS: '"+c+"'",e,e.stack)}return a}};var B=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e};e.api.lighten=function(a){return function(a,b){return B(a,b/100)}};var C={html:function(a){a.defaultProcessor=f(g+"/../processors/html/HTML.js")(),a.hook("add",function(b,c){return a.getRules(c||"mainstream").push(b),!0})},component:function(a){a.defaultProcessor=f(g+"/../processors/component/Component.js")(),a.hook("add",function(b){b instanceof Array||(b=[b]);for(var d=0;d<b.length,c=b[d];d++)a.getRules("mainstream").push(c);return!0})},jsonify:function(a){a.jsonify=!0},"dynamic-css":function(a){a.dynamicCSS=!0}};e.api.morph=function(a){return function(b){return C[b]&&(a.flush(),C[b](a)),a}},e.api.plugin=function(a){var b=function(b,c){return a.getPlugins()[b]=c,a};return b},e.api.raw=function(a){return function(b){var c={},d={},e="____raw_"+a.numOfAddedRules;return d[e]=b,c[e]=d,a.add(c),a}};var D=f("fs");f("path");e.api.rawImport=function(a){var b=function(b){var c=D.readFileSync(b,{encoding:"utf8"});a.raw(c)};return function(c){var d,e,f;if("string"==typeof c)b(c);else for(e=0,f=c.length;f>e;e++)d=c[e],b(d);return a}},e.api.register=function(a){return function(b,c){return a[b]=c,a}},e.api.storage=function(a){var b=a.getStorage(),c=function(d,e){if("undefined"!=typeof e)b[d]=e;else{if("object"!=typeof d){if(b[d])return b[d];throw new Error("There is no data in the storage associated with '"+d+"'")}for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&c(f,d[f])}return a};return c};var E=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;e.helpers.CSSParse=function(a,b){function c(a){var b=a.match(/\n/g);b&&(F+=b.length);var c=a.lastIndexOf("\n");G=~c?a.length-c:G+a.length}function e(){var a={line:F,column:G};return b.position?function(b){return b.position=new f(a),n(),b}:g}function f(a){this.start=a,this.end={line:F,column:G},this.source=b.source}function g(a){return n(),a}function h(c){var d=new Error(c+" near line "+F+":"+G);throw d.filename=b.source,d.line=F,d.column=G,d.source=a,d}function i(){return{type:"stylesheet",stylesheet:{rules:l()}}}function j(){return m(/^{\s*/)}function k(){return m(/^}/)}function l(){var b,c=[];for(n(),o(c);a.length&&"}"!=a.charAt(0)&&(b=C()||D());)c.push(b),o(c);return c}function m(b){var d=b.exec(a);if(d){var e=d[0];return c(e),a=a.slice(e.length),d}}function n(){m(/^\s*/)}function o(a){var b;for(a=a||[];b=p();)a.push(b);return a}function p(){var b=e();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var d=2;""!=a.charAt(d)&&("*"!=a.charAt(d)||"/"!=a.charAt(d+1));)++d;if(d+=2,""===a.charAt(d-1))return h("End of comment missing");var f=a.slice(2,d-2);return G+=2,c(f),a=a.slice(d),G+=2,b({type:"comment",comment:f})}}function q(){var a=m(/^([^{]+)/);if(a)return d(a[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").split(/\s*,\s*/)}function r(){var a=e(),b=m(/^(\*?[-#\/\*\w]+(\[[0-9a-z_-]+\])?)\s*/);if(b){if(b=d(b[0]),!m(/^:\s*/))return h("property missing ':'");var c=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);if(!c)return h("property missing value");var f=a({type:"declaration",property:b.replace(E,""),value:d(c[0]).replace(E,"")});return m(/^[;\s]*/),f}}function s(){var a=[];if(!j())return h("missing '{'");o(a);for(var b;b=r();)a.push(b),o(a);return k()?a:h("missing '}'")}function t(){for(var a,b=[],c=e();a=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)b.push(a[1]),m(/^,\s*/);return b.length?c({type:"keyframe",values:b,declarations:s()}):void 0}function u(){var a=e(),b=m(/^@([-\w]+)?keyframes */);if(b){var c=b[1],b=m(/^([-\w]+)\s*/);if(!b)return h("@keyframes missing name");var d=b[1];if(!j())return h("@keyframes missing '{'");for(var f,g=o();f=t();)g.push(f),g=g.concat(o());return k()?a({type:"keyframes",name:d,vendor:c,keyframes:g}):h("@keyframes missing '}'")}}function v(){var a=e(),b=m(/^@supports *([^{]+)/);if(b){var c=d(b[1]);if(!j())return h("@supports missing '{'");var f=o().concat(l());return k()?a({type:"supports",supports:c,rules:f}):h("@supports missing '}'")}}function w(){var a=e(),b=m(/^@host */);if(b){if(!j())return h("@host missing '{'");var c=o().concat(l());return k()?a({type:"host",rules:c}):h("@host missing '}'")}}function x(){var a=e(),b=m(/^@media *([^{]+)/);if(b){var c=d(b[1]);if(!j())return h("@media missing '{'");var f=o().concat(l());return k()?a({type:"media",media:c,rules:f}):h("@media missing '}'")}}function y(){var a=e(),b=m(/^@page */);if(b){var c=q()||[];if(!j())return h("@page missing '{'");for(var d,f=o();d=r();)f.push(d),f=f.concat(o());return k()?a({type:"page",selectors:c,declarations:f}):h("@page missing '}'")}}function z(){var a=e(),b=m(/^@([-\w]+)?document *([^{]+)/);if(b){var c=d(b[1]),f=d(b[2]);if(!j())return h("@document missing '{'");var g=o().concat(l());return k()?a({type:"document",document:f,vendor:c,rules:g}):h("@document missing '}'")}}function A(){var a=e(),b=m(/^@font-face */);if(b){if(!j())return h("@font-face missing '{'");for(var c,d=o();c=r();)d.push(c),d=d.concat(o());return k()?a({type:"font-face",declarations:d}):h("@font-face missing '}'")}}function B(a){var b=new RegExp("^@"+a+" *([^;\\n]+);");return function(){var c=e(),d=m(b);if(d){var f={type:a};return f[a]=d[1].trim(),c(f)}}}function C(){return"@"==a[0]?u()||x()||v()||H()||I()||J()||z()||y()||w()||A():void 0}function D(){var a=e(),b=q();return b?(o(),a({type:"rule",selectors:b,declarations:s()})):h("selector missing")}b=b||{},b.position=b.position===!1?!1:!0;var F=1,G=1;f.prototype.content=a;var H=B("import"),I=B("charset"),J=B("namespace");return i()},e.helpers.Clone=function Y(a){if(!a)return a;for(var b,c=[Number,String,Boolean],d=0;d<c.length;d++){var e=c[d];a instanceof e&&(b=e(a))}if("undefined"==typeof b)if("[object Array]"===Object.prototype.toString.call(a))b=[],a.forEach(function(a,c,d){b[c]=Y(a)});else if("object"==typeof a)if(a.nodeType&&"function"==typeof a.cloneNode)var b=a.cloneNode(!0);else if(a.prototype)b=a;else if(a instanceof Date)b=new Date(a);else{b={};for(var d in a)b[d]=Y(a[d])}else b=a;return b},e.helpers.ColorLuminance=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e},e.helpers.Extend=function(){for(var a=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b=arguments[0],c=1;c<arguments.length;c++)b=a(b,arguments[c]);return b};var F=function(a){var b,c;return(c=a.match(/^\-(w|m|s|o)+\-/)||"-"===a.charAt(0))&&!a.match(/^\-(webkit|moz|ms)+\-/)?null!==c&&c[0]?(b={prefix:c[0].replace(/-/g,"")},b.prop=a.replace(c[0],"")):(b={prefix:""},b.prop=a.substr(1,a.length)):b={prefix:!1,prop:a},b};e.helpers.Prefixes={addPrefixes:function(a,b){var c=a,d=F(a),e=b[a];d.prefix!==!1&&(delete b[c],b[d.prop]=e,(""===d.prefix||d.prefix.indexOf("w")>=0)&&(b["-webkit-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("m")>=0)&&(b["-moz-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("s")>=0)&&(b["-ms-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("o")>=0)&&(b["-o-"+d.prop]=e))},nonPrefixProp:function(a){var b=F(a);return b.prefix!==!1&&(""==b.prefix?b.prefix="-":b.prefix="-"+b.prefix+"-"),b}},e.helpers.RequireUncached=function(a){return delete f.cache[f.resolve(a)],f(a)},e.helpers.TransformUppercase=function(a,b){for(var d="",e=0;c=a.charAt(e);e++)d+=c===c.toUpperCase()&&c.toLowerCase()!==c.toUpperCase()?"-"+c.toLowerCase():c;return d};var G=function(a,b,d){var e="",h="",i=[],j=d.api;cssPreprocessor=f(g+"/../css/CSS.js")(),htmlPreprocessor=f(g+"/../html/HTML.js")();for(var k=function(a){for(var b=0;b<i.length,component=i[b];b++)"function"==typeof component&&(component=component()),j.add(component.css?component.css:{});cssPreprocessor(j.getRules(),function(b,c){e+=c,a(b)},d)},l=function(b){var c=0,e=null,f=function(){if(c>a.length-1)return void b(e);var g=a[c];"function"==typeof g&&(g=g()),j.morph("html").add(g.html?g.html:{}), | ||
htmlPreprocessor(j.getRules(),function(a,b){h+=b,c+=1,e=a,f()},d)};f()},m=function(a){for(var b in a)if("_include"===b)if(a[b]instanceof Array)for(var d=0;d<a[b].length,c=a[b][d];d++)"function"==typeof c&&(c=c()),i.push(c),m(c);else"function"==typeof a[b]&&(a[b]=a[b]()),i.push(a[b]),m(a[b]);else"object"==typeof a[b]&&m(a[b])},n=0;n<a.length,c=a[n];n++)"function"==typeof c&&(c=c()),i.push(c),m(c);j.flush(),k(function(a){j.morph("html"),l(function(c){b(a||c?{error:{css:a,html:c}}:null,e,h)})})};e.processors.component.Component=function(){var a=function(a,b,c){G(a.mainstream,b,c)};return a.type="component",a};var H="\n",I={combineSelectors:!0,minify:!1,keepCamelCase:!1},J=f("../../helpers/TransformUppercase"),A=f("../../helpers/Extend"),K=function(a,b,c){var d="";c=c||[""," "];for(var e in a)if(0===e.indexOf("____raw"))d+=a[e][e]+H;else{var f=c[0]+e.replace(/~~(.+)~~/,"").replace(/^%.*?%/,"")+" {"+H,g="";for(var h in a[e]){var i=a[e][h];""===i&&(i='""'),h=h.replace(/~~(.+)~~/,"").replace(/^%.*?%/,""),g+=b&&b.keepCamelCase===!0?c[1]+h+": "+i+";"+H:c[1]+J(h)+": "+i+";"+H}""!=g&&(f+=g,f+=c[0]+"}"+H,d+=f)}return d},L=function(a,b){var c={};for(var d in a){var e=a[d];if("mainstream"==d)for(var f in e){c[f]={};for(var g in e[f])c[f][g]=e[f][g]}else if(d.indexOf("@media")>=0){c[d]={};for(var f in e){c[d][f]={};for(var g in e[f])c[d][f][g]=e[f][g]}}}return c},M=function(a,b){var c=[],d={},b=[].concat(b||[]);b.splice(0,0,""),b=b.join("|");for(var e in a){var f=a[e];for(var g in f)c.push({selector:e,prop:g,value:f[g],combine:b.indexOf("|"+g)<0&&e.indexOf("@font-face")<0})}for(var h=0;h<c.length;h++)if(c[h].combine===!0&&c[h].selector!==!1)for(var i=h+1;i<c.length;i++)c[h].prop===c[i].prop&&c[h].value===c[i].value&&(c[h].selector+=", "+c[i].selector.replace(/~~(.+)~~/,"").replace(/^%.*?%/,""),c[i].selector=!1);for(var h=0;h<c.length;h++)c[h].selector!==!1&&(d[c[h].selector]||(d[c[h].selector]={}),d[c[h].selector][c[h].prop]=c[h].value);return d},N=function(a){return a=a.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,""),a=a.replace(/ {2,}/g," "),a=a.replace(/ ([{:}]) /g,"$1"),a=a.replace(/([;,]) /g,"$1"),a=a.replace(/ !/g,"!")},O=function(a,b){if(b&&b.api&&b.api.getStorage().__defined){var c=b.api.getStorage().__defined;for(var d in c){var e=new RegExp("<%( )?"+d+"( )?%>","g");a="function"!=typeof c[d]?a.replace(e,c[d]):a.replace(e,c[d]())}}return a};e.processors.css.CSS=function(){var a=function(a,b,c){if(c=c||I,c.api&&c.api.jsonify){var d=L(a,c);return b(null,d),d}var e="";for(var g in a){var h=a[g];h=c.combineSelectors?M(h,c.preventCombining):h,e+="mainstream"===g?K(h,c):g+" {"+H+K(h,c,[" "," "])+"}"+H}return e=O(e,c),c&&c.api&&c.api.dynamicCSS&&(e=f("../html/helpers/TemplateEngine")(e,c)),c.minify?(e=N(e),b&&b(null,e)):b&&b(null,e),e};return a.type="css",a},e.processors.css.plugins.charset=function(){return function(a,b){"string"==typeof b?a.raw('@charset: "'+b+'";'):"object"==typeof b&&(b=b.charset.replace(/:/g,"").replace(/'/g,"").replace(/"/g,"").replace(/ /g,""),a.raw('@charset: "'+b+'";'))}},e.processors.css.plugins.document=function(){return function(a,b){if("object"==typeof b){var c="";if(c+="@"+b.vendor+"document",c+=" "+b.document,b.rules&&b.rules.length)for(var d=0;rule=b.rules[d];d++)a.handlecssrule(rule,c);else"undefined"!=typeof b.styles&&a.add(b.styles,c)}}},e.processors.css.plugins.keyframes=function(){return function(a,b){f(g+"/../CSS.js")(),f(g+"/../../../helpers/Prefixes");if("object"==typeof b){var c;if("undefined"!=typeof b.frames)c=b.frames;else if("undefined"!=typeof b.keyframes){c={};for(var d=0;rule=b.keyframes[d];d++)if("keyframe"===rule.type)for(var e=c[rule.values]={},h=0;declaration=rule.declarations[h];h++)"declaration"===declaration.type&&(e[declaration.property]=declaration.value)}if(a.jsonify){var i={};i.keyframes={name:b.name,frames:c},a.add(i)}else{var j=f(g+"/../../../../")();j.add(c).compile(function(c,d){var e="@keyframes "+b.name+" {\n";e+=d,e+="}",e=e+"\n"+e.replace("@keyframes","@-webkit-keyframes"),a.raw(e)},{combineSelectors:!1})}}}},e.processors.css.plugins.media=function(){return function(a,b){var c=f(g+"/../CSS.js")();if("object"==typeof b){for(var d="@media "+b.media+" {\n",e={},h={},i=0;rule=b.rules[i];i++){var j,k;if(rule.selectors&&(j=e[rule.selectors.toString()]={},k=h[rule.selectors.toString()]={},"rule"===rule.type))for(var l=0;declaration=rule.declarations[l];l++)"declaration"===declaration.type&&(j[declaration.property]=declaration.value,k[declaration.property]=declaration.value)}d+=c({mainstream:e}),d+="}",a.jsonify?a.add(h,"@media "+b.media):a.raw(d)}}},e.processors.css.plugins.namespace=function(){return function(a,b){"string"==typeof b?a.raw('@namespace: "'+b+'";'):"object"==typeof b&&(b=b.namespace.replace(/: /g,"").replace(/'/g,"").replace(/"/g,"").replace(/ /g,"").replace(/:h/g,"h"),a.raw('@namespace: "'+b+'";'))}},e.processors.css.plugins.page=function(){return function(a,b){if("object"==typeof b){var c="";c+=b.selectors.length>0?"@page "+b.selectors.join(", ")+" {\n":"@page {\n";for(var d=0;declaration=b.declarations[d];d++)"declaration"==declaration.type&&(c+=" "+declaration.property+": "+declaration.value+";\n");c+="}",a.raw(c)}}},e.processors.css.plugins.supports=function(){return function(a,b){var c=f(g+"/../CSS.js")();if("object"==typeof b){for(var d="@supports "+b.supports+" {\n",e={},h=0;rule=b.rules[h];h++){var i=e[rule.selectors.toString()]={};if("rule"===rule.type)for(var j=0;declaration=rule.declarations[j];j++)"declaration"===declaration.type&&(i[declaration.property]=declaration.value)}d+=c({mainstream:e}),d+="}",a.raw(d)}}};var P=null,H="\n",I={},Q=f("js-beautify").html,R=f("../../helpers/TransformUppercase"),S={},T=function(a){var b="";for(var c in P)if(c==a)for(var d=P[c].length,e=0;d>e;e++)b+=V("",P[c][e]);return b},U=function(a,b){return b&&b.keepCamelCase===!0?a:R(a,b)},V=function(a,b){var c="",d="",e="",g=f("./helpers/PropAnalyzer")(a);if(a=g.tag,""!=g.attrs&&(d+=" "+g.attrs),"string"==typeof b||null===b)return W(a,d,b);var h=function(a){""!=e&&(e+=H),e+=a},i=function(a){var b=[];for(var c in a)b.push(c.replace(/^\$/,"")+":"+a[c]);b.length>0&&(/data-absurd-event/g.test(d)?d.replace(/data-absurd-event="(.*)"/,'data-absurd-event="$1,'+b.join(",")+'"'):d+=' data-absurd-event="'+b.join(",")+'"')};for(var j in b){var k=b[j];if(/^\$/.test(j))i(b);else switch(j){case"_attrs":for(var l in k)d+="function"==typeof k[l]?" "+U(l,S)+'="'+k[l]()+'"':" "+U(l,S)+'="'+k[l]+'"';break;case"_":h(k);break;case"_tpl":if("string"==typeof k)h(T(k));else if(k instanceof Array){for(var m="",n=0;tpl=k[n];n++)m+=T(tpl),n<k.length-1&&(m+=H);h(m)}break;case"_include":var m="",p=function(a){"function"==typeof a&&(a=a()),a.css&&a.html&&(a=a.html),m+=V("",a)};if(k instanceof Array)for(var n=0;n<k.length,o=k[n];n++)p(o);else"object"==typeof k&&p(k);h(m);break;default:switch(typeof k){case"string":h(V(j,k));break;case"object":if(k&&k.length&&k.length>0){for(var m="",n=0;v=k[n];n++)m+=V("","function"==typeof v?v():v),n<k.length-1&&(m+=H);h(V(j,m))}else h(V(j,k));break;case"function":h(V(j,k()))}}}return c+=""!=a?W(a,d,e):e},W=function(a,b,c){var d="";return""==a&&""==b&&""!=c?c:(a=""==a?"div":a,d+=null!==c?"<"+U(a,S)+b+">"+H+c+H+"</"+U(a,S)+">":"<"+U(a,S)+b+"/>")},X=function(a){return a=f("./helpers/TemplateEngine")(a.replace(/[\r\t\n]/g,""),S),S.minify?a:Q(a,{indent_size:S.indentSize||4})};return e.processors.html.HTML=function(){var a=function(a,b,c){P=a,b=b||function(){},c=S=c||I;var d=X(T("mainstream"));return b(null,d),d};return a.type="html",a},e.processors.html.helpers.PropAnalyzer=function(a){var b={tag:"",attrs:""},d=(a.length,""),e=!1,f=[],g="",h=!1,i="",j=!1;if(/(#|\.|\[|\])/gi.test(a)===!1)return{tag:a,attrs:""};for(var k=0;k<a.length,c=a[k];k++)"["!==c||j?j?"]"!=c?i+=c:(j=!1,k-=1):"."!==c||e?e?"."!=c&&"#"!=c&&"["!=c&&"]"!=c?d+=c:(f.push(d),e=!1,d="",k-=1):"#"!==c||h?h?"."!=c&&"#"!=c&&"["!=c&&"]"!=c?g+=c:(h=!1,k-=1):"."!=c&&"#"!=c&&"["!=c&&"]"!=c&&(b.tag+=c):h=!0:e=!0:j=!0;""!=d&&f.push(d);for(var l="",k=0;cls=f[k];k++)l+=""===l?cls:" "+cls;return b.attrs+=""!=l?'class="'+l+'"':"",""!=g&&(b.attrs+=(""!=b.attrs?" ":"")+'id="'+g+'"'),""===b.tag&&""!=b.attrs&&(b.tag="div"),""!=i&&(b.attrs+=(""!=b.attrs?" ":"")+i),b},e.processors.html.helpers.TemplateEngine=function(a,b){for(var c,d=/<%(.+?)%>/g,e=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,f="with(obj) { var r=[];\n",g=0,h=function(a,b){return f+=b?a.match(e)?a+"\n":"r.push("+a+");\n":""!=a?'r.push("'+a.replace(/"/g,'\\"')+'");\n':"",h};match=d.exec(a);)h(a.slice(g,match.index))(match[1],!0),g=match.index+match[0].length;h(a.substr(g,a.length-g)),f=(f+'return r.join(""); }').replace(/[\r\t\n]/g," ");try{c=new Function("obj",f).apply(b,[b])}catch(i){console.error("'"+i.message+"'"," in \n\nCode:\n",f,"\n")}return c},z()}(window); |
@@ -1,2 +0,2 @@ | ||
/* version: 0.3.4, born: 28-3-2015 15:40 */ | ||
/* version: 0.3.6, born: 21-1-2016 17:38 */ | ||
var Organic = (function(w){ | ||
@@ -3,0 +3,0 @@ var o = { |
@@ -1,2 +0,2 @@ | ||
var Organic=function(){var a={helpers:{},lib:{atoms:{},molecules:{}}},b=function(b){if("./helpers/extend"==b)return a.helpers.extend;if("/helpers/snippets"==b||"../../helpers/snippets"==b)return a.helpers.snippets;if("/lib/atoms/atoms"==b||"../../lib/atoms/atoms"==b||"../atoms/atoms.js"==b)return a.lib.atoms.atoms;if("../../helpers/units"==b)return a.helpers.units;if("../../helpers/args"==b)return a.helpers.args;if("path"==b)return{basename:function(a){return a.split("/").pop()}};var c=b.split("/");return function d(a){var b=c.shift().replace(".js","");return a[b]?0==c.length?a[b]:d(a[b]):void 0}(a)},c="",d=function(b,c,e){"undefined"==typeof b&&(b=[]),"undefined"==typeof c&&(c=a.lib),"undefined"==typeof e&&(e="lib/");for(var f in c)"function"==typeof c[f]?b.push(e+f+".js"):d(b,c[f],e+f+"/");return b};a.helpers.args=function(a){return a=a.toString().replace(/\/ /g,"/").split("/")},a.helpers.extend=function(){for(var a=function(a,b){for(var c in b)hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b=arguments[0],c=1;c<arguments.length;c++)b=a(b,arguments[c]);return b},a.helpers.snippets=function(){return{pos:"position","pos:s":"position:static","pos:a":"position:absolute","pos:r":"position:relative","pos:f":"position:fixed","t:a":"top:auto",rig:"right","r:a":"right:auto",bot:"bottom",lef:"left","l:a":"left:auto",zin:"z-index","z:a":"z-index:auto",fl:"float","fl:n":"float:none","fl:l":"float:left","fl:r":"float:right",cl:"clear","cl:n":"clear:none","cl:l":"clear:left","cl:r":"clear:right","cl:b":"clear:both",dis:"display","d:n":"display:none","d:b":"display:block","d:i":"display:inline","d:ib":"display:inline-block","d:li":"display:list-item","d:ri":"display:run-in","d:cp":"display:compact","d:tb":"display:table","d:itb":"display:inline-table","d:tbcp":"display:table-caption","d:tbcl":"display:table-column","d:tbclg":"display:table-column-group","d:tbhg":"display:table-header-group","d:tbfg":"display:table-footer-group","d:tbr":"display:table-row","d:tbrg":"display:table-row-group","d:tbc":"display:table-cell","d:rb":"display:ruby","d:rbb":"display:ruby-base","d:rbbg":"display:ruby-base-group","d:rbt":"display:ruby-text","d:rbtg":"display:ruby-text-group",vis:"visibility","v:v":"visibility:visible","v:h":"visibility:hidden","v:c":"visibility:collapse",ov:"overflow","ov:v":"overflow:visible","ov:h":"overflow:hidden","ov:s":"overflow:scroll","ov:a":"overflow:auto",ovx:"overflow-x","ovx:v":"overflow-x:visible","ovx:h":"overflow-x:hidden","ovx:s":"overflow-x:scroll","ovx:a":"overflow-x:auto",ovy:"overflow-y","ovy:v":"overflow-y:visible","ovy:h":"overflow-y:hidden","ovy:s":"overflow-y:scroll","ovy:a":"overflow-y:auto",ovs:"overflow-style","ovs:a":"overflow-style:auto","ovs:s":"overflow-style:scrollbar","ovs:p":"overflow-style:panner","ovs:m":"overflow-style:move","ovs:mq":"overflow-style:marquee",zoo:"zoom:1",cp:"clip","cp:a":"clip:auto","cp:r":"clip:rect()",rz:"resize","rz:n":"resize:none","rz:b":"resize:both","rz:h":"resize:horizontal","rz:v":"resize:vertical",cur:"cursor","cur:a":"cursor:auto","cur:d":"cursor:default","cur:c":"cursor:crosshair","cur:ha":"cursor:hand","cur:he":"cursor:help","cur:m":"cursor:move","cur:p":"cursor:pointer","cur:t":"cursor:text",mar:"margin","m:au":"margin:0 auto",mt:"margin-top","mt:a":"margin-top:auto",mr:"margin-right","mr:a":"margin-right:auto",mb:"margin-bottom","mb:a":"margin-bottom:auto",ml:"margin-left","ml:a":"margin-left:auto",pad:"padding",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",bxz:"box-sizing","bxz:cb":"box-sizing:content-box","bxz:bb":"box-sizing:border-box",bxsh:"box-shadow","bxsh:n":"box-shadow:none","bxsh+":"box-shadow:0 0 0 #000",wid:"width","w:a":"width:auto",hei:"height","h:a":"height:auto",maw:"max-width","maw:n":"max-width:none",mah:"max-height","mah:n":"max-height:none",miw:"min-width",mih:"min-height",fon:"font","fon+":"font:1em Arial, sans-serif",fw:"font-weight","fw:n":"font-weight:normal","fw:b":"font-weight:bold","fw:br":"font-weight:bolder","fw:lr":"font-weight:lighter",fs:"font-style","fs:n":"font-style:normal","fs:i":"font-style:italic","fs:o":"font-style:oblique",fv:"font-variant","fv:n":"font-variant:normal","fv:sc":"font-variant:small-caps",fz:"font-size",fza:"font-size-adjust","fza:n":"font-size-adjust:none",ff:"font-family","ff:s":"font-family:serif","ff:ss":"font-family:sans-serif","ff:c":"font-family:cursive","ff:f":"font-family:fantasy","ff:m":"font-family:monospace",fef:"font-effect","fef:n":"font-effect:none","fef:eg":"font-effect:engrave","fef:eb":"font-effect:emboss","fef:o":"font-effect:outline",fem:"font-emphasize",femp:"font-emphasize-position","femp:b":"font-emphasize-position:before","femp:a":"font-emphasize-position:after",fems:"font-emphasize-style","fems:n":"font-emphasize-style:none","fems:ac":"font-emphasize-style:accent","fems:dt":"font-emphasize-style:dot","fems:c":"font-emphasize-style:circle","fems:ds":"font-emphasize-style:disc",fsm:"font-smooth","fsm:au":"font-smooth:auto","fsm:n":"font-smooth:never","fsm:al":"font-smooth:always",fst:"font-stretch","fst:n":"font-stretch:normal","fst:uc":"font-stretch:ultra-condensed","fst:ec":"font-stretch:extra-condensed","fst:c":"font-stretch:condensed","fst:sc":"font-stretch:semi-condensed","fst:se":"font-stretch:semi-expanded","fst:e":"font-stretch:expanded","fst:ee":"font-stretch:extra-expanded","fst:ue":"font-stretch:ultra-expanded",va:"vertical-align","va:sup":"vertical-align:super","va:t":"vertical-align:top","va:tt":"vertical-align:text-top","va:m":"vertical-align:middle","va:bl":"vertical-align:baseline","va:b":"vertical-align:bottom","va:tb":"vertical-align:text-bottom","va:sub":"vertical-align:sub",ta:"text-align","ta:le":"text-align:left","ta:c":"text-align:center","ta:r":"text-align:right","ta:j":"text-align:justify",tal:"text-align-last","tal:a":"text-align-last:auto","tal:l":"text-align-last:left","tal:c":"text-align-last:center","tal:r":"text-align-last:right",ted:"text-decoration","ted:n":"text-decoration:none","ted:u":"text-decoration:underline","ted:o":"text-decoration:overline","ted:l":"text-decoration:line-through",te:"text-emphasis","te:n":"text-emphasis:none","te:ac":"text-emphasis:accent","te:dt":"text-emphasis:dot","te:c":"text-emphasis:circle","te:ds":"text-emphasis:disc","te:b":"text-emphasis:before","te:a":"text-emphasis:after",teh:"text-height","teh:a":"text-height:auto","teh:f":"text-height:font-size","teh:t":"text-height:text-size","teh:m":"text-height:max-size",ti:"text-indent","ti:-":"text-indent:-9999px",tj:"text-justify","tj:a":"text-justify:auto","tj:iw":"text-justify:inter-word","tj:ii":"text-justify:inter-ideograph","tj:ic":"text-justify:inter-cluster","tj:d":"text-justify:distribute","tj:k":"text-justify:kashida","tj:t":"text-justify:tibetan",tol:"text-outline","tol+":"text-outline:0 0 #000","tol:n":"text-outline:none",tt:"text-transform","tt:n":"text-transform:none","tt:c":"text-transform:capitalize","tt:u":"text-transform:uppercase","tt:l":"text-transform:lowercase",tw:"text-wrap","tw:n":"text-wrap:normal","tw:no":"text-wrap:none","tw:u":"text-wrap:unrestricted","tw:s":"text-wrap:suppress",tsh:"text-shadow","tsh+":"text-shadow:0 0 0 #000","tsh:n":"text-shadow:none",lh:"line-height",lts:"letter-spacing",whs:"white-space","whs:n":"white-space:normal","whs:p":"white-space:pre","whs:nw":"white-space:nowrap","whs:pw":"white-space:pre-wrap","whs:pl":"white-space:pre-line",whsc:"white-space-collapse","whsc:n":"white-space-collapse:normal","whsc:k":"white-space-collapse:keep-all","whsc:l":"white-space-collapse:loose","whsc:bs":"white-space-collapse:break-strict","whsc:ba":"white-space-collapse:break-all",wob:"word-break","wob:n":"word-break:normal","wob:k":"word-break:keep-all","wob:l":"word-break:loose","wob:bs":"word-break:break-strict","wob:ba":"word-break:break-all",wos:"word-spacing",wow:"word-wrap","wow:nm":"word-wrap:normal","wow:n":"word-wrap:none","wow:u":"word-wrap:unrestricted","wow:s":"word-wrap:suppress",bg:"background","bg+":"background:#fff url() 0 0 no-repeat","bg:n":"background:none",bgc:"background-color:#fff","bgc:t":"background-color:transparent",bgi:"background-image:url()","bgi:n":"background-image:none",bgr:"background-repeat","bgr:r":"background-repeat:repeat","bgr:n":"background-repeat:no-repeat","bgr:x":"background-repeat:repeat-x","bgr:y":"background-repeat:repeat-y",bga:"background-attachment","bga:f":"background-attachment:fixed","bga:s":"background-attachment:scroll",bgp:"background-position:0 0",bgpx:"background-position-x",bgpy:"background-position-y",bgbk:"background-break","bgbk:bb":"background-break:bounding-box","bgbk:eb":"background-break:each-box","bgbk:c":"background-break:continuous",bgcp:"background-clip","bgcp:bb":"background-clip:border-box","bgcp:pb":"background-clip:padding-box","bgcp:cb":"background-clip:content-box","bgcp:nc":"background-clip:no-clip",bgo:"background-origin","bgo:pb":"background-origin:padding-box","bgo:bb":"background-origin:border-box","bgo:cb":"background-origin:content-box",bgz:"background-size","bgz:a":"background-size:auto","bgz:ct":"background-size:contain","bgz:cv":"background-size:cover",col:"color:#000",op:"opacity",hsl:"hsl(359,100%,100%)",hsla:"hsla(359,100%,100%,0.5)",rgb:"rgb(255,255,255)",rgba:"rgba(255,255,255,0.5)",ct:"content","ct:n":"content:normal","ct:oq":"content:open-quote","ct:noq":"content:no-open-quote","ct:cq":"content:close-quote","ct:ncq":"content:no-close-quote","ct:a":"content:attr()","ct:c":"content:counter()","ct:cs":"content:counters()",quo:"quotes","q:n":"quotes:none","q:ru":"quotes:'\x00AB' '\x00BB' 'E' 'C'","q:en":"quotes:'C' 'D' '8' '9'",coi:"counter-increment",cor:"counter-reset",out:"outline","o:n":"outline:none",oo:"outline-offset",ow:"outline-width",os:"outline-style",oc:"outline-color:#000","oc:i":"outline-color:invert",tbl:"table-layout","tbl:a":"table-layout:auto","tbl:f":"table-layout:fixed",cps:"caption-side","cps:t":"caption-side:top","cps:b":"caption-side:bottom",ec:"empty-cells","ec:s":"empty-cells:show","ec:h":"empty-cells:hide",bd:"border","bd+":"border:1px solid #000","bd:n":"border:none",bdbk:"border-break","bdbk:c":"border-break:close",bdcl:"border-collapse","bdcl:c":"border-collapse:collapse","bdcl:s":"border-collapse:separate",bdc:"border-color:#000",bdti:"border-top-image:url()","bdti:n":"border-top-image:none",bdri:"border-right-image:url()","bdri:n":"border-right-image:none",bdbi:"border-bottom-image:url()","bdbi:n":"border-bottom-image:none",bdli:"border-left-image:url()","bdli:n":"border-left-image:none",bdci:"border-corner-image:url()","bdci:n":"border-corner-image:none","bdci:c":"border-corner-image:continue",bdtli:"border-top-left-image:url()","bdtli:n":"border-top-left-image:none","bdtli:c":"border-top-left-image:continue",bdtri:"border-top-right-image:url()","bdtri:n":"border-top-right-image:none","bdtri:c":"border-top-right-image:continue",bdbri:"border-bottom-right-image:url()","bdbri:n":"border-bottom-right-image:none","bdbri:c":"border-bottom-right-image:continue",bdbli:"border-bottom-left-image:url()","bdbli:n":"border-bottom-left-image:none","bdbli:c":"border-bottom-left-image:continue",bdf:"border-fit","bdf:c":"border-fit:clip","bdf:r":"border-fit:repeat","bdf:sc":"border-fit:scale","bdf:st":"border-fit:stretch","bdf:ow":"border-fit:overwrite","bdf:of":"border-fit:overflow","bdf:sp":"border-fit:space",bdlt:"border-length","bdlt:a":"border-length:auto",bdsp:"border-spacing",bds:"border-style","bds:n":"border-style:none","bds:h":"border-style:hidden","bds:dt":"border-style:dotted","bds:ds":"border-style:dashed","bds:s":"border-style:solid","bds:db":"border-style:double","bds:dd":"border-style:dot-dash","bds:ddd":"border-style:dot-dot-dash","bds:w":"border-style:wave","bds:g":"border-style:groove","bds:r":"border-style:ridge","bds:i":"border-style:inset","bds:o":"border-style:outset",bdw:"border-width",bdt:"border-top","bdt+":"border-top:1px solid #000","bdt:n":"border-top:none",bdtw:"border-top-width",bdts:"border-top-style","bdts:n":"border-top-style:none",bdtc:"border-top-color:#000",bdr:"border-right","bdr+":"border-right:1px solid #000","bdr:n":"border-right:none",bdrw:"border-right-width",bdrs:"border-right-style","bdrs:n":"border-right-style:none",bdrc:"border-right-color:#000",bdb:"border-bottom","bdb+":"border-bottom:1px solid #000","bdb:n":"border-bottom:none",bdbw:"border-bottom-width",bdbs:"border-bottom-style","bdbs:n":"border-bottom-style:none",bdbc:"border-bottom-color:#000",bdl:"border-left","bdl+":"border-left:1px solid #000","bdl:n":"border-left:none",bdlw:"border-left-width",bdls:"border-left-style","bdls:n":"border-left-style:none",bdlc:"border-left-color:#000",bdrsa:"border-radius",bdtrrs:"border-top-right-radius",bdtlrs:"border-top-left-radius",bdbrrs:"border-bottom-right-radius",bdblrs:"border-bottom-left-radius",lis:"list-style","lis:n":"list-style:none",lisp:"list-style-position","lisp:i":"list-style-position:inside","lisp:o":"list-style-position:outside",list:"list-style-type","list:n":"list-style-type:none","list:d":"list-style-type:disc","list:c":"list-style-type:circle","list:s":"list-style-type:square","list:dc":"list-style-type:decimal","list:dclz":"list-style-type:decimal-leading-zero","list:lr":"list-style-type:lower-roman","list:ur":"list-style-type:upper-roman",lisi:"list-style-image","lisi:n":"list-style-image:none",pgbb:"page-break-before","pgbb:au":"page-break-before:auto","pgbb:al":"page-break-before:always","pgbb:l":"page-break-before:left","pgbb:r":"page-break-before:right",pgbi:"page-break-inside","pgbi:au":"page-break-inside:auto","pgbi:av":"page-break-inside:avoid",pgba:"page-break-after","pgba:au":"page-break-after:auto","pgba:al":"page-break-after:always","pgba:l":"page-break-after:left","pgba:r":"page-break-after:right",orp:"orphans",widows:"widows",ipt:"!important",ffa:"@font-family {<br> font-family:;<br> src:url();<br>}","ffa+":"@font-family {<br> font-family: 'FontName';<br> src: url('FileName.eot');<br> src: url('FileName.eot?#iefix') format('embedded-opentype'),<br> url('FileName.woff') format('woff'),<br> url('FileName.ttf') format('truetype'),<br> url('FileName.svg#FontName') format('svg');<br> font-style: normal;<br> font-weight: normal;<br>}",imp:"@import url()",mp:"@media print {}","bg:ie":"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='x.png',sizingMethod='crop')","op:ie":"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)","op:ms":"-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'",trf:"transform","trf:r":"transform:rotate(90deg)","trf:sc":"transform:scale(x,y)","trf:scx":"transform:scaleX(x)","trf:scy":"transform:scaleY(y)","trf:skx":"transform:skewX(90deg)","trf:sky":"transform:skewY(90deg)","trf:t":"transform:translate(x,y)","trf:tx":"transform:translateX(x)","trf:ty":"transform:translateY(y)",trs:"transition",trsde:"transition-delay",trsdu:"transition-duration",trsp:"transition-property",trstf:"transition-timing-function",ani:"animation",ann:"animation-name",adu:"animation-duration",atf:"animation-timing-function",ade:"animation-delay",aic:"animation-iteration-count",adi:"animation-direction",aps:"animation-play-state",key:"@keyframes {}",ms:"@media screen and () {}","in":"inherit",tra:"transparent",beh:"behavior:url()",cha:"@charset''",ac:" :active{}","ac:a":"&:active{}",af:" :after{}","af:a":"&:after{}",be:" :before{}","be:a":"&:before{}",ch:" :checked{}","ch:a":"&:checked{}",dsa:" :disabled{}<i>[da]</i>","dsa:a":"&:disabled{}<i>[da:a]</i>",en:" :enabled{}","en:a":"&:enabled{}",fc:" :first-child{}","fc:a":"&:first-child{}",fle:" :first-letter{}","fle:a":"&:first-letter{}",fli:" :first-line{}","fli:a":"&:first-line{}",foc:" :focus{}","foc:a":"&:focus{}",ho:" :hover{}","ho:a":"&:hover{}",ln:" :lang(){}","ln:a":"&:lang(){}",lc:" :last-child{}","lc:a":"&:last-child{}",nc:" :nth-child(){}","nc:a":"&:nth-child(){}",vit:" :visited{}","vit:a":"&:visited{}",tgt:" :target{}","tgt:a":"&:target{}",fot:" :first-of-type{}","fot:a":"&:first-of-type{}",lot:" :last-of-type{}","lot:a":"&:last-of-type{}",not:" :nth-of-type(){}","not:a":"&:nth-of-type(){}",ext:"@extend",inc:"@include",mix:"@mixin",ieh:"ie-hex-str()"}},a.helpers.units=function(a,b){return a.toString().match(/[%|in|cm|mm|em|ex|pt|pc|px|deg|ms|s]/)?a:a+(b||"%")};var e=(b("./helpers/extend"),b("fs"),b("path")),f=function(a){return d()};a.index={absurd:null,init:function(a){"undefined"!=typeof a&&(this.absurd=a);for(var d=f(c+"/lib/"),g=this,h=0;h<d.length;h++){var i=e.basename(d[h]);!function(a){var c=b(a);g.absurd.plugin(i.replace(".js",""),function(a,b){return c(b)})}(d[h])}var j=b(c+"/helpers/snippets")();for(var k in j)k=k.split(":"),function(a){g.absurd.plugin(a,function(b,c,d){d===!1&&(d="");var e,f={};return(e=j[a+":"+c])?(e=e.split(":"),f[d+e[0]]=e[1]||""):(e=j[a])&&(f[d+e]=c),f})}(k.shift());return this}},a.lib.atoms.atoms=function(a){var b=function(a,b){return a=a.replace(/( )?:( )?/,":").split(":"),b=b||{},b[a[0]]=a[1]||"",b},c=function(a){for(var c={},d=0;d<a.length;d++)b(a[d],c);return c};return"string"==typeof a?c(a.replace(/( )?\/( )?/g,"/").split("/")):"object"==typeof a?a instanceof Array?c(a):a:void 0},a.lib.molecules.animate=function(a){var b={};switch(b["-wmso-animation-name"]="",b["-wmso-animation-duration"]="1s",name="","string"==typeof a?b["-wmso-animation-name"]=a:"object"==typeof a&&(a instanceof Array?1===a.length?b["-wmso-animation-name"]=a[0]:2===a.length?b={keyframes:{name:a[0],frames:a[1]}}:a=b={}:(b["-wmso-animation-name"]=a.name,a.duration?b["-wmso-animation-duration"]=a.duration:"",a.fillMode?b["-wmso-animation-fill-mode"]=a.fillMode:"",a.timingFunction?b["-wmso-animation-timing-function"]=a.timingFunction:"",a.iterationCount?b["-wmso-animation-iteration-count"]=a.iterationCount:"",a.delay?b["-wmso-animation-delay"]=a.delay:"",a.direction?b["-wmso-animation-direction"]=a.direction:"",a.playState?b["-wmso-animation-play-state"]=a.playState:"",a.frames&&(b.keyframes={name:a.name,frames:a.frames}))),b["-wmso-animation-name"]){case"blink":b.keyframes={name:"blink",frames:{"0%, 100%":{transparent:0},"50%":{transparent:1}}};break;case"bounce":b.keyframes={name:"bounce",frames:{"0%, 20%, 50%, 80%, 100%":{"-wmso-transform":"translateY(0)"},"40%":{"-wmso-transform":"translateY(-30px)"},"60%":{"-wmso-transform":"translateY(-15px)"}}};break;case"flash":b.keyframes={name:"flash",frames:{"0%, 50%, 100%":{opacity:"1"},"25%, 75%":{opacity:"0"}}};break;case"pulse":b.keyframes={name:"pulse",frames:{"0%":{"-wmso-transform":"scale(1)"},"50%":{"-wmso-transform":"scale(1.1)"},"100%":{"-wmso-transform":"scale(1)"}}};break;case"shake":b.keyframes={name:"shake",frames:{"0%, 100%":{"-wmso-transform":"translateX(0)"},"10%, 30%, 50%, 70%, 90%":{"-wmso-transform":"translateX(-10px)"},"20%, 40%, 60%, 80%":{"-wmso-transform":"translateX(10px)"}}};break;case"swing":b.keyframes={name:"swing",frames:{"20%":{"-wmso-transform":"rotate(15deg)"},"40%":{"-wmso-transform":"rotate(-10deg)"},"60%":{"-wmso-transform":"rotate(5deg)"},"80%":{"-wmso-transform":"rotate(-5deg)"},"100%":{"-wmso-transform":"rotate(0deg)"}}};break;case"tada":b.keyframes={name:"tada",frames:{"0%":{"-wmso-transform":"scale(1)"},"10%, 20%":{"-wmso-transform":"scale(0.9) rotate(-3deg)"},"30%, 50%, 70%, 90%":{"-wmso-transform":"scale(1.1) rotate(3deg)"},"40%, 60%, 80%":{"-wmso-transform":"scale(1.1) rotate(-3deg)"},"100%":{"-wmso-transform":"scale(1) rotate(0)"}}};break;case"wobble":b.keyframes={name:"wobble",frames:{"0%":{"-wmso-transform":"translateX(0%)"},"15%":{"-wmso-transform":"translateX(-25%) rotate(-5deg)"},"30%":{"-wmso-transform":"translateX(20%) rotate(3deg)"},"45%":{"-wmso-transform":"translateX(-15%) rotate(-3deg)"},"60%":{"-wmso-transform":"translateX(10%) rotate(2deg)"},"75%":{"-wmso-transform":"translateX(-5%) rotate(-1deg)"},"100%":{"-wmso-transform":"translateX(0%)"}}};break;case"bounceIn":b.keyframes={name:"bounceIn",frames:{"0%":{opacity:"0","-wmso-transform":"scale(.3)"},"50%":{opacity:"1","-wmso-transform":"scale(1.05)"},"70%":{"-wmso-transform":"scale(.9)"},"100%":{"-wmso-transform":"scale(1)"}}};break;case"bounceInDown":b.keyframes={name:"bounceInDown",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-2000px)"},"60%":{opacity:"1","-wmso-transform":"translateY(30px)"},"80%":{"-wmso-transform":"translateY(-10px)"},"100%":{"-wmso-transform":"translateY(0)"}}};break;case"bounceInLeft":b.keyframes={name:"bounceInLeft",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-2000px)"},"60%":{opacity:"1","-wmso-transform":"translateX(30px)"},"80%":{"-wmso-transform":"translateX(-10px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"bounceInRight":b.keyframes={name:"bounceInRight",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(2000px)"},"60%":{opacity:"1","-wmso-transform":"translateX(-30px)"},"80%":{"-wmso-transform":"translateX(10px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"bounceInUp":b.keyframes={name:"bounceInUp",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(2000px)"},"60%":{opacity:"1","-wmso-transform":"translateY(-30px)"},"80%":{"-wmso-transform":"translateY(10px)"},"100%":{"-wmso-transform":"translateY(0)"}}};break;case"bounceOut":b.keyframes={name:"bounceOut",frames:{"0%":{"-wmso-transform":"scale(1)"},"25%":{"-wmso-transform":"scale(.95)"},"50%":{opacity:"1","-wmso-transform":"scale(1.1)"},"100%":{opacity:"0","-wmso-transform":"scale(.3)"}}};break;case"bounceOutDown":b.keyframes={name:"bounceOutDown",frames:{"0%":{"-wmso-transform":"translateY(0)"},"20%":{opacity:"1","-wmso-transform":"translateY(-20px)"},"100%":{opacity:"0","-wmso-transform":"translateY(2000px)"}}};break;case"bounceOutLeft":b.keyframes={name:"bounceOutLeft",frames:{"0%":{"-wmso-transform":"translateX(0)"},"20%":{opacity:"1","-wmso-transform":"translateX(20px)"},"100%":{opacity:"0","-wmso-transform":"translateX(-2000px)"}}};break;case"bounceOutRight":b.keyframes={name:"bounceOutRight",frames:{"0%":{"-wmso-transform":"translateX(0)"},"20%":{opacity:"1","-wmso-transform":"translateX(-20px)"},"100%":{opacity:"0","-wmso-transform":"translateX(2000px)"}}};break;case"bounceOutUp":b.keyframes={name:"bounceOutUp",frames:{"0%":{"-wmso-transform":"translateY(0)"},"20%":{opacity:"1","-wmso-transform":"translateY(20px)"},"100%":{opacity:"0","-wmso-transform":"translateY(-2000px)"}}};break;case"fadeIn":b.keyframes={name:"fadeIn",frames:{"0%":{opacity:"0"},"100%":{opacity:"1"}}};break;case"fadeInDown":b.keyframes={name:"fadeInDown",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-20px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeInDownBig":b.keyframes={name:"fadeInDownBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-2000px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeInLeft":b.keyframes={name:"fadeInLeft",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-20px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInLeftBig":b.keyframes={name:"fadeInLeftBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-2000px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInRight":b.keyframes={name:"fadeInRight",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(20px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInRightBig":b.keyframes={name:"fadeInRightBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(2000px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInUp":b.keyframes={name:"fadeInUp",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(20px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeInUpBig":b.keyframes={name:"fadeInUpBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(2000px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeOut":b.keyframes={name:"fadeOut",frames:{"0%":{opacity:"1"},"100%":{opacity:"0"}}};break;case"fadeOutDown":b.keyframes={name:"fadeOutDown",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(20px)"}}};break;case"fadeOutDownBig":b.keyframes={name:"fadeOutDownBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(2000px)"}}};break;case"fadeOutLeft":b.keyframes={name:"fadeOutLeft",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(-20px)"}}};break;case"fadeOutLeftBig":b.keyframes={name:"fadeOutLeftBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(-2000px)"}}};break;case"fadeOutRight":b.keyframes={name:"fadeOutRight",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(20px)"}}};break;case"fadeOutRightBig":b.keyframes={name:"fadeOutRightBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(2000px)"}}};break;case"fadeOutUp":b.keyframes={name:"fadeOutUp",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(-20px)"}}};break;case"fadeOutUpBig":b.keyframes={name:"fadeOutUpBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(-2000px)"}}};break;case"flip":b.keyframes={name:"flip",frames:{"0%":{"-wmso-transform":"perspective(400px) translateZ(0) rotateY(0) scale(1)","animation-timing-function":"ease-out"},"40%":{"-wmso-transform":"perspective(400px) translateZ(150px) rotateY(170deg) scale(1)","animation-timing-function":"ease-out"},"50%":{"-wmso-transform":"perspective(400px) translateZ(150px) rotateY(190deg) scale(1)","animation-timing-function":"ease-in"},"80%":{"-wmso-transform":"perspective(400px) translateZ(0) rotateY(360deg) scale(.95)","animation-timing-function":"ease-in"},"100%":{"-wmso-transform":"perspective(400px) translateZ(0) rotateY(360deg) scale(1)","animation-timing-function":"ease-in"}}};break;case"flipInX":b.keyframes={name:"flipInX",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateX(90deg)",opacity:"0"},"40%":{"-wmso-transform":"perspective(400px) rotateX(-10deg)"},"70%":{"-wmso-transform":"perspective(400px) rotateX(10deg)"},"100%":{"-wmso-transform":"perspective(400px) rotateX(0deg)",opacity:"1"}}};break;case"flipInY":b.keyframes={name:"flipInY",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateY(90deg)",opacity:"0"},"40%":{"-wmso-transform":"perspective(400px) rotateY(-10deg)"},"70%":{"-wmso-transform":"perspective(400px) rotateY(10deg)"},"100%":{"-wmso-transform":"perspective(400px) rotateY(0deg)",opacity:"1"}}};break;case"flipOutX":b.keyframes={name:"flipOutX",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateX(0deg)",opacity:"1"},"100%":{"-wmso-transform":"perspective(400px) rotateX(90deg)",opacity:"0"}}};break;case"flipOutY":b.keyframes={name:"flipOutY",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateY(0deg)",opacity:"1"},"100%":{"-wmso-transform":"perspective(400px) rotateY(90deg)",opacity:"0"}}};break;case"lightSpeedIn":b.keyframes={name:"lightSpeedIn",frames:{"0%":{"-wmso-transform":"translateX(100%) skewX(-30deg)",opacity:"0"},"60%":{"-wmso-transform":"translateX(-20%) skewX(30deg)",opacity:"1"},"80%":{"-wmso-transform":"translateX(0%) skewX(-15deg)",opacity:"1"},"100%":{"-wmso-transform":"translateX(0%) skewX(0deg)",opacity:"1"}}};break;case"lightSpeedOut":b.keyframes={name:"lightSpeedOut",frames:{"0%":{"-wmso-transform":"translateX(0%) skewX(0deg)",opacity:"1"},"100%":{"-wmso-transform":"translateX(100%) skewX(-30deg)",opacity:"0"}}};break;case"rotateIn":b.keyframes={name:"rotateIn",frames:{"0%":{"transform-origin":"center center","-wmso-transform":"rotate(-200deg)",opacity:"0"},"100%":{"transform-origin":"center center","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInDownLeft":b.keyframes={name:"rotateInDownLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInDownRight":b.keyframes={name:"rotateInDownRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(90deg)",opacity:"0"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInUpLeft":b.keyframes={name:"rotateInUpLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(90deg)",opacity:"0"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInUpRight":b.keyframes={name:"rotateInUpRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateOut":b.keyframes={name:"rotateOut",frames:{"0%":{"transform-origin":"center center","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"center center","-wmso-transform":"rotate(200deg)",opacity:"0"}}};break;case"rotateOutDownLeft":b.keyframes={name:"rotateOutDownLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(90deg)",opacity:"0"}}};break;case"rotateOutDownRight":b.keyframes={name:"rotateOutDownRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"}}};break;case"rotateOutUpLeft":b.keyframes={name:"rotateOutUpLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"}}};break;case"rotateOutUpRight":b.keyframes={name:"rotateOutUpRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(90deg)",opacity:"0"}}};break;case"slideInDown":b.keyframes={name:"slideInDown",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-2000px)"},"100%":{"-wmso-transform":"translateY(0)"}}};break;case"slideInLeft":b.keyframes={name:"slideInLeft",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-2000px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"slideInRight":b.keyframes={name:"slideInRight",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(2000px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"slideOutLeft":b.keyframes={name:"slideOutLeft",frames:{"0%":{"-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(-2000px)"}}};break;case"slideOutRight":b.keyframes={name:"slideOutRight",frames:{"0%":{"-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(2000px)"}}};break;case"slideOutUp":b.keyframes={name:"slideOutUp",frames:{"0%":{"-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(-2000px)"}}};break;case"hinge":b.keyframes={name:"hinge",frames:{"0%":{"-wmso-transform":"rotate(0)","transform-origin":"top left","animation-timing-function":"ease-in-out"},"20%, 60%":{"-wmso-transform":"rotate(80deg)","transform-origin":"top left","animation-timing-function":"ease-in-out"},"40%":{"-wmso-transform":"rotate(60deg)","transform-origin":"top left","animation-timing-function":"ease-in-out"},"80%":{"-wmso-transform":"rotate(60deg) translateY(0)",opacity:"1","transform-origin":"top left","animation-timing-function":"ease-in-out"},"100%":{"-wmso-transform":"translateY(700px)",opacity:"0"}}};break;case"rollIn":b.keyframes={name:"rollIn",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-100%) rotate(-120deg)"},"100%":{opacity:"1","-wmso-transform":"translateX(0px) rotate(0deg)"}}}; | ||
break;case"rollOut":b.keyframes={name:"rollOut",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0px) rotate(0deg)"},"100%":{opacity:"0","-wmso-transform":"translateX(100%) rotate(120deg)"}}}}return b},a.lib.molecules.blur=function(a){return{"-wms-filter":"blur("+a+"px)"}},a.lib.molecules.brightness=function(a){return{"-wms-filter":"brightness("+a+")"}},a.lib.molecules.calc=function(a){var c=b("../../helpers/args")(a),d={};return d.LhProperty="0",d["~~1~~"+c[0]]="-webkit-calc("+c[1]+")",d["~~2~~"+c[0]]="-moz-calc("+c[1]+")",d["~~3~~"+c[0]]="calc("+c[1]+")",d},a.lib.molecules.cf=function(a){var b={},c={content:'" "',display:"table",clear:"both"};switch(a){case"before":b["&:before"]=c;break;case"after":b["&:after"]=c;break;default:b["&:before"]=c,b["&:after"]=c}return b},a.lib.molecules.contrast=function(a){return{"-wms-filter":"contrast("+a+"%)"}},a.lib.molecules.dropshadow=function(a){return{"-wms-filter":"drop-shadow("+a+")"}};var g=function(a){if(a=a.toString().replace("#",""),3==a.length){for(var b="",c=0;c<a.length;c++)b+=a[c]+a[c];a=b}return"#FF"+a.toUpperCase()};return a.lib.molecules.gradient=function(a){var c=b("../../helpers/args")(a);switch(typeof a){case"string":var d=c[c.length-1];d=d.indexOf("deg")>0?parseInt(c.pop().replace("deg","")):0;for(var e=c.length,f=Math.floor(100/(e-1)).toFixed(2),h=[],i=d>=45&&135>=d||d>=225&&315>=d?1:0,j=g(0===i?c[c.length-1]:c[0]),k=g(0===i?c[0]:c[c.length-1]),l=0;e>l;l++)h.push(c[l].indexOf("%")>0?c[l]:c[l]+" "+l*f+"%");return h=d+"deg, "+h.join(", "),[{background:"-webkit-linear-gradient("+h+")"},{"~~1~~background":"-moz-linear-gradient("+h+")"},{"~~2~~background":"-ms-linear-gradient("+h+")"},{"~~3~~background":"-o-linear-gradient("+h+")"},{"~~4~~background":"linear-gradient("+h+")"},{filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='"+j+"', endColorstr='"+k+"',GradientType="+i+")"},{MsFilter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='"+j+"',endColorstr='"+k+"',GradientType="+i+")"}]}return{}},a.lib.molecules.grid=function(a){var c=b("../../helpers/args")(a);if(2==c.length){var d={cf:"both"};return d[c[1]]={fl:"l","-mw-bxz":"bb",wid:(100/parseInt(c[0])).toFixed(2)+"%"},d}return{}},a.lib.molecules.invert=function(a){return{"-wms-filter":"invert("+a+"%)"}},a.lib.molecules.moveto=function(a){var c=b("../../helpers/units"),d=b("../../helpers/args")(a),e=c(d[0]&&""!=d[0]?d[0]:0,"px"),f=c(d[1]&&""!=d[1]?d[1]:0,"px"),g=c(d[2]&&""!=d[2]?d[2]:0,"px");return 2==d.length?{"-ws-trf":">translate("+e+","+f+")"}:3==d.length?{"-ws-trf":">translate3d("+e+","+f+","+g+")"}:void 0},a.lib.molecules.rotateto=function(a){var c=b("../../helpers/units"),d=b("../../helpers/args")(a);return 1==d.length?{"-ws-trf":">rotate("+c(d[0],"deg")+")"}:void 0},a.lib.molecules.saturate=function(a){return{"-wms-filter":"saturate("+a+"deg)"}},a.lib.molecules.scaleto=function(a){var c=b("../../helpers/args")(a),d=c[0]&&""!=c[0]?c[0]:0,e=c[1]&&""!=c[1]?c[1]:0;return 2==c.length?{"-ws-trf":">scale("+d+","+e+")"}:void 0},a.lib.molecules.sepia=function(a){return{"-wms-filter":"sepia("+a+"%)"}},a.lib.molecules.size=function(a){var c=b("../../helpers/units"),d=b("../../helpers/args")(a),e={};return 2==d.length?(""!=d[0]&&(e.width=c(d[0])),""!=d[1]&&(e.height=c(d[1])),e):{width:c(d[0]),height:c(d[0])}},a.lib.molecules.transparent=function(a){var c=(b("../../helpers/args")(a),{});return a=parseFloat(a),c["-s-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity="+100*a+")",c.filter="alpha(opacity="+100*a+")",c["-m-opacity"]=a,c.opacity=a,c.KhtmlOpacity=a,c},a.lib.molecules.trsform=function(a){return{"-wmso-transform":a}},a.index}(window); | ||
var Organic=function(a){var b={helpers:{},lib:{atoms:{},molecules:{}}},c=function(a){if("./helpers/extend"==a)return b.helpers.extend;if("/helpers/snippets"==a||"../../helpers/snippets"==a)return b.helpers.snippets;if("/lib/atoms/atoms"==a||"../../lib/atoms/atoms"==a||"../atoms/atoms.js"==a)return b.lib.atoms.atoms;if("../../helpers/units"==a)return b.helpers.units;if("../../helpers/args"==a)return b.helpers.args;if("path"==a)return{basename:function(a){return a.split("/").pop()}};var c=a.split("/");return function d(a){var b=c.shift().replace(".js","");return a[b]?0==c.length?a[b]:d(a[b]):void 0}(b)},d="",e=function(a,c,d){"undefined"==typeof a&&(a=[]),"undefined"==typeof c&&(c=b.lib),"undefined"==typeof d&&(d="lib/");for(var f in c)"function"==typeof c[f]?a.push(d+f+".js"):e(a,c[f],d+f+"/");return a};b.helpers.args=function(a){return a=a.toString().replace(/\/ /g,"/").split("/")},b.helpers.extend=function(){for(var a=function(a,b){for(var c in b)hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b=arguments[0],c=1;c<arguments.length;c++)b=a(b,arguments[c]);return b},b.helpers.snippets=function(){return{pos:"position","pos:s":"position:static","pos:a":"position:absolute","pos:r":"position:relative","pos:f":"position:fixed","t:a":"top:auto",rig:"right","r:a":"right:auto",bot:"bottom",lef:"left","l:a":"left:auto",zin:"z-index","z:a":"z-index:auto",fl:"float","fl:n":"float:none","fl:l":"float:left","fl:r":"float:right",cl:"clear","cl:n":"clear:none","cl:l":"clear:left","cl:r":"clear:right","cl:b":"clear:both",dis:"display","d:n":"display:none","d:b":"display:block","d:i":"display:inline","d:ib":"display:inline-block","d:li":"display:list-item","d:ri":"display:run-in","d:cp":"display:compact","d:tb":"display:table","d:itb":"display:inline-table","d:tbcp":"display:table-caption","d:tbcl":"display:table-column","d:tbclg":"display:table-column-group","d:tbhg":"display:table-header-group","d:tbfg":"display:table-footer-group","d:tbr":"display:table-row","d:tbrg":"display:table-row-group","d:tbc":"display:table-cell","d:rb":"display:ruby","d:rbb":"display:ruby-base","d:rbbg":"display:ruby-base-group","d:rbt":"display:ruby-text","d:rbtg":"display:ruby-text-group",vis:"visibility","v:v":"visibility:visible","v:h":"visibility:hidden","v:c":"visibility:collapse",ov:"overflow","ov:v":"overflow:visible","ov:h":"overflow:hidden","ov:s":"overflow:scroll","ov:a":"overflow:auto",ovx:"overflow-x","ovx:v":"overflow-x:visible","ovx:h":"overflow-x:hidden","ovx:s":"overflow-x:scroll","ovx:a":"overflow-x:auto",ovy:"overflow-y","ovy:v":"overflow-y:visible","ovy:h":"overflow-y:hidden","ovy:s":"overflow-y:scroll","ovy:a":"overflow-y:auto",ovs:"overflow-style","ovs:a":"overflow-style:auto","ovs:s":"overflow-style:scrollbar","ovs:p":"overflow-style:panner","ovs:m":"overflow-style:move","ovs:mq":"overflow-style:marquee",zoo:"zoom:1",cp:"clip","cp:a":"clip:auto","cp:r":"clip:rect()",rz:"resize","rz:n":"resize:none","rz:b":"resize:both","rz:h":"resize:horizontal","rz:v":"resize:vertical",cur:"cursor","cur:a":"cursor:auto","cur:d":"cursor:default","cur:c":"cursor:crosshair","cur:ha":"cursor:hand","cur:he":"cursor:help","cur:m":"cursor:move","cur:p":"cursor:pointer","cur:t":"cursor:text",mar:"margin","m:au":"margin:0 auto",mt:"margin-top","mt:a":"margin-top:auto",mr:"margin-right","mr:a":"margin-right:auto",mb:"margin-bottom","mb:a":"margin-bottom:auto",ml:"margin-left","ml:a":"margin-left:auto",pad:"padding",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",bxz:"box-sizing","bxz:cb":"box-sizing:content-box","bxz:bb":"box-sizing:border-box",bxsh:"box-shadow","bxsh:n":"box-shadow:none","bxsh+":"box-shadow:0 0 0 #000",wid:"width","w:a":"width:auto",hei:"height","h:a":"height:auto",maw:"max-width","maw:n":"max-width:none",mah:"max-height","mah:n":"max-height:none",miw:"min-width",mih:"min-height",fon:"font","fon+":"font:1em Arial, sans-serif",fw:"font-weight","fw:n":"font-weight:normal","fw:b":"font-weight:bold","fw:br":"font-weight:bolder","fw:lr":"font-weight:lighter",fs:"font-style","fs:n":"font-style:normal","fs:i":"font-style:italic","fs:o":"font-style:oblique",fv:"font-variant","fv:n":"font-variant:normal","fv:sc":"font-variant:small-caps",fz:"font-size",fza:"font-size-adjust","fza:n":"font-size-adjust:none",ff:"font-family","ff:s":"font-family:serif","ff:ss":"font-family:sans-serif","ff:c":"font-family:cursive","ff:f":"font-family:fantasy","ff:m":"font-family:monospace",fef:"font-effect","fef:n":"font-effect:none","fef:eg":"font-effect:engrave","fef:eb":"font-effect:emboss","fef:o":"font-effect:outline",fem:"font-emphasize",femp:"font-emphasize-position","femp:b":"font-emphasize-position:before","femp:a":"font-emphasize-position:after",fems:"font-emphasize-style","fems:n":"font-emphasize-style:none","fems:ac":"font-emphasize-style:accent","fems:dt":"font-emphasize-style:dot","fems:c":"font-emphasize-style:circle","fems:ds":"font-emphasize-style:disc",fsm:"font-smooth","fsm:au":"font-smooth:auto","fsm:n":"font-smooth:never","fsm:al":"font-smooth:always",fst:"font-stretch","fst:n":"font-stretch:normal","fst:uc":"font-stretch:ultra-condensed","fst:ec":"font-stretch:extra-condensed","fst:c":"font-stretch:condensed","fst:sc":"font-stretch:semi-condensed","fst:se":"font-stretch:semi-expanded","fst:e":"font-stretch:expanded","fst:ee":"font-stretch:extra-expanded","fst:ue":"font-stretch:ultra-expanded",va:"vertical-align","va:sup":"vertical-align:super","va:t":"vertical-align:top","va:tt":"vertical-align:text-top","va:m":"vertical-align:middle","va:bl":"vertical-align:baseline","va:b":"vertical-align:bottom","va:tb":"vertical-align:text-bottom","va:sub":"vertical-align:sub",ta:"text-align","ta:le":"text-align:left","ta:c":"text-align:center","ta:r":"text-align:right","ta:j":"text-align:justify",tal:"text-align-last","tal:a":"text-align-last:auto","tal:l":"text-align-last:left","tal:c":"text-align-last:center","tal:r":"text-align-last:right",ted:"text-decoration","ted:n":"text-decoration:none","ted:u":"text-decoration:underline","ted:o":"text-decoration:overline","ted:l":"text-decoration:line-through",te:"text-emphasis","te:n":"text-emphasis:none","te:ac":"text-emphasis:accent","te:dt":"text-emphasis:dot","te:c":"text-emphasis:circle","te:ds":"text-emphasis:disc","te:b":"text-emphasis:before","te:a":"text-emphasis:after",teh:"text-height","teh:a":"text-height:auto","teh:f":"text-height:font-size","teh:t":"text-height:text-size","teh:m":"text-height:max-size",ti:"text-indent","ti:-":"text-indent:-9999px",tj:"text-justify","tj:a":"text-justify:auto","tj:iw":"text-justify:inter-word","tj:ii":"text-justify:inter-ideograph","tj:ic":"text-justify:inter-cluster","tj:d":"text-justify:distribute","tj:k":"text-justify:kashida","tj:t":"text-justify:tibetan",tol:"text-outline","tol+":"text-outline:0 0 #000","tol:n":"text-outline:none",tt:"text-transform","tt:n":"text-transform:none","tt:c":"text-transform:capitalize","tt:u":"text-transform:uppercase","tt:l":"text-transform:lowercase",tw:"text-wrap","tw:n":"text-wrap:normal","tw:no":"text-wrap:none","tw:u":"text-wrap:unrestricted","tw:s":"text-wrap:suppress",tsh:"text-shadow","tsh+":"text-shadow:0 0 0 #000","tsh:n":"text-shadow:none",lh:"line-height",lts:"letter-spacing",whs:"white-space","whs:n":"white-space:normal","whs:p":"white-space:pre","whs:nw":"white-space:nowrap","whs:pw":"white-space:pre-wrap","whs:pl":"white-space:pre-line",whsc:"white-space-collapse","whsc:n":"white-space-collapse:normal","whsc:k":"white-space-collapse:keep-all","whsc:l":"white-space-collapse:loose","whsc:bs":"white-space-collapse:break-strict","whsc:ba":"white-space-collapse:break-all",wob:"word-break","wob:n":"word-break:normal","wob:k":"word-break:keep-all","wob:l":"word-break:loose","wob:bs":"word-break:break-strict","wob:ba":"word-break:break-all",wos:"word-spacing",wow:"word-wrap","wow:nm":"word-wrap:normal","wow:n":"word-wrap:none","wow:u":"word-wrap:unrestricted","wow:s":"word-wrap:suppress",bg:"background","bg+":"background:#fff url() 0 0 no-repeat","bg:n":"background:none",bgc:"background-color:#fff","bgc:t":"background-color:transparent",bgi:"background-image:url()","bgi:n":"background-image:none",bgr:"background-repeat","bgr:r":"background-repeat:repeat","bgr:n":"background-repeat:no-repeat","bgr:x":"background-repeat:repeat-x","bgr:y":"background-repeat:repeat-y",bga:"background-attachment","bga:f":"background-attachment:fixed","bga:s":"background-attachment:scroll",bgp:"background-position:0 0",bgpx:"background-position-x",bgpy:"background-position-y",bgbk:"background-break","bgbk:bb":"background-break:bounding-box","bgbk:eb":"background-break:each-box","bgbk:c":"background-break:continuous",bgcp:"background-clip","bgcp:bb":"background-clip:border-box","bgcp:pb":"background-clip:padding-box","bgcp:cb":"background-clip:content-box","bgcp:nc":"background-clip:no-clip",bgo:"background-origin","bgo:pb":"background-origin:padding-box","bgo:bb":"background-origin:border-box","bgo:cb":"background-origin:content-box",bgz:"background-size","bgz:a":"background-size:auto","bgz:ct":"background-size:contain","bgz:cv":"background-size:cover",col:"color:#000",op:"opacity",hsl:"hsl(359,100%,100%)",hsla:"hsla(359,100%,100%,0.5)",rgb:"rgb(255,255,255)",rgba:"rgba(255,255,255,0.5)",ct:"content","ct:n":"content:normal","ct:oq":"content:open-quote","ct:noq":"content:no-open-quote","ct:cq":"content:close-quote","ct:ncq":"content:no-close-quote","ct:a":"content:attr()","ct:c":"content:counter()","ct:cs":"content:counters()",quo:"quotes","q:n":"quotes:none","q:ru":"quotes:'\x00AB' '\x00BB' 'E' 'C'","q:en":"quotes:'C' 'D' '8' '9'",coi:"counter-increment",cor:"counter-reset",out:"outline","o:n":"outline:none",oo:"outline-offset",ow:"outline-width",os:"outline-style",oc:"outline-color:#000","oc:i":"outline-color:invert",tbl:"table-layout","tbl:a":"table-layout:auto","tbl:f":"table-layout:fixed",cps:"caption-side","cps:t":"caption-side:top","cps:b":"caption-side:bottom",ec:"empty-cells","ec:s":"empty-cells:show","ec:h":"empty-cells:hide",bd:"border","bd+":"border:1px solid #000","bd:n":"border:none",bdbk:"border-break","bdbk:c":"border-break:close",bdcl:"border-collapse","bdcl:c":"border-collapse:collapse","bdcl:s":"border-collapse:separate",bdc:"border-color:#000",bdti:"border-top-image:url()","bdti:n":"border-top-image:none",bdri:"border-right-image:url()","bdri:n":"border-right-image:none",bdbi:"border-bottom-image:url()","bdbi:n":"border-bottom-image:none",bdli:"border-left-image:url()","bdli:n":"border-left-image:none",bdci:"border-corner-image:url()","bdci:n":"border-corner-image:none","bdci:c":"border-corner-image:continue",bdtli:"border-top-left-image:url()","bdtli:n":"border-top-left-image:none","bdtli:c":"border-top-left-image:continue",bdtri:"border-top-right-image:url()","bdtri:n":"border-top-right-image:none","bdtri:c":"border-top-right-image:continue",bdbri:"border-bottom-right-image:url()","bdbri:n":"border-bottom-right-image:none","bdbri:c":"border-bottom-right-image:continue",bdbli:"border-bottom-left-image:url()","bdbli:n":"border-bottom-left-image:none","bdbli:c":"border-bottom-left-image:continue",bdf:"border-fit","bdf:c":"border-fit:clip","bdf:r":"border-fit:repeat","bdf:sc":"border-fit:scale","bdf:st":"border-fit:stretch","bdf:ow":"border-fit:overwrite","bdf:of":"border-fit:overflow","bdf:sp":"border-fit:space",bdlt:"border-length","bdlt:a":"border-length:auto",bdsp:"border-spacing",bds:"border-style","bds:n":"border-style:none","bds:h":"border-style:hidden","bds:dt":"border-style:dotted","bds:ds":"border-style:dashed","bds:s":"border-style:solid","bds:db":"border-style:double","bds:dd":"border-style:dot-dash","bds:ddd":"border-style:dot-dot-dash","bds:w":"border-style:wave","bds:g":"border-style:groove","bds:r":"border-style:ridge","bds:i":"border-style:inset","bds:o":"border-style:outset",bdw:"border-width",bdt:"border-top","bdt+":"border-top:1px solid #000","bdt:n":"border-top:none",bdtw:"border-top-width",bdts:"border-top-style","bdts:n":"border-top-style:none",bdtc:"border-top-color:#000",bdr:"border-right","bdr+":"border-right:1px solid #000","bdr:n":"border-right:none",bdrw:"border-right-width",bdrs:"border-right-style","bdrs:n":"border-right-style:none",bdrc:"border-right-color:#000",bdb:"border-bottom","bdb+":"border-bottom:1px solid #000","bdb:n":"border-bottom:none",bdbw:"border-bottom-width",bdbs:"border-bottom-style","bdbs:n":"border-bottom-style:none",bdbc:"border-bottom-color:#000",bdl:"border-left","bdl+":"border-left:1px solid #000","bdl:n":"border-left:none",bdlw:"border-left-width",bdls:"border-left-style","bdls:n":"border-left-style:none",bdlc:"border-left-color:#000",bdrsa:"border-radius",bdtrrs:"border-top-right-radius",bdtlrs:"border-top-left-radius",bdbrrs:"border-bottom-right-radius",bdblrs:"border-bottom-left-radius",lis:"list-style","lis:n":"list-style:none",lisp:"list-style-position","lisp:i":"list-style-position:inside","lisp:o":"list-style-position:outside",list:"list-style-type","list:n":"list-style-type:none","list:d":"list-style-type:disc","list:c":"list-style-type:circle","list:s":"list-style-type:square","list:dc":"list-style-type:decimal","list:dclz":"list-style-type:decimal-leading-zero","list:lr":"list-style-type:lower-roman","list:ur":"list-style-type:upper-roman",lisi:"list-style-image","lisi:n":"list-style-image:none",pgbb:"page-break-before","pgbb:au":"page-break-before:auto","pgbb:al":"page-break-before:always","pgbb:l":"page-break-before:left","pgbb:r":"page-break-before:right",pgbi:"page-break-inside","pgbi:au":"page-break-inside:auto","pgbi:av":"page-break-inside:avoid",pgba:"page-break-after","pgba:au":"page-break-after:auto","pgba:al":"page-break-after:always","pgba:l":"page-break-after:left","pgba:r":"page-break-after:right",orp:"orphans",widows:"widows",ipt:"!important",ffa:"@font-family {<br> font-family:;<br> src:url();<br>}","ffa+":"@font-family {<br> font-family: 'FontName';<br> src: url('FileName.eot');<br> src: url('FileName.eot?#iefix') format('embedded-opentype'),<br> url('FileName.woff') format('woff'),<br> url('FileName.ttf') format('truetype'),<br> url('FileName.svg#FontName') format('svg');<br> font-style: normal;<br> font-weight: normal;<br>}",imp:"@import url()",mp:"@media print {}","bg:ie":"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='x.png',sizingMethod='crop')","op:ie":"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)","op:ms":"-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'",trf:"transform","trf:r":"transform:rotate(90deg)","trf:sc":"transform:scale(x,y)","trf:scx":"transform:scaleX(x)","trf:scy":"transform:scaleY(y)","trf:skx":"transform:skewX(90deg)","trf:sky":"transform:skewY(90deg)","trf:t":"transform:translate(x,y)","trf:tx":"transform:translateX(x)","trf:ty":"transform:translateY(y)",trs:"transition",trsde:"transition-delay",trsdu:"transition-duration",trsp:"transition-property",trstf:"transition-timing-function",ani:"animation",ann:"animation-name",adu:"animation-duration",atf:"animation-timing-function",ade:"animation-delay",aic:"animation-iteration-count",adi:"animation-direction",aps:"animation-play-state",key:"@keyframes {}",ms:"@media screen and () {}","in":"inherit",tra:"transparent",beh:"behavior:url()",cha:"@charset''",ac:" :active{}","ac:a":"&:active{}",af:" :after{}","af:a":"&:after{}",be:" :before{}","be:a":"&:before{}",ch:" :checked{}","ch:a":"&:checked{}",dsa:" :disabled{}<i>[da]</i>","dsa:a":"&:disabled{}<i>[da:a]</i>",en:" :enabled{}","en:a":"&:enabled{}",fc:" :first-child{}","fc:a":"&:first-child{}",fle:" :first-letter{}","fle:a":"&:first-letter{}",fli:" :first-line{}","fli:a":"&:first-line{}",foc:" :focus{}","foc:a":"&:focus{}",ho:" :hover{}","ho:a":"&:hover{}",ln:" :lang(){}","ln:a":"&:lang(){}",lc:" :last-child{}","lc:a":"&:last-child{}",nc:" :nth-child(){}","nc:a":"&:nth-child(){}",vit:" :visited{}","vit:a":"&:visited{}",tgt:" :target{}","tgt:a":"&:target{}",fot:" :first-of-type{}","fot:a":"&:first-of-type{}",lot:" :last-of-type{}","lot:a":"&:last-of-type{}",not:" :nth-of-type(){}","not:a":"&:nth-of-type(){}",ext:"@extend",inc:"@include",mix:"@mixin",ieh:"ie-hex-str()"}},b.helpers.units=function(a,b){return a.toString().match(/[%|in|cm|mm|em|ex|pt|pc|px|deg|ms|s]/)?a:a+(b||"%")};var f=(c("./helpers/extend"),c("fs"),c("path")),g=function(a){return e()};b.index={absurd:null,init:function(a){"undefined"!=typeof a&&(this.absurd=a);for(var b=g(d+"/lib/"),e=this,h=0;h<b.length;h++){var i=f.basename(b[h]);!function(a){var b=c(a);e.absurd.plugin(i.replace(".js",""),function(a,c){return b(c)})}(b[h])}var j=c(d+"/helpers/snippets")();for(var k in j)k=k.split(":"),function(a){e.absurd.plugin(a,function(b,c,d){d===!1&&(d="");var e,f={};return(e=j[a+":"+c])?(e=e.split(":"),f[d+e[0]]=e[1]||""):(e=j[a])&&(f[d+e]=c),f})}(k.shift());return this}},b.lib.atoms.atoms=function(a){var b=function(a,b){return a=a.replace(/( )?:( )?/,":").split(":"),b=b||{},b[a[0]]=a[1]||"",b},c=function(a){for(var c={},d=0;d<a.length;d++)b(a[d],c);return c};return"string"==typeof a?c(a.replace(/( )?\/( )?/g,"/").split("/")):"object"==typeof a?a instanceof Array?c(a):a:void 0},b.lib.molecules.animate=function(a){var b={};switch(b["-wmso-animation-name"]="",b["-wmso-animation-duration"]="1s",name="","string"==typeof a?b["-wmso-animation-name"]=a:"object"==typeof a&&(a instanceof Array?1===a.length?b["-wmso-animation-name"]=a[0]:2===a.length?b={keyframes:{name:a[0],frames:a[1]}}:a=b={}:(b["-wmso-animation-name"]=a.name,a.duration?b["-wmso-animation-duration"]=a.duration:"",a.fillMode?b["-wmso-animation-fill-mode"]=a.fillMode:"",a.timingFunction?b["-wmso-animation-timing-function"]=a.timingFunction:"",a.iterationCount?b["-wmso-animation-iteration-count"]=a.iterationCount:"",a.delay?b["-wmso-animation-delay"]=a.delay:"",a.direction?b["-wmso-animation-direction"]=a.direction:"",a.playState?b["-wmso-animation-play-state"]=a.playState:"",a.frames&&(b.keyframes={name:a.name,frames:a.frames}))),b["-wmso-animation-name"]){case"blink":b.keyframes={name:"blink",frames:{"0%, 100%":{transparent:0},"50%":{transparent:1}}};break;case"bounce":b.keyframes={name:"bounce",frames:{"0%, 20%, 50%, 80%, 100%":{"-wmso-transform":"translateY(0)"},"40%":{"-wmso-transform":"translateY(-30px)"},"60%":{"-wmso-transform":"translateY(-15px)"}}};break;case"flash":b.keyframes={name:"flash",frames:{"0%, 50%, 100%":{opacity:"1"},"25%, 75%":{opacity:"0"}}};break;case"pulse":b.keyframes={name:"pulse",frames:{"0%":{"-wmso-transform":"scale(1)"},"50%":{"-wmso-transform":"scale(1.1)"},"100%":{"-wmso-transform":"scale(1)"}}};break;case"shake":b.keyframes={name:"shake",frames:{"0%, 100%":{"-wmso-transform":"translateX(0)"},"10%, 30%, 50%, 70%, 90%":{"-wmso-transform":"translateX(-10px)"},"20%, 40%, 60%, 80%":{"-wmso-transform":"translateX(10px)"}}};break;case"swing":b.keyframes={name:"swing",frames:{"20%":{"-wmso-transform":"rotate(15deg)"},"40%":{"-wmso-transform":"rotate(-10deg)"},"60%":{"-wmso-transform":"rotate(5deg)"},"80%":{"-wmso-transform":"rotate(-5deg)"},"100%":{"-wmso-transform":"rotate(0deg)"}}};break;case"tada":b.keyframes={name:"tada",frames:{"0%":{"-wmso-transform":"scale(1)"},"10%, 20%":{"-wmso-transform":"scale(0.9) rotate(-3deg)"},"30%, 50%, 70%, 90%":{"-wmso-transform":"scale(1.1) rotate(3deg)"},"40%, 60%, 80%":{"-wmso-transform":"scale(1.1) rotate(-3deg)"},"100%":{"-wmso-transform":"scale(1) rotate(0)"}}};break;case"wobble":b.keyframes={name:"wobble",frames:{"0%":{"-wmso-transform":"translateX(0%)"},"15%":{"-wmso-transform":"translateX(-25%) rotate(-5deg)"},"30%":{"-wmso-transform":"translateX(20%) rotate(3deg)"},"45%":{"-wmso-transform":"translateX(-15%) rotate(-3deg)"},"60%":{"-wmso-transform":"translateX(10%) rotate(2deg)"},"75%":{"-wmso-transform":"translateX(-5%) rotate(-1deg)"},"100%":{"-wmso-transform":"translateX(0%)"}}};break;case"bounceIn":b.keyframes={name:"bounceIn",frames:{"0%":{opacity:"0","-wmso-transform":"scale(.3)"},"50%":{opacity:"1","-wmso-transform":"scale(1.05)"},"70%":{"-wmso-transform":"scale(.9)"},"100%":{"-wmso-transform":"scale(1)"}}};break;case"bounceInDown":b.keyframes={name:"bounceInDown",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-2000px)"},"60%":{opacity:"1","-wmso-transform":"translateY(30px)"},"80%":{"-wmso-transform":"translateY(-10px)"},"100%":{"-wmso-transform":"translateY(0)"}}};break;case"bounceInLeft":b.keyframes={name:"bounceInLeft",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-2000px)"},"60%":{opacity:"1","-wmso-transform":"translateX(30px)"},"80%":{"-wmso-transform":"translateX(-10px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"bounceInRight":b.keyframes={name:"bounceInRight",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(2000px)"},"60%":{opacity:"1","-wmso-transform":"translateX(-30px)"},"80%":{"-wmso-transform":"translateX(10px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"bounceInUp":b.keyframes={name:"bounceInUp",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(2000px)"},"60%":{opacity:"1","-wmso-transform":"translateY(-30px)"},"80%":{"-wmso-transform":"translateY(10px)"},"100%":{"-wmso-transform":"translateY(0)"}}};break;case"bounceOut":b.keyframes={name:"bounceOut",frames:{"0%":{"-wmso-transform":"scale(1)"},"25%":{"-wmso-transform":"scale(.95)"},"50%":{opacity:"1","-wmso-transform":"scale(1.1)"},"100%":{opacity:"0","-wmso-transform":"scale(.3)"}}};break;case"bounceOutDown":b.keyframes={name:"bounceOutDown",frames:{"0%":{"-wmso-transform":"translateY(0)"},"20%":{opacity:"1","-wmso-transform":"translateY(-20px)"},"100%":{opacity:"0","-wmso-transform":"translateY(2000px)"}}};break;case"bounceOutLeft":b.keyframes={name:"bounceOutLeft",frames:{"0%":{"-wmso-transform":"translateX(0)"},"20%":{opacity:"1","-wmso-transform":"translateX(20px)"},"100%":{opacity:"0","-wmso-transform":"translateX(-2000px)"}}};break;case"bounceOutRight":b.keyframes={name:"bounceOutRight",frames:{"0%":{"-wmso-transform":"translateX(0)"},"20%":{opacity:"1","-wmso-transform":"translateX(-20px)"},"100%":{opacity:"0","-wmso-transform":"translateX(2000px)"}}};break;case"bounceOutUp":b.keyframes={name:"bounceOutUp",frames:{"0%":{"-wmso-transform":"translateY(0)"},"20%":{opacity:"1","-wmso-transform":"translateY(20px)"},"100%":{opacity:"0","-wmso-transform":"translateY(-2000px)"}}};break;case"fadeIn":b.keyframes={name:"fadeIn",frames:{"0%":{opacity:"0"},"100%":{opacity:"1"}}};break;case"fadeInDown":b.keyframes={name:"fadeInDown",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-20px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeInDownBig":b.keyframes={name:"fadeInDownBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-2000px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeInLeft":b.keyframes={name:"fadeInLeft",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-20px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInLeftBig":b.keyframes={name:"fadeInLeftBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-2000px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInRight":b.keyframes={name:"fadeInRight",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(20px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInRightBig":b.keyframes={name:"fadeInRightBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(2000px)"},"100%":{opacity:"1","-wmso-transform":"translateX(0)"}}};break;case"fadeInUp":b.keyframes={name:"fadeInUp",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(20px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeInUpBig":b.keyframes={name:"fadeInUpBig",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(2000px)"},"100%":{opacity:"1","-wmso-transform":"translateY(0)"}}};break;case"fadeOut":b.keyframes={name:"fadeOut",frames:{"0%":{opacity:"1"},"100%":{opacity:"0"}}};break;case"fadeOutDown":b.keyframes={name:"fadeOutDown",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(20px)"}}};break;case"fadeOutDownBig":b.keyframes={name:"fadeOutDownBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(2000px)"}}};break;case"fadeOutLeft":b.keyframes={name:"fadeOutLeft",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(-20px)"}}};break;case"fadeOutLeftBig":b.keyframes={name:"fadeOutLeftBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(-2000px)"}}};break;case"fadeOutRight":b.keyframes={name:"fadeOutRight",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(20px)"}}};break;case"fadeOutRightBig":b.keyframes={name:"fadeOutRightBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(2000px)"}}};break;case"fadeOutUp":b.keyframes={name:"fadeOutUp",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(-20px)"}}};break;case"fadeOutUpBig":b.keyframes={name:"fadeOutUpBig",frames:{"0%":{opacity:"1","-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(-2000px)"}}};break;case"flip":b.keyframes={name:"flip",frames:{"0%":{"-wmso-transform":"perspective(400px) translateZ(0) rotateY(0) scale(1)","animation-timing-function":"ease-out"},"40%":{"-wmso-transform":"perspective(400px) translateZ(150px) rotateY(170deg) scale(1)","animation-timing-function":"ease-out"},"50%":{"-wmso-transform":"perspective(400px) translateZ(150px) rotateY(190deg) scale(1)","animation-timing-function":"ease-in"},"80%":{"-wmso-transform":"perspective(400px) translateZ(0) rotateY(360deg) scale(.95)","animation-timing-function":"ease-in"},"100%":{"-wmso-transform":"perspective(400px) translateZ(0) rotateY(360deg) scale(1)","animation-timing-function":"ease-in"}}};break;case"flipInX":b.keyframes={name:"flipInX",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateX(90deg)",opacity:"0"},"40%":{"-wmso-transform":"perspective(400px) rotateX(-10deg)"},"70%":{"-wmso-transform":"perspective(400px) rotateX(10deg)"},"100%":{"-wmso-transform":"perspective(400px) rotateX(0deg)",opacity:"1"}}};break;case"flipInY":b.keyframes={name:"flipInY",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateY(90deg)",opacity:"0"},"40%":{"-wmso-transform":"perspective(400px) rotateY(-10deg)"},"70%":{"-wmso-transform":"perspective(400px) rotateY(10deg)"},"100%":{"-wmso-transform":"perspective(400px) rotateY(0deg)",opacity:"1"}}};break;case"flipOutX":b.keyframes={name:"flipOutX",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateX(0deg)",opacity:"1"},"100%":{"-wmso-transform":"perspective(400px) rotateX(90deg)",opacity:"0"}}};break;case"flipOutY":b.keyframes={name:"flipOutY",frames:{"0%":{"-wmso-transform":"perspective(400px) rotateY(0deg)",opacity:"1"},"100%":{"-wmso-transform":"perspective(400px) rotateY(90deg)",opacity:"0"}}};break;case"lightSpeedIn":b.keyframes={name:"lightSpeedIn",frames:{"0%":{"-wmso-transform":"translateX(100%) skewX(-30deg)",opacity:"0"},"60%":{"-wmso-transform":"translateX(-20%) skewX(30deg)",opacity:"1"},"80%":{"-wmso-transform":"translateX(0%) skewX(-15deg)",opacity:"1"},"100%":{"-wmso-transform":"translateX(0%) skewX(0deg)",opacity:"1"}}};break;case"lightSpeedOut":b.keyframes={name:"lightSpeedOut",frames:{"0%":{"-wmso-transform":"translateX(0%) skewX(0deg)",opacity:"1"},"100%":{"-wmso-transform":"translateX(100%) skewX(-30deg)",opacity:"0"}}};break;case"rotateIn":b.keyframes={name:"rotateIn",frames:{"0%":{"transform-origin":"center center","-wmso-transform":"rotate(-200deg)",opacity:"0"},"100%":{"transform-origin":"center center","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInDownLeft":b.keyframes={name:"rotateInDownLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInDownRight":b.keyframes={name:"rotateInDownRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(90deg)",opacity:"0"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInUpLeft":b.keyframes={name:"rotateInUpLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(90deg)",opacity:"0"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateInUpRight":b.keyframes={name:"rotateInUpRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"}}};break;case"rotateOut":b.keyframes={name:"rotateOut",frames:{"0%":{"transform-origin":"center center","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"center center","-wmso-transform":"rotate(200deg)",opacity:"0"}}};break;case"rotateOutDownLeft":b.keyframes={name:"rotateOutDownLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(90deg)",opacity:"0"}}};break;case"rotateOutDownRight":b.keyframes={name:"rotateOutDownRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"}}};break;case"rotateOutUpLeft":b.keyframes={name:"rotateOutUpLeft",frames:{"0%":{"transform-origin":"left bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"left bottom","-wmso-transform":"rotate(-90deg)",opacity:"0"}}};break;case"rotateOutUpRight":b.keyframes={name:"rotateOutUpRight",frames:{"0%":{"transform-origin":"right bottom","-wmso-transform":"rotate(0)",opacity:"1"},"100%":{"transform-origin":"right bottom","-wmso-transform":"rotate(90deg)",opacity:"0"}}};break;case"slideInDown":b.keyframes={name:"slideInDown",frames:{"0%":{opacity:"0","-wmso-transform":"translateY(-2000px)"},"100%":{"-wmso-transform":"translateY(0)"}}};break;case"slideInLeft":b.keyframes={name:"slideInLeft",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-2000px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"slideInRight":b.keyframes={name:"slideInRight",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(2000px)"},"100%":{"-wmso-transform":"translateX(0)"}}};break;case"slideOutLeft":b.keyframes={name:"slideOutLeft",frames:{"0%":{"-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(-2000px)"}}};break;case"slideOutRight":b.keyframes={name:"slideOutRight",frames:{"0%":{"-wmso-transform":"translateX(0)"},"100%":{opacity:"0","-wmso-transform":"translateX(2000px)"}}};break;case"slideOutUp":b.keyframes={name:"slideOutUp",frames:{"0%":{"-wmso-transform":"translateY(0)"},"100%":{opacity:"0","-wmso-transform":"translateY(-2000px)"}}};break;case"hinge":b.keyframes={name:"hinge",frames:{"0%":{"-wmso-transform":"rotate(0)","transform-origin":"top left","animation-timing-function":"ease-in-out"},"20%, 60%":{"-wmso-transform":"rotate(80deg)","transform-origin":"top left","animation-timing-function":"ease-in-out"},"40%":{"-wmso-transform":"rotate(60deg)","transform-origin":"top left","animation-timing-function":"ease-in-out"},"80%":{"-wmso-transform":"rotate(60deg) translateY(0)",opacity:"1","transform-origin":"top left","animation-timing-function":"ease-in-out"},"100%":{"-wmso-transform":"translateY(700px)",opacity:"0"}}};break;case"rollIn":b.keyframes={name:"rollIn",frames:{"0%":{opacity:"0","-wmso-transform":"translateX(-100%) rotate(-120deg)" | ||
},"100%":{opacity:"1","-wmso-transform":"translateX(0px) rotate(0deg)"}}};break;case"rollOut":b.keyframes={name:"rollOut",frames:{"0%":{opacity:"1","-wmso-transform":"translateX(0px) rotate(0deg)"},"100%":{opacity:"0","-wmso-transform":"translateX(100%) rotate(120deg)"}}}}return b},b.lib.molecules.blur=function(a){return{"-wms-filter":"blur("+a+"px)"}},b.lib.molecules.brightness=function(a){return{"-wms-filter":"brightness("+a+")"}},b.lib.molecules.calc=function(a){var b=c("../../helpers/args")(a),d={};return d.LhProperty="0",d["~~1~~"+b[0]]="-webkit-calc("+b[1]+")",d["~~2~~"+b[0]]="-moz-calc("+b[1]+")",d["~~3~~"+b[0]]="calc("+b[1]+")",d},b.lib.molecules.cf=function(a){var b={},c={content:'" "',display:"table",clear:"both"};switch(a){case"before":b["&:before"]=c;break;case"after":b["&:after"]=c;break;default:b["&:before"]=c,b["&:after"]=c}return b},b.lib.molecules.contrast=function(a){return{"-wms-filter":"contrast("+a+"%)"}},b.lib.molecules.dropshadow=function(a){return{"-wms-filter":"drop-shadow("+a+")"}};var h=function(a){if(a=a.toString().replace("#",""),3==a.length){for(var b="",c=0;c<a.length;c++)b+=a[c]+a[c];a=b}return"#FF"+a.toUpperCase()};return b.lib.molecules.gradient=function(a){var b=c("../../helpers/args")(a);switch(typeof a){case"string":var d=b[b.length-1];d=d.indexOf("deg")>0?parseInt(b.pop().replace("deg","")):0;for(var e=b.length,f=Math.floor(100/(e-1)).toFixed(2),g=[],i=d>=45&&135>=d||d>=225&&315>=d?1:0,j=h(0===i?b[b.length-1]:b[0]),k=h(0===i?b[0]:b[b.length-1]),l=0;e>l;l++)b[l].indexOf("%")>0?g.push(b[l]):g.push(b[l]+" "+l*f+"%");return g=d+"deg, "+g.join(", "),[{background:"-webkit-linear-gradient("+g+")"},{"~~1~~background":"-moz-linear-gradient("+g+")"},{"~~2~~background":"-ms-linear-gradient("+g+")"},{"~~3~~background":"-o-linear-gradient("+g+")"},{"~~4~~background":"linear-gradient("+g+")"},{filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='"+j+"', endColorstr='"+k+"',GradientType="+i+")"},{MsFilter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='"+j+"',endColorstr='"+k+"',GradientType="+i+")"}]}return{}},b.lib.molecules.grid=function(a){var b=c("../../helpers/args")(a);if(2==b.length){var d={cf:"both"};return d[b[1]]={fl:"l","-mw-bxz":"bb",wid:(100/parseInt(b[0])).toFixed(2)+"%"},d}return{}},b.lib.molecules.invert=function(a){return{"-wms-filter":"invert("+a+"%)"}},b.lib.molecules.moveto=function(a){var b=c("../../helpers/units"),d=c("../../helpers/args")(a),e=b(d[0]&&""!=d[0]?d[0]:0,"px"),f=b(d[1]&&""!=d[1]?d[1]:0,"px"),g=b(d[2]&&""!=d[2]?d[2]:0,"px");return 2==d.length?{"-ws-trf":">translate("+e+","+f+")"}:3==d.length?{"-ws-trf":">translate3d("+e+","+f+","+g+")"}:void 0},b.lib.molecules.rotateto=function(a){var b=c("../../helpers/units"),d=c("../../helpers/args")(a);return 1==d.length?{"-ws-trf":">rotate("+b(d[0],"deg")+")"}:void 0},b.lib.molecules.saturate=function(a){return{"-wms-filter":"saturate("+a+"deg)"}},b.lib.molecules.scaleto=function(a){var b=c("../../helpers/args")(a),d=b[0]&&""!=b[0]?b[0]:0,e=b[1]&&""!=b[1]?b[1]:0;return 2==b.length?{"-ws-trf":">scale("+d+","+e+")"}:void 0},b.lib.molecules.sepia=function(a){return{"-wms-filter":"sepia("+a+"%)"}},b.lib.molecules.size=function(a){var b=c("../../helpers/units"),d=c("../../helpers/args")(a),e={};return 2==d.length?(""!=d[0]&&(e.width=b(d[0])),""!=d[1]&&(e.height=b(d[1])),e):{width:b(d[0]),height:b(d[0])}},b.lib.molecules.transparent=function(a){var b=(c("../../helpers/args")(a),{});return a=parseFloat(a),b["-s-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity="+100*a+")",b.filter="alpha(opacity="+100*a+")",b["-m-opacity"]=a,b.opacity=a,b.KhtmlOpacity=a,b},b.lib.molecules.trsform=function(a){return{"-wmso-transform":a}},b.index}(window); |
@@ -17,6 +17,6 @@ module.exports = function(html, options) { | ||
add(html.substr(cursor, html.length - cursor)); | ||
code = (code + 'return r.join(""); }').replace(/[\r\t\n]/g, ''); | ||
code = (code + 'return r.join(""); }').replace(/[\r\t\n]/g, ' '); | ||
try { result = new Function('obj', code).apply(options, [options]); } | ||
catch(err) { console.error("'" + err.message + "'", " in \n\nCode:\n", code, "\n"); } | ||
return result; | ||
} | ||
} |
{ | ||
"name": "absurd", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"homepage": "http://absurdjs.com/", | ||
@@ -5,0 +5,0 @@ "description": "JavaScript library with superpowers - http://absurdjs.com/", |
@@ -1885,6 +1885,6 @@ lib.DI = function(api) { | ||
add(html.substr(cursor, html.length - cursor)); | ||
code = (code + 'return r.join(""); }').replace(/[\r\t\n]/g, ''); | ||
code = (code + 'return r.join(""); }').replace(/[\r\t\n]/g, ' '); | ||
try { result = new Function('obj', code).apply(options, [options]); } | ||
catch(err) { console.error("'" + err.message + "'", " in \n\nCode:\n", code, "\n"); } | ||
return result; | ||
} | ||
} |
Sorry, the diff of this file is too big to display
892377
28109