b0y-101 Mini Shell


Current Path : E:/www/instructor/teacher04/templates/simple_v1/warp/vendor/less/
File Upload :
Current File : E:/www/instructor/teacher04/templates/simple_v1/warp/vendor/less/less-1.5.1.min.js

!function(e,t){function n(t){return e.less[t.split("/")[1]]}function i(e,t){"development"==x.env&&"undefined"!=typeof console&&x.logLevel>=t&&console.log("less: "+e)}function r(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function s(e,n){var r="{line} {content}",s=e.filename||n,o=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+s+" ",l=function(e,n,i){e.extract[n]!==t&&o.push(r.replace(/\{line\}/,(parseInt(e.line,10)||0)+(n-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[n]))};e.extract?(l(e,0,""),l(e,1,"line"),l(e,2,""),a+="on line "+e.line+", column "+(e.column+1)+":\n"+o.join("\n")):e.stack&&(a+=e.stack),i(a,k.errors)}function o(e,t,n){var s=t.href||"",o="less:"+(t.title||r(s)),a=document.getElementById(o),l=!1,u=document.createElement("style");if(u.setAttribute("type","text/css"),t.media&&u.setAttribute("media",t.media),u.id=o,u.styleSheet)try{u.styleSheet.cssText=e}catch(c){throw new Error("Couldn't reassign styleSheet.cssText.")}else u.appendChild(document.createTextNode(e)),l=null!==a&&a.childNodes.length>0&&u.childNodes.length>0&&a.firstChild.nodeValue===u.firstChild.nodeValue;var h=document.getElementsByTagName("head")[0];if(null===a||l===!1){var f=t&&t.nextSibling||null;f?f.parentNode.insertBefore(u,f):h.appendChild(u)}if(a&&l===!1&&a.parentNode.removeChild(a),n&&A){i("saving "+s+" to cache.",k.info);try{A.setItem(s,e),A.setItem(s+":timestamp",n)}catch(c){i("failed to save",k.errors)}}}function a(e,n){var i,s,a="less-error-message:"+r(n||""),l='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',u=document.createElement("div"),c=[],h=e.filename||n,f=h.match(/([^\/]+(\?.*)?)$/)[1];u.id=a,u.className="less-error-message",s="<h3>"+(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+'</h3><p>in <a href="'+h+'">'+f+"</a> ";var p=function(e,n,i){e.extract[n]!==t&&c.push(l.replace(/\{line\}/,(parseInt(e.line,10)||0)+(n-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[n]))};e.extract?(p(e,0,""),p(e,1,"line"),p(e,2,""),s+="on line "+e.line+", column "+(e.column+1)+":</p><ul>"+c.join("")+"</ul>"):e.stack&&(s+="<br/>"+e.stack.split("\n").slice(1).join("<br/>")),u.innerHTML=s,o([".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"}),u.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"==x.env&&(i=setInterval(function(){document.body&&(document.getElementById(a)?document.body.replaceChild(u,document.getElementById(a)):document.body.insertBefore(u,document.body.firstChild),clearInterval(i))},10))}function l(e,t){x.errorReporting&&"html"!==x.errorReporting?"console"===x.errorReporting?s(e,t):"function"==typeof x.errorReporting&&x.errorReporting("add",e,t):a(e,t)}function u(e){var t=document.getElementById("less-error-message:"+r(e));t&&t.parentNode.removeChild(t)}function c(){}function h(e){x.errorReporting&&"html"!==x.errorReporting?"console"===x.errorReporting?c(e):"function"==typeof x.errorReporting&&x.errorReporting("remove",e):u(e)}function f(e){for(var t,n=document.getElementsByTagName("style"),i=0;i<n.length;i++)if(t=n[i],t.type.match(M)){var r=new x.tree.parseEnv(x),s=t.innerHTML||"";r.filename=document.location.href.replace(/#.*$/,""),(e||_)&&(r.useFileCache=!0,s=_+s,e&&(s+="\n"+e));var o=function(e){return function(t,n){if(t)return l(t,"inline");var i=n.toCSS(x);e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.innerHTML=i}}(t);new x.Parser(r).parse(s,o)}}function p(e,t){var n,i,r=/^((?:[a-z-]+:)?\/+?(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,s=e.match(r),o={},a=[];if(!s)throw new Error("Could not parse sheet href - '"+e+"'");if(!s[1]||s[2]){if(i=t.match(r),!i)throw new Error("Could not parse page url - '"+t+"'");s[1]=s[1]||i[1]||"",s[2]||(s[3]=i[3]+s[3])}if(s[3]){for(a=s[3].replace(/\\/g,"/").split("/"),n=0;n<a.length;n++)"."===a[n]&&(a.splice(n,1),n-=1);for(n=0;n<a.length;n++)".."===a[n]&&n>0&&(a.splice(n-1,2),n-=2)}return o.hostPart=s[1],o.directories=a,o.path=s[1]+a.join("/"),o.fileUrl=o.path+(s[4]||""),o.url=o.fileUrl+(s[5]||""),o}function m(e,t){var n,i,r,s,o=p(e),a=p(t),l="";if(o.hostPart!==a.hostPart)return"";for(i=Math.max(a.directories.length,o.directories.length),n=0;i>n&&a.directories[n]===o.directories[n];n++);for(s=a.directories.slice(n),r=o.directories.slice(n),n=0;n<s.length-1;n++)l+="../";for(n=0;n<r.length-1;n++)l+=r[n]+"/";return l}function d(){if(e.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(t){return i("browser doesn't support AJAX.",k.errors),null}}function v(e,t,n,r){function s(t,n,i){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}var o=d(),a=I?x.fileAsync:x.async;"function"==typeof o.overrideMimeType&&o.overrideMimeType("text/css"),i("XHR: Getting '"+e+"'",k.info),o.open("GET",e,a),o.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),o.send(null),I&&!x.fileAsync?0===o.status||o.status>=200&&o.status<300?n(o.responseText):r(o.status,e):a?o.onreadystatechange=function(){4==o.readyState&&s(o,n,r)}:s(o,n,r)}function g(t,n,i,r,s){n&&n.currentDirectory&&!/^([a-z-]+:)?\//.test(t)&&(t=n.currentDirectory+t);var o=p(t,e.location.href),a=o.url,l={currentDirectory:o.path,filename:a};if(n?(l.entryPath=n.entryPath,l.rootpath=n.rootpath,l.rootFilename=n.rootFilename,l.relativeUrls=n.relativeUrls):(l.entryPath=o.path,l.rootpath=x.rootpath||o.path,l.rootFilename=a,l.relativeUrls=r.relativeUrls),l.relativeUrls&&(l.rootpath=r.rootpath?p(r.rootpath+m(o.path,l.entryPath)).path:o.path),r.useFileCache&&E[a])try{var u=E[a];s&&(u+="\n"+s),i(null,u,a,l,{lastModified:new Date})}catch(c){i(c,null,a)}else v(a,r.mime,function(e,t){e=_+e,E[a]=e;try{i(null,e,a,l,{lastModified:t})}catch(n){i(n,null,a)}},function(e,t){i({type:"File",message:"'"+t+"' wasn't found ("+e+")"},null,a)})}function b(e,t,n,i,r){var s=new x.tree.parseEnv(x);s.mime=e.type,(r||_)&&(s.useFileCache=!0),g(e.href,null,function(r,a,l,u,c){if(c){c.remaining=i;var f=A&&A.getItem(l),p=A&&A.getItem(l+":timestamp");if(!n&&p&&c.lastModified&&new Date(c.lastModified).valueOf()===new Date(p).valueOf())return o(f,e),c.local=!0,void t(null,null,a,e,c,l)}h(l),a?(s.currentFileInfo=u,new x.Parser(s).parse(a,function(n,i){if(n)return t(n,null,null,e);try{t(n,i,a,e,c,l)}catch(n){t(n,null,null,e)}})):t(r,null,null,e,c,l)},s,r)}function S(e,t,n){for(var i=0;i<x.sheets.length;i++)b(x.sheets[i],e,t,x.sheets.length-(i+1),n)}function y(){"development"===x.env?(x.optimization=0,x.watchTimer=setInterval(function(){x.watchMode&&S(function(e,t,n,i,r){e?l(e,i.href):t&&o(t.toCSS(x),i,r.lastModified)})},x.poll)):x.optimization=3}function w(e){var t="";for(var n in e)t+=("@"===n.slice(0,1)?"":"@")+n+": "+(";"===e[n].slice(-1)?e[n]:e[n]+";");return t}("undefined"==typeof e.less||"undefined"!=typeof e.less.nodeType)&&(e.less={}),x=e.less,C=e.less.tree={},x.mode="browser";var x,C;x===t&&(x=exports,C=n("./tree"),x.mode="node"),x.Parser=function(e){function i(){S=I[b],y=g,k=g}function r(){I[b]=S,g=y,k=g}function s(){g>k&&(I[b]=I[b].slice(g-k),k=g)}function o(e){var t=e.charCodeAt(0);return 32===t||10===t||9===t}function a(e){var t,n;if(e instanceof Function)return e.call(R.parsers);if("string"==typeof e)t=v.charAt(g)===e?e:null,n=1,s();else{if(s(),!(t=e.exec(I[b])))return null;n=t[0].length}return t?(l(n),"string"==typeof t?t:1===t.length?t[0]:t):void 0}function l(e){for(var t=g,n=b,i=g+I[b].length,r=g+=e;i>g&&o(v.charAt(g));)g++;return I[b]=I[b].slice(e+(g-r)),k=g,0===I[b].length&&b<I.length-1&&b++,t!==g||n!==b}function u(e,t){var n=a(e);return n?n:void c(t||("string"==typeof e?"expected '"+e+"' got '"+v.charAt(g)+"'":"unexpected token"))}function c(e,t){var n=new Error(e);throw n.index=g,n.type=t||"Syntax",n}function h(e){return"string"==typeof e?v.charAt(g)===e:e.test(I[b])}function f(e,t){return e.filename&&t.currentFileInfo.filename&&e.filename!==t.currentFileInfo.filename?R.imports.contents[e.filename]:v}function p(e,t){for(var n=e+1,i=null,r=-1;--n>=0&&"\n"!==t.charAt(n);)r++;return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:r}}function m(e,t,i){var r=i.currentFileInfo.filename;return"browser"!==x.mode&&"rhino"!==x.mode&&(r=n("path").resolve(r)),{lineNumber:p(e,t).line+1,fileName:r}}function d(e,t){var n=f(e,t),i=p(e.index,n),r=i.line,s=i.column,o=e.call&&p(e.call,n).line,a=n.split("\n");this.type=e.type||"Syntax",this.message=e.message,this.filename=e.filename||t.currentFileInfo.filename,this.index=e.index,this.line="number"==typeof r?r+1:null,this.callLine=o+1,this.callExtract=a[o],this.stack=e.stack,this.column=s,this.extract=[a[r-1],a[r],a[r+1]]}var v,g,b,S,y,w,I,k,R,F=e&&e.filename;e instanceof C.parseEnv||(e=new C.parseEnv(e));var M=this.imports={paths:e.paths||[],queue:[],files:e.files,contents:e.contents,mime:e.mime,error:null,push:function(t,n,i,r){var s=this;this.queue.push(t);var o=function(e,n,i){s.queue.splice(s.queue.indexOf(t),1);var o=i in s.files||i===F;s.files[i]=n,e&&!s.error&&(s.error=e),r(e,n,o,i)};x.Parser.importer?x.Parser.importer(t,n,o,e):x.Parser.fileLoader(t,n,function(t,r,s,a){if(t)return void o(t);var l=new C.parseEnv(e);l.currentFileInfo=a,l.processImports=!1,l.contents[s]=r,(n.reference||i.reference)&&(a.reference=!0),i.inline?o(null,r,s):new x.Parser(l).parse(r,function(e,t){o(e,t,s)})},e)}};return d.prototype=new Error,d.prototype.constructor=d,this.env=e=e||{},this.optimization="optimization"in this.env?this.env.optimization:1,R={imports:M,parse:function(t,i){var r,s,o,l=null;if(g=b=k=w=0,v=t.replace(/\r\n/g,"\n"),v=v.replace(/^\uFEFF/,""),R.imports.contents[e.currentFileInfo.filename]=v,I=function(t){for(var n,i,r,s,o=0,a=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,u=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,c=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,h=0,f=t[0],p=0;p<v.length;)if(a.lastIndex=p,(n=a.exec(v))&&n.index===p&&(p+=n[0].length,f.push(n[0])),r=v.charAt(p),u.lastIndex=c.lastIndex=p,(n=c.exec(v))&&n.index===p)p+=n[0].length,f.push(n[0]);else if(i||"/"!==r||(s=v.charAt(p+1),"/"!==s&&"*"!==s||!(n=u.exec(v))||n.index!==p)){switch(r){case"{":if(!i){h++,f.push(r);break}case"}":if(!i){h--,f.push(r),t[++o]=f=[];break}case"(":if(!i){i=!0,f.push(r);break}case")":if(i){i=!1,f.push(r);break}default:f.push(r)}p++}else p+=n[0].length,f.push(n[0]);return 0!==h&&(l=new d({index:p-1,type:"Parse",message:h>0?"missing closing `}`":"missing opening `{`",filename:e.currentFileInfo.filename},e)),t.map(function(e){return e.join("")})}([[]]),l)return i(new d(l,e));try{r=new C.Ruleset([],a(this.parsers.primary)),r.root=!0,r.firstRoot=!0}catch(u){return i(new d(u,e))}if(r.toCSS=function(t){return function(i,r){i=i||{};var s,o,a=new C.evalEnv(i);"object"!=typeof r||Array.isArray(r)||(r=Object.keys(r).map(function(e){var t=r[e];return t instanceof C.Value||(t instanceof C.Expression||(t=new C.Expression([t])),t=new C.Value([t])),new C.Rule("@"+e,t,(!1),null,0)}),a.frames=[new C.Ruleset(null,r)]);try{s=t.call(this,a),(new C.joinSelectorVisitor).run(s),(new C.processExtendsVisitor).run(s),new C.toCSSVisitor({compress:Boolean(i.compress)}).run(s),i.sourceMap&&(s=new C.sourceMapOutput({writeSourceMap:i.writeSourceMap,rootNode:s,contentsMap:R.imports.contents,sourceMapFilename:i.sourceMapFilename,sourceMapURL:i.sourceMapURL,outputFilename:i.sourceMapOutputFilename,sourceMapBasepath:i.sourceMapBasepath,sourceMapRootpath:i.sourceMapRootpath,outputSourceFiles:i.outputSourceFiles,sourceMapGenerator:i.sourceMapGenerator})),o=s.toCSS({compress:Boolean(i.compress),dumpLineNumbers:e.dumpLineNumbers,strictUnits:Boolean(i.strictUnits)})}catch(l){throw new d(l,e)}if(i.cleancss&&"node"===x.mode){var u=n("clean-css");return new u({keepSpecialComments:"*",processImport:!1,noRebase:!0,noAdvanced:!0}).minify(o)}return i.compress?o.replace(/(^(\s)+)|((\s)+$)/g,""):o}}(r.eval),g<v.length-1){g=w;var c=p(g,v);o=v.split("\n"),s=c.line+1,l={type:"Parse",message:"Unrecognised input",index:g,filename:e.currentFileInfo.filename,line:s,column:c.column,extract:[o[s-2],o[s-1],o[s]]}}var h=function(t){return t=l||t||R.imports.error,t?(t instanceof d||(t=new d(t,e)),i(t)):i(null,r)};return e.processImports===!1?h():void new C.importVisitor(this.imports,h).run(r)},parsers:{primary:function(){for(var e,t=[];(e=a(this.extendRule)||a(this.mixin.definition)||a(this.rule)||a(this.ruleset)||a(this.mixin.call)||a(this.comment)||a(this.directive))||a(/^[\s\n]+/)||a(/^;+/);)e&&t.push(e);return t},comment:function(){var t;if("/"===v.charAt(g))return"/"===v.charAt(g+1)?new C.Comment(a(/^\/\/.*/),(!0),g,e.currentFileInfo):(t=a(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))?new C.Comment(t,(!1),g,e.currentFileInfo):void 0},comments:function(){for(var e,t=[];e=a(this.comment);)t.push(e);return t},entities:{quoted:function(){var t,n,i=g,r=g;return"~"===v.charAt(i)&&(i++,n=!0),'"'===v.charAt(i)||"'"===v.charAt(i)?(n&&a("~"),(t=a(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))?new C.Quoted(t[0],t[1]||t[2],n,r,e.currentFileInfo):void 0):void 0},keyword:function(){var e;if(e=a(/^[_A-Za-z-][_A-Za-z0-9-]*/)){var t=C.Color.fromKeyword(e);return t?t:new C.Keyword(e)}},call:function(){var t,n,i,r,s=g;if(t=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(I[b])){if(t=t[1],n=t.toLowerCase(),"url"===n)return null;if(g+=t.length,"alpha"===n&&(r=a(this.alpha),"undefined"!=typeof r))return r;if(a("("),i=a(this.entities.arguments),a(")"))return t?new C.Call(t,i,s,e.currentFileInfo):void 0}},arguments:function(){for(var e,t=[];(e=a(this.entities.assignment)||a(this.expression))&&(t.push(e),a(",")););return t},literal:function(){return a(this.entities.dimension)||a(this.entities.color)||a(this.entities.quoted)||a(this.entities.unicodeDescriptor)},assignment:function(){var e,t;return(e=a(/^\w+(?=\s?=)/i))&&a("=")&&(t=a(this.entity))?new C.Assignment(e,t):void 0},url:function(){var t;if("u"===v.charAt(g)&&a(/^url\(/))return t=a(this.entities.quoted)||a(this.entities.variable)||a(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",u(")"),new C.URL(null!=t.value||t instanceof C.Variable?t:new C.Anonymous(t),e.currentFileInfo)},variable:function(){var t,n=g;return"@"===v.charAt(g)&&(t=a(/^@@?[\w-]+/))?new C.Variable(t,n,e.currentFileInfo):void 0},variableCurly:function(){var t,n=g;return"@"===v.charAt(g)&&(t=a(/^@\{([\w-]+)\}/))?new C.Variable("@"+t[1],n,e.currentFileInfo):void 0},color:function(){var e;return"#"===v.charAt(g)&&(e=a(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))?new C.Color(e[1]):void 0},dimension:function(){var e,t=v.charCodeAt(g);if(!(t>57||43>t||47===t||44==t))return(e=a(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/))?new C.Dimension(e[1],e[2]):void 0},unicodeDescriptor:function(){var e;return(e=a(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))?new C.UnicodeDescriptor(e[0]):void 0},javascript:function(){var n,i,r=g;return"~"===v.charAt(r)&&(r++,i=!0),"`"===v.charAt(r)?(e.javascriptEnabled===t||e.javascriptEnabled||c("You are using JavaScript, which has been disabled."),i&&a("~"),(n=a(/^`([^`]*)`/))?new C.JavaScript(n[1],g,i):void 0):void 0}},variable:function(){var e;return"@"===v.charAt(g)&&(e=a(/^(@[\w-]+)\s*:/))?e[1]:void 0},extend:function(e){var t,n,i,r=g,s=[];if(a(e?/^&:extend\(/:/^:extend\(/)){do{for(i=null,t=[];!(i=a(/^(all)(?=\s*(\)|,))/))&&(n=a(this.element),n);)t.push(n);i=i&&i[1],s.push(new C.Extend(new C.Selector(t),i,r))}while(a(","));return u(/^\)/),e&&u(/^;/),s}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var t,n,s,o=[],l=g,c=v.charAt(g),f=!1;if("."===c||"#"===c){for(i();t=a(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/);)o.push(new C.Element(n,t,g,e.currentFileInfo)),n=a(">");return a("(")&&(s=this.mixin.args.call(this,!0).args,u(")")),s=s||[],a(this.important)&&(f=!0),o.length>0&&(a(";")||h("}"))?new C.mixin.Call(o,s,l,e.currentFileInfo,f):void r()}},args:function(e){for(var t,n,i,r,s,o,l=[],h=[],f=[],p={args:null,variadic:!1};;){if(e)o=a(this.expression);else{if(a(this.comments),"."===v.charAt(g)&&a(/^\.{3}/)){p.variadic=!0,a(";")&&!t&&(t=!0),(t?h:f).push({variadic:!0});break}o=a(this.entities.variable)||a(this.entities.literal)||a(this.entities.keyword)}if(!o)break;r=null,o.throwAwayComments&&o.throwAwayComments(),s=o;var m=null;if(e?1==o.value.length&&(m=o.value[0]):m=o,m&&m instanceof C.Variable)if(a(":"))l.length>0&&(t&&c("Cannot mix ; and , as delimiter types"),n=!0),s=u(this.expression),r=i=m.name;else{if(!e&&a(/^\.{3}/)){p.variadic=!0,a(";")&&!t&&(t=!0),(t?h:f).push({name:o.name,variadic:!0});break}e||(i=r=m.name,s=null)}s&&l.push(s),f.push({name:r,value:s}),a(",")||(a(";")||t)&&(n&&c("Cannot mix ; and , as delimiter types"),t=!0,l.length>1&&(s=new C.Value(l)),h.push({name:i,value:s}),i=null,l=[],n=!1)}return p.args=t?h:f,p},definition:function(){var e,t,n,s,o=[],l=!1;if(!("."!==v.charAt(g)&&"#"!==v.charAt(g)||h(/^[^{]*\}/))&&(i(),t=a(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/))){e=t[1];var c=this.mixin.args.call(this,!1);if(o=c.args,l=c.variadic,a(")")||(w=g,r()),a(this.comments),a(/^when/)&&(s=u(this.conditions,"expected condition")),n=a(this.block))return new C.mixin.Definition(e,o,n,s,l);r()}}},entity:function(){return a(this.entities.literal)||a(this.entities.variable)||a(this.entities.url)||a(this.entities.call)||a(this.entities.keyword)||a(this.entities.javascript)||a(this.comment)},end:function(){return a(";")||h("}")},alpha:function(){var e;if(a(/^\(opacity=/i))return(e=a(/^\d+/)||a(this.entities.variable))?(u(")"),new C.Alpha(e)):void 0},element:function(){var t,n,i;return n=a(this.combinator),t=a(/^(?:\d+\.\d+|\d+)%/)||a(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||a("*")||a("&")||a(this.attribute)||a(/^\([^()@]+\)/)||a(/^[\.#](?=@)/)||a(this.entities.variableCurly),t||a("(")&&(i=a(this.selector))&&a(")")&&(t=new C.Paren(i)),t?new C.Element(n,t,g,e.currentFileInfo):void 0},combinator:function(){var e=v.charAt(g);if(">"===e||"+"===e||"~"===e||"|"===e){for(g++;v.charAt(g).match(/\s/);)g++;return new C.Combinator(e)}return v.charAt(g-1).match(/\s/)?new C.Combinator(" "):new C.Combinator(null)},lessSelector:function(){return this.selector(!0)},selector:function(t){for(var n,i,r,s,o,l=[],h=[];(t&&(r=a(this.extend))||t&&(s=a(/^when/))||(n=a(this.element)))&&(s?o=u(this.conditions,"expected condition"):o?c("CSS guard can only be used at the end of selector"):r?h.push.apply(h,r):(h.length&&c("Extend can only be used at the end of selector"),i=v.charAt(g),l.push(n),n=null),"{"!==i&&"}"!==i&&";"!==i&&","!==i&&")"!==i););return l.length>0?new C.Selector(l,h,o,g,e.currentFileInfo):void(h.length&&c("Extend must be used to extend a selector, it cannot be used on its own"))},attribute:function(){var e,t,n;if(a("["))return(e=a(this.entities.variableCurly))||(e=u(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(n=a(/^[|~*$^]?=/))&&(t=a(this.entities.quoted)||a(/^[0-9]+%/)||a(/^[\w-]+/)||a(this.entities.variableCurly)),u("]"),new C.Attribute(e,n,t)},block:function(){var e;return a("{")&&(e=a(this.primary))&&a("}")?e:void 0},ruleset:function(){var t,n,s,o=[];for(i(),e.dumpLineNumbers&&(s=m(g,v,e));(t=a(this.lessSelector))&&(o.push(t),a(this.comments),a(","));)t.condition&&c("Guards are only currently allowed on a single selector."),a(this.comments);if(o.length>0&&(n=a(this.block))){var l=new C.Ruleset(o,n,e.strictImports);return e.dumpLineNumbers&&(l.debugInfo=s),l}w=g,r()},rule:function(t){var n,s,o,l=v.charAt(g),u=!1;if(i(),"."!==l&&"#"!==l&&"&"!==l&&(n=a(this.variable)||a(this.ruleProperty))){if(s=t||!e.compress&&"@"!==n.charAt(0)?a(this.anonymousValue)||a(this.value):a(this.value)||a(this.anonymousValue),o=a(this.important),"+"===n[n.length-1]&&(u=!0,n=n.substr(0,n.length-1)),s&&a(this.end))return new C.Rule(n,s,o,u,y,e.currentFileInfo);if(w=g,r(),s&&!t)return this.rule(!0)}},anonymousValue:function(){var e;return(e=/^([^@+\/'"*`(;{}-]*);/.exec(I[b]))?(g+=e[0].length-1,new C.Anonymous(e[1])):void 0},"import":function(){var t,n,s=g;i();var o=a(/^@import?\s+/),l=(o?a(this.importOptions):null)||{};return o&&(t=a(this.entities.quoted)||a(this.entities.url))&&(n=a(this.mediaFeatures),a(";"))?(n=n&&new C.Value(n),new C.Import(t,n,l,s,e.currentFileInfo)):void r()},importOptions:function(){var e,t,n,i={};if(!a("("))return null;do if(e=a(this.importOption)){switch(t=e,n=!0,t){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(i[t]=n,!a(","))break}while(e);return u(")"),i},importOption:function(){var e=a(/^(less|css|multiple|once|inline|reference)/);return e?e[1]:void 0},mediaFeature:function(){var t,n,i=[];do if(t=a(this.entities.keyword)||a(this.entities.variable))i.push(t);else if(a("(")){if(n=a(this.property),t=a(this.value),!a(")"))return null;if(n&&t)i.push(new C.Paren(new C.Rule(n,t,null,null,g,e.currentFileInfo,(!0))));else{if(!t)return null;i.push(new C.Paren(t))}}while(t);return i.length>0?new C.Expression(i):void 0},mediaFeatures:function(){var e,t=[];do if(e=a(this.mediaFeature)){if(t.push(e),!a(","))break}else if((e=a(this.entities.variable))&&(t.push(e),!a(",")))break;while(e);return t.length>0?t:null},media:function(){var t,n,i,r;return e.dumpLineNumbers&&(r=m(g,v,e)),a(/^@media/)&&(t=a(this.mediaFeatures),n=a(this.block))?(i=new C.Media(n,t,g,e.currentFileInfo),e.dumpLineNumbers&&(i.debugInfo=r),i):void 0},directive:function(){var t,n,s,o,l,u,c,h;if("@"===v.charAt(g)){if(n=a(this["import"])||a(this.media))return n;if(i(),t=a(/^@[a-z-]+/)){switch(o=t,"-"==t.charAt(1)&&t.indexOf("-",2)>0&&(o="@"+t.slice(t.indexOf("-",2)+1)),o){case"@font-face":l=!0;break;case"@viewport":case"@top-left":case"@top-left-corner":case"@top-center":case"@top-right":case"@top-right-corner":case"@bottom-left":case"@bottom-left-corner":case"@bottom-center":case"@bottom-right":case"@bottom-right-corner":case"@left-top":case"@left-middle":case"@left-bottom":case"@right-top":case"@right-middle":case"@right-bottom":l=!0;break;case"@host":case"@page":case"@document":case"@supports":case"@keyframes":l=!0,u=!0;break;case"@namespace":c=!0}if(u&&(h=(a(/^[^{]+/)||"").trim(),h&&(t+=" "+h)),l){if(s=a(this.block))return new C.Directive(t,s,g,e.currentFileInfo)}else if((n=a(c?this.expression:this.entity))&&a(";")){var f=new C.Directive(t,n,g,e.currentFileInfo);return e.dumpLineNumbers&&(f.debugInfo=m(g,v,e)),f}r()}}},value:function(){for(var e,t=[];(e=a(this.expression))&&(t.push(e),a(",")););return t.length>0?new C.Value(t):void 0},important:function(){return"!"===v.charAt(g)?a(/^! *important/):void 0},sub:function(){var e,t;return a("(")&&(e=a(this.addition))?(t=new C.Expression([e]),u(")"),t.parens=!0,t):void 0},multiplication:function(){var e,t,n,i,r;if(e=a(this.operand)){for(r=o(v.charAt(g-1));!h(/^\/[*\/]/)&&(n=a("/")||a("*"))&&(t=a(this.operand));)e.parensInOp=!0,t.parensInOp=!0,i=new C.Operation(n,[i||e,t],r),r=o(v.charAt(g-1));return i||e}},addition:function(){var e,t,n,i,r;if(e=a(this.multiplication)){for(r=o(v.charAt(g-1));(n=a(/^[-+]\s+/)||!r&&(a("+")||a("-")))&&(t=a(this.multiplication));)e.parensInOp=!0,t.parensInOp=!0,i=new C.Operation(n,[i||e,t],r),r=o(v.charAt(g-1));return i||e}},conditions:function(){var e,t,n,i=g;if(e=a(this.condition)){for(;h(/^,\s*(not\s*)?\(/)&&a(",")&&(t=a(this.condition));)n=new C.Condition("or",n||e,t,i);return n||e}},condition:function(){var e,t,n,i,r=g,s=!1;return a(/^not/)&&(s=!0),u("("),(e=a(this.addition)||a(this.entities.keyword)||a(this.entities.quoted))?((i=a(/^(?:>=|<=|=<|[<=>])/))?(t=a(this.addition)||a(this.entities.keyword)||a(this.entities.quoted))?n=new C.Condition(i,e,t,r,s):c("expected expression"):n=new C.Condition("=",e,new C.Keyword("true"),r,s),u(")"),a(/^and/)?new C.Condition("and",n,a(this.condition)):n):void 0},operand:function(){var e,t=v.charAt(g+1);"-"!==v.charAt(g)||"@"!==t&&"("!==t||(e=a("-"));var n=a(this.sub)||a(this.entities.dimension)||a(this.entities.color)||a(this.entities.variable)||a(this.entities.call);return e&&(n.parensInOp=!0,n=new C.Negative(n)),n},expression:function(){for(var e,t,n=[];e=a(this.addition)||a(this.entity);)n.push(e),!h(/^\/[\/*]/)&&(t=a("/"))&&n.push(new C.Anonymous(t));return n.length>0?new C.Expression(n):void 0},property:function(){var e;return(e=a(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/))?e[1]:void 0},ruleProperty:function(){var e;return(e=a(/^(\*?-?[_a-zA-Z0-9-]+)\s*(\+?)\s*:/))?e[1]+(e[2]||""):void 0}}}},function(i){function r(e){return i.functions.hsla(e.h,e.s,e.l,e.a)}function s(e,t){return e instanceof i.Dimension&&e.unit.is("%")?parseFloat(e.value*t/100):o(e)}function o(e){if(e instanceof i.Dimension)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function a(e){return Math.min(1,Math.max(0,e))}i.functions={rgb:function(e,t,n){return this.rgba(e,t,n,1)},rgba:function(e,t,n,r){var a=[e,t,n].map(function(e){return s(e,256)});return r=o(r),new i.Color(a,r)},hsl:function(e,t,n){return this.hsla(e,t,n,1)},hsla:function(e,t,n,i){function r(e){return e=0>e?e+1:e>1?e-1:e,1>6*e?l+(s-l)*e*6:1>2*e?s:2>3*e?l+(s-l)*(2/3-e)*6:l}e=o(e)%360/360,t=a(o(t)),n=a(o(n)),i=a(o(i));var s=.5>=n?n*(t+1):n+t-n*t,l=2*n-s;return this.rgba(255*r(e+1/3),255*r(e),255*r(e-1/3),i)},hsv:function(e,t,n){return this.hsva(e,t,n,1)},hsva:function(e,t,n,i){e=o(e)%360/360*360,t=o(t),n=o(n),i=o(i);var r,s;r=Math.floor(e/60%6),s=e/60-r;var a=[n,n*(1-t),n*(1-s*t),n*(1-(1-s)*t)],l=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(255*a[l[r][0]],255*a[l[r][1]],255*a[l[r][2]],i)},hue:function(e){return new i.Dimension(Math.round(e.toHSL().h))},saturation:function(e){return new i.Dimension(Math.round(100*e.toHSL().s),"%")},lightness:function(e){return new i.Dimension(Math.round(100*e.toHSL().l),"%")},hsvhue:function(e){return new i.Dimension(Math.round(e.toHSV().h))},hsvsaturation:function(e){return new i.Dimension(Math.round(100*e.toHSV().s),"%")},hsvvalue:function(e){return new i.Dimension(Math.round(100*e.toHSV().v),"%")},red:function(e){return new i.Dimension(e.rgb[0])},green:function(e){return new i.Dimension(e.rgb[1])},blue:function(e){return new i.Dimension(e.rgb[2])},alpha:function(e){return new i.Dimension(e.toHSL().a)},luma:function(e){return new i.Dimension(Math.round(e.luma()*e.alpha*100),"%")},saturate:function(e,t){if(!e.rgb)return null;var n=e.toHSL();return n.s+=t.value/100,n.s=a(n.s),r(n)},desaturate:function(e,t){var n=e.toHSL();return n.s-=t.value/100,n.s=a(n.s),r(n)},lighten:function(e,t){var n=e.toHSL();return n.l+=t.value/100,n.l=a(n.l),r(n)},darken:function(e,t){var n=e.toHSL();return n.l-=t.value/100,n.l=a(n.l),r(n)},fadein:function(e,t){var n=e.toHSL();return n.a+=t.value/100,n.a=a(n.a),r(n)},fadeout:function(e,t){var n=e.toHSL();return n.a-=t.value/100,n.a=a(n.a),r(n)},fade:function(e,t){var n=e.toHSL();return n.a=t.value/100,n.a=a(n.a),r(n)},spin:function(e,t){var n=e.toHSL(),i=(n.h+t.value)%360;return n.h=0>i?360+i:i,r(n)},mix:function(e,t,n){n||(n=new i.Dimension(50));var r=n.value/100,s=2*r-1,o=e.toHSL().a-t.toHSL().a,a=((s*o==-1?s:(s+o)/(1+s*o))+1)/2,l=1-a,u=[e.rgb[0]*a+t.rgb[0]*l,e.rgb[1]*a+t.rgb[1]*l,e.rgb[2]*a+t.rgb[2]*l],c=e.alpha*r+t.alpha*(1-r);return new i.Color(u,c)},greyscale:function(e){return this.desaturate(e,new i.Dimension(100))},contrast:function(e,t,n,i){if(!e.rgb)return null;if("undefined"==typeof n&&(n=this.rgba(255,255,255,1)),"undefined"==typeof t&&(t=this.rgba(0,0,0,1)),t.luma()>n.luma()){var r=n;n=t,t=r}return i="undefined"==typeof i?.43:o(i),e.luma()*e.alpha<i?n:t},e:function(e){return new i.Anonymous(e instanceof i.JavaScript?e.evaluated:e)},escape:function(e){return new i.Anonymous(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=0;r<t.length;r++)n=n.replace(/%[sda]/i,function(e){var n=e.match(/s/i)?t[r].value:t[r].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(n):n});return n=n.replace(/%%/g,"%"),new i.Quoted('"'+n+'"',n)},unit:function(e,t){if(!(e instanceof i.Dimension))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof i.Operation?". Have you forgotten parenthesis?":"")};return new i.Dimension(e.value,t?t.toCSS():"")},convert:function(e,t){return e.convertTo(t.value)},round:function(e,t){var n="undefined"==typeof t?0:t.value;return this._math(function(e){return e.toFixed(n)},null,e)},pi:function(){return new i.Dimension(Math.PI)},mod:function(e,t){return new i.Dimension(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new i.Dimension(e),t=new i.Dimension(t);else if(!(e instanceof i.Dimension&&t instanceof i.Dimension))throw{type:"Argument",message:"arguments must be numbers"};return new i.Dimension(Math.pow(e.value,t.value),e.unit)},_math:function(e,t,n){if(n instanceof i.Dimension)return new i.Dimension(e(parseFloat(n.value)),null==t?n.unit:t);if("number"==typeof n)return e(n);throw{type:"Argument",message:"argument must be a number"}},_minmax:function(e,n){switch(n=Array.prototype.slice.call(n),n.length){case 0:throw{type:"Argument",message:"one or more arguments required"};case 1:return n[0]}var r,s,o,a,l,u,c=[],h={};for(r=0;r<n.length;r++)o=n[r],o instanceof i.Dimension?(a=o.unify(),u=a.unit.toString(),s=h[u],s!==t?(l=c[s].unify(),(e&&a.value<l.value||!e&&a.value>l.value)&&(c[s]=o)):(h[u]=c.length,c.push(o))):c.push(o);return 1==c.length?c[0]:(n=c.map(function(e){return e.toCSS(this.env)}).join(this.env.compress?",":", "),new i.Anonymous((e?"min":"max")+"("+n+")"))},min:function(){return this._minmax(!0,arguments)},max:function(){return this._minmax(!1,arguments)},argb:function(e){return new i.Anonymous(e.toARGB())},percentage:function(e){return new i.Dimension(100*e.value,"%")},color:function(e){if(e instanceof i.Quoted){var t,n=e.value;if(t=i.Color.fromKeyword(n))return t;if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.test(n))return new i.Color(n.slice(1));throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}}throw{type:"Argument",message:"argument must be a string"}},iscolor:function(e){return this._isa(e,i.Color)},isnumber:function(e){return this._isa(e,i.Dimension)},isstring:function(e){return this._isa(e,i.Quoted)},iskeyword:function(e){return this._isa(e,i.Keyword)},isurl:function(e){return this._isa(e,i.URL)},ispixel:function(e){return this.isunit(e,"px")},ispercentage:function(e){return this.isunit(e,"%")},isem:function(e){return this.isunit(e,"em")},isunit:function(e,t){return e instanceof i.Dimension&&e.unit.is(t.value||t)?i.True:i.False},_isa:function(e,t){return e instanceof t?i.True:i.False},multiply:function(e,t){var n=e.rgb[0]*t.rgb[0]/255,i=e.rgb[1]*t.rgb[1]/255,r=e.rgb[2]*t.rgb[2]/255;return this.rgb(n,i,r)},screen:function(e,t){var n=255-(255-e.rgb[0])*(255-t.rgb[0])/255,i=255-(255-e.rgb[1])*(255-t.rgb[1])/255,r=255-(255-e.rgb[2])*(255-t.rgb[2])/255;return this.rgb(n,i,r)},overlay:function(e,t){var n=e.rgb[0]<128?2*e.rgb[0]*t.rgb[0]/255:255-2*(255-e.rgb[0])*(255-t.rgb[0])/255,i=e.rgb[1]<128?2*e.rgb[1]*t.rgb[1]/255:255-2*(255-e.rgb[1])*(255-t.rgb[1])/255,r=e.rgb[2]<128?2*e.rgb[2]*t.rgb[2]/255:255-2*(255-e.rgb[2])*(255-t.rgb[2])/255;
return this.rgb(n,i,r)},softlight:function(e,t){var n=t.rgb[0]*e.rgb[0]/255,i=n+e.rgb[0]*(255-(255-e.rgb[0])*(255-t.rgb[0])/255-n)/255;n=t.rgb[1]*e.rgb[1]/255;var r=n+e.rgb[1]*(255-(255-e.rgb[1])*(255-t.rgb[1])/255-n)/255;n=t.rgb[2]*e.rgb[2]/255;var s=n+e.rgb[2]*(255-(255-e.rgb[2])*(255-t.rgb[2])/255-n)/255;return this.rgb(i,r,s)},hardlight:function(e,t){var n=t.rgb[0]<128?2*t.rgb[0]*e.rgb[0]/255:255-2*(255-t.rgb[0])*(255-e.rgb[0])/255,i=t.rgb[1]<128?2*t.rgb[1]*e.rgb[1]/255:255-2*(255-t.rgb[1])*(255-e.rgb[1])/255,r=t.rgb[2]<128?2*t.rgb[2]*e.rgb[2]/255:255-2*(255-t.rgb[2])*(255-e.rgb[2])/255;return this.rgb(n,i,r)},difference:function(e,t){var n=Math.abs(e.rgb[0]-t.rgb[0]),i=Math.abs(e.rgb[1]-t.rgb[1]),r=Math.abs(e.rgb[2]-t.rgb[2]);return this.rgb(n,i,r)},exclusion:function(e,t){var n=e.rgb[0]+t.rgb[0]*(255-e.rgb[0]-e.rgb[0])/255,i=e.rgb[1]+t.rgb[1]*(255-e.rgb[1]-e.rgb[1])/255,r=e.rgb[2]+t.rgb[2]*(255-e.rgb[2]-e.rgb[2])/255;return this.rgb(n,i,r)},average:function(e,t){var n=(e.rgb[0]+t.rgb[0])/2,i=(e.rgb[1]+t.rgb[1])/2,r=(e.rgb[2]+t.rgb[2])/2;return this.rgb(n,i,r)},negation:function(e,t){var n=255-Math.abs(255-t.rgb[0]-e.rgb[0]),i=255-Math.abs(255-t.rgb[1]-e.rgb[1]),r=255-Math.abs(255-t.rgb[2]-e.rgb[2]);return this.rgb(n,i,r)},tint:function(e,t){return this.mix(this.rgb(255,255,255),e,t)},shade:function(e,t){return this.mix(this.rgb(0,0,0),e,t)},extract:function(e,t){return t=t.value-1,Array.isArray(e.value)?e.value[t]:Array(e)[t]},length:function(e){var t=Array.isArray(e.value)?e.value.length:1;return new i.Dimension(t)},"data-uri":function(t,r){if("undefined"!=typeof e)return new i.URL(r||t,this.currentFileInfo).eval(this.env);var s=t.value,o=r&&r.value,a=n("fs"),l=n("path"),u=!1;if(arguments.length<2&&(o=s),this.env.isPathRelative(o)&&(o=this.currentFileInfo.relativeUrls?l.join(this.currentFileInfo.currentDirectory,o):l.join(this.currentFileInfo.entryPath,o)),arguments.length<2){var c;try{c=n("mime")}catch(h){c=i._mime}s=c.lookup(o);var f=c.charsets.lookup(s);u=["US-ASCII","UTF-8"].indexOf(f)<0,u&&(s+=";base64")}else u=/;base64$/.test(s);var p=a.readFileSync(o),m=32,d=parseInt(p.length/1024,10);if(d>=m&&this.env.ieCompat!==!1)return this.env.silent||console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",o,d,m),new i.URL(r||t,this.currentFileInfo).eval(this.env);p=u?p.toString("base64"):encodeURIComponent(p);var v="'data:"+s+","+p+"'";return new i.URL(new i.Anonymous(v))},"svg-gradient":function(e){function n(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]"}}arguments.length<3&&n();var r,s,o,a,l,u,c,h=Array.prototype.slice.call(arguments,1),f="linear",p='x="0" y="0" width="1" height="1"',m=!0,d={compress:!1},v=e.toCSS(d);switch(v){case"to bottom":r='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":r='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":r='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":r='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":f="radial",r='cx="50%" cy="50%" r="75%"',p='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(s='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+f+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+r+">",o=0;o<h.length;o+=1)h[o].value?(a=h[o].value[0],l=h[o].value[1]):(a=h[o],l=t),a instanceof i.Color&&((0===o||o+1===h.length)&&l===t||l instanceof i.Dimension)||n(),u=l?l.toCSS(d):0===o?"0%":"100%",c=a.alpha,s+='<stop offset="'+u+'" stop-color="'+a.toRGB()+'"'+(1>c?' stop-opacity="'+c+'"':"")+"/>";if(s+="</"+f+"Gradient><rect "+p+' fill="url(#gradient)" /></svg>',m)try{s=new Buffer(s).toString("base64")}catch(g){m=!1}return s="'data:image/svg+xml"+(m?";base64":"")+","+s+"'",new i.URL(new i.Anonymous(s))}},i._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(e){var r=n("path").extname(e),s=i._mime._types[r];if(s===t)throw new Error('Optional dependency "mime" is required for '+r);return s},charsets:{lookup:function(e){return e&&/^text\//.test(e)?"UTF-8":""}}};for(var l=[{name:"ceil"},{name:"floor"},{name:"sqrt"},{name:"abs"},{name:"tan",unit:""},{name:"sin",unit:""},{name:"cos",unit:""},{name:"atan",unit:"rad"},{name:"asin",unit:"rad"},{name:"acos",unit:"rad"}],u=function(e,t){return function(n){return null!=t&&(n=n.unify()),this._math(Math[e],t,n)}},c=0;c<l.length;c++)i.functions[l[c].name]=u(l[c].name,l[c].unit);i.functionCall=function(e,t){this.env=e,this.currentFileInfo=t},i.functionCall.prototype=i.functions}(n("./tree")),function(e){e.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"}}(n("./tree")),function(e){e.debugInfo=function(t,n,i){var r="";if(t.dumpLineNumbers&&!t.compress)switch(t.dumpLineNumbers){case"comments":r=e.debugInfo.asComment(n);break;case"mediaquery":r=e.debugInfo.asMediaQuery(n);break;case"all":r=e.debugInfo.asComment(n)+(i||"")+e.debugInfo.asMediaQuery(n)}return r},e.debugInfo.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},e.debugInfo.asMediaQuery=function(e){return"@media -sass-debug-info{filename{font-family:"+("file://"+e.debugInfo.fileName).replace(/([.:/\\])/g,function(e){return"\\"==e&&(e="/"),"\\"+e})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"},e.find=function(e,t){for(var n,i=0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null},e.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS(!1)}).join(", ")+"]":e.toCSS(!1)},e.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.outputRuleset=function(e,t,n){t.add(e.compress?"{":" {\n"),e.tabLevel=(e.tabLevel||0)+1;for(var i=e.compress?"":Array(e.tabLevel+1).join("  "),r=e.compress?"":Array(e.tabLevel).join("  "),s=0;s<n.length;s++)t.add(i),n[s].genCSS(e,t),t.add(e.compress?"":"\n");e.tabLevel--,t.add(r+"}")}}(n("./tree")),function(e){e.Alpha=function(e){this.value=e},e.Alpha.prototype={type:"Alpha",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return this.value.eval?new e.Alpha(this.value.eval(t)):this},genCSS:function(e,t){t.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value),t.add(")")},toCSS:e.toCSS}}(n("../tree")),function(e){e.Anonymous=function(e,t,n,i){this.value=e.value||e,this.index=t,this.mapLines=i,this.currentFileInfo=n},e.Anonymous.prototype={type:"Anonymous",eval:function(){return this},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1},genCSS:function(e,t){t.add(this.value,this.currentFileInfo,this.index,this.mapLines)},toCSS:e.toCSS}}(n("../tree")),function(e){e.Assignment=function(e,t){this.key=e,this.value=t},e.Assignment.prototype={type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return this.value.eval?new e.Assignment(this.key,this.value.eval(t)):this},genCSS:function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},toCSS:e.toCSS}}(n("../tree")),function(e){e.Call=function(e,t,n,i){this.name=e,this.args=t,this.index=n,this.currentFileInfo=i},e.Call.prototype={type:"Call",accept:function(e){this.args=e.visit(this.args)},eval:function(t){var n,i,r=this.args.map(function(e){return e.eval(t)}),s=this.name.toLowerCase();if(s in e.functions)try{if(i=new e.functionCall(t,this.currentFileInfo),n=i[s].apply(i,r),null!=n)return n}catch(o){throw{type:o.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(o.message?": "+o.message:""),index:this.index,filename:this.currentFileInfo.filename}}return new e.Call(this.name,r,this.index,this.currentFileInfo)},genCSS:function(e,t){t.add(this.name+"(",this.currentFileInfo,this.index);for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")},toCSS:e.toCSS}}(n("../tree")),function(e){e.Color=function(e,t){this.rgb=Array.isArray(e)?e:6==e.length?e.match(/.{2}/g).map(function(e){return parseInt(e,16)}):e.split("").map(function(e){return parseInt(e+e,16)}),this.alpha="number"==typeof t?t:1};var t="transparent";e.Color.prototype={type:"Color",eval:function(){return this},luma:function(){return.2126*this.rgb[0]/255+.7152*this.rgb[1]/255+.0722*this.rgb[2]/255},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e,n){var i=e&&e.compress&&!n;if(this.alpha<1)return 0===this.alpha&&this.isTransparentKeyword?t:"rgba("+this.rgb.map(function(e){return Math.round(e)}).concat(this.alpha).join(","+(i?"":" "))+")";var r=this.toRGB();if(i){var s=r.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(r="#"+s[1]+s[3]+s[5])}return r},operate:function(t,n,i){var r=[];i instanceof e.Color||(i=i.toColor());for(var s=0;3>s;s++)r[s]=e.operate(t,n,this.rgb[s],i.rgb[s]);return new e.Color(r,this.alpha+i.alpha)},toRGB:function(){return"#"+this.rgb.map(function(e){return e=Math.round(e),e=(e>255?255:0>e?0:e).toString(16),1===e.length?"0"+e:e}).join("")},toHSL:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(n,i,r),a=Math.min(n,i,r),l=(o+a)/2,u=o-a;if(o===a)e=t=0;else{switch(t=l>.5?u/(2-o-a):u/(o+a),o){case n:e=(i-r)/u+(r>i?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,l:l,a:s}},toHSV:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(n,i,r),a=Math.min(n,i,r),l=o,u=o-a;if(t=0===o?0:u/o,o===a)e=0;else{switch(o){case n:e=(i-r)/u+(r>i?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,v:l,a:s}},toARGB:function(){var e=[Math.round(255*this.alpha)].concat(this.rgb);return"#"+e.map(function(e){return e=Math.round(e),e=(e>255?255:0>e?0:e).toString(16),1===e.length?"0"+e:e}).join("")},compare:function(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:-1}},e.Color.fromKeyword=function(n){if(e.colors.hasOwnProperty(n))return new e.Color(e.colors[n].slice(1));if(n===t){var i=new e.Color([0,0,0],0);return i.isTransparentKeyword=!0,i}}}(n("../tree")),function(e){e.Comment=function(e,t,n,i){this.value=e,this.silent=!!t,this.currentFileInfo=i},e.Comment.prototype={type:"Comment",genCSS:function(t,n){this.debugInfo&&n.add(e.debugInfo(t,this),this.currentFileInfo,this.index),n.add(this.value.trim())},toCSS:e.toCSS,isSilent:function(e){var t=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,n=e.compress&&!this.value.match(/^\/\*!/);return this.silent||t||n},eval:function(){return this},markReferenced:function(){this.isReferenced=!0}}}(n("../tree")),function(e){e.Condition=function(e,t,n,i,r){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=i,this.negate=r},e.Condition.prototype={type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t,n=this.lvalue.eval(e),i=this.rvalue.eval(e),r=this.index;return t=function(e){switch(e){case"and":return n&&i;case"or":return n||i;default:if(n.compare)t=n.compare(i);else{if(!i.compare)throw{type:"Type",message:"Unable to perform comparison",index:r};t=i.compare(n)}switch(t){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e}}}(this.op),this.negate?!t:t}}}(n("../tree")),function(e){e.Dimension=function(n,i){this.value=parseFloat(n),this.unit=i&&i instanceof e.Unit?i:new e.Unit(i?[i]:t)},e.Dimension.prototype={type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(){return this},toColor:function(){return new e.Color([this.value,this.value,this.value])},genCSS:function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var n=this.value,i=String(n);if(0!==n&&1e-6>n&&n>-1e-6&&(i=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(i);n>0&&1>n&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},toCSS:e.toCSS,operate:function(t,n,i){var r=e.operate(t,n,this.value,i.value),s=this.unit.clone();if("+"===n||"-"===n)if(0===s.numerator.length&&0===s.denominator.length)s.numerator=i.unit.numerator.slice(0),s.denominator=i.unit.denominator.slice(0);else if(0===i.unit.numerator.length&&0===s.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),t.strictUnits&&i.unit.toString()!==s.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+s.toString()+"' and '"+i.unit.toString()+"'.");r=e.operate(t,n,this.value,i.value)}else"*"===n?(s.numerator=s.numerator.concat(i.unit.numerator).sort(),s.denominator=s.denominator.concat(i.unit.denominator).sort(),s.cancel()):"/"===n&&(s.numerator=s.numerator.concat(i.unit.denominator).sort(),s.denominator=s.denominator.concat(i.unit.numerator).sort(),s.cancel());return new e.Dimension(r,s)},compare:function(t){if(t instanceof e.Dimension){var n=this.unify(),i=t.unify(),r=n.value,s=i.value;return s>r?-1:r>s?1:i.unit.isEmpty()||0===n.unit.compare(i.unit)?0:-1}return-1},unify:function(){return this.convertTo({length:"m",duration:"s",angle:"rad"})},convertTo:function(t){var n,i,r,s,o,a=this.value,l=this.unit.clone(),u={};if("string"==typeof t){for(n in e.UnitConversions)e.UnitConversions[n].hasOwnProperty(t)&&(u={},u[n]=t);t=u}o=function(e,t){return r.hasOwnProperty(e)?(t?a/=r[e]/r[s]:a*=r[e]/r[s],s):e};for(i in t)t.hasOwnProperty(i)&&(s=t[i],r=e.UnitConversions[i],l.map(o));return l.cancel(),new e.Dimension(a,l)}},e.UnitConversions={length:{m:1,cm:.01,mm:.001,"in":.0254,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:.0025,turn:1}},e.Unit=function(e,t,n){this.numerator=e?e.slice(0).sort():[],this.denominator=t?t.slice(0).sort():[],this.backupUnit=n},e.Unit.prototype={type:"Unit",clone:function(){return new e.Unit(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},genCSS:function(e,t){this.numerator.length>=1?t.add(this.numerator[0]):this.denominator.length>=1?t.add(this.denominator[0]):e&&e.strictUnits||!this.backupUnit||t.add(this.backupUnit)},toCSS:e.toCSS,toString:function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},compare:function(e){return this.is(e.toString())?0:-1},is:function(e){return this.toString()===e},isLength:function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(e){var t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},usedUnits:function(){var t,n,i={};n=function(e){return t.hasOwnProperty(e)&&!i[r]&&(i[r]=e),e};for(var r in e.UnitConversions)e.UnitConversions.hasOwnProperty(r)&&(t=e.UnitConversions[r],this.map(n));return i},cancel:function(){var e,t,n,i={};for(t=0;t<this.numerator.length;t++)e=this.numerator[t],n||(n=e),i[e]=(i[e]||0)+1;for(t=0;t<this.denominator.length;t++)e=this.denominator[t],n||(n=e),i[e]=(i[e]||0)-1;this.numerator=[],this.denominator=[];for(e in i)if(i.hasOwnProperty(e)){var r=i[e];if(r>0)for(t=0;r>t;t++)this.numerator.push(e);else if(0>r)for(t=0;-r>t;t++)this.denominator.push(e)}0===this.numerator.length&&0===this.denominator.length&&n&&(this.backupUnit=n),this.numerator.sort(),this.denominator.sort()}}}(n("../tree")),function(e){e.Directive=function(t,n,i,r){this.name=t,Array.isArray(n)?(this.rules=[new e.Ruleset([],n)],this.rules[0].allowImports=!0):this.value=n,this.currentFileInfo=r},e.Directive.prototype={type:"Directive",accept:function(e){this.rules=e.visit(this.rules),this.value=e.visit(this.value)},genCSS:function(t,n){n.add(this.name,this.currentFileInfo,this.index),this.rules?e.outputRuleset(t,n,this.rules):(n.add(" "),this.value.genCSS(t,n),n.add(";"))},toCSS:e.toCSS,eval:function(t){var n=this;return this.rules&&(t.frames.unshift(this),n=new e.Directive(this.name,null,this.index,this.currentFileInfo),n.rules=[this.rules[0].eval(t)],n.rules[0].root=!0,t.frames.shift()),n},variable:function(t){return e.Ruleset.prototype.variable.call(this.rules[0],t)},find:function(){return e.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return e.Ruleset.prototype.rulesets.apply(this.rules[0])},markReferenced:function(){var e,t;if(this.isReferenced=!0,this.rules)for(t=this.rules[0].rules,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()}}}(n("../tree")),function(e){e.Element=function(t,n,i,r){this.combinator=t instanceof e.Combinator?t:new e.Combinator(t),this.value="string"==typeof n?n.trim():n?n:"",this.index=i,this.currentFileInfo=r},e.Element.prototype={type:"Element",accept:function(e){this.combinator=e.visit(this.combinator),this.value=e.visit(this.value)},eval:function(t){return new e.Element(this.combinator,this.value.eval?this.value.eval(t):this.value,this.index,this.currentFileInfo)},genCSS:function(e,t){t.add(this.toCSS(e),this.currentFileInfo,this.index)},toCSS:function(e){var t=this.value.toCSS?this.value.toCSS(e):this.value;return""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e||{})+t}},e.Attribute=function(e,t,n){this.key=e,this.op=t,this.value=n},e.Attribute.prototype={type:"Attribute",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return new e.Attribute(this.key.eval?this.key.eval(t):this.key,this.op,this.value&&this.value.eval?this.value.eval(t):this.value)},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"}},e.Combinator=function(e){this.value=" "===e?" ":e?e.trim():""},e.Combinator.prototype={type:"Combinator",_outputMap:{"":""," ":" ",":":" :","+":" + ","~":" ~ ",">":" > ","|":"|"},_outputMapCompressed:{"":""," ":" ",":":" :","+":"+","~":"~",">":">","|":"|"},genCSS:function(e,t){t.add((e.compress?this._outputMapCompressed:this._outputMap)[this.value])},toCSS:e.toCSS}}(n("../tree")),function(e){e.Expression=function(e){this.value=e},e.Expression.prototype={type:"Expression",accept:function(e){this.value=e.visit(this.value)},eval:function(t){var n,i=this.parens&&!this.parensInOp,r=!1;return i&&t.inParenthesis(),this.value.length>1?n=new e.Expression(this.value.map(function(e){return e.eval(t)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(r=!0),n=this.value[0].eval(t)):n=this,i&&t.outOfParenthesis(),this.parens&&this.parensInOp&&!t.isMathOn()&&!r&&(n=new e.Paren(n)),n},genCSS:function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(" ")},toCSS:e.toCSS,throwAwayComments:function(){this.value=this.value.filter(function(t){return!(t instanceof e.Comment)})}}}(n("../tree")),function(e){e.Extend=function(e,t,n){switch(this.selector=e,this.option=t,this.index=n,t){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}},e.Extend.prototype={type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(t){return new e.Extend(this.selector.eval(t),this.option,this.index)},clone:function(){return new e.Extend(this.selector,this.option,this.index)},findSelfSelectors:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),i=i.concat(e[t].elements);this.selfSelectors=[{elements:i}]}}}(n("../tree")),function(e){e.Import=function(e,n,i,r,s){if(this.options=i,this.index=r,this.path=e,this.features=n,this.currentFileInfo=s,this.options.less!==t||this.options.inline)this.css=!this.options.less||this.options.inline;else{var o=this.getPath();o&&/css([\?;].*)?$/.test(o)&&(this.css=!0)}},e.Import.prototype={type:"Import",accept:function(e){this.features=e.visit(this.features),this.path=e.visit(this.path),this.options.inline||(this.root=e.visit(this.root))},genCSS:function(e,t){this.css&&(t.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},toCSS:e.toCSS,getPath:function(){if(this.path instanceof e.Quoted){var n=this.path.value;return this.css!==t||/(\.[a-z]*$)|([\?;].*)$/.test(n)?n:n+".less"}return this.path instanceof e.URL?this.path.value.value:null},evalForImport:function(t){return new e.Import(this.path.eval(t),this.features,this.options,this.index,this.currentFileInfo)},evalPath:function(t){var n=this.path.eval(t),i=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(n instanceof e.URL)){if(i){var r=n.value;r&&t.isPathRelative(r)&&(n.value=i+r)}n.value=t.normalizePath(n.value)}return n},eval:function(t){var n,i=this.features&&this.features.eval(t);if(this.skip)return[];if(this.options.inline){var r=new e.Anonymous(this.root,0,{filename:this.importedFilename},(!0));return this.features?new e.Media([r],this.features.value):[r]}if(this.css){var s=new e.Import(this.evalPath(t),i,this.options,this.index);if(!s.css&&this.error)throw this.error;return s}return n=new e.Ruleset([],this.root.rules.slice(0)),n.evalImports(t),this.features?new e.Media(n.rules,this.features.value):n.rules}}}(n("../tree")),function(e){e.JavaScript=function(e,t,n){this.escaped=n,this.expression=e,this.index=t},e.JavaScript.prototype={type:"JavaScript",eval:function(t){var n,i=this,r={},s=this.expression.replace(/@\{([\w-]+)\}/g,function(n,r){return e.jsify(new e.Variable("@"+r,i.index).eval(t))});try{s=new Function("return ("+s+")")}catch(o){throw{message:"JavaScript evaluation error: "+o.message+" from `"+s+"`",index:this.index}}for(var a in t.frames[0].variables())r[a.slice(1)]={value:t.frames[0].variables()[a].value,toJS:function(){return this.value.eval(t).toCSS()}};try{n=s.call(r)}catch(o){throw{message:"JavaScript evaluation error: '"+o.name+": "+o.message+"'",index:this.index}}return"string"==typeof n?new e.Quoted('"'+n+'"',n,this.escaped,this.index):Array.isArray(n)?new e.Anonymous(n.join(", ")):new e.Anonymous(n)}}}(n("../tree")),function(e){e.Keyword=function(e){this.value=e},e.Keyword.prototype={type:"Keyword",eval:function(){return this},genCSS:function(e,t){t.add(this.value)},toCSS:e.toCSS,compare:function(t){return t instanceof e.Keyword?t.value===this.value?0:1:-1}},e.True=new e.Keyword("true"),e.False=new e.Keyword("false")}(n("../tree")),function(e){e.Media=function(t,n,i,r){this.index=i,this.currentFileInfo=r;var s=this.emptySelectors();this.features=new e.Value(n),this.rules=[new e.Ruleset(s,t)],this.rules[0].allowImports=!0},e.Media.prototype={type:"Media",accept:function(e){this.features=e.visit(this.features),this.rules=e.visit(this.rules)},genCSS:function(t,n){n.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(t,n),e.outputRuleset(t,n,this.rules)},toCSS:e.toCSS,eval:function(t){t.mediaBlocks||(t.mediaBlocks=[],t.mediaPath=[]);var n=new e.Media([],[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,n.debugInfo=this.debugInfo);var i=!1;t.strictMath||(i=!0,t.strictMath=!0);try{n.features=this.features.eval(t)}finally{i&&(t.strictMath=!1)}return t.mediaPath.push(n),t.mediaBlocks.push(n),t.frames.unshift(this.rules[0]),n.rules=[this.rules[0].eval(t)],t.frames.shift(),t.mediaPath.pop(),0===t.mediaPath.length?n.evalTop(t):n.evalNested(t)},variable:function(t){return e.Ruleset.prototype.variable.call(this.rules[0],t)},find:function(){return e.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return e.Ruleset.prototype.rulesets.apply(this.rules[0])},emptySelectors:function(){var t=new e.Element("","&",this.index,this.currentFileInfo);return[new e.Selector([t],null,null,this.index,this.currentFileInfo)]},markReferenced:function(){var e,t=this.rules[0].rules;for(this.isReferenced=!0,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()},evalTop:function(t){var n=this;if(t.mediaBlocks.length>1){var i=this.emptySelectors();n=new e.Ruleset(i,t.mediaBlocks),n.multiMedia=!0}return delete t.mediaBlocks,delete t.mediaPath,n},evalNested:function(t){var n,i,r=t.mediaPath.concat([this]);for(n=0;n<r.length;n++)i=r[n].features instanceof e.Value?r[n].features.value:r[n].features,r[n]=Array.isArray(i)?i:[i];return this.features=new e.Value(this.permute(r).map(function(t){for(t=t.map(function(t){return t.toCSS?t:new e.Anonymous(t)}),n=t.length-1;n>0;n--)t.splice(n,0,new e.Anonymous("and"));return new e.Expression(t)})),new e.Ruleset([],[])},permute:function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),i=0;i<n.length;i++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(n[i]));return t},bubbleSelectors:function(t){this.rules=[new e.Ruleset(t.slice(0),[this.rules[0]])]}}}(n("../tree")),function(e){e.mixin={},e.mixin.Call=function(t,n,i,r,s){this.selector=new e.Selector(t),this.arguments=n,this.index=i,this.currentFileInfo=r,this.important=s},e.mixin.Call.prototype={type:"MixinCall",accept:function(e){this.selector=e.visit(this.selector),this.arguments=e.visit(this.arguments)},eval:function(t){var n,i,r,s,o,a,l,u,c,h=[],f=!1;for(r=this.arguments&&this.arguments.map(function(e){return{name:e.name,value:e.value.eval(t)}}),s=0;s<t.frames.length;s++)if((n=t.frames[s].find(this.selector)).length>0){for(u=!0,o=0;o<n.length;o++){for(i=n[o],l=!1,a=0;a<t.frames.length;a++)if(!(i instanceof e.mixin.Definition)&&i===(t.frames[a].originalRuleset||t.frames[a])){l=!0;break}if(!l&&i.matchArgs(r,t)){if(!i.matchCondition||i.matchCondition(r,t))try{i instanceof e.mixin.Definition||(i=new e.mixin.Definition("",[],i.rules,null,(!1)),i.originalRuleset=n[o].originalRuleset||n[o]),Array.prototype.push.apply(h,i.eval(t,r,this.important).rules)}catch(p){throw{message:p.message,index:this.index,filename:this.currentFileInfo.filename,stack:p.stack}}f=!0}}if(f){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(s=0;s<h.length;s++)c=h[s],c.markReferenced&&c.markReferenced();return h}}throw u?{type:"Runtime",message:"No matching definition was found for `"+this.selector.toCSS().trim()+"("+(r?r.map(function(e){var t="";return e.name&&(t+=e.name+":"),t+=e.value.toCSS?e.value.toCSS():"???"}).join(", "):"")+")`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}}},e.mixin.Definition=function(t,n,i,r,s){this.name=t,this.selectors=[new e.Selector([new e.Element(null,t,this.index,this.currentFileInfo)])],this.params=n,this.condition=r,this.variadic=s,this.arity=n.length,this.rules=i,this._lookups={},this.required=n.reduce(function(e,t){return!t.name||t.name&&!t.value?e+1:e},0),this.parent=e.Ruleset.prototype,this.frames=[]},e.mixin.Definition.prototype={type:"MixinDefinition",accept:function(e){this.params=e.visit(this.params),this.rules=e.visit(this.rules),this.condition=e.visit(this.condition)},variable:function(e){return this.parent.variable.call(this,e)},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(t,n,i,r){var s,o,a,l,u,c,h,f,p=new e.Ruleset(null,[]),m=this.params.slice(0);if(n=new e.evalEnv(n,[p].concat(n.frames)),i)for(i=i.slice(0),a=0;a<i.length;a++)if(o=i[a],c=o&&o.name){for(h=!1,l=0;l<m.length;l++)if(!r[l]&&c===m[l].name){r[l]=o.value.eval(t),p.rules.unshift(new e.Rule(c,o.value.eval(t))),h=!0;break}if(h){i.splice(a,1),a--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+i[a].name+" not found"}}for(f=0,a=0;a<m.length;a++)if(!r[a]){if(o=i&&i[f],c=m[a].name)if(m[a].variadic&&i){for(s=[],l=f;l<i.length;l++)s.push(i[l].value.eval(t));p.rules.unshift(new e.Rule(c,new e.Expression(s).eval(t)))}else{if(u=o&&o.value)u=u.eval(t);else{if(!m[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+i.length+" for "+this.arity+")"};u=m[a].value.eval(n),p.resetCache()}p.rules.unshift(new e.Rule(c,u)),r[a]=u}if(m[a].variadic&&i)for(l=f;l<i.length;l++)r[l]=i[l].value.eval(t);f++}return p},eval:function(t,n,i){var r,s,o=[],a=this.frames.concat(t.frames),l=this.evalParams(t,new e.evalEnv(t,a),n,o);return l.rules.unshift(new e.Rule("@arguments",new e.Expression(o).eval(t))),r=this.rules.slice(0),s=new e.Ruleset(null,r),s.originalRuleset=this,s=s.eval(new e.evalEnv(t,[this,l].concat(a))),i&&(s=this.parent.makeImportant.apply(s)),s},matchCondition:function(t,n){
return!(this.condition&&!this.condition.eval(new e.evalEnv(n,[this.evalParams(n,new e.evalEnv(n,this.frames.concat(n.frames)),t,[])].concat(this.frames).concat(n.frames))))},matchArgs:function(e,t){var n,i=e&&e.length||0;if(this.variadic){if(i<this.required-1)return!1}else{if(i<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(i,this.arity);for(var r=0;n>r;r++)if(!this.params[r].name&&!this.params[r].variadic&&e[r].value.eval(t).toCSS()!=this.params[r].value.eval(t).toCSS())return!1;return!0}}}(n("../tree")),function(e){e.Negative=function(e){this.value=e},e.Negative.prototype={type:"Negative",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},toCSS:e.toCSS,eval:function(t){return t.isMathOn()?new e.Operation("*",[new e.Dimension((-1)),this.value]).eval(t):new e.Negative(this.value.eval(t))}}}(n("../tree")),function(e){e.Operation=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n},e.Operation.prototype={type:"Operation",accept:function(e){this.operands=e.visit(this.operands)},eval:function(t){var n,i=this.operands[0].eval(t),r=this.operands[1].eval(t);if(t.isMathOn()){if(i instanceof e.Dimension&&r instanceof e.Color){if("*"!==this.op&&"+"!==this.op)throw{type:"Operation",message:"Can't substract or divide a color from a number"};n=r,r=i,i=n}if(!i.operate)throw{type:"Operation",message:"Operation on an invalid type"};return i.operate(t,this.op,r)}return new e.Operation(this.op,[i,r],this.isSpaced)},genCSS:function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)},toCSS:e.toCSS},e.operate=function(e,t,n,i){switch(t){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"/":return n/i}}}(n("../tree")),function(e){e.Paren=function(e){this.value=e},e.Paren.prototype={type:"Paren",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},toCSS:e.toCSS,eval:function(t){return new e.Paren(this.value.eval(t))}}}(n("../tree")),function(e){e.Quoted=function(e,t,n,i,r){this.escaped=n,this.value=t||"",this.quote=e.charAt(0),this.index=i,this.currentFileInfo=r},e.Quoted.prototype={type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.currentFileInfo,this.index),t.add(this.value),this.escaped||t.add(this.quote)},toCSS:e.toCSS,eval:function(t){var n=this,i=this.value.replace(/`([^`]+)`/g,function(i,r){return new e.JavaScript(r,n.index,(!0)).eval(t).value}).replace(/@\{([\w-]+)\}/g,function(i,r){var s=new e.Variable("@"+r,n.index,n.currentFileInfo).eval(t,!0);return s instanceof e.Quoted?s.value:s.toCSS()});return new e.Quoted(this.quote+i+this.quote,i,this.escaped,this.index,this.currentFileInfo)},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1}}}(n("../tree")),function(e){e.Rule=function(t,n,i,r,s,o,a){this.name=t,this.value=n instanceof e.Value?n:new e.Value([n]),this.important=i?" "+i.trim():"",this.merge=r,this.index=s,this.currentFileInfo=o,this.inline=a||!1,this.variable="@"===t.charAt(0)},e.Rule.prototype={type:"Rule",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(e,t)}catch(n){throw n.index=this.index,n.filename=this.currentFileInfo.filename,n}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this.currentFileInfo,this.index)},toCSS:e.toCSS,eval:function(t){var n=!1;"font"!==this.name||t.strictMath||(n=!0,t.strictMath=!0);try{return new e.Rule(this.name,this.value.eval(t),this.important,this.merge,this.index,this.currentFileInfo,this.inline)}finally{n&&(t.strictMath=!1)}},makeImportant:function(){return new e.Rule(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)}}}(n("../tree")),function(e){e.Ruleset=function(e,t,n){this.selectors=e,this.rules=t,this._lookups={},this.strictImports=n},e.Ruleset.prototype={type:"Ruleset",accept:function(e){if(this.paths)for(var t=0;t<this.paths.length;t++)this.paths[t]=e.visit(this.paths[t]);else this.selectors=e.visit(this.selectors);this.rules=e.visit(this.rules)},eval:function(t){var n,i,r,s=this.selectors&&this.selectors.map(function(e){return e.eval(t)}),o=new e.Ruleset(s,this.rules.slice(0),this.strictImports);for(o.originalRuleset=this,o.root=this.root,o.firstRoot=this.firstRoot,o.allowImports=this.allowImports,this.debugInfo&&(o.debugInfo=this.debugInfo),t.frames.unshift(o),t.selectors||(t.selectors=[]),t.selectors.unshift(this.selectors),(o.root||o.allowImports||!o.strictImports)&&o.evalImports(t),r=0;r<o.rules.length;r++)o.rules[r]instanceof e.mixin.Definition&&(o.rules[r].frames=t.frames.slice(0));var a=t.mediaBlocks&&t.mediaBlocks.length||0;for(r=0;r<o.rules.length;r++)o.rules[r]instanceof e.mixin.Call&&(n=o.rules[r].eval(t).filter(function(t){return!(t instanceof e.Rule&&t.variable)||!o.variable(t.name)}),o.rules.splice.apply(o.rules,[r,1].concat(n)),r+=n.length-1,o.resetCache());for(r=0;r<o.rules.length;r++)i=o.rules[r],i instanceof e.mixin.Definition||(o.rules[r]=i.eval?i.eval(t):i);if(t.frames.shift(),t.selectors.shift(),t.mediaBlocks)for(r=a;r<t.mediaBlocks.length;r++)t.mediaBlocks[r].bubbleSelectors(s);return o},evalImports:function(t){var n,i;for(n=0;n<this.rules.length;n++)this.rules[n]instanceof e.Import&&(i=this.rules[n].eval(t),"number"==typeof i.length?(this.rules.splice.apply(this.rules,[n,1].concat(i)),n+=i.length-1):this.rules.splice(n,1,i),this.resetCache())},makeImportant:function(){return new e.Ruleset(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports)},matchArgs:function(e){return!e||0===e.length},matchCondition:function(t,n){var i=this.selectors[this.selectors.length-1];return!(i.condition&&!i.condition.eval(new e.evalEnv(n,n.frames)))},resetCache:function(){this._rulesets=null,this._variables=null,this._lookups={}},variables:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(t,n){return n instanceof e.Rule&&n.variable===!0&&(t[n.name]=n),t},{})},variable:function(e){return this.variables()[e]},rulesets:function(){return this.rules.filter(function(t){return t instanceof e.Ruleset||t instanceof e.mixin.Definition})},find:function(t,n){n=n||this;var i,r=[],s=t.toCSS();return s in this._lookups?this._lookups[s]:(this.rulesets().forEach(function(s){if(s!==n)for(var o=0;o<s.selectors.length;o++)if(i=t.match(s.selectors[o])){t.elements.length>i?Array.prototype.push.apply(r,s.find(new e.Selector(t.elements.slice(i)),n)):r.push(s);break}}),this._lookups[s]=r)},genCSS:function(t,n){var i,r,s,o,a,l=[],u=[],c=!0;t.tabLevel=t.tabLevel||0,this.root||t.tabLevel++;var h=t.compress?"":Array(t.tabLevel+1).join("  "),f=t.compress?"":Array(t.tabLevel).join("  ");for(i=0;i<this.rules.length;i++)o=this.rules[i],o.rules||o instanceof e.Media||o instanceof e.Directive||this.root&&o instanceof e.Comment?u.push(o):l.push(o);if(!this.root){for(s=e.debugInfo(t,this,f),s&&(n.add(s),n.add(f)),i=0;i<this.paths.length;i++){for(a=this.paths[i],t.firstSelector=!0,r=0;r<a.length;r++)a[r].genCSS(t,n),t.firstSelector=!1;i+1<this.paths.length&&n.add(t.compress?",":",\n"+f)}n.add((t.compress?"{":" {\n")+h)}for(i=0;i<l.length;i++)o=l[i],i+1!==l.length||this.root&&0!==u.length&&!this.firstRoot||(t.lastRule=!0),o.genCSS?o.genCSS(t,n):o.value&&n.add(o.value.toString()),t.lastRule?t.lastRule=!1:n.add(t.compress?"":"\n"+h);for(this.root||(n.add(t.compress?"}":"\n"+f+"}"),t.tabLevel--),i=0;i<u.length;i++)l.length&&c&&n.add((t.compress?"":"\n")+(this.root?h:f)),c||n.add((t.compress?"":"\n")+(this.root?h:f)),c=!1,u[i].genCSS(t,n);n.isEmpty()||t.compress||!this.firstRoot||n.add("\n")},toCSS:e.toCSS,markReferenced:function(){for(var e=0;e<this.selectors.length;e++)this.selectors[e].markReferenced()},joinSelectors:function(e,t,n){for(var i=0;i<n.length;i++)this.joinSelector(e,t,n[i])},joinSelector:function(t,n,i){var r,s,o,a,l,u,c,h,f,p,m,d,v,g,b;for(r=0;r<i.elements.length;r++)u=i.elements[r],"&"===u.value&&(a=!0);if(a){for(g=[],l=[[]],r=0;r<i.elements.length;r++)if(u=i.elements[r],"&"!==u.value)g.push(u);else{for(b=[],g.length>0&&this.mergeElementsOnToSelectors(g,l),s=0;s<l.length;s++)if(c=l[s],0===n.length)c.length>0&&(c[0].elements=c[0].elements.slice(0),c[0].elements.push(new e.Element(u.combinator,"",0,u.index,u.currentFileInfo))),b.push(c);else for(o=0;o<n.length;o++)h=n[o],f=[],p=[],d=!0,c.length>0?(f=c.slice(0),v=f.pop(),m=i.createDerived(v.elements.slice(0)),d=!1):m=i.createDerived([]),h.length>1&&(p=p.concat(h.slice(1))),h.length>0&&(d=!1,m.elements.push(new e.Element(u.combinator,h[0].elements[0].value,u.index,u.currentFileInfo)),m.elements=m.elements.concat(h[0].elements.slice(1))),d||f.push(m),f=f.concat(p),b.push(f);l=b,g=[]}for(g.length>0&&this.mergeElementsOnToSelectors(g,l),r=0;r<l.length;r++)l[r].length>0&&t.push(l[r])}else if(n.length>0)for(r=0;r<n.length;r++)t.push(n[r].concat(i));else t.push([i])},mergeElementsOnToSelectors:function(t,n){var i,r;if(0===n.length)return void n.push([new e.Selector(t)]);for(i=0;i<n.length;i++)r=n[i],r.length>0?r[r.length-1]=r[r.length-1].createDerived(r[r.length-1].elements.concat(t)):r.push(new e.Selector(t))}}}(n("../tree")),function(e){e.Selector=function(e,t,n,i,r,s){this.elements=e,this.extendList=t||[],this.condition=n,this.currentFileInfo=r||{},this.isReferenced=s,n||(this.evaldCondition=!0)},e.Selector.prototype={type:"Selector",accept:function(e){this.elements=e.visit(this.elements),this.extendList=e.visit(this.extendList),this.condition=e.visit(this.condition)},createDerived:function(t,n,i){i=null!=i?i:this.evaldCondition;var r=new e.Selector(t,n||this.extendList,this.condition,this.index,this.currentFileInfo,this.isReferenced);return r.evaldCondition=i,r},match:function(e){var t,n,i,r,s=this.elements,o=s.length;if(t=e.elements.slice(e.elements.length&&"&"===e.elements[0].value?1:0),n=t.length,i=Math.min(o,n),0===n||n>o)return 0;for(r=0;i>r;r++)if(s[r].value!==t[r].value)return 0;return i},eval:function(e){var t=this.condition&&this.condition.eval(e);return this.createDerived(this.elements.map(function(t){return t.eval(e)}),this.extendList.map(function(t){return t.eval(e)}),t)},genCSS:function(e,t){var n,i;if(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.currentFileInfo,this.index),!this._css)for(n=0;n<this.elements.length;n++)i=this.elements[n],i.genCSS(e,t)},toCSS:e.toCSS,markReferenced:function(){this.isReferenced=!0},getIsReferenced:function(){return!this.currentFileInfo.reference||this.isReferenced},getIsOutput:function(){return this.evaldCondition}}}(n("../tree")),function(e){e.UnicodeDescriptor=function(e){this.value=e},e.UnicodeDescriptor.prototype={type:"UnicodeDescriptor",genCSS:function(e,t){t.add(this.value)},toCSS:e.toCSS,eval:function(){return this}}}(n("../tree")),function(e){e.URL=function(e,t){this.value=e,this.currentFileInfo=t},e.URL.prototype={type:"Url",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},toCSS:e.toCSS,eval:function(t){var n,i=this.value.eval(t);return n=this.currentFileInfo&&this.currentFileInfo.rootpath,n&&"string"==typeof i.value&&t.isPathRelative(i.value)&&(i.quote||(n=n.replace(/[\(\)'"\s]/g,function(e){return"\\"+e})),i.value=n+i.value),i.value=t.normalizePath(i.value),new e.URL(i,null)}}}(n("../tree")),function(e){e.Value=function(e){this.value=e},e.Value.prototype={type:"Value",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return 1===this.value.length?this.value[0].eval(t):new e.Value(this.value.map(function(e){return e.eval(t)}))},genCSS:function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")},toCSS:e.toCSS}}(n("../tree")),function(e){e.Variable=function(e,t,n){this.name=e,this.index=t,this.currentFileInfo=n},e.Variable.prototype={type:"Variable",eval:function(t){var n,i,r=this.name;if(0===r.indexOf("@@")&&(r="@"+new e.Variable(r.slice(1)).eval(t).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+r,filename:this.currentFileInfo.file,index:this.index};if(this.evaluating=!0,n=e.find(t.frames,function(e){return(i=e.variable(r))?i.value.eval(t):void 0}))return this.evaluating=!1,n;throw{type:"Name",message:"variable "+r+" is undefined",filename:this.currentFileInfo.filename,index:this.index}}}}(n("../tree")),function(e){var t=["paths","optimization","files","contents","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","processImports","syncImport","javascriptEnabled","mime","useFileCache","currentFileInfo"];e.parseEnv=function(e){if(i(e,this,t),this.contents||(this.contents={}),this.files||(this.files={}),!this.currentFileInfo){var n=e&&e.filename||"input",r=n.replace(/[^\/\\]*$/,"");e&&(e.filename=null),this.currentFileInfo={filename:n,relativeUrls:this.relativeUrls,rootpath:e&&e.rootpath||"",currentDirectory:r,entryPath:r,rootFilename:n}}};var n=["silent","verbose","compress","yuicompress","ieCompat","strictMath","strictUnits","cleancss","sourceMap","importMultiple"];e.evalEnv=function(e,t){i(e,this,n),this.frames=t||[]},e.evalEnv.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},e.evalEnv.prototype.outOfParenthesis=function(){this.parensStack.pop()},e.evalEnv.prototype.isMathOn=function(){return!this.strictMath||this.parensStack&&this.parensStack.length},e.evalEnv.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/)/.test(e)},e.evalEnv.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")};var i=function(e,t,n){if(e)for(var i=0;i<n.length;i++)e.hasOwnProperty(n[i])&&(t[n[i]]=e[n[i]])}}(n("./tree")),function(e){e.visitor=function(e){this._implementation=e},e.visitor.prototype={visit:function(e){if(e instanceof Array)return this.visitArray(e);if(!e||!e.type)return e;var t,n,i="visit"+e.type,r=this._implementation[i];return r&&(t={visitDeeper:!0},n=r.call(this._implementation,e,t),this._implementation.isReplacing&&(e=n)),(!t||t.visitDeeper)&&e&&e.accept&&e.accept(this),i+="Out",this._implementation[i]&&this._implementation[i](e),e},visitArray:function(e){var t,n=[];for(t=0;t<e.length;t++){var i=this.visit(e[t]);i instanceof Array?(i=this.flatten(i),n=n.concat(i)):n.push(i)}return this._implementation.isReplacing?n:e},doAccept:function(e){e.accept(this)},flatten:function(e,t){return e.reduce(this.flattenReduce.bind(this),t||[])},flattenReduce:function(e,t){return t instanceof Array?e=this.flatten(t,e):e.push(t),e}}}(n("./tree")),function(e){e.importVisitor=function(t,n,i){this._visitor=new e.visitor(this),this._importer=t,this._finish=n,this.env=i||new e.evalEnv,this.importCount=0},e.importVisitor.prototype={isReplacing:!0,run:function(e){var t;try{this._visitor.visit(e)}catch(n){t=n}this.isFinished=!0,0===this.importCount&&this._finish(t)},visitImport:function(t,n){var i,r=this,s=t.options.inline;if(!t.css||s){try{i=t.evalForImport(this.env)}catch(o){o.filename||(o.index=t.index,o.filename=t.currentFileInfo.filename),t.css=!0,t.error=o}if(i&&(!i.css||s)){t=i,this.importCount++;var a=new e.evalEnv(this.env,this.env.frames.slice(0));t.options.multiple&&(a.importMultiple=!0),this._importer.push(t.getPath(),t.currentFileInfo,t.options,function(n,i,o,l){n&&!n.filename&&(n.index=t.index,n.filename=t.currentFileInfo.filename),o&&!a.importMultiple&&(t.skip=o);var u=function(e){r.importCount--,0===r.importCount&&r.isFinished&&r._finish(e)};return!i||(t.root=i,t.importedFilename=l,s||t.skip)?void u():void new e.importVisitor(r._importer,u,a).run(i)})}}return n.visitDeeper=!1,t},visitRule:function(e,t){return t.visitDeeper=!1,e},visitDirective:function(e){return this.env.frames.unshift(e),e},visitDirectiveOut:function(){this.env.frames.shift()},visitMixinDefinition:function(e){return this.env.frames.unshift(e),e},visitMixinDefinitionOut:function(){this.env.frames.shift()},visitRuleset:function(e){return this.env.frames.unshift(e),e},visitRulesetOut:function(){this.env.frames.shift()},visitMedia:function(e){return this.env.frames.unshift(e.ruleset),e},visitMediaOut:function(){this.env.frames.shift()}}}(n("./tree")),function(e){e.joinSelectorVisitor=function(){this.contexts=[[]],this._visitor=new e.visitor(this)},e.joinSelectorVisitor.prototype={run:function(e){return this._visitor.visit(e)},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e){var t=this.contexts[this.contexts.length-1],n=[];this.contexts.push(n),e.root||(e.selectors=e.selectors.filter(function(e){return e.getIsOutput()}),0===e.selectors.length&&(e.rules.length=0),e.joinSelectors(n,t,e.selectors),e.paths=n)},visitRulesetOut:function(){this.contexts.length=this.contexts.length-1},visitMedia:function(e){var t=this.contexts[this.contexts.length-1];e.rules[0].root=0===t.length||t[0].multiMedia}}}(n("./tree")),function(e){e.toCSSVisitor=function(t){this._visitor=new e.visitor(this),this._env=t},e.toCSSVisitor.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitRule:function(e){return e.variable?[]:e},visitMixinDefinition:function(){return[]},visitExtend:function(){return[]},visitComment:function(e){return e.isSilent(this._env)?[]:e},visitMedia:function(e,t){return e.accept(this._visitor),t.visitDeeper=!1,e.rules.length?e:[]},visitDirective:function(t){if(t.currentFileInfo.reference&&!t.isReferenced)return[];if("@charset"===t.name){if(this.charset){if(t.debugInfo){var n=new e.Comment("/* "+t.toCSS(this._env).replace(/\n/g,"")+" */\n");return n.debugInfo=t.debugInfo,this._visitor.visit(n)}return[]}this.charset=!0}return t},checkPropertiesInRoot:function(t){for(var n,i=0;i<t.length;i++)if(n=t[i],n instanceof e.Rule&&!n.variable)throw{message:"properties must be inside selector blocks, they cannot be in the root.",index:n.index,filename:n.currentFileInfo?n.currentFileInfo.filename:null}},visitRuleset:function(t,n){var i,r=[];if(t.firstRoot&&this.checkPropertiesInRoot(t.rules),t.root)t.accept(this._visitor),n.visitDeeper=!1,(t.firstRoot||t.rules.length>0)&&r.splice(0,0,t);else{t.paths=t.paths.filter(function(t){var n;for(" "===t[0].elements[0].combinator.value&&(t[0].elements[0].combinator=new e.Combinator("")),n=0;n<t.length;n++)return!(!t[n].getIsReferenced()||!t[n].getIsOutput())});for(var s=0;s<t.rules.length;s++)i=t.rules[s],i.rules&&(r.push(this._visitor.visit(i)),t.rules.splice(s,1),s--);t.rules.length>0&&t.accept(this._visitor),n.visitDeeper=!1,this._mergeRules(t.rules),this._removeDuplicateRules(t.rules),t.rules.length>0&&t.paths.length>0&&r.splice(0,0,t)}return 1===r.length?r[0]:r},_removeDuplicateRules:function(t){var n,i,r,s={};for(r=t.length-1;r>=0;r--)if(i=t[r],i instanceof e.Rule)if(s[i.name]){n=s[i.name],n instanceof e.Rule&&(n=s[i.name]=[s[i.name].toCSS(this._env)]);var o=i.toCSS(this._env);-1!==n.indexOf(o)?t.splice(r,1):n.push(o)}else s[i.name]=i},_mergeRules:function(t){for(var n,i,r,s={},o=0;o<t.length;o++)i=t[o],i instanceof e.Rule&&i.merge&&(r=[i.name,i.important?"!":""].join(","),s[r]?t.splice(o--,1):n=s[r]=[],n.push(i));Object.keys(s).map(function(t){n=s[t],n.length>1&&(i=n[0],i.value=new e.Value(n.map(function(e){return e.value})))})}}}(n("./tree")),function(e){e.extendFinderVisitor=function(){this._visitor=new e.visitor(this),this.contexts=[],this.allExtendsStack=[[]]},e.extendFinderVisitor.prototype={run:function(e){return e=this._visitor.visit(e),e.allExtends=this.allExtendsStack[0],e},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(t){if(!t.root){var n,i,r,s,o=[];for(n=0;n<t.rules.length;n++)t.rules[n]instanceof e.Extend&&(o.push(t.rules[n]),t.extendOnEveryPath=!0);for(n=0;n<t.paths.length;n++){var a=t.paths[n],l=a[a.length-1];for(s=l.extendList.slice(0).concat(o).map(function(e){return e.clone()}),i=0;i<s.length;i++)this.foundExtends=!0,r=s[i],r.findSelfSelectors(a),r.ruleset=t,0===i&&(r.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(r)}this.contexts.push(t.selectors)}},visitRulesetOut:function(e){e.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(e){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}},e.processExtendsVisitor=function(){this._visitor=new e.visitor(this)},e.processExtendsVisitor.prototype={run:function(t){var n=new e.extendFinderVisitor;return n.run(t),n.foundExtends?(t.allExtends=t.allExtends.concat(this.doExtendChaining(t.allExtends,t.allExtends)),this.allExtendsStack=[t.allExtends],this._visitor.visit(t)):t},doExtendChaining:function(t,n,i){var r,s,o,a,l,u,c,h,f=[],p=this;for(i=i||0,r=0;r<t.length;r++)for(s=0;s<n.length;s++)u=t[r],c=n[s],this.inInheritanceChain(c,u)||(l=[c.selfSelectors[0]],o=p.findMatch(u,l),o.length&&u.selfSelectors.forEach(function(t){a=p.extendSelector(o,l,t),h=new e.Extend(c.selector,c.option,0),h.selfSelectors=a,a[a.length-1].extendList=[h],f.push(h),h.ruleset=c.ruleset,h.parents=[c,u],c.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))}));if(f.length){if(this.extendChainCount++,i>100){var m="{unable to calculate}",d="{unable to calculate}";try{m=f[0].selfSelectors[0].toCSS(),d=f[0].selector.toCSS()}catch(v){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+m+":extend("+d+")"}}return f.concat(p.doExtendChaining(f,n,i+1))}return f},inInheritanceChain:function(e,t){if(e===t)return!0;if(t.parents){if(this.inInheritanceChain(e,t.parents[0]))return!0;if(this.inInheritanceChain(e,t.parents[1]))return!0}return!1},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e){if(!e.root){var t,n,i,r,s=this.allExtendsStack[this.allExtendsStack.length-1],o=[],a=this;for(i=0;i<s.length;i++)for(n=0;n<e.paths.length;n++)r=e.paths[n],e.extendOnEveryPath||r[r.length-1].extendList.length||(t=this.findMatch(s[i],r),t.length&&s[i].selfSelectors.forEach(function(e){o.push(a.extendSelector(t,r,e))}));e.paths=e.paths.concat(o)}},findMatch:function(e,t){var n,i,r,s,o,a,l,u=this,c=e.selector.elements,h=[],f=[];for(n=0;n<t.length;n++)for(i=t[n],r=0;r<i.elements.length;r++)for(s=i.elements[r],(e.allowBefore||0===n&&0===r)&&h.push({pathIndex:n,index:r,matched:0,initialCombinator:s.combinator}),a=0;a<h.length;a++)l=h[a],o=s.combinator.value,""===o&&0===r&&(o=" "),!u.isElementValuesEqual(c[l.matched].value,s.value)||l.matched>0&&c[l.matched].combinator.value!==o?l=null:l.matched++,l&&(l.finished=l.matched===c.length,l.finished&&!e.allowAfter&&(r+1<i.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=c.length,l.endPathIndex=n,l.endPathElementIndex=r+1,h.length=0,f.push(l)):(h.splice(a,1),a--);return f},isElementValuesEqual:function(t,n){if("string"==typeof t||"string"==typeof n)return t===n;if(t instanceof e.Attribute)return t.op===n.op&&t.key===n.key&&(t.value&&n.value?(t=t.value.value||t.value,n=n.value.value||n.value,t===n):!t.value&&!n.value);if(t=t.value,n=n.value,t instanceof e.Selector){if(!(n instanceof e.Selector)||t.elements.length!==n.elements.length)return!1;for(var i=0;i<t.elements.length;i++){if(t.elements[i].combinator.value!==n.elements[i].combinator.value&&(0!==i||(t.elements[i].combinator.value||" ")!==(n.elements[i].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(t.elements[i].value,n.elements[i].value))return!1}return!0}return!1},extendSelector:function(t,n,i){var r,s,o,a,l,u=0,c=0,h=[];for(r=0;r<t.length;r++)a=t[r],s=n[a.pathIndex],o=new e.Element(a.initialCombinator,i.elements[0].value,i.elements[0].index,i.elements[0].currentFileInfo),a.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(n[u].elements.slice(c)),c=0,u++),l=s.elements.slice(c,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&r>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(n.slice(u,a.pathIndex)),h.push(new e.Selector(l))),u=a.endPathIndex,c=a.endPathElementIndex,c>=n[u].elements.length&&(c=0,u++);return u<n.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(n[u].elements.slice(c)),u++),h=h.concat(n.slice(u,n.length))},visitRulesetOut:function(){},visitMedia:function(e){var t=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);t=t.concat(this.doExtendChaining(t,e.allExtends)),this.allExtendsStack.push(t)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e){var t=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);t=t.concat(this.doExtendChaining(t,e.allExtends)),this.allExtendsStack.push(t)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}}}(n("./tree")),function(e){e.sourceMapOutput=function(e){this._css=[],this._rootNode=e.rootNode,this._writeSourceMap=e.writeSourceMap,this._contentsMap=e.contentsMap,this._sourceMapFilename=e.sourceMapFilename,this._outputFilename=e.outputFilename,this._sourceMapURL=e.sourceMapURL,this._sourceMapBasepath=e.sourceMapBasepath,this._sourceMapRootpath=e.sourceMapRootpath,this._outputSourceFiles=e.outputSourceFiles,this._sourceMapGeneratorConstructor=e.sourceMapGenerator||n("source-map").SourceMapGenerator,this._sourceMapRootpath&&"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/"),this._lineNumber=0,this._column=0},e.sourceMapOutput.prototype.normalizeFilename=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&(e=e.substring(this._sourceMapBasepath.length),("\\"===e.charAt(0)||"/"===e.charAt(0))&&(e=e.substring(1))),(this._sourceMapRootpath||"")+e.replace(/\\/g,"/")},e.sourceMapOutput.prototype.add=function(e,t,n,i){if(e){var r,s,o,a,l;if(t){var u=this._contentsMap[t.filename].substring(0,n);s=u.split("\n"),a=s[s.length-1]}if(r=e.split("\n"),o=r[r.length-1],t)if(i)for(l=0;l<r.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:s.length+l,column:0===l?a.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:s.length,column:a.length},source:this.normalizeFilename(t.filename)});1===r.length?this._column+=o.length:(this._lineNumber+=r.length-1,this._column=o.length),this._css.push(e)}},e.sourceMapOutput.prototype.isEmpty=function(){return 0===this._css.length},e.sourceMapOutput.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),this._contentsMap[t]);if(this._rootNode.genCSS(e,this),this._css.length>0){var n,i=JSON.stringify(this._sourceMapGenerator.toJSON());this._sourceMapURL?n=this._sourceMapURL:this._sourceMapFilename&&(n=this.normalizeFilename(this._sourceMapFilename)),this._writeSourceMap?this._writeSourceMap(i):n="data:application/json,"+encodeURIComponent(i),n&&this._css.push("/*# sourceMappingURL="+n+" */")}return this._css.join("")}}(n("./tree"));var I=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);x.env=x.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port&&location.port.length>0||I?"development":"production");var k={info:2,errors:1,none:0};if(x.logLevel="undefined"!=typeof x.logLevel?x.logLevel:k.info,x.async=x.async||!1,x.fileAsync=x.fileAsync||!1,x.poll=x.poll||(I?1e3:1500),x.functions)for(var R in x.functions)x.tree.functions[R]=x.functions[R];var F=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);F&&(x.dumpLineNumbers=F[1]);var M=/^text\/(x-)?less$/,A=null,E={},_="";if(x.watch=function(){return x.watchMode||(x.env="development",y()),this.watchMode=!0},x.unwatch=function(){return clearInterval(x.watchTimer),this.watchMode=!1},/!watch/.test(location.hash)&&x.watch(),"development"!=x.env)try{A="undefined"==typeof e.localStorage?null:e.localStorage}catch(D){}var L=document.getElementsByTagName("link");x.sheets=[];for(var O=0;O<L.length;O++)("stylesheet/less"===L[O].rel||L[O].rel.match(/stylesheet/)&&L[O].type.match(M))&&x.sheets.push(L[O]);x.modifyVars=function(e){x.refresh(!1,w(e))},x.refresh=function(e,t){var n,r;n=r=new Date,S(function(e,t,s,a,u){return e?l(e,a.href):(u.local?i("loading "+a.href+" from cache.",k.info):(i("parsed "+a.href+" successfully.",k.info),o(t.toCSS(x),a,u.lastModified)),i("css for "+a.href+" generated in "+(new Date-r)+"ms",k.info),0===u.remaining&&i("css generated in "+(new Date-n)+"ms",k.info),void(r=new Date))},e,t),f(t)},x.globalVars&&(_=w(x.globalVars)+"\n"),x.refreshStyles=f,x.Parser.fileLoader=g,x.refresh("development"===x.env),"function"==typeof define&&define.amd&&define(function(){return x})}(window);

Copyright © 2019 by b0y-101