text: /*!
   * 星空之门: Document - v1.0.0 - 2017-08-06
   * http://spacebomb.net
   * GitHub: https://github.com/spacebomb/spacebomb.github.io.git
   * Copyright (c) 2017 417430414@qq.com; Licensed MIT
   */
  !function(){"use strict";var e="function";Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=this.length;if(typeof t!=e)throw new TypeError;for(var r=arguments[1],i=0;i<n;i++)i in this&&t.call(r,this[i],i,this)}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.toString.call(e)}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){var t=this.length,n=Number(arguments[1]);for(isNaN(n)?n=t-1:(n=n<0?Math.ceil(n):Math.floor(n),n<0?n+=t:n>=t&&(n=t-1));n>-1;n--)if(n in this&&this[n]===e)return n;return-1}),Array.prototype.every||(Array.prototype.every=function(t){var n=this.length;if(typeof t!=e)throw new TypeError;for(var r=arguments[1],i=0;i<n;i++)if(i in this&&!t.call(r,this[i],i,this))return!1;return!0}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=this.length;if(typeof t!=e)throw new TypeError;for(var r=[],i=arguments[1],o=0;o<n;o++)if(o in this){var s=this[o];t.call(i,s,o,this)&&r.push(s)}return r}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length,n=Number(arguments[1])||0;for(n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=t);n<t;n++)if(n in this&&this[n]===e)return n;return-1}),Array.prototype.map||(Array.prototype.map=function(t){var n=this.length;if(typeof t!=e)throw new TypeError;for(var r=new Array(n),i=arguments[1],o=0;o<n;o++)o in this&&(r[o]=t.call(i,this[o],o,this));return r}),Array.prototype.mawherep||(Array.prototype.where=function(t,n){n=n||[];var r,i,o;return this.forEach(function(s){i=!0;for(var a in t)if(r=t[a],typeof r===e?i=r(s):(o=s[a],i=o&&o===r),!i)break;i&&n.push(s)}),n}),Array.prototype.groupBy||(Array.prototype.groupBy=function(e){var t={};return this.forEach(function(n){var r=n[e];r||(r="unkown"),t[r]||(t[r]=[]),t[r].push(n)}),t}),Array.prototype.has||(Array.prototype.has=function(t){var n,r,i,o=!1;return this.forEach(function(s){r=!0;for(var a in t)if(n=t[a],typeof n===e?r=n(s):(i=s[a],r=i&&i===n),!r)break;if(r)return o=!0,!1}),o})}(),/*!
   * jQuery Hotkeys Plugin
   * Copyright 2010, John Resig
   * Dual licensed under the MIT or GPL Version 2 licenses.
   *
   * Based upon the plugin by Tzury Bar Yochay:
   * http://github.com/tzuryby/hotkeys
   *
   * Original idea by:
   * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
  */
  function(e){function t(t){if("string"==typeof t.data){var n=t.handler,r=t.data.toLowerCase().split(" ");t.handler=function(t){if(this===t.target||!/textarea|select/i.test(t.target.nodeName)&&"text"!==t.target.type){var i="keypress"!==t.type&&e.hotkeys.specialKeys[t.which],o=String.fromCharCode(t.which).toLowerCase(),s="",a={};t.altKey&&"alt"!==i&&(s+="alt+"),t.ctrlKey&&"ctrl"!==i&&(s+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==i&&(s+="meta+"),t.shiftKey&&"shift"!==i&&(s+="shift+"),i?a[s+i]=!0:(a[s+o]=!0,a[s+e.hotkeys.shiftNums[o]]=!0,"shift+"===s&&(a[e.hotkeys.shiftNums[o]]=!0));for(var l=0,u=r.length;l<u;l++)if(a[r[l]])return n.apply(this,arguments)}}}}e.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:t}})}(jQuery),/*!
   * clipboard.js v1.5.5
   * https://zenorocha.github.io/clipboard.js
   *
   * Licensed MIT © Zeno Rocha
   */
  function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){var r=e("matches-selector");t.exports=function(e,t,n){for(var i=n?e:e.parentNode;i&&i!==document;){if(r(i,t))return i;i=i.parentNode}}},{"matches-selector":2}],2:[function(e,t,n){function r(e,t){if(o)return o.call(e,t);for(var n=e.parentNode.querySelectorAll(t),r=0;r<n.length;++r)if(n[r]==e)return!0;return!1}var i=Element.prototype,o=i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;t.exports=r},{}],3:[function(e,t,n){function r(e,t,n,r){var o=i.apply(this,arguments);return e.addEventListener(n,o),{destroy:function(){e.removeEventListener(n,o)}}}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t,!0),n.delegateTarget&&r.call(e,n)}}var o=e("closest");t.exports=r},{closest:1}],4:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n["function"]=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],5:[function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a["function"](n))throw new TypeError("Third argument must be a Function");if(a.node(e))return i(e,t,n);if(a.nodeList(e))return o(e,t,n);if(a.string(e))return s(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function o(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function s(e,t,n){return l(document.body,e,t,n)}var a=e("./is"),l=e("delegate");t.exports=r},{"./is":4,delegate:3}],6:[function(e,t,n){function r(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r),t=n.toString()}return t}t.exports=r},{}],7:[function(e,t,n){function r(){}r.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){i.off(e,r),t.apply(n,arguments)}var i=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,s=r.length;o<s;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},t.exports=r},{}],8:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=e("select"),a=r(s),l=function(){function e(t){i(this,e),this.resolveOptions(t),this.initSelection()}return e.prototype.resolveOptions=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""},e.prototype.initSelection=function(){if(this.text&&this.target)throw new Error('Multiple attributes declared, use either "target" or "text"');if(this.text)this.selectFake();else{if(!this.target)throw new Error('Missing required attributes, use either "target" or "text"');this.selectTarget()}},e.prototype.selectFake=function(){var e=this;this.removeFake(),this.fakeHandler=document.body.addEventListener("click",function(){return e.removeFake()}),this.fakeElem=document.createElement("textarea"),this.fakeElem.style.position="absolute",this.fakeElem.style.left="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=a["default"](this.fakeElem),this.copyText()},e.prototype.removeFake=function(){this.fakeHandler&&(document.body.removeEventListener("click"),this.fakeHandler=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},e.prototype.selectTarget=function(){this.selectedText=a["default"](this.target),this.copyText()},e.prototype.copyText=function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)},e.prototype.handleResult=function(e){e?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},e.prototype.clearSelection=function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},e.prototype.destroy=function(){this.removeFake()},o(e,[{key:"action",set:function(){var e=arguments.length<=0||void 0===arguments[0]?"copy":arguments[0];if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!=typeof e||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');this._target=e}},get:function(){return this._target}}]),e}();n["default"]=l,t.exports=n["default"]},{select:6}],9:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}n.__esModule=!0;var a=e("./clipboard-action"),l=r(a),u=e("tiny-emitter"),c=r(u),h=e("good-listener"),f=r(h),p=function(e){function t(n,r){i(this,t),e.call(this),this.resolveOptions(r),this.listenClick(n)}return o(t,e),t.prototype.resolveOptions=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText},t.prototype.listenClick=function(e){var t=this;this.listener=f["default"](e,"click",function(e){return t.onClick(e)})},t.prototype.onClick=function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l["default"]({action:this.action(t),target:this.target(t),text:this.text(t),trigger:t,emitter:this})},t.prototype.defaultAction=function(e){return s("action",e)},t.prototype.defaultTarget=function(e){var t=s("target",e);if(t)return document.querySelector(t)},t.prototype.defaultText=function(e){return s("text",e)},t.prototype.destroy=function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},t}(c["default"]);n["default"]=p,t.exports=n["default"]},{"./clipboard-action":8,"good-listener":5,"tiny-emitter":7}]},{},[9])(9)}),function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||u.defaults,this.rules=c.normal,this.options.gfm&&(this.options.tables?this.rules=c.tables:this.rules=c.gfm)}function t(e,t){if(this.options=t||u.defaults,this.links=e,this.rules=h.normal,this.renderer=this.options.renderer||new n,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=h.breaks:this.rules=h.gfm:this.options.pedantic&&(this.rules=h.pedantic)}function n(e){this.options=e||{}}function r(e){this.tokens=[],this.token=null,this.options=e||u.defaults,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options}function i(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function o(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function a(){}function l(e){for(var t,n,r=1;r<arguments.length;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function u(t,n,o){if(o||"function"==typeof n){o||(o=n,n=null),n=l({},u.defaults,n||{});var s,a,c=n.highlight,h=0;try{s=e.lex(t,n)}catch(f){return o(f)}a=s.length;var p=function(e){if(e)return n.highlight=c,o(e);var t;try{t=r.parse(s,n)}catch(i){e=i}return n.highlight=c,e?o(e):o(null,t)};if(!c||c.length<3)return p();if(delete n.highlight,!a)return p();for(;h<s.length;h++)!function(e){return"code"!==e.type?--a||p():c(e.text,e.lang,function(t,n){return t?p(t):null==n||n===e.text?--a||p():(e.text=n,e.escaped=!0,void(--a||p()))})}(s[h])}else try{return n&&(n=l({},u.defaults,n)),r.parse(e.lex(t,n),n)}catch(f){if(f.message+="\nPlease report this to https://github.com/chjj/marked.",(n||u.defaults).silent)return"<p>An error occured:</p><pre>"+i(f.message+"",!0)+"</pre>";throw f}}var c={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:a,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:a,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:a,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};c.bullet=/(?:[*+-]|\d+\.)/,c.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,c.item=s(c.item,"gm")(/bull/g,c.bullet)(),c.list=s(c.list)(/bull/g,c.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+c.def.source+")")(),c.blockquote=s(c.blockquote)("def",c.def)(),c._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",c.html=s(c.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,c._tag)(),c.paragraph=s(c.paragraph)("hr",c.hr)("heading",c.heading)("lheading",c.lheading)("blockquote",c.blockquote)("tag","<"+c._tag)("def",c.def)(),c.normal=l({},c),c.gfm=l({},c.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),c.gfm.paragraph=s(c.paragraph)("(?!","(?!"+c.gfm.fences.source.replace("\\1","\\2")+"|"+c.list.source.replace("\\1","\\3")+"|")(),c.tables=l({},c.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=c,e.lex=function(t,n){var r=new e(n);return r.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var r,i,o,s,a,l,u,h,f,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},h=0;h<l.align.length;h++)/^ *-+: *$/.test(l.align[h])?l.align[h]="right":/^ *:-+: *$/.test(l.align[h])?l.align[h]="center":/^ *:-+ *$/.test(l.align[h])?l.align[h]="left":l.align[h]=null;for(h=0;h<l.cells.length;h++)l.cells[h]=l.cells[h].split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),s=o[2],this.tokens.push({type:"list_start",ordered:s.length>1}),o=o[0].match(this.rules.item),r=!1,f=o.length,h=0;h<f;h++)l=o[h],u=l.length,l=l.replace(/^ *([*+-]|\d+\.) +/,""),~l.indexOf("\n ")&&(u-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+u+"}","gm"),"")),this.options.smartLists&&h!==f-1&&(a=c.bullet.exec(o[h+1])[0],s===a||s.length>1&&a.length>1||(e=o.slice(h+1).join("\n")+e,h=f-1)),i=r||/\n\n(?!\s*$)/.test(l),h!==f-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},h=0;h<l.align.length;h++)/^ *-+: *$/.test(l.align[h])?l.align[h]="right":/^ *:-+: *$/.test(l.align[h])?l.align[h]="center":/^ *:-+ *$/.test(l.align[h])?l.align[h]="left":l.align[h]=null;for(h=0;h<l.cells.length;h++)l.cells[h]=l.cells[h].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l)}else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var h={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:a,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:a,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};h._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,h._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,h.link=s(h.link)("inside",h._inside)("href",h._href)(),h.reflink=s(h.reflink)("inside",h._inside)(),h.normal=l({},h),h.pedantic=l({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=l({},h.normal,{escape:s(h.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(h.text)("]|","~]|")("|","|https?://|")()}),h.breaks=l({},h.gfm,{br:s(h.br)("{2,}","*")(),text:s(h.gfm.text)("{2,}","*")()}),t.rules=h,t.output=function(e,n,r){var i=new t(n,r);return i.output(e)},t.prototype.output=function(e){for(var t,n,r,o,s="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),s+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),r=this.mangle("mailto:")+n):(n=i(o[1]),r=n),s+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):i(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,s+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){s+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),s+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),s+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),s+=this.renderer.codespan(i(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),s+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),s+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),s+=this.renderer.text(i(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=i(o[1]),r=n,s+=this.renderer.link(r,null,n);return s},t.prototype.outputLink=function(e,t){var n=i(t.href),r=t.title?i(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,i(e[1]))},t.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},t.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},n.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+i(t,!0)+'">'+(n?e:i(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:i(e,!0))+"\n</code></pre>"},n.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},n.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},n.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},n.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},n.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},n.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"},n.prototype.strong=function(e){return"<strong>"+e+"</strong>"},n.prototype.em=function(e){return"<em>"+e+"</em>"},n.prototype.codespan=function(e){return"<code>"+e+"</code>"},n.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.prototype.del=function(e){return"<del>"+e+"</del>"},n.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(o(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+n+"</a>"},n.prototype.image=function(e,t,n){var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},n.prototype.text=function(e){return e},r.parse=function(e,t,n){var i=new r(t,n);return i.parse(e)},r.prototype.parse=function(e){this.inline=new t(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var n="";this.next();)n+=this.tok();return n},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},r.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,o="",s="";for(n="",e=0;e<this.token.header.length;e++)r={header:!0,align:this.token.align[e]},n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});s+=this.renderer.tablerow(n)}return this.renderer.table(o,s);case"blockquote_start":for(var s="";"blockquote_end"!==this.next().type;)s+=this.tok();return this.renderer.blockquote(s);case"list_start":for(var s="",a=this.token.ordered;"list_end"!==this.next().type;)s+=this.tok();return this.renderer.list(s,a);case"list_item_start":for(var s="";"list_item_end"!==this.next().type;)s+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(s);case"loose_item_start":for(var s="";"list_item_end"!==this.next().type;)s+=this.tok();return this.renderer.listitem(s);case"html":var l=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(l);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},a.exec=a,u.options=u.setOptions=function(e){return l(u.defaults,e),u},u.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new n,xhtml:!1},u.Parser=r,u.parser=r.parse,u.Renderer=n,u.Lexer=e,u.lexer=e.lex,u.InlineLexer=t,u.inlineLexer=t.output,u.parse=u,"undefined"!=typeof module&&"object"==typeof exports?module.exports=u:"function"==typeof define&&define.amd?define(function(){return u}):this.marked=u}.call(function(){return this||("undefined"!=typeof window?window:global)}()),/*!
   * Less - Leaner CSS v2.5.3
   * http://lesscss.org
   *
   * Copyright (c) 2009-2015, Alexis Sellier <self@cloudhead.net>
   * Licensed under the  License.
   *
   */
  /** * @license
   */
  function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.less=e()}}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){var r=e("./utils").addDataAttr,i=e("./browser");t.exports=function(e,t){r(t,i.currentScript(e)),void 0===t.isFileProtocol&&(t.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),t.async=t.async||!1,t.fileAsync=t.fileAsync||!1,t.poll=t.poll||(t.isFileProtocol?1e3:1500),t.env=t.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||t.isFileProtocol?"development":"production");var n=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);n&&(t.dumpLineNumbers=n[1]),void 0===t.useFileCache&&(t.useFileCache=!0),void 0===t.onReady&&(t.onReady=!0)}},{"./browser":3,"./utils":9}],2:[function(e,t,n){e("promise/polyfill.js");var r=window.less||{};e("./add-default-options")(window,r);var i=t.exports=e("./index")(window,r);window.less=i,r.onReady&&(/!watch/.test(window.location.hash)&&i.watch(),i.registerStylesheetsImmediately(),i.pageLoadFinished=i.refresh("development"===i.env))},{"./add-default-options":1,"./index":7,"promise/polyfill.js":95}],3:[function(e,t,n){var r=e("./utils");t.exports={createCSS:function(e,t,n){var i=n.href||"",o="less:"+(n.title||r.extractId(i)),s=e.getElementById(o),a=!1,l=e.createElement("style");l.setAttribute("type","text/css"),n.media&&l.setAttribute("media",n.media),l.id=o,l.styleSheet||(l.appendChild(e.createTextNode(t)),a=null!==s&&s.childNodes.length>0&&l.childNodes.length>0&&s.firstChild.nodeValue===l.firstChild.nodeValue);var u=e.getElementsByTagName("head")[0];if(null===s||a===!1){var c=n&&n.nextSibling||null;c?c.parentNode.insertBefore(l,c):u.appendChild(l)}if(s&&a===!1&&s.parentNode.removeChild(s),l.styleSheet)try{l.styleSheet.cssText=t}catch(h){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(e){var t=e.document;return t.currentScript||function(){var e=t.getElementsByTagName("script");return e[e.length-1]}()}}},{"./utils":9}],4:[function(e,t,n){t.exports=function(e,t,n){var r=null;if("development"!==t.env)try{r="undefined"==typeof e.localStorage?null:e.localStorage}catch(i){}return{setCSS:function(e,t,i){if(r){n.info("saving "+e+" to cache.");try{r.setItem(e,i),r.setItem(e+":timestamp",t)}catch(o){n.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t){var n=r&&r.getItem(e),i=r&&r.getItem(e+":timestamp");if(i&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(i).valueOf())return n}}}},{}],5:[function(e,t,n){var r=e("./utils"),i=e("./browser");t.exports=function(e,t,n){function o(t,o){var s,a,l="less-error-message:"+r.extractId(o||""),u='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',c=e.document.createElement("div"),h=[],f=t.filename||o,p=f.match(/([^\/]+(\?.*)?)$/)[1];c.id=l,c.className="less-error-message",a="<h3>"+(t.type||"Syntax")+"Error: "+(t.message||"There is an error in your .less file")+'</h3><p>in <a href="'+f+'">'+p+"</a> ";var d=function(e,t,n){void 0!==e.extract[t]&&h.push(u.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};t.extract&&(d(t,0,""),d(t,1,"line"),d(t,2,""),a+="on line "+t.line+", column "+(t.column+1)+":</p><ul>"+h.join("")+"</ul>"),t.stack&&(t.extract||n.logLevel>=4)&&(a+="<br/>Stack Trace</br />"+t.stack.split("\n").slice(1).join("<br/>")),c.innerHTML=a,i.createCSS(e.document,[".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"}),c.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"===n.env&&(s=setInterval(function(){var t=e.document,n=t.body;n&&(t.getElementById(l)?n.replaceChild(c,t.getElementById(l)):n.insertBefore(c,n.firstChild),clearInterval(s))},10))}function s(e,t){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting?c(e,t):"function"==typeof n.errorReporting&&n.errorReporting("add",e,t):o(e,t)}function a(t){var n=e.document.getElementById("less-error-message:"+r.extractId(t));n&&n.parentNode.removeChild(n)}function l(e){}function u(e){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting?l(e):"function"==typeof n.errorReporting&&n.errorReporting("remove",e):a(e)}function c(e,r){var i="{line} {content}",o=e.filename||r,s=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+o+" ",l=function(e,t,n){void 0!==e.extract[t]&&s.push(i.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.extract&&(l(e,0,""),l(e,1,"line"),l(e,2,""),a+="on line "+e.line+", column "+(e.column+1)+":\n"+s.join("\n")),e.stack&&(e.extract||n.logLevel>=4)&&(a+="\nStack Trace\n"+e.stack),t.logger.error(a)}return{add:s,remove:u}}},{"./browser":3,"./utils":9}],6:[function(e,t,n){t.exports=function(t,n){function r(){if(window.XMLHttpRequest&&!("file:"===window.location.protocol&&"ActiveXObject"in window))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return n.error("browser doesn't support AJAX."),null}}var i=e("../less/environment/abstract-file-manager.js"),o={},s=function(){};return s.prototype=new i,s.prototype.alwaysMakePathsAbsolute=function(){return!0},s.prototype.join=function(e,t){return e?this.extractUrlParts(t,e).path:t},s.prototype.doXHR=function(e,i,o,s){function a(t,n,r){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof r&&r(t.status,e)}var l=r(),u=t.isFileProtocol?t.fileAsync:t.async;"function"==typeof l.overrideMimeType&&l.overrideMimeType("text/css"),n.debug("XHR: Getting '"+e+"'"),l.open("GET",e,u),l.setRequestHeader("Accept",i||"text/x-less, text/css; q=0.9, */*; q=0.5"),l.send(null),t.isFileProtocol&&!t.fileAsync?0===l.status||l.status>=200&&l.status<300?o(l.responseText):s(l.status,e):u?l.onreadystatechange=function(){4==l.readyState&&a(l,o,s)}:a(l,o,s)},s.prototype.supports=function(e,t,n,r){return!0},s.prototype.clearFileCache=function(){o={}},s.prototype.loadFile=function(e,t,n,r,i){t&&!this.isPathAbsolute(e)&&(e=t+e),n=n||{};var s=this.extractUrlParts(e,window.location.href),a=s.url;if(n.useFileCache&&o[a])try{var l=o[a];i(null,{contents:l,filename:a,webInfo:{lastModified:new Date}})}catch(u){i({filename:a,message:"Error loading file "+a+" error was "+u.message})}else this.doXHR(a,n.mime,function(e,t){o[a]=e,i(null,{contents:e,filename:a,webInfo:{lastModified:t}})},function(e,t){i({type:"File",message:"'"+t+"' wasn't found ("+e+")",href:a})})},s}},{"../less/environment/abstract-file-manager.js":14}],7:[function(e,t,n){var r=e("./utils").addDataAttr,i=e("./browser");t.exports=function(t,n){function o(e){return n.postProcessor&&"function"==typeof n.postProcessor&&(e=n.postProcessor.call(e,e)||e),e}function s(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var r=n.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,r)}}function l(e){for(var t,r=f.getElementsByTagName("style"),i=0;i<r.length;i++)if(t=r[i],t.type.match(b)){var o=s(n);o.modifyVars=e;var l=t.innerHTML||"";o.filename=f.location.href.replace(/#.*$/,""),p.render(l,o,a(function(e,t,n){t?g.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=n.css:e.innerHTML=n.css)},null,t))}}function u(e,t,i,a,l){function u(n){var r=n.contents,s=n.filename,l=n.webInfo,u={currentDirectory:m.getPath(s),filename:s,rootFilename:s,relativeUrls:c.relativeUrls};if(u.entryPath=u.currentDirectory,u.rootpath=c.rootpath||u.currentDirectory,l&&(l.remaining=a,!c.modifyVars)){var h=y.getCSS(s,l);if(!i&&h)return l.local=!0,void t(null,h,r,e,l,s)}g.remove(s),c.rootFileInfo=u,p.render(r,c,function(n,i){n?(n.href=s,t(n)):(i.css=o(i.css),c.modifyVars||y.setCSS(e.href,l.lastModified,i.css),t(null,i.css,r,e,l,s))})}var c=s(n);r(c,e),c.mime=e.type,l&&(c.modifyVars=l),m.loadFile(e.href,null,c,d,function(e,n){return e?void t(e):void u(n)})}function c(e,t,n){for(var r=0;r<p.sheets.length;r++)u(p.sheets[r],e,t,p.sheets.length-(r+1),n)}function h(){"development"===p.env&&(p.watchTimer=setInterval(function(){p.watchMode&&(m.clearFileCache(),c(function(e,n,r,o,s){e?g.add(e,e.href||o.href):n&&i.createCSS(t.document,n,o)}))},n.poll))}var f=t.document,p=e("../less")();p.options=n;var d=p.environment,v=e("./file-manager")(n,p.logger),m=new v;d.addFileManager(m),p.FileManager=v,e("./log-listener")(p,n);var g=e("./error-reporting")(t,p,n),y=p.cache=n.cache||e("./cache")(t,n,p.logger);n.functions&&p.functions.functionRegistry.addMultiple(n.functions);var b=/^text\/(x-)?less$/;return p.watch=function(){return p.watchMode||(p.env="development",h()),this.watchMode=!0,!0},p.unwatch=function(){return clearInterval(p.watchTimer),this.watchMode=!1,!1},p.registerStylesheetsImmediately=function(){var e=f.getElementsByTagName("link");p.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(b))&&p.sheets.push(e[t])},p.registerStylesheets=function(){return new Promise(function(e,t){p.registerStylesheetsImmediately(),e()})},p.modifyVars=function(e){return p.refresh(!0,e,!1)},p.refresh=function(e,n,r){return(e||r)&&r!==!1&&m.clearFileCache(),new Promise(function(r,o){var s,a,u;s=a=new Date,c(function(e,n,l,c,h){return e?(g.add(e,e.href||c.href),void o(e)):(h.local?p.logger.info("loading "+c.href+" from cache."):p.logger.info("rendered "+c.href+" successfully."),i.createCSS(t.document,n,c),p.logger.info("css for "+c.href+" generated in "+(new Date-a)+"ms"),0===h.remaining&&(u=new Date-s,p.logger.info("less has finished. css generated in "+u+"ms"),r({startTime:s,endTime:a,totalMilliseconds:u,sheets:p.sheets.length})),void(a=new Date))},e,n),l(n)})},p.refreshStyles=l,p}},{"../less":30,"./browser":3,"./cache":4,"./error-reporting":5,"./file-manager":6,"./log-listener":8,"./utils":9}],8:[function(e,t,n){t.exports=function(e,t){var n=4,r=3,i=2,o=1;t.logLevel="undefined"!=typeof t.logLevel?t.logLevel:"development"===t.env?r:o,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=n&&console.log(e)},info:function(e){t.logLevel>=r&&console.log(e)},warn:function(e){t.logLevel>=i&&console.warn(e)},error:function(e){t.logLevel>=o&&console.error(e)}}]);for(var s=0;s<t.loggers.length;s++)e.logger.addListener(t.loggers[s])}},{}],9:[function(e,t,n){t.exports={extractId:function(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")},addDataAttr:function(e,t){for(var n in t.dataset)if(t.dataset.hasOwnProperty(n))if("env"===n||"dumpLineNumbers"===n||"rootpath"===n||"errorReporting"===n)e[n]=t.dataset[n];else try{e[n]=JSON.parse(t.dataset[n])}catch(r){}}}},{}],10:[function(e,t,n){var r={};t.exports=r;var i=function(e,t,n){if(e)for(var r=0;r<n.length;r++)e.hasOwnProperty(n[r])&&(t[n[r]]=e[n[r]])},o=["paths","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","reference","pluginManager"];r.Parse=function(e){i(e,this,o),"string"==typeof this.paths&&(this.paths=[this.paths])};var s=["paths","compress","ieCompat","strictMath","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope"];r.Eval=function(e,t){i(e,this,s),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},r.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},r.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},r.Eval.prototype.isMathOn=function(){return!this.strictMath||this.parensStack&&this.parensStack.length},r.Eval.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)},r.Eval.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("/")}},{}],11:[function(e,t,n){t.exports={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",rebeccapurple:"#663399",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"}},{}],12:[function(e,t,n){t.exports={colors:e("./colors"),unitConversions:e("./unit-conversions")}},{"./colors":11,"./unit-conversions":13}],13:[function(e,t,n){t.exports={length:{m:1,cm:.01,mm:.001,"in":.0254,px:.0254/96,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}}},{}],14:[function(e,t,n){var r=function(){};r.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},r.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},r.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},r.prototype.supportsSync=function(){return!1},r.prototype.alwaysMakePathsAbsolute=function(){return!1},r.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},r.prototype.join=function(e,t){return e?e+t:t},r.prototype.pathDiff=function(e,t){var n,r,i,o,s=this.extractUrlParts(e),a=this.extractUrlParts(t),l="";if(s.hostPart!==a.hostPart)return"";for(r=Math.max(a.directories.length,s.directories.length),n=0;n<r&&a.directories[n]===s.directories[n];n++);for(o=a.directories.slice(n),i=s.directories.slice(n),n=0;n<o.length-1;n++)l+="../";for(n=0;n<i.length-1;n++)l+=i[n]+"/";return l},r.prototype.extractUrlParts=function(e,t){var n,r,i=/^((?:[a-z-]+:)?\/+?(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,o=e.match(i),s={},a=[];if(!o)throw new Error("Could not parse sheet href - '"+e+"'");if(t&&(!o[1]||o[2])){if(r=t.match(i),!r)throw new Error("Could not parse page url - '"+t+"'");o[1]=o[1]||r[1]||"",o[2]||(o[3]=r[3]+o[3])}if(o[3]){for(a=o[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 s.hostPart=o[1],s.directories=a,s.path=(o[1]||"")+a.join("/"),s.fileUrl=s.path+(o[4]||""),s.url=s.fileUrl+(o[5]||""),s},t.exports=r},{}],15:[function(e,t,n){var r=e("../logger"),i=function(e,t){this.fileManagers=t||[],e=e||{};for(var n=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"],r=[],i=r.concat(n),o=0;o<i.length;o++){var s=i[o],a=e[s];a?this[s]=a.bind(e):o<r.length&&this.warn("missing required function in environment - "+s)}};i.prototype.getFileManager=function(e,t,n,i,o){e||r.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&r.warn("getFileManager called with null directory.. Please report this issue. continuing.");var s=this.fileManagers;n.pluginManager&&(s=[].concat(s).concat(n.pluginManager.getFileManagers()));for(var a=s.length-1;a>=0;a--){var l=s[a];if(l[o?"supportsSync":"supports"](e,t,n,i))return l}return null},i.prototype.addFileManager=function(e){this.fileManagers.push(e)},i.prototype.clearFileManagers=function(){this.fileManagers=[]},t.exports=i},{"../logger":32}],16:[function(e,t,n){function r(e,t,n){var r,o,s,a,l=t.alpha,u=n.alpha,c=[];s=u+l*(1-u);for(var h=0;h<3;h++)r=t.rgb[h]/255,o=n.rgb[h]/255,a=e(r,o),s&&(a=(u*o+l*(r-u*(r+o-a)))/s),c[h]=255*a;return new i(c,s)}var i=e("../tree/color"),o=e("./function-registry"),s={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return e*=2,e<=1?s.multiply(e,t):s.screen(e-1,t)},softlight:function(e,t){var n=1,r=e;return t>.5&&(r=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*r*(n-e)},hardlight:function(e,t){return s.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var a in s)s.hasOwnProperty(a)&&(r[a]=r.bind(null,s[a]));o.addMultiple(r)},{"../tree/color":49,"./function-registry":21}],17:[function(e,t,n){function r(e){return Math.min(1,Math.max(0,e))}function i(e){return a.hsla(e.h,e.s,e.l,e.a)}function o(e){if(e instanceof l)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}function s(e,t){return e instanceof l&&e.unit.is("%")?parseFloat(e.value*t/100):o(e)}var a,l=e("../tree/dimension"),u=e("../tree/color"),c=e("../tree/quoted"),h=e("../tree/anonymous"),f=e("./function-registry");a={rgb:function(e,t,n){return a.rgba(e,t,n,1)},rgba:function(e,t,n,r){var i=[e,t,n].map(function(e){return s(e,255)});return r=o(r),new u(i,r)},hsl:function(e,t,n){return a.hsla(e,t,n,1)},hsla:function(e,t,n,i){function s(e){return e=e<0?e+1:e>1?e-1:e,6*e<1?u+(l-u)*e*6:2*e<1?l:3*e<2?u+(l-u)*(2/3-e)*6:u}e=o(e)%360/360,t=r(o(t)),n=r(o(n)),i=r(o(i));var l=n<=.5?n*(t+1):n+t-n*t,u=2*n-l;return a.rgba(255*s(e+1/3),255*s(e),255*s(e-1/3),i)},hsv:function(e,t,n){return a.hsva(e,t,n,1)},hsva:function(e,t,n,r){e=o(e)%360/360*360,t=o(t),n=o(n),r=o(r);var i,s;i=Math.floor(e/60%6),s=e/60-i;var l=[n,n*(1-t),n*(1-s*t),n*(1-(1-s)*t)],u=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return a.rgba(255*l[u[i][0]],255*l[u[i][1]],255*l[u[i][2]],r)},hue:function(e){return new l(e.toHSL().h)},saturation:function(e){return new l(100*e.toHSL().s,"%")},lightness:function(e){return new l(100*e.toHSL().l,"%")},hsvhue:function(e){return new l(e.toHSV().h)},hsvsaturation:function(e){return new l(100*e.toHSV().s,"%")},hsvvalue:function(e){return new l(100*e.toHSV().v,"%")},red:function(e){return new l(e.rgb[0])},green:function(e){return new l(e.rgb[1])},blue:function(e){return new l(e.rgb[2])},alpha:function(e){return new l(e.toHSL().a)},luma:function(e){return new l(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new l(t*e.alpha*100,"%")},saturate:function(e,t,n){if(!e.rgb)return null;var o=e.toHSL();return"undefined"!=typeof n&&"relative"===n.value?o.s+=o.s*t.value/100:o.s+=t.value/100,o.s=r(o.s),i(o)},desaturate:function(e,t,n){var o=e.toHSL();return"undefined"!=typeof n&&"relative"===n.value?o.s-=o.s*t.value/100:o.s-=t.value/100,o.s=r(o.s),i(o)},lighten:function(e,t,n){var o=e.toHSL();return"undefined"!=typeof n&&"relative"===n.value?o.l+=o.l*t.value/100:o.l+=t.value/100,o.l=r(o.l),i(o)},darken:function(e,t,n){var o=e.toHSL();return"undefined"!=typeof n&&"relative"===n.value?o.l-=o.l*t.value/100:o.l-=t.value/100,o.l=r(o.l),i(o)},fadein:function(e,t,n){var o=e.toHSL();return"undefined"!=typeof n&&"relative"===n.value?o.a+=o.a*t.value/100:o.a+=t.value/100,o.a=r(o.a),i(o)},fadeout:function(e,t,n){var o=e.toHSL();return"undefined"!=typeof n&&"relative"===n.value?o.a-=o.a*t.value/100:o.a-=t.value/100,o.a=r(o.a),i(o)},fade:function(e,t){var n=e.toHSL();return n.a=t.value/100,n.a=r(n.a),i(n)},spin:function(e,t){var n=e.toHSL(),r=(n.h+t.value)%360;return n.h=r<0?360+r:r,i(n)},mix:function(e,t,n){e.toHSL&&t.toHSL||(console.log(t.type),console.dir(t)),n||(n=new l(50));var r=n.value/100,i=2*r-1,o=e.toHSL().a-t.toHSL().a,s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,a=1-s,c=[e.rgb[0]*s+t.rgb[0]*a,e.rgb[1]*s+t.rgb[1]*a,e.rgb[2]*s+t.rgb[2]*a],h=e.alpha*r+t.alpha*(1-r);return new u(c,h)},greyscale:function(e){return a.desaturate(e,new l(100))},contrast:function(e,t,n,r){if(!e.rgb)return null;if("undefined"==typeof n&&(n=a.rgba(255,255,255,1)),"undefined"==typeof t&&(t=a.rgba(0,0,0,1)),t.luma()>n.luma()){var i=n;n=t,t=i}return r="undefined"==typeof r?.43:o(r),e.luma()<r?n:t},argb:function(e){return new h(e.toARGB())},color:function(e){if(e instanceof c&&/^#([a-f0-9]{6}|[a-f0-9]{3})$/i.test(e.value))return new u(e.value.slice(1));if(e instanceof u||(e=u.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}},tint:function(e,t){return a.mix(a.rgb(255,255,255),e,t)},shade:function(e,t){return a.mix(a.rgb(0,0,0),e,t)}},f.addMultiple(a)},{"../tree/anonymous":45,"../tree/color":49,"../tree/dimension":55,"../tree/quoted":72,"./function-registry":21}],18:[function(e,t,n){t.exports=function(t){var n=e("../tree/quoted"),r=e("../tree/url"),i=e("./function-registry"),o=function(e,t){return new r(t,e.index,e.currentFileInfo).eval(e.context)},s=e("../logger");i.add("data-uri",function(e,i){i||(i=e,e=null);var a=e&&e.value,l=i.value,u=this.currentFileInfo,c=u.relativeUrls?u.currentDirectory:u.entryPath,h=l.indexOf("#"),f="";h!==-1&&(f=l.slice(h),l=l.slice(0,h));var p=t.getFileManager(l,c,this.context,t,!0);if(!p)return o(this,i);var d=!1;if(e)d=/;base64$/.test(a);else{if(a=t.mimeLookup(l),"image/svg+xml"===a)d=!1;else{var v=t.charsetLookup(a);d=["US-ASCII","UTF-8"].indexOf(v)<0}d&&(a+=";base64")}var m=p.loadFileSync(l,c,this.context,t);if(!m.contents)return s.warn("Skipped data-uri embedding of "+l+" because file not found"),o(this,i||e);var g=m.contents;if(d&&!t.encodeBase64)return o(this,i);g=d?t.encodeBase64(g):encodeURIComponent(g);var y="data:"+a+","+g+f,b=32768;return y.length>=b&&this.context.ieCompat!==!1?(s.warn("Skipped data-uri embedding of "+l+" because its size ("+y.length+" characters) exceeds IE8-safe "+b+" characters!"),o(this,i||e)):new r(new n('"'+y+'"',y,(!1),this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../logger":32,"../tree/quoted":72,"../tree/url":79,"./function-registry":21}],19:[function(e,t,n){var r=e("../tree/keyword"),i=e("./function-registry"),o={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(null!=e)return e?r.True:r.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}};i.add("default",o.eval.bind(o)),t.exports=o},{"../tree/keyword":64,"./function-registry":21}],20:[function(e,t,n){var r=e("../tree/expression"),i=function(e,t,n,r){this.name=e.toLowerCase(),this.index=n,this.context=t,this.currentFileInfo=r,this.func=t.frames[0].functionRegistry.get(this.name)};i.prototype.isValid=function(){return Boolean(this.func)},i.prototype.call=function(e){return Array.isArray(e)&&(e=e.filter(function(e){return"Comment"!==e.type}).map(function(e){if("Expression"===e.type){var t=e.value.filter(function(e){return"Comment"!==e.type});return 1===t.length?t[0]:new r(t)}return e})),this.func.apply(this,e)},t.exports=i},{"../tree/expression":58}],21:[function(e,t,n){function r(e){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){Object.keys(e).forEach(function(t){this.add(t,e[t])}.bind(this))},get:function(t){return this._data[t]||e&&e.get(t)},inherit:function(){return r(this)}}}t.exports=r(null)},{}],22:[function(e,t,n){t.exports=function(t){var n={functionRegistry:e("./function-registry"),functionCaller:e("./function-caller")};return e("./default"),e("./color"),e("./color-blending"),e("./data-uri")(t),e("./math"),e("./number"),e("./string"),e("./svg")(t),e("./types"),n}},{"./color":17,"./color-blending":16,"./data-uri":18,"./default":19,"./function-caller":20,"./function-registry":21,"./math":24,"./number":25,"./string":26,"./svg":27,"./types":28}],23:[function(e,t,n){var r=e("../tree/dimension"),i=function(){};i._math=function(e,t,n){if(!(n instanceof r))throw{type:"Argument",message:"argument must be a number"};return null==t?t=n.unit:n=n.unify(),new r(e(parseFloat(n.value)),t)},t.exports=i},{"../tree/dimension":55}],24:[function(e,t,n){var r=e("./function-registry"),i=e("./math-helper.js"),o={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var s in o)o.hasOwnProperty(s)&&(o[s]=i._math.bind(null,Math[s],o[s]));o.round=function(e,t){var n="undefined"==typeof t?0:t.value;return i._math(function(e){return e.toFixed(n)},null,e)},r.addMultiple(o)},{"./function-registry":21,"./math-helper.js":23}],25:[function(e,t,n){var r=e("../tree/dimension"),i=e("../tree/anonymous"),o=e("./function-registry"),s=e("./math-helper.js"),a=function(e,t){switch(t=Array.prototype.slice.call(t),t.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var n,o,s,a,l,u,c,h,f=[],p={};for(n=0;n<t.length;n++)if(s=t[n],s instanceof r)if(a=""===s.unit.toString()&&void 0!==h?new r(s.value,h).unify():s.unify(),u=""===a.unit.toString()&&void 0!==c?c:a.unit.toString(),c=""!==u&&void 0===c||""!==u&&""===f[0].unify().unit.toString()?u:c,h=""!==u&&void 0===h?s.unit.toString():h,o=void 0!==p[""]&&""!==u&&u===c?p[""]:p[u],void 0!==o)l=""===f[o].unit.toString()&&void 0!==h?new r(f[o].value,h).unify():f[o].unify(),(e&&a.value<l.value||!e&&a.value>l.value)&&(f[o]=s);else{if(void 0!==c&&u!==c)throw{type:"Argument",message:"incompatible types"};p[u]=f.length,f.push(s)}else Array.isArray(t[n].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[n].value));return 1==f.length?f[0]:(t=f.map(function(e){return e.toCSS(this.context)}).join(this.context.compress?",":", "),new i((e?"min":"max")+"("+t+")"))};o.addMultiple({min:function(){return a(!0,arguments)},max:function(){return a(!1,arguments)},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new r(Math.PI)},mod:function(e,t){return new r(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new r(e),t=new r(t);else if(!(e instanceof r&&t instanceof r))throw{type:"Argument",message:"arguments must be numbers"};return new r(Math.pow(e.value,t.value),e.unit)},percentage:function(e){var t=s._math(function(e){return 100*e},"%",e);return t}})},{"../tree/anonymous":45,"../tree/dimension":55,"./function-registry":21,"./math-helper.js":23}],26:[function(e,t,n){var r=e("../tree/quoted"),i=e("../tree/anonymous"),o=e("../tree/javascript"),s=e("./function-registry");s.addMultiple({e:function(e){return new i(e instanceof o?e.evaluated:e.value)},escape:function(e){return new i(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,n,i){var o=e.value;return n="Quoted"===n.type?n.value:n.toCSS(),o=o.replace(new RegExp(t.value,i?i.value:""),n),new r(e.quote||"",o,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,i=0;i<t.length;i++)n=n.replace(/%[sda]/i,function(e){var n="Quoted"===t[i].type&&e.match(/s/i)?t[i].value:t[i].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(n):n});return n=n.replace(/%%/g,"%"),new r(e.quote||"",n,e.escaped)}})},{"../tree/anonymous":45,"../tree/javascript":62,"../tree/quoted":72,"./function-registry":21}],27:[function(e,t,n){t.exports=function(t){var n=e("../tree/dimension"),r=e("../tree/color"),i=e("../tree/expression"),o=e("../tree/quoted"),s=e("../tree/url"),a=e("./function-registry");a.add("svg-gradient",function(e){function t(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}var a,l,u,c,h,f,p,d,v="linear",m='x="0" y="0" width="1" height="1"',g={compress:!1},y=e.toCSS(g);switch(2==arguments.length?(arguments[1].value.length<2&&t(),a=arguments[1].value):arguments.length<3?t():a=Array.prototype.slice.call(arguments,1),y){case"to bottom":l='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":l='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":l='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":l='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":v="radial",l='cx="50%" cy="50%" r="75%"',
  m='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(u='<?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"><'+v+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+l+">",c=0;c<a.length;c+=1)a[c]instanceof i?(h=a[c].value[0],f=a[c].value[1]):(h=a[c],f=void 0),h instanceof r&&((0===c||c+1===a.length)&&void 0===f||f instanceof n)||t(),p=f?f.toCSS(g):0===c?"0%":"100%",d=h.alpha,u+='<stop offset="'+p+'" stop-color="'+h.toRGB()+'"'+(d<1?' stop-opacity="'+d+'"':"")+"/>";return u+="</"+v+"Gradient><rect "+m+' fill="url(#gradient)" /></svg>',u=encodeURIComponent(u),u="data:image/svg+xml,"+u,new s(new o("'"+u+"'",u,(!1),this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../tree/color":49,"../tree/dimension":55,"../tree/expression":58,"../tree/quoted":72,"../tree/url":79,"./function-registry":21}],28:[function(e,t,n){var r=e("../tree/keyword"),i=e("../tree/detached-ruleset"),o=e("../tree/dimension"),s=e("../tree/color"),a=e("../tree/quoted"),l=e("../tree/anonymous"),u=e("../tree/url"),c=e("../tree/operation"),h=e("./function-registry"),f=function(e,t){return e instanceof t?r.True:r.False},p=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if(t="string"==typeof t.value?t.value:t,"string"!=typeof t)throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof o&&e.unit.is(t)?r.True:r.False},d=function(e){var t=Array.isArray(e.value)?e.value:Array(e);return t};h.addMultiple({isruleset:function(e){return f(e,i)},iscolor:function(e){return f(e,s)},isnumber:function(e){return f(e,o)},isstring:function(e){return f(e,a)},iskeyword:function(e){return f(e,r)},isurl:function(e){return f(e,u)},ispixel:function(e){return p(e,"px")},ispercentage:function(e){return p(e,"%")},isem:function(e){return p(e,"em")},isunit:p,unit:function(e,t){if(!(e instanceof o))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof c?". Have you forgotten parenthesis?":"")};return t=t?t instanceof r?t.value:t.toCSS():"",new o(e.value,t)},"get-unit":function(e){return new l(e.unit)},extract:function(e,t){return t=t.value-1,d(e)[t]},length:function(e){return new o(d(e).length)}})},{"../tree/anonymous":45,"../tree/color":49,"../tree/detached-ruleset":54,"../tree/dimension":55,"../tree/keyword":64,"../tree/operation":70,"../tree/quoted":72,"../tree/url":79,"./function-registry":21}],29:[function(e,t,n){var r=e("./contexts"),i=e("./parser/parser"),o=e("./plugins/function-importer");t.exports=function(e){var t=function(e,t){this.rootFilename=t.filename,this.paths=e.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=e.mime,this.error=null,this.context=e,this.queue=[],this.files={}};return t.prototype.push=function(t,n,s,a,l){var u=this;this.queue.push(t);var c=function(e,n,r){u.queue.splice(u.queue.indexOf(t),1);var i=r===u.rootFilename;a.optional&&e?l(null,{rules:[]},!1,null):(u.files[r]=n,e&&!u.error&&(u.error=e),l(e,n,i,r))},h={relativeUrls:this.context.relativeUrls,entryPath:s.entryPath,rootpath:s.rootpath,rootFilename:s.rootFilename},f=e.getFileManager(t,s.currentDirectory,this.context,e);if(!f)return void c({message:"Could not find a file-manager for "+t});n&&(t=f.tryAppendExtension(t,a.plugin?".js":".less"));var p=function(e){var t=e.filename,n=e.contents.replace(/^\uFEFF/,"");h.currentDirectory=f.getPath(t),h.relativeUrls&&(h.rootpath=f.join(u.context.rootpath||"",f.pathDiff(h.currentDirectory,h.entryPath)),!f.isPathAbsolute(h.rootpath)&&f.alwaysMakePathsAbsolute()&&(h.rootpath=f.join(h.entryPath,h.rootpath))),h.filename=t;var l=new r.Parse(u.context);l.processImports=!1,u.contents[t]=n,(s.reference||a.reference)&&(h.reference=!0),a.plugin?new o(l,h).eval(n,function(e,n){c(e,n,t)}):a.inline?c(null,n,t):new i(l,u,h).parse(n,function(e,n){c(e,n,t)})},d=f.loadFile(t,s.currentDirectory,this.context,e,function(e,t){e?c(e):p(t)});d&&d.then(p,c)},t}},{"./contexts":10,"./parser/parser":37,"./plugins/function-importer":39}],30:[function(e,t,n){t.exports=function(t,n){var r,i,o,s,a,l={version:[2,5,3],data:e("./data"),tree:e("./tree"),Environment:a=e("./environment/environment"),AbstractFileManager:e("./environment/abstract-file-manager"),environment:t=new a(t,n),visitors:e("./visitors"),Parser:e("./parser/parser"),functions:e("./functions")(t),contexts:e("./contexts"),SourceMapOutput:r=e("./source-map-output")(t),SourceMapBuilder:i=e("./source-map-builder")(r,t),ParseTree:o=e("./parse-tree")(i),ImportManager:s=e("./import-manager")(t),render:e("./render")(t,o,s),parse:e("./parse")(t,o,s),LessError:e("./less-error"),transformTree:e("./transform-tree"),utils:e("./utils"),PluginManager:e("./plugin-manager"),logger:e("./logger")};return l}},{"./contexts":10,"./data":12,"./environment/abstract-file-manager":14,"./environment/environment":15,"./functions":22,"./import-manager":29,"./less-error":31,"./logger":32,"./parse":34,"./parse-tree":33,"./parser/parser":37,"./plugin-manager":38,"./render":40,"./source-map-builder":41,"./source-map-output":42,"./transform-tree":43,"./tree":61,"./utils":82,"./visitors":86}],31:[function(e,t,n){var r=e("./utils"),i=t.exports=function(e,t,n){Error.call(this);var i=e.filename||n;if(t&&i){var o=t.contents[i],s=r.getLocation(e.index,o),a=s.line,l=s.column,u=e.call&&r.getLocation(e.call,o).line,c=o.split("\n");this.type=e.type||"Syntax",this.filename=i,this.index=e.index,this.line="number"==typeof a?a+1:null,this.callLine=u+1,this.callExtract=c[u],this.column=l,this.extract=[c[a-1],c[a],c[a+1]]}this.message=e.message,this.stack=e.stack};if("undefined"==typeof Object.create){var o=function(){};o.prototype=Error.prototype,i.prototype=new o}else i.prototype=Object.create(Error.prototype);i.prototype.constructor=i},{"./utils":82}],32:[function(e,t,n){t.exports={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var n=0;n<this._listeners.length;n++){var r=this._listeners[n][e];r&&r(t)}},_listeners:[]}},{}],33:[function(e,t,n){var r=e("./less-error"),i=e("./transform-tree"),o=e("./logger");t.exports=function(e){var t=function(e,t){this.root=e,this.imports=t};return t.prototype.toCSS=function(t){var n,s,a={};try{n=i(this.root,t)}catch(l){throw new r(l,this.imports)}try{var u=Boolean(t.compress);u&&o.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var c={compress:u,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};t.sourceMap?(s=new e(t.sourceMap),a.css=s.toCSS(n,c,this.imports)):a.css=n.toCSS(c)}catch(l){throw new r(l,this.imports)}if(t.pluginManager)for(var h=t.pluginManager.getPostProcessors(),f=0;f<h.length;f++)a.css=h[f].process(a.css,{sourceMap:s,options:t,imports:this.imports});t.sourceMap&&(a.map=s.getExternalSourceMap()),a.imports=[];for(var p in this.imports.files)this.imports.files.hasOwnProperty(p)&&p!==this.imports.rootFilename&&a.imports.push(p);return a},t}},{"./less-error":31,"./logger":32,"./transform-tree":43}],34:[function(e,t,n){var r,i=e("./contexts"),o=e("./parser/parser"),s=e("./plugin-manager");t.exports=function(t,n,a){var l=function(t,n,u){if(n=n||{},"function"==typeof n&&(u=n,n={}),!u){r||(r="undefined"==typeof Promise?e("promise"):Promise);var c=this;return new r(function(e,r){l.call(c,t,n,function(t,n){t?r(t):e(n)})})}var h,f,p=new s(this);if(p.addPlugins(n.plugins),n.pluginManager=p,h=new i.Parse(n),n.rootFileInfo)f=n.rootFileInfo;else{var d=n.filename||"input",v=d.replace(/[^\/\\]*$/,"");f={filename:d,relativeUrls:h.relativeUrls,rootpath:h.rootpath||"",currentDirectory:v,entryPath:v,rootFilename:d},f.rootpath&&"/"!==f.rootpath.slice(-1)&&(f.rootpath+="/")}var m=new a(h,f);new o(h,m,f).parse(t,function(e,t){return e?u(e):void u(null,t,m,n)},n)};return l}},{"./contexts":10,"./parser/parser":37,"./plugin-manager":38,promise:void 0}],35:[function(e,t,n){t.exports=function(e,t){function n(t){var n=a-m;n<512&&!t||!n||(v.push(e.slice(m,a+1)),m=a+1)}var r,i,o,s,a,l,u,c,h,f=e.length,p=0,d=0,v=[],m=0;for(a=0;a<f;a++)if(u=e.charCodeAt(a),!(u>=97&&u<=122||u<34))switch(u){case 40:d++,i=a;continue;case 41:if(--d<0)return t("missing opening `(`",a);continue;case 59:d||n();continue;case 123:p++,r=a;continue;case 125:if(--p<0)return t("missing opening `{`",a);p||d||n();continue;case 92:if(a<f-1){a++;continue}return t("unescaped `\\`",a);case 34:case 39:case 96:for(h=0,l=a,a+=1;a<f;a++)if(c=e.charCodeAt(a),!(c>96)){if(c==u){h=1;break}if(92==c){if(a==f-1)return t("unescaped `\\`",a);a++}}if(h)continue;return t("unmatched `"+String.fromCharCode(u)+"`",l);case 47:if(d||a==f-1)continue;if(c=e.charCodeAt(a+1),47==c)for(a+=2;a<f&&(c=e.charCodeAt(a),!(c<=13)||10!=c&&13!=c);a++);else if(42==c){for(o=l=a,a+=2;a<f-1&&(c=e.charCodeAt(a),125==c&&(s=a),42!=c||47!=e.charCodeAt(a+1));a++);if(a==f-1)return t("missing closing `*/`",l);a++}continue;case 42:if(a<f-1&&47==e.charCodeAt(a+1))return t("unmatched `/*`",a);continue}return 0!==p?o>r&&s>o?t("missing closing `}` or `*/`",r):t("missing closing `}`",r):0!==d?t("missing closing `)`",i):(n(!0),v)}},{}],36:[function(e,t,n){var r=e("./chunker");t.exports=function(){var e,t,n,i,o,s,a,l=[],u={};u.save=function(){a=u.i,l.push({current:s,i:u.i,j:t})},u.restore=function(e){(u.i>n||u.i===n&&e&&!i)&&(n=u.i,i=e);var r=l.pop();s=r.current,a=u.i=r.i,t=r.j},u.forget=function(){l.pop()},u.isWhitespace=function(t){var n=u.i+(t||0),r=e.charCodeAt(n);return r===c||r===p||r===h||r===f},u.$re=function(e){u.i>a&&(s=s.slice(u.i-a),a=u.i);var t=e.exec(s);return t?(y(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},u.$char=function(t){return e.charAt(u.i)!==t?null:(y(1),t)},u.$str=function(t){for(var n=t.length,r=0;r<n;r++)if(e.charAt(u.i+r)!==t.charAt(r))return null;return y(n),t},u.$quoted=function(){var t=e.charAt(u.i);if("'"===t||'"'===t){for(var n=e.length,r=u.i,i=1;i+r<n;i++){var o=e.charAt(i+r);switch(o){case"\\":i++;continue;case"\r":case"\n":break;case t:var s=e.substr(r,i+1);return y(i+1),s}}return null}};var c=32,h=9,f=10,p=13,d=43,v=44,m=47,g=57;u.autoCommentAbsorb=!0,u.commentStore=[],u.finished=!1;var y=function(n){for(var r,i,l,d=u.i,v=t,g=u.i-a,b=u.i+s.length-g,w=u.i+=n,x=e;u.i<b;u.i++){if(r=x.charCodeAt(u.i),u.autoCommentAbsorb&&r===m){if(i=x.charAt(u.i+1),"/"===i){l={index:u.i,isLineComment:!0};var S=x.indexOf("\n",u.i+2);S<0&&(S=b),u.i=S,l.text=x.substr(l.i,u.i-l.i),u.commentStore.push(l);continue}if("*"===i){var C=x.indexOf("*/",u.i+2);if(C>=0){l={index:u.i,text:x.substr(u.i,C+2-u.i),isLineComment:!1},u.i+=l.text.length-1,u.commentStore.push(l);continue}}break}if(r!==c&&r!==f&&r!==h&&r!==p)break}if(s=s.slice(n+u.i-w+g),a=u.i,!s.length){if(t<o.length-1)return s=o[++t],y(0),!0;u.finished=!0}return d!==u.i||v!==t};return u.peek=function(t){if("string"==typeof t){for(var n=0;n<t.length;n++)if(e.charAt(u.i+n)!==t.charAt(n))return!1;return!0}return t.test(s)},u.peekChar=function(t){return e.charAt(u.i)===t},u.currentChar=function(){return e.charAt(u.i)},u.getInput=function(){return e},u.peekNotNumeric=function(){var t=e.charCodeAt(u.i);return t>g||t<d||t===m||t===v},u.start=function(i,l,c){e=i,u.i=t=a=n=0,o=l?r(i,c):[i],s=o[0],y(0)},u.end=function(){var t,r=u.i>=e.length;return u.i<n&&(t=i,u.i=n),{isFinished:r,furthest:u.i,furthestPossibleErrorMessage:t,furthestReachedEnd:u.i>=e.length-1,furthestChar:e[u.i]}},u}},{"./chunker":35}],37:[function(e,t,n){var r=e("../less-error"),i=e("../tree"),o=e("../visitors"),s=e("./parser-input"),a=e("../utils"),l=function u(e,t,n){function l(e,t,n){var r="[object Function]"===Object.prototype.toString.call(e)?e.call(p):d.$re(e);return r?r:void h(t||("string"==typeof e?"expected '"+e+"' got '"+d.currentChar()+"'":"unexpected token"))}function c(e,t){return d.$char(e)?e:void h(t||"expected '"+e+"' got '"+d.currentChar()+"'")}function h(e,i){throw new r({index:d.i,filename:n.filename,type:i||"Syntax",message:e},t)}function f(e){var t=n.filename;return{lineNumber:a.getLocation(e,d.getInput()).line+1,fileName:t}}var p,d=s();return{parse:function(s,a,l){var c,h,f,p,v=null,m="";if(h=l&&l.globalVars?u.serializeVars(l.globalVars)+"\n":"",f=l&&l.modifyVars?"\n"+u.serializeVars(l.modifyVars):"",e.pluginManager)for(var g=e.pluginManager.getPreProcessors(),y=0;y<g.length;y++)s=g[y].process(s,{context:e,imports:t,fileInfo:n});(h||l&&l.banner)&&(m=(l&&l.banner?l.banner:"")+h,p=t.contentsIgnoredChars,p[n.filename]=p[n.filename]||0,p[n.filename]+=m.length),s=s.replace(/\r\n?/g,"\n"),s=m+s.replace(/^\uFEFF/,"")+f,t.contents[n.filename]=s;try{d.start(s,e.chunkInput,function(e,i){throw new r({index:i,type:"Parse",message:e,filename:n.filename},t)}),c=new i.Ruleset(null,this.parsers.primary()),c.root=!0,c.firstRoot=!0}catch(b){return a(new r(b,t,n.filename))}var w=d.end();if(!w.isFinished){var x=w.furthestPossibleErrorMessage;x||(x="Unrecognised input","}"===w.furthestChar?x+=". Possibly missing opening '{'":")"===w.furthestChar?x+=". Possibly missing opening '('":w.furthestReachedEnd&&(x+=". Possibly missing something")),v=new r({type:"Parse",message:x,index:w.furthest,filename:n.filename},t)}var S=function(e){return e=v||e||t.error,e?(e instanceof r||(e=new r(e,t,n.filename)),a(e)):a(null,c)};return e.processImports===!1?S():void new o.ImportVisitor(t,S).run(c)},parsers:p={primary:function(){for(var e,t=this.mixin,n=[];;){for(;;){if(e=this.comment(),!e)break;n.push(e)}if(d.finished)break;if(d.peek("}"))break;if(e=this.extendRule())n=n.concat(e);else if(e=t.definition()||this.rule()||this.ruleset()||t.call()||this.rulesetCall()||this.directive())n.push(e);else{for(var r=!1;d.$char(";");)r=!0;if(!r)break}}return n},comment:function(){if(d.commentStore.length){var e=d.commentStore.shift();return new i.Comment(e.text,e.isLineComment,e.index,n)}},entities:{quoted:function(){var e,t=d.i,r=!1;return d.save(),d.$char("~")&&(r=!0),(e=d.$quoted())?(d.forget(),new i.Quoted(e.charAt(0),e.substr(1,e.length-2),r,t,n)):void d.restore()},keyword:function(){var e=d.$char("%")||d.$re(/^[_A-Za-z-][_A-Za-z0-9-]*/);if(e)return i.Color.fromKeyword(e)||new i.Keyword(e)},call:function(){var e,t,r,o,s=d.i;if(!d.peek(/^url\(/i))return d.save(),(e=d.$re(/^([\w-]+|%|progid:[\w\.]+)\(/))?(e=e[1],t=e.toLowerCase(),"alpha"===t&&(o=p.alpha())?(d.forget(),o):(r=this.arguments(),d.$char(")")?(d.forget(),new i.Call(e,r,s,n)):void d.restore("Could not parse call arguments or missing ')'"))):void d.forget()},arguments:function(){for(var e,t=[];;){if(e=this.assignment()||p.expression(),!e)break;if(t.push(e),!d.$char(","))break}return t},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;return d.save(),(e=d.$re(/^\w+(?=\s?=)/i))&&d.$char("=")&&(t=p.entity())?(d.forget(),new i.Assignment(e,t)):void d.restore()},url:function(){var e,t=d.i;return d.autoCommentAbsorb=!1,d.$str("url(")?(e=this.quoted()||this.variable()||d.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",d.autoCommentAbsorb=!0,c(")"),new i.URL(null!=e.value||e instanceof i.Variable?e:new i.Anonymous(e),t,n)):void(d.autoCommentAbsorb=!0)},variable:function(){var e,t=d.i;if("@"===d.currentChar()&&(e=d.$re(/^@@?[\w-]+/)))return new i.Variable(e,t,n)},variableCurly:function(){var e,t=d.i;if("@"===d.currentChar()&&(e=d.$re(/^@\{([\w-]+)\}/)))return new i.Variable("@"+e[1],t,n)},color:function(){var e;if("#"===d.currentChar()&&(e=d.$re(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))){var t=e.input.match(/^#([\w]+).*/);return t=t[1],t.match(/^[A-Fa-f0-9]+$/)||h("Invalid HEX color code"),new i.Color(e[1],(void 0),"#"+t)}},dimension:function(){if(!d.peekNotNumeric()){var e=d.$re(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/i);return e?new i.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=d.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new i.UnicodeDescriptor(e[0])},javascript:function(){var e,t=d.i;d.save();var r=d.$char("~"),o=d.$char("`");return o?(e=d.$re(/^[^`]*`/))?(d.forget(),new i.JavaScript(e.substr(0,e.length-1),Boolean(r),t,n)):void d.restore("invalid javascript definition"):void d.restore()}},variable:function(){var e;if("@"===d.currentChar()&&(e=d.$re(/^(@[\w-]+)\s*:/)))return e[1]},rulesetCall:function(){var e;if("@"===d.currentChar()&&(e=d.$re(/^(@[\w-]+)\s*\(\s*\)\s*;/)))return new i.RulesetCall(e[1])},extend:function(e){var t,n,r,o,s,a=d.i;if(d.$str(e?"&:extend(":":extend(")){do{for(r=null,t=null;!(r=d.$re(/^(all)(?=\s*(\)|,))/))&&(n=this.element());)t?t.push(n):t=[n];r=r&&r[1],t||h("Missing target selector for :extend()."),s=new i.Extend(new i.Selector(t),r,a),o?o.push(s):o=[s]}while(d.$char(","));return l(/^\)/),e&&l(/^;/),o}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var e,t,r,o,s,a,l=d.currentChar(),u=!1,h=d.i;if("."===l||"#"===l){for(d.save();;){if(e=d.i,o=d.$re(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/),!o)break;r=new i.Element(s,o,e,n),t?t.push(r):t=[r],s=d.$char(">")}return t&&(d.$char("(")&&(a=this.args(!0).args,c(")")),p.important()&&(u=!0),p.end())?(d.forget(),new i.mixin.Call(t,a,h,n,u)):void d.restore()}},args:function(e){var t,n,r,o,s,a,l,u=p.entities,c={args:null,variadic:!1},f=[],v=[],m=[];for(d.save();;){if(e)a=p.detachedRuleset()||p.expression();else{if(d.commentStore.length=0,d.$str("...")){c.variadic=!0,d.$char(";")&&!t&&(t=!0),(t?v:m).push({variadic:!0});break}a=u.variable()||u.literal()||u.keyword()}if(!a)break;o=null,a.throwAwayComments&&a.throwAwayComments(),s=a;var g=null;if(e?a.value&&1==a.value.length&&(g=a.value[0]):g=a,g&&g instanceof i.Variable)if(d.$char(":")){if(f.length>0&&(t&&h("Cannot mix ; and , as delimiter types"),n=!0),s=p.detachedRuleset()||p.expression(),!s){if(!e)return d.restore(),c.args=[],c;h("could not understand value for named argument")}o=r=g.name}else if(d.$str("...")){if(!e){c.variadic=!0,d.$char(";")&&!t&&(t=!0),(t?v:m).push({name:a.name,variadic:!0});break}l=!0}else e||(r=o=g.name,s=null);s&&f.push(s),m.push({name:o,value:s,expand:l}),d.$char(",")||(d.$char(";")||t)&&(n&&h("Cannot mix ; and , as delimiter types"),t=!0,f.length>1&&(s=new i.Value(f)),v.push({name:r,value:s,expand:l}),r=null,f=[],n=!1)}return d.forget(),c.args=t?v:m,c},definition:function(){var e,t,n,r,o=[],s=!1;if(!("."!==d.currentChar()&&"#"!==d.currentChar()||d.peek(/^[^{]*\}/)))if(d.save(),t=d.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var a=this.args(!1);if(o=a.args,s=a.variadic,!d.$char(")"))return void d.restore("Missing closing ')'");if(d.commentStore.length=0,d.$str("when")&&(r=l(p.conditions,"expected condition")),n=p.block())return d.forget(),new i.mixin.Definition(e,o,n,r,s);d.restore()}else d.forget()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.call()||e.keyword()||e.javascript()},end:function(){return d.$char(";")||d.peek("}")},alpha:function(){var e;if(d.$re(/^opacity=/i))return e=d.$re(/^\d+/),e||(e=l(this.entities.variable,"Could not parse alpha")),c(")"),new i.Alpha(e)},element:function(){var e,t,r,o=d.i;if(t=this.combinator(),e=d.$re(/^(?:\d+\.\d+|\d+)%/)||d.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||d.$char("*")||d.$char("&")||this.attribute()||d.$re(/^\([^&()@]+\)/)||d.$re(/^[\.#:](?=@)/)||this.entities.variableCurly(),e||(d.save(),d.$char("(")?(r=this.selector())&&d.$char(")")?(e=new i.Paren(r),d.forget()):d.restore("Missing closing ')'"):d.forget()),e)return new i.Element(t,e,o,n)},combinator:function(){var e=d.currentChar();if("/"===e){d.save();var t=d.$re(/^\/[a-z]+\//i);if(t)return d.forget(),new i.Combinator(t);d.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(d.i++,"^"===e&&"^"===d.currentChar()&&(e="^^",d.i++);d.isWhitespace();)d.i++;return new i.Combinator(e)}return d.isWhitespace(-1)?new i.Combinator(" "):new i.Combinator(null)},lessSelector:function(){return this.selector(!0)},selector:function(e){for(var t,r,o,s,a,u,c,f=d.i;(e&&(r=this.extend())||e&&(u=d.$str("when"))||(s=this.element()))&&(u?c=l(this.conditions,"expected condition"):c?h("CSS guard can only be used at the end of selector"):r?a=a?a.concat(r):r:(a&&h("Extend can only be used at the end of selector"),o=d.currentChar(),t?t.push(s):t=[s],s=null),"{"!==o&&"}"!==o&&";"!==o&&","!==o&&")"!==o););return t?new i.Selector(t,a,c,f,n):void(a&&h("Extend must be used to extend a selector, it cannot be used on its own"))},attribute:function(){if(d.$char("[")){var e,t,n,r=this.entities;return(e=r.variableCurly())||(e=l(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),n=d.$re(/^[|~*$^]?=/),n&&(t=r.quoted()||d.$re(/^[0-9]+%/)||d.$re(/^[\w-]+/)||r.variableCurly()),c("]"),new i.Attribute(e,n,t)}},block:function(){var e;if(d.$char("{")&&(e=this.primary())&&d.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new i.Ruleset(null,e)),e},detachedRuleset:function(){var e=this.blockRuleset();if(e)return new i.DetachedRuleset(e)},ruleset:function(){var t,n,r,o;for(d.save(),e.dumpLineNumbers&&(o=f(d.i));;){if(n=this.lessSelector(),!n)break;if(t?t.push(n):t=[n],d.commentStore.length=0,n.condition&&t.length>1&&h("Guards are only currently allowed on a single selector."),!d.$char(","))break;n.condition&&h("Guards are only currently allowed on a single selector."),d.commentStore.length=0}if(t&&(r=this.block())){d.forget();var s=new i.Ruleset(t,r,e.strictImports);return e.dumpLineNumbers&&(s.debugInfo=o),s}d.restore()},rule:function(t){var r,o,s,a,l,u=d.i,c=d.currentChar();if("."!==c&&"#"!==c&&"&"!==c&&":"!==c)if(d.save(),r=this.variable()||this.ruleProperty()){if(l="string"==typeof r,l&&(o=this.detachedRuleset()),d.commentStore.length=0,!o){a=!l&&r.length>1&&r.pop().value;var h=!t&&(e.compress||l);if(h&&(o=this.value()),!o&&(o=this.anonymousValue()))return d.forget(),new i.Rule(r,o,(!1),a,u,n);h||o||(o=this.value()),s=this.important()}if(o&&this.end())return d.forget(),new i.Rule(r,o,s,a,u,n);if(d.restore(),o&&!t)return this.rule(!0)}else d.forget()},anonymousValue:function(){var e=d.$re(/^([^@+\/'"*`(;{}-]*);/);if(e)return new i.Anonymous(e[1])},"import":function(){var e,t,r=d.i,o=d.$re(/^@import?\s+/);if(o){var s=(o?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),d.$char(";")||(d.i=r,h("missing semi-colon or unrecognised media features on import")),t=t&&new i.Value(t),new i.Import(e,t,s,r,n);d.i=r,h("malformed import statement")}},importOptions:function(){var e,t,n,r={};if(!d.$char("("))return null;do if(e=this.importOption()){switch(t=e,n=!0,t){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(r[t]=n,!d.$char(","))break}while(e);return c(")"),r},importOption:function(){var e=d.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(){var e,t,r=this.entities,o=[];d.save();do if(e=r.keyword()||r.variable())o.push(e);else if(d.$char("(")){if(t=this.property(),e=this.value(),!d.$char(")"))return d.restore("Missing closing ')'"),null;if(t&&e)o.push(new i.Paren(new i.Rule(t,e,null,null,d.i,n,(!0))));else{if(!e)return d.restore("badly formed media feature definition"),null;o.push(new i.Paren(e))}}while(e);if(d.forget(),o.length>0)return new i.Expression(o)},mediaFeatures:function(){var e,t=this.entities,n=[];do if(e=this.mediaFeature()){if(n.push(e),!d.$char(","))break}else if(e=t.variable(),e&&(n.push(e),!d.$char(",")))break;while(e);return n.length>0?n:null},media:function(){var t,r,o,s;return e.dumpLineNumbers&&(s=f(d.i)),d.save(),d.$str("@media")?(t=this.mediaFeatures(),(r=this.block())?(d.forget(),o=new i.Media(r,t,d.i,n),e.dumpLineNumbers&&(o.debugInfo=s),o):void d.restore("media definitions require block statements after any features")):void d.restore()},plugin:function(){var e,t=d.i,r=d.$re(/^@plugin?\s+/);if(r){var o={plugin:!0};if(e=this.entities.quoted()||this.entities.url())return d.$char(";")||(d.i=t,h("missing semi-colon on plugin")),new i.Import(e,null,o,t,n);d.i=t,h("malformed plugin statement")}},directive:function(){var t,r,o,s,a,l,u,c=d.i,p=!0,v=!0;if("@"===d.currentChar()){if(r=this["import"]()||this.plugin()||this.media())return r;if(d.save(),t=d.$re(/^@[a-z-]+/)){switch(s=t,"-"==t.charAt(1)&&t.indexOf("-",2)>0&&(s="@"+t.slice(t.indexOf("-",2)+1)),s){case"@counter-style":a=!0,p=!0;break;case"@charset":a=!0,p=!1;break;case"@namespace":l=!0,p=!1;break;case"@keyframes":a=!0;break;case"@host":case"@page":u=!0;break;case"@document":case"@supports":u=!0,v=!1}return d.commentStore.length=0,a?(r=this.entity(),r||h("expected "+t+" identifier")):l?(r=this.expression(),r||h("expected "+t+" expression")):u&&(r=(d.$re(/^[^{;]+/)||"").trim(),r&&(r=new i.Anonymous(r))),p&&(o=this.blockRuleset()),o||!p&&r&&d.$char(";")?(d.forget(),new i.Directive(t,r,o,c,n,e.dumpLineNumbers?f(c):null,(!1),v)):void d.restore("directive options not recognised")}}},value:function(){var e,t=[];do if(e=this.expression(),e&&(t.push(e),!d.$char(",")))break;while(e);if(t.length>0)return new i.Value(t)},important:function(){if("!"===d.currentChar())return d.$re(/^! *important/)},sub:function(){var e,t;return d.save(),d.$char("(")?(e=this.addition(),e&&d.$char(")")?(d.forget(),t=new i.Expression([e]),t.parens=!0,t):void d.restore("Expected ')'")):void d.restore()},multiplication:function(){var e,t,n,r,o;if(e=this.operand()){for(o=d.isWhitespace(-1);;){if(d.peek(/^\/[*\/]/))break;if(d.save(),n=d.$char("/")||d.$char("*"),!n){d.forget();break}if(t=this.operand(),!t){d.restore();break}d.forget(),e.parensInOp=!0,t.parensInOp=!0,r=new i.Operation(n,[r||e,t],o),o=d.isWhitespace(-1)}return r||e}},addition:function(){var e,t,n,r,o;if(e=this.multiplication()){for(o=d.isWhitespace(-1);;){if(n=d.$re(/^[-+]\s+/)||!o&&(d.$char("+")||d.$char("-")),!n)break;if(t=this.multiplication(),!t)break;e.parensInOp=!0,t.parensInOp=!0,r=new i.Operation(n,[r||e,t],o),o=d.isWhitespace(-1)}return r||e}},conditions:function(){var e,t,n,r=d.i;if(e=this.condition()){for(;;){if(!d.peek(/^,\s*(not\s*)?\(/)||!d.$char(","))break;if(t=this.condition(),!t)break;n=new i.Condition("or",n||e,t,r)}return n||e}},condition:function(){var e,t,n,r,o=this.entities,s=d.i,a=!1;if(d.$str("not")&&(a=!0),c("("),e=this.addition()||o.keyword()||o.quoted())return d.$char(">")?r=d.$char("=")?">=":">":d.$char("<")?r=d.$char("=")?"<=":"<":d.$char("=")&&(r=d.$char(">")?"=>":d.$char("<")?"=<":"="),r?(t=this.addition()||o.keyword()||o.quoted(),t?n=new i.Condition(r,e,t,s,a):h("expected expression")):n=new i.Condition("=",e,new i.Keyword("true"),s,a),c(")"),d.$str("and")?new i.Condition("and",n,this.condition()):n},operand:function(){var e,t=this.entities;d.peek(/^-[@\(]/)&&(e=d.$char("-"));var n=this.sub()||t.dimension()||t.color()||t.variable()||t.call();return e&&(n.parensInOp=!0,n=new i.Negative(n)),n},expression:function(){var e,t,n=[];do e=this.comment(),e?n.push(e):(e=this.addition()||this.entity(),e&&(n.push(e),d.peek(/^\/[\/*]/)||(t=d.$char("/"),t&&n.push(new i.Anonymous(t)))));while(e);if(n.length>0)return new i.Expression(n)},property:function(){var e=d.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){function e(e){var t=d.i,n=d.$re(e);if(n)return s.push(t),o.push(n[1])}var t,r,o=[],s=[];d.save();var a=d.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(a)return o=[new i.Keyword(a[1])],d.forget(),o;for(e(/^(\*?)/);;)if(!e(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/))break;if(o.length>1&&e(/^((?:\+_|\+)?)\s*:/)){for(d.forget(),""===o[0]&&(o.shift(),s.shift()),r=0;r<o.length;r++)t=o[r],o[r]="@"!==t.charAt(0)?new i.Keyword(t):new i.Variable("@"+t.slice(2,-1),s[r],n);return o}d.restore()}}}};l.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var r=e[n];t+=("@"===n[0]?"":"@")+n+": "+r+(";"===String(r).slice(-1)?"":";")}return t},t.exports=l},{"../less-error":31,"../tree":61,"../utils":82,"../visitors":86,"./parser-input":36}],38:[function(e,t,n){var r=function(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[]};r.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},r.prototype.addPlugin=function(e){this.installedPlugins.push(e),e.install(this.less,this)},r.prototype.addVisitor=function(e){this.visitors.push(e)},r.prototype.addPreProcessor=function(e,t){var n;for(n=0;n<this.preProcessors.length&&!(this.preProcessors[n].priority>=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},r.prototype.addPostProcessor=function(e,t){var n;for(n=0;n<this.postProcessors.length&&!(this.postProcessors[n].priority>=t);n++);this.postProcessors.splice(n,0,{postProcessor:e,priority:t})},r.prototype.addFileManager=function(e){this.fileManagers.push(e)},r.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},r.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},r.prototype.getVisitors=function(){return this.visitors},r.prototype.getFileManagers=function(){return this.fileManagers},t.exports=r},{}],39:[function(e,t,n){var r=e("../less-error"),i=e("../tree"),o=t.exports=function(e,t){this.fileInfo=t};o.prototype.eval=function(e,t){var n,o,s={};o={add:function(e,t){s[e]=t},addMultiple:function(e){Object.keys(e).forEach(function(t){s[t]=e[t]})}};try{n=new Function("functions","tree","fileInfo",e),n(o,i,this.fileInfo)}catch(a){t(new r({message:"Plugin evaluation error: '"+a.name+": "+a.message.replace(/["]/g,"'")+"'",filename:this.fileInfo.filename}),null)}t(null,{functions:s})}},{"../less-error":31,"../tree":61}],40:[function(e,t,n){var r;t.exports=function(t,n,i){var o=function(t,i,s){if("function"==typeof i&&(s=i,i={}),!s){r||(r="undefined"==typeof Promise?e("promise"):Promise);var a=this;return new r(function(e,n){o.call(a,t,i,function(t,r){t?n(t):e(r)})})}this.parse(t,i,function(e,t,r,i){if(e)return s(e);var o;try{var a=new n(t,r);o=a.toCSS(i)}catch(e){return s(e)}s(null,o)})};return o}},{promise:void 0}],41:[function(e,t,n){t.exports=function(e,t){var n=function(e){this.options=e};return n.prototype.toCSS=function(t,n,r){var i=new e({contentsIgnoredCharsMap:r.contentsIgnoredChars,rootNode:t,contentsMap:r.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline}),o=i.toCSS(n);return this.sourceMap=i.sourceMap,this.sourceMapURL=i.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=i.normalizeFilename(this.options.sourceMapInputFilename)),o+this.getCSSAppendage()},n.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return e?"/*# sourceMappingURL="+e+" */":""},n.prototype.getExternalSourceMap=function(){return this.sourceMap},n.prototype.setExternalSourceMap=function(e){this.sourceMap=e},n.prototype.isInline=function(){return this.options.sourceMapFileInline},n.prototype.getSourceMapURL=function(){return this.sourceMapURL},n.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},n.prototype.getInputFilename=function(){
  return this.sourceMapInputFilename},n}},{}],42:[function(e,t,n){t.exports=function(e){var t=function(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0};return t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),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},t.prototype.add=function(e,t,n,r){if(e){var i,o,s,a,l;if(t){var u=this._contentsMap[t.filename];this._contentsIgnoredCharsMap[t.filename]&&(n-=this._contentsIgnoredCharsMap[t.filename],n<0&&(n=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),u=u.substring(0,n),o=u.split("\n"),a=o[o.length-1]}if(i=e.split("\n"),s=i[i.length-1],t)if(r)for(l=0;l<i.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:o.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:o.length,column:a.length},source:this.normalizeFilename(t.filename)});1===i.length?this._column+=s.length:(this._lineNumber+=i.length-1,this._column=s.length),this._css.push(e)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var r,i=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?r=this.sourceMapURL:this._sourceMapFilename&&(r=this._sourceMapFilename),this.sourceMapURL=r,this.sourceMap=i}return this._css.join("")},t}},{}],43:[function(e,t,n){var r=e("./contexts"),i=e("./visitors"),o=e("./tree");t.exports=function(e,t){t=t||{};var n,s=t.variables,a=new r.Eval(t);"object"!=typeof s||Array.isArray(s)||(s=Object.keys(s).map(function(e){var t=s[e];return t instanceof o.Value||(t instanceof o.Expression||(t=new o.Expression([t])),t=new o.Value([t])),new o.Rule("@"+e,t,(!1),null,0)}),a.frames=[new o.Ruleset(null,s)]);var l,u=[],c=[new i.JoinSelectorVisitor,new i.ExtendVisitor,new i.ToCSSVisitor({compress:Boolean(t.compress)})];if(t.pluginManager){var h=t.pluginManager.getVisitors();for(l=0;l<h.length;l++){var f=h[l];f.isPreEvalVisitor?u.push(f):f.isPreVisitor?c.splice(0,0,f):c.push(f)}}for(l=0;l<u.length;l++)u[l].run(e);for(n=e.eval(a),l=0;l<c.length;l++)c[l].run(n);return n}},{"./contexts":10,"./tree":61,"./visitors":86}],44:[function(e,t,n){var r=e("./node"),i=function(e){this.value=e};i.prototype=new r,i.prototype.type="Alpha",i.prototype.accept=function(e){this.value=e.visit(this.value)},i.prototype.eval=function(e){return this.value.eval?new i(this.value.eval(e)):this},i.prototype.genCSS=function(e,t){t.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value),t.add(")")},t.exports=i},{"./node":69}],45:[function(e,t,n){var r=e("./node"),i=function(e,t,n,r,i,o){this.value=e,this.index=t,this.mapLines=r,this.currentFileInfo=n,this.rulesetLike="undefined"!=typeof i&&i,this.isReferenced=o||!1};i.prototype=new r,i.prototype.type="Anonymous",i.prototype.eval=function(){return new i(this.value,this.index,this.currentFileInfo,this.mapLines,this.rulesetLike,this.isReferenced)},i.prototype.compare=function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},i.prototype.isRulesetLike=function(){return this.rulesetLike},i.prototype.genCSS=function(e,t){t.add(this.value,this.currentFileInfo,this.index,this.mapLines)},i.prototype.markReferenced=function(){this.isReferenced=!0},i.prototype.getIsReferenced=function(){return!this.currentFileInfo||!this.currentFileInfo.reference||this.isReferenced},t.exports=i},{"./node":69}],46:[function(e,t,n){var r=e("./node"),i=function(e,t){this.key=e,this.value=t};i.prototype=new r,i.prototype.type="Assignment",i.prototype.accept=function(e){this.value=e.visit(this.value)},i.prototype.eval=function(e){return this.value.eval?new i(this.key,this.value.eval(e)):this},i.prototype.genCSS=function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},t.exports=i},{"./node":69}],47:[function(e,t,n){var r=e("./node"),i=function(e,t,n){this.key=e,this.op=t,this.value=n};i.prototype=new r,i.prototype.type="Attribute",i.prototype.eval=function(e){return new i(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},i.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},i.prototype.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+"]"},t.exports=i},{"./node":69}],48:[function(e,t,n){var r=e("./node"),i=e("../functions/function-caller"),o=function(e,t,n,r){this.name=e,this.args=t,this.index=n,this.currentFileInfo=r};o.prototype=new r,o.prototype.type="Call",o.prototype.accept=function(e){this.args&&(this.args=e.visitArray(this.args))},o.prototype.eval=function(e){var t,n=this.args.map(function(t){return t.eval(e)}),r=new i(this.name,e,this.index,this.currentFileInfo);if(r.isValid())try{if(t=r.call(n),null!=t)return t}catch(s){throw{type:s.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(s.message?": "+s.message:""),index:this.index,filename:this.currentFileInfo.filename}}return new o(this.name,n,this.index,this.currentFileInfo)},o.prototype.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(")")},t.exports=o},{"../functions/function-caller":20,"./node":69}],49:[function(e,t,n){function r(e,t){return Math.min(Math.max(e,0),t)}function i(e){return"#"+e.map(function(e){return e=r(Math.round(e),255),(e<16?"0":"")+e.toString(16)}).join("")}var o=e("./node"),s=e("../data/colors"),a=function(e,t,n){Array.isArray(e)?this.rgb=e:6==e.length?this.rgb=e.match(/.{2}/g).map(function(e){return parseInt(e,16)}):this.rgb=e.split("").map(function(e){return parseInt(e+e,16)}),this.alpha="number"==typeof t?t:1,"undefined"!=typeof n&&(this.value=n)};a.prototype=new o,a.prototype.type="Color",a.prototype.luma=function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},a.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},a.prototype.toCSS=function(e,t){var n,i,o=e&&e.compress&&!t;if(this.value)return this.value;if(i=this.fround(e,this.alpha),i<1)return"rgba("+this.rgb.map(function(e){return r(Math.round(e),255)}).concat(r(i,1)).join(","+(o?"":" "))+")";if(n=this.toRGB(),o){var s=n.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(n="#"+s[1]+s[3]+s[5])}return n},a.prototype.operate=function(e,t,n){for(var r=[],i=this.alpha*(1-n.alpha)+n.alpha,o=0;o<3;o++)r[o]=this._operate(e,t,this.rgb[o],n.rgb[o]);return new a(r,i)},a.prototype.toRGB=function(){return i(this.rgb)},a.prototype.toHSL=function(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,s=Math.max(n,r,i),a=Math.min(n,r,i),l=(s+a)/2,u=s-a;if(s===a)e=t=0;else{switch(t=l>.5?u/(2-s-a):u/(s+a),s){case n:e=(r-i)/u+(r<i?6:0);break;case r:e=(i-n)/u+2;break;case i:e=(n-r)/u+4}e/=6}return{h:360*e,s:t,l:l,a:o}},a.prototype.toHSV=function(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s,u=s-a;if(t=0===s?0:u/s,s===a)e=0;else{switch(s){case n:e=(r-i)/u+(r<i?6:0);break;case r:e=(i-n)/u+2;break;case i:e=(n-r)/u+4}e/=6}return{h:360*e,s:t,v:l,a:o}},a.prototype.toARGB=function(){return i([255*this.alpha].concat(this.rgb))},a.prototype.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:void 0},a.fromKeyword=function(e){var t,n=e.toLowerCase();if(s.hasOwnProperty(n)?t=new a(s[n].slice(1)):"transparent"===n&&(t=new a([0,0,0],0)),t)return t.value=e,t},t.exports=a},{"../data/colors":11,"./node":69}],50:[function(e,t,n){var r=e("./node"),i=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};i.prototype=new r,i.prototype.type="Combinator";var o={"":!0," ":!0,"|":!0};i.prototype.genCSS=function(e,t){var n=e.compress||o[this.value]?"":" ";t.add(n+this.value+n)},t.exports=i},{"./node":69}],51:[function(e,t,n){var r=e("./node"),i=e("./debug-info"),o=function(e,t,n,r){this.value=e,this.isLineComment=t,this.currentFileInfo=r};o.prototype=new r,o.prototype.type="Comment",o.prototype.genCSS=function(e,t){this.debugInfo&&t.add(i(e,this),this.currentFileInfo,this.index),t.add(this.value)},o.prototype.isSilent=function(e){var t=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,n=e.compress&&"!"!==this.value[2];return this.isLineComment||t||n},o.prototype.markReferenced=function(){this.isReferenced=!0},t.exports=o},{"./debug-info":53,"./node":69}],52:[function(e,t,n){var r=e("./node"),i=function(e,t,n,r,i){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=r,this.negate=i};i.prototype=new r,i.prototype.type="Condition",i.prototype.accept=function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},i.prototype.eval=function(e){var t=function(e,t,n){switch(e){case"and":return t&&n;case"or":return t||n;default:switch(r.compare(t,n)){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e;default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t},t.exports=i},{"./node":69}],53:[function(e,t,n){var r=function(e,t,n){var i="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":i=r.asComment(t);break;case"mediaquery":i=r.asMediaQuery(t);break;case"all":i=r.asComment(t)+(n||"")+r.asMediaQuery(t)}return i};r.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},r.asMediaQuery=function(e){var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:\/\\])/g,function(e){return"\\"==e&&(e="/"),"\\"+e})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"},t.exports=r},{}],54:[function(e,t,n){var r=e("./node"),i=e("../contexts"),o=function(e,t){this.ruleset=e,this.frames=t};o.prototype=new r,o.prototype.type="DetachedRuleset",o.prototype.evalFirst=!0,o.prototype.accept=function(e){this.ruleset=e.visit(this.ruleset)},o.prototype.eval=function(e){var t=this.frames||e.frames.slice(0);return new o(this.ruleset,t)},o.prototype.callEval=function(e){return this.ruleset.eval(this.frames?new i.Eval(e,this.frames.concat(e.frames)):e)},t.exports=o},{"../contexts":10,"./node":69}],55:[function(e,t,n){var r=e("./node"),i=e("../data/unit-conversions"),o=e("./unit"),s=e("./color"),a=function(e,t){this.value=parseFloat(e),this.unit=t&&t instanceof o?t:new o(t?[t]:void 0)};a.prototype=new r,a.prototype.type="Dimension",a.prototype.accept=function(e){this.unit=e.visit(this.unit)},a.prototype.eval=function(e){return this},a.prototype.toColor=function(){return new s([this.value,this.value,this.value])},a.prototype.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.fround(e,this.value),r=String(n);if(0!==n&&n<1e-6&&n>-1e-6&&(r=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(r);n>0&&n<1&&(r=r.substr(1))}t.add(r),this.unit.genCSS(e,t)},a.prototype.operate=function(e,t,n){var r=this._operate(e,t,this.value,n.value),i=this.unit.clone();if("+"===t||"-"===t)if(0===i.numerator.length&&0===i.denominator.length)i=n.unit.clone(),this.unit.backupUnit&&(i.backupUnit=this.unit.backupUnit);else if(0===n.unit.numerator.length&&0===i.denominator.length);else{if(n=n.convertTo(this.unit.usedUnits()),e.strictUnits&&n.unit.toString()!==i.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+i.toString()+"' and '"+n.unit.toString()+"'.");r=this._operate(e,t,this.value,n.value)}else"*"===t?(i.numerator=i.numerator.concat(n.unit.numerator).sort(),i.denominator=i.denominator.concat(n.unit.denominator).sort(),i.cancel()):"/"===t&&(i.numerator=i.numerator.concat(n.unit.denominator).sort(),i.denominator=i.denominator.concat(n.unit.numerator).sort(),i.cancel());return new a(r,i)},a.prototype.compare=function(e){var t,n;if(e instanceof a){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,n=e;else if(t=this.unify(),n=e.unify(),0!==t.unit.compare(n.unit))return;return r.numericCompare(t.value,n.value)}},a.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},a.prototype.convertTo=function(e){var t,n,r,o,s,l=this.value,u=this.unit.clone(),c={};if("string"==typeof e){for(t in i)i[t].hasOwnProperty(e)&&(c={},c[t]=e);e=c}s=function(e,t){return r.hasOwnProperty(e)?(t?l/=r[e]/r[o]:l*=r[e]/r[o],o):e};for(n in e)e.hasOwnProperty(n)&&(o=e[n],r=i[n],u.map(s));return u.cancel(),new a(l,u)},t.exports=a},{"../data/unit-conversions":13,"./color":49,"./node":69,"./unit":78}],56:[function(e,t,n){var r=e("./node"),i=e("./selector"),o=e("./ruleset"),s=function(e,t,n,r,o,s,a,l){var u;if(this.name=e,this.value=t,n)for(Array.isArray(n)?this.rules=n:(this.rules=[n],this.rules[0].selectors=new i([],null,null,this.index,o).createEmptySelectors()),u=0;u<this.rules.length;u++)this.rules[u].allowImports=!0;this.index=r,this.currentFileInfo=o,this.debugInfo=s,this.isReferenced=a,this.isRooted=l||!1};s.prototype=new r,s.prototype.type="Directive",s.prototype.accept=function(e){var t=this.value,n=this.rules;n&&(this.rules=e.visitArray(n)),t&&(this.value=e.visit(t))},s.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},s.prototype.isCharset=function(){return"@charset"===this.name},s.prototype.genCSS=function(e,t){var n=this.value,r=this.rules;t.add(this.name,this.currentFileInfo,this.index),n&&(t.add(" "),n.genCSS(e,t)),r?this.outputRuleset(e,t,r):t.add(";")},s.prototype.eval=function(e){var t,n,r=this.value,i=this.rules;return t=e.mediaPath,n=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],r&&(r=r.eval(e)),i&&(i=[i[0].eval(e)],i[0].root=!0),e.mediaPath=t,e.mediaBlocks=n,new s(this.name,r,i,this.index,this.currentFileInfo,this.debugInfo,this.isReferenced,this.isRooted)},s.prototype.variable=function(e){if(this.rules)return o.prototype.variable.call(this.rules[0],e)},s.prototype.find=function(){if(this.rules)return o.prototype.find.apply(this.rules[0],arguments)},s.prototype.rulesets=function(){if(this.rules)return o.prototype.rulesets.apply(this.rules[0])},s.prototype.markReferenced=function(){var e,t;if(this.isReferenced=!0,this.rules)for(t=this.rules,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()},s.prototype.getIsReferenced=function(){return!this.currentFileInfo||!this.currentFileInfo.reference||this.isReferenced},s.prototype.outputRuleset=function(e,t,n){var r,i=n.length;if(e.tabLevel=(0|e.tabLevel)+1,e.compress){for(t.add("{"),r=0;r<i;r++)n[r].genCSS(e,t);return t.add("}"),void e.tabLevel--}var o="\n"+Array(e.tabLevel).join("  "),s=o+"  ";if(i){for(t.add(" {"+s),n[0].genCSS(e,t),r=1;r<i;r++)t.add(s),n[r].genCSS(e,t);t.add(o+"}")}else t.add(" {"+o+"}");e.tabLevel--},t.exports=s},{"./node":69,"./ruleset":75,"./selector":76}],57:[function(e,t,n){var r=e("./node"),i=e("./paren"),o=e("./combinator"),s=function(e,t,n,r){this.combinator=e instanceof o?e:new o(e),"string"==typeof t?this.value=t.trim():t?this.value=t:this.value="",this.index=n,this.currentFileInfo=r};s.prototype=new r,s.prototype.type="Element",s.prototype.accept=function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},s.prototype.eval=function(e){return new s(this.combinator,this.value.eval?this.value.eval(e):this.value,this.index,this.currentFileInfo)},s.prototype.genCSS=function(e,t){t.add(this.toCSS(e),this.currentFileInfo,this.index)},s.prototype.toCSS=function(e){e=e||{};var t=this.value,n=e.firstSelector;return t instanceof i&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=n,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t},t.exports=s},{"./combinator":50,"./node":69,"./paren":71}],58:[function(e,t,n){var r=e("./node"),i=e("./paren"),o=e("./comment"),s=function(e){if(this.value=e,!e)throw new Error("Expression requires an array parameter")};s.prototype=new r,s.prototype.type="Expression",s.prototype.accept=function(e){this.value=e.visitArray(this.value)},s.prototype.eval=function(e){var t,n=this.parens&&!this.parensInOp,r=!1;return n&&e.inParenthesis(),this.value.length>1?t=new s(this.value.map(function(t){return t.eval(e)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(r=!0),t=this.value[0].eval(e)):t=this,n&&e.outOfParenthesis(),this.parens&&this.parensInOp&&!e.isMathOn()&&!r&&(t=new i(t)),t},s.prototype.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(" ")},s.prototype.throwAwayComments=function(){this.value=this.value.filter(function(e){return!(e instanceof o)})},s.prototype.markReferenced=function(){this.value.forEach(function(e){e.markReferenced&&e.markReferenced()})},t.exports=s},{"./comment":51,"./node":69,"./paren":71}],59:[function(e,t,n){var r=e("./node"),i=function o(e,t,n){switch(this.selector=e,this.option=t,this.index=n,this.object_id=o.next_id++,this.parent_ids=[this.object_id],t){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}};i.next_id=0,i.prototype=new r,i.prototype.type="Extend",i.prototype.accept=function(e){this.selector=e.visit(this.selector)},i.prototype.eval=function(e){return new i(this.selector.eval(e),this.option,this.index)},i.prototype.clone=function(e){return new i(this.selector,this.option,this.index)},i.prototype.findSelfSelectors=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),r=r.concat(e[t].elements);this.selfSelectors=[{elements:r}]},t.exports=i},{"./node":69}],60:[function(e,t,n){var r=e("./node"),i=e("./media"),o=e("./url"),s=e("./quoted"),a=e("./ruleset"),l=e("./anonymous"),u=function(e,t,n,r,i){if(this.options=n,this.index=r,this.path=e,this.features=t,this.currentFileInfo=i,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var o=this.getPath();o&&/[#\.\&\?\/]css([\?;].*)?$/.test(o)&&(this.css=!0)}};u.prototype=new r,u.prototype.type="Import",u.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.plugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},u.prototype.genCSS=function(e,t){this.css&&void 0===this.path.currentFileInfo.reference&&(t.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},u.prototype.getPath=function(){return this.path instanceof o?this.path.value.value:this.path.value},u.prototype.isVariableImport=function(){var e=this.path;return e instanceof o&&(e=e.value),!(e instanceof s)||e.containsVariables()},u.prototype.evalForImport=function(e){var t=this.path;return t instanceof o&&(t=t.value),new u(t.eval(e),this.features,this.options,this.index,this.currentFileInfo)},u.prototype.evalPath=function(e){var t=this.path.eval(e),n=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(t instanceof o)){if(n){var r=t.value;r&&e.isPathRelative(r)&&(t.value=n+r)}t.value=e.normalizePath(t.value)}return t},u.prototype.eval=function(e){var t,n,r=this.features&&this.features.eval(e);if(this.options.plugin)return n=e.frames[0]&&e.frames[0].functionRegistry,n&&this.root&&this.root.functions&&n.addMultiple(this.root.functions),[];if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var o=new l(this.root,0,{filename:this.importedFilename,reference:this.path.currentFileInfo&&this.path.currentFileInfo.reference},(!0),(!0),(!1));return this.features?new i([o],this.features.value):[o]}if(this.css){var s=new u(this.evalPath(e),r,this.options,this.index);if(!s.css&&this.error)throw this.error;return s}return t=new a(null,this.root.rules.slice(0)),t.evalImports(e),this.features?new i(t.rules,this.features.value):t.rules},t.exports=u},{"./anonymous":45,"./media":65,"./node":69,"./quoted":72,"./ruleset":75,"./url":79}],61:[function(e,t,n){var r={};r.Node=e("./node"),r.Alpha=e("./alpha"),r.Color=e("./color"),r.Directive=e("./directive"),r.DetachedRuleset=e("./detached-ruleset"),r.Operation=e("./operation"),r.Dimension=e("./dimension"),r.Unit=e("./unit"),r.Keyword=e("./keyword"),r.Variable=e("./variable"),r.Ruleset=e("./ruleset"),r.Element=e("./element"),r.Attribute=e("./attribute"),r.Combinator=e("./combinator"),r.Selector=e("./selector"),r.Quoted=e("./quoted"),r.Expression=e("./expression"),r.Rule=e("./rule"),r.Call=e("./call"),r.URL=e("./url"),r.Import=e("./import"),r.mixin={Call:e("./mixin-call"),Definition:e("./mixin-definition")},r.Comment=e("./comment"),r.Anonymous=e("./anonymous"),r.Value=e("./value"),r.JavaScript=e("./javascript"),r.Assignment=e("./assignment"),r.Condition=e("./condition"),r.Paren=e("./paren"),r.Media=e("./media"),r.UnicodeDescriptor=e("./unicode-descriptor"),r.Negative=e("./negative"),r.Extend=e("./extend"),r.RulesetCall=e("./ruleset-call"),t.exports=r},{"./alpha":44,"./anonymous":45,"./assignment":46,"./attribute":47,"./call":48,"./color":49,"./combinator":50,"./comment":51,"./condition":52,"./detached-ruleset":54,"./dimension":55,"./directive":56,"./element":57,"./expression":58,"./extend":59,"./import":60,"./javascript":62,"./keyword":64,"./media":65,"./mixin-call":66,"./mixin-definition":67,"./negative":68,"./node":69,"./operation":70,"./paren":71,"./quoted":72,"./rule":73,"./ruleset":75,"./ruleset-call":74,"./selector":76,"./unicode-descriptor":77,"./unit":78,"./url":79,"./value":80,"./variable":81}],62:[function(e,t,n){var r=e("./js-eval-node"),i=e("./dimension"),o=e("./quoted"),s=e("./anonymous"),a=function(e,t,n,r){this.escaped=t,this.expression=e,this.index=n,this.currentFileInfo=r};a.prototype=new r,a.prototype.type="JavaScript",a.prototype.eval=function(e){var t=this.evaluateJavaScript(this.expression,e);return"number"==typeof t?new i(t):"string"==typeof t?new o('"'+t+'"',t,this.escaped,this.index):new s(Array.isArray(t)?t.join(", "):t)},t.exports=a},{"./anonymous":45,"./dimension":55,"./js-eval-node":63,"./quoted":72}],63:[function(e,t,n){var r=e("./node"),i=e("./variable"),o=function(){};o.prototype=new r,o.prototype.evaluateJavaScript=function(e,t){var n,r=this,o={};if(void 0!==t.javascriptEnabled&&!t.javascriptEnabled)throw{message:"You are using JavaScript, which has been disabled.",filename:this.currentFileInfo.filename,index:this.index};e=e.replace(/@\{([\w-]+)\}/g,function(e,n){return r.jsify(new i("@"+n,r.index,r.currentFileInfo).eval(t))});try{e=new Function("return ("+e+")")}catch(s){throw{message:"JavaScript evaluation error: "+s.message+" from `"+e+"`",filename:this.currentFileInfo.filename,index:this.index}}var a=t.frames[0].variables();for(var l in a)a.hasOwnProperty(l)&&(o[l.slice(1)]={value:a[l].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=e.call(o)}catch(s){throw{message:"JavaScript evaluation error: '"+s.name+": "+s.message.replace(/["]/g,"'")+"'",filename:this.currentFileInfo.filename,index:this.index}}return n},o.prototype.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS()}).join(", ")+"]":e.toCSS()},t.exports=o},{"./node":69,"./variable":81}],64:[function(e,t,n){var r=e("./node"),i=function(e){this.value=e};i.prototype=new r,i.prototype.type="Keyword",i.prototype.genCSS=function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)},i.True=new i("true"),i.False=new i("false"),t.exports=i},{"./node":69}],65:[function(e,t,n){var r=e("./ruleset"),i=e("./value"),o=e("./selector"),s=e("./anonymous"),a=e("./expression"),l=e("./directive"),u=function(e,t,n,s){this.index=n,this.currentFileInfo=s;var a=new o([],null,null,this.index,this.currentFileInfo).createEmptySelectors();this.features=new i(t),this.rules=[new r(a,e)],this.rules[0].allowImports=!0};u.prototype=new l,u.prototype.type="Media",u.prototype.isRulesetLike=!0,u.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},u.prototype.genCSS=function(e,t){t.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},u.prototype.eval=function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new u(null,[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo);var n=!1;e.strictMath||(n=!0,e.strictMath=!0);try{t.features=this.features.eval(e)}finally{n&&(e.strictMath=!1)}return e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)},u.prototype.evalTop=function(e){var t=this;if(e.mediaBlocks.length>1){var n=new o([],null,null,this.index,this.currentFileInfo).createEmptySelectors();t=new r(n,e.mediaBlocks),t.multiMedia=!0}return delete e.mediaBlocks,delete e.mediaPath,t},u.prototype.evalNested=function(e){var t,n,o=e.mediaPath.concat([this]);for(t=0;t<o.length;t++)n=o[t].features instanceof i?o[t].features.value:o[t].features,o[t]=Array.isArray(n)?n:[n];return this.features=new i(this.permute(o).map(function(e){for(e=e.map(function(e){return e.toCSS?e:new s(e)}),t=e.length-1;t>0;t--)e.splice(t,0,new s("and"));return new a(e)})),new r([],[])},u.prototype.permute=function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),r=0;r<n.length;r++)for(var i=0;i<e[0].length;i++)t.push([e[0][i]].concat(n[r]));return t},u.prototype.bubbleSelectors=function(e){e&&(this.rules=[new r(e.slice(0),[this.rules[0]])])},t.exports=u},{"./anonymous":45,"./directive":56,"./expression":58,"./ruleset":75,"./selector":76,"./value":80}],66:[function(e,t,n){var r=e("./node"),i=e("./selector"),o=e("./mixin-definition"),s=e("../functions/default"),a=function(e,t,n,r,o){this.selector=new i(e),this.arguments=t||[],this.index=n,this.currentFileInfo=r,this.important=o};a.prototype=new r,a.prototype.type="MixinCall",a.prototype.accept=function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},a.prototype.eval=function(e){function t(t,n){var r,i,o;for(r=0;r<2;r++){for(k[r]=!0,s.value(r),i=0;i<n.length&&k[r];i++)o=n[i],o.matchCondition&&(k[r]=k[r]&&o.matchCondition(null,e));t.matchCondition&&(k[r]=k[r]&&t.matchCondition(w,e))}return k[0]||k[1]?k[0]!=k[1]?k[1]?M:_:E:I}var n,r,i,a,l,u,c,h,f,p,d,v,m,g,y,b,w=[],x=[],S=!1,C=[],k=[],I=-1,E=0,M=1,_=2;for(c=0;c<this.arguments.length;c++)if(a=this.arguments[c],l=a.value.eval(e),a.expand&&Array.isArray(l.value))for(l=l.value,h=0;h<l.length;h++)w.push({value:l[h]});else w.push({name:a.name,value:l});for(b=function(t){return t.matchArgs(null,e)},c=0;c<e.frames.length;c++)if((n=e.frames[c].find(this.selector,null,b)).length>0){for(d=!0,h=0;h<n.length;h++){for(r=n[h].rule,i=n[h].path,p=!1,f=0;f<e.frames.length;f++)if(!(r instanceof o)&&r===(e.frames[f].originalRuleset||e.frames[f])){p=!0;break}p||r.matchArgs(w,e)&&(v={mixin:r,group:t(r,i)},v.group!==I&&C.push(v),S=!0)}for(s.reset(),g=[0,0,0],h=0;h<C.length;h++)g[C[h].group]++;if(g[E]>0)m=_;else if(m=M,g[M]+g[_]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(w)+"`",index:this.index,filename:this.currentFileInfo.filename};for(h=0;h<C.length;h++)if(v=C[h].group,v===E||v===m)try{r=C[h].mixin,r instanceof o||(y=r.originalRuleset||r,r=new o("",[],r.rules,null,(!1)),r.originalRuleset=y),Array.prototype.push.apply(x,r.evalCall(e,w,this.important).rules)}catch(A){throw{message:A.message,index:this.index,filename:this.currentFileInfo.filename,stack:A.stack}}if(S){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(c=0;c<x.length;c++)u=x[c],u.markReferenced&&u.markReferenced();return x}}throw d?{type:"Runtime",message:"No matching definition was found for `"+this.format(w)+"`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}},a.prototype.format=function(e){return this.selector.toCSS().trim()+"("+(e?e.map(function(e){var t="";return e.name&&(t+=e.name+":"),t+=e.value.toCSS?e.value.toCSS():"???"}).join(", "):"")+")"},t.exports=a},{"../functions/default":19,"./mixin-definition":67,"./node":69,"./selector":76}],67:[function(e,t,n){var r=e("./selector"),i=e("./element"),o=e("./ruleset"),s=e("./rule"),a=e("./expression"),l=e("../contexts"),u=function(e,t,n,o,s,a){this.name=e,this.selectors=[new r([new i(null,e,this.index,this.currentFileInfo)])],this.params=t,this.condition=o,this.variadic=s,this.arity=t.length,this.rules=n,this._lookups={};var l=[];this.required=t.reduce(function(e,t){return!t.name||t.name&&!t.value?e+1:(l.push(t.name),e)},0),this.optionalParameters=l,this.frames=a};u.prototype=new o,u.prototype.type="MixinDefinition",u.prototype.evalFirst=!0,u.prototype.accept=function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},u.prototype.evalParams=function(e,t,n,r){var i,u,c,h,f,p,d,v,m=new o(null,null),g=this.params.slice(0),y=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(m.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new l.Eval(t,[m].concat(t.frames)),n)for(n=n.slice(0),y=n.length,c=0;c<y;c++)if(u=n[c],p=u&&u.name){for(d=!1,h=0;h<g.length;h++)if(!r[h]&&p===g[h].name){r[h]=u.value.eval(e),m.prependRule(new s(p,u.value.eval(e))),d=!0;break}if(d){n.splice(c,1),c--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+n[c].name+" not found"}}for(v=0,c=0;c<g.length;c++)if(!r[c]){if(u=n&&n[v],p=g[c].name)if(g[c].variadic){for(i=[],h=v;h<y;h++)i.push(n[h].value.eval(e));m.prependRule(new s(p,new a(i).eval(e)))}else{if(f=u&&u.value)f=f.eval(e);else{if(!g[c].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+y+" for "+this.arity+")"};f=g[c].value.eval(t),m.resetCache()}m.prependRule(new s(p,f)),
  r[c]=f}if(g[c].variadic&&n)for(h=v;h<y;h++)r[h]=n[h].value.eval(e);v++}return m},u.prototype.makeImportant=function(){var e=this.rules?this.rules.map(function(e){return e.makeImportant?e.makeImportant(!0):e}):this.rules,t=new u(this.name,this.params,e,this.condition,this.variadic,this.frames);return t},u.prototype.eval=function(e){return new u(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||e.frames.slice(0))},u.prototype.evalCall=function(e,t,n){var r,i,u=[],c=this.frames?this.frames.concat(e.frames):e.frames,h=this.evalParams(e,new l.Eval(e,c),t,u);return h.prependRule(new s("@arguments",new a(u).eval(e))),r=this.rules.slice(0),i=new o(null,r),i.originalRuleset=this,i=i.eval(new l.Eval(e,[this,h].concat(c))),n&&(i=i.makeImportant()),i},u.prototype.matchCondition=function(e,t){return!(this.condition&&!this.condition.eval(new l.Eval(t,[this.evalParams(t,new l.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},u.prototype.matchArgs=function(e,t){var n,r=e&&e.length||0,i=this.optionalParameters,o=e?e.reduce(function(e,t){return i.indexOf(t.name)<0?e+1:e},0):0;if(this.variadic){if(o<this.required-1)return!1}else{if(o<this.required)return!1;if(r>this.params.length)return!1}n=Math.min(o,this.arity);for(var s=0;s<n;s++)if(!this.params[s].name&&!this.params[s].variadic&&e[s].value.eval(t).toCSS()!=this.params[s].value.eval(t).toCSS())return!1;return!0},t.exports=u},{"../contexts":10,"./element":57,"./expression":58,"./rule":73,"./ruleset":75,"./selector":76}],68:[function(e,t,n){var r=e("./node"),i=e("./operation"),o=e("./dimension"),s=function(e){this.value=e};s.prototype=new r,s.prototype.type="Negative",s.prototype.genCSS=function(e,t){t.add("-"),this.value.genCSS(e,t)},s.prototype.eval=function(e){return e.isMathOn()?new i("*",[new o((-1)),this.value]).eval(e):new s(this.value.eval(e))},t.exports=s},{"./dimension":55,"./node":69,"./operation":70}],69:[function(e,t,n){var r=function(){};r.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,n,r){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},r.prototype.genCSS=function(e,t){t.add(this.value)},r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.eval=function(){return this},r.prototype._operate=function(e,t,n,r){switch(t){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r}},r.prototype.fround=function(e,t){var n=e&&e.numPrecision;return null==n?t:Number((t+2e-16).toFixed(n))},r.compare=function(e,t){if(e.compare&&"Quoted"!==t.type&&"Anonymous"!==t.type)return e.compare(t);if(t.compare)return-t.compare(e);if(e.type===t.type){if(e=e.value,t=t.value,!Array.isArray(e))return e===t?0:void 0;if(e.length===t.length){for(var n=0;n<e.length;n++)if(0!==r.compare(e[n],t[n]))return;return 0}}},r.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0},t.exports=r},{}],70:[function(e,t,n){var r=e("./node"),i=e("./color"),o=e("./dimension"),s=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n};s.prototype=new r,s.prototype.type="Operation",s.prototype.accept=function(e){this.operands=e.visit(this.operands)},s.prototype.eval=function(e){var t=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn()){if(t instanceof o&&n instanceof i&&(t=t.toColor()),n instanceof o&&t instanceof i&&(n=n.toColor()),!t.operate)throw{type:"Operation",message:"Operation on an invalid type"};return t.operate(e,this.op,n)}return new s(this.op,[t,n],this.isSpaced)},s.prototype.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)},t.exports=s},{"./color":49,"./dimension":55,"./node":69}],71:[function(e,t,n){var r=e("./node"),i=function(e){this.value=e};i.prototype=new r,i.prototype.type="Paren",i.prototype.genCSS=function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},i.prototype.eval=function(e){return new i(this.value.eval(e))},t.exports=i},{"./node":69}],72:[function(e,t,n){var r=e("./node"),i=e("./js-eval-node"),o=e("./variable"),s=function(e,t,n,r,i){this.escaped=null==n||n,this.value=t||"",this.quote=e.charAt(0),this.index=r,this.currentFileInfo=i};s.prototype=new i,s.prototype.type="Quoted",s.prototype.genCSS=function(e,t){this.escaped||t.add(this.quote,this.currentFileInfo,this.index),t.add(this.value),this.escaped||t.add(this.quote)},s.prototype.containsVariables=function(){return this.value.match(/(`([^`]+)`)|@\{([\w-]+)\}/)},s.prototype.eval=function(e){function t(e,t,n){var r=e;do e=r,r=e.replace(t,n);while(e!==r);return r}var n=this,r=this.value,i=function(t,r){return String(n.evaluateJavaScript(r,e))},a=function(t,r){var i=new o("@"+r,n.index,n.currentFileInfo).eval(e,!0);return i instanceof s?i.value:i.toCSS()};return r=t(r,/`([^`]+)`/g,i),r=t(r,/@\{([\w-]+)\}/g,a),new s(this.quote+r+this.quote,r,this.escaped,this.index,this.currentFileInfo)},s.prototype.compare=function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:r.numericCompare(this.value,e.value)},t.exports=s},{"./js-eval-node":63,"./node":69,"./variable":81}],73:[function(e,t,n){function r(e,t){var n,r="",i=t.length,o={add:function(e){r+=e}};for(n=0;n<i;n++)t[n].eval(e).genCSS(e,o);return r}var i=e("./node"),o=e("./value"),s=e("./keyword"),a=function(e,t,n,r,s,a,l,u){this.name=e,this.value=t instanceof i?t:new o([t]),this.important=n?" "+n.trim():"",this.merge=r,this.index=s,this.currentFileInfo=a,this.inline=l||!1,this.variable=void 0!==u?u:e.charAt&&"@"===e.charAt(0)};a.prototype=new i,a.prototype.type="Rule",a.prototype.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)},a.prototype.eval=function(e){var t,n=!1,i=this.name,o=this.variable;"string"!=typeof i&&(i=1===i.length&&i[0]instanceof s?i[0].value:r(e,i),o=!1),"font"!==i||e.strictMath||(n=!0,e.strictMath=!0);try{if(e.importantScope.push({}),t=this.value.eval(e),!this.variable&&"DetachedRuleset"===t.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.index,filename:this.currentFileInfo.filename};var l=this.important,u=e.importantScope.pop();return!l&&u.important&&(l=u.important),new a(i,t,l,this.merge,this.index,this.currentFileInfo,this.inline,o)}catch(c){throw"number"!=typeof c.index&&(c.index=this.index,c.filename=this.currentFileInfo.filename),c}finally{n&&(e.strictMath=!1)}},a.prototype.makeImportant=function(){return new a(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)};var l=function(e){Array.isArray(e)?e.forEach(function(e){l(e)}):e.markReferenced&&e.markReferenced()};a.prototype.markReferenced=function(){this.value&&l(this.value)},t.exports=a},{"./keyword":64,"./node":69,"./value":80}],74:[function(e,t,n){var r=e("./node"),i=e("./variable"),o=function(e){this.variable=e};o.prototype=new r,o.prototype.type="RulesetCall",o.prototype.eval=function(e){var t=new i(this.variable).eval(e);return t.callEval(e)},t.exports=o},{"./node":69,"./variable":81}],75:[function(e,t,n){var r=e("./node"),i=e("./rule"),o=e("./selector"),s=e("./element"),a=e("./paren"),l=e("../contexts"),u=e("../functions/function-registry"),c=e("../functions/default"),h=e("./debug-info"),f=function(e,t,n){this.selectors=e,this.rules=t,this._lookups={},this.strictImports=n};f.prototype=new r,f.prototype.type="Ruleset",f.prototype.isRuleset=!0,f.prototype.isRulesetLike=!0,f.prototype.accept=function(e){this.paths?e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},f.prototype.eval=function(e){var t,n,r,o,s=this.selectors,a=!1;if(s&&(n=s.length)){for(t=[],c.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),o=0;o<n;o++)r=s[o].eval(e),t.push(r),r.evaldCondition&&(a=!0);c.reset()}else a=!0;var l,h,p=this.rules?this.rules.slice(0):null,d=new f(t,p,this.strictImports);d.originalRuleset=this,d.root=this.root,d.firstRoot=this.firstRoot,d.allowImports=this.allowImports,this.debugInfo&&(d.debugInfo=this.debugInfo),a||(p.length=0),d.functionRegistry=function(e){for(var t,n=0,r=e.length;n!==r;++n)if(t=e[n].functionRegistry)return t;return u}(e.frames).inherit();var v=e.frames;v.unshift(d);var m=e.selectors;m||(e.selectors=m=[]),m.unshift(this.selectors),(d.root||d.allowImports||!d.strictImports)&&d.evalImports(e);var g=d.rules,y=g?g.length:0;for(o=0;o<y;o++)g[o].evalFirst&&(g[o]=g[o].eval(e));var b=e.mediaBlocks&&e.mediaBlocks.length||0;for(o=0;o<y;o++)"MixinCall"===g[o].type?(p=g[o].eval(e).filter(function(e){return!(e instanceof i&&e.variable)||!d.variable(e.name)}),g.splice.apply(g,[o,1].concat(p)),y+=p.length-1,o+=p.length-1,d.resetCache()):"RulesetCall"===g[o].type&&(p=g[o].eval(e).rules.filter(function(e){return!(e instanceof i&&e.variable)}),g.splice.apply(g,[o,1].concat(p)),y+=p.length-1,o+=p.length-1,d.resetCache());for(o=0;o<g.length;o++)l=g[o],l.evalFirst||(g[o]=l=l.eval?l.eval(e):l);for(o=0;o<g.length;o++)if(l=g[o],l instanceof f&&l.selectors&&1===l.selectors.length&&l.selectors[0].isJustParentSelector()){g.splice(o--,1);for(var w=0;w<l.rules.length;w++)h=l.rules[w],h instanceof i&&h.variable||g.splice(++o,0,h)}if(v.shift(),m.shift(),e.mediaBlocks)for(o=b;o<e.mediaBlocks.length;o++)e.mediaBlocks[o].bubbleSelectors(t);return d},f.prototype.evalImports=function(e){var t,n,r=this.rules;if(r)for(t=0;t<r.length;t++)"Import"===r[t].type&&(n=r[t].eval(e),n&&n.length?(r.splice.apply(r,[t,1].concat(n)),t+=n.length-1):r.splice(t,1,n),this.resetCache())},f.prototype.makeImportant=function(){var e=new f(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports);return e},f.prototype.matchArgs=function(e){return!e||0===e.length},f.prototype.matchCondition=function(e,t){var n=this.selectors[this.selectors.length-1];return!!n.evaldCondition&&!(n.condition&&!n.condition.eval(new l.Eval(t,t.frames)))},f.prototype.resetCache=function(){this._rulesets=null,this._variables=null,this._lookups={}},f.prototype.variables=function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof i&&t.variable===!0&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var n=t.root.variables();for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e},{}):{}),this._variables},f.prototype.variable=function(e){return this.variables()[e]},f.prototype.rulesets=function(){if(!this.rules)return[];var e,t,n=[],r=this.rules,i=r.length;for(e=0;e<i;e++)t=r[e],t.isRuleset&&n.push(t);return n},f.prototype.prependRule=function(e){var t=this.rules;t?t.unshift(e):this.rules=[e]},f.prototype.find=function(e,t,n){t=t||this;var r,i,s=[],a=e.toCSS();return a in this._lookups?this._lookups[a]:(this.rulesets().forEach(function(a){if(a!==t)for(var l=0;l<a.selectors.length;l++)if(r=e.match(a.selectors[l])){if(e.elements.length>r){if(!n||n(a)){i=a.find(new o(e.elements.slice(r)),t,n);for(var u=0;u<i.length;++u)i[u].path.push(a);Array.prototype.push.apply(s,i)}}else s.push({rule:a,path:[]});break}}),this._lookups[a]=s,s)},f.prototype.genCSS=function(e,t){function n(e){return"boolean"==typeof e.isRulesetLike?e.isRulesetLike:"function"==typeof e.isRulesetLike&&e.isRulesetLike()}var r,i,o,s,a,l=[],u=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var c,f=e.compress?"":Array(e.tabLevel+1).join("  "),p=e.compress?"":Array(e.tabLevel).join("  "),d=0,v=0;for(r=0;r<this.rules.length;r++)s=this.rules[r],"Comment"===s.type?(v===r&&v++,u.push(s)):s.isCharset&&s.isCharset()?(u.splice(d,0,s),d++,v++):"Import"===s.type?(u.splice(v,0,s),v++):u.push(s);if(u=l.concat(u),!this.root){o=h(e,this,p),o&&(t.add(o),t.add(p));var m,g=this.paths,y=g.length;for(c=e.compress?",":",\n"+p,r=0;r<y;r++)if(a=g[r],m=a.length)for(r>0&&t.add(c),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,i=1;i<m;i++)a[i].genCSS(e,t);t.add((e.compress?"{":" {\n")+f)}for(r=0;r<u.length;r++){s=u[r],r+1===u.length&&(e.lastRule=!0);var b=e.lastRule;n(s)&&(e.lastRule=!1),s.genCSS?s.genCSS(e,t):s.value&&t.add(s.value.toString()),e.lastRule=b,e.lastRule?e.lastRule=!1:t.add(e.compress?"":"\n"+f)}this.root||(t.add(e.compress?"}":"\n"+p+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},f.prototype.markReferenced=function(){var e;if(this.selectors)for(e=0;e<this.selectors.length;e++)this.selectors[e].markReferenced();if(this.rules)for(e=0;e<this.rules.length;e++)this.rules[e].markReferenced&&this.rules[e].markReferenced()},f.prototype.getIsReferenced=function(){var e,t,n,r;if(this.paths)for(e=0;e<this.paths.length;e++)for(n=this.paths[e],t=0;t<n.length;t++)if(n[t].getIsReferenced&&n[t].getIsReferenced())return!0;if(this.selectors)for(e=0;e<this.selectors.length;e++)if(r=this.selectors[e],r.getIsReferenced&&r.getIsReferenced())return!0;return!1},f.prototype.joinSelectors=function(e,t,n){for(var r=0;r<n.length;r++)this.joinSelector(e,t,n[r])},f.prototype.joinSelector=function(e,t,n){function r(e,t){var n,r;if(0===e.length)n=new a(e[0]);else{var i=[];for(r=0;r<e.length;r++)i.push(new s(null,e[r],t.index,t.currentFileInfo));n=new a(new o(i))}return n}function i(e,t){var n,r;return n=new s(null,e,t.index,t.currentFileInfo),r=new o([n])}function l(e,t,n){function o(e){var t;return"Paren"!==e.value.type?null:(t=e.value.value,"Selector"!==t.type?null:t)}var a,f,p,d,v,m,g,y,b,w,x=!1;for(d=[],v=[[]],a=0;a<n.elements.length;a++)if(y=n.elements[a],"&"!==y.value){var S=o(y);if(null!=S){h(d,v);var C,k=[],I=[];for(C=l(k,t,S),x=x||C,p=0;p<k.length;p++){var E=i(r(k[p],y),y);c(v,[E],y,n,I)}v=I,d=[]}else d.push(y)}else{for(x=!0,m=[],h(d,v),f=0;f<v.length;f++)if(g=v[f],0===t.length)g.length>0&&g[0].elements.push(new s(y.combinator,"",y.index,y.currentFileInfo)),m.push(g);else for(p=0;p<t.length;p++){var M=u(g,t[p],y,n);m.push(M)}v=m,d=[]}for(h(d,v),a=0;a<v.length;a++)b=v[a].length,b>0&&(e.push(v[a]),w=v[a][b-1],v[a][b-1]=w.createDerived(w.elements,n.extendList));return x}function u(e,t,n,r){var i,o,a;if(i=[],e.length>0?(i=e.slice(0),o=i.pop(),a=r.createDerived(o.elements.slice(0))):a=r.createDerived([]),t.length>0){var l=n.combinator,u=t[0].elements[0];l.emptyOrWhitespace&&!u.combinator.emptyOrWhitespace&&(l=u.combinator),a.elements.push(new s(l,u.value,n.index,n.currentFileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}return 0!==a.elements.length&&i.push(a),t.length>1&&(i=i.concat(t.slice(1))),i}function c(e,t,n,r,i){var o;for(o=0;o<e.length;o++){var s=u(e[o],t,n,r);i.push(s)}return i}function h(e,t){var n,r;if(0!==e.length){if(0===t.length)return void t.push([new o(e)]);for(n=0;n<t.length;n++)r=t[n],r.length>0?r[r.length-1]=r[r.length-1].createDerived(r[r.length-1].elements.concat(e)):r.push(new o(e))}}var f,p,d;if(p=[],d=l(p,t,n),!d)if(t.length>0)for(p=[],f=0;f<t.length;f++)p.push(t[f].concat(n));else p=[[n]];for(f=0;f<p.length;f++)e.push(p[f])},t.exports=f},{"../contexts":10,"../functions/default":19,"../functions/function-registry":21,"./debug-info":53,"./element":57,"./node":69,"./paren":71,"./rule":73,"./selector":76}],76:[function(e,t,n){var r=e("./node"),i=e("./element"),o=function(e,t,n,r,i,o){this.elements=e,this.extendList=t,this.condition=n,this.currentFileInfo=i||{},this.isReferenced=o,n||(this.evaldCondition=!0)};o.prototype=new r,o.prototype.type="Selector",o.prototype.accept=function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},o.prototype.createDerived=function(e,t,n){n=null!=n?n:this.evaldCondition;var r=new o(e,t||this.extendList,null,this.index,this.currentFileInfo,this.isReferenced);return r.evaldCondition=n,r.mediaEmpty=this.mediaEmpty,r},o.prototype.createEmptySelectors=function(){var e=new i("","&",this.index,this.currentFileInfo),t=[new o([e],null,null,this.index,this.currentFileInfo)];return t[0].mediaEmpty=!0,t},o.prototype.match=function(e){var t,n,r=this.elements,i=r.length;if(e.CacheElements(),t=e._elements.length,0===t||i<t)return 0;for(n=0;n<t;n++)if(r[n].value!==e._elements[n])return 0;return t},o.prototype.CacheElements=function(){if(!this._elements){var e=this.elements.map(function(e){return e.combinator.value+(e.value.value||e.value)}).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);e?"&"===e[0]&&e.shift():e=[],this._elements=e}},o.prototype.isJustParentSelector=function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},o.prototype.eval=function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,r=this.extendList;return n=n&&n.map(function(t){return t.eval(e)}),r=r&&r.map(function(t){return t.eval(e)}),this.createDerived(n,r,t)},o.prototype.genCSS=function(e,t){var n,r;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++)r=this.elements[n],r.genCSS(e,t)},o.prototype.markReferenced=function(){this.isReferenced=!0},o.prototype.getIsReferenced=function(){return!this.currentFileInfo.reference||this.isReferenced},o.prototype.getIsOutput=function(){return this.evaldCondition},t.exports=o},{"./element":57,"./node":69}],77:[function(e,t,n){var r=e("./node"),i=function(e){this.value=e};i.prototype=new r,i.prototype.type="UnicodeDescriptor",t.exports=i},{"./node":69}],78:[function(e,t,n){var r=e("./node"),i=e("../data/unit-conversions"),o=function(e,t,n){this.numerator=e?e.slice(0).sort():[],this.denominator=t?t.slice(0).sort():[],n?this.backupUnit=n:e&&e.length&&(this.backupUnit=e[0])};o.prototype=new r,o.prototype.type="Unit",o.prototype.clone=function(){return new o(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},o.prototype.genCSS=function(e,t){var n=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!n&&this.backupUnit?t.add(this.backupUnit):!n&&this.denominator.length&&t.add(this.denominator[0])},o.prototype.toString=function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},o.prototype.compare=function(e){return this.is(e.toString())?0:void 0},o.prototype.is=function(e){return this.toString().toUpperCase()===e.toUpperCase()},o.prototype.isLength=function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},o.prototype.isEmpty=function(){return 0===this.numerator.length&&0===this.denominator.length},o.prototype.isSingular=function(){return this.numerator.length<=1&&0===this.denominator.length},o.prototype.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)},o.prototype.usedUnits=function(){var e,t,n={};t=function(t){return e.hasOwnProperty(t)&&!n[r]&&(n[r]=t),t};for(var r in i)i.hasOwnProperty(r)&&(e=i[r],this.map(t));return n},o.prototype.cancel=function(){var e,t,n={};for(t=0;t<this.numerator.length;t++)e=this.numerator[t],n[e]=(n[e]||0)+1;for(t=0;t<this.denominator.length;t++)e=this.denominator[t],n[e]=(n[e]||0)-1;this.numerator=[],this.denominator=[];for(e in n)if(n.hasOwnProperty(e)){var r=n[e];if(r>0)for(t=0;t<r;t++)this.numerator.push(e);else if(r<0)for(t=0;t<-r;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()},t.exports=o},{"../data/unit-conversions":13,"./node":69}],79:[function(e,t,n){var r=e("./node"),i=function(e,t,n,r){this.value=e,this.currentFileInfo=n,this.index=t,this.isEvald=r};i.prototype=new r,i.prototype.type="Url",i.prototype.accept=function(e){this.value=e.visit(this.value)},i.prototype.genCSS=function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},i.prototype.eval=function(e){var t,n=this.value.eval(e);if(!this.isEvald&&(t=this.currentFileInfo&&this.currentFileInfo.rootpath,t&&"string"==typeof n.value&&e.isPathRelative(n.value)&&(n.quote||(t=t.replace(/[\(\)'"\s]/g,function(e){return"\\"+e})),n.value=t+n.value),n.value=e.normalizePath(n.value),e.urlArgs&&!n.value.match(/^\s*data:/))){var r=n.value.indexOf("?")===-1?"?":"&",o=r+e.urlArgs;n.value.indexOf("#")!==-1?n.value=n.value.replace("#",o+"#"):n.value+=o}return new i(n,this.index,this.currentFileInfo,(!0))},t.exports=i},{"./node":69}],80:[function(e,t,n){var r=e("./node"),i=function(e){if(this.value=e,!e)throw new Error("Value requires an array argument")};i.prototype=new r,i.prototype.type="Value",i.prototype.accept=function(e){this.value&&(this.value=e.visitArray(this.value))},i.prototype.eval=function(e){return 1===this.value.length?this.value[0].eval(e):new i(this.value.map(function(t){return t.eval(e)}))},i.prototype.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?",":", ")},t.exports=i},{"./node":69}],81:[function(e,t,n){var r=e("./node"),i=function(e,t,n){this.name=e,this.index=t,this.currentFileInfo=n||{}};i.prototype=new r,i.prototype.type="Variable",i.prototype.eval=function(e){var t,n=this.name;if(0===n.indexOf("@@")&&(n="@"+new i(n.slice(1),this.index,this.currentFileInfo).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+n,filename:this.currentFileInfo.filename,index:this.index};if(this.evaluating=!0,t=this.find(e.frames,function(t){var r=t.variable(n);if(r){if(r.important){var i=e.importantScope[e.importantScope.length-1];i.important=r.important}return r.value.eval(e)}}))return this.evaluating=!1,t;throw{type:"Name",message:"variable "+n+" is undefined",filename:this.currentFileInfo.filename,index:this.index}},i.prototype.find=function(e,t){for(var n,r=0;r<e.length;r++)if(n=t.call(e,e[r]))return n;return null},t.exports=i},{"./node":69}],82:[function(e,t,n){t.exports={getLocation:function(e,t){for(var n=e+1,r=null,i=-1;--n>=0&&"\n"!==t.charAt(n);)i++;return"number"==typeof e&&(r=(t.slice(0,e).match(/\n/g)||"").length),{line:r,column:i}}}},{}],83:[function(e,t,n){var r=e("../tree"),i=e("./visitor"),o=e("../logger"),s=function(){this._visitor=new i(this),this.contexts=[],this.allExtendsStack=[[]]};s.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(e,t){if(!e.root){var n,i,o,s,a=[],l=e.rules,u=l?l.length:0;for(n=0;n<u;n++)e.rules[n]instanceof r.Extend&&(a.push(l[n]),e.extendOnEveryPath=!0);var c=e.paths;for(n=0;n<c.length;n++){var h=c[n],f=h[h.length-1],p=f.extendList;for(s=p?p.slice(0).concat(a):a,s&&(s=s.map(function(e){return e.clone()})),i=0;i<s.length;i++)this.foundExtends=!0,o=s[i],o.findSelfSelectors(h),o.ruleset=e,0===i&&(o.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(o)}this.contexts.push(e.selectors)}},visitRulesetOut:function(e){e.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitMediaOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitDirectiveOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1}};var a=function(){this._visitor=new i(this)};a.prototype={run:function(e){var t=new s;if(this.extendIndicies={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];var n=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),n},checkExtendsForNonMatched:function(e){var t=this.extendIndicies;e.filter(function(e){return!e.hasFoundMatches&&1==e.parent_ids.length}).forEach(function(e){var n="_unknown_";try{n=e.selector.toCSS({})}catch(r){}t[e.index+" "+n]||(t[e.index+" "+n]=!0,o.warn("extend '"+n+"' has no matches"))})},doExtendChaining:function(e,t,n){var i,o,s,a,l,u,c,h,f=[],p=this;for(n=n||0,i=0;i<e.length;i++)for(o=0;o<t.length;o++)u=e[i],c=t[o],u.parent_ids.indexOf(c.object_id)>=0||(l=[c.selfSelectors[0]],s=p.findMatch(u,l),s.length&&(u.hasFoundMatches=!0,u.selfSelectors.forEach(function(e){a=p.extendSelector(s,l,e),h=new r.Extend(c.selector,c.option,0),h.selfSelectors=a,a[a.length-1].extendList=[h],f.push(h),h.ruleset=c.ruleset,h.parent_ids=h.parent_ids.concat(c.parent_ids,u.parent_ids),c.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))})));if(f.length){if(this.extendChainCount++,n>100){var d="{unable to calculate}",v="{unable to calculate}";try{d=f[0].selfSelectors[0].toCSS(),v=f[0].selector.toCSS()}catch(m){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+d+":extend("+v+")"}}return f.concat(p.doExtendChaining(f,t,n+1))}return f},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var n,r,i,o,s=this.allExtendsStack[this.allExtendsStack.length-1],a=[],l=this;for(i=0;i<s.length;i++)for(r=0;r<e.paths.length;r++)if(o=e.paths[r],!e.extendOnEveryPath){var u=o[o.length-1].extendList;u&&u.length||(n=this.findMatch(s[i],o),n.length&&(s[i].hasFoundMatches=!0,s[i].selfSelectors.forEach(function(e){a.push(l.extendSelector(n,o,e))})))}e.paths=e.paths.concat(a)}},findMatch:function(e,t){var n,r,i,o,s,a,l,u=this,c=e.selector.elements,h=[],f=[];for(n=0;n<t.length;n++)for(r=t[n],i=0;i<r.elements.length;i++)for(o=r.elements[i],(e.allowBefore||0===n&&0===i)&&h.push({pathIndex:n,index:i,matched:0,initialCombinator:o.combinator}),a=0;a<h.length;a++)l=h[a],s=o.combinator.value,""===s&&0===i&&(s=" "),!u.isElementValuesEqual(c[l.matched].value,o.value)||l.matched>0&&c[l.matched].combinator.value!==s?l=null:l.matched++,l&&(l.finished=l.matched===c.length,l.finished&&!e.allowAfter&&(i+1<r.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=c.length,l.endPathIndex=n,l.endPathElementIndex=i+1,h.length=0,f.push(l)):(h.splice(a,1),a--);return f},isElementValuesEqual:function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof r.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value,t=t.value.value||t.value,e===t):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof r.Selector){if(!(t instanceof r.Selector)||e.elements.length!==t.elements.length)return!1;for(var n=0;n<e.elements.length;n++){if(e.elements[n].combinator.value!==t.elements[n].combinator.value&&(0!==n||(e.elements[n].combinator.value||" ")!==(t.elements[n].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[n].value,t.elements[n].value))return!1}return!0}return!1},extendSelector:function(e,t,n){var i,o,s,a,l,u=0,c=0,h=[];for(i=0;i<e.length;i++)a=e[i],o=t[a.pathIndex],s=new r.Element(a.initialCombinator,n.elements[0].value,n.elements[0].index,n.elements[0].currentFileInfo),a.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),c=0,u++),l=o.elements.slice(c,a.index).concat([s]).concat(n.elements.slice(1)),u===a.pathIndex&&i>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(t.slice(u,a.pathIndex)),h.push(new r.Selector(l))),u=a.endPathIndex,c=a.endPathElementIndex,c>=t[u].elements.length&&(c=0,u++);return u<t.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),u++),h=h.concat(t.slice(u,t.length))},visitRulesetOut:function(e){},visitMedia:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitMediaOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},visitDirective:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitDirectiveOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}},t.exports=a},{"../logger":32,"../tree":61,"./visitor":89}],84:[function(e,t,n){function r(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}r.prototype.addImport=function(e){var t=this,n={callback:e,args:null,isReady:!1};return this.imports.push(n),function(){n.args=Array.prototype.slice.call(arguments,0),n.isReady=!0,t.tryRun()}},r.prototype.addVariableImport=function(e){this.variableImports.push(e)},r.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;var t=this.variableImports[0];this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},t.exports=r},{}],85:[function(e,t,n){var r=e("../contexts"),i=e("./visitor"),o=e("./import-sequencer"),s=function(e,t){this._visitor=new i(this),this._importer=e,this._finish=t,this.context=new r.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new o(this._onSequencerEmpty.bind(this))};s.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(t){this.error=t}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var n=e.options.inline;if(!e.css||n){var i=new r.Eval(this.context,this.context.frames.slice(0)),o=i.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,i,o)):this.processImportNode(e,i,o)}t.visitDeeper=!1},processImportNode:function(e,t,n){var r,i=e.options.inline;try{r=e.evalForImport(t)}catch(o){o.filename||(o.index=e.index,o.filename=e.currentFileInfo.filename),e.css=!0,e.error=o}if(!r||r.css&&!i)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{r.options.multiple&&(t.importMultiple=!0);for(var s=void 0===r.css,a=0;a<n.rules.length;a++)if(n.rules[a]===e){n.rules[a]=r;break}var l=this.onImported.bind(this,r,t),u=this._sequencer.addImport(l);this._importer.push(r.getPath(),s,r.currentFileInfo,r.options,u)}},onImported:function(e,t,n,r,i,o){n&&(n.filename||(n.index=e.index,n.filename=e.currentFileInfo.filename),this.error=n);var s=this,a=e.options.inline,l=e.options.plugin,u=e.options.optional,c=i||o in s.recursionDetector;if(t.importMultiple||(c?e.skip=!0:e.skip=function(){return o in s.onceFileDetectionMap||(s.onceFileDetectionMap[o]=!0,!1)}),!o&&u&&(e.skip=!0),r&&(e.root=r,e.importedFilename=o,!a&&!l&&(t.importMultiple||!c))){s.recursionDetector[o]=!0;var h=this.context;this.context=t;try{this._visitor.visit(r)}catch(n){this.error=n}this.context=h}s.importCount--,s.isFinished&&s._sequencer.tryRun()},visitRule:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitRuleOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitDirective:function(e,t){this.context.frames.unshift(e)},visitDirectiveOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}},t.exports=s},{"../contexts":10,"./import-sequencer":84,"./visitor":89}],86:[function(e,t,n){
  var r={Visitor:e("./visitor"),ImportVisitor:e("./import-visitor"),ExtendVisitor:e("./extend-visitor"),JoinSelectorVisitor:e("./join-selector-visitor"),ToCSSVisitor:e("./to-css-visitor")};t.exports=r},{"./extend-visitor":83,"./import-visitor":85,"./join-selector-visitor":87,"./to-css-visitor":88,"./visitor":89}],87:[function(e,t,n){var r=e("./visitor"),i=function(){this.contexts=[[]],this._visitor=new r(this)};i.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,t){var n,r=this.contexts[this.contexts.length-1],i=[];this.contexts.push(i),e.root||(n=e.selectors,n&&(n=n.filter(function(e){return e.getIsOutput()}),e.selectors=n.length?n:n=null,n&&e.joinSelectors(i,r,n)),n||(e.rules=null),e.paths=i)},visitRulesetOut:function(e){this.contexts.length=this.contexts.length-1},visitMedia:function(e,t){var n=this.contexts[this.contexts.length-1];e.rules[0].root=0===n.length||n[0].multiMedia},visitDirective:function(e,t){var n=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===n.length||null)}},t.exports=i},{"./visitor":89}],88:[function(e,t,n){var r=e("../tree"),i=e("./visitor"),o=function(e){this._visitor=new i(this),this._context=e};o.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitRule:function(e,t){if(!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.isSilent(this._context))return e},visitMedia:function(e,t){if(e.accept(this._visitor),t.visitDeeper=!1,e.rules.length)return e},visitImport:function(e,t){if(void 0===e.path.currentFileInfo.reference||!e.css)return e},visitDirective:function(e,t){function n(e){var t,n=e.rules;1!==n.length||n[0].paths&&0!==n[0].paths.length||(n=n[0].rules);for(var r=0;r<n.length;r++)if(t=n[r],t.getIsReferenced&&t.getIsReferenced())return!0;return!1}if("@charset"===e.name){if(!e.getIsReferenced())return;if(this.charset){if(e.debugInfo){var i=new r.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return i.debugInfo=e.debugInfo,this._visitor.visit(i)}return}this.charset=!0}if(e.rules&&e.rules.length){if(this._mergeRules(e.rules[0].rules),e.accept(this._visitor),t.visitDeeper=!1,e.getIsReferenced())return e;if(!e.rules||!e.rules.length)return;if(n(e))return e.markReferenced(),e}else if(e.getIsReferenced())return e},checkPropertiesInRoot:function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],t instanceof r.Rule&&!t.variable)throw{message:"properties must be inside selector blocks, they cannot be in the root.",index:t.index,filename:t.currentFileInfo?t.currentFileInfo.filename:null}},visitRuleset:function(e,t){var n,i=[];if(e.firstRoot&&this.checkPropertiesInRoot(e.rules),e.root)e.accept(this._visitor),t.visitDeeper=!1,(e.firstRoot||e.rules&&e.rules.length>0)&&i.splice(0,0,e);else{e.paths&&(e.paths=e.paths.filter(function(e){var t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new r.Combinator("")),t=0;t<e.length;t++)if(e[t].getIsReferenced()&&e[t].getIsOutput())return!0;return!1}));for(var o=e.rules,s=o?o.length:0,a=0;a<s;)n=o[a],n&&n.rules?(i.push(this._visitor.visit(n)),o.splice(a,1),s--):a++;s>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1,o=e.rules,o&&(this._mergeRules(o),o=e.rules),o&&(this._removeDuplicateRules(o),o=e.rules),o&&o.length>0&&e.paths.length>0&&i.splice(0,0,e)}return 1===i.length?i[0]:i},_removeDuplicateRules:function(e){if(e){var t,n,i,o={};for(i=e.length-1;i>=0;i--)if(n=e[i],n instanceof r.Rule)if(o[n.name]){t=o[n.name],t instanceof r.Rule&&(t=o[n.name]=[o[n.name].toCSS(this._context)]);var s=n.toCSS(this._context);t.indexOf(s)!==-1?e.splice(i,1):t.push(s)}else o[n.name]=n}},_mergeRules:function(e){if(e){for(var t,n,i,o={},s=0;s<e.length;s++)n=e[s],n instanceof r.Rule&&n.merge&&(i=[n.name,n.important?"!":""].join(","),o[i]?e.splice(s--,1):o[i]=[],o[i].push(n));Object.keys(o).map(function(e){function i(e){return new r.Expression(e.map(function(e){return e.value}))}function s(e){return new r.Value(e.map(function(e){return e}))}if(t=o[e],t.length>1){n=t[0];var a=[],l=[];t.map(function(e){"+"===e.merge&&(l.length>0&&a.push(i(l)),l=[]),l.push(e)}),a.push(i(l)),n.value=s(a)}})}},visitAnonymous:function(e,t){if(e.getIsReferenced())return e.accept(this._visitor),e}},t.exports=o},{"../tree":61,"./visitor":89}],89:[function(e,t,n){function r(e){return e}function i(e,t){var n,r;for(n in e)if(e.hasOwnProperty(n))switch(r=e[n],typeof r){case"function":r.prototype&&r.prototype.type&&(r.prototype.typeIndex=t++);break;case"object":t=i(r,t)}return t}var o=e("../tree"),s={visitDeeper:!0},a=!1,l=function(e){this._implementation=e,this._visitFnCache=[],a||(i(o,1),a=!0)};l.prototype={visit:function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e;var n,i=this._visitFnCache,o=this._implementation,a=t<<1,l=1|a,u=i[a],c=i[l],h=s;if(h.visitDeeper=!0,u||(n="visit"+e.type,u=o[n]||r,c=o[n+"Out"]||r,i[a]=u,i[l]=c),u!==r){var f=u.call(o,e,h);o.isReplacing&&(e=f)}return h.visitDeeper&&e&&e.accept&&e.accept(this),c!=r&&c.call(o,e),e},visitArray:function(e,t){if(!e)return e;var n,r=e.length;if(t||!this._implementation.isReplacing){for(n=0;n<r;n++)this.visit(e[n]);return e}var i=[];for(n=0;n<r;n++){var o=this.visit(e[n]);void 0!==o&&(o.splice?o.length&&this.flatten(o,i):i.push(o))}return i},flatten:function(e,t){t||(t=[]);var n,r,i,o,s,a;for(r=0,n=e.length;r<n;r++)if(i=e[r],void 0!==i)if(i.splice)for(s=0,o=i.length;s<o;s++)a=i[s],void 0!==a&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(i);return t}},t.exports=l},{"../tree":61}],90:[function(e,t,n){function r(){if(!a){a=!0;for(var e,t=s.length;t;){e=s,s=[];for(var n=-1;++n<t;)e[n]();t=s.length}a=!1}}function i(){}var o=t.exports={},s=[],a=!1;o.nextTick=function(e){s.push(e),a||setTimeout(r,0)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=i,o.addListener=i,o.once=i,o.off=i,o.removeListener=i,o.removeAllListeners=i,o.emit=i,o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],91:[function(e,t,n){"use strict";function r(e){function t(e){return null===l?void c.push(e):void s(function(){var t=l?e.onFulfilled:e.onRejected;if(null===t)return void(l?e.resolve:e.reject)(u);var n;try{n=t(u)}catch(r){return void e.reject(r)}e.resolve(n)})}function n(e){try{if(e===h)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void o(t.bind(e),n,r)}l=!0,u=e,a()}catch(i){r(i)}}function r(e){l=!1,u=e,a()}function a(){for(var e=0,n=c.length;e<n;e++)t(c[e]);c=null}if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");var l=null,u=null,c=[],h=this;this.then=function(e,n){return new h.constructor(function(r,o){t(new i(e,n,r,o))})},o(e,n,r)}function i(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function o(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(i){if(r)return;r=!0,n(i)}}var s=e("asap");t.exports=r},{asap:93}],92:[function(e,t,n){"use strict";function r(e){this.then=function(t){return"function"!=typeof t?this:new i(function(n,r){o(function(){try{n(t(e))}catch(i){r(i)}})})}}var i=e("./core.js"),o=e("asap");t.exports=i,r.prototype=i.prototype;var s=new r((!0)),a=new r((!1)),l=new r(null),u=new r((void 0)),c=new r(0),h=new r("");i.resolve=function(e){if(e instanceof i)return e;if(null===e)return l;if(void 0===e)return u;if(e===!0)return s;if(e===!1)return a;if(0===e)return c;if(""===e)return h;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new i(t.bind(e))}catch(n){return new i(function(e,t){t(n)})}return new r(e)},i.all=function(e){var t=Array.prototype.slice.call(e);return new i(function(e,n){function r(o,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(e){r(o,e)},n)}t[o]=s,0===--i&&e(t)}catch(l){n(l)}}if(0===t.length)return e([]);for(var i=t.length,o=0;o<t.length;o++)r(o,t[o])})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(t,n){e.forEach(function(e){i.resolve(e).then(t,n)})})},i.prototype["catch"]=function(e){return this.then(null,e)}},{"./core.js":91,asap:93}],93:[function(e,t,n){(function(e){function n(){for(;i.next;){i=i.next;var e=i.task;i.task=void 0;var t=i.domain;t&&(i.domain=void 0,t.enter());try{e()}catch(r){if(l)throw t&&t.exit(),setTimeout(n,0),t&&t.enter(),r;setTimeout(function(){throw r},0)}t&&t.exit()}s=!1}function r(t){o=o.next={task:t,domain:l&&e.domain,next:null},s||(s=!0,a())}var i={task:void 0,next:null},o=i,s=!1,a=void 0,l=!1;if("undefined"!=typeof e&&e.nextTick)l=!0,a=function(){e.nextTick(n)};else if("function"==typeof setImmediate)a="undefined"!=typeof window?setImmediate.bind(window,n):function(){setImmediate(n)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=n,a=function(){u.port2.postMessage(0)}}else a=function(){setTimeout(n,0)};t.exports=r}).call(this,e("_process"))},{_process:90}],94:[function(e,t,n){"function"!=typeof Promise.prototype.done&&(Promise.prototype.done=function(e,t){var n=arguments.length?this.then.apply(this,arguments):this;n.then(null,function(e){setTimeout(function(){throw e},0)})})},{}],95:[function(e,t,n){e("asap");"undefined"==typeof Promise&&(Promise=e("./lib/core.js"),e("./lib/es6-extensions.js")),e("./polyfill-done.js")},{"./lib/core.js":91,"./lib/es6-extensions.js":92,"./polyfill-done.js":94,asap:93}]},{},[2])(2)}),+function(e,t){"use strict";if("file:"===e.location.protocol)return t("#fileProtocolTip").removeClass("hidden"),void t(".loading.loader").removeClass("loading");t.zui.browser.ie&&t.zui.browser.ie<11&&t.zui.messager.danger("你正在使用 IE 较低版本访问，无法获得 ZUI 文档网站的完整体验，建议你更换浏览器再访问。",{time:2e4}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return r!==-1&&r===t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.lastIndexOf(e,t)===t}),String.prototype.includes||(String.prototype.includes=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),t.fn.allAttrs=function(){var e={};return t.each(t(this)[0].attributes,function(t,n){e[n.name]=n.value}),e};var n=function(t,n){var r=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),i=e.location.search.substr(1).match(r);return null!==i?unescape(i[2]):n},r=n("debug",0);r&&(console.warn("DEBUG ENABLED."),t("#pageReloadBtn").show());var i,o,s,a,l,u,c,h,f,p,d,v,m,g,y,b,w,x,S,C,k,I,E,M,_,A,R,F,L={springboot:{col:1},basic:{col:1},control:{col:2},component:{col:2},javascript:{col:3},view:{col:3},learn:{col:1},promotion:{col:1,row:2},resource:{col:1,row:2},contribution:{col:1,row:2}},P="ontouchstart"in document.documentElement,T="lastReloadAnimate",$="LAST_QUERY_ID",O=r?"docs/index.json":"docs/index.min.json",j=r?"docs/icons.json":"docs/icons.min.json",q="package.json",D=r?"zui.json":"docs/zui.min.json",N=void 0,U=(new Date).getTime()<15041952e5,z={standard:null,lite:null,seperate:null},B={"default":{variables:{"color-primary":"#3280fc","color-secondary":"#145ccd","color-pale":"#ebf2f9","border-radius-base":"4px","border-radius-large":"6px","border-radius-small":"3px"}},blue:{variables:{"color-primary":"#039BE5","color-secondary":"#0288d1","color-pale":"#e1f5fe","border-radius-base":"4px","border-radius-large":"6px","border-radius-small":"2px"}},red:{variables:{"color-primary":"#d9534f","color-secondary":"#c74743","color-pale":"#ffebee","border-radius-base":"4px","border-radius-large":"6px","border-radius-small":"2px"}},green:{variables:{"color-primary":"#4caf50","color-secondary":"#43a047","color-pale":"#e8f5e9","border-radius-base":0,"border-radius-large":0,"border-radius-small":0}},purple:{variables:{"color-primary":"#8666b8","color-secondary":"#673AB7","color-pale":"#f5eeff","border-radius-base":0,"border-radius-large":0,"border-radius-small":0}},brown:{variables:{"color-primary":"#8D6E63","color-secondary":"#795548","color-pale":"#f7ebe1","border-radius-base":"15px","border-radius-large":"15px","border-radius-small":"15px"}},yellow:{variables:{"color-primary":"#d0884d","color-secondary":"#bd7b46","color-pale":"#fff0d5","border-radius-base":"4px","border-radius-large":"6px","border-radius-small":"2px"}},indigo:{variables:{"color-primary":"#3F51B5","color-secondary":"#3949AB","color-pale":"#ECEFF1","border-radius-base":0,"border-radius-large":"1px","border-radius-small":0}},bluegrey:{variables:{"color-primary":"#607D8B","color-secondary":"#546E7A","color-pale":"#ECEFF1","border-radius-base":0,"border-radius-large":0,"border-radius-small":0}},black:{variables:{"color-primary":"#333","color-secondary":"#222","color-pale":"#f5f5f5","border-radius-base":0,"border-radius-large":0,"border-radius-small":0}}},V="ZUI",H=-1,W=1120,G=!0,J=function(e){return"string"==typeof e&&(e=e.toLowerCase(),e.startsWith("http://")||e.startsWith("https://"))},K=function(){if(!(document.body.clientWidth>=e.innerWidth)){if(H<0){var t=document.createElement("div");t.className="modal-scrollbar-measure",f.append(t),H=t.offsetWidth-t.clientWidth,f[0].removeChild(t)}if(H){var n=parseInt(f.css("padding-right")||0,10);f.css("padding-right",n+H),I.css("padding-right",H)}}},Q=function(){f.css("padding-right",""),I.css("padding-right","")},X=function(e,n,l,u){var c=null,h=e===O,p=e===j,d=!1;if(h&&s)c={data:s,version:s.version},d=!0;else if(p&&a)c=a,d=!0;else if(o){var v=t.zui.store.get("//"+e,null);if(null!==v){var m=t.zui.store.get("//"+e+"::V");m&&(c={data:v,version:m},d=!0,!s&&h&&(s=v),r&&console.log("Ready storage data ",e,":",c))}}if(!d||!h&&c.version!==i||(r&&console.log("Load",e,"from cache:",c),u||(n(c.data,"cache"),h||r))){var g=e.endsWith(".json")?"json":"html",y=function(){t.ajax({url:e,type:"GET",dataType:g,success:function(o){null!==o?(h?(i=o.version,s=o):p&&(a={data:o,version:i}),c={data:o,version:i},t.zui.store.set("//"+e,o),t.zui.store.set("//"+e+"::V",i),r&&console.log("Load",e,"from remote:",c),n(o,"remote")):d&&!h&&(r&&console.log("Failed load",e,"from remote, instead load cache:",c),n(c.data,"cache"))},error:function(){r&&console.warn("Ajax error:",e),d&&!h?(r&&console.log("Failed load",e,"from remote with error, instead load cache:",c),n(c.data,"cache")):n(null,"error"),f.hasClass("page-open")&&k.children(".loader").addClass("with-error")}})};l!==!1&&(l?setTimeout(y,l):y())}},Z=function(e,n){return s?(t.each(L,function(r,i){if(s.chapters[r]){t.extend(i,s.chapters[r]);var o=i.sections,a=null;return(!n||(a=n(i,o),a!==!1))&&void t.each(o,function(t,n){if(e(i,n,a)===!1)return!1})}}),!0):(console.error("Document index is empty."),!1)},Y=function(e,t){var n=t.icon;e.attr("class","icon").text("").css("background-image",""),void 0!==n&&null!==n&&""!==n||(n=t.name.substr(0,1).toUpperCase()),n.startsWith("icon-")?e.addClass(n):n.endsWith(".png")?e.css("background-image","url("+n+")").addClass("with-img"):e.addClass("text-icon").text(n)},ee=function(){var e=0;Z(function(n,r,i){var o=n.id;r.chapter=o,r.chapterName=n.name;var s=r.url;if("undefined"==typeof s?(r.url="docs/part/"+r.chapter+"-"+r.id+".md",r.target="page",r.targetType="markdown",r.oldUrl="docs/part/"+r.chapter+"-"+r.id+".html"):J(s)?(r.target="external",r.targetType=null):s&&s.endsWith(".md")?(r.target="page",r.targetType="markdown",".md"===s&&(r.url="docs/part/"+r.chapter+"-"+r.id+".md")):s&&s.endsWith(".html")?(r.target="page",r.targetType="html",".html"===s&&(r.url="docs/part/"+r.chapter+"-"+r.id+".html")):r.target="",!r.hidden){var a=o+"-"+r.id,l=v.clone().data("section",r);l.attr({id:"section-"+a,"data-id":r.id,"data-chapter":o,"data-order":e++,"data-accent":n.accent,"data-target":r.target});var u=l.children(".card-heading"),h="#"+o+"/"+r.id;u.find(".name").text(r.name).attr("href",h),u.attr("title",r.desc),Y(u.children(".icon"),r);var f=l.find(".topics");if(r.topics&&r.topics.length){var p=0;t.each(r.topics,function(e,t){"undefined"==typeof t.id&&(t.id=e);var n="undefined"==typeof t.url?h+"/"+p++:t.url;f.append('<li data-id="'+e+'"><a href="'+n+'"'+(J(n)?' target="_blank"':"")+">"+t.name+"</a></li>")})}else f.remove(".card-content"),l.addClass("without-topics");i.append(l.addClass("show"+(c?" in":"")))}},function(e,t){e.$.attr("data-accent",e.accent);var n=e.$sections;return n.children().remove(),n})?(f.children(".loader").removeClass("loading"),A=d.find(".section"),c||(clearTimeout(d.data(T)),d.data(T,setTimeout(function(){A.addClass("in"),R.addClass("in")},100)),c=!0),t(".text-page-count").text(A.filter('[data-target="page"]').length),t(".text-external-count").text(A.filter('[data-target="external"]').length)):r&&console.error("Display sections failed.")},te=function(e,t,n){e===N&&(e=f),t===N||"down"===t?t=e.scrollTop()+.8*(p.height()-e.offset().top):"up"===t&&(t=e.scrollTop()-.8*(p.height()-e.offset().top)),e.animate({scrollTop:t},200,"swing",n)},ne=function(e){if(e){e.offset().top,e.outerHeight(),p.height(),f.scrollTop()}},re=function(e){return e===N&&(e=b),e&&e.hasClass("choosed")&&e.hasClass("show")},ie=function(e,t,n){if(A){if(re(e||null)&&!n)return b=e.addClass("open"),void ne(e);A.find(":focus").blur();var r=e&&e.hasClass("open");A.removeClass(t?"choosed":"choosed open"),e&&e.hasClass("section")&&(b=e.addClass(n&&!r?"choosed":"choosed open"),ne(e))}},oe=function(){var e=A.filter(".show");if(re()){for(var t=parseInt(b.data("order")),n=b;--t>-1;){var r=e.filter('[data-order="'+t+'"]');if(r.length){n=r;break}}ie(n)}else ie(e.first())},se=function(){var e=A.filter(".show");if(re()){for(var t=parseInt(b.data("order")),n=b,r=A.length;t++<r;){var i=e.filter('[data-order="'+t+'"]');if(i.length){n=i;break}}ie(n)}else ie(e.first())},ae=function(e,t,n,r){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2),2)},le=function(){var e=A.filter(".show");if(re()){var n=b.offset(),r=n.left-d.children(".container").offset().left-10;if(r<50)return void oe();var i=n.top;r=n.left;var o=b,s=99999;e.each(function(){var e=t(this),n=e.offset();if(n.left+50<r){var a=ae(n.left,n.top,r,i);a<s&&(o=e,s=a)}}),ie(o)}else ie(e.first())},ue=function(){var e=A.filter(".show");if(re()){var n=b.offset(),r=d.children(".container"),i=n.left-r.offset().left-10;if(i+20+b.outerWidth()+50>=r.outerWidth())return void se();var o=n.top;i=n.left;var s=b,a=99999;e.each(function(){var e=t(this),n=e.offset();if(n.left>i){var r=ae(n.left,n.top,i,o);r<a&&(s=e,a=r)}}),ie(s)}else ie(e.first())},ce=function(){d.find(".col.hide").removeClass("hide"),g.removeClass("hide"),A.addClass("show"),R.addClass("show"),d.data(T,setTimeout(function(){A.addClass("in"),R.addClass("in")},20)),f.removeClass("query-enabled").attr("data-query","")},he=function(e){var n=t("#section-control-icon");if(!e||!e.length)return void n.removeClass("section-preview-show").data("preview",null);n.addClass("open section-preview-show");var r=n.children(".section-preview"),i=n.data("preview");r.length||(r=t("#iconPreviewTemplate").clone().attr("id",""),n.children(".card-heading").after(r)),n.children(".section-search").find("li.active").removeClass("active"),e.addClass("active"),i&&r.find(".icon").removeClass("icon-"+i);var o=e.data("icon");n.data("preview",o.id),r.toggleClass("show-shaped-icon",!!o.shaped);var s="icon-"+o.id,a=(o.id.startsWith("spin")||o.categories&&o.categories.indexOf("Spinner Icons")>-1)===!0;r.find(".icon").addClass(s).toggleClass("icon-spin",a),r.find(".name").text(a?"icon-spin "+s:s),r.find(".unicode").text(o.code),o.alias&&o.alias.length?r.find(".alias").removeClass("hide").find(".alias-values").text(o.alias.join(",")):r.find(".alias").addClass("hide")},fe=function(e){t.isArray(e)||!e&&!e.length||(e=[e]);var n=t("#section-control-icon");f.attr("data-query","icons");var r=n.children(".section-search");r.length||(r=t('<div class="section-search card-content"><div class="loader loading"><i class="icon icon-spin icon-spinner"></i> 正在拼命加载中...</div></div>'),n.children(".card-heading").after(r),r=n.children(".section-search")),X(j,function(n){var i=r.children("ul");if(i.length||(i=t('<ul data-view="icons">'),t.each(n,function(e,n){var r=t('<li id="control-icon-'+e+'" data-id="'+e+'"><a href="#control/icons/'+e+'"><i class="icon icon-'+e+'"></i> icon-'+e+"</a></li>");n.id=e,r.data("icon",n).toggleClass("control-icon-shaped",!!n.shaped),i.append(r)}),r.children(".loader").replaceWith(i)),!e.length)return i.children(".hide").removeClass("hide"),void he(i.children().first());e.forEach(function(t,n){e[n]=e[n].toLowerCase()});var o,s=0;t.each(n,function(n,r){var i=!1,a=0;n=n.toLowerCase(),t.each(e,function(e,o){var s=!1;if(n.includes(o))s=!0,a+=n.startsWith(o)?120:110;else if(r.name&&r.name.toLowerCase().includes(o))s=!0,a+=r.name.toLowerCase().startsWith(o)?100:95;else if(o.startsWith("\\")&&r.code&&r.code.toLowerCase().includes(o.substr(1)))s=!0,a+=120;else{var l=[];if(t.isArray(r.filter)&&r.filter.length&&(l=l.concat(r.filter)),t.isArray(r.categories)&&r.categories.length&&(l=l.concat(r.categories)),t.isArray(r.alias)&&r.alias.length&&(l=l.concat(r.alias)),!l.length)return;t.each(l,function(e,t){if(t=t.toLowerCase(),t.includes(o))return s=!0,a+=50,!1})}return s?void(i=!0):i=!1});var l=t("#control-icon-"+n).toggleClass("hide",!i);i&&s<a&&(s=a,o=l)}),he(o)})},pe=function(n){if(!A)return void(r&&console.log("Query failed, $sections is empty. key:",n));if("undefined"==typeof n&&(n=null),m.data("queryString")!==n&&(m.data("queryString",n).val(n),d.css("min-height",d.height())),null===n||!n.length)return ce(),void E.removeClass("with-query-text");E.addClass("with-query-text"),f.addClass("query-enabled").attr("data-query",""),e.ga&&t.isFunction(ga)&&(h&&clearTimeout(h),h=setTimeout(function(){ga("send","pageview",e.location.pathname+"#search/"+n)},2e3));var i=[];if(t.each(n.split(" "),function(e,n){n=t.trim(n).toLowerCase();var r={origin:n};n.startsWith("@")?(r.type="id",r.chapter=n.substr(1),r.val=r.chapter):n.startsWith("#")?(r.type="tag",r.val=n.substr(1)):n.startsWith("icon-")||n.startsWith("icon:")?(r.type="icon",r.val=n.substr(5)):n.startsWith("i:")||n.startsWith("i-")?(r.type="icon",r.val=n.substr(2)):n.startsWith("ver:")?(r.type="version",r.val=n.substr(4)):n.startsWith("v:")?(r.type="version",r.val=n.substr(2)):n.startsWith("version:")?(r.type="version",r.val=n.substr(8)):n.startsWith("gulp:")||n.startsWith("build:")?(r.type="build",r.val=n.substr(6)):n.startsWith("g:")||n.startsWith("b:")?(r.type="build",r.val=n.substr(2)):(t.each(L,function(e){if(n.startsWith(e+":"))return r.type="id",r.chapter=e,r.val=n.substr(e.length),!1}),r.type||(r.type="any",r.val=n)),(r.val.length||r.type&&"any"!==r.type)&&i.push(r)}),!i.length)return void ce();var o,s,a,l,u,c,v,g={},y={};if(Z(function(e,n){a=!0,c=[],o=0,t.each(i,function(r,s){switch(u=s.val,v=null,l=!1,s.type){case"id":l=(s.chapter?e:n).id.includes(u),l&&(v=[s.chapter?"chapter":"section","id"]),o=100;break;case"icon":if(a="icon"===n.id){o=120,c.push({key:s,type:["section","id"]});var h=[];return(s.val||s.val.length)&&h.push(s.val),i.forEach(function(e){e.val!==s.val&&(e.val||e.val.length)&&h.push(e.val)}),fe(h),!1}break;case"version":l="new"==s.val?n.isNew:"update"==s.val?n.isUpdate:s.val?n.version===s.val:n.isUpdate||n.isNew,o=100;break;default:var f=n.name.toLowerCase();if(f.includes(u)){l=!0,v=["section","name"],o=f.startsWith(u)?85:82;break}if(n.filter&&n.filter.includes(u)){l=!0,v=["section","filter"],o=80;break}var p=e.name.toLowerCase();if(p.includes(u)){l=!0,v=["chapter","name"],o=p.startsWith(u)?75:73;break}if(e.filter&&e.filter.includes(u)){l=!0,v=["chapter","filter"],o=70;break}if(u.length>1){if(n.id.includes(u)){l=!0,v=["section","id"],o=65;break}if(e.id.includes(u)){l=!0,v=["chapter","id"],o=60;break}if(t.isArray(n.topics)){var d=!1;if(t.each(n.topics,function(e,t){if(t.name&&t.name.toLowerCase().includes(u))return l=!0,v=["section","topic",e],d=!0,o=20,!1}),d)break}if(n.desc&&n.desc.toLowerCase().includes(u)){l=!0,v="section.desc",o=30;break}}else{if(e.id.startsWith(u)){l=!0,v=["chapter","id"],o=60;break}if(n.id.startsWith(u)){l=!0,v=["section","id"],o=50;break}}}return l?void c.push({key:s,type:v}):(a=!1,!1)}),s=e.id+"-"+n.id,a?(y[e.id]++,g[s]={hidden:!1,matches:c,weight:o}):g[s]={hidden:!0}},function(e){y[e.id]=0})){var b,w,x=t(),S=t(),C=-1;t.each(g,function(e,n){b=t("#section-"+e),n.hidden?x=x.add(b):(S=S.add(b),C<n.weight&&(w=b,C=n.weight)),ie(w)});var k,I;t.each(y,function(e,t){I=L[e],k=!t,I.$.toggleClass("hide",k)});var M=0;d.find(".row").each(function(){var e=0,n=t(this);n.children(".col").each(function(){var n=t(this),r=n.children(".chapter:not(.hide)").length;if(n.toggleClass("hide",!r),r&&(e++,!f.hasClass("compact-mode"))){var i=n.find(".section:not(.hide)").length;i>2&&p.height()<_.height()+70*i&&de(!0)}}),M=Math.max(M,e)}),d.attr("data-show-col",M),x.length&&(x.removeClass("in"),setTimeout(function(){x.removeClass("show")},100)),S.length&&(S.addClass("show"),setTimeout(function(){S.addClass("in")},20)),p.scrollTop(1),t("body").hasClass("view-double")||ve()}else r&&console.error("Query failed with key: ",i)},de=function(e,t){e===N&&(e=!f.hasClass("compact-mode"));var n="isScrollAnimating";e?f.hasClass("compact-mode")?t&&t():(f.data(n,!0).addClass("compact-mode"),setTimeout(function(){f.addClass("compact-mode-in"),p.scrollTop(1),setTimeout(function(){f.data(n,!1),t&&t()},300)},10)):f.hasClass("compact-mode")?(f.data(n,!0).removeClass("compact-mode-in"),setTimeout(function(){f.removeClass("compact-mode"),f.data(n,!1),t&&t()},300)):t&&t()},ve=function(n){if(e.afterPageLoad=null,e.onPageLoad=null,t.isFunction(e.onPageClose)&&(e.onPageClose(),e.onPageClose=null),!n&&f.hasClass("page-open")){var r=w.data("trans-style");return r&&(r["max-height"]="",w.css(r)),f.addClass("page-show-out").removeClass("page-open page-show-in"),""!==m.val()&&m.focus(),e.document.title=V,e.location.hash="#/",setTimeout(function(){f.removeClass("page-show page-show-out"),Q()},300),!0}return!1},me=function(e){w.removeClass("page-collapsed");var t=typeof e;if("undefined"!==t){if("string"===t){var n=parseInt(e);NaN!==n&&(t="number",e=n)}var r=function(e){e&&e.length&&(Se(!1),Se(e.addClass("hover"),!0))};"number"===t?r(S.children("section").removeClass("hover").eq(e)):"string"===t&&t.length}},ge=function(){w.removeClass("loading"),C.removeClass("loading")},ye=function(){var n=!1;t.isFunction(e.onPageLoad)&&(n=e.onPageLoad()===!1),setTimeout(function(){t.isFunction(e.afterPageLoad)&&e.afterPageLoad(ge)===!0&&ye();var n=k.find("pre");n.length&&e.prettyPrint&&e.prettyPrint&&(n.addClass("prettyprint"),e.prettyPrint())},200),u&&k.find(".zui-version").text(u.version),n||ge()},be=function(n,i,o){n=n||l,"!refresh"!==i&&S.empty(),w.addClass("loading"),C.removeClass("with-error").addClass("loading");var s;return X(n.url,function(r,o){u&&(r=r.format(u,"{\\$0}"));var a=function(){if(r&&e.marked&&"markdown"===n.targetType){var o=t(),s=r.indexOf("\n---\n");s>-1&&(r=r.substr(s+5));var a,l=t(e.marked(r)),u=!0,c=l.filter("h2").length>0,h=null;l.each(function(){var e=t(this),n=e.prop("tagName");return n&&"STYLE"!==n&&"SCRIPT"!==n?"TEMPLATE"===n||"HOLDER"===n?void(h=e):(h&&(e.attr(h.allAttrs()),h=null),"TABLE"===n&&(e.addClass("table"),e=t('<div class="table-responsive"/>').append(e)),u?("H1"===n&&x.find("h2 > .name").text(e.html()),void(u=!1)):("EXAMPLE"===n&&(e=t("<div/>").attr(e.allAttrs()).html(e.html()).addClass("example")),void(c&&("H1"===n||"H2"===n)||!c&&"H3"===n?(a&&(o=o.add(a)),a=t("<section><header><h3>"+e.html()+"</h3></header><article></article></section>")):(c&&("H3"===n?e=t("<h4>").html(e.html()):"H4"===n?e=t("<h5>").html(e.html()):"H5"===n&&(e=t("<h6>").html(e.html()))),a||(a=t("<article></article>")),"ARTICLE"===a.prop("tagName")?a.append(e):a.children("article").append(e))))):void(o=o.add(e))}),a&&(o=o.add(a)),S.empty().append(o)}else try{S.html(r)}catch(f){console.error("Page data has error: ",{content:r,error:f})}"!refresh"!==i&&k.scrollTop(0),me(i),ye(),y.show()};s&&clearTimeout(s),w.hasClass("openning")?s=setTimeout(a,700):a()},400,o),f.hasClass("page-open")?void(r&&console.log("open section in open page",n)):void f.addClass("page-open")},we=function(n,i,o){var s=i.chapter+"-"+i.id,a=f.hasClass("page-open");if(a&&s===f.attr("data-page"))return r&&console.warn("The page already showed, page will be reload."),void(void 0!==o?me(o):(ve(!0),be(null,"!refresh",!0)));a&&ve(!0),l=i,ie(n,!1,!0);var c="#"+i.chapter+"/"+i.id;o&&(c+="/"+o),e.document.title=i.chapterName+" > "+i.name+" - "+V,e.location.hash=c,e.ga&&t.isFunction(ga)&&ga("send","pageview",e.location.pathname+c),f.attr("data-page-accent",n.data("accent")).attr("data-page",s),Y(x.find(".icon"),i),x.find(".name").text(i.name).attr("href",c),y.hide(),y.children(".badge-author").toggle(!!i.author).find(".author-name").text(i.author),y.children(".badge-source").toggle(!!i.url).attr("href","https://github.com/easysoft/zui/tree/master/"+i.url);var h=i.lib;if(h){y.children(".badge-zui").toggle(!!h.bundles.standard),y.children(".badge-lite").toggle(!!h.bundles.lite),y.children(".badge-lib").toggle(!!h.bundles.seperate),y.children(".badge-custom").toggle(!!h.custom),y.children(".badge-bootstrap").toggle("Bootstrap"===h.source),y.children(".badge-version").toggle(!!h.ver).text(h.ver+"+"),y.children(".badge-party").toggle(!(!h.source||"Bootstrap"===h.source)).attr("href",h.website||h.project||"javascript:;").find(".product-ver").text(h.pver||"");var p=h.srcCount>0||h.bundlesCount>0,d=y.children(".badge-code-dropdown").toggle(p);if(p){var v=d.find(".badge-code").attr("data-type","has"+(h.srcCount?"-source":"")+(h.bundlesCount?"-bundles":""));v.children(".badge-code-source").toggle(!!h.srcCount).find(".count").text(h.srcCount),v.children(".badge-code-pkgs").toggle(!!h.bundlesCount).find(".count").text(h.bundlesCount);var m=d.find(".dropdown-menu").empty(),g={js:"Javascript",css:"CSS",less:"LESS",resource:"资源"},b="https://github.com/easysoft/zui/blob/"+(u.version?"v"+u.version:"master")+"/";if(h.srcCount&&(m.append('<li class="dropdown-header primary-header" data-type="source"><i class="icon icon-file-code"></i>  源码 '+h.srcCount+"</li>"),t.each(h.src,function(e,t){m.append('<li class="dropdown-header">'+(g[e]||e)+"</li>"),t.forEach(function(e){e=e.replace(/\/\//g,"/"),m.append('<li><a target="_blank" href="'+b+e+'">'+e+"</a></li>")})})),h.bundlesCount){if(m.append('<li class="dropdown-header primary-header" data-type="bundles"><i class="icon icon-cube"></i> 打包</li>'),h.bundles.standard){m.append('<li class="dropdown-header">标准版</li>');var S=[];h.src.js&&h.src.js.length&&S.push("dist/js/zui.js"),h.src.less&&h.src.less.length&&S.push("dist/css/zui.css"),h.src.resource&&h.src.resource.length&&h.src.resource.forEach(function(e){e=e.indexOf("//")>-1?"dist/"+e.substr(e.indexOf("//")+1):e.replace("src/","dist/").replace("assets/","dist/"),S.push(e)}),S.forEach(function(e){e=e.replace(/\/\//g,"/"),m.append('<li><a target="_blank" href="'+b+e.replace("/**/*","")+'">'+e+"</a></li>")})}if(h.bundles.lite){m.append('<li class="dropdown-header">简洁版</li>');var S=[];h.src.js&&h.src.js.length&&S.push("dist/js/zui.lite.js"),h.src.less&&h.src.less.length&&S.push("dist/css/zui.lite.css"),h.src.resource&&h.src.resource.length&&h.src.resource.forEach(function(e){e=e.indexOf("//")>-1?"dist/"+e.substr(e.indexOf("//")+1):e.replace("src/","dist/").replace("assets/","dist/"),S.push(e)}),S.forEach(function(e){e=e.replace(/\/\//g,"/"),m.append('<li><a target="_blank" href="'+b+e.replace("/**/*","")+'">'+e+"</a></li>")})}h.bundles.seperate&&(m.append('<li class="dropdown-header">独立组件</li>'),m.append('<li><a target="_blank" href="'+b+"dist/lib/"+i.id+'">dist/lib/'+i.id+"/**/*</a></li>")),
  "theme"===h.code&&m.append('<li><a target="_blank" href="'+b+'dist/zui-theme.css">dist/css/zui-theme.css</a></li>')}}}be(i,o),de(!0,function(){K(),f.addClass("page-show"),setTimeout(function(){f.addClass("page-show-in"),w.hasClass("loading")&&w.addClass("openning"),k.scrollTop(0),setTimeout(function(){w.removeClass("openning"),G&&(G=t.zui.store.get("first_open_page",!0),G&&(G=!1,t.zui.store.set("first_open_page",!1),P||setTimeout(function(){t("#pageCloseBtn").tooltip("show").addClass("active"),setTimeout(function(){t("#pageCloseBtn").tooltip("hide").removeClass("active")},6e3)},500)))},300)},10)})},xe=function(n,i){n=n||b;var o;if(t.isArray(n)){if("undefined"!=typeof i&&(n=n.push(i)),!n[0])return void(r&&console.warn("Open section failed: can't find the section with id "+n.join("-")));if(n.length>0&&"search"===n[0])return void pe(n[1]);if(!(s&&n.length>1))return void(r&&console.warn("Open section stop by null docIndex or wrong section value."));var a=n[1],l=s.chapters[n[0]].sections,u=!1;if(t.each(l,function(e,t){if(t.id===a)return n.length>2&&(i=n[2]),n=t,u=!0,!1}),!u)return void(r&&console.warn("Open section failed: can't find the section with id "+n.join("-")))}if(t.isPlainObject(n))o=t("#section-"+n.chapter+"-"+n.id);else{var c=n;n=c.data("section"),o=c}if(""===n.url)return void t.zui.messager.show("该链接所指示的文档尚未完成。你可以Fork项目来完善文档。");switch(n.target){case"external":e.open(n.url,"_blank");break;case"page":var h=t.zui.store.get("pageViewLayout");!h&&t(e).width()>=1600?t("#changeViewModal").on("hide.zui.modal",function(){h=t.zui.store.get("pageViewLayout"),h||t.zui.store.set("pageViewLayout","single"),we(o,n,i)}).modal("show"):we(o,n,i);break;default:r&&console.error("Open section failed: unknown target.")}},Se=function(e,t){var n=typeof e;if("object"===n){"undefined"==typeof t&&(t=e.hasClass("collapsed")),e.toggleClass("collapsed",!t);var r=S.children("section"),i=r.length,o=r.filter(".collapsed").length;0===o?w.removeClass("page-collapsed"):o===i&&w.addClass("page-collapsed")}else t="boolean"===n?e:w.hasClass("page-collapsed"),w.toggleClass("page-collapsed",!t),t?S.children("section").removeClass("collapsed"):S.children("section").addClass("collapsed")},Ce=function(t){t.startsWith("#")&&t.length>1&&0!==t.indexOf("##")?(t=t.substr(1),setTimeout(function(){var e=t.split("/"),n=e[0].toLowerCase();"search"===n||"query"===n?pe(e[1]):xe(e)},600)):J(t)?e.open(t,"_blank"):r&&console.warn("Open page url failed: unknown url",t)},ke=function(e,t,n){if(t){var r=t.length;e=e.toLowerCase();for(var i=e+"s",o=e+".",s=e+"s.",a=0;a<r;++a){var l=t[a];if(l===e||l===i||l.startsWith(o)||l.startsWith(s))return!0}}return!1},Ie=function(e,n,r,i){return i||(i=[]),t.isArray(i)||(i=[i]),n.bundles&&t.each(n.bundles,function(t,n){var o=e.builds[n],s=r[n];!o&&s&&(o={title:s.name,dest:"dist/lib/"+n+"/",filename:s.source&&"Bootstrap"!==s.source?n:"zui."+n,includes:[n],source:s.source,settingDpds:s.src&&s.src.less&&s.src.less.length?["setting"]:null,ignoreBasic:!0,ignoreDpds:void 0===s.ignoreDpds||s.ignoreDpds},e.builds[n]=o),Ie(e,o,r,i)}),n.basicDpds&&(i=Ee(r,n.basicDpds,i)),i=Ee(r,n.includes,i,n.ignoreDpds)},Ee=function(e,n,r,i,o){if(r=r||[],t.isArray(n))t.each(n,function(t,n){Ee(e,n,r,i)});else{var s=e[n];s&&r.indexOf(n)<0&&(!i&&s.dpds&&Ee(e,s.dpds,r,i),!s.src&&o||r.push(n))}return r},Me=function(e){X(q,function(n){X(D,function(r){u=t.extend(n,{lib:t.extend({},r.lib),builds:t.extend({},r.builds)}),t.doc&&(t.doc.pkg=u),e(u)},null,!0)},null,!0)},_e=function(e){e=e||u,e&&t(".format-pkg").each(function(){var n=t(this),r=n.data();r.fmtHref&&n.attr("href",r.fmtHref.format(e)),r.fmtText&&n.text(r.fmtText.format(e)),r.fmtHtml&&n.html(r.fmtHtml.format(e)),r.fmt&&t.each(r.fmt.split("|"),function(t,r){var i=r.substr(0,r.indexOf(":")),o=r.substr(i.length+1);n.attr(i,o.format(e))})})},Ae=function(){Me(function(e){function n(t,r,i){t.src&&["less","js","resource"].forEach(function(e){t.src[e]&&t.src[e].forEach(function(t){t.startsWith("~/")&&(t=t.replace("~/","js"===e?"src/js/":"less"===e?"src/less/":"src/")),r[e]||(r[e]=[]),r[e].indexOf(t)<0&&r[e].push(t)})}),t.dpds&&t.dpds.forEach(function(t){t.startsWith(i)&&e.lib[t]&&!e.lib[t].thirdpart&&n(e.lib[t],r,i)})}_e(e),z.standard=Ie(e,e.builds.standard,e.lib),z.lite=Ie(e,e.builds.lite,e.lib),z.seperate=Ie(e,e.builds.seperate,e.lib),Z(function(r,i,o){var s=i.dpds||i.id,a=e.lib[s];a||(s+="s",a=e.lib[s]);var l={code:s,bundles:{}};if(t.each(z,function(e,t){ke(s,t,a)&&(l.bundles[e]=!0)}),a){if(t.extend(l,a),a.thirdpart&&(l.thirdpart=!0,l.partUrl=a.website,l.pver=a.pver),!a.src&&a.dpds&&(l.custom=!0,l.source||t.each(a.dpds,function(t,n){var r=e.lib[n];r&&r.source&&(l.source=r.source)})),a.ver)l.ver=a.ver;else if(l.custom)for(var u=0;u<a.dpds.length;++u){var c=a.dpds[u],h=e.lib[c]||e.lib[c+"s"];if(h&&h.ver){l.ver=h.ver;break}}l.src={},n(a,l.src,l.code),l.srcCount=(l.src.js?l.src.js.length:0)+(l.src.less?l.src.less.length:0)+(l.src.source?l.src.source.length:0),l.bundlesCount=0,l.bundles.standard&&l.bundlesCount++,l.bundles.lite&&l.bundlesCount++,l.bundles.seperate&&l.bundlesCount++,"theme"===l.code&&l.bundlesCount++}i.lib=l,i.isNew=i.version===e.version,i.isUpdate=i.update===e.version,U&&t("#section-"+i.chapter+"-"+i.id).toggleClass("section-update",i.isUpdate).toggleClass("section-new",i.isNew)})})},Re=function(e){e.length&&Me(function(n){var r,i,o=t("<tbody></tbody>"),s=function(e){return n.lib[e].name},a=0;t.each(n.lib,function(e,l){if(!l.hidden){var u="",c=!1;if(!l.src&&l.dpds){var h=Ee(n.lib,l.dpds,null,!0,!0);u="包含：",u+=t.map(h,s).join("、"),l.merged=!0}else a++;if(r=t("<tr/>"),i=t("<td/>"),i.attr("title",l.desc),i.html("<strong>"+l.name+"</strong> ("+e+(l.pver?" v"+l.pver:"")+")"),r.append(i),t.each(z,function(n,o){i=t('<td class="text-center"/>'),o.indexOf(e)>-1?i.addClass("success").html('<i class="text-success icon-ok"></i>'):i.html('<i class="text-muted icon-remove"></i>'),r.append(i)}),i=t("<td/>"),l.source){var f=t('<a data-toggle="tooltip"/>').attr({target:"_blank",href:l.website||l.project||("Bootstrap"===l.source?"http://getbootstrap.com/":"###")}).text(l.source);i.append(f)}else l.merged?i.append('<span class="text-muted">(合并组件)</span>'):(c=!0,i.append('<span data-toggle="tooltip" title="License: MIT">ZUI</span>'));r.append(i),r.append("<td>"+("Bootstrap"===l.source?"MIT":c?"MIT":l.license||"")+"</td>"),i=t("<td/>"),i.html(l.ver?" v"+l.ver+"+":u),r.append(i),o.append(r)}}),e.find("tbody").remove(),e.append(o),t.fn.datatable&&e.datatable({rowHover:!1,fixedHeaderOffset:200}),t(".components-count").text(a)})},Fe=function(){if(!t.zui.browser.isIE()||t.zui.browser.ie>8){F=t("#copyCodeBtn");var n=new e.Clipboard(F.get(0));n.on("success",function(e){t("#copyCodeTip").addClass("tooltip-success"),F.tooltip("show",'已复制 <i class="icon icon-ok"></i>'),e.clearSelection()}),n.on("error",function(e){t("#copyCodeTip").addClass("tooltip-warning"),F.tooltip("show",P?"你的浏览器不支持直接复制，请自行选择并复制。":"按 <strong>Ctrl+C</strong> 完成复制")}),F.on("hide.zui.tooltip",function(){t("#copyCodeTip").removeClass("tooltip-success tooltip-warning")}),t(document).on("mouseenter","pre.prettyprint, .copyable",function(){var e=t(this),n=e.children("code, .linenums, .copyable-target");n.length&&(n.attr("id")||n.attr("id","code-"+t.zui.uuid()),e.prepend(F),F.attr("data-clipboard-target","#"+n.attr("id")),e.one("mouseleave",function(){F.detach()}))})}},Le=function(e){return"string"==typeof e&&(e=B[e]),e.variables?(e.variablesLess="",t.each(e.variables,function(t,n){e.variablesLess+="@"+t+": "+n+";\n"})):e.variablesLess||(e.variablesLess=""),e},Pe=function(n,r,i){"string"==typeof n&&(n=B[n]),"function"==typeof r&&(i=r,r=null),n.variablesLess||Le(n),n.imports||(n.imports=["src/less/basic/colorset.less","src/less/basic/variables.less","src/less/basic/mixins.less","src/less/theme.less","src/less/controls/icons.variables.less","src/less/doc.less"]);var o=t.isArray(n.imports)?n.imports.map(function(e){return'@import "'+e+'";'}).join("\n"):n.imports;o+=n.variablesLess+(n.lessCode||""),e.less.render(o,t.extend({compress:!0},r),function(e,t){i&&i(t,n)})},Te=function(e){var t=document.getElementById("themeStyle");t.styleSheet?t.styleSheet.cssText=e:t.innerHTML=e},$e=function(e,n){var r=t("body"),i=function(i){Te(i||""),n&&n(e),r.removeClass("theme-changing"),i?t.zui.store.set("doc_theme",e):t.zui.store.remove("doc_theme")};return e&&"default"!==e&&"default"!==e.name?("string"==typeof e&&(e=B[e]),!r.hasClass("theme-changing")&&(r.addClass("theme-changing"),e.css?i(e.css):setTimeout(function(){Pe(e,null,function(t){t&&(e.css=t.css),i(t?t.css:"")})},500),!0)):void i()},Oe=function(){t.each(B,function(e,t){t.name||(t.name=e)});var e=t.zui.store.get("doc_theme");e&&$e(e)},je=function(){var n,r=function(n,r){n?r||t.zui.store.set("pageViewLayout",n):n=t.zui.store.get("pageViewLayout");var i="double"===n&&t(e).width()>=1200;t("body").toggleClass("view-double",i)},i=t("#changeViewModal"),o=!1;i.on("show.zui.modal",function(){n=t("body").hasClass("view-double"),o=!0,i.find(".view-option.active").removeClass("active"),i.find(".view-option-"+(n?"double":"single")).addClass("active")}).on("click",".view-option",function(){o=!1,r(t(this).hasClass("view-option-double")?"double":"single"),i.modal("hide")}).on("mouseenter",".view-option",function(){o&&r(t(this).hasClass("view-option-double")?"double":"single")}).on("mouseleave",".view-option",function(){o&&r(n?"double":"single")}),r()},qe=function(){V=e.document.title;var i=function(e){e.stopPropagation()};p=t(e),f=t("body"),I=t("#navbar"),d=t("#grid"),_=t("#header"),w=t("#page"),x=t("#pageHeader"),y=t("#pageAttrs"),C=t("#pageLoader"),S=t("#pageContent"),g=d.find(".chapter"),m=t("#searchInput"),R=d.find(".chapter-heading"),v=t("#sectionTemplate").attr("id",null),k=t("#pageBody"),t.each(L,function(e,n){e=e.toLowerCase(),n.$=t("#chapter-"+e),n.id=e,n.$sections=t("#sections-"+e)}),W=d.children(".container").outerWidth(),o=t.zui.store&&t.zui.store.enable,t.ajaxSetup({cache:!1}),X(O,function(r,i){var o=!c;if(ee(r),o){var s=n("q");s&&setTimeout(function(){pe(s)},300);var a=e.location.hash;a?Ce(a):m.focus(),Ae()}t(".doc-version").text(r.version)});var s,a;t(document).on("click",function(e){return a?void(a=!1):void(f.attr("data-query")||ie())}).on("click",'a[href^="#"]',function(){Ce(t(this).attr("href"))}),w.on("click",function(e){a=!0}),d.on("click",".card-heading",function(e){var n=t(this).closest(".card");n.hasClass("choosed")?n.toggleClass("open"):ie(n,!0),i(e)}).on("click",".chapter-heading > h4 > .name",function(){m.focus().val("@"+t(this).closest(".chapter").data("id")).change()}).on("click",".card",function(e){ie(t(this),!0),i(e)}).on("click",".card-heading > h5 > .name, .card-heading > .icon",function(e){xe(t(this).closest(".section")),i(e)}).on("click",".topics > li > a",function(e){var n=t(this);Ce(n.attr("href")),e.preventDefault(),i(e)}).on("mouseenter",".card-heading > h5 > .name, .card-heading > .icon",function(){t(this).closest(".card-heading").addClass("hover")}).on("mouseleave",".card-heading > h5 > .name, .card-heading > .icon",function(){t(this).closest(".card-heading").removeClass("hover")}).on("mouseenter","#section-control-icon .section-search > ul > li > a",function(){s=t("#section-control-icon").data("preview"),he(t(this).closest("li"))}).on("mouseleave","#section-control-icon .section-search > ul > li > a",function(){s&&he(t("#control-icon-"+s))}).on("click","#section-control-icon .section-search > ul > li > a",function(){s=t(this).closest("li").data("id")}),S.on("click","section > header > h3",function(){Se(t(this).closest("section"))}).on("mouseenter","section > header > h3",function(){t(this).closest("section").addClass("hover")}).on("mouseleave","section > header > h3",function(){t(this).closest("section").removeClass("hover")}),w.on("click","#pageTogger",function(){Se()}),x.on("click",".path-close-btn",function(){ve()});var l,u=t("#navbar").outerHeight();p.on("scroll",function(e){if(!f.hasClass("layout-classic")){var t=f.data("isScrollAnimating");if(t)return void p.scrollTop(0);l=p.scrollTop(),l>u&&!f.hasClass("compact-mode")&&de(!0)}}).on("keydown",function(e){var n=e.which,r=!f.hasClass("page-show"),i=f.hasClass("view-double"),o=f.hasClass("input-query-focus");if(9===n)f.hasClass("input-query-focus")||(m.focus(),e.preventDefault());else if(13===n)(i||r)&&re()&&xe();else if(27===n){if(t("body>.modal-backdrop").length)return;i||ve()||(o||m.focus(),M="",pe())}else 37===n?i||(le(),e.preventDefault()):39===n?i||(ue(),e.preventDefault()):38===n?r||i?(oe(),e.preventDefault()):te(k,"up"):40===n&&(r||i)&&(se(),e.preventDefault())}),E=t("#search"),m.focus().on("change keyup paste input propertychange",function(){var e=m.val();e!==M&&(M=e,E.toggleClass("with-query-text",e.length>0),clearTimeout(m.data($)),m.data($,setTimeout(function(){M!==m.data("queryString")&&pe(M)},150)))}).on("focus",function(){f.addClass("input-query-focus"),m.val()&&!A.filter(".open").length&&ie(A.filter(".show:first"))}).on("blur",function(){f.removeClass("input-query-focus")}).on("click",i),t("#searchHelpBtn").on("click",function(e){E.hasClass("with-query-text")?(M="",pe(),m.focus(),E.removeClass("with-query-text")):(xe(["resource","help"]),t(this).blur()),i(e)}),t("#navbar .navbar-brand").on("click",function(e){f.hasClass("page-show")?(ve(),i(e),e.preventDefault()):f.hasClass("compact-mode-in")&&(p.scrollTop(0),de(!1),i(e),e.preventDefault())}),r&&t("#pageReloadBtn").on("click",function(){be(null,"!refresh",!0)}),je(),Fe(),Oe();var h=t("#ad > a").on("mouseenter",function(){f.addClass("ad-hover")}).on("mouseleave",function(){f.removeClass("ad-hover")}),b=h.eq(Math.floor(Math.random()*h.length));b.removeClass("hidden"),h.not(b).addClass("hidden"),f.addClass("ad-"+b.attr("id")),P||t('[data-toggle="tooltip"]').tooltip({container:"body"})};qe(),t.doc={query:pe,themes:B,changeTheme:$e,compileTheme:Pe,compileThemeVariables:Le,openSection:xe,closePage:ve,loadData:X,stopPageLoading:ge,displayPkgLibTable:Re,pkg:u}}(window,jQuery);
  