Skip to content

Instantly share code, notes, and snippets.

@rtsao
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtsao/266e8aa46bd9c0d24e53 to your computer and use it in GitHub Desktop.
Save rtsao/266e8aa46bd9c0d24e53 to your computer and use it in GitHub Desktop.
requirebin sketch
var postcss = require('postcss');
// var extend = require('postcss-simple-extend');
var extend = require('postcss-extend');
var nested = require('postcss-nested');
var css = [
"",
".real { .child { color: green} &:before { color: blue } }",
"%ph { .child { color: green} &:before { color: blue } }",
"",
".real-extend { background: red; @extend real; }",
"",
".ph-extend { background: red; @extend %ph; }"
].join('\n');
postcss([
nested(),
extend(),
])
.process(css)
.then(function (result) {
console.log('result:\n==============\n', result.css);
})
.catch(function(e) {
console.log('error\n', e);
});
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){},{}],2:[function(require,module,exports){var base64=require("base64-js");var ieee754=require("ieee754");var isArray=require("is-array");exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;Buffer.poolSize=8192;var kMaxLength=1073741823;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=function(){try{var buf=new ArrayBuffer(0);var arr=new Uint8Array(buf);arr.foo=function(){return 42};return 42===arr.foo()&&typeof arr.subarray==="function"&&new Uint8Array(1).subarray(1,1).byteLength===0}catch(e){return false}}();function Buffer(subject,encoding,noZero){if(!(this instanceof Buffer))return new Buffer(subject,encoding,noZero);var type=typeof subject;var length;if(type==="number")length=subject>0?subject>>>0:0;else if(type==="string"){length=Buffer.byteLength(subject,encoding)}else if(type==="object"&&subject!==null){if(subject.type==="Buffer"&&isArray(subject.data))subject=subject.data;length=+subject.length>0?Math.floor(+subject.length):0}else throw new TypeError("must start with number, buffer, array or string");if(length>kMaxLength)throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength.toString(16)+" bytes");var buf;if(Buffer.TYPED_ARRAY_SUPPORT){buf=Buffer._augment(new Uint8Array(length))}else{buf=this;buf.length=length;buf._isBuffer=true}var i;if(Buffer.TYPED_ARRAY_SUPPORT&&typeof subject.byteLength==="number"){buf._set(subject)}else if(isArrayish(subject)){if(Buffer.isBuffer(subject)){for(i=0;i<length;i++)buf[i]=subject.readUInt8(i)}else{for(i=0;i<length;i++)buf[i]=(subject[i]%256+256)%256}}else if(type==="string"){buf.write(subject,0,encoding)}else if(type==="number"&&!Buffer.TYPED_ARRAY_SUPPORT&&!noZero){for(i=0;i<length;i++){buf[i]=0}}if(length>0&&length<=Buffer.poolSize)buf.parent=rootParent;return buf}function SlowBuffer(subject,encoding,noZero){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding,noZero);var buf=new Buffer(subject,encoding,noZero);delete buf.parent;return buf}Buffer.isBuffer=function(b){return!!(b!=null&&b._isBuffer)};Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len&&a[i]===b[i];i++){}if(i!==len){x=a[i];y=b[i]}if(x<y)return-1;if(y<x)return 1;return 0};Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function(list,totalLength){if(!isArray(list))throw new TypeError("Usage: Buffer.concat(list[, length])");if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}var i;if(totalLength===undefined){totalLength=0;for(i=0;i<list.length;i++){totalLength+=list[i].length}}var buf=new Buffer(totalLength);var pos=0;for(i=0;i<list.length;i++){var item=list[i];item.copy(buf,pos);pos+=item.length}return buf};Buffer.byteLength=function(str,encoding){var ret;str=str+"";switch(encoding||"utf8"){case"ascii":case"binary":case"raw":ret=str.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=str.length*2;break;case"hex":ret=str.length>>>1;break;case"utf8":case"utf-8":ret=utf8ToBytes(str).length;break;case"base64":ret=base64ToBytes(str).length;break;default:ret=str.length}return ret};Buffer.prototype.length=undefined;Buffer.prototype.parent=undefined;Buffer.prototype.toString=function(encoding,start,end){var loweredCase=false;start=start>>>0;end=end===undefined||end===Infinity?this.length:end>>>0;if(!encoding)encoding="utf8";if(start<0)start=0;if(end>this.length)end=this.length;if(end<=start)return"";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}};Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)===0};Buffer.prototype.inspect=function(){var str="";var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString("hex",0,max).match(/.{2}/g).join(" ");if(this.length>max)str+=" ... "}return"<Buffer "+str+">"};Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)};Buffer.prototype.get=function(offset){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(offset)};Buffer.prototype.set=function(v,offset){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(v,offset)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");buf[offset+i]=byte}return i}function utf8Write(buf,string,offset,length){var charsWritten=blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length);return charsWritten}function asciiWrite(buf,string,offset,length){var charsWritten=blitBuffer(asciiToBytes(string),buf,offset,length);return charsWritten}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){var charsWritten=blitBuffer(base64ToBytes(string),buf,offset,length);return charsWritten}function utf16leWrite(buf,string,offset,length){var charsWritten=blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length,2);return charsWritten}Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=Number(offset)||0;if(length<0||offset<0||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");var remaining=this.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=hexWrite(this,string,offset,length);break;case"utf8":case"utf-8":ret=utf8Write(this,string,offset,length);break;case"ascii":ret=asciiWrite(this,string,offset,length);break;case"binary":ret=binaryWrite(this,string,offset,length);break;case"base64":ret=base64Write(this,string,offset,length);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=utf16leWrite(this,string,offset,length);break;default:throw new TypeError("Unknown encoding: "+encoding)}return ret};Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){var res="";var tmp="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){if(buf[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(buf[i]);tmp=""}else{tmp+="%"+buf[i].toString(16)}}return res+decodeUtf8Char(tmp)}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i]&127)}return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i])}return ret}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(buf[i])}return out}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res="";for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256)}return res}Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0}else if(start>len){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(end<start)end=start;var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT){newBuf=Buffer._augment(this.subarray(start,end))}else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,undefined,true);for(var i=0;i<sliceLen;i++){newBuf[i]=this[i+start]}}if(newBuf.length)newBuf.parent=this.parent||this;return newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;return val};Buffer.prototype.readUIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256))val+=this[offset+--byteLength]*mul;return val};Buffer.prototype.readUInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256))val+=this[offset+--i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1;var i=0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value;return offset+1};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=65535+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i<j;i++){buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>(littleEndian?i:1-i)*8}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=4294967295+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i<j;i++){buf[offset+i]=value>>>(littleEndian?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=0;var mul=1;var sub=value<0?1:0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=byteLength-1;var mul=1;var sub=value<0?1:0;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=255+value+1;this[offset]=value;return offset+1};Buffer.prototype.writeInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};Buffer.prototype.writeInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(offset<0)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38);ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308);ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;if(!start)start=0;if(!end&&end!==0)end=this.length;if(target_start>=target.length)target_start=target.length;if(!target_start)target_start=0;if(end>0&&end<start)end=start;if(end===start)return 0;if(target.length===0||source.length===0)return 0;if(target_start<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=source.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-target_start<end-start)end=target.length-target_start+start;var len=end-start;if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i<len;i++){target[i+target_start]=this[i+start]}}else{target._set(this.subarray(start,start+len),target_start)}return len};Buffer.prototype.fill=function(value,start,end){if(!value)value=0;if(!start)start=0;if(!end)end=this.length;if(end<start)throw new RangeError("end < start");if(end===start)return;if(this.length===0)return;if(start<0||start>=this.length)throw new RangeError("start out of bounds");if(end<0||end>this.length)throw new RangeError("end out of bounds");var i;if(typeof value==="number"){for(i=start;i<end;i++){this[i]=value}}else{var bytes=utf8ToBytes(value.toString());var len=bytes.length;for(i=start;i<end;i++){this[i]=bytes[i%len]}}return this};Buffer.prototype.toArrayBuffer=function(){if(typeof Uint8Array!=="undefined"){if(Buffer.TYPED_ARRAY_SUPPORT){return new Buffer(this).buffer}else{var buf=new Uint8Array(this.length);for(var i=0,len=buf.length;i<len;i+=1){buf[i]=this[i]}return buf.buffer}}else{throw new TypeError("Buffer.toArrayBuffer not supported in this browser")}};var BP=Buffer.prototype;Buffer._augment=function(arr){arr.constructor=Buffer;arr._isBuffer=true;arr._get=arr.get;arr._set=arr.set;arr.get=BP.get;arr.set=BP.set;arr.write=BP.write;arr.toString=BP.toString;arr.toLocaleString=BP.toString;arr.toJSON=BP.toJSON;arr.equals=BP.equals;arr.compare=BP.compare;arr.copy=BP.copy;arr.slice=BP.slice;arr.readUIntLE=BP.readUIntLE;arr.readUIntBE=BP.readUIntBE;arr.readUInt8=BP.readUInt8;arr.readUInt16LE=BP.readUInt16LE;arr.readUInt16BE=BP.readUInt16BE;arr.readUInt32LE=BP.readUInt32LE;arr.readUInt32BE=BP.readUInt32BE;arr.readIntLE=BP.readIntLE;arr.readIntBE=BP.readIntBE;arr.readInt8=BP.readInt8;arr.readInt16LE=BP.readInt16LE;arr.readInt16BE=BP.readInt16BE;arr.readInt32LE=BP.readInt32LE;arr.readInt32BE=BP.readInt32BE;arr.readFloatLE=BP.readFloatLE;arr.readFloatBE=BP.readFloatBE;arr.readDoubleLE=BP.readDoubleLE;arr.readDoubleBE=BP.readDoubleBE;arr.writeUInt8=BP.writeUInt8;arr.writeUIntLE=BP.writeUIntLE;arr.writeUIntBE=BP.writeUIntBE;arr.writeUInt16LE=BP.writeUInt16LE;arr.writeUInt16BE=BP.writeUInt16BE;arr.writeUInt32LE=BP.writeUInt32LE;arr.writeUInt32BE=BP.writeUInt32BE;arr.writeIntLE=BP.writeIntLE;arr.writeIntBE=BP.writeIntBE;arr.writeInt8=BP.writeInt8;arr.writeInt16LE=BP.writeInt16LE;arr.writeInt16BE=BP.writeInt16BE;arr.writeInt32LE=BP.writeInt32LE;arr.writeInt32BE=BP.writeInt32BE;arr.writeFloatLE=BP.writeFloatLE;arr.writeFloatBE=BP.writeFloatBE;arr.writeDoubleLE=BP.writeDoubleLE;arr.writeDoubleBE=BP.writeDoubleBE;arr.fill=BP.fill;arr.inspect=BP.inspect;arr.toArrayBuffer=BP.toArrayBuffer;return arr};var INVALID_BASE64_RE=/[^+\/0-9A-z\-]/g;function base64clean(str){str=stringtrim(str).replace(INVALID_BASE64_RE,"");if(str.length<2)return"";while(str.length%4!==0){str=str+"="}return str}function stringtrim(str){if(str.trim)return str.trim();return str.replace(/^\s+|\s+$/g,"")}function isArrayish(subject){return isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(string,units){var codePoint,length=string.length;var leadSurrogate=null;units=units||Infinity;var bytes=[];var i=0;for(;i<length;i++){codePoint=string.charCodeAt(i);if(codePoint>55295&&codePoint<57344){if(leadSurrogate){if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}else{codePoint=leadSurrogate-55296<<10|codePoint-56320|65536;leadSurrogate=null}}else{if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}else{leadSurrogate=codePoint;continue}}}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=null}if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<2097152){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++){byteArray.push(str.charCodeAt(i)&255)}return byteArray}function utf16leToBytes(str,units){var c,hi,lo;var byteArray=[];for(var i=0;i<str.length;i++){if((units-=2)<0)break;c=str.charCodeAt(i);hi=c>>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length,unitSize){if(unitSize)length-=length%unitSize;for(var i=0;i<length;i++){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}},{"base64-js":3,ieee754:4,"is-array":5}],3:[function(require,module,exports){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(exports){"use strict";var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var PLUS="+".charCodeAt(0);var SLASH="/".charCodeAt(0);var NUMBER="0".charCodeAt(0);var LOWER="a".charCodeAt(0);var UPPER="A".charCodeAt(0);var PLUS_URL_SAFE="-".charCodeAt(0);var SLASH_URL_SAFE="_".charCodeAt(0);function decode(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;if(code===SLASH||code===SLASH_URL_SAFE)return 63;if(code<NUMBER)return-1;if(code<NUMBER+10)return code-NUMBER+26+26;if(code<UPPER+26)return code-UPPER;if(code<LOWER+26)return code-LOWER+26}function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0;arr=new Arr(b64.length*3/4-placeHolders);l=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v}for(i=0,j=0;i<l;i+=4,j+=3){tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3));push((tmp&16711680)>>16);push((tmp&65280)>>8);push(tmp&255)}if(placeHolders===2){tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4;push(tmp&255)}else if(placeHolders===1){tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2;push(tmp>>8&255);push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(num&63)}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=encode(temp>>2);output+=encode(temp<<4&63);output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=encode(temp>>10);output+=encode(temp>>4&63);output+=encode(temp<<2&63);output+="=";break}return output}exports.toByteArray=b64ToByteArray;exports.fromByteArray=uint8ToBase64})(typeof exports==="undefined"?this.base64js={}:exports)},{}],4:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],5:[function(require,module,exports){var isArray=Array.isArray;var str=Object.prototype.toString;module.exports=isArray||function(val){return!!val&&"[object Array]"==str.call(val)}},{}],6:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")};exports.sep="/";exports.delimiter=":";exports.dirname=function(path){var result=splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir};exports.basename=function(path,ext){var f=splitPath(path)[2];if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){return splitPath(path)[3]};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i])}return res}var substr="ab".substr(-1)==="b"?function(str,start,len){return str.substr(start,len)}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len)}}).call(this,require("_process"))},{_process:7}],7:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){
var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canMutationObserver=typeof window!=="undefined"&&window.MutationObserver;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}var queue=[];if(canMutationObserver){var hiddenDiv=document.createElement("div");var observer=new MutationObserver(function(){var queueList=queue.slice();queue.length=0;queueList.forEach(function(fn){fn()})});observer.observe(hiddenDiv,{attributes:true});return function nextTick(fn){if(!queue.length){hiddenDiv.setAttribute("yes","no")}queue.push(fn)}}if(canPost){window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],8:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var AtRule=function(_Container){function AtRule(defaults){_classCallCheck(this,AtRule);_Container.call(this,defaults);this.type="atrule"}_inherits(AtRule,_Container);AtRule.prototype.stringify=function stringify(builder,semicolon){var name="@"+this.name;var params=this.params?this.stringifyRaw("params"):"";if(typeof this.afterName!=="undefined"){name+=this.afterName}else if(params){name+=" "}if(this.nodes){this.stringifyBlock(builder,name+params)}else{var before=this.style("before");if(before)builder(before);var end=(this.between||"")+(semicolon?";":"");builder(name+params+end,this)}};AtRule.prototype.append=function append(child){if(!this.nodes)this.nodes=[];return _Container.prototype.append.call(this,child)};AtRule.prototype.prepend=function prepend(child){if(!this.nodes)this.nodes=[];return _Container.prototype.prepend.call(this,child)};AtRule.prototype.insertBefore=function insertBefore(exist,add){if(!this.nodes)this.nodes=[];return _Container.prototype.insertBefore.call(this,exist,add)};AtRule.prototype.insertAfter=function insertAfter(exist,add){if(!this.nodes)this.nodes=[];return _Container.prototype.insertAfter.call(this,exist,add)};return AtRule}(_container2["default"]);exports["default"]=AtRule;module.exports=exports["default"]},{"./container":10}],9:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _node=require("./node");var _node2=_interopRequireDefault(_node);var Comment=function(_Node){function Comment(defaults){_classCallCheck(this,Comment);_Node.call(this,defaults);this.type="comment"}_inherits(Comment,_Node);Comment.prototype.stringify=function stringify(builder){var before=this.style("before");if(before)builder(before);var left=this.style("left","commentLeft");var right=this.style("right","commentRight");builder("/*"+left+this.text+right+"*/",this)};return Comment}(_node2["default"]);exports["default"]=Comment;module.exports=exports["default"]},{"./node":17}],10:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _node=require("./node");var _node2=_interopRequireDefault(_node);var Container=function(_Node){function Container(){_classCallCheck(this,Container);_Node.apply(this,arguments)}_inherits(Container,_Node);Container.prototype.stringifyContent=function stringifyContent(builder){if(!this.nodes)return;var i=undefined,last=this.nodes.length-1;while(last>0){if(this.nodes[last].type!=="comment")break;last-=1}var semicolon=this.style("semicolon");for(i=0;i<this.nodes.length;i++){this.nodes[i].stringify(builder,last!==i||semicolon)}};Container.prototype.stringifyBlock=function stringifyBlock(builder,start){var before=this.style("before");if(before)builder(before);var between=this.style("between","beforeOpen");builder(start+between+"{",this,"start");var after=undefined;if(this.nodes&&this.nodes.length){this.stringifyContent(builder);after=this.style("after")}else{after=this.style("after","emptyBody")}if(after)builder(after);builder("}",this,"end")};Container.prototype.push=function push(child){child.parent=this;this.nodes.push(child);return this};Container.prototype.each=function each(callback){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;var id=this.lastEach;this.indexes[id]=0;if(!this.nodes)return undefined;var index=undefined,result=undefined;while(this.indexes[id]<this.nodes.length){index=this.indexes[id];result=callback(this.nodes[index],index);if(result===false)break;this.indexes[id]+=1}delete this.indexes[id];if(result===false)return false};Container.prototype.eachInside=function eachInside(callback){return this.each(function(child,i){var result=callback(child,i);if(result!==false&&child.eachInside){result=child.eachInside(callback)}if(result===false)return result})};Container.prototype.eachDecl=function eachDecl(prop,callback){if(!callback){callback=prop;return this.eachInside(function(child,i){if(child.type==="decl"){var result=callback(child,i);if(result===false)return result}})}else if(prop instanceof RegExp){return this.eachInside(function(child,i){if(child.type==="decl"&&prop.test(child.prop)){var result=callback(child,i);if(result===false)return result}})}else{return this.eachInside(function(child,i){if(child.type==="decl"&&child.prop===prop){var result=callback(child,i);if(result===false)return result}})}};Container.prototype.eachRule=function eachRule(callback){return this.eachInside(function(child,i){if(child.type==="rule"){var result=callback(child,i);if(result===false)return result}})};Container.prototype.eachAtRule=function eachAtRule(name,callback){if(!callback){callback=name;return this.eachInside(function(child,i){if(child.type==="atrule"){var result=callback(child,i);if(result===false)return result}})}else if(name instanceof RegExp){return this.eachInside(function(child,i){if(child.type==="atrule"&&name.test(child.name)){var result=callback(child,i);if(result===false)return result}})}else{return this.eachInside(function(child,i){if(child.type==="atrule"&&child.name===name){var result=callback(child,i);if(result===false)return result}})}};Container.prototype.eachComment=function eachComment(callback){return this.eachInside(function(child,i){if(child.type==="comment"){var result=callback(child,i);if(result===false)return result}})};Container.prototype.append=function append(child){var nodes=this.normalize(child,this.last);for(var _iterator=nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;this.nodes.push(node)}return this};Container.prototype.prepend=function prepend(child){var nodes=this.normalize(child,this.first,"prepend").reverse();for(var _iterator2=nodes,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++]}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value}var node=_ref2;this.nodes.unshift(node)}for(var id in this.indexes){this.indexes[id]=this.indexes[id]+nodes.length}return this};Container.prototype.insertBefore=function insertBefore(exist,add){exist=this.index(exist);var type=exist===0?"prepend":false;var nodes=this.normalize(add,this.nodes[exist],type).reverse();for(var _iterator3=nodes,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_iterator3[Symbol.iterator]();;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++]}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value}var node=_ref3;this.nodes.splice(exist,0,node)}var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(exist<=index){this.indexes[id]=index+nodes.length}}return this};Container.prototype.insertAfter=function insertAfter(exist,add){exist=this.index(exist);var nodes=this.normalize(add,this.nodes[exist]).reverse();for(var _iterator4=nodes,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_iterator4[Symbol.iterator]();;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++]}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value}var node=_ref4;this.nodes.splice(exist+1,0,node)}var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(exist<index){this.indexes[id]=index+nodes.length}}return this};Container.prototype.remove=function remove(child){child=this.index(child);this.nodes[child].parent=undefined;this.nodes.splice(child,1);var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(index>=child){this.indexes[id]=index-1}}return this};Container.prototype.removeAll=function removeAll(){for(var _iterator5=this.nodes,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_iterator5[Symbol.iterator]();;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++]}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value}var node=_ref5;node.parent=undefined}this.nodes=[];return this};Container.prototype.replaceValues=function replaceValues(regexp,opts,callback){if(!callback){callback=opts;opts={}}this.eachDecl(function(decl){if(opts.props&&opts.props.indexOf(decl.prop)===-1)return;if(opts.fast&&decl.value.indexOf(opts.fast)===-1)return;decl.value=decl.value.replace(regexp,callback)});return this};Container.prototype.every=function every(condition){return this.nodes.every(condition)};Container.prototype.some=function some(condition){return this.nodes.some(condition)};Container.prototype.index=function index(child){if(typeof child==="number"){return child}else{return this.nodes.indexOf(child)}};Container.prototype.normalize=function normalize(nodes,sample){var _this=this;if(typeof nodes==="string"){var parse=require("./parse");nodes=parse(nodes).nodes}else if(!Array.isArray(nodes)){if(nodes.type==="root"){nodes=nodes.nodes}else if(nodes.type){nodes=[nodes]}else if(nodes.prop){if(typeof nodes.value==="undefined"){throw new Error("Value field is missed in node creation")}nodes=[new _declaration2["default"](nodes)]}else if(nodes.selector){var Rule=require("./rule");nodes=[new Rule(nodes)]}else if(nodes.name){var AtRule=require("./at-rule");nodes=[new AtRule(nodes)]}else if(nodes.text){nodes=[new _comment2["default"](nodes)]}else{throw new Error("Unknown node type in node creation")}}var processed=nodes.map(function(child){if(child.parent)child=child.clone();if(typeof child.before==="undefined"){if(sample&&typeof sample.before!=="undefined"){child.before=sample.before.replace(/[^\s]/g,"")}}child.parent=_this;return child});return processed};_createClass(Container,[{key:"first",get:function get(){if(!this.nodes)return undefined;return this.nodes[0]}},{key:"last",get:function get(){if(!this.nodes)return undefined;return this.nodes[this.nodes.length-1]}}]);return Container}(_node2["default"]);exports["default"]=Container;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./node":17,"./parse":18,"./rule":24}],11:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var CssSyntaxError=function(_SyntaxError){function CssSyntaxError(message,line,column,source,file,plugin){_classCallCheck(this,CssSyntaxError);_SyntaxError.call(this,message);this.reason=message;if(file)this.file=file;if(source)this.source=source;if(plugin)this.plugin=plugin;if(typeof line!=="undefined"&&typeof column!=="undefined"){this.line=line;this.column=column}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}_inherits(CssSyntaxError,_SyntaxError);CssSyntaxError.prototype.setMessage=function setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"<css input>";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason};CssSyntaxError.prototype.showSourceCode=function showSourceCode(color){if(!this.source)return"";var num=this.line-1;var lines=this.source.split("\n");var prev=num>0?lines[num-1]+"\n":"";var broken=lines[num];var next=num<lines.length-1?"\n"+lines[num+1]:"";var mark="\n";for(var i=0;i<this.column-1;i++){mark+=" "}if(typeof color==="undefined"&&typeof process!=="undefined"){if(process.stdout&&process.env){color=process.stdout.isTTY&&!process.env.NODE_DISABLE_COLORS}}if(color){mark+="^"}else{mark+="^"}return"\n"+prev+broken+mark+next};CssSyntaxError.prototype.highlight=function highlight(color){_warnOnce2["default"]("CssSyntaxError#highlight is deprecated and will be "+"removed in 5.0. Use error.showSourceCode instead.");return this.showSourceCode(color).replace(/^\n/,"")};CssSyntaxError.prototype.setMozillaProps=function setMozillaProps(){var sample=Error.call(this,this.message);if(sample.columnNumber)this.columnNumber=this.column;if(sample.description)this.description=this.message;if(sample.lineNumber)this.lineNumber=this.line;if(sample.fileName)this.fileName=this.file};CssSyntaxError.prototype.toString=function toString(){return this.name+": "+this.message+this.showSourceCode()};return CssSyntaxError}(SyntaxError);exports["default"]=CssSyntaxError;CssSyntaxError.prototype.name="CssSyntaxError";module.exports=exports["default"]}).call(this,require("_process"))},{"./warn-once":27,_process:7}],12:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _node=require("./node");var _node2=_interopRequireDefault(_node);var Declaration=function(_Node){function Declaration(defaults){_classCallCheck(this,Declaration);_Node.call(this,defaults);this.type="decl"}_inherits(Declaration,_Node);Declaration.prototype.stringify=function stringify(builder,semicolon){var before=this.style("before");if(before)builder(before);var between=this.style("between","colon");var string=this.prop+between+this.stringifyRaw("value");if(this.important){string+=this._important||" !important"}if(semicolon)string+=";";builder(string,this)};return Declaration}(_node2["default"]);exports["default"]=Declaration;module.exports=exports["default"]},{"./node":17}],13:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _cssSyntaxError=require("./css-syntax-error");var _cssSyntaxError2=_interopRequireDefault(_cssSyntaxError);var _previousMap=require("./previous-map");var _previousMap2=_interopRequireDefault(_previousMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var sequence=0;var Input=function(){function Input(css){var opts=arguments[1]===undefined?{}:arguments[1];_classCallCheck(this,Input);this.css=css.toString();if(this.css[0]===""||this.css[0]==="￾"){this.css=this.css.slice(1)}this.safe=!!opts.safe;if(opts.from)this.file=_path2["default"].resolve(opts.from);var map=new _previousMap2["default"](this.css,opts,this.id);if(map.text){this.map=map;var file=map.consumer().file;if(!this.file&&file)this.file=this.mapResolve(file)}if(this.file){this.from=this.file}else{sequence+=1;this.id="<input css "+sequence+">";this.from=this.id}if(this.map)this.map.file=this.from}Input.prototype.error=function error(message,line,column){var opts=arguments[3]===undefined?{}:arguments[3];var error=new _cssSyntaxError2["default"](message);var origin=this.origin(line,column);if(origin){error=new _cssSyntaxError2["default"](message,origin.line,origin.column,origin.source,origin.file,opts.plugin)}else{error=new _cssSyntaxError2["default"](message,line,column,this.css,this.file,opts.plugin)}error.generated={line:line,column:column,source:this.css};if(this.file)error.generated.file=this.file;return error};Input.prototype.origin=function origin(line,column){if(!this.map)return false;var consumer=this.map.consumer();var from=consumer.originalPositionFor({line:line,column:column});if(!from.source)return false;var result={file:this.mapResolve(from.source),line:from.line,column:from.column};var source=consumer.sourceContentFor(result.file);if(source)result.source=source;return result};Input.prototype.mapResolve=function mapResolve(file){return _path2["default"].resolve(this.map.consumer().sourceRoot||".",file)};return Input}();exports["default"]=Input;module.exports=exports["default"]},{"./css-syntax-error":11,"./previous-map":20,path:6}],14:[function(require,module,exports){(function(global){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _mapGenerator=require("./map-generator");var _mapGenerator2=_interopRequireDefault(_mapGenerator);var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var _result=require("./result");var _result2=_interopRequireDefault(_result);var _parse=require("./parse");var _parse2=_interopRequireDefault(_parse);var _root=require("./root");var _root2=_interopRequireDefault(_root);var Promise=global.Promise||require("es6-promise").Promise;function isPromise(obj){return typeof obj==="object"&&typeof obj.then==="function"}var LazyResult=function(){function LazyResult(processor,css,opts){_classCallCheck(this,LazyResult);this.stringified=false;this.processed=false;var root=undefined;if(css instanceof _root2["default"]){root=css}else if(css instanceof LazyResult||css instanceof _result2["default"]){root=css.root;if(css.map&&typeof opts.map==="undefined"){opts.map={prev:css.map}}}else{try{root=_parse2["default"](css,opts)}catch(error){this.error=error}}this.result=new _result2["default"](processor,root,opts)}LazyResult.prototype.warnings=function warnings(){return this.sync().warnings()};LazyResult.prototype.toString=function toString(){return this.css};LazyResult.prototype.then=function then(onFulfilled,onRejected){return this.async().then(onFulfilled,onRejected)};LazyResult.prototype["catch"]=function _catch(onRejected){return this.async()["catch"](onRejected)};LazyResult.prototype.handleError=function handleError(error,plugin){try{this.error=error;if(error.name==="CssSyntaxError"&&!error.plugin){error.plugin=plugin.postcssPlugin;error.setMessage()}else if(plugin.postcssVersion){var pluginName=plugin.postcssPlugin;var pluginVer=plugin.postcssVersion;var runtimeVer=this.result.processor.version;var a=pluginVer.split(".");var b=runtimeVer.split(".");if(a[0]!==b[0]||parseInt(a[1])>parseInt(b[1])){_warnOnce2["default"]("Your current PostCSS version is "+runtimeVer+", "+("but "+pluginName+" uses "+pluginVer+". Perhaps ")+"this is the source of the error below.")}}}catch(err){}};LazyResult.prototype.asyncTick=function asyncTick(resolve,reject){var _this=this;if(this.plugin>=this.processor.plugins.length){this.processed=true;return resolve()}try{(function(){var plugin=_this.processor.plugins[_this.plugin];var promise=_this.run(plugin);_this.plugin+=1;if(isPromise(promise)){promise.then(function(){_this.asyncTick(resolve,reject)})["catch"](function(error){_this.handleError(error,plugin);_this.processed=true;reject(error)})}else{_this.asyncTick(resolve,reject)}})()}catch(error){this.processed=true;reject(error)}};LazyResult.prototype.async=function async(){var _this2=this;if(this.processed){return new Promise(function(resolve,reject){if(_this2.error){reject(_this2.error)}else{resolve(_this2.stringify())}})}if(this.processing){return this.processing}this.processing=new Promise(function(resolve,reject){if(_this2.error)return reject(_this2.error);_this2.plugin=0;_this2.asyncTick(resolve,reject)}).then(function(){_this2.processed=true;return _this2.stringify()});return this.processing};LazyResult.prototype.sync=function sync(){if(this.processed)return this.result;this.processed=true;if(this.processing){throw new Error("Use process(css).then(cb) to work with async plugins")}if(this.error)throw this.error;for(var _iterator=this.result.processor.plugins,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var plugin=_ref;var promise=this.run(plugin);if(isPromise(promise)){throw new Error("Use process(css).then(cb) to work with async plugins")}}return this.result};LazyResult.prototype.run=function run(plugin){this.result.lastPlugin=plugin;var returned=undefined;try{returned=plugin(this.result.root,this.result)}catch(error){this.handleError(error,plugin);throw error}if(returned instanceof _root2["default"]){this.result.root=returned}else{return returned}};LazyResult.prototype.stringify=function stringify(){if(this.stringified)return this.result;this.stringified=true;this.sync();var map=new _mapGenerator2["default"](this.result.root,this.result.opts);var data=map.generate();this.result.css=data[0];this.result.map=data[1];return this.result};_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]);return LazyResult}();exports["default"]=LazyResult;module.exports=exports["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./map-generator":16,"./parse":18,"./result":22,"./root":23,"./warn-once":27,"es6-promise":29}],15:[function(require,module,exports){"use strict";exports.__esModule=true;var list={split:function split(string,separators,last){var array=[];var current="";var split=false;var func=0;var quote=false;var escape=false;for(var i=0;i<string.length;i++){var letter=string[i];if(quote){if(escape){escape=false}else if(letter==="\\"){escape=true}else if(letter===quote){quote=false}}else if(letter==='"'||letter==="'"){quote=letter}else if(letter==="("){func+=1}else if(letter===")"){if(func>0)func-=1}else if(func===0){if(separators.indexOf(letter)!==-1)split=true}if(split){if(current!=="")array.push(current.trim());current="";split=false}else{current+=letter}}if(last||current!=="")array.push(current.trim());return array},space:function space(string){var spaces=[" ","\n"," "];return list.split(string,spaces)},comma:function comma(string){var comma=",";return list.split(string,[comma],true)}};exports["default"]=list;module.exports=exports["default"]},{}],16:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _jsBase64=require("js-base64");var _sourceMap=require("source-map");var _sourceMap2=_interopRequireDefault(_sourceMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var _default=function(){var _class=function _default(root,opts){_classCallCheck(this,_class);this.root=root;this.opts=opts;this.mapOpts=opts.map||{}};_class.prototype.isMap=function isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}else{return this.previous().length>0}};_class.prototype.previous=function previous(){var _this=this;if(!this.previousMaps){this.previousMaps=[];this.root.eachInside(function(node){if(node.source&&node.source.input.map){var map=node.source.input.map;if(_this.previousMaps.indexOf(map)===-1){_this.previousMaps.push(map)}}})}return this.previousMaps};_class.prototype.isInline=function isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}var annotation=this.mapOpts.annotation;if(typeof annotation!=="undefined"&&annotation!==true){return false}if(this.previous().length){return this.previous().some(function(i){return i.inline})}else{return true}};_class.prototype.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(function(i){return i.withContent()})}else{return true}};_class.prototype.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var node=undefined;for(var i=this.root.nodes.length-1;i>=0;i--){node=this.root.nodes[i];if(node.type!=="comment")continue;if(node.text.indexOf("# sourceMappingURL=")===0){this.root.remove(i)}}};_class.prototype.setSourcesContent=function setSourcesContent(){var _this2=this;var already={};this.root.eachInside(function(node){if(node.source){var from=node.source.input.from;if(from&&!already[from]){already[from]=true;var relative=_this2.relative(from);_this2.map.setSourceContent(relative,node.source.input.css)}}})};_class.prototype.applyPrevMaps=function applyPrevMaps(){for(var _iterator=this.previous(),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var prev=_ref;var from=this.relative(prev.file);var root=prev.root||_path2["default"].dirname(prev.file);var map=undefined;if(this.mapOpts.sourcesContent===false){map=new _sourceMap2["default"].SourceMapConsumer(prev.text);if(map.sourcesContent){map.sourcesContent=map.sourcesContent.map(function(){return null})}}else{map=prev.consumer()}this.map.applySourceMap(map,from,this.relative(root))}};_class.prototype.isAnnotation=function isAnnotation(){if(this.isInline()){return true}else if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}else if(this.previous().length){return this.previous().some(function(i){return i.annotation})}else{return true}};_class.prototype.addAnnotation=function addAnnotation(){var content=undefined;if(this.isInline()){content="data:application/json;base64,"+_jsBase64.Base64.encode(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){content=this.mapOpts.annotation}else{content=this.outputFile()+".map"}this.css+="\n/*# sourceMappingURL="+content+" */"};_class.prototype.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to)}else if(this.opts.from){return this.relative(this.opts.from)}else{return"to.css"}};_class.prototype.generateMap=function generateMap(){this.stringify();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}else{return[this.css,this.map]}};_class.prototype.relative=function relative(file){var from=this.opts.to?_path2["default"].dirname(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){from=_path2["default"].dirname(_path2["default"].resolve(from,this.mapOpts.annotation));
}file=_path2["default"].relative(from,file);if(_path2["default"].sep==="\\"){return file.replace(/\\/g,"/")}else{return file}};_class.prototype.sourcePath=function sourcePath(node){return this.relative(node.source.input.from)};_class.prototype.stringify=function stringify(){var _this3=this;this.css="";this.map=new _sourceMap2["default"].SourceMapGenerator({file:this.outputFile()});var line=1;var column=1;var lines=undefined,last=undefined;var builder=function builder(str,node,type){_this3.css+=str;if(node&&node.source&&node.source.start&&type!=="end"){_this3.map.addMapping({source:_this3.sourcePath(node),original:{line:node.source.start.line,column:node.source.start.column-1},generated:{line:line,column:column-1}})}lines=str.match(/\n/g);if(lines){line+=lines.length;last=str.lastIndexOf("\n");column=str.length-last}else{column=column+str.length}if(node&&node.source&&node.source.end&&type!=="start"){_this3.map.addMapping({source:_this3.sourcePath(node),original:{line:node.source.end.line,column:node.source.end.column},generated:{line:line,column:column-1}})}};this.root.stringify(builder)};_class.prototype.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}else{return[this.root.toString()]}};return _class}();exports["default"]=_default;module.exports=exports["default"]},{"js-base64":30,path:6,"source-map":31}],17:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _cssSyntaxError=require("./css-syntax-error");var _cssSyntaxError2=_interopRequireDefault(_cssSyntaxError);var defaultStyle={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var cloneNode=function cloneNode(obj,parent){var cloned=new obj.constructor;for(var i in obj){if(!obj.hasOwnProperty(i))continue;var value=obj[i];var type=typeof value;if(i==="parent"&&type==="object"){if(parent)cloned[i]=parent}else if(i==="source"){cloned[i]=value}else if(value instanceof Array){cloned[i]=value.map(function(j){return cloneNode(j,cloned)})}else if(i!=="before"&&i!=="after"&&i!=="between"&&i!=="semicolon"){if(type==="object")value=cloneNode(value);cloned[i]=value}}return cloned};var _default=function(){var _class=function _default(){var defaults=arguments[0]===undefined?{}:arguments[0];_classCallCheck(this,_class);for(var _name in defaults){this[_name]=defaults[_name]}};_class.prototype.error=function error(message){var opts=arguments[1]===undefined?{}:arguments[1];if(this.source){var pos=this.source.start;return this.source.input.error(message,pos.line,pos.column,opts)}else{return new _cssSyntaxError2["default"](message)}};_class.prototype.removeSelf=function removeSelf(){if(this.parent){this.parent.remove(this)}this.parent=undefined;return this};_class.prototype.replace=function replace(nodes){this.parent.insertBefore(this,nodes);this.parent.remove(this);return this};_class.prototype.toString=function toString(){var result="";var builder=function builder(str){return result+=str};this.stringify(builder);return result};_class.prototype.clone=function clone(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=cloneNode(this);for(var _name2 in overrides){cloned[_name2]=overrides[_name2]}return cloned};_class.prototype.cloneBefore=function cloneBefore(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=this.clone(overrides);this.parent.insertBefore(this,cloned);return cloned};_class.prototype.cloneAfter=function cloneAfter(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=this.clone(overrides);this.parent.insertAfter(this,cloned);return cloned};_class.prototype.replaceWith=function replaceWith(node){this.parent.insertBefore(this,node);this.removeSelf();return this};_class.prototype.moveTo=function moveTo(container){this.cleanStyles(this.root()===container.root());this.removeSelf();container.append(this);return this};_class.prototype.moveBefore=function moveBefore(node){this.cleanStyles(this.root()===node.root());this.removeSelf();node.parent.insertBefore(node,this);return this};_class.prototype.moveAfter=function moveAfter(node){this.cleanStyles(this.root()===node.root());this.removeSelf();node.parent.insertAfter(node,this);return this};_class.prototype.next=function next(){var index=this.parent.index(this);return this.parent.nodes[index+1]};_class.prototype.prev=function prev(){var index=this.parent.index(this);return this.parent.nodes[index-1]};_class.prototype.toJSON=function toJSON(){var fixed={};for(var _name3 in this){if(!this.hasOwnProperty(_name3))continue;if(_name3==="parent")continue;var value=this[_name3];if(value instanceof Array){fixed[_name3]=value.map(function(i){if(typeof i==="object"&&i.toJSON){return i.toJSON()}else{return i}})}else if(typeof value==="object"&&value.toJSON){fixed[_name3]=value.toJSON()}else{fixed[_name3]=value}}return fixed};_class.prototype.style=function style(own,detect){var value=undefined;if(!detect)detect=own;if(own){value=this[own];if(typeof value!=="undefined")return value}var parent=this.parent;if(detect==="before"){if(!parent||parent.type==="root"&&parent.first===this){return""}}if(!parent)return defaultStyle[detect];var root=this.root();if(!root.styleCache)root.styleCache={};if(typeof root.styleCache[detect]!=="undefined"){return root.styleCache[detect]}if(detect==="semicolon"){root.eachInside(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"){value=i.semicolon;if(typeof value!=="undefined")return false}})}else if(detect==="emptyBody"){root.eachInside(function(i){if(i.nodes&&i.nodes.length===0){value=i.after;if(typeof value!=="undefined")return false}})}else if(detect==="indent"){root.eachInside(function(i){var p=i.parent;if(p&&p!==root&&p.parent&&p.parent===root){if(typeof i.before!=="undefined"){var parts=i.before.split("\n");value=parts[parts.length-1];value=value.replace(/[^\s]/g,"");return false}}})}else if(detect==="beforeComment"){root.eachComment(function(i){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}});if(typeof value==="undefined"){value=this.style(null,"beforeDecl")}}else if(detect==="beforeDecl"){root.eachDecl(function(i){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}});if(typeof value==="undefined"){value=this.style(null,"beforeRule")}}else if(detect==="beforeRule"){root.eachInside(function(i){if(i.nodes&&(i.parent!==root||root.first!==i)){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}}})}else if(detect==="beforeClose"){root.eachInside(function(i){if(i.nodes&&i.nodes.length>0){if(typeof i.after!=="undefined"){value=i.after;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}}})}else if(detect==="before"||detect==="after"){if(this.type==="decl"){value=this.style(null,"beforeDecl")}else if(this.type==="comment"){value=this.style(null,"beforeComment")}else if(detect==="before"){value=this.style(null,"beforeRule")}else{value=this.style(null,"beforeClose")}var node=this.parent;var depth=0;while(node&&node.type!=="root"){depth+=1;node=node.parent}if(value.indexOf("\n")!==-1){var indent=this.style(null,"indent");if(indent.length){for(var step=0;step<depth;step++){value+=indent}}}return value}else if(detect==="colon"){root.eachDecl(function(i){if(typeof i.between!=="undefined"){value=i.between.replace(/[^\s:]/g,"");return false}})}else if(detect==="beforeOpen"){root.eachInside(function(i){if(i.type!=="decl"){value=i.between;if(typeof value!=="undefined")return false}})}else{root.eachInside(function(i){value=i[own];if(typeof value!=="undefined")return false})}if(typeof value==="undefined")value=defaultStyle[detect];root.styleCache[detect]=value;return value};_class.prototype.root=function root(){var result=this;while(result.parent)result=result.parent;return result};_class.prototype.cleanStyles=function cleanStyles(keepBetween){delete this.before;delete this.after;if(!keepBetween)delete this.between;if(this.nodes){for(var _iterator=this.nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;node.cleanStyles(keepBetween)}}};_class.prototype.stringifyRaw=function stringifyRaw(prop){var value=this[prop];var raw=this["_"+prop];if(raw&&raw.value===value){return raw.raw}else{return value}};return _class}();exports["default"]=_default;module.exports=exports["default"]},{"./css-syntax-error":11}],18:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=parse;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _parser=require("./parser");var _parser2=_interopRequireDefault(_parser);var _input=require("./input");var _input2=_interopRequireDefault(_input);function parse(css,opts){var input=new _input2["default"](css,opts);var parser=new _parser2["default"](input);parser.tokenize();parser.loop();return parser.root}module.exports=exports["default"]},{"./input":13,"./parser":19}],19:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _tokenize=require("./tokenize");var _tokenize2=_interopRequireDefault(_tokenize);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _atRule=require("./at-rule");var _atRule2=_interopRequireDefault(_atRule);var _root=require("./root");var _root2=_interopRequireDefault(_root);var _rule=require("./rule");var _rule2=_interopRequireDefault(_rule);var Parser=function(){function Parser(input){_classCallCheck(this,Parser);this.input=input;this.pos=0;this.root=new _root2["default"];this.current=this.root;this.spaces="";this.semicolon=false;this.root.source={input:input};if(input.map)this.root.prevMap=input.map}Parser.prototype.tokenize=function tokenize(){this.tokens=_tokenize2["default"](this.input)};Parser.prototype.loop=function loop(){var token=undefined;while(this.pos<this.tokens.length){token=this.tokens[this.pos];switch(token[0]){case"word":case":":this.word(token);break;case"}":this.end(token);break;case"comment":this.comment(token);break;case"at-word":this.atrule(token);break;case"{":this.emptyRule(token);break;default:this.spaces+=token[1];break}this.pos+=1}this.endFile()};Parser.prototype.comment=function comment(token){var node=new _comment2["default"];this.init(node,token[2],token[3]);node.source.end={line:token[4],column:token[5]};var text=token[1].slice(2,-2);if(text.match(/^\s*$/)){node.left=text;node.text="";node.right=""}else{var match=text.match(/^(\s*)([^]*[^\s])(\s*)$/);node.left=match[1];node.text=match[2];node.right=match[3]}};Parser.prototype.emptyRule=function emptyRule(token){var node=new _rule2["default"];this.init(node,token[2],token[3]);node.between="";node.selector="";this.current=node};Parser.prototype.word=function word(){var token=undefined;var end=false;var type=null;var colon=false;var bracket=null;var brackets=0;var start=this.pos;this.pos+=1;while(this.pos<this.tokens.length){token=this.tokens[this.pos];type=token[0];if(type==="("){if(!bracket)bracket=token;brackets+=1}else if(brackets===0){if(type===";"){if(colon){this.decl(this.tokens.slice(start,this.pos+1));return}else{break}}else if(type==="{"){this.rule(this.tokens.slice(start,this.pos+1));return}else if(type==="}"){this.pos-=1;end=true;break}else{if(type===":")colon=true}}else if(type===")"){brackets-=1;if(brackets===0)bracket=null}this.pos+=1}if(this.pos===this.tokens.length){this.pos-=1;end=true}if(brackets>0&&!this.input.safe){throw this.input.error("Unclosed bracket",bracket[2],bracket[3])}if(end&&colon){while(this.pos>start){token=this.tokens[this.pos][0];if(token!=="space"&&token!=="comment")break;this.pos-=1}this.decl(this.tokens.slice(start,this.pos+1));return}if(this.input.safe){var buffer=this.tokens.slice(start,this.pos+1);this.spaces+=buffer.map(function(i){return i[1]}).join("")}else{token=this.tokens[start];throw this.input.error("Unknown word",token[2],token[3])}};Parser.prototype.rule=function rule(tokens){tokens.pop();var node=new _rule2["default"];this.init(node,tokens[0][2],tokens[0][3]);node.between=this.spacesFromEnd(tokens);this.raw(node,"selector",tokens);this.current=node};Parser.prototype.decl=function decl(tokens){var node=new _declaration2["default"];this.init(node);var last=tokens[tokens.length-1];if(last[0]===";"){this.semicolon=true;tokens.pop()}if(last[4]){node.source.end={line:last[4],column:last[5]}}else{node.source.end={line:last[2],column:last[3]}}while(tokens[0][0]!=="word"){node.before+=tokens.shift()[1]}node.source.start={line:tokens[0][2],column:tokens[0][3]};node.prop=tokens.shift()[1];node.between="";var token=undefined;while(tokens.length){token=tokens.shift();if(token[0]===":"){node.between+=token[1];break}else if(token[0]!=="space"&&token[0]!=="comment"){this.unknownWord(node,token,tokens)}else{node.between+=token[1]}}if(node.prop[0]==="_"||node.prop[0]==="*"){node.before+=node.prop[0];node.prop=node.prop.slice(1)}node.between+=this.spacesFromStart(tokens);if(this.input.safe)this.checkMissedSemicolon(tokens);for(var i=tokens.length-1;i>0;i--){token=tokens[i];if(token[1]==="!important"){node.important=true;var string=this.stringFrom(tokens,i);string=this.spacesFromEnd(tokens)+string;if(string!==" !important")node._important=string;break}else if(token[1]==="important"){var cache=tokens.slice(0);var str="";for(var j=i;j>0;j--){var type=cache[j][0];if(str.trim().indexOf("!")===0&&type!=="space"){break}str=cache.pop()[1]+str}if(str.trim().indexOf("!")===0){node.important=true;node._important=str;tokens=cache}}if(token[0]!=="space"&&token[0]!=="comment"){break}}this.raw(node,"value",tokens);if(node.value.indexOf(":")!==-1&&!this.input.safe){this.checkMissedSemicolon(tokens)}};Parser.prototype.atrule=function atrule(token){var node=new _atRule2["default"];node.name=token[1].slice(1);if(node.name===""){if(this.input.safe){node.name=""}else{throw this.input.error("At-rule without name",token[2],token[3])}}this.init(node,token[2],token[3]);var last=false;var open=false;var params=[];this.pos+=1;while(this.pos<this.tokens.length){token=this.tokens[this.pos];if(token[0]===";"){node.source.end={line:token[2],column:token[3]};this.semicolon=true;break}else if(token[0]==="{"){open=true;break}else{params.push(token)}this.pos+=1}if(this.pos===this.tokens.length){last=true}node.between=this.spacesFromEnd(params);if(params.length){node.afterName=this.spacesFromStart(params);this.raw(node,"params",params);if(last){token=params[params.length-1];node.source.end={line:token[4],column:token[5]};this.spaces=node.between;node.between=""}}else{node.afterName="";node.params=""}if(open){node.nodes=[];this.current=node}};Parser.prototype.end=function end(token){if(this.current.nodes&&this.current.nodes.length){this.current.semicolon=this.semicolon}this.semicolon=false;this.current.after=(this.current.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end={line:token[2],column:token[3]};this.current=this.current.parent}else if(!this.input.safe){throw this.input.error("Unexpected }",token[2],token[3])}else{this.current.after+="}"}};Parser.prototype.endFile=function endFile(){if(this.current.parent&&!this.input.safe){var pos=this.current.source.start;throw this.input.error("Unclosed block",pos.line,pos.column)}if(this.current.nodes&&this.current.nodes.length){this.current.semicolon=this.semicolon}this.current.after=(this.current.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.after=""}};Parser.prototype.unknownWord=function unknownWord(node,token){if(this.input.safe){node.source.start={line:token[2],column:token[3]};node.before+=node.prop+node.between;node.prop=token[1];node.between=""}else{throw this.input.error("Unknown word",token[2],token[3])}};Parser.prototype.checkMissedSemicolon=function checkMissedSemicolon(tokens){var prev=null;var colon=false;var brackets=0;var type=undefined,token=undefined;for(var i=0;i<tokens.length;i++){token=tokens[i];type=token[0];if(type==="("){brackets+=1}else if(type===")"){brackets-=0}else if(brackets===0&&type===":"){if(!prev&&this.input.safe){continue}else if(!prev){throw this.input.error("Double colon",token[2],token[3])}else if(prev[0]==="word"&&prev[1]==="progid"){continue}else{colon=i;break}}prev=token}if(colon===false)return;if(this.input.safe){var split=undefined;for(split=colon-1;split>=0;split--){if(tokens[split][0]==="word")break}for(split-=1;split>=0;split--){if(tokens[split][0]!=="space"){split+=1;break}}var other=tokens.splice(split,tokens.length-split);this.decl(other)}else{var founded=0;for(var j=colon-1;j>=0;j--){token=tokens[j];if(token[0]!=="space"){founded+=1;if(founded===2)break}}throw this.input.error("Missed semicolon",token[2],token[3])}};Parser.prototype.init=function init(node,line,column){this.current.push(node);node.source={start:{line:line,column:column},input:this.input};node.before=this.spaces;this.spaces="";if(node.type!=="comment")this.semicolon=false};Parser.prototype.raw=function raw(node,prop,tokens){var token=undefined;var value="";var clean=true;for(var _iterator=tokens,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){if(_isArray){if(_i>=_iterator.length)break;token=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;token=_i.value}if(token[0]==="comment"){clean=false}else{value+=token[1]}}if(!clean){var origin="";for(var _iterator2=tokens,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){if(_isArray2){if(_i2>=_iterator2.length)break;token=_iterator2[_i2++]}else{_i2=_iterator2.next();if(_i2.done)break;token=_i2.value}origin+=token[1]}node["_"+prop]={value:value,raw:origin}}node[prop]=value};Parser.prototype.spacesFromEnd=function spacesFromEnd(tokens){var next=undefined;var spaces="";while(tokens.length){next=tokens[tokens.length-1][0];if(next!=="space"&&next!=="comment")break;spaces+=tokens.pop()[1]}return spaces};Parser.prototype.spacesFromStart=function spacesFromStart(tokens){var next=undefined;var spaces="";while(tokens.length){next=tokens[0][0];if(next!=="space"&&next!=="comment")break;spaces+=tokens.shift()[1]}return spaces};Parser.prototype.stringFrom=function stringFrom(tokens,from){var result="";for(var i=from;i<tokens.length;i++){result+=tokens[i][1]}tokens.splice(from,tokens.length-from);return result};return Parser}();exports["default"]=Parser;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./root":23,"./rule":24,"./tokenize":25}],20:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _jsBase64=require("js-base64");var _sourceMap=require("source-map");var _sourceMap2=_interopRequireDefault(_sourceMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var _fs=require("fs");var _fs2=_interopRequireDefault(_fs);var PreviousMap=function(){function PreviousMap(css,opts){_classCallCheck(this,PreviousMap);this.loadAnnotation(css);this.inline=this.startWith(this.annotation,"data:");var prev=opts.map?opts.map.prev:undefined;var text=this.loadMap(opts.from,prev);if(text)this.text=text}PreviousMap.prototype.consumer=function consumer(){if(!this.consumerCache){this.consumerCache=new _sourceMap2["default"].SourceMapConsumer(this.text)}return this.consumerCache};PreviousMap.prototype.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)};PreviousMap.prototype.startWith=function startWith(string,start){if(!string)return false;return string.substr(0,start.length)===start};PreviousMap.prototype.loadAnnotation=function loadAnnotation(css){var match=css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);if(match)this.annotation=match[1].trim()};PreviousMap.prototype.decodeInline=function decodeInline(text){var utf64="data:application/json;charset=utf-8;base64,";var b64="data:application/json;base64,";var uri="data:application/json,";if(this.startWith(text,uri)){return decodeURIComponent(text.substr(uri.length))}else if(this.startWith(text,b64)){return _jsBase64.Base64.decode(text.substr(b64.length))}else if(this.startWith(text,utf64)){return _jsBase64.Base64.decode(text.substr(utf64.length))}else{var encoding=text.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+encoding)}};PreviousMap.prototype.loadMap=function loadMap(file,prev){if(prev===false)return false;if(prev){if(typeof prev==="string"){return prev}else if(prev instanceof _sourceMap2["default"].SourceMapConsumer){return _sourceMap2["default"].SourceMapGenerator.fromSourceMap(prev).toString()}else if(prev instanceof _sourceMap2["default"].SourceMapGenerator){return prev.toString()}else if(typeof prev==="object"&&prev.mappings){return JSON.stringify(prev)}else{throw new Error("Unsupported previous source map format: "+prev.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){var map=this.annotation;if(file)map=_path2["default"].join(_path2["default"].dirname(file),map);this.root=_path2["default"].dirname(map);if(_fs2["default"].existsSync&&_fs2["default"].existsSync(map)){return _fs2["default"].readFileSync(map,"utf-8").toString().trim()}else{return false}}};return PreviousMap}();exports["default"]=PreviousMap;module.exports=exports["default"]},{fs:1,"js-base64":30,path:6,"source-map":31}],21:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _lazyResult=require("./lazy-result");var _lazyResult2=_interopRequireDefault(_lazyResult);var Processor=function(){function Processor(){var plugins=arguments[0]===undefined?[]:arguments[0];_classCallCheck(this,Processor);this.plugins=this.normalize(plugins)}Processor.prototype.use=function use(plugin){this.plugins=this.plugins.concat(this.normalize([plugin]));return this};Processor.prototype.process=function process(css){var opts=arguments[1]===undefined?{}:arguments[1];return new _lazyResult2["default"](this,css,opts)};Processor.prototype.normalize=function normalize(plugins){var normalized=[];for(var _iterator=plugins,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var i=_ref;var type=typeof i;if((type==="object"||type==="function")&&i.postcss){i=i.postcss}if(typeof i==="object"&&Array.isArray(i.plugins)){normalized=normalized.concat(i.plugins)}else{normalized.push(i)}}return normalized};return Processor}();exports["default"]=Processor;Processor.prototype.version=require("../package").version;module.exports=exports["default"]},{"../package":43,"./lazy-result":14}],22:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var _warning=require("./warning");var _warning2=_interopRequireDefault(_warning);var Result=function(){function Result(processor,root,opts){_classCallCheck(this,Result);this.processor=processor;this.messages=[];this.root=root;this.opts=opts;this.css=undefined;this.map=undefined}Result.prototype.toString=function toString(){return this.css};Result.prototype.warn=function warn(text){var opts=arguments[1]===undefined?{}:arguments[1];if(!opts.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){opts.plugin=this.lastPlugin.postcssPlugin}}this.messages.push(new _warning2["default"](text,opts))};Result.prototype.warnings=function warnings(){return this.messages.filter(function(i){return i.type==="warning"})};_createClass(Result,[{key:"from",get:function get(){_warnOnce2["default"]("result.from is deprecated and will be removed in 5.0. "+"Use result.opts.from instead.");return this.opts.from}},{key:"to",get:function get(){_warnOnce2["default"]("result.to is deprecated and will be removed in 5.0. "+"Use result.opts.to instead.");return this.opts.to}}]);return Result}();exports["default"]=Result;module.exports=exports["default"]},{"./warn-once":27,"./warning":28}],23:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var Root=function(_Container){function Root(defaults){_classCallCheck(this,Root);_Container.call(this,defaults);if(!this.nodes)this.nodes=[];this.type="root"}_inherits(Root,_Container);Root.prototype.remove=function remove(child){child=this.index(child);if(child===0&&this.nodes.length>1){this.nodes[1].before=this.nodes[child].before}return _Container.prototype.remove.call(this,child)};Root.prototype.normalize=function normalize(child,sample,type){var nodes=_Container.prototype.normalize.call(this,child);if(sample){if(type==="prepend"){if(this.nodes.length>1){sample.before=this.nodes[1].before}else{delete sample.before}}else{for(var _iterator=nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;if(this.first!==sample)node.before=sample.before}}}return nodes};Root.prototype.stringify=function stringify(builder){this.stringifyContent(builder);if(this.after)builder(this.after)};Root.prototype.toResult=function toResult(){var opts=arguments[0]===undefined?{}:arguments[0];var LazyResult=require("./lazy-result");var Processor=require("./processor");var lazy=new LazyResult(new Processor,this,opts);return lazy.stringify()};return Root}(_container2["default"]);exports["default"]=Root;module.exports=exports["default"]},{"./container":10,"./lazy-result":14,"./processor":21}],24:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var _list=require("./list");var _list2=_interopRequireDefault(_list);var Rule=function(_Container){function Rule(defaults){_classCallCheck(this,Rule);_Container.call(this,defaults);if(!this.nodes)this.nodes=[];this.type="rule"}_inherits(Rule,_Container);Rule.prototype.stringify=function stringify(builder){this.stringifyBlock(builder,this.stringifyRaw("selector"))};_createClass(Rule,[{key:"selectors",get:function get(){return _list2["default"].comma(this.selector)},set:function set(values){this.selector=values.join(", ")}}]);return Rule}(_container2["default"]);exports["default"]=Rule;module.exports=exports["default"]},{"./container":10,"./list":15}],25:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=tokenize;var SINGLE_QUOTE=39;var DOUBLE_QUOTE=34;var BACKSLASH=92;var SLASH=47;var NEWLINE=10;var SPACE=32;var FEED=12;var TAB=9;var CR=13;var OPEN_PARENTHESES=40;var CLOSE_PARENTHESES=41;var OPEN_CURLY=123;var CLOSE_CURLY=125;var SEMICOLON=59;var ASTERICK=42;var COLON=58;var AT=64;var RE_AT_END=/[ \n\t\r\{\(\)'"\\;\/]/g;var RE_WORD_END=/[ \n\t\r\(\)\{\}:;@!'"\\]|\/(?=\*)/g;var RE_BAD_BRACKET=/.[\\\/\("'\n]/;function tokenize(input){var tokens=[];var css=input.css.valueOf();var code=undefined,next=undefined,quote=undefined,lines=undefined,last=undefined,content=undefined,escape=undefined,nextLine=undefined,nextOffset=undefined,escaped=undefined,escapePos=undefined;var length=css.length;var offset=-1;var line=1;var pos=0;var unclosed=function unclosed(what,end){if(input.safe){css+=end;next=css.length-1}else{throw input.error("Unclosed "+what,line,pos-offset)}};while(pos<length){code=css.charCodeAt(pos);if(code===NEWLINE){offset=pos;line+=1}switch(code){case NEWLINE:case SPACE:case TAB:case CR:case FEED:next=pos;do{next+=1;code=css.charCodeAt(next);if(code===NEWLINE){offset=next;line+=1}}while(code===SPACE||code===NEWLINE||code===TAB||code===CR||code===FEED);tokens.push(["space",css.slice(pos,next)]);pos=next-1;break;case OPEN_CURLY:tokens.push(["{","{",line,pos-offset]);break;case CLOSE_CURLY:tokens.push(["}","}",line,pos-offset]);break;case COLON:tokens.push([":",":",line,pos-offset]);break;case SEMICOLON:tokens.push([";",";",line,pos-offset]);break;case OPEN_PARENTHESES:next=css.indexOf(")",pos+1);content=css.slice(pos,next+1);if(next===-1||RE_BAD_BRACKET.test(content)){tokens.push(["(","(",line,pos-offset]);
}else{tokens.push(["brackets",content,line,pos-offset,line,next-offset]);pos=next}break;case CLOSE_PARENTHESES:tokens.push([")",")",line,pos-offset]);break;case SINGLE_QUOTE:case DOUBLE_QUOTE:quote=code===SINGLE_QUOTE?"'":'"';next=pos;do{escaped=false;next=css.indexOf(quote,next+1);if(next===-1)unclosed("quote",quote);escapePos=next;while(css.charCodeAt(escapePos-1)===BACKSLASH){escapePos-=1;escaped=!escaped}}while(escaped);tokens.push(["string",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;case AT:RE_AT_END.lastIndex=pos+1;RE_AT_END.test(css);if(RE_AT_END.lastIndex===0){next=css.length-1}else{next=RE_AT_END.lastIndex-2}tokens.push(["at-word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;case BACKSLASH:next=pos;escape=true;while(css.charCodeAt(next+1)===BACKSLASH){next+=1;escape=!escape}code=css.charCodeAt(next+1);if(escape&&(code!==SLASH&&code!==SPACE&&code!==NEWLINE&&code!==TAB&&code!==CR&&code!==FEED)){next+=1}tokens.push(["word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;default:if(code===SLASH&&css.charCodeAt(pos+1)===ASTERICK){next=css.indexOf("*/",pos+2)+1;if(next===0)unclosed("comment","*/");content=css.slice(pos,next+1);lines=content.split("\n");last=lines.length-1;if(last>0){nextLine=line+last;nextOffset=next-lines[last].length}else{nextLine=line;nextOffset=offset}tokens.push(["comment",content,line,pos-offset,nextLine,next-nextOffset]);offset=nextOffset;line=nextLine;pos=next}else{RE_WORD_END.lastIndex=pos+1;RE_WORD_END.test(css);if(RE_WORD_END.lastIndex===0){next=css.length-1}else{next=RE_WORD_END.lastIndex-2}tokens.push(["word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next}break}pos++}return tokens}module.exports=exports["default"]},{}],26:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]={prefix:function prefix(prop){if(prop[0]==="-"){var sep=prop.indexOf("-",1);return prop.substr(0,sep+1)}else{return""}},unprefixed:function unprefixed(prop){if(prop[0]==="-"){var sep=prop.indexOf("-",1);return prop.substr(sep+1)}else{return prop}}};module.exports=exports["default"]},{}],27:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=warnOnce;var printed={};function warnOnce(message){if(printed[message])return;printed[message]=true;if(typeof console!=="undefined"&&console.warn)console.warn(message)}module.exports=exports["default"]},{}],28:[function(require,module,exports){"use strict";exports.__esModule=true;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Warning=function(){function Warning(text){var opts=arguments[1]===undefined?{}:arguments[1];_classCallCheck(this,Warning);this.type="warning";this.text=text;for(var opt in opts){this[opt]=opts[opt]}}Warning.prototype.toString=function toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin}).message}else if(this.plugin){return this.plugin+": "+this.text}else{return this.text}};return Warning}();exports["default"]=Warning;module.exports=exports["default"]},{}],29:[function(require,module,exports){(function(process,global){(function(){"use strict";function lib$es6$promise$utils$$objectOrFunction(x){return typeof x==="function"||typeof x==="object"&&x!==null}function lib$es6$promise$utils$$isFunction(x){return typeof x==="function"}function lib$es6$promise$utils$$isMaybeThenable(x){return typeof x==="object"&&x!==null}var lib$es6$promise$utils$$_isArray;if(!Array.isArray){lib$es6$promise$utils$$_isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}}else{lib$es6$promise$utils$$_isArray=Array.isArray}var lib$es6$promise$utils$$isArray=lib$es6$promise$utils$$_isArray;var lib$es6$promise$asap$$len=0;var lib$es6$promise$asap$$toString={}.toString;var lib$es6$promise$asap$$vertxNext;var lib$es6$promise$asap$$customSchedulerFn;var lib$es6$promise$asap$$asap=function asap(callback,arg){lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len]=callback;lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len+1]=arg;lib$es6$promise$asap$$len+=2;if(lib$es6$promise$asap$$len===2){if(lib$es6$promise$asap$$customSchedulerFn){lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush)}else{lib$es6$promise$asap$$scheduleFlush()}}};function lib$es6$promise$asap$$setScheduler(scheduleFn){lib$es6$promise$asap$$customSchedulerFn=scheduleFn}function lib$es6$promise$asap$$setAsap(asapFn){lib$es6$promise$asap$$asap=asapFn}var lib$es6$promise$asap$$browserWindow=typeof window!=="undefined"?window:undefined;var lib$es6$promise$asap$$browserGlobal=lib$es6$promise$asap$$browserWindow||{};var lib$es6$promise$asap$$BrowserMutationObserver=lib$es6$promise$asap$$browserGlobal.MutationObserver||lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;var lib$es6$promise$asap$$isNode=typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var lib$es6$promise$asap$$isWorker=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function lib$es6$promise$asap$$useNextTick(){var nextTick=process.nextTick;var version=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);if(Array.isArray(version)&&version[1]==="0"&&version[2]==="10"){nextTick=setImmediate}return function(){nextTick(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useVertxTimer(){return function(){lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useMutationObserver(){var iterations=0;var observer=new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);var node=document.createTextNode("");observer.observe(node,{characterData:true});return function(){node.data=iterations=++iterations%2}}function lib$es6$promise$asap$$useMessageChannel(){var channel=new MessageChannel;channel.port1.onmessage=lib$es6$promise$asap$$flush;return function(){channel.port2.postMessage(0)}}function lib$es6$promise$asap$$useSetTimeout(){return function(){setTimeout(lib$es6$promise$asap$$flush,1)}}var lib$es6$promise$asap$$queue=new Array(1e3);function lib$es6$promise$asap$$flush(){for(var i=0;i<lib$es6$promise$asap$$len;i+=2){var callback=lib$es6$promise$asap$$queue[i];var arg=lib$es6$promise$asap$$queue[i+1];callback(arg);lib$es6$promise$asap$$queue[i]=undefined;lib$es6$promise$asap$$queue[i+1]=undefined}lib$es6$promise$asap$$len=0}function lib$es6$promise$asap$$attemptVertex(){try{var r=require;var vertx=r("vertx");lib$es6$promise$asap$$vertxNext=vertx.runOnLoop||vertx.runOnContext;return lib$es6$promise$asap$$useVertxTimer()}catch(e){return lib$es6$promise$asap$$useSetTimeout()}}var lib$es6$promise$asap$$scheduleFlush;if(lib$es6$promise$asap$$isNode){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useNextTick()}else if(lib$es6$promise$asap$$BrowserMutationObserver){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useMutationObserver()}else if(lib$es6$promise$asap$$isWorker){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useMessageChannel()}else if(lib$es6$promise$asap$$browserWindow===undefined&&typeof require==="function"){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$attemptVertex()}else{lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useSetTimeout()}function lib$es6$promise$$internal$$noop(){}var lib$es6$promise$$internal$$PENDING=void 0;var lib$es6$promise$$internal$$FULFILLED=1;var lib$es6$promise$$internal$$REJECTED=2;var lib$es6$promise$$internal$$GET_THEN_ERROR=new lib$es6$promise$$internal$$ErrorObject;function lib$es6$promise$$internal$$selfFullfillment(){return new TypeError("You cannot resolve a promise with itself")}function lib$es6$promise$$internal$$cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function lib$es6$promise$$internal$$getThen(promise){try{return promise.then}catch(error){lib$es6$promise$$internal$$GET_THEN_ERROR.error=error;return lib$es6$promise$$internal$$GET_THEN_ERROR}}function lib$es6$promise$$internal$$tryThen(then,value,fulfillmentHandler,rejectionHandler){try{then.call(value,fulfillmentHandler,rejectionHandler)}catch(e){return e}}function lib$es6$promise$$internal$$handleForeignThenable(promise,thenable,then){lib$es6$promise$asap$$asap(function(promise){var sealed=false;var error=lib$es6$promise$$internal$$tryThen(then,thenable,function(value){if(sealed){return}sealed=true;if(thenable!==value){lib$es6$promise$$internal$$resolve(promise,value)}else{lib$es6$promise$$internal$$fulfill(promise,value)}},function(reason){if(sealed){return}sealed=true;lib$es6$promise$$internal$$reject(promise,reason)},"Settle: "+(promise._label||" unknown promise"));if(!sealed&&error){sealed=true;lib$es6$promise$$internal$$reject(promise,error)}},promise)}function lib$es6$promise$$internal$$handleOwnThenable(promise,thenable){if(thenable._state===lib$es6$promise$$internal$$FULFILLED){lib$es6$promise$$internal$$fulfill(promise,thenable._result)}else if(thenable._state===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,thenable._result)}else{lib$es6$promise$$internal$$subscribe(thenable,undefined,function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}}function lib$es6$promise$$internal$$handleMaybeThenable(promise,maybeThenable){if(maybeThenable.constructor===promise.constructor){lib$es6$promise$$internal$$handleOwnThenable(promise,maybeThenable)}else{var then=lib$es6$promise$$internal$$getThen(maybeThenable);if(then===lib$es6$promise$$internal$$GET_THEN_ERROR){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$GET_THEN_ERROR.error)}else if(then===undefined){lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}else if(lib$es6$promise$utils$$isFunction(then)){lib$es6$promise$$internal$$handleForeignThenable(promise,maybeThenable,then)}else{lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}}}function lib$es6$promise$$internal$$resolve(promise,value){if(promise===value){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$selfFullfillment())}else if(lib$es6$promise$utils$$objectOrFunction(value)){lib$es6$promise$$internal$$handleMaybeThenable(promise,value)}else{lib$es6$promise$$internal$$fulfill(promise,value)}}function lib$es6$promise$$internal$$publishRejection(promise){if(promise._onerror){promise._onerror(promise._result)}lib$es6$promise$$internal$$publish(promise)}function lib$es6$promise$$internal$$fulfill(promise,value){if(promise._state!==lib$es6$promise$$internal$$PENDING){return}promise._result=value;promise._state=lib$es6$promise$$internal$$FULFILLED;if(promise._subscribers.length!==0){lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,promise)}}function lib$es6$promise$$internal$$reject(promise,reason){if(promise._state!==lib$es6$promise$$internal$$PENDING){return}promise._state=lib$es6$promise$$internal$$REJECTED;promise._result=reason;lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection,promise)}function lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection){var subscribers=parent._subscribers;var length=subscribers.length;parent._onerror=null;subscribers[length]=child;subscribers[length+lib$es6$promise$$internal$$FULFILLED]=onFulfillment;subscribers[length+lib$es6$promise$$internal$$REJECTED]=onRejection;if(length===0&&parent._state){lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,parent)}}function lib$es6$promise$$internal$$publish(promise){var subscribers=promise._subscribers;var settled=promise._state;if(subscribers.length===0){return}var child,callback,detail=promise._result;for(var i=0;i<subscribers.length;i+=3){child=subscribers[i];callback=subscribers[i+settled];if(child){lib$es6$promise$$internal$$invokeCallback(settled,child,callback,detail)}else{callback(detail)}}promise._subscribers.length=0}function lib$es6$promise$$internal$$ErrorObject(){this.error=null}var lib$es6$promise$$internal$$TRY_CATCH_ERROR=new lib$es6$promise$$internal$$ErrorObject;function lib$es6$promise$$internal$$tryCatch(callback,detail){try{return callback(detail)}catch(e){lib$es6$promise$$internal$$TRY_CATCH_ERROR.error=e;return lib$es6$promise$$internal$$TRY_CATCH_ERROR}}function lib$es6$promise$$internal$$invokeCallback(settled,promise,callback,detail){var hasCallback=lib$es6$promise$utils$$isFunction(callback),value,error,succeeded,failed;if(hasCallback){value=lib$es6$promise$$internal$$tryCatch(callback,detail);if(value===lib$es6$promise$$internal$$TRY_CATCH_ERROR){failed=true;error=value.error;value=null}else{succeeded=true}if(promise===value){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$cannotReturnOwn());return}}else{value=detail;succeeded=true}if(promise._state!==lib$es6$promise$$internal$$PENDING){}else if(hasCallback&&succeeded){lib$es6$promise$$internal$$resolve(promise,value)}else if(failed){lib$es6$promise$$internal$$reject(promise,error)}else if(settled===lib$es6$promise$$internal$$FULFILLED){lib$es6$promise$$internal$$fulfill(promise,value)}else if(settled===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,value)}}function lib$es6$promise$$internal$$initializePromise(promise,resolver){try{resolver(function resolvePromise(value){lib$es6$promise$$internal$$resolve(promise,value)},function rejectPromise(reason){lib$es6$promise$$internal$$reject(promise,reason)})}catch(e){lib$es6$promise$$internal$$reject(promise,e)}}function lib$es6$promise$enumerator$$Enumerator(Constructor,input){var enumerator=this;enumerator._instanceConstructor=Constructor;enumerator.promise=new Constructor(lib$es6$promise$$internal$$noop);if(enumerator._validateInput(input)){enumerator._input=input;enumerator.length=input.length;enumerator._remaining=input.length;enumerator._init();if(enumerator.length===0){lib$es6$promise$$internal$$fulfill(enumerator.promise,enumerator._result)}else{enumerator.length=enumerator.length||0;enumerator._enumerate();if(enumerator._remaining===0){lib$es6$promise$$internal$$fulfill(enumerator.promise,enumerator._result)}}}else{lib$es6$promise$$internal$$reject(enumerator.promise,enumerator._validationError())}}lib$es6$promise$enumerator$$Enumerator.prototype._validateInput=function(input){return lib$es6$promise$utils$$isArray(input)};lib$es6$promise$enumerator$$Enumerator.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")};lib$es6$promise$enumerator$$Enumerator.prototype._init=function(){this._result=new Array(this.length)};var lib$es6$promise$enumerator$$default=lib$es6$promise$enumerator$$Enumerator;lib$es6$promise$enumerator$$Enumerator.prototype._enumerate=function(){var enumerator=this;var length=enumerator.length;var promise=enumerator.promise;var input=enumerator._input;for(var i=0;promise._state===lib$es6$promise$$internal$$PENDING&&i<length;i++){enumerator._eachEntry(input[i],i)}};lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry=function(entry,i){var enumerator=this;var c=enumerator._instanceConstructor;if(lib$es6$promise$utils$$isMaybeThenable(entry)){if(entry.constructor===c&&entry._state!==lib$es6$promise$$internal$$PENDING){entry._onerror=null;enumerator._settledAt(entry._state,i,entry._result)}else{enumerator._willSettleAt(c.resolve(entry),i)}}else{enumerator._remaining--;enumerator._result[i]=entry}};lib$es6$promise$enumerator$$Enumerator.prototype._settledAt=function(state,i,value){var enumerator=this;var promise=enumerator.promise;if(promise._state===lib$es6$promise$$internal$$PENDING){enumerator._remaining--;if(state===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,value)}else{enumerator._result[i]=value}}if(enumerator._remaining===0){lib$es6$promise$$internal$$fulfill(promise,enumerator._result)}};lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt=function(promise,i){var enumerator=this;lib$es6$promise$$internal$$subscribe(promise,undefined,function(value){enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED,i,value)},function(reason){enumerator._settledAt(lib$es6$promise$$internal$$REJECTED,i,reason)})};function lib$es6$promise$promise$all$$all(entries){return new lib$es6$promise$enumerator$$default(this,entries).promise}var lib$es6$promise$promise$all$$default=lib$es6$promise$promise$all$$all;function lib$es6$promise$promise$race$$race(entries){var Constructor=this;var promise=new Constructor(lib$es6$promise$$internal$$noop);if(!lib$es6$promise$utils$$isArray(entries)){lib$es6$promise$$internal$$reject(promise,new TypeError("You must pass an array to race."));return promise}var length=entries.length;function onFulfillment(value){lib$es6$promise$$internal$$resolve(promise,value)}function onRejection(reason){lib$es6$promise$$internal$$reject(promise,reason)}for(var i=0;promise._state===lib$es6$promise$$internal$$PENDING&&i<length;i++){lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]),undefined,onFulfillment,onRejection)}return promise}var lib$es6$promise$promise$race$$default=lib$es6$promise$promise$race$$race;function lib$es6$promise$promise$resolve$$resolve(object){var Constructor=this;if(object&&typeof object==="object"&&object.constructor===Constructor){return object}var promise=new Constructor(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$resolve(promise,object);return promise}var lib$es6$promise$promise$resolve$$default=lib$es6$promise$promise$resolve$$resolve;function lib$es6$promise$promise$reject$$reject(reason){var Constructor=this;var promise=new Constructor(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$reject(promise,reason);return promise}var lib$es6$promise$promise$reject$$default=lib$es6$promise$promise$reject$$reject;var lib$es6$promise$promise$$counter=0;function lib$es6$promise$promise$$needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function lib$es6$promise$promise$$needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var lib$es6$promise$promise$$default=lib$es6$promise$promise$$Promise;function lib$es6$promise$promise$$Promise(resolver){this._id=lib$es6$promise$promise$$counter++;this._state=undefined;this._result=undefined;this._subscribers=[];if(lib$es6$promise$$internal$$noop!==resolver){if(!lib$es6$promise$utils$$isFunction(resolver)){lib$es6$promise$promise$$needsResolver()}if(!(this instanceof lib$es6$promise$promise$$Promise)){lib$es6$promise$promise$$needsNew()}lib$es6$promise$$internal$$initializePromise(this,resolver)}}lib$es6$promise$promise$$Promise.all=lib$es6$promise$promise$all$$default;lib$es6$promise$promise$$Promise.race=lib$es6$promise$promise$race$$default;lib$es6$promise$promise$$Promise.resolve=lib$es6$promise$promise$resolve$$default;lib$es6$promise$promise$$Promise.reject=lib$es6$promise$promise$reject$$default;lib$es6$promise$promise$$Promise._setScheduler=lib$es6$promise$asap$$setScheduler;lib$es6$promise$promise$$Promise._setAsap=lib$es6$promise$asap$$setAsap;lib$es6$promise$promise$$Promise._asap=lib$es6$promise$asap$$asap;lib$es6$promise$promise$$Promise.prototype={constructor:lib$es6$promise$promise$$Promise,then:function(onFulfillment,onRejection){var parent=this;var state=parent._state;if(state===lib$es6$promise$$internal$$FULFILLED&&!onFulfillment||state===lib$es6$promise$$internal$$REJECTED&&!onRejection){return this}var child=new this.constructor(lib$es6$promise$$internal$$noop);var result=parent._result;if(state){var callback=arguments[state-1];lib$es6$promise$asap$$asap(function(){lib$es6$promise$$internal$$invokeCallback(state,child,callback,result)})}else{lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection)}return child},"catch":function(onRejection){return this.then(null,onRejection)}};function lib$es6$promise$polyfill$$polyfill(){var local;if(typeof global!=="undefined"){local=global}else if(typeof self!=="undefined"){local=self}else{try{local=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}var P=local.Promise;if(P&&Object.prototype.toString.call(P.resolve())==="[object Promise]"&&!P.cast){return}local.Promise=lib$es6$promise$promise$$default}var lib$es6$promise$polyfill$$default=lib$es6$promise$polyfill$$polyfill;var lib$es6$promise$umd$$ES6Promise={Promise:lib$es6$promise$promise$$default,polyfill:lib$es6$promise$polyfill$$default};if(typeof define==="function"&&define["amd"]){define(function(){return lib$es6$promise$umd$$ES6Promise})}else if(typeof module!=="undefined"&&module["exports"]){module["exports"]=lib$es6$promise$umd$$ES6Promise}else if(typeof this!=="undefined"){this["ES6Promise"]=lib$es6$promise$umd$$ES6Promise}lib$es6$promise$polyfill$$default()}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:7}],30:[function(require,module,exports){(function(global){"use strict";var _Base64=global.Base64;var version="2.1.9";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=require("buffer").Buffer}catch(err){}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64tab=function(bin){var t={};for(var i=0,l=bin.length;i<l;i++)t[bin.charAt(i)]=i;return t}(b64chars);var fromCharCode=String.fromCharCode;var cb_utob=function(c){if(c.length<2){var cc=c.charCodeAt(0);return cc<128?c:cc<2048?fromCharCode(192|cc>>>6)+fromCharCode(128|cc&63):fromCharCode(224|cc>>>12&15)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}else{var cc=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return fromCharCode(240|cc>>>18&7)+fromCharCode(128|cc>>>12&63)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob)};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(ccc.length>1?ccc.charCodeAt(1):0)<<8|(ccc.length>2?ccc.charCodeAt(2):0),chars=[b64chars.charAt(ord>>>18),b64chars.charAt(ord>>>12&63),padlen>=2?"=":b64chars.charAt(ord>>>6&63),padlen>=1?"=":b64chars.charAt(ord&63)];return chars.join("")};var btoa=global.btoa?function(b){return global.btoa(b)}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)};var _encode=buffer?function(u){return(u.constructor===buffer.constructor?u:new buffer(u)).toString("base64")}:function(u){return btoa(utob(u))};var encode=function(u,urisafe){return!urisafe?_encode(String(u)):_encode(String(u)).replace(/[+\/]/g,function(m0){return m0=="+"?"-":"_"}).replace(/=/g,"")};var encodeURI=function(u){return encode(u,true)};var re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g");var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((offset&1023)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1))}};var btou=function(b){return b.replace(re_btou,cb_btou)};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(n&255)];chars.length-=[0,0,2,1][padlen];return chars.join("")};var atob=global.atob?function(a){return global.atob(a)}:function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode)};var _decode=buffer?function(a){return(a.constructor===buffer.constructor?a:new buffer(a,"base64")).toString()}:function(a){return btou(atob(a))};var decode=function(a){return _decode(String(a).replace(/[-_]/g,function(m0){return m0=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};var noConflict=function(){var Base64=global.Base64;global.Base64=_Base64;return Base64};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict};if(typeof Object.defineProperty==="function"){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,true)}))}}if(global["Meteor"]){Base64=global.Base64}})(this)},{buffer:2}],31:[function(require,module,exports){exports.SourceMapGenerator=require("./source-map/source-map-generator").SourceMapGenerator;exports.SourceMapConsumer=require("./source-map/source-map-consumer").SourceMapConsumer;exports.SourceNode=require("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":38,"./source-map/source-map-generator":39,"./source-map/source-node":40}],32:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function ArraySet(){this._array=[];this._set={}}ArraySet.fromArray=function ArraySet_fromArray(aArray,aAllowDuplicates){var set=new ArraySet;for(var i=0,len=aArray.length;i<len;i++){set.add(aArray[i],aAllowDuplicates)}return set};ArraySet.prototype.size=function ArraySet_size(){return Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(aStr,aAllowDuplicates){var isDuplicate=this.has(aStr);var idx=this._array.length;if(!isDuplicate||aAllowDuplicates){this._array.push(aStr)}if(!isDuplicate){this._set[util.toSetString(aStr)]=idx}};ArraySet.prototype.has=function ArraySet_has(aStr){return Object.prototype.hasOwnProperty.call(this._set,util.toSetString(aStr))};ArraySet.prototype.indexOf=function ArraySet_indexOf(aStr){if(this.has(aStr)){return this._set[util.toSetString(aStr)]}throw new Error('"'+aStr+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(aIdx){if(aIdx>=0&&aIdx<this._array.length){return this._array[aIdx]}throw new Error("No element indexed by "+aIdx)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};exports.ArraySet=ArraySet})},{"./util":41,amdefine:42}],33:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64=require("./base64");var VLQ_BASE_SHIFT=5;var VLQ_BASE=1<<VLQ_BASE_SHIFT;var VLQ_BASE_MASK=VLQ_BASE-1;var VLQ_CONTINUATION_BIT=VLQ_BASE;function toVLQSigned(aValue){return aValue<0?(-aValue<<1)+1:(aValue<<1)+0}function fromVLQSigned(aValue){var isNegative=(aValue&1)===1;var shifted=aValue>>1;return isNegative?-shifted:shifted}exports.encode=function base64VLQ_encode(aValue){var encoded="";var digit;var vlq=toVLQSigned(aValue);do{digit=vlq&VLQ_BASE_MASK;vlq>>>=VLQ_BASE_SHIFT;if(vlq>0){digit|=VLQ_CONTINUATION_BIT}encoded+=base64.encode(digit)}while(vlq>0);return encoded};exports.decode=function base64VLQ_decode(aStr,aIndex,aOutParam){var strLen=aStr.length;var result=0;var shift=0;var continuation,digit;do{if(aIndex>=strLen){throw new Error("Expected more digits in base 64 VLQ value.")}digit=base64.decode(aStr.charCodeAt(aIndex++));if(digit===-1){throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1))}continuation=!!(digit&VLQ_CONTINUATION_BIT);digit&=VLQ_BASE_MASK;result=result+(digit<<shift);shift+=VLQ_BASE_SHIFT}while(continuation);aOutParam.value=fromVLQSigned(result);aOutParam.rest=aIndex}})},{"./base64":34,amdefine:42}],34:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number<intToCharMap.length){return intToCharMap[number]}throw new TypeError("Must be between 0 and 63: "+aNumber)};exports.decode=function(charCode){var bigA=65;var bigZ=90;var littleA=97;var littleZ=122;var zero=48;var nine=57;var plus=43;var slash=47;var littleOffset=26;var numberOffset=52;if(bigA<=charCode&&charCode<=bigZ){return charCode-bigA}if(littleA<=charCode&&charCode<=littleZ){return charCode-littleA+littleOffset}if(zero<=charCode&&charCode<=nine){return charCode-zero+numberOffset}if(charCode==plus){return 62}if(charCode==slash){return 63}return-1}})},{amdefine:42}],35:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){exports.GREATEST_LOWER_BOUND=1;exports.LEAST_UPPER_BOUND=2;function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow;var cmp=aCompare(aNeedle,aHaystack[mid],true);if(cmp===0){return mid}else if(cmp>0){if(aHigh-mid>1){return recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias)}if(aBias==exports.LEAST_UPPER_BOUND){return aHigh<aHaystack.length?aHigh:-1}else{return mid}}else{if(mid-aLow>1){return recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias)}if(aBias==exports.LEAST_UPPER_BOUND){return mid}else{return aLow<0?-1:aLow}}}exports.search=function search(aNeedle,aHaystack,aCompare,aBias){if(aHaystack.length===0){return-1}var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0){return-1}while(index-1>=0){if(aCompare(aHaystack[index],aHaystack[index-1],true)!==0){break}--index}return index}})},{amdefine:42}],36:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine;var lineB=mappingB.generatedLine;var columnA=mappingA.generatedColumn;var columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)};MappingList.prototype.add=function MappingList_add(aMapping){var mapping;if(generatedPositionAfter(this._last,aMapping)){this._last=aMapping;this._array.push(aMapping)}else{this._sorted=false;this._array.push(aMapping)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(util.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};exports.MappingList=MappingList})},{"./util":41,amdefine:42}],37:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y];ary[y]=temp}function randomIntInRange(low,high){return Math.round(low+Math.random()*(high-low))}function doQuickSort(ary,comparator,p,r){if(p<r){var pivotIndex=randomIntInRange(p,r);var i=p-1;swap(ary,pivotIndex,r);var pivot=ary[r];for(var j=p;j<r;j++){if(comparator(ary[j],pivot)<=0){i+=1;swap(ary,i,j)}}swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1);doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}})},{amdefine:42}],38:[function(require,module,exports){if(typeof define!=="function"){
var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");var binarySearch=require("./binary-search");var ArraySet=require("./array-set").ArraySet;var base64VLQ=require("./base64-vlq");var quickSort=require("./quick-sort").quickSort;function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}return sourceMap.sections!=null?new IndexedSourceMapConsumer(sourceMap):new BasicSourceMapConsumer(sourceMap)}SourceMapConsumer.fromSourceMap=function(aSourceMap){return BasicSourceMapConsumer.fromSourceMap(aSourceMap)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(aStr,index){var c=aStr.charAt(index);return c===";"||c===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(aCallback,aContext,aOrder){var context=aContext||null;var order=aOrder||SourceMapConsumer.GENERATED_ORDER;var mappings;switch(order){case SourceMapConsumer.GENERATED_ORDER:mappings=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:mappings=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var sourceRoot=this.sourceRoot;mappings.map(function(mapping){var source=mapping.source===null?null:this._sources.at(mapping.source);if(source!=null&&sourceRoot!=null){source=util.join(sourceRoot,source)}return{source:source,generatedLine:mapping.generatedLine,generatedColumn:mapping.generatedColumn,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:mapping.name===null?null:this._names.at(mapping.name)}},this).forEach(aCallback,context)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(aArgs){var line=util.getArg(aArgs,"line");var needle={source:util.getArg(aArgs,"source"),originalLine:line,originalColumn:util.getArg(aArgs,"column",0)};if(this.sourceRoot!=null){needle.source=util.relative(this.sourceRoot,needle.source)}if(!this._sources.has(needle.source)){return[]}needle.source=this._sources.indexOf(needle.source);var mappings=[];var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(index>=0){var mapping=this._originalMappings[index];if(aArgs.column===undefined){var originalLine=mapping.originalLine;while(mapping&&mapping.originalLine===originalLine){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[++index]}}else{var originalColumn=mapping.originalColumn;while(mapping&&mapping.originalLine===line&&mapping.originalColumn==originalColumn){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[++index]}}}return mappings};exports.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sources=util.getArg(sourceMap,"sources");var names=util.getArg(sourceMap,"names",[]);var sourceRoot=util.getArg(sourceMap,"sourceRoot",null);var sourcesContent=util.getArg(sourceMap,"sourcesContent",null);var mappings=util.getArg(sourceMap,"mappings");var file=util.getArg(sourceMap,"file",null);if(version!=this._version){throw new Error("Unsupported version: "+version)}sources=sources.map(util.normalize);this._names=ArraySet.fromArray(names,true);this._sources=ArraySet.fromArray(sources,true);this.sourceRoot=sourceRoot;this.sourcesContent=sourcesContent;this._mappings=mappings;this.file=file}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(aSourceMap){var smc=Object.create(BasicSourceMapConsumer.prototype);var names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),true);var sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),true);smc.sourceRoot=aSourceMap._sourceRoot;smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot);smc.file=aSourceMap._file;var generatedMappings=aSourceMap._mappings.toArray().slice();var destGeneratedMappings=smc.__generatedMappings=[];var destOriginalMappings=smc.__originalMappings=[];for(var i=0,length=generatedMappings.length;i<length;i++){var srcMapping=generatedMappings[i];var destMapping=new Mapping;destMapping.generatedLine=srcMapping.generatedLine;destMapping.generatedColumn=srcMapping.generatedColumn;if(srcMapping.source){destMapping.source=sources.indexOf(srcMapping.source);destMapping.originalLine=srcMapping.originalLine;destMapping.originalColumn=srcMapping.originalColumn;if(srcMapping.name){destMapping.name=names.indexOf(srcMapping.name)}destOriginalMappings.push(destMapping)}destGeneratedMappings.push(destMapping)}quickSort(smc.__originalMappings,util.compareByOriginalPositions);return smc};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(s){return this.sourceRoot!=null?util.join(this.sourceRoot,s):s},this)}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){var generatedLine=1;var previousGeneratedColumn=0;var previousOriginalLine=0;var previousOriginalColumn=0;var previousSource=0;var previousName=0;var length=aStr.length;var index=0;var cachedSegments={};var temp={};var originalMappings=[];var generatedMappings=[];var mapping,str,segment,end,value;while(index<length){if(aStr.charAt(index)===";"){generatedLine++;index++;previousGeneratedColumn=0}else if(aStr.charAt(index)===","){index++}else{mapping=new Mapping;mapping.generatedLine=generatedLine;for(end=index;end<length;end++){if(this._charIsMappingSeparator(aStr,end)){break}}str=aStr.slice(index,end);segment=cachedSegments[str];if(segment){index+=str.length}else{segment=[];while(index<end){base64VLQ.decode(aStr,index,temp);value=temp.value;index=temp.rest;segment.push(value)}if(segment.length===2){throw new Error("Found a source, but no line and column")}if(segment.length===3){throw new Error("Found a source and line, but no column")}cachedSegments[str]=segment}mapping.generatedColumn=previousGeneratedColumn+segment[0];previousGeneratedColumn=mapping.generatedColumn;if(segment.length>1){mapping.source=previousSource+segment[1];previousSource+=segment[1];mapping.originalLine=previousOriginalLine+segment[2];previousOriginalLine=mapping.originalLine;mapping.originalLine+=1;mapping.originalColumn=previousOriginalColumn+segment[3];previousOriginalColumn=mapping.originalColumn;if(segment.length>4){mapping.name=previousName+segment[4];previousName+=segment[4]}}generatedMappings.push(mapping);if(typeof mapping.originalLine==="number"){originalMappings.push(mapping)}}}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated);this.__generatedMappings=generatedMappings;quickSort(originalMappings,util.compareByOriginalPositions);this.__originalMappings=originalMappings};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){if(aNeedle[aLineName]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName])}if(aNeedle[aColumnName]<0){throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName])}return binarySearch.search(aNeedle,aMappings,aComparator,aBias)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var index=0;index<this._generatedMappings.length;++index){var mapping=this._generatedMappings[index];if(index+1<this._generatedMappings.length){var nextMapping=this._generatedMappings[index+1];if(mapping.generatedLine===nextMapping.generatedLine){mapping.lastGeneratedColumn=nextMapping.generatedColumn-1;continue}}mapping.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._generatedMappings,"generatedLine","generatedColumn",util.compareByGeneratedPositionsDeflated,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);if(source!==null){source=this._sources.at(source);if(this.sourceRoot!=null){source=util.join(this.sourceRoot,source)}}var name=util.getArg(mapping,"name",null);if(name!==null){name=this._names.at(name)}return{source:source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name:name}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(sc){return sc==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(aSource,nullOnMissing){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){aSource=util.relative(this.sourceRoot,aSource)}if(this._sources.has(aSource)){return this.sourcesContent[this._sources.indexOf(aSource)]}var url;if(this.sourceRoot!=null&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,"");if(url.scheme=="file"&&this._sources.has(fileUriAbsPath)){return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]}if((!url.path||url.path=="/")&&this._sources.has("/"+aSource)){return this.sourcesContent[this._sources.indexOf("/"+aSource)]}}if(nullOnMissing){return null}else{throw new Error('"'+aSource+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(aArgs){var source=util.getArg(aArgs,"source");if(this.sourceRoot!=null){source=util.relative(this.sourceRoot,source)}if(!this._sources.has(source)){return{line:null,column:null,lastColumn:null}}source=this._sources.indexOf(source);var needle={source:source,originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._originalMappings[index];if(mapping.source===needle.source){return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};exports.BasicSourceMapConsumer=BasicSourceMapConsumer;function IndexedSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sections=util.getArg(sourceMap,"sections");if(version!=this._version){throw new Error("Unsupported version: "+version)}this._sources=new ArraySet;this._names=new ArraySet;var lastOffset={line:-1,column:0};this._sections=sections.map(function(s){if(s.url){throw new Error("Support for url field in sections not implemented.")}var offset=util.getArg(s,"offset");var offsetLine=util.getArg(offset,"line");var offsetColumn=util.getArg(offset,"column");if(offsetLine<lastOffset.line||offsetLine===lastOffset.line&&offsetColumn<lastOffset.column){throw new Error("Section offsets must be ordered and non-overlapping.")}lastOffset=offset;return{generatedOffset:{generatedLine:offsetLine+1,generatedColumn:offsetColumn+1},consumer:new SourceMapConsumer(util.getArg(s,"map"))}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var sources=[];for(var i=0;i<this._sections.length;i++){for(var j=0;j<this._sections[i].consumer.sources.length;j++){sources.push(this._sections[i].consumer.sources[j])}}return sources}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var sectionIndex=binarySearch.search(needle,this._sections,function(needle,section){var cmp=needle.generatedLine-section.generatedOffset.generatedLine;if(cmp){return cmp}return needle.generatedColumn-section.generatedOffset.generatedColumn});var section=this._sections[sectionIndex];if(!section){return{source:null,line:null,column:null,name:null}}return section.consumer.originalPositionFor({line:needle.generatedLine-(section.generatedOffset.generatedLine-1),column:needle.generatedColumn-(section.generatedOffset.generatedLine===needle.generatedLine?section.generatedOffset.generatedColumn-1:0),bias:aArgs.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(s){return s.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(aSource,nullOnMissing){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];var content=section.consumer.sourceContentFor(aSource,true);if(content){return content}}if(nullOnMissing){return null}else{throw new Error('"'+aSource+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(aArgs){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];if(section.consumer.sources.indexOf(util.getArg(aArgs,"source"))===-1){continue}var generatedPosition=section.consumer.generatedPositionFor(aArgs);if(generatedPosition){var ret={line:generatedPosition.line+(section.generatedOffset.generatedLine-1),column:generatedPosition.column+(section.generatedOffset.generatedLine===generatedPosition.line?section.generatedOffset.generatedColumn-1:0)};return ret}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(aStr,aSourceRoot){this.__generatedMappings=[];this.__originalMappings=[];for(var i=0;i<this._sections.length;i++){var section=this._sections[i];var sectionMappings=section.consumer._generatedMappings;for(var j=0;j<sectionMappings.length;j++){var mapping=sectionMappings[i];var source=section.consumer._sources.at(mapping.source);if(section.consumer.sourceRoot!==null){source=util.join(section.consumer.sourceRoot,source)}this._sources.add(source);source=this._sources.indexOf(source);var name=section.consumer._names.at(mapping.name);this._names.add(name);name=this._names.indexOf(name);var adjustedMapping={source:source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.column+(section.generatedOffset.generatedLine===mapping.generatedLine)?section.generatedOffset.generatedColumn-1:0,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:name};this.__generatedMappings.push(adjustedMapping);if(typeof adjustedMapping.originalLine==="number"){this.__originalMappings.push(adjustedMapping)}}}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated);quickSort(this.__originalMappings,util.compareByOriginalPositions)};exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer})},{"./array-set":32,"./base64-vlq":33,"./binary-search":35,"./quick-sort":37,"./util":41,amdefine:42}],39:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64VLQ=require("./base64-vlq");var util=require("./util");var ArraySet=require("./array-set").ArraySet;var MappingList=require("./mapping-list").MappingList;function SourceMapGenerator(aArgs){if(!aArgs){aArgs={}}this._file=util.getArg(aArgs,"file",null);this._sourceRoot=util.getArg(aArgs,"sourceRoot",null);this._skipValidation=util.getArg(aArgs,"skipValidation",false);this._sources=new ArraySet;this._names=new ArraySet;this._mappings=new MappingList;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot;var generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot:sourceRoot});aSourceMapConsumer.eachMapping(function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};if(mapping.source!=null){newMapping.source=mapping.source;if(sourceRoot!=null){newMapping.source=util.relative(sourceRoot,newMapping.source)}newMapping.original={line:mapping.originalLine,column:mapping.originalColumn};if(mapping.name!=null){newMapping.name=mapping.name}}generator.addMapping(newMapping)});aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){generator.setSourceContent(sourceFile,content)}});return generator};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(aArgs){var generated=util.getArg(aArgs,"generated");var original=util.getArg(aArgs,"original",null);var source=util.getArg(aArgs,"source",null);var name=util.getArg(aArgs,"name",null);if(!this._skipValidation){this._validateMapping(generated,original,source,name)}if(source!=null&&!this._sources.has(source)){this._sources.add(source)}if(name!=null&&!this._names.has(name)){this._names.add(name)}this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:original!=null&&original.line,originalColumn:original!=null&&original.column,source:source,name:name})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(aSourceFile,aSourceContent){var source=aSourceFile;if(this._sourceRoot!=null){source=util.relative(this._sourceRoot,source)}if(aSourceContent!=null){if(!this._sourcesContents){this._sourcesContents={}}this._sourcesContents[util.toSetString(source)]=aSourceContent}else if(this._sourcesContents){delete this._sourcesContents[util.toSetString(source)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(aSourceFile==null){if(aSourceMapConsumer.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}sourceFile=aSourceMapConsumer.file}var sourceRoot=this._sourceRoot;if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}var newSources=new ArraySet;var newNames=new ArraySet;this._mappings.unsortedForEach(function(mapping){if(mapping.source===sourceFile&&mapping.originalLine!=null){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});if(original.source!=null){mapping.source=original.source;if(aSourceMapPath!=null){mapping.source=util.join(aSourceMapPath,mapping.source)}if(sourceRoot!=null){mapping.source=util.relative(sourceRoot,mapping.source)}mapping.originalLine=original.line;mapping.originalColumn=original.column;if(original.name!=null){mapping.name=original.name}}}var source=mapping.source;if(source!=null&&!newSources.has(source)){newSources.add(source)}var name=mapping.name;if(name!=null&&!newNames.has(name)){newNames.add(name)}},this);this._sources=newSources;this._names=newNames;aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aSourceMapPath!=null){sourceFile=util.join(aSourceMapPath,sourceFile)}if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}this.setSourceContent(sourceFile,content)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(aGenerated,aOriginal,aSource,aName){if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0&&!aOriginal&&!aSource&&!aName){return}else if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var previousGeneratedColumn=0;var previousGeneratedLine=1;var previousOriginalColumn=0;var previousOriginalLine=0;var previousName=0;var previousSource=0;var result="";var mapping;var mappings=this._mappings.toArray();for(var i=0,len=mappings.length;i<len;i++){mapping=mappings[i];if(mapping.generatedLine!==previousGeneratedLine){previousGeneratedColumn=0;while(mapping.generatedLine!==previousGeneratedLine){result+=";";previousGeneratedLine++}}else{if(i>0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1])){continue}result+=","}}result+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn);previousGeneratedColumn=mapping.generatedColumn;if(mapping.source!=null){result+=base64VLQ.encode(this._sources.indexOf(mapping.source)-previousSource);previousSource=this._sources.indexOf(mapping.source);result+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine);previousOriginalLine=mapping.originalLine-1;result+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn);previousOriginalColumn=mapping.originalColumn;if(mapping.name!=null){result+=base64VLQ.encode(this._names.indexOf(mapping.name)-previousName);previousName=this._names.indexOf(mapping.name)}}}return result};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(aSources,aSourceRoot){return aSources.map(function(source){if(!this._sourcesContents){return null}if(aSourceRoot!=null){source=util.relative(aSourceRoot,source)}var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){map.file=this._file}if(this._sourceRoot!=null){map.sourceRoot=this._sourceRoot}if(this._sourcesContents){map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)}return map};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};exports.SourceMapGenerator=SourceMapGenerator})},{"./array-set":32,"./base64-vlq":33,"./mapping-list":36,"./util":41,amdefine:42}],40:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var SourceMapGenerator=require("./source-map-generator").SourceMapGenerator;var util=require("./util");var REGEX_NEWLINE=/(\r?\n)/;var NEWLINE_CODE=10;var isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[];this.sourceContents={};this.line=aLine==null?null:aLine;this.column=aColumn==null?null:aColumn;this.source=aSource==null?null:aSource;this.name=aName==null?null:aName;this[isSourceNode]=true;if(aChunks!=null)this.add(aChunks)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode;var remainingLines=aGeneratedCode.split(REGEX_NEWLINE);var shiftNextLine=function(){var lineContents=remainingLines.shift();var newLine=remainingLines.shift()||"";return lineContents+newLine};var lastGeneratedLine=1,lastGeneratedColumn=0;var lastMapping=null;aSourceMapConsumer.eachMapping(function(mapping){if(lastMapping!==null){if(lastGeneratedLine<mapping.generatedLine){var code="";addMappingWithCode(lastMapping,shiftNextLine());lastGeneratedLine++;lastGeneratedColumn=0}else{var nextLine=remainingLines[0];var code=nextLine.substr(0,mapping.generatedColumn-lastGeneratedColumn);remainingLines[0]=nextLine.substr(mapping.generatedColumn-lastGeneratedColumn);lastGeneratedColumn=mapping.generatedColumn;addMappingWithCode(lastMapping,code);lastMapping=mapping;return}}while(lastGeneratedLine<mapping.generatedLine){node.add(shiftNextLine());lastGeneratedLine++}if(lastGeneratedColumn<mapping.generatedColumn){var nextLine=remainingLines[0];node.add(nextLine.substr(0,mapping.generatedColumn));remainingLines[0]=nextLine.substr(mapping.generatedColumn);lastGeneratedColumn=mapping.generatedColumn}lastMapping=mapping},this);if(remainingLines.length>0){if(lastMapping){addMappingWithCode(lastMapping,shiftNextLine())}node.add(remainingLines.join(""))}aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aRelativePath!=null){sourceFile=util.join(aRelativePath,sourceFile)}node.setSourceContent(sourceFile,content)}});return node;function addMappingWithCode(mapping,code){if(mapping===null||mapping.source===undefined){node.add(code)}else{var source=aRelativePath?util.join(aRelativePath,mapping.source):mapping.source;node.add(new SourceNode(mapping.originalLine,mapping.originalColumn,source,code,mapping.name))}}};SourceNode.prototype.add=function SourceNode_add(aChunk){if(Array.isArray(aChunk)){aChunk.forEach(function(chunk){this.add(chunk)},this)}else if(aChunk[isSourceNode]||typeof aChunk==="string"){if(aChunk){this.children.push(aChunk)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(aChunk){if(Array.isArray(aChunk)){for(var i=aChunk.length-1;i>=0;i--){this.prepend(aChunk[i])}}else if(aChunk[isSourceNode]||typeof aChunk==="string"){this.children.unshift(aChunk)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.walk=function SourceNode_walk(aFn){var chunk;for(var i=0,len=this.children.length;i<len;i++){chunk=this.children[i];if(chunk[isSourceNode]){chunk.walk(aFn)}else{if(chunk!==""){aFn(chunk,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(aSep){var newChildren;var i;var len=this.children.length;if(len>0){newChildren=[];for(i=0;i<len-1;i++){newChildren.push(this.children[i]);newChildren.push(aSep)}newChildren.push(this.children[i]);this.children=newChildren}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(aPattern,aReplacement){var lastChild=this.children[this.children.length-1];if(lastChild[isSourceNode]){lastChild.replaceRight(aPattern,aReplacement)}else if(typeof lastChild==="string"){this.children[this.children.length-1]=lastChild.replace(aPattern,aReplacement)}else{this.children.push("".replace(aPattern,aReplacement))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(aSourceFile,aSourceContent){this.sourceContents[util.toSetString(aSourceFile)]=aSourceContent};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(aFn){for(var i=0,len=this.children.length;i<len;i++){if(this.children[i][isSourceNode]){this.children[i].walkSourceContents(aFn)}}var sources=Object.keys(this.sourceContents);for(var i=0,len=sources.length;i<len;i++){aFn(util.fromSetString(sources[i]),this.sourceContents[sources[i]])}};SourceNode.prototype.toString=function SourceNode_toString(){var str="";this.walk(function(chunk){str+=chunk});return str};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(aArgs){var generated={code:"",line:1,column:0};var map=new SourceMapGenerator(aArgs);var sourceMappingActive=false;var lastOriginalSource=null;var lastOriginalLine=null;var lastOriginalColumn=null;var lastOriginalName=null;this.walk(function(chunk,original){generated.code+=chunk;if(original.source!==null&&original.line!==null&&original.column!==null){if(lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}lastOriginalSource=original.source;lastOriginalLine=original.line;lastOriginalColumn=original.column;lastOriginalName=original.name;sourceMappingActive=true}else if(sourceMappingActive){map.addMapping({generated:{line:generated.line,column:generated.column}});lastOriginalSource=null;sourceMappingActive=false}for(var idx=0,length=chunk.length;idx<length;idx++){if(chunk.charCodeAt(idx)===NEWLINE_CODE){generated.line++;generated.column=0;if(idx+1===length){lastOriginalSource=null;sourceMappingActive=false}else if(sourceMappingActive){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}}else{generated.column++}}});this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent)});return{code:generated.code,map:map}};exports.SourceNode=SourceNode})},{"./source-map-generator":39,"./util":41,amdefine:42}],41:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs){return aArgs[aName]}else if(arguments.length===3){return aDefaultValue}else{throw new Error('"'+aName+'" is a required argument.')}}exports.getArg=getArg;var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);if(!match){return null}return{scheme:match[1],auth:match[2],
host:match[3],port:match[4],path:match[5]}}exports.urlParse=urlParse;function urlGenerate(aParsedUrl){var url="";if(aParsedUrl.scheme){url+=aParsedUrl.scheme+":"}url+="//";if(aParsedUrl.auth){url+=aParsedUrl.auth+"@"}if(aParsedUrl.host){url+=aParsedUrl.host}if(aParsedUrl.port){url+=":"+aParsedUrl.port}if(aParsedUrl.path){url+=aParsedUrl.path}return url}exports.urlGenerate=urlGenerate;function normalize(aPath){var path=aPath;var url=urlParse(aPath);if(url){if(!url.path){return aPath}path=url.path}var isAbsolute=path.charAt(0)==="/";var parts=path.split(/\/+/);for(var part,up=0,i=parts.length-1;i>=0;i--){part=parts[i];if(part==="."){parts.splice(i,1)}else if(part===".."){up++}else if(up>0){if(part===""){parts.splice(i+1,up);up=0}else{parts.splice(i,2);up--}}}path=parts.join("/");if(path===""){path=isAbsolute?"/":"."}if(url){url.path=path;return urlGenerate(url)}return path}exports.normalize=normalize;function join(aRoot,aPath){if(aRoot===""){aRoot="."}if(aPath===""){aPath="."}var aPathUrl=urlParse(aPath);var aRootUrl=urlParse(aRoot);if(aRootUrl){aRoot=aRootUrl.path||"/"}if(aPathUrl&&!aPathUrl.scheme){if(aRootUrl){aPathUrl.scheme=aRootUrl.scheme}return urlGenerate(aPathUrl)}if(aPathUrl||aPath.match(dataUrlRegexp)){return aPath}if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path){aRootUrl.host=aPath;return urlGenerate(aRootUrl)}var joined=aPath.charAt(0)==="/"?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);if(aRootUrl){aRootUrl.path=joined;return urlGenerate(aRootUrl)}return joined}exports.join=join;function relative(aRoot,aPath){if(aRoot===""){aRoot="."}aRoot=aRoot.replace(/\/$/,"");var level=0;while(aPath.indexOf(aRoot+"/")!==0){var index=aRoot.lastIndexOf("/");if(index<0){return aPath}aRoot=aRoot.slice(0,index);if(aRoot.match(/^([^\/]+:\/)?\/*$/)){return aPath}++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)}exports.relative=relative;function toSetString(aStr){return"$"+aStr}exports.toSetString=toSetString;function fromSetString(aStr){return aStr.substr(1)}exports.fromSetString=fromSetString;function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp=mappingA.source-mappingB.source;if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0||onlyCompareOriginal){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp}cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}return mappingA.name-mappingB.name}exports.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0||onlyCompareGenerated){return cmp}cmp=mappingA.source-mappingB.source;if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp}return mappingA.name-mappingB.name}exports.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(aStr1,aStr2){if(aStr1===aStr2){return 0}if(aStr1>aStr2){return 1}return-1}function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp}cmp=strcmp(mappingA.source,mappingB.source);if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp}return strcmp(mappingA.name,mappingB.name)}exports.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated})},{amdefine:42}],42:[function(require,module,exports){(function(process,__filename){"use strict";function amdefine(module,requireFn){"use strict";var defineCache={},loaderCache={},alreadyCalled=false,path=require("path"),makeRequire,stringRequire;function trimDots(ary){var i,part;for(i=0;ary[i];i+=1){part=ary[i];if(part==="."){ary.splice(i,1);i-=1}else if(part===".."){if(i===1&&(ary[2]===".."||ary[0]==="..")){break}else if(i>0){ary.splice(i-1,2);i-=2}}}}function normalize(name,baseName){var baseParts;if(name&&name.charAt(0)==="."){if(baseName){baseParts=baseName.split("/");baseParts=baseParts.slice(0,baseParts.length-1);baseParts=baseParts.concat(name.split("/"));trimDots(baseParts);name=baseParts.join("/")}}return name}function makeNormalize(relName){return function(name){return normalize(name,relName)}}function makeLoad(id){function load(value){loaderCache[id]=value}load.fromText=function(id,text){throw new Error("amdefine does not implement load.fromText")};return load}makeRequire=function(systemRequire,exports,module,relId){function amdRequire(deps,callback){if(typeof deps==="string"){return stringRequire(systemRequire,exports,module,deps,relId)}else{deps=deps.map(function(depName){return stringRequire(systemRequire,exports,module,depName,relId)});if(callback){process.nextTick(function(){callback.apply(null,deps)})}}}amdRequire.toUrl=function(filePath){if(filePath.indexOf(".")===0){return normalize(filePath,path.dirname(module.filename))}else{return filePath}};return amdRequire};requireFn=requireFn||function req(){return module.require.apply(module,arguments)};function runFactory(id,deps,factory){var r,e,m,result;if(id){e=loaderCache[id]={};m={id:id,uri:__filename,exports:e};r=makeRequire(requireFn,e,m,id)}else{if(alreadyCalled){throw new Error("amdefine with no module ID cannot be called more than once per file.")}alreadyCalled=true;e=module.exports;m=module;r=makeRequire(requireFn,e,m,module.id)}if(deps){deps=deps.map(function(depName){return r(depName)})}if(typeof factory==="function"){result=factory.apply(m.exports,deps)}else{result=factory}if(result!==undefined){m.exports=result;if(id){loaderCache[id]=m.exports}}}stringRequire=function(systemRequire,exports,module,id,relId){var index=id.indexOf("!"),originalId=id,prefix,plugin;if(index===-1){id=normalize(id,relId);if(id==="require"){return makeRequire(systemRequire,exports,module,relId)}else if(id==="exports"){return exports}else if(id==="module"){return module}else if(loaderCache.hasOwnProperty(id)){return loaderCache[id]}else if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}else{if(systemRequire){return systemRequire(originalId)}else{throw new Error("No module with ID: "+id)}}}else{prefix=id.substring(0,index);id=id.substring(index+1,id.length);plugin=stringRequire(systemRequire,exports,module,prefix,relId);if(plugin.normalize){id=plugin.normalize(id,makeNormalize(relId))}else{id=normalize(id,relId)}if(loaderCache[id]){return loaderCache[id]}else{plugin.load(id,makeRequire(systemRequire,exports,module,relId),makeLoad(id),{});return loaderCache[id]}}};function define(id,deps,factory){if(Array.isArray(id)){factory=deps;deps=id;id=undefined}else if(typeof id!=="string"){factory=id;id=deps=undefined}if(deps&&!Array.isArray(deps)){factory=deps;deps=undefined}if(!deps){deps=["require","exports","module"]}if(id){defineCache[id]=[id,deps,factory]}else{runFactory(id,deps,factory)}}define.require=function(id){if(loaderCache[id]){return loaderCache[id]}if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}};define.amd={};return define}module.exports=amdefine}).call(this,require("_process"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{_process:7,path:6}],43:[function(require,module,exports){module.exports={name:"postcss",version:"4.1.16",description:"Tool for transforming CSS with JS plugins",keywords:["css","postproccessor","parser","source map","transform","manipulation","preprocess","transpiler"],author:"Andrey Sitnik <andrey@sitnik.ru>",license:"MIT",repository:{type:"git",url:"https://github.com/postcss/postcss.git"},dependencies:{"es6-promise":"~2.3.0","source-map":"~0.4.2","js-base64":"~2.1.8"},devDependencies:{"concat-with-sourcemaps":"1.0.2","gulp-json-editor":"2.2.1","load-resources":"0.1.0","gulp-eslint":"0.15.0","gulp-babel":"5.1.0","gulp-mocha":"2.1.2",yaspeller:"2.5.0","gulp-util":"3.0.6","gulp-run":"1.6.8","fs-extra":"0.21.0",sinon:"1.15.4",mocha:"2.2.5",gulp:"3.9.0",chai:"3.0.0",babel:"5.6.14"},scripts:{},main:"lib/postcss",readme:"# PostCSS [![Build Status][ci-img]][ci] [![Gitter][chat-img]][chat]\n\n<img align=\"right\" width=\"95\" height=\"95\"\n title=\"Philosopher’s stone, logo of PostCSS\"\n src=\"http://postcss.github.io/postcss/logo.svg\">\n\nPostCSS is a tool for transforming CSS with JS plugins.\nThese plugins can support variables and mixins, transpile future CSS syntax,\ninline images, and more.\n\nGoogle, Twitter, Alibaba, and Shopify uses PostCSS.\nIts plugin, [Autoprefixer], is one of the most popular CSS processors.\n\nPostCSS can do the same work as preprocessors like Sass, Less, and Stylus.\nBut PostCSS is modular, 3-30 times faster, and much more powerful.\n\nTwitter account: [@postcss](https://twitter.com/postcss).\nWeibo account: [postcss](http://weibo.com/postcss).\nVK.com page: [postcss](https://vk.com/postcss).\n\n[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg\n[ci-img]: https://img.shields.io/travis/postcss/postcss.svg\n[chat]: https://gitter.im/postcss/postcss\n[ci]: https://travis-ci.org/postcss/postcss\n\n[Examples](#what-is-postcss) | [Features](#features) | [Usage](#usage) | [Plugins](#plugins) | [Write Own Plugin](#how-to-develop-postcss-plugin) | [Options](#options)\n--- | --- | --- | --- | --- | ---\n\n<a href=\"https://evilmartians.com/?utm_source=postcss\">\n<img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\" alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n[Autoprefixer]: https://github.com/postcss/autoprefixer\n\n## What is PostCSS\n\nPostCSS itself is very small. It includes only a CSS parser,\na CSS node tree API, a source map generator, and a node tree stringifier.\n\nAll CSS transformations are made by plugins. And these plugins are just\nsmall plain JS functions, which receive a CSS node tree, transform it,\nand return a modified tree.\n\nYou can use the [cssnext] plugin pack and write future CSS code right now:\n\n```css\n:root {\n --mainColor: #ffbbaaff;\n}\n@custom-media --mobile (width <= 640px);\n@custom-selector --heading h1, h2, h3, h4, h5, h6;\n\n.post-article :--heading {\n color: color( var(--mainColor) blackness(+20%) );\n}\n@media (--mobile) {\n .post-article :--heading {\n margin-top: 0;\n }\n}\n```\n\nOr if you like the Sass syntax, you could combine\n[`postcss-nested`] and [`postcss-mixins`]:\n\n```css\n@define-mixin social-icon $network $color {\n &.is-$network {\n background: $color;\n }\n}\n\n.social-icon {\n @mixin social-icon twitter #55acee;\n @mixin social-icon facebook #3b5998;\n\n padding: 10px 5px;\n @media (max-width: 640px) {\n padding: 0;\n }\n}\n```\n\n[cssnext]: http://cssnext.io/\n\n## Features\n\nPreprocessors are template languages, where you mix styles with code\n(like PHP does with HTML).\nIn contrast, in PostCSS you write a custom subset of CSS.\nAll code can only be in JS plugins.\n\nAs a result, PostCSS offers three main benefits:\n\n* **Performance:** PostCSS, written in JS, is [3 times faster] than libsass,\n which is written in C++.\n* **Future CSS:** PostCSS plugins can read and rebuild an entire document,\n meaning that they can provide new language features. For example, [cssnext]\n transpiles the latest W3C drafts to current CSS syntax.\n* **New abilities:** PostCSS plugins can read and change every part of CSS.\n It makes many new classes of tools possible. [Autoprefixer], [`rtlcss`],\n [`doiuse`] or [`postcss-colorblind`] are good examples.\n\n[3 times faster]: https://github.com/postcss/benchmark\n\n## Usage\n\nYou just need to follow these two steps to use PostCSS:\n\n1. Add PostCSS to your build tool.\n2. Select plugins from the list below and add them to your PostCSS process.\n\nThere are plugins for [Grunt], [Gulp], [webpack], [Broccoli],\n[Brunch] and [ENB].\n\n```js\ngulp.task('css', function () {\n var postcss = require('gulp-postcss');\n return gulp.src('src/**/*.css')\n .pipe( postcss([ require('cssnext')(), require('cssnano')() ]) )\n .pipe( gulp.dest('build/') );\n});\n```\n\nFor other environments, you can use the [CLI tool] or the JS API:\n\n```js\nvar postcss = require('postcss');\npostcss([ require('cssnext')(), require('cssnano')() ])\n .process(css, { from: 'src/app.css', to: 'app.css' })\n .then(function (result) {\n fs.writeFileSync('app.css', result.css);\n if ( result.map ) fs.writeFileSync('app.css.map', result.map);\n });\n```\n\nYou can also use PostCSS plugins with the Stylus by using [`poststylus`].\n\nRead the [PostCSS API] for more details about the JS API.\n\n[`poststylus`]: https://github.com/seaneking/poststylus\n[PostCSS API]: https://github.com/postcss/postcss/blob/master/docs/api.md\n[Broccoli]: https://github.com/jeffjewiss/broccoli-postcss\n[CLI tool]: https://github.com/code42day/postcss-cli\n[webpack]: https://github.com/postcss/postcss-loader\n[Brunch]: https://github.com/iamvdo/postcss-brunch\n[Grunt]: https://github.com/nDmitry/grunt-postcss\n[Gulp]: https://github.com/postcss/gulp-postcss\n[ENB]: https://github.com/theprotein/enb-postcss\n\n## Plugins\n\n### Control\n\nThere is two way to make PostCSS magic more explicit.\n\nDefine a plugins contexts and switch between them in different parts of CSS\nby [`postcss-plugin-context`]:\n\n```css\n.css-example.is-test-for-css4-browsers {\n color: gray(255, 50%);\n}\n@context cssnext {\n .css-example.is-fallback-for-all-browsers {\n color: gray(255, 50%);\n }\n}\n```\n\nOr to enable plugins right in CSS by [`postcss-use`]:\n\n```css\n@use autoprefixer(browsers: ['last 2 versions']);\n\n:fullscreen a {\n display: flex\n}\n```\n\n[`postcss-plugin-context`]: https://github.com/postcss/postcss-plugin-context\n[`postcss-use`]: https://github.com/postcss/postcss-use\n\n### Packs\n\n* [`atcss`] contains plugins that transform your CSS according\n to special annotation comments.\n* [`cssnano`] contains plugins that optimize CSS size for use in production.\n* [`cssnext`] contains plugins that allow you to use future CSS features today.\n\n[`cssnano`]: https://github.com/ben-eb/cssnano\n[`cssnext`]: http://cssnext.io/\n[`atcss`]: https://github.com/morishitter/atcss\n\n### Future CSS Syntax\n\n* [`postcss-color-function`] supports functions to transform colors.\n* [`postcss-color-gray`] supports the `gray()` function.\n* [`postcss-color-hex-alpha`] supports `#rrggbbaa` and `#rgba` notation.\n* [`postcss-color-hwb`] transforms `hwb()` to widely compatible `rgb()`.\n* [`postcss-color-rebeccapurple`] supports the `rebeccapurple` color.\n* [`postcss-conic-gradient`] supports the `conic-gradient` background.\n* [`postcss-css-variables`] supports variables for nested rules,\n selectors, and at-rules\n* [`postcss-custom-media`] supports custom aliases for media queries.\n* [`postcss-custom-properties`] supports variables, using syntax from\n the W3C Custom Properties.\n* [`postcss-custom-selectors`] adds custom aliases for selectors.\n* [`postcss-font-variant`] transpiles human-readable `font-variant`\n to more widely supported CSS.\n* [`postcss-host`] makes the Shadow DOM’s `:host` selector work properly\n with pseudo-classes.\n* [`postcss-media-minmax`] adds `<=` and `=>` statements to media queries.\n* [`postcss-pseudo-class-any-link`] adds `:any-link` pseudo-class.\n* [`postcss-selector-not`] transforms CSS4 `:not()` to CSS3 `:not()`.\n* [`mq4-hover-shim`] supports the `@media (hover)` feature.\n\nSee also [`cssnext`] plugins pack to add future CSS syntax by one line of code.\n\n### Fallbacks\n\n* [`postcss-color-rgba-fallback`] transforms `rgba()` to hexadecimal.\n* [`postcss-epub`] adds the `-epub-` prefix to relevant properties.\n* [`postcss-image-set`] adds `background-image` with first image\n for `image-set()`.\n* [`postcss-opacity`] adds opacity filter for IE8.\n* [`postcss-pseudoelements`] Convert `::` selectors into `:` selectors\n for IE 8 compatibility.\n* [`postcss-vmin`] generates `vm` fallback for `vmin` unit in IE9.\n* [`postcss-will-change`] inserts 3D hack before `will-change` property.\n* [`autoprefixer`] adds vendor prefixes for you, using data from Can I Use.\n* [`cssgrace`] provides various helpers and transpiles CSS 3 for IE\n and other old browsers.\n* [`pixrem`] generates pixel fallbacks for `rem` units.\n\n### Language Extensions\n\n* [`postcss-bem`] adds at-rules for BEM and SUIT style classes.\n* [`postcss-conditionals`] adds `@if` statements.\n* [`postcss-define-property`] to define properties shortcut.\n* [`postcss-each`] adds `@each` statement.\n* [`postcss-for`] adds `@for` loops.\n* [`postcss-map`] enables configuration maps.\n* [`postcss-mixins`] enables mixins more powerful than Sass’s,\n defined within stylesheets or in JS.\n* [`postcss-media-variables`] adds support for `var()` and `calc()`\n in `@media` rules\n* [`postcss-modular-scale`] adds a modular scale `ms()` function.\n* [`postcss-nested`] unwraps nested rules.\n* [`postcss-pseudo-class-enter`] transforms `:enter` into `:hover` and `:focus`.\n* [`postcss-quantity-queries`] enables quantity queries.\n* [`postcss-simple-extend`] supports extending of silent classes,\n like Sass’s `@extend`.\n* [`postcss-simple-vars`] supports for Sass-style variables.\n* [`postcss-strip-units`] strips units off of property values.\n* [`postcss-vertical-rhythm`] adds a vertical rhythm unit\n based on `font-size` and `line-height`.\n* [`csstyle`] adds components workflow to your styles.\n\n### Colors\n\n* [`postcss-brand-colors`] inserts company brand colors\n in the `brand-colors` module.\n* [`postcss-color-alpha`] transforms `#hex.a`, `black(alpha)` and `white(alpha)`\n to `rgba()`.\n* [`postcss-color-hcl`] transforms `hcl(H, C, L)` and `HCL(H, C, L, alpha)`\n to `#rgb` and `rgba()`.\n* [`postcss-color-mix`] mixes two colors together.\n* [`postcss-color-palette`] transforms CSS 2 color keywords to a custom palette.\n* [`postcss-color-pantone`] transforms pantone color to RGB.\n* [`postcss-color-scale`] adds a color scale `cs()` function.\n* [`postcss-hexrgba`] adds shorthand hex `rgba(hex, alpha)` method.\n\n### Grids\n\n* [`postcss-grid`] adds a semantic grid system.\n* [`postcss-neat`] is a semantic and fluid grid framework.\n* [`lost`] feature-rich `calc()` grid system by Jeet author.\n\n### Optimizations\n\n* [`postcss-assets`] allows you to simplify URLs, insert image dimensions,\n and inline files.\n* [`postcss-at2x`] handles retina background images via use of `at-2x` keyword.\n* [`postcss-calc`] reduces `calc()` to values\n (when expressions involve the same units).\n* [`postcss-data-packer`] moves embedded Base64 data to a separate file.\n* [`postcss-import`] inlines the stylesheets referred to by `@import` rules.\n* [`postcss-single-charset`] ensures that there is one and only one\n `@charset` rule at the top of file.\n* [`postcss-sprites`] generates CSS sprites from stylesheets.\n* [`postcss-url`] rebases or inlines `url()`s.\n* [`postcss-zindex`] rebases positive `z-index` values.\n* [`css-byebye`] removes the CSS rules that you don’t want.\n* [`css-mqpacker`] joins matching CSS media queries into a single statement.\n* [`webpcss`] adds URLs for WebP images for browsers that support WebP.\n\nSee also plugins in modular minifier [`cssnano`].\n\n### Shortcuts\n\n* [`postcss-alias`] to create shorter aliases for properties.\n* [`postcss-border`] adds shorthand for width and color of all borders\n in `border` property.\n* [`postcss-clearfix`] adds `fix` and `fix-legacy` properties to the `clear`\n declaration.\n* [`postcss-default-unit`] adds default unit to numeric CSS properties.\n* [`postcss-easings`] replaces easing names from easings.net\n with `cubic-bezier()` functions.\n* [`postcss-focus`] adds `:focus` selector to every `:hover`.\n* [`postcss-fontpath`] adds font links for different browsers.\n* [`postcss-generate-preset`] allows quick generation of rules.\n Useful for creating repetitive utilities.\n* [`postcss-position`] adds shorthand declarations for position attributes.\n* [`postcss-property-lookup`] allows referencing property values without\n a variable.\n* [`postcss-short`] adds and extends numerous shorthand properties.\n* [`postcss-size`] adds a `size` shortcut that sets width and height\n with one declaration.\n* [`postcss-verthorz`] adds vertical and horizontal spacing declarations.\n\n### Others\n\n* [`postcss-class-prefix`] adds a prefix/namespace to class selectors.\n* [`postcss-colorblind`] transforms colors using filters to simulate\n colorblindness.\n* [`postcss-fakeid`] transforms `#foo` IDs to attribute selectors `[id=\"foo\"]`.\n* [`postcss-flexboxfixer`] unprefixes `-webkit-` only flexbox in legacy CSS.\n* [`postcss-gradientfixer`] unprefixes `-webkit-` only gradients in legacy CSS.\n* [`postcss-log-warnings`] logs warnings messages from other plugins\n in the console.\n* [`postcss-messages`] displays warning messages from other plugins\n right in your browser.\n* [`postcss-pxtorem`] converts pixel units to `rem`.\n* [`postcss-style-guide`] generates a style guide automatically.\n* [`rtlcss`] mirrors styles for right-to-left locales.\n* [`stylehacks`] removes CSS hacks based on browser support.\n\n### Analysis\n\n* [`postcss-bem-linter`] lints CSS for conformance to SUIT CSS methodology.\n* [`postcss-cssstats`] returns an object with CSS statistics.\n* [`css2modernizr`] creates a Modernizr config file\n that requires only the tests that your CSS uses.\n* [`doiuse`] lints CSS for browser support, using data from Can I Use.\n* [`list-selectors`] lists and categorizes the selectors used in your CSS,\n for code review.\n\n### Fun\n\n* [`postcss-australian-stylesheets`] Australian Style Sheets.\n* [`postcss-canadian-stylesheets`] Canadian Style Sheets.\n* [`postcss-pointer`] Replaces `pointer: cursor` with `cursor: pointer`.\n* [`postcss-spiffing`] lets you use British English in your CSS.\n\n[`postcss-australian-stylesheets`]: https://github.com/dp-lewis/postcss-australian-stylesheets\n[`postcss-pseudo-class-any-link`]: https://github.com/jonathantneal/postcss-pseudo-class-any-link\n[`postcss-canadian-stylesheets`]: https://github.com/chancancode/postcss-canadian-stylesheets\n[`postcss-color-rebeccapurple`]: https://github.com/postcss/postcss-color-rebeccapurple\n[`postcss-color-rgba-fallback`]: https://github.com/postcss/postcss-color-rgba-fallback\n[`postcss-discard-duplicates`]: https://github.com/ben-eb/postcss-discard-duplicates\n[`postcss-minify-font-weight`]: https://github.com/ben-eb/postcss-minify-font-weight\n[`postcss-pseudo-class-enter`]: https://github.com/jonathantneal/postcss-pseudo-class-enter\n[`postcss-custom-properties`]: https://github.com/postcss/postcss-custom-properties\n[`postcss-discard-font-face`]: https://github.com/ben-eb/postcss-discard-font-face\n[`postcss-custom-selectors`]: https://github.com/postcss/postcss-custom-selectors\n[`postcss-discard-comments`]: https://github.com/ben-eb/postcss-discard-comments\n[`postcss-minify-selectors`]: https://github.com/ben-eb/postcss-minify-selectors\n[`postcss-quantity-queries`]: https://github.com/pascalduez/postcss-quantity-queries\n[`postcss-color-hex-alpha`]: https://github.com/postcss/postcss-color-hex-alpha\n[`postcss-define-property`]: https://github.com/daleeidd/postcss-define-property\n[`postcss-generate-preset`]: https://github.com/simonsmith/postcss-generate-preset\n[`postcss-media-variables`]: https://github.com/WolfgangKluge/postcss-media-variables\n[`postcss-property-lookup`]: https://github.com/simonsmith/postcss-property-lookup\n[`postcss-vertical-rhythm`]: https://github.com/markgoodyear/postcss-vertical-rhythm\n[`postcss-color-function`]: https://github.com/postcss/postcss-color-function\n[`postcss-conic-gradient`]: https://github.com/jonathantneal/postcss-conic-gradient\n[`postcss-convert-values`]: https://github.com/ben-eb/postcss-convert-values\n[`postcss-pseudoelements`]: https://github.com/axa-ch/postcss-pseudoelements\n[`postcss-single-charset`]: https://github.com/hail2u/postcss-single-charset\n[`postcss-color-palette`]: https://github.com/zaim/postcss-color-palette\n[`postcss-color-pantone`]: https://github.com/longdog/postcss-color-pantone\n[`postcss-css-variables`]: https://github.com/MadLittleMods/postcss-css-variables\n[`postcss-discard-empty`]: https://github.com/ben-eb/postcss-discard-empty\n[`postcss-gradientfixer`]: https://github.com/hallvors/postcss-gradientfixer\n[`postcss-modular-scale`]: https://github.com/kristoferjoseph/postcss-modular-scale\n[`postcss-normalize-url`]: https://github.com/ben-eb/postcss-normalize-url\n[`postcss-reduce-idents`]: https://github.com/ben-eb/postcss-reduce-idents\n[`postcss-simple-extend`]: https://github.com/davidtheclark/postcss-simple-extend\n[`postcss-brand-colors`]: https://github.com/postcss/postcss-brand-colors\n[`postcss-class-prefix`]: https://github.com/thompsongl/postcss-class-prefix\n[`postcss-conditionals`]: https://github.com/andyjansson/postcss-conditionals\n[`postcss-custom-media`]: https://github.com/postcss/postcss-custom-media\n[`postcss-default-unit`]: https://github.com/antyakushev/postcss-default-unit\n[`postcss-flexboxfixer`]: https://github.com/hallvors/postcss-flexboxfixer\n[`postcss-font-variant`]: https://github.com/postcss/postcss-font-variant\n[`postcss-log-warnings`]: https://github.com/davidtheclark/postcss-log-warnings\n[`postcss-media-minmax`]: https://github.com/postcss/postcss-media-minmax\n[`postcss-merge-idents`]: https://github.com/ben-eb/postcss-merge-idents\n[`postcss-selector-not`]: https://github.com/postcss/postcss-selector-not\n[`postcss-color-alpha`]: https://github.com/avanes/postcss-color-alpha\n[`postcss-color-scale`]: https://github.com/kristoferjoseph/postcss-color-scale\n[`postcss-data-packer`]: https://github.com/Ser-Gen/postcss-data-packer\n[`postcss-font-family`]: https://github.com/ben-eb/postcss-font-family\n[`postcss-merge-rules`]: https://github.com/ben-eb/postcss-merge-rules\n[`postcss-simple-vars`]: https://github.com/postcss/postcss-simple-vars\n[`postcss-strip-units`]: https://github.com/whitneyit/postcss-strip-units\n[`postcss-style-guide`]: https://github.com/morishitter/postcss-style-guide\n[`postcss-will-change`]: https://github.com/postcss/postcss-will-change\n[`postcss-bem-linter`]: https://github.com/necolas/postcss-bem-linter\n[`postcss-color-gray`]: https://github.com/postcss/postcss-color-gray\n[`postcss-colorblind`]: https://github.com/btholt/postcss-colorblind\n[`postcss-color-hcl`]: https://github.com/devgru/postcss-color-hcl\n[`postcss-color-hwb`]: https://github.com/postcss/postcss-color-hwb\n[`postcss-color-mix`]: https://github.com/iamstarkov/postcss-color-mix\n[`postcss-image-set`]: https://github.com/alex499/postcss-image-set\n[`postcss-clearfix`]: https://github.com/seaneking/postcss-clearfix\n[`postcss-colormin`]: https://github.com/ben-eb/colormin\n[`postcss-cssstats`]: https://github.com/cssstats/postcss-cssstats\n[`postcss-messages`]: https://github.com/postcss/postcss-messages\n[`postcss-position`]: https://github.com/seaneking/postcss-position\n[`postcss-spiffing`]: https://github.com/HashanP/postcss-spiffing\n[`postcss-verthorz`]: https://github.com/davidhemphill/postcss-verthorz\n[`pleeease-filters`]: https://github.com/iamvdo/pleeease-filters\n[`postcss-fontpath`]: https://github.com/seaneking/postcss-fontpath\n[`postcss-easings`]: https://github.com/postcss/postcss-easings\n[`postcss-hexrgba`]: https://github.com/seaneking/postcss-hexrgba\n[`postcss-opacity`]: https://github.com/iamvdo/postcss-opacity\n[`postcss-pointer`]: https://github.com/markgoodyear/postcss-pointer\n[`postcss-pxtorem`]: https://github.com/cuth/postcss-pxtorem\n[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites\n[`postcss-assets`]: https://github.com/borodean/postcss-assets\n[`postcss-border`]: https://github.com/andrepolischuk/postcss-border\n[`postcss-fakeid`]: https://github.com/pathsofdesign/postcss-fakeid\n[`postcss-import`]: https://github.com/postcss/postcss-import\n[`postcss-mixins`]: https://github.com/postcss/postcss-mixins\n[`postcss-nested`]: https://github.com/postcss/postcss-nested\n[`postcss-zindex`]: https://github.com/ben-eb/postcss-zindex\n[`list-selectors`]: https://github.com/davidtheclark/list-selectors\n[`mq4-hover-shim`]: https://github.com/twbs/mq4-hover-shim\n[`postcss-focus`]: https://github.com/postcss/postcss-focus\n[`css2modernizr`]: https://github.com/vovanbo/css2modernizr\n[`postcss-short`]: https://github.com/jonathantneal/postcss-short\n[`postcss-alias`]: https://github.com/seaneking/postcss-alias\n[`postcss-at2x`]: https://github.com/simonsmith/postcss-at2x\n[`postcss-calc`]: https://github.com/postcss/postcss-calc\n[`postcss-each`]: https://github.com/outpunk/postcss-each\n[`postcss-epub`]: https://github.com/Rycochet/postcss-epub\n[`postcss-grid`]: https://github.com/andyjansson/postcss-grid\n[`postcss-host`]: https://github.com/vitkarpov/postcss-host\n[`postcss-neat`]: https://github.com/jo-asakura/postcss-neat\n[`postcss-size`]: https://github.com/postcss/postcss-size\n[`postcss-vmin`]: https://github.com/iamvdo/postcss-vmin\n[`autoprefixer`]: https://github.com/postcss/autoprefixer\n[`css-mqpacker`]: https://github.com/hail2u/node-css-mqpacker\n[`postcss-bem`]: https://github.com/ileri/postcss-bem\n[`postcss-for`]: https://github.com/antyakushev/postcss-for\n[`postcss-map`]: https://github.com/pascalduez/postcss-map\n[`postcss-url`]: https://github.com/postcss/postcss-url\n[`css-byebye`]: https://github.com/AoDev/css-byebye\n[`stylehacks`]: https://github.com/ben-eb/stylehacks\n[`cssgrace`]: https://github.com/cssdream/cssgrace\n[`csstyle`]: https://github.com/geddski/csstyle\n[`webpcss`]: https://github.com/lexich/webpcss\n[`doiuse`]: https://github.com/anandthakker/doiuse\n[`pixrem`]: https://github.com/robwierzbowski/node-pixrem\n[`rtlcss`]: https://github.com/MohammadYounes/rtlcss\n[`lost`]: https://github.com/corysimmons/lost\n\n## How to Develop PostCSS Plugin\n\n* [Plugin Guidelines](https://github.com/postcss/postcss/blob/master/docs/guidelines/plugin.md)\n* [Plugin Boilerplate](https://github.com/postcss/postcss-plugin-boilerplate)\n* [PostCSS API](https://github.com/postcss/postcss/blob/master/docs/api.md)\n* [Ask questions](https://gitter.im/postcss/postcss)\n\n## Options\n\n### Source Map\n\nPostCSS has great [source maps] support. It can read and interpret maps\nfrom previous transformation steps, autodetect the format that you expect,\nand output both external and inline maps.\n\nTo ensure that you generate an accurate source map, you must indicate the input\nand output CSS files paths — using the options `from` and `to`, respectively.\n\nTo generate a new source map with the default options, simply set `map: true`.\nThis will generate an inline source map that contains the source content.\nIf you don’t want the map inlined, you can use set `map.inline: false`.\n\n```js\nprocessor\n .process(css, {\n from: 'app.sass.css',\n to: 'app.css',\n map: { inline: false },\n })\n .then(function (result) {\n result.map //=> '{ \"version\":3,\n // \"file\":\"app.css\",\n // \"sources\":[\"app.sass\"],\n // \"mappings\":\"AAAA,KAAI\" }'\n });\n```\n\nIf PostCSS finds source maps from a previous transformation,\nit will automatically update that source map with the same options.\n\nIf you want more control over source map generation, you can define the `map`\noption as an object with the following parameters:\n\n* `inline` boolean: indicates that the source map should be embedded\n in the output CSS as a Base64-encoded comment. By default, it is `true`.\n But if all previous maps are external, not inline, PostCSS will not embed\n the map even if you do not set this option.\n\n If you have an inline source map, the `result.map` property will be empty,\n as the source map will be contained within the text of `result.css`.\n\n* `prev` string, object or boolean: source map content from\n a previous processing step (for example, Sass compilation).\n PostCSS will try to read the previous source map automatically\n (based on comments within the source CSS), but you can use this option\n to identify it manually. If desired, you can omit the previous map\n with `prev: false`.\n\n* `sourcesContent` boolean: indicates that PostCSS should set the origin\n content (for example, Sass source) of the source map. By default, it’s `true`.\n But if all previous maps do not contain sources content, PostCSS will also\n leave it out even if you do not set this option.\n\n* `annotation` boolean or string: indicates that PostCSS should add annotation\n comments to the CSS. By default, PostCSS will always add a comment with a path\n to the source map. But if the input CSS does not have any annotation\n comment, PostCSS will omit it, too, even if you do not set this option.\n\n By default, PostCSS presumes that you want to save the source map as\n `opts.to + '.map'` and will use this path in the annotation comment.\n But you can set another path by providing a string value for `annotation`.\n\n If you have set `inline: true`, annotation cannot be disabled.\n\n[source maps]: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/\n\n### Safe Mode\n\nIf you provide a `safe: true` option to the `process` or `parse` methods,\nPostCSS will try to correct any syntax errors that it finds in the CSS.\n\n```js\npostcss.parse('a {'); // will throw \"Unclosed block\"\npostcss.parse('a {', { safe: true }); // will return CSS root for a {}\n```\n\nThis is useful for legacy code filled with hacks. Another use-case\nis interactive tools with live input — for example,\nthe [Autoprefixer demo](http://jsfiddle.net/simevidas/udyTs/show/light/).\n",
readmeFilename:"package/README.md"}},{}],postcss:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _processor=require("./processor");var _processor2=_interopRequireDefault(_processor);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _atRule=require("./at-rule");var _atRule2=_interopRequireDefault(_atRule);var _vendor=require("./vendor");var _vendor2=_interopRequireDefault(_vendor);var _parse=require("./parse");var _parse2=_interopRequireDefault(_parse);var _list=require("./list");var _list2=_interopRequireDefault(_list);var _rule=require("./rule");var _rule2=_interopRequireDefault(_rule);var _root=require("./root");var _root2=_interopRequireDefault(_root);var postcss=function postcss(){for(var _len=arguments.length,plugins=Array(_len),_key=0;_key<_len;_key++){plugins[_key]=arguments[_key]}if(plugins.length===1&&Array.isArray(plugins[0])){plugins=plugins[0]}return new _processor2["default"](plugins)};postcss.plugin=function(name,initializer){var creator=function creator(){var transformer=initializer.apply(this,arguments);transformer.postcssPlugin=name;transformer.postcssVersion=_processor2["default"].prototype.version;return transformer};creator.postcss=creator();return creator};postcss.vendor=_vendor2["default"];postcss.parse=_parse2["default"];postcss.list=_list2["default"];postcss.comment=function(defaults){return new _comment2["default"](defaults)};postcss.atRule=function(defaults){return new _atRule2["default"](defaults)};postcss.decl=function(defaults){return new _declaration2["default"](defaults)};postcss.rule=function(defaults){return new _rule2["default"](defaults)};postcss.root=function(defaults){return new _root2["default"](defaults)};exports["default"]=postcss;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./list":15,"./parse":18,"./processor":21,"./root":23,"./rule":24,"./vendor":26}]},{},[]);require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){},{}],2:[function(require,module,exports){var base64=require("base64-js");var ieee754=require("ieee754");var isArray=require("is-array");exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;Buffer.poolSize=8192;var kMaxLength=1073741823;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=function(){try{var buf=new ArrayBuffer(0);var arr=new Uint8Array(buf);arr.foo=function(){return 42};return 42===arr.foo()&&typeof arr.subarray==="function"&&new Uint8Array(1).subarray(1,1).byteLength===0}catch(e){return false}}();function Buffer(subject,encoding,noZero){if(!(this instanceof Buffer))return new Buffer(subject,encoding,noZero);var type=typeof subject;var length;if(type==="number")length=subject>0?subject>>>0:0;else if(type==="string"){length=Buffer.byteLength(subject,encoding)}else if(type==="object"&&subject!==null){if(subject.type==="Buffer"&&isArray(subject.data))subject=subject.data;length=+subject.length>0?Math.floor(+subject.length):0}else throw new TypeError("must start with number, buffer, array or string");if(length>kMaxLength)throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength.toString(16)+" bytes");var buf;if(Buffer.TYPED_ARRAY_SUPPORT){buf=Buffer._augment(new Uint8Array(length))}else{buf=this;buf.length=length;buf._isBuffer=true}var i;if(Buffer.TYPED_ARRAY_SUPPORT&&typeof subject.byteLength==="number"){buf._set(subject)}else if(isArrayish(subject)){if(Buffer.isBuffer(subject)){for(i=0;i<length;i++)buf[i]=subject.readUInt8(i)}else{for(i=0;i<length;i++)buf[i]=(subject[i]%256+256)%256}}else if(type==="string"){buf.write(subject,0,encoding)}else if(type==="number"&&!Buffer.TYPED_ARRAY_SUPPORT&&!noZero){for(i=0;i<length;i++){buf[i]=0}}if(length>0&&length<=Buffer.poolSize)buf.parent=rootParent;return buf}function SlowBuffer(subject,encoding,noZero){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding,noZero);var buf=new Buffer(subject,encoding,noZero);delete buf.parent;return buf}Buffer.isBuffer=function(b){return!!(b!=null&&b._isBuffer)};Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len&&a[i]===b[i];i++){}if(i!==len){x=a[i];y=b[i]}if(x<y)return-1;if(y<x)return 1;return 0};Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function(list,totalLength){if(!isArray(list))throw new TypeError("Usage: Buffer.concat(list[, length])");if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}var i;if(totalLength===undefined){totalLength=0;for(i=0;i<list.length;i++){totalLength+=list[i].length}}var buf=new Buffer(totalLength);var pos=0;for(i=0;i<list.length;i++){var item=list[i];item.copy(buf,pos);pos+=item.length}return buf};Buffer.byteLength=function(str,encoding){var ret;str=str+"";switch(encoding||"utf8"){case"ascii":case"binary":case"raw":ret=str.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=str.length*2;break;case"hex":ret=str.length>>>1;break;case"utf8":case"utf-8":ret=utf8ToBytes(str).length;break;case"base64":ret=base64ToBytes(str).length;break;default:ret=str.length}return ret};Buffer.prototype.length=undefined;Buffer.prototype.parent=undefined;Buffer.prototype.toString=function(encoding,start,end){var loweredCase=false;start=start>>>0;end=end===undefined||end===Infinity?this.length:end>>>0;if(!encoding)encoding="utf8";if(start<0)start=0;if(end>this.length)end=this.length;if(end<=start)return"";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}};Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)===0};Buffer.prototype.inspect=function(){var str="";var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString("hex",0,max).match(/.{2}/g).join(" ");if(this.length>max)str+=" ... "}return"<Buffer "+str+">"};Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)};Buffer.prototype.get=function(offset){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(offset)};Buffer.prototype.set=function(v,offset){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(v,offset)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");buf[offset+i]=byte}return i}function utf8Write(buf,string,offset,length){var charsWritten=blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length);return charsWritten}function asciiWrite(buf,string,offset,length){var charsWritten=blitBuffer(asciiToBytes(string),buf,offset,length);return charsWritten}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){var charsWritten=blitBuffer(base64ToBytes(string),buf,offset,length);return charsWritten}function utf16leWrite(buf,string,offset,length){var charsWritten=blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length,2);return charsWritten}Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=Number(offset)||0;if(length<0||offset<0||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");var remaining=this.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=hexWrite(this,string,offset,length);break;case"utf8":case"utf-8":ret=utf8Write(this,string,offset,length);break;case"ascii":ret=asciiWrite(this,string,offset,length);break;case"binary":ret=binaryWrite(this,string,offset,length);break;case"base64":ret=base64Write(this,string,offset,length);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=utf16leWrite(this,string,offset,length);break;default:throw new TypeError("Unknown encoding: "+encoding)}return ret};Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){var res="";var tmp="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){if(buf[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(buf[i]);tmp=""}else{tmp+="%"+buf[i].toString(16)}}return res+decodeUtf8Char(tmp)}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i]&127)}return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i])}return ret}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(buf[i])}return out}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res="";for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256)}return res}Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0}else if(start>len){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(end<start)end=start;var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT){newBuf=Buffer._augment(this.subarray(start,end))}else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,undefined,true);for(var i=0;i<sliceLen;i++){newBuf[i]=this[i+start]}}if(newBuf.length)newBuf.parent=this.parent||this;return newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;return val};Buffer.prototype.readUIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256))val+=this[offset+--byteLength]*mul;return val};Buffer.prototype.readUInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256))val+=this[offset+--i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1;var i=0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value;return offset+1};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=65535+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i<j;i++){buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>(littleEndian?i:1-i)*8}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=4294967295+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i<j;i++){buf[offset+i]=value>>>(littleEndian?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=0;var mul=1;var sub=value<0?1:0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=byteLength-1;var mul=1;var sub=value<0?1:0;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=255+value+1;this[offset]=value;return offset+1};Buffer.prototype.writeInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};Buffer.prototype.writeInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(offset<0)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38);ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308);ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;if(!start)start=0;if(!end&&end!==0)end=this.length;if(target_start>=target.length)target_start=target.length;if(!target_start)target_start=0;if(end>0&&end<start)end=start;if(end===start)return 0;if(target.length===0||source.length===0)return 0;if(target_start<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=source.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-target_start<end-start)end=target.length-target_start+start;var len=end-start;if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i<len;i++){target[i+target_start]=this[i+start]}}else{target._set(this.subarray(start,start+len),target_start)}return len};Buffer.prototype.fill=function(value,start,end){if(!value)value=0;if(!start)start=0;if(!end)end=this.length;if(end<start)throw new RangeError("end < start");if(end===start)return;if(this.length===0)return;if(start<0||start>=this.length)throw new RangeError("start out of bounds");if(end<0||end>this.length)throw new RangeError("end out of bounds");var i;if(typeof value==="number"){for(i=start;i<end;i++){this[i]=value}}else{var bytes=utf8ToBytes(value.toString());var len=bytes.length;for(i=start;i<end;i++){this[i]=bytes[i%len]}}return this};Buffer.prototype.toArrayBuffer=function(){if(typeof Uint8Array!=="undefined"){if(Buffer.TYPED_ARRAY_SUPPORT){return new Buffer(this).buffer}else{var buf=new Uint8Array(this.length);for(var i=0,len=buf.length;i<len;i+=1){buf[i]=this[i]}return buf.buffer}}else{throw new TypeError("Buffer.toArrayBuffer not supported in this browser")}};var BP=Buffer.prototype;Buffer._augment=function(arr){arr.constructor=Buffer;arr._isBuffer=true;arr._get=arr.get;arr._set=arr.set;arr.get=BP.get;arr.set=BP.set;arr.write=BP.write;arr.toString=BP.toString;arr.toLocaleString=BP.toString;arr.toJSON=BP.toJSON;arr.equals=BP.equals;arr.compare=BP.compare;arr.copy=BP.copy;arr.slice=BP.slice;arr.readUIntLE=BP.readUIntLE;arr.readUIntBE=BP.readUIntBE;arr.readUInt8=BP.readUInt8;arr.readUInt16LE=BP.readUInt16LE;arr.readUInt16BE=BP.readUInt16BE;arr.readUInt32LE=BP.readUInt32LE;arr.readUInt32BE=BP.readUInt32BE;arr.readIntLE=BP.readIntLE;arr.readIntBE=BP.readIntBE;arr.readInt8=BP.readInt8;arr.readInt16LE=BP.readInt16LE;arr.readInt16BE=BP.readInt16BE;arr.readInt32LE=BP.readInt32LE;arr.readInt32BE=BP.readInt32BE;arr.readFloatLE=BP.readFloatLE;arr.readFloatBE=BP.readFloatBE;arr.readDoubleLE=BP.readDoubleLE;arr.readDoubleBE=BP.readDoubleBE;arr.writeUInt8=BP.writeUInt8;arr.writeUIntLE=BP.writeUIntLE;arr.writeUIntBE=BP.writeUIntBE;arr.writeUInt16LE=BP.writeUInt16LE;arr.writeUInt16BE=BP.writeUInt16BE;arr.writeUInt32LE=BP.writeUInt32LE;arr.writeUInt32BE=BP.writeUInt32BE;arr.writeIntLE=BP.writeIntLE;arr.writeIntBE=BP.writeIntBE;arr.writeInt8=BP.writeInt8;arr.writeInt16LE=BP.writeInt16LE;arr.writeInt16BE=BP.writeInt16BE;arr.writeInt32LE=BP.writeInt32LE;arr.writeInt32BE=BP.writeInt32BE;arr.writeFloatLE=BP.writeFloatLE;arr.writeFloatBE=BP.writeFloatBE;arr.writeDoubleLE=BP.writeDoubleLE;arr.writeDoubleBE=BP.writeDoubleBE;arr.fill=BP.fill;arr.inspect=BP.inspect;arr.toArrayBuffer=BP.toArrayBuffer;return arr};var INVALID_BASE64_RE=/[^+\/0-9A-z\-]/g;function base64clean(str){str=stringtrim(str).replace(INVALID_BASE64_RE,"");if(str.length<2)return"";while(str.length%4!==0){str=str+"="}return str}function stringtrim(str){if(str.trim)return str.trim();return str.replace(/^\s+|\s+$/g,"")}function isArrayish(subject){return isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(string,units){var codePoint,length=string.length;var leadSurrogate=null;units=units||Infinity;var bytes=[];var i=0;for(;i<length;i++){codePoint=string.charCodeAt(i);if(codePoint>55295&&codePoint<57344){if(leadSurrogate){if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}else{codePoint=leadSurrogate-55296<<10|codePoint-56320|65536;leadSurrogate=null}}else{if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}else{leadSurrogate=codePoint;continue}}}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=null}if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<2097152){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++){byteArray.push(str.charCodeAt(i)&255)}return byteArray}function utf16leToBytes(str,units){var c,hi,lo;var byteArray=[];for(var i=0;i<str.length;i++){if((units-=2)<0)break;c=str.charCodeAt(i);hi=c>>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length,unitSize){if(unitSize)length-=length%unitSize;for(var i=0;i<length;i++){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}},{"base64-js":3,ieee754:4,"is-array":5}],3:[function(require,module,exports){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(exports){"use strict";var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var PLUS="+".charCodeAt(0);var SLASH="/".charCodeAt(0);var NUMBER="0".charCodeAt(0);var LOWER="a".charCodeAt(0);var UPPER="A".charCodeAt(0);var PLUS_URL_SAFE="-".charCodeAt(0);var SLASH_URL_SAFE="_".charCodeAt(0);function decode(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;if(code===SLASH||code===SLASH_URL_SAFE)return 63;if(code<NUMBER)return-1;if(code<NUMBER+10)return code-NUMBER+26+26;if(code<UPPER+26)return code-UPPER;if(code<LOWER+26)return code-LOWER+26}function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0;arr=new Arr(b64.length*3/4-placeHolders);l=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v}for(i=0,j=0;i<l;i+=4,j+=3){tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3));push((tmp&16711680)>>16);push((tmp&65280)>>8);push(tmp&255)}if(placeHolders===2){tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4;push(tmp&255)}else if(placeHolders===1){tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2;push(tmp>>8&255);push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(num&63)}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=encode(temp>>2);output+=encode(temp<<4&63);output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=encode(temp>>10);output+=encode(temp>>4&63);output+=encode(temp<<2&63);output+="=";break}return output}exports.toByteArray=b64ToByteArray;exports.fromByteArray=uint8ToBase64})(typeof exports==="undefined"?this.base64js={}:exports)},{}],4:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],5:[function(require,module,exports){var isArray=Array.isArray;var str=Object.prototype.toString;module.exports=isArray||function(val){return!!val&&"[object Array]"==str.call(val)}},{}],6:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";
path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")};exports.sep="/";exports.delimiter=":";exports.dirname=function(path){var result=splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir};exports.basename=function(path,ext){var f=splitPath(path)[2];if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){return splitPath(path)[3]};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i])}return res}var substr="ab".substr(-1)==="b"?function(str,start,len){return str.substr(start,len)}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len)}}).call(this,require("_process"))},{_process:7}],7:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canMutationObserver=typeof window!=="undefined"&&window.MutationObserver;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}var queue=[];if(canMutationObserver){var hiddenDiv=document.createElement("div");var observer=new MutationObserver(function(){var queueList=queue.slice();queue.length=0;queueList.forEach(function(fn){fn()})});observer.observe(hiddenDiv,{attributes:true});return function nextTick(fn){if(!queue.length){hiddenDiv.setAttribute("yes","no")}queue.push(fn)}}if(canPost){window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],8:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var AtRule=function(_Container){function AtRule(defaults){_classCallCheck(this,AtRule);_Container.call(this,defaults);this.type="atrule"}_inherits(AtRule,_Container);AtRule.prototype.stringify=function stringify(builder,semicolon){var name="@"+this.name;var params=this.params?this.stringifyRaw("params"):"";if(typeof this.afterName!=="undefined"){name+=this.afterName}else if(params){name+=" "}if(this.nodes){this.stringifyBlock(builder,name+params)}else{var before=this.style("before");if(before)builder(before);var end=(this.between||"")+(semicolon?";":"");builder(name+params+end,this)}};AtRule.prototype.append=function append(child){if(!this.nodes)this.nodes=[];return _Container.prototype.append.call(this,child)};AtRule.prototype.prepend=function prepend(child){if(!this.nodes)this.nodes=[];return _Container.prototype.prepend.call(this,child)};AtRule.prototype.insertBefore=function insertBefore(exist,add){if(!this.nodes)this.nodes=[];return _Container.prototype.insertBefore.call(this,exist,add)};AtRule.prototype.insertAfter=function insertAfter(exist,add){if(!this.nodes)this.nodes=[];return _Container.prototype.insertAfter.call(this,exist,add)};return AtRule}(_container2["default"]);exports["default"]=AtRule;module.exports=exports["default"]},{"./container":10}],9:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _node=require("./node");var _node2=_interopRequireDefault(_node);var Comment=function(_Node){function Comment(defaults){_classCallCheck(this,Comment);_Node.call(this,defaults);this.type="comment"}_inherits(Comment,_Node);Comment.prototype.stringify=function stringify(builder){var before=this.style("before");if(before)builder(before);var left=this.style("left","commentLeft");var right=this.style("right","commentRight");builder("/*"+left+this.text+right+"*/",this)};return Comment}(_node2["default"]);exports["default"]=Comment;module.exports=exports["default"]},{"./node":17}],10:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _node=require("./node");var _node2=_interopRequireDefault(_node);var Container=function(_Node){function Container(){_classCallCheck(this,Container);_Node.apply(this,arguments)}_inherits(Container,_Node);Container.prototype.stringifyContent=function stringifyContent(builder){if(!this.nodes)return;var i=undefined,last=this.nodes.length-1;while(last>0){if(this.nodes[last].type!=="comment")break;last-=1}var semicolon=this.style("semicolon");for(i=0;i<this.nodes.length;i++){this.nodes[i].stringify(builder,last!==i||semicolon)}};Container.prototype.stringifyBlock=function stringifyBlock(builder,start){var before=this.style("before");if(before)builder(before);var between=this.style("between","beforeOpen");builder(start+between+"{",this,"start");var after=undefined;if(this.nodes&&this.nodes.length){this.stringifyContent(builder);after=this.style("after")}else{after=this.style("after","emptyBody")}if(after)builder(after);builder("}",this,"end")};Container.prototype.push=function push(child){child.parent=this;this.nodes.push(child);return this};Container.prototype.each=function each(callback){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;var id=this.lastEach;this.indexes[id]=0;if(!this.nodes)return undefined;var index=undefined,result=undefined;while(this.indexes[id]<this.nodes.length){index=this.indexes[id];result=callback(this.nodes[index],index);if(result===false)break;this.indexes[id]+=1}delete this.indexes[id];if(result===false)return false};Container.prototype.eachInside=function eachInside(callback){return this.each(function(child,i){var result=callback(child,i);if(result!==false&&child.eachInside){result=child.eachInside(callback)}if(result===false)return result})};Container.prototype.eachDecl=function eachDecl(prop,callback){if(!callback){callback=prop;return this.eachInside(function(child,i){if(child.type==="decl"){var result=callback(child,i);if(result===false)return result}})}else if(prop instanceof RegExp){return this.eachInside(function(child,i){if(child.type==="decl"&&prop.test(child.prop)){var result=callback(child,i);if(result===false)return result}})}else{return this.eachInside(function(child,i){if(child.type==="decl"&&child.prop===prop){var result=callback(child,i);if(result===false)return result}})}};Container.prototype.eachRule=function eachRule(callback){return this.eachInside(function(child,i){if(child.type==="rule"){var result=callback(child,i);if(result===false)return result}})};Container.prototype.eachAtRule=function eachAtRule(name,callback){if(!callback){callback=name;return this.eachInside(function(child,i){if(child.type==="atrule"){var result=callback(child,i);if(result===false)return result}})}else if(name instanceof RegExp){return this.eachInside(function(child,i){if(child.type==="atrule"&&name.test(child.name)){var result=callback(child,i);if(result===false)return result}})}else{return this.eachInside(function(child,i){if(child.type==="atrule"&&child.name===name){var result=callback(child,i);if(result===false)return result}})}};Container.prototype.eachComment=function eachComment(callback){return this.eachInside(function(child,i){if(child.type==="comment"){var result=callback(child,i);if(result===false)return result}})};Container.prototype.append=function append(child){var nodes=this.normalize(child,this.last);for(var _iterator=nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;this.nodes.push(node)}return this};Container.prototype.prepend=function prepend(child){var nodes=this.normalize(child,this.first,"prepend").reverse();for(var _iterator2=nodes,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++]}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value}var node=_ref2;this.nodes.unshift(node)}for(var id in this.indexes){this.indexes[id]=this.indexes[id]+nodes.length}return this};Container.prototype.insertBefore=function insertBefore(exist,add){exist=this.index(exist);var type=exist===0?"prepend":false;var nodes=this.normalize(add,this.nodes[exist],type).reverse();for(var _iterator3=nodes,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_iterator3[Symbol.iterator]();;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++]}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value}var node=_ref3;this.nodes.splice(exist,0,node)}var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(exist<=index){this.indexes[id]=index+nodes.length}}return this};Container.prototype.insertAfter=function insertAfter(exist,add){exist=this.index(exist);var nodes=this.normalize(add,this.nodes[exist]).reverse();for(var _iterator4=nodes,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_iterator4[Symbol.iterator]();;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++]}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value}var node=_ref4;this.nodes.splice(exist+1,0,node)}var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(exist<index){this.indexes[id]=index+nodes.length}}return this};Container.prototype.remove=function remove(child){child=this.index(child);this.nodes[child].parent=undefined;this.nodes.splice(child,1);var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(index>=child){this.indexes[id]=index-1}}return this};Container.prototype.removeAll=function removeAll(){for(var _iterator5=this.nodes,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_iterator5[Symbol.iterator]();;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++]}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value}var node=_ref5;node.parent=undefined}this.nodes=[];return this};Container.prototype.replaceValues=function replaceValues(regexp,opts,callback){if(!callback){callback=opts;opts={}}this.eachDecl(function(decl){if(opts.props&&opts.props.indexOf(decl.prop)===-1)return;if(opts.fast&&decl.value.indexOf(opts.fast)===-1)return;decl.value=decl.value.replace(regexp,callback)});return this};Container.prototype.every=function every(condition){return this.nodes.every(condition)};Container.prototype.some=function some(condition){return this.nodes.some(condition)};Container.prototype.index=function index(child){if(typeof child==="number"){return child}else{return this.nodes.indexOf(child)}};Container.prototype.normalize=function normalize(nodes,sample){var _this=this;if(typeof nodes==="string"){var parse=require("./parse");nodes=parse(nodes).nodes}else if(!Array.isArray(nodes)){if(nodes.type==="root"){nodes=nodes.nodes}else if(nodes.type){nodes=[nodes]}else if(nodes.prop){if(typeof nodes.value==="undefined"){throw new Error("Value field is missed in node creation")}nodes=[new _declaration2["default"](nodes)]}else if(nodes.selector){var Rule=require("./rule");nodes=[new Rule(nodes)]}else if(nodes.name){var AtRule=require("./at-rule");nodes=[new AtRule(nodes)]}else if(nodes.text){nodes=[new _comment2["default"](nodes)]}else{throw new Error("Unknown node type in node creation")}}var processed=nodes.map(function(child){if(child.parent)child=child.clone();if(typeof child.before==="undefined"){if(sample&&typeof sample.before!=="undefined"){child.before=sample.before.replace(/[^\s]/g,"")}}child.parent=_this;return child});return processed};_createClass(Container,[{key:"first",get:function get(){if(!this.nodes)return undefined;return this.nodes[0]}},{key:"last",get:function get(){if(!this.nodes)return undefined;return this.nodes[this.nodes.length-1]}}]);return Container}(_node2["default"]);exports["default"]=Container;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./node":17,"./parse":18,"./rule":25}],11:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var CssSyntaxError=function(_SyntaxError){function CssSyntaxError(message,line,column,source,file,plugin){_classCallCheck(this,CssSyntaxError);_SyntaxError.call(this,message);this.reason=message;if(file)this.file=file;if(source)this.source=source;if(plugin)this.plugin=plugin;if(typeof line!=="undefined"&&typeof column!=="undefined"){this.line=line;this.column=column}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}_inherits(CssSyntaxError,_SyntaxError);CssSyntaxError.prototype.setMessage=function setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"<css input>";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason};CssSyntaxError.prototype.showSourceCode=function showSourceCode(color){if(!this.source)return"";var num=this.line-1;var lines=this.source.split("\n");var prev=num>0?lines[num-1]+"\n":"";var broken=lines[num];var next=num<lines.length-1?"\n"+lines[num+1]:"";var mark="\n";for(var i=0;i<this.column-1;i++){mark+=" "}if(typeof color==="undefined"&&typeof process!=="undefined"){if(process.stdout&&process.env){color=process.stdout.isTTY&&!process.env.NODE_DISABLE_COLORS}}if(color){mark+="^"}else{mark+="^"}return"\n"+prev+broken+mark+next};CssSyntaxError.prototype.highlight=function highlight(color){_warnOnce2["default"]("CssSyntaxError#highlight is deprecated and will be "+"removed in 5.0. Use error.showSourceCode instead.");return this.showSourceCode(color).replace(/^\n/,"")};CssSyntaxError.prototype.setMozillaProps=function setMozillaProps(){var sample=Error.call(this,this.message);if(sample.columnNumber)this.columnNumber=this.column;if(sample.description)this.description=this.message;if(sample.lineNumber)this.lineNumber=this.line;if(sample.fileName)this.fileName=this.file};CssSyntaxError.prototype.toString=function toString(){return this.name+": "+this.message+this.showSourceCode()};return CssSyntaxError}(SyntaxError);exports["default"]=CssSyntaxError;CssSyntaxError.prototype.name="CssSyntaxError";module.exports=exports["default"]}).call(this,require("_process"))},{"./warn-once":28,_process:7}],12:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _node=require("./node");var _node2=_interopRequireDefault(_node);var Declaration=function(_Node){function Declaration(defaults){_classCallCheck(this,Declaration);_Node.call(this,defaults);this.type="decl"}_inherits(Declaration,_Node);Declaration.prototype.stringify=function stringify(builder,semicolon){var before=this.style("before");if(before)builder(before);var between=this.style("between","colon");var string=this.prop+between+this.stringifyRaw("value");if(this.important){string+=this._important||" !important"}if(semicolon)string+=";";builder(string,this)};return Declaration}(_node2["default"]);exports["default"]=Declaration;module.exports=exports["default"]},{"./node":17}],13:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _cssSyntaxError=require("./css-syntax-error");var _cssSyntaxError2=_interopRequireDefault(_cssSyntaxError);var _previousMap=require("./previous-map");var _previousMap2=_interopRequireDefault(_previousMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var sequence=0;var Input=function(){function Input(css){var opts=arguments[1]===undefined?{}:arguments[1];_classCallCheck(this,Input);this.css=css.toString();if(this.css[0]===""||this.css[0]==="￾"){this.css=this.css.slice(1)}this.safe=!!opts.safe;if(opts.from)this.file=_path2["default"].resolve(opts.from);var map=new _previousMap2["default"](this.css,opts,this.id);if(map.text){this.map=map;var file=map.consumer().file;if(!this.file&&file)this.file=this.mapResolve(file)}if(this.file){this.from=this.file}else{sequence+=1;this.id="<input css "+sequence+">";this.from=this.id}if(this.map)this.map.file=this.from}Input.prototype.error=function error(message,line,column){var opts=arguments[3]===undefined?{}:arguments[3];var error=new _cssSyntaxError2["default"](message);var origin=this.origin(line,column);if(origin){error=new _cssSyntaxError2["default"](message,origin.line,origin.column,origin.source,origin.file,opts.plugin)}else{error=new _cssSyntaxError2["default"](message,line,column,this.css,this.file,opts.plugin)}error.generated={line:line,column:column,source:this.css};if(this.file)error.generated.file=this.file;return error};Input.prototype.origin=function origin(line,column){if(!this.map)return false;var consumer=this.map.consumer();var from=consumer.originalPositionFor({line:line,column:column});if(!from.source)return false;var result={file:this.mapResolve(from.source),line:from.line,column:from.column};var source=consumer.sourceContentFor(result.file);if(source)result.source=source;return result};Input.prototype.mapResolve=function mapResolve(file){return _path2["default"].resolve(this.map.consumer().sourceRoot||".",file)};return Input}();exports["default"]=Input;module.exports=exports["default"]},{"./css-syntax-error":11,"./previous-map":21,path:6}],14:[function(require,module,exports){(function(global){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _mapGenerator=require("./map-generator");var _mapGenerator2=_interopRequireDefault(_mapGenerator);var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var _result=require("./result");var _result2=_interopRequireDefault(_result);var _parse=require("./parse");var _parse2=_interopRequireDefault(_parse);var _root=require("./root");var _root2=_interopRequireDefault(_root);var Promise=global.Promise||require("es6-promise").Promise;function isPromise(obj){return typeof obj==="object"&&typeof obj.then==="function"}var LazyResult=function(){function LazyResult(processor,css,opts){_classCallCheck(this,LazyResult);this.stringified=false;this.processed=false;var root=undefined;if(css instanceof _root2["default"]){root=css}else if(css instanceof LazyResult||css instanceof _result2["default"]){root=css.root;if(css.map&&typeof opts.map==="undefined"){opts.map={prev:css.map}}}else{try{root=_parse2["default"](css,opts)}catch(error){this.error=error}}this.result=new _result2["default"](processor,root,opts)}LazyResult.prototype.warnings=function warnings(){return this.sync().warnings()};LazyResult.prototype.toString=function toString(){return this.css};LazyResult.prototype.then=function then(onFulfilled,onRejected){return this.async().then(onFulfilled,onRejected)};LazyResult.prototype["catch"]=function _catch(onRejected){return this.async()["catch"](onRejected)};LazyResult.prototype.handleError=function handleError(error,plugin){try{this.error=error;if(error.name==="CssSyntaxError"&&!error.plugin){error.plugin=plugin.postcssPlugin;error.setMessage()}else if(plugin.postcssVersion){var pluginName=plugin.postcssPlugin;var pluginVer=plugin.postcssVersion;var runtimeVer=this.result.processor.version;var a=pluginVer.split(".");var b=runtimeVer.split(".");if(a[0]!==b[0]||parseInt(a[1])>parseInt(b[1])){_warnOnce2["default"]("Your current PostCSS version is "+runtimeVer+", "+("but "+pluginName+" uses "+pluginVer+". Perhaps ")+"this is the source of the error below.")}}}catch(err){}};LazyResult.prototype.asyncTick=function asyncTick(resolve,reject){var _this=this;if(this.plugin>=this.processor.plugins.length){this.processed=true;return resolve()}try{(function(){var plugin=_this.processor.plugins[_this.plugin];var promise=_this.run(plugin);_this.plugin+=1;if(isPromise(promise)){promise.then(function(){_this.asyncTick(resolve,reject)})["catch"](function(error){_this.handleError(error,plugin);_this.processed=true;reject(error)})}else{_this.asyncTick(resolve,reject)}})()}catch(error){this.processed=true;reject(error)}};LazyResult.prototype.async=function async(){var _this2=this;if(this.processed){return new Promise(function(resolve,reject){if(_this2.error){reject(_this2.error)}else{resolve(_this2.stringify())}})}if(this.processing){return this.processing}this.processing=new Promise(function(resolve,reject){if(_this2.error)return reject(_this2.error);_this2.plugin=0;_this2.asyncTick(resolve,reject)}).then(function(){_this2.processed=true;return _this2.stringify()});return this.processing};LazyResult.prototype.sync=function sync(){if(this.processed)return this.result;this.processed=true;if(this.processing){throw new Error("Use process(css).then(cb) to work with async plugins")}if(this.error)throw this.error;for(var _iterator=this.result.processor.plugins,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var plugin=_ref;var promise=this.run(plugin);if(isPromise(promise)){throw new Error("Use process(css).then(cb) to work with async plugins")}}return this.result};LazyResult.prototype.run=function run(plugin){this.result.lastPlugin=plugin;var returned=undefined;try{returned=plugin(this.result.root,this.result)}catch(error){this.handleError(error,plugin);throw error}if(returned instanceof _root2["default"]){this.result.root=returned}else{return returned}};LazyResult.prototype.stringify=function stringify(){if(this.stringified)return this.result;this.stringified=true;this.sync();var map=new _mapGenerator2["default"](this.result.root,this.result.opts);var data=map.generate();this.result.css=data[0];this.result.map=data[1];return this.result};_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]);return LazyResult}();exports["default"]=LazyResult;module.exports=exports["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./map-generator":16,"./parse":18,"./result":23,"./root":24,"./warn-once":28,"es6-promise":30}],15:[function(require,module,exports){"use strict";exports.__esModule=true;var list={split:function split(string,separators,last){var array=[];var current="";var split=false;var func=0;var quote=false;var escape=false;for(var i=0;i<string.length;i++){var letter=string[i];if(quote){if(escape){escape=false}else if(letter==="\\"){escape=true}else if(letter===quote){quote=false}}else if(letter==='"'||letter==="'"){quote=letter}else if(letter==="("){func+=1}else if(letter===")"){if(func>0)func-=1}else if(func===0){if(separators.indexOf(letter)!==-1)split=true}if(split){if(current!=="")array.push(current.trim());current="";split=false}else{current+=letter}}if(last||current!=="")array.push(current.trim());return array},space:function space(string){var spaces=[" ","\n"," "];return list.split(string,spaces)},comma:function comma(string){var comma=",";return list.split(string,[comma],true)}};exports["default"]=list;module.exports=exports["default"]},{}],16:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _jsBase64=require("js-base64");var _sourceMap=require("source-map");var _sourceMap2=_interopRequireDefault(_sourceMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var _default=function(){var _class=function _default(root,opts){_classCallCheck(this,_class);this.root=root;this.opts=opts;this.mapOpts=opts.map||{}};_class.prototype.isMap=function isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}else{return this.previous().length>0}};_class.prototype.previous=function previous(){var _this=this;if(!this.previousMaps){this.previousMaps=[];this.root.eachInside(function(node){if(node.source&&node.source.input.map){var map=node.source.input.map;if(_this.previousMaps.indexOf(map)===-1){_this.previousMaps.push(map)}}})}return this.previousMaps};_class.prototype.isInline=function isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}var annotation=this.mapOpts.annotation;if(typeof annotation!=="undefined"&&annotation!==true){return false}if(this.previous().length){return this.previous().some(function(i){return i.inline})}else{return true}};_class.prototype.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(function(i){return i.withContent()})}else{return true}};_class.prototype.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var node=undefined;for(var i=this.root.nodes.length-1;i>=0;i--){node=this.root.nodes[i];if(node.type!=="comment")continue;if(node.text.indexOf("# sourceMappingURL=")===0){this.root.remove(i)}}};_class.prototype.setSourcesContent=function setSourcesContent(){var _this2=this;var already={};this.root.eachInside(function(node){if(node.source){var from=node.source.input.from;if(from&&!already[from]){already[from]=true;var relative=_this2.relative(from);_this2.map.setSourceContent(relative,node.source.input.css);
}}})};_class.prototype.applyPrevMaps=function applyPrevMaps(){for(var _iterator=this.previous(),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var prev=_ref;var from=this.relative(prev.file);var root=prev.root||_path2["default"].dirname(prev.file);var map=undefined;if(this.mapOpts.sourcesContent===false){map=new _sourceMap2["default"].SourceMapConsumer(prev.text);if(map.sourcesContent){map.sourcesContent=map.sourcesContent.map(function(){return null})}}else{map=prev.consumer()}this.map.applySourceMap(map,from,this.relative(root))}};_class.prototype.isAnnotation=function isAnnotation(){if(this.isInline()){return true}else if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}else if(this.previous().length){return this.previous().some(function(i){return i.annotation})}else{return true}};_class.prototype.addAnnotation=function addAnnotation(){var content=undefined;if(this.isInline()){content="data:application/json;base64,"+_jsBase64.Base64.encode(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){content=this.mapOpts.annotation}else{content=this.outputFile()+".map"}this.css+="\n/*# sourceMappingURL="+content+" */"};_class.prototype.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to)}else if(this.opts.from){return this.relative(this.opts.from)}else{return"to.css"}};_class.prototype.generateMap=function generateMap(){this.stringify();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}else{return[this.css,this.map]}};_class.prototype.relative=function relative(file){var from=this.opts.to?_path2["default"].dirname(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){from=_path2["default"].dirname(_path2["default"].resolve(from,this.mapOpts.annotation))}file=_path2["default"].relative(from,file);if(_path2["default"].sep==="\\"){return file.replace(/\\/g,"/")}else{return file}};_class.prototype.sourcePath=function sourcePath(node){return this.relative(node.source.input.from)};_class.prototype.stringify=function stringify(){var _this3=this;this.css="";this.map=new _sourceMap2["default"].SourceMapGenerator({file:this.outputFile()});var line=1;var column=1;var lines=undefined,last=undefined;var builder=function builder(str,node,type){_this3.css+=str;if(node&&node.source&&node.source.start&&type!=="end"){_this3.map.addMapping({source:_this3.sourcePath(node),original:{line:node.source.start.line,column:node.source.start.column-1},generated:{line:line,column:column-1}})}lines=str.match(/\n/g);if(lines){line+=lines.length;last=str.lastIndexOf("\n");column=str.length-last}else{column=column+str.length}if(node&&node.source&&node.source.end&&type!=="start"){_this3.map.addMapping({source:_this3.sourcePath(node),original:{line:node.source.end.line,column:node.source.end.column},generated:{line:line,column:column-1}})}};this.root.stringify(builder)};_class.prototype.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}else{return[this.root.toString()]}};return _class}();exports["default"]=_default;module.exports=exports["default"]},{"js-base64":31,path:6,"source-map":32}],17:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _cssSyntaxError=require("./css-syntax-error");var _cssSyntaxError2=_interopRequireDefault(_cssSyntaxError);var defaultStyle={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var cloneNode=function cloneNode(obj,parent){var cloned=new obj.constructor;for(var i in obj){if(!obj.hasOwnProperty(i))continue;var value=obj[i];var type=typeof value;if(i==="parent"&&type==="object"){if(parent)cloned[i]=parent}else if(i==="source"){cloned[i]=value}else if(value instanceof Array){cloned[i]=value.map(function(j){return cloneNode(j,cloned)})}else if(i!=="before"&&i!=="after"&&i!=="between"&&i!=="semicolon"){if(type==="object")value=cloneNode(value);cloned[i]=value}}return cloned};var _default=function(){var _class=function _default(){var defaults=arguments[0]===undefined?{}:arguments[0];_classCallCheck(this,_class);for(var _name in defaults){this[_name]=defaults[_name]}};_class.prototype.error=function error(message){var opts=arguments[1]===undefined?{}:arguments[1];if(this.source){var pos=this.source.start;return this.source.input.error(message,pos.line,pos.column,opts)}else{return new _cssSyntaxError2["default"](message)}};_class.prototype.removeSelf=function removeSelf(){if(this.parent){this.parent.remove(this)}this.parent=undefined;return this};_class.prototype.replace=function replace(nodes){this.parent.insertBefore(this,nodes);this.parent.remove(this);return this};_class.prototype.toString=function toString(){var result="";var builder=function builder(str){return result+=str};this.stringify(builder);return result};_class.prototype.clone=function clone(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=cloneNode(this);for(var _name2 in overrides){cloned[_name2]=overrides[_name2]}return cloned};_class.prototype.cloneBefore=function cloneBefore(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=this.clone(overrides);this.parent.insertBefore(this,cloned);return cloned};_class.prototype.cloneAfter=function cloneAfter(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=this.clone(overrides);this.parent.insertAfter(this,cloned);return cloned};_class.prototype.replaceWith=function replaceWith(node){this.parent.insertBefore(this,node);this.removeSelf();return this};_class.prototype.moveTo=function moveTo(container){this.cleanStyles(this.root()===container.root());this.removeSelf();container.append(this);return this};_class.prototype.moveBefore=function moveBefore(node){this.cleanStyles(this.root()===node.root());this.removeSelf();node.parent.insertBefore(node,this);return this};_class.prototype.moveAfter=function moveAfter(node){this.cleanStyles(this.root()===node.root());this.removeSelf();node.parent.insertAfter(node,this);return this};_class.prototype.next=function next(){var index=this.parent.index(this);return this.parent.nodes[index+1]};_class.prototype.prev=function prev(){var index=this.parent.index(this);return this.parent.nodes[index-1]};_class.prototype.toJSON=function toJSON(){var fixed={};for(var _name3 in this){if(!this.hasOwnProperty(_name3))continue;if(_name3==="parent")continue;var value=this[_name3];if(value instanceof Array){fixed[_name3]=value.map(function(i){if(typeof i==="object"&&i.toJSON){return i.toJSON()}else{return i}})}else if(typeof value==="object"&&value.toJSON){fixed[_name3]=value.toJSON()}else{fixed[_name3]=value}}return fixed};_class.prototype.style=function style(own,detect){var value=undefined;if(!detect)detect=own;if(own){value=this[own];if(typeof value!=="undefined")return value}var parent=this.parent;if(detect==="before"){if(!parent||parent.type==="root"&&parent.first===this){return""}}if(!parent)return defaultStyle[detect];var root=this.root();if(!root.styleCache)root.styleCache={};if(typeof root.styleCache[detect]!=="undefined"){return root.styleCache[detect]}if(detect==="semicolon"){root.eachInside(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"){value=i.semicolon;if(typeof value!=="undefined")return false}})}else if(detect==="emptyBody"){root.eachInside(function(i){if(i.nodes&&i.nodes.length===0){value=i.after;if(typeof value!=="undefined")return false}})}else if(detect==="indent"){root.eachInside(function(i){var p=i.parent;if(p&&p!==root&&p.parent&&p.parent===root){if(typeof i.before!=="undefined"){var parts=i.before.split("\n");value=parts[parts.length-1];value=value.replace(/[^\s]/g,"");return false}}})}else if(detect==="beforeComment"){root.eachComment(function(i){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}});if(typeof value==="undefined"){value=this.style(null,"beforeDecl")}}else if(detect==="beforeDecl"){root.eachDecl(function(i){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}});if(typeof value==="undefined"){value=this.style(null,"beforeRule")}}else if(detect==="beforeRule"){root.eachInside(function(i){if(i.nodes&&(i.parent!==root||root.first!==i)){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}}})}else if(detect==="beforeClose"){root.eachInside(function(i){if(i.nodes&&i.nodes.length>0){if(typeof i.after!=="undefined"){value=i.after;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}}})}else if(detect==="before"||detect==="after"){if(this.type==="decl"){value=this.style(null,"beforeDecl")}else if(this.type==="comment"){value=this.style(null,"beforeComment")}else if(detect==="before"){value=this.style(null,"beforeRule")}else{value=this.style(null,"beforeClose")}var node=this.parent;var depth=0;while(node&&node.type!=="root"){depth+=1;node=node.parent}if(value.indexOf("\n")!==-1){var indent=this.style(null,"indent");if(indent.length){for(var step=0;step<depth;step++){value+=indent}}}return value}else if(detect==="colon"){root.eachDecl(function(i){if(typeof i.between!=="undefined"){value=i.between.replace(/[^\s:]/g,"");return false}})}else if(detect==="beforeOpen"){root.eachInside(function(i){if(i.type!=="decl"){value=i.between;if(typeof value!=="undefined")return false}})}else{root.eachInside(function(i){value=i[own];if(typeof value!=="undefined")return false})}if(typeof value==="undefined")value=defaultStyle[detect];root.styleCache[detect]=value;return value};_class.prototype.root=function root(){var result=this;while(result.parent)result=result.parent;return result};_class.prototype.cleanStyles=function cleanStyles(keepBetween){delete this.before;delete this.after;if(!keepBetween)delete this.between;if(this.nodes){for(var _iterator=this.nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;node.cleanStyles(keepBetween)}}};_class.prototype.stringifyRaw=function stringifyRaw(prop){var value=this[prop];var raw=this["_"+prop];if(raw&&raw.value===value){return raw.raw}else{return value}};return _class}();exports["default"]=_default;module.exports=exports["default"]},{"./css-syntax-error":11}],18:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=parse;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _parser=require("./parser");var _parser2=_interopRequireDefault(_parser);var _input=require("./input");var _input2=_interopRequireDefault(_input);function parse(css,opts){var input=new _input2["default"](css,opts);var parser=new _parser2["default"](input);parser.tokenize();parser.loop();return parser.root}module.exports=exports["default"]},{"./input":13,"./parser":19}],19:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _tokenize=require("./tokenize");var _tokenize2=_interopRequireDefault(_tokenize);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _atRule=require("./at-rule");var _atRule2=_interopRequireDefault(_atRule);var _root=require("./root");var _root2=_interopRequireDefault(_root);var _rule=require("./rule");var _rule2=_interopRequireDefault(_rule);var Parser=function(){function Parser(input){_classCallCheck(this,Parser);this.input=input;this.pos=0;this.root=new _root2["default"];this.current=this.root;this.spaces="";this.semicolon=false;this.root.source={input:input};if(input.map)this.root.prevMap=input.map}Parser.prototype.tokenize=function tokenize(){this.tokens=_tokenize2["default"](this.input)};Parser.prototype.loop=function loop(){var token=undefined;while(this.pos<this.tokens.length){token=this.tokens[this.pos];switch(token[0]){case"word":case":":this.word(token);break;case"}":this.end(token);break;case"comment":this.comment(token);break;case"at-word":this.atrule(token);break;case"{":this.emptyRule(token);break;default:this.spaces+=token[1];break}this.pos+=1}this.endFile()};Parser.prototype.comment=function comment(token){var node=new _comment2["default"];this.init(node,token[2],token[3]);node.source.end={line:token[4],column:token[5]};var text=token[1].slice(2,-2);if(text.match(/^\s*$/)){node.left=text;node.text="";node.right=""}else{var match=text.match(/^(\s*)([^]*[^\s])(\s*)$/);node.left=match[1];node.text=match[2];node.right=match[3]}};Parser.prototype.emptyRule=function emptyRule(token){var node=new _rule2["default"];this.init(node,token[2],token[3]);node.between="";node.selector="";this.current=node};Parser.prototype.word=function word(){var token=undefined;var end=false;var type=null;var colon=false;var bracket=null;var brackets=0;var start=this.pos;this.pos+=1;while(this.pos<this.tokens.length){token=this.tokens[this.pos];type=token[0];if(type==="("){if(!bracket)bracket=token;brackets+=1}else if(brackets===0){if(type===";"){if(colon){this.decl(this.tokens.slice(start,this.pos+1));return}else{break}}else if(type==="{"){this.rule(this.tokens.slice(start,this.pos+1));return}else if(type==="}"){this.pos-=1;end=true;break}else{if(type===":")colon=true}}else if(type===")"){brackets-=1;if(brackets===0)bracket=null}this.pos+=1}if(this.pos===this.tokens.length){this.pos-=1;end=true}if(brackets>0&&!this.input.safe){throw this.input.error("Unclosed bracket",bracket[2],bracket[3])}if(end&&colon){while(this.pos>start){token=this.tokens[this.pos][0];if(token!=="space"&&token!=="comment")break;this.pos-=1}this.decl(this.tokens.slice(start,this.pos+1));return}if(this.input.safe){var buffer=this.tokens.slice(start,this.pos+1);this.spaces+=buffer.map(function(i){return i[1]}).join("")}else{token=this.tokens[start];throw this.input.error("Unknown word",token[2],token[3])}};Parser.prototype.rule=function rule(tokens){tokens.pop();var node=new _rule2["default"];this.init(node,tokens[0][2],tokens[0][3]);node.between=this.spacesFromEnd(tokens);this.raw(node,"selector",tokens);this.current=node};Parser.prototype.decl=function decl(tokens){var node=new _declaration2["default"];this.init(node);var last=tokens[tokens.length-1];if(last[0]===";"){this.semicolon=true;tokens.pop()}if(last[4]){node.source.end={line:last[4],column:last[5]}}else{node.source.end={line:last[2],column:last[3]}}while(tokens[0][0]!=="word"){node.before+=tokens.shift()[1]}node.source.start={line:tokens[0][2],column:tokens[0][3]};node.prop=tokens.shift()[1];node.between="";var token=undefined;while(tokens.length){token=tokens.shift();if(token[0]===":"){node.between+=token[1];break}else if(token[0]!=="space"&&token[0]!=="comment"){this.unknownWord(node,token,tokens)}else{node.between+=token[1]}}if(node.prop[0]==="_"||node.prop[0]==="*"){node.before+=node.prop[0];node.prop=node.prop.slice(1)}node.between+=this.spacesFromStart(tokens);if(this.input.safe)this.checkMissedSemicolon(tokens);for(var i=tokens.length-1;i>0;i--){token=tokens[i];if(token[1]==="!important"){node.important=true;var string=this.stringFrom(tokens,i);string=this.spacesFromEnd(tokens)+string;if(string!==" !important")node._important=string;break}else if(token[1]==="important"){var cache=tokens.slice(0);var str="";for(var j=i;j>0;j--){var type=cache[j][0];if(str.trim().indexOf("!")===0&&type!=="space"){break}str=cache.pop()[1]+str}if(str.trim().indexOf("!")===0){node.important=true;node._important=str;tokens=cache}}if(token[0]!=="space"&&token[0]!=="comment"){break}}this.raw(node,"value",tokens);if(node.value.indexOf(":")!==-1&&!this.input.safe){this.checkMissedSemicolon(tokens)}};Parser.prototype.atrule=function atrule(token){var node=new _atRule2["default"];node.name=token[1].slice(1);if(node.name===""){if(this.input.safe){node.name=""}else{throw this.input.error("At-rule without name",token[2],token[3])}}this.init(node,token[2],token[3]);var last=false;var open=false;var params=[];this.pos+=1;while(this.pos<this.tokens.length){token=this.tokens[this.pos];if(token[0]===";"){node.source.end={line:token[2],column:token[3]};this.semicolon=true;break}else if(token[0]==="{"){open=true;break}else{params.push(token)}this.pos+=1}if(this.pos===this.tokens.length){last=true}node.between=this.spacesFromEnd(params);if(params.length){node.afterName=this.spacesFromStart(params);this.raw(node,"params",params);if(last){token=params[params.length-1];node.source.end={line:token[4],column:token[5]};this.spaces=node.between;node.between=""}}else{node.afterName="";node.params=""}if(open){node.nodes=[];this.current=node}};Parser.prototype.end=function end(token){if(this.current.nodes&&this.current.nodes.length){this.current.semicolon=this.semicolon}this.semicolon=false;this.current.after=(this.current.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end={line:token[2],column:token[3]};this.current=this.current.parent}else if(!this.input.safe){throw this.input.error("Unexpected }",token[2],token[3])}else{this.current.after+="}"}};Parser.prototype.endFile=function endFile(){if(this.current.parent&&!this.input.safe){var pos=this.current.source.start;throw this.input.error("Unclosed block",pos.line,pos.column)}if(this.current.nodes&&this.current.nodes.length){this.current.semicolon=this.semicolon}this.current.after=(this.current.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.after=""}};Parser.prototype.unknownWord=function unknownWord(node,token){if(this.input.safe){node.source.start={line:token[2],column:token[3]};node.before+=node.prop+node.between;node.prop=token[1];node.between=""}else{throw this.input.error("Unknown word",token[2],token[3])}};Parser.prototype.checkMissedSemicolon=function checkMissedSemicolon(tokens){var prev=null;var colon=false;var brackets=0;var type=undefined,token=undefined;for(var i=0;i<tokens.length;i++){token=tokens[i];type=token[0];if(type==="("){brackets+=1}else if(type===")"){brackets-=0}else if(brackets===0&&type===":"){if(!prev&&this.input.safe){continue}else if(!prev){throw this.input.error("Double colon",token[2],token[3])}else if(prev[0]==="word"&&prev[1]==="progid"){continue}else{colon=i;break}}prev=token}if(colon===false)return;if(this.input.safe){var split=undefined;for(split=colon-1;split>=0;split--){if(tokens[split][0]==="word")break}for(split-=1;split>=0;split--){if(tokens[split][0]!=="space"){split+=1;break}}var other=tokens.splice(split,tokens.length-split);this.decl(other)}else{var founded=0;for(var j=colon-1;j>=0;j--){token=tokens[j];if(token[0]!=="space"){founded+=1;if(founded===2)break}}throw this.input.error("Missed semicolon",token[2],token[3])}};Parser.prototype.init=function init(node,line,column){this.current.push(node);node.source={start:{line:line,column:column},input:this.input};node.before=this.spaces;this.spaces="";if(node.type!=="comment")this.semicolon=false};Parser.prototype.raw=function raw(node,prop,tokens){var token=undefined;var value="";var clean=true;for(var _iterator=tokens,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){if(_isArray){if(_i>=_iterator.length)break;token=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;token=_i.value}if(token[0]==="comment"){clean=false}else{value+=token[1]}}if(!clean){var origin="";for(var _iterator2=tokens,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){if(_isArray2){if(_i2>=_iterator2.length)break;token=_iterator2[_i2++]}else{_i2=_iterator2.next();if(_i2.done)break;token=_i2.value}origin+=token[1]}node["_"+prop]={value:value,raw:origin}}node[prop]=value};Parser.prototype.spacesFromEnd=function spacesFromEnd(tokens){var next=undefined;var spaces="";while(tokens.length){next=tokens[tokens.length-1][0];if(next!=="space"&&next!=="comment")break;spaces+=tokens.pop()[1]}return spaces};Parser.prototype.spacesFromStart=function spacesFromStart(tokens){var next=undefined;var spaces="";while(tokens.length){next=tokens[0][0];if(next!=="space"&&next!=="comment")break;spaces+=tokens.shift()[1]}return spaces};Parser.prototype.stringFrom=function stringFrom(tokens,from){var result="";for(var i=from;i<tokens.length;i++){result+=tokens[i][1]}tokens.splice(from,tokens.length-from);return result};return Parser}();exports["default"]=Parser;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./root":24,"./rule":25,"./tokenize":26}],20:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _processor=require("./processor");var _processor2=_interopRequireDefault(_processor);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _atRule=require("./at-rule");var _atRule2=_interopRequireDefault(_atRule);var _vendor=require("./vendor");var _vendor2=_interopRequireDefault(_vendor);var _parse=require("./parse");var _parse2=_interopRequireDefault(_parse);var _list=require("./list");var _list2=_interopRequireDefault(_list);var _rule=require("./rule");var _rule2=_interopRequireDefault(_rule);var _root=require("./root");var _root2=_interopRequireDefault(_root);var postcss=function postcss(){for(var _len=arguments.length,plugins=Array(_len),_key=0;_key<_len;_key++){plugins[_key]=arguments[_key]}if(plugins.length===1&&Array.isArray(plugins[0])){plugins=plugins[0]}return new _processor2["default"](plugins)};postcss.plugin=function(name,initializer){var creator=function creator(){var transformer=initializer.apply(this,arguments);transformer.postcssPlugin=name;transformer.postcssVersion=_processor2["default"].prototype.version;return transformer};creator.postcss=creator();return creator};postcss.vendor=_vendor2["default"];postcss.parse=_parse2["default"];postcss.list=_list2["default"];postcss.comment=function(defaults){return new _comment2["default"](defaults)};postcss.atRule=function(defaults){return new _atRule2["default"](defaults)};postcss.decl=function(defaults){return new _declaration2["default"](defaults)};postcss.rule=function(defaults){return new _rule2["default"](defaults)};postcss.root=function(defaults){return new _root2["default"](defaults)};exports["default"]=postcss;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./list":15,"./parse":18,"./processor":22,"./root":24,"./rule":25,"./vendor":27}],21:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _jsBase64=require("js-base64");var _sourceMap=require("source-map");var _sourceMap2=_interopRequireDefault(_sourceMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var _fs=require("fs");var _fs2=_interopRequireDefault(_fs);var PreviousMap=function(){function PreviousMap(css,opts){_classCallCheck(this,PreviousMap);this.loadAnnotation(css);this.inline=this.startWith(this.annotation,"data:");var prev=opts.map?opts.map.prev:undefined;var text=this.loadMap(opts.from,prev);if(text)this.text=text}PreviousMap.prototype.consumer=function consumer(){if(!this.consumerCache){this.consumerCache=new _sourceMap2["default"].SourceMapConsumer(this.text)}return this.consumerCache};PreviousMap.prototype.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)};PreviousMap.prototype.startWith=function startWith(string,start){if(!string)return false;return string.substr(0,start.length)===start};PreviousMap.prototype.loadAnnotation=function loadAnnotation(css){var match=css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);if(match)this.annotation=match[1].trim()};PreviousMap.prototype.decodeInline=function decodeInline(text){var utf64="data:application/json;charset=utf-8;base64,";var b64="data:application/json;base64,";var uri="data:application/json,";if(this.startWith(text,uri)){return decodeURIComponent(text.substr(uri.length))}else if(this.startWith(text,b64)){return _jsBase64.Base64.decode(text.substr(b64.length))}else if(this.startWith(text,utf64)){return _jsBase64.Base64.decode(text.substr(utf64.length))}else{var encoding=text.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+encoding)}};PreviousMap.prototype.loadMap=function loadMap(file,prev){if(prev===false)return false;if(prev){if(typeof prev==="string"){return prev}else if(prev instanceof _sourceMap2["default"].SourceMapConsumer){return _sourceMap2["default"].SourceMapGenerator.fromSourceMap(prev).toString()}else if(prev instanceof _sourceMap2["default"].SourceMapGenerator){return prev.toString()}else if(typeof prev==="object"&&prev.mappings){return JSON.stringify(prev)}else{throw new Error("Unsupported previous source map format: "+prev.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){var map=this.annotation;if(file)map=_path2["default"].join(_path2["default"].dirname(file),map);this.root=_path2["default"].dirname(map);if(_fs2["default"].existsSync&&_fs2["default"].existsSync(map)){return _fs2["default"].readFileSync(map,"utf-8").toString().trim()}else{return false}}};return PreviousMap}();exports["default"]=PreviousMap;module.exports=exports["default"]},{fs:1,"js-base64":31,path:6,"source-map":32}],22:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _lazyResult=require("./lazy-result");var _lazyResult2=_interopRequireDefault(_lazyResult);var Processor=function(){function Processor(){var plugins=arguments[0]===undefined?[]:arguments[0];_classCallCheck(this,Processor);this.plugins=this.normalize(plugins)}Processor.prototype.use=function use(plugin){this.plugins=this.plugins.concat(this.normalize([plugin]));return this};Processor.prototype.process=function process(css){var opts=arguments[1]===undefined?{}:arguments[1];return new _lazyResult2["default"](this,css,opts)};Processor.prototype.normalize=function normalize(plugins){var normalized=[];for(var _iterator=plugins,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var i=_ref;var type=typeof i;if((type==="object"||type==="function")&&i.postcss){i=i.postcss}if(typeof i==="object"&&Array.isArray(i.plugins)){normalized=normalized.concat(i.plugins)}else{normalized.push(i)}}return normalized};return Processor}();exports["default"]=Processor;Processor.prototype.version=require("../package").version;module.exports=exports["default"]},{"../package":44,"./lazy-result":14}],23:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var _warning=require("./warning");var _warning2=_interopRequireDefault(_warning);var Result=function(){function Result(processor,root,opts){_classCallCheck(this,Result);this.processor=processor;this.messages=[];this.root=root;this.opts=opts;this.css=undefined;this.map=undefined}Result.prototype.toString=function toString(){return this.css};Result.prototype.warn=function warn(text){var opts=arguments[1]===undefined?{}:arguments[1];if(!opts.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){opts.plugin=this.lastPlugin.postcssPlugin}}this.messages.push(new _warning2["default"](text,opts))};Result.prototype.warnings=function warnings(){return this.messages.filter(function(i){return i.type==="warning"})};_createClass(Result,[{key:"from",get:function get(){_warnOnce2["default"]("result.from is deprecated and will be removed in 5.0. "+"Use result.opts.from instead.");return this.opts.from}},{key:"to",get:function get(){_warnOnce2["default"]("result.to is deprecated and will be removed in 5.0. "+"Use result.opts.to instead.");return this.opts.to}}]);return Result}();exports["default"]=Result;module.exports=exports["default"]},{"./warn-once":28,"./warning":29}],24:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var Root=function(_Container){function Root(defaults){_classCallCheck(this,Root);_Container.call(this,defaults);if(!this.nodes)this.nodes=[];this.type="root"}_inherits(Root,_Container);Root.prototype.remove=function remove(child){child=this.index(child);if(child===0&&this.nodes.length>1){this.nodes[1].before=this.nodes[child].before}return _Container.prototype.remove.call(this,child)};Root.prototype.normalize=function normalize(child,sample,type){var nodes=_Container.prototype.normalize.call(this,child);if(sample){if(type==="prepend"){if(this.nodes.length>1){sample.before=this.nodes[1].before}else{delete sample.before}}else{for(var _iterator=nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;if(this.first!==sample)node.before=sample.before}}}return nodes};Root.prototype.stringify=function stringify(builder){
this.stringifyContent(builder);if(this.after)builder(this.after)};Root.prototype.toResult=function toResult(){var opts=arguments[0]===undefined?{}:arguments[0];var LazyResult=require("./lazy-result");var Processor=require("./processor");var lazy=new LazyResult(new Processor,this,opts);return lazy.stringify()};return Root}(_container2["default"]);exports["default"]=Root;module.exports=exports["default"]},{"./container":10,"./lazy-result":14,"./processor":22}],25:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var _list=require("./list");var _list2=_interopRequireDefault(_list);var Rule=function(_Container){function Rule(defaults){_classCallCheck(this,Rule);_Container.call(this,defaults);if(!this.nodes)this.nodes=[];this.type="rule"}_inherits(Rule,_Container);Rule.prototype.stringify=function stringify(builder){this.stringifyBlock(builder,this.stringifyRaw("selector"))};_createClass(Rule,[{key:"selectors",get:function get(){return _list2["default"].comma(this.selector)},set:function set(values){this.selector=values.join(", ")}}]);return Rule}(_container2["default"]);exports["default"]=Rule;module.exports=exports["default"]},{"./container":10,"./list":15}],26:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=tokenize;var SINGLE_QUOTE=39;var DOUBLE_QUOTE=34;var BACKSLASH=92;var SLASH=47;var NEWLINE=10;var SPACE=32;var FEED=12;var TAB=9;var CR=13;var OPEN_PARENTHESES=40;var CLOSE_PARENTHESES=41;var OPEN_CURLY=123;var CLOSE_CURLY=125;var SEMICOLON=59;var ASTERICK=42;var COLON=58;var AT=64;var RE_AT_END=/[ \n\t\r\{\(\)'"\\;\/]/g;var RE_WORD_END=/[ \n\t\r\(\)\{\}:;@!'"\\]|\/(?=\*)/g;var RE_BAD_BRACKET=/.[\\\/\("'\n]/;function tokenize(input){var tokens=[];var css=input.css.valueOf();var code=undefined,next=undefined,quote=undefined,lines=undefined,last=undefined,content=undefined,escape=undefined,nextLine=undefined,nextOffset=undefined,escaped=undefined,escapePos=undefined;var length=css.length;var offset=-1;var line=1;var pos=0;var unclosed=function unclosed(what,end){if(input.safe){css+=end;next=css.length-1}else{throw input.error("Unclosed "+what,line,pos-offset)}};while(pos<length){code=css.charCodeAt(pos);if(code===NEWLINE){offset=pos;line+=1}switch(code){case NEWLINE:case SPACE:case TAB:case CR:case FEED:next=pos;do{next+=1;code=css.charCodeAt(next);if(code===NEWLINE){offset=next;line+=1}}while(code===SPACE||code===NEWLINE||code===TAB||code===CR||code===FEED);tokens.push(["space",css.slice(pos,next)]);pos=next-1;break;case OPEN_CURLY:tokens.push(["{","{",line,pos-offset]);break;case CLOSE_CURLY:tokens.push(["}","}",line,pos-offset]);break;case COLON:tokens.push([":",":",line,pos-offset]);break;case SEMICOLON:tokens.push([";",";",line,pos-offset]);break;case OPEN_PARENTHESES:next=css.indexOf(")",pos+1);content=css.slice(pos,next+1);if(next===-1||RE_BAD_BRACKET.test(content)){tokens.push(["(","(",line,pos-offset])}else{tokens.push(["brackets",content,line,pos-offset,line,next-offset]);pos=next}break;case CLOSE_PARENTHESES:tokens.push([")",")",line,pos-offset]);break;case SINGLE_QUOTE:case DOUBLE_QUOTE:quote=code===SINGLE_QUOTE?"'":'"';next=pos;do{escaped=false;next=css.indexOf(quote,next+1);if(next===-1)unclosed("quote",quote);escapePos=next;while(css.charCodeAt(escapePos-1)===BACKSLASH){escapePos-=1;escaped=!escaped}}while(escaped);tokens.push(["string",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;case AT:RE_AT_END.lastIndex=pos+1;RE_AT_END.test(css);if(RE_AT_END.lastIndex===0){next=css.length-1}else{next=RE_AT_END.lastIndex-2}tokens.push(["at-word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;case BACKSLASH:next=pos;escape=true;while(css.charCodeAt(next+1)===BACKSLASH){next+=1;escape=!escape}code=css.charCodeAt(next+1);if(escape&&(code!==SLASH&&code!==SPACE&&code!==NEWLINE&&code!==TAB&&code!==CR&&code!==FEED)){next+=1}tokens.push(["word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;default:if(code===SLASH&&css.charCodeAt(pos+1)===ASTERICK){next=css.indexOf("*/",pos+2)+1;if(next===0)unclosed("comment","*/");content=css.slice(pos,next+1);lines=content.split("\n");last=lines.length-1;if(last>0){nextLine=line+last;nextOffset=next-lines[last].length}else{nextLine=line;nextOffset=offset}tokens.push(["comment",content,line,pos-offset,nextLine,next-nextOffset]);offset=nextOffset;line=nextLine;pos=next}else{RE_WORD_END.lastIndex=pos+1;RE_WORD_END.test(css);if(RE_WORD_END.lastIndex===0){next=css.length-1}else{next=RE_WORD_END.lastIndex-2}tokens.push(["word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next}break}pos++}return tokens}module.exports=exports["default"]},{}],27:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]={prefix:function prefix(prop){if(prop[0]==="-"){var sep=prop.indexOf("-",1);return prop.substr(0,sep+1)}else{return""}},unprefixed:function unprefixed(prop){if(prop[0]==="-"){var sep=prop.indexOf("-",1);return prop.substr(sep+1)}else{return prop}}};module.exports=exports["default"]},{}],28:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=warnOnce;var printed={};function warnOnce(message){if(printed[message])return;printed[message]=true;if(typeof console!=="undefined"&&console.warn)console.warn(message)}module.exports=exports["default"]},{}],29:[function(require,module,exports){"use strict";exports.__esModule=true;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Warning=function(){function Warning(text){var opts=arguments[1]===undefined?{}:arguments[1];_classCallCheck(this,Warning);this.type="warning";this.text=text;for(var opt in opts){this[opt]=opts[opt]}}Warning.prototype.toString=function toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin}).message}else if(this.plugin){return this.plugin+": "+this.text}else{return this.text}};return Warning}();exports["default"]=Warning;module.exports=exports["default"]},{}],30:[function(require,module,exports){(function(process,global){(function(){"use strict";function lib$es6$promise$utils$$objectOrFunction(x){return typeof x==="function"||typeof x==="object"&&x!==null}function lib$es6$promise$utils$$isFunction(x){return typeof x==="function"}function lib$es6$promise$utils$$isMaybeThenable(x){return typeof x==="object"&&x!==null}var lib$es6$promise$utils$$_isArray;if(!Array.isArray){lib$es6$promise$utils$$_isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}}else{lib$es6$promise$utils$$_isArray=Array.isArray}var lib$es6$promise$utils$$isArray=lib$es6$promise$utils$$_isArray;var lib$es6$promise$asap$$len=0;var lib$es6$promise$asap$$toString={}.toString;var lib$es6$promise$asap$$vertxNext;var lib$es6$promise$asap$$customSchedulerFn;var lib$es6$promise$asap$$asap=function asap(callback,arg){lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len]=callback;lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len+1]=arg;lib$es6$promise$asap$$len+=2;if(lib$es6$promise$asap$$len===2){if(lib$es6$promise$asap$$customSchedulerFn){lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush)}else{lib$es6$promise$asap$$scheduleFlush()}}};function lib$es6$promise$asap$$setScheduler(scheduleFn){lib$es6$promise$asap$$customSchedulerFn=scheduleFn}function lib$es6$promise$asap$$setAsap(asapFn){lib$es6$promise$asap$$asap=asapFn}var lib$es6$promise$asap$$browserWindow=typeof window!=="undefined"?window:undefined;var lib$es6$promise$asap$$browserGlobal=lib$es6$promise$asap$$browserWindow||{};var lib$es6$promise$asap$$BrowserMutationObserver=lib$es6$promise$asap$$browserGlobal.MutationObserver||lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;var lib$es6$promise$asap$$isNode=typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var lib$es6$promise$asap$$isWorker=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function lib$es6$promise$asap$$useNextTick(){var nextTick=process.nextTick;var version=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);if(Array.isArray(version)&&version[1]==="0"&&version[2]==="10"){nextTick=setImmediate}return function(){nextTick(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useVertxTimer(){return function(){lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useMutationObserver(){var iterations=0;var observer=new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);var node=document.createTextNode("");observer.observe(node,{characterData:true});return function(){node.data=iterations=++iterations%2}}function lib$es6$promise$asap$$useMessageChannel(){var channel=new MessageChannel;channel.port1.onmessage=lib$es6$promise$asap$$flush;return function(){channel.port2.postMessage(0)}}function lib$es6$promise$asap$$useSetTimeout(){return function(){setTimeout(lib$es6$promise$asap$$flush,1)}}var lib$es6$promise$asap$$queue=new Array(1e3);function lib$es6$promise$asap$$flush(){for(var i=0;i<lib$es6$promise$asap$$len;i+=2){var callback=lib$es6$promise$asap$$queue[i];var arg=lib$es6$promise$asap$$queue[i+1];callback(arg);lib$es6$promise$asap$$queue[i]=undefined;lib$es6$promise$asap$$queue[i+1]=undefined}lib$es6$promise$asap$$len=0}function lib$es6$promise$asap$$attemptVertex(){try{var r=require;var vertx=r("vertx");lib$es6$promise$asap$$vertxNext=vertx.runOnLoop||vertx.runOnContext;return lib$es6$promise$asap$$useVertxTimer()}catch(e){return lib$es6$promise$asap$$useSetTimeout()}}var lib$es6$promise$asap$$scheduleFlush;if(lib$es6$promise$asap$$isNode){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useNextTick()}else if(lib$es6$promise$asap$$BrowserMutationObserver){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useMutationObserver()}else if(lib$es6$promise$asap$$isWorker){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useMessageChannel()}else if(lib$es6$promise$asap$$browserWindow===undefined&&typeof require==="function"){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$attemptVertex()}else{lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useSetTimeout()}function lib$es6$promise$$internal$$noop(){}var lib$es6$promise$$internal$$PENDING=void 0;var lib$es6$promise$$internal$$FULFILLED=1;var lib$es6$promise$$internal$$REJECTED=2;var lib$es6$promise$$internal$$GET_THEN_ERROR=new lib$es6$promise$$internal$$ErrorObject;function lib$es6$promise$$internal$$selfFullfillment(){return new TypeError("You cannot resolve a promise with itself")}function lib$es6$promise$$internal$$cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function lib$es6$promise$$internal$$getThen(promise){try{return promise.then}catch(error){lib$es6$promise$$internal$$GET_THEN_ERROR.error=error;return lib$es6$promise$$internal$$GET_THEN_ERROR}}function lib$es6$promise$$internal$$tryThen(then,value,fulfillmentHandler,rejectionHandler){try{then.call(value,fulfillmentHandler,rejectionHandler)}catch(e){return e}}function lib$es6$promise$$internal$$handleForeignThenable(promise,thenable,then){lib$es6$promise$asap$$asap(function(promise){var sealed=false;var error=lib$es6$promise$$internal$$tryThen(then,thenable,function(value){if(sealed){return}sealed=true;if(thenable!==value){lib$es6$promise$$internal$$resolve(promise,value)}else{lib$es6$promise$$internal$$fulfill(promise,value)}},function(reason){if(sealed){return}sealed=true;lib$es6$promise$$internal$$reject(promise,reason)},"Settle: "+(promise._label||" unknown promise"));if(!sealed&&error){sealed=true;lib$es6$promise$$internal$$reject(promise,error)}},promise)}function lib$es6$promise$$internal$$handleOwnThenable(promise,thenable){if(thenable._state===lib$es6$promise$$internal$$FULFILLED){lib$es6$promise$$internal$$fulfill(promise,thenable._result)}else if(thenable._state===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,thenable._result)}else{lib$es6$promise$$internal$$subscribe(thenable,undefined,function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}}function lib$es6$promise$$internal$$handleMaybeThenable(promise,maybeThenable){if(maybeThenable.constructor===promise.constructor){lib$es6$promise$$internal$$handleOwnThenable(promise,maybeThenable)}else{var then=lib$es6$promise$$internal$$getThen(maybeThenable);if(then===lib$es6$promise$$internal$$GET_THEN_ERROR){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$GET_THEN_ERROR.error)}else if(then===undefined){lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}else if(lib$es6$promise$utils$$isFunction(then)){lib$es6$promise$$internal$$handleForeignThenable(promise,maybeThenable,then)}else{lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}}}function lib$es6$promise$$internal$$resolve(promise,value){if(promise===value){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$selfFullfillment())}else if(lib$es6$promise$utils$$objectOrFunction(value)){lib$es6$promise$$internal$$handleMaybeThenable(promise,value)}else{lib$es6$promise$$internal$$fulfill(promise,value)}}function lib$es6$promise$$internal$$publishRejection(promise){if(promise._onerror){promise._onerror(promise._result)}lib$es6$promise$$internal$$publish(promise)}function lib$es6$promise$$internal$$fulfill(promise,value){if(promise._state!==lib$es6$promise$$internal$$PENDING){return}promise._result=value;promise._state=lib$es6$promise$$internal$$FULFILLED;if(promise._subscribers.length!==0){lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,promise)}}function lib$es6$promise$$internal$$reject(promise,reason){if(promise._state!==lib$es6$promise$$internal$$PENDING){return}promise._state=lib$es6$promise$$internal$$REJECTED;promise._result=reason;lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection,promise)}function lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection){var subscribers=parent._subscribers;var length=subscribers.length;parent._onerror=null;subscribers[length]=child;subscribers[length+lib$es6$promise$$internal$$FULFILLED]=onFulfillment;subscribers[length+lib$es6$promise$$internal$$REJECTED]=onRejection;if(length===0&&parent._state){lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,parent)}}function lib$es6$promise$$internal$$publish(promise){var subscribers=promise._subscribers;var settled=promise._state;if(subscribers.length===0){return}var child,callback,detail=promise._result;for(var i=0;i<subscribers.length;i+=3){child=subscribers[i];callback=subscribers[i+settled];if(child){lib$es6$promise$$internal$$invokeCallback(settled,child,callback,detail)}else{callback(detail)}}promise._subscribers.length=0}function lib$es6$promise$$internal$$ErrorObject(){this.error=null}var lib$es6$promise$$internal$$TRY_CATCH_ERROR=new lib$es6$promise$$internal$$ErrorObject;function lib$es6$promise$$internal$$tryCatch(callback,detail){try{return callback(detail)}catch(e){lib$es6$promise$$internal$$TRY_CATCH_ERROR.error=e;return lib$es6$promise$$internal$$TRY_CATCH_ERROR}}function lib$es6$promise$$internal$$invokeCallback(settled,promise,callback,detail){var hasCallback=lib$es6$promise$utils$$isFunction(callback),value,error,succeeded,failed;if(hasCallback){value=lib$es6$promise$$internal$$tryCatch(callback,detail);if(value===lib$es6$promise$$internal$$TRY_CATCH_ERROR){failed=true;error=value.error;value=null}else{succeeded=true}if(promise===value){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$cannotReturnOwn());return}}else{value=detail;succeeded=true}if(promise._state!==lib$es6$promise$$internal$$PENDING){}else if(hasCallback&&succeeded){lib$es6$promise$$internal$$resolve(promise,value)}else if(failed){lib$es6$promise$$internal$$reject(promise,error)}else if(settled===lib$es6$promise$$internal$$FULFILLED){lib$es6$promise$$internal$$fulfill(promise,value)}else if(settled===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,value)}}function lib$es6$promise$$internal$$initializePromise(promise,resolver){try{resolver(function resolvePromise(value){lib$es6$promise$$internal$$resolve(promise,value)},function rejectPromise(reason){lib$es6$promise$$internal$$reject(promise,reason)})}catch(e){lib$es6$promise$$internal$$reject(promise,e)}}function lib$es6$promise$enumerator$$Enumerator(Constructor,input){var enumerator=this;enumerator._instanceConstructor=Constructor;enumerator.promise=new Constructor(lib$es6$promise$$internal$$noop);if(enumerator._validateInput(input)){enumerator._input=input;enumerator.length=input.length;enumerator._remaining=input.length;enumerator._init();if(enumerator.length===0){lib$es6$promise$$internal$$fulfill(enumerator.promise,enumerator._result)}else{enumerator.length=enumerator.length||0;enumerator._enumerate();if(enumerator._remaining===0){lib$es6$promise$$internal$$fulfill(enumerator.promise,enumerator._result)}}}else{lib$es6$promise$$internal$$reject(enumerator.promise,enumerator._validationError())}}lib$es6$promise$enumerator$$Enumerator.prototype._validateInput=function(input){return lib$es6$promise$utils$$isArray(input)};lib$es6$promise$enumerator$$Enumerator.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")};lib$es6$promise$enumerator$$Enumerator.prototype._init=function(){this._result=new Array(this.length)};var lib$es6$promise$enumerator$$default=lib$es6$promise$enumerator$$Enumerator;lib$es6$promise$enumerator$$Enumerator.prototype._enumerate=function(){var enumerator=this;var length=enumerator.length;var promise=enumerator.promise;var input=enumerator._input;for(var i=0;promise._state===lib$es6$promise$$internal$$PENDING&&i<length;i++){enumerator._eachEntry(input[i],i)}};lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry=function(entry,i){var enumerator=this;var c=enumerator._instanceConstructor;if(lib$es6$promise$utils$$isMaybeThenable(entry)){if(entry.constructor===c&&entry._state!==lib$es6$promise$$internal$$PENDING){entry._onerror=null;enumerator._settledAt(entry._state,i,entry._result)}else{enumerator._willSettleAt(c.resolve(entry),i)}}else{enumerator._remaining--;enumerator._result[i]=entry}};lib$es6$promise$enumerator$$Enumerator.prototype._settledAt=function(state,i,value){var enumerator=this;var promise=enumerator.promise;if(promise._state===lib$es6$promise$$internal$$PENDING){enumerator._remaining--;if(state===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,value)}else{enumerator._result[i]=value}}if(enumerator._remaining===0){lib$es6$promise$$internal$$fulfill(promise,enumerator._result)}};lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt=function(promise,i){var enumerator=this;lib$es6$promise$$internal$$subscribe(promise,undefined,function(value){enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED,i,value)},function(reason){enumerator._settledAt(lib$es6$promise$$internal$$REJECTED,i,reason)})};function lib$es6$promise$promise$all$$all(entries){return new lib$es6$promise$enumerator$$default(this,entries).promise}var lib$es6$promise$promise$all$$default=lib$es6$promise$promise$all$$all;function lib$es6$promise$promise$race$$race(entries){var Constructor=this;var promise=new Constructor(lib$es6$promise$$internal$$noop);if(!lib$es6$promise$utils$$isArray(entries)){lib$es6$promise$$internal$$reject(promise,new TypeError("You must pass an array to race."));return promise}var length=entries.length;function onFulfillment(value){lib$es6$promise$$internal$$resolve(promise,value)}function onRejection(reason){lib$es6$promise$$internal$$reject(promise,reason)}for(var i=0;promise._state===lib$es6$promise$$internal$$PENDING&&i<length;i++){lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]),undefined,onFulfillment,onRejection)}return promise}var lib$es6$promise$promise$race$$default=lib$es6$promise$promise$race$$race;function lib$es6$promise$promise$resolve$$resolve(object){var Constructor=this;if(object&&typeof object==="object"&&object.constructor===Constructor){return object}var promise=new Constructor(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$resolve(promise,object);return promise}var lib$es6$promise$promise$resolve$$default=lib$es6$promise$promise$resolve$$resolve;function lib$es6$promise$promise$reject$$reject(reason){var Constructor=this;var promise=new Constructor(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$reject(promise,reason);return promise}var lib$es6$promise$promise$reject$$default=lib$es6$promise$promise$reject$$reject;var lib$es6$promise$promise$$counter=0;function lib$es6$promise$promise$$needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function lib$es6$promise$promise$$needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var lib$es6$promise$promise$$default=lib$es6$promise$promise$$Promise;function lib$es6$promise$promise$$Promise(resolver){this._id=lib$es6$promise$promise$$counter++;this._state=undefined;this._result=undefined;this._subscribers=[];if(lib$es6$promise$$internal$$noop!==resolver){if(!lib$es6$promise$utils$$isFunction(resolver)){lib$es6$promise$promise$$needsResolver()}if(!(this instanceof lib$es6$promise$promise$$Promise)){lib$es6$promise$promise$$needsNew()}lib$es6$promise$$internal$$initializePromise(this,resolver)}}lib$es6$promise$promise$$Promise.all=lib$es6$promise$promise$all$$default;lib$es6$promise$promise$$Promise.race=lib$es6$promise$promise$race$$default;lib$es6$promise$promise$$Promise.resolve=lib$es6$promise$promise$resolve$$default;lib$es6$promise$promise$$Promise.reject=lib$es6$promise$promise$reject$$default;lib$es6$promise$promise$$Promise._setScheduler=lib$es6$promise$asap$$setScheduler;lib$es6$promise$promise$$Promise._setAsap=lib$es6$promise$asap$$setAsap;lib$es6$promise$promise$$Promise._asap=lib$es6$promise$asap$$asap;lib$es6$promise$promise$$Promise.prototype={constructor:lib$es6$promise$promise$$Promise,then:function(onFulfillment,onRejection){var parent=this;var state=parent._state;if(state===lib$es6$promise$$internal$$FULFILLED&&!onFulfillment||state===lib$es6$promise$$internal$$REJECTED&&!onRejection){return this}var child=new this.constructor(lib$es6$promise$$internal$$noop);var result=parent._result;if(state){var callback=arguments[state-1];lib$es6$promise$asap$$asap(function(){lib$es6$promise$$internal$$invokeCallback(state,child,callback,result)})}else{lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection)}return child},"catch":function(onRejection){return this.then(null,onRejection)}};function lib$es6$promise$polyfill$$polyfill(){var local;if(typeof global!=="undefined"){local=global}else if(typeof self!=="undefined"){local=self}else{try{local=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}var P=local.Promise;if(P&&Object.prototype.toString.call(P.resolve())==="[object Promise]"&&!P.cast){return}local.Promise=lib$es6$promise$promise$$default}var lib$es6$promise$polyfill$$default=lib$es6$promise$polyfill$$polyfill;var lib$es6$promise$umd$$ES6Promise={Promise:lib$es6$promise$promise$$default,polyfill:lib$es6$promise$polyfill$$default};if(typeof define==="function"&&define["amd"]){define(function(){return lib$es6$promise$umd$$ES6Promise})}else if(typeof module!=="undefined"&&module["exports"]){module["exports"]=lib$es6$promise$umd$$ES6Promise}else if(typeof this!=="undefined"){this["ES6Promise"]=lib$es6$promise$umd$$ES6Promise}lib$es6$promise$polyfill$$default()}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:7}],31:[function(require,module,exports){(function(global){"use strict";var _Base64=global.Base64;var version="2.1.9";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=require("buffer").Buffer}catch(err){}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64tab=function(bin){var t={};for(var i=0,l=bin.length;i<l;i++)t[bin.charAt(i)]=i;return t}(b64chars);var fromCharCode=String.fromCharCode;var cb_utob=function(c){if(c.length<2){var cc=c.charCodeAt(0);return cc<128?c:cc<2048?fromCharCode(192|cc>>>6)+fromCharCode(128|cc&63):fromCharCode(224|cc>>>12&15)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}else{var cc=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return fromCharCode(240|cc>>>18&7)+fromCharCode(128|cc>>>12&63)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob)};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(ccc.length>1?ccc.charCodeAt(1):0)<<8|(ccc.length>2?ccc.charCodeAt(2):0),chars=[b64chars.charAt(ord>>>18),b64chars.charAt(ord>>>12&63),padlen>=2?"=":b64chars.charAt(ord>>>6&63),padlen>=1?"=":b64chars.charAt(ord&63)];return chars.join("")};var btoa=global.btoa?function(b){return global.btoa(b)}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)};var _encode=buffer?function(u){return(u.constructor===buffer.constructor?u:new buffer(u)).toString("base64")}:function(u){return btoa(utob(u))};var encode=function(u,urisafe){return!urisafe?_encode(String(u)):_encode(String(u)).replace(/[+\/]/g,function(m0){return m0=="+"?"-":"_"}).replace(/=/g,"")};var encodeURI=function(u){return encode(u,true)};var re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g");var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((offset&1023)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1))}};var btou=function(b){return b.replace(re_btou,cb_btou)};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(n&255)];chars.length-=[0,0,2,1][padlen];return chars.join("")};var atob=global.atob?function(a){return global.atob(a)}:function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode)};var _decode=buffer?function(a){return(a.constructor===buffer.constructor?a:new buffer(a,"base64")).toString()}:function(a){return btou(atob(a))};var decode=function(a){return _decode(String(a).replace(/[-_]/g,function(m0){return m0=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};var noConflict=function(){var Base64=global.Base64;global.Base64=_Base64;return Base64};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict};if(typeof Object.defineProperty==="function"){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,true)}))}}if(global["Meteor"]){Base64=global.Base64}})(this)},{buffer:2}],32:[function(require,module,exports){exports.SourceMapGenerator=require("./source-map/source-map-generator").SourceMapGenerator;exports.SourceMapConsumer=require("./source-map/source-map-consumer").SourceMapConsumer;exports.SourceNode=require("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":39,"./source-map/source-map-generator":40,"./source-map/source-node":41}],33:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function ArraySet(){this._array=[];this._set={}}ArraySet.fromArray=function ArraySet_fromArray(aArray,aAllowDuplicates){var set=new ArraySet;for(var i=0,len=aArray.length;i<len;i++){set.add(aArray[i],aAllowDuplicates)}return set};ArraySet.prototype.size=function ArraySet_size(){return Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(aStr,aAllowDuplicates){var isDuplicate=this.has(aStr);var idx=this._array.length;if(!isDuplicate||aAllowDuplicates){this._array.push(aStr)}if(!isDuplicate){this._set[util.toSetString(aStr)]=idx}};ArraySet.prototype.has=function ArraySet_has(aStr){return Object.prototype.hasOwnProperty.call(this._set,util.toSetString(aStr))};ArraySet.prototype.indexOf=function ArraySet_indexOf(aStr){if(this.has(aStr)){return this._set[util.toSetString(aStr)]}throw new Error('"'+aStr+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(aIdx){if(aIdx>=0&&aIdx<this._array.length){return this._array[aIdx]}throw new Error("No element indexed by "+aIdx)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};exports.ArraySet=ArraySet})},{"./util":42,amdefine:43}],34:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64=require("./base64");var VLQ_BASE_SHIFT=5;var VLQ_BASE=1<<VLQ_BASE_SHIFT;var VLQ_BASE_MASK=VLQ_BASE-1;var VLQ_CONTINUATION_BIT=VLQ_BASE;function toVLQSigned(aValue){return aValue<0?(-aValue<<1)+1:(aValue<<1)+0}function fromVLQSigned(aValue){var isNegative=(aValue&1)===1;var shifted=aValue>>1;return isNegative?-shifted:shifted}exports.encode=function base64VLQ_encode(aValue){var encoded="";var digit;var vlq=toVLQSigned(aValue);do{digit=vlq&VLQ_BASE_MASK;vlq>>>=VLQ_BASE_SHIFT;if(vlq>0){digit|=VLQ_CONTINUATION_BIT}encoded+=base64.encode(digit)}while(vlq>0);return encoded};exports.decode=function base64VLQ_decode(aStr,aIndex,aOutParam){var strLen=aStr.length;var result=0;var shift=0;var continuation,digit;do{if(aIndex>=strLen){throw new Error("Expected more digits in base 64 VLQ value.")}digit=base64.decode(aStr.charCodeAt(aIndex++));if(digit===-1){throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1))}continuation=!!(digit&VLQ_CONTINUATION_BIT);
digit&=VLQ_BASE_MASK;result=result+(digit<<shift);shift+=VLQ_BASE_SHIFT}while(continuation);aOutParam.value=fromVLQSigned(result);aOutParam.rest=aIndex}})},{"./base64":35,amdefine:43}],35:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number<intToCharMap.length){return intToCharMap[number]}throw new TypeError("Must be between 0 and 63: "+aNumber)};exports.decode=function(charCode){var bigA=65;var bigZ=90;var littleA=97;var littleZ=122;var zero=48;var nine=57;var plus=43;var slash=47;var littleOffset=26;var numberOffset=52;if(bigA<=charCode&&charCode<=bigZ){return charCode-bigA}if(littleA<=charCode&&charCode<=littleZ){return charCode-littleA+littleOffset}if(zero<=charCode&&charCode<=nine){return charCode-zero+numberOffset}if(charCode==plus){return 62}if(charCode==slash){return 63}return-1}})},{amdefine:43}],36:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){exports.GREATEST_LOWER_BOUND=1;exports.LEAST_UPPER_BOUND=2;function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow;var cmp=aCompare(aNeedle,aHaystack[mid],true);if(cmp===0){return mid}else if(cmp>0){if(aHigh-mid>1){return recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias)}if(aBias==exports.LEAST_UPPER_BOUND){return aHigh<aHaystack.length?aHigh:-1}else{return mid}}else{if(mid-aLow>1){return recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias)}if(aBias==exports.LEAST_UPPER_BOUND){return mid}else{return aLow<0?-1:aLow}}}exports.search=function search(aNeedle,aHaystack,aCompare,aBias){if(aHaystack.length===0){return-1}var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0){return-1}while(index-1>=0){if(aCompare(aHaystack[index],aHaystack[index-1],true)!==0){break}--index}return index}})},{amdefine:43}],37:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine;var lineB=mappingB.generatedLine;var columnA=mappingA.generatedColumn;var columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)};MappingList.prototype.add=function MappingList_add(aMapping){var mapping;if(generatedPositionAfter(this._last,aMapping)){this._last=aMapping;this._array.push(aMapping)}else{this._sorted=false;this._array.push(aMapping)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(util.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};exports.MappingList=MappingList})},{"./util":42,amdefine:43}],38:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y];ary[y]=temp}function randomIntInRange(low,high){return Math.round(low+Math.random()*(high-low))}function doQuickSort(ary,comparator,p,r){if(p<r){var pivotIndex=randomIntInRange(p,r);var i=p-1;swap(ary,pivotIndex,r);var pivot=ary[r];for(var j=p;j<r;j++){if(comparator(ary[j],pivot)<=0){i+=1;swap(ary,i,j)}}swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1);doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}})},{amdefine:43}],39:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");var binarySearch=require("./binary-search");var ArraySet=require("./array-set").ArraySet;var base64VLQ=require("./base64-vlq");var quickSort=require("./quick-sort").quickSort;function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}return sourceMap.sections!=null?new IndexedSourceMapConsumer(sourceMap):new BasicSourceMapConsumer(sourceMap)}SourceMapConsumer.fromSourceMap=function(aSourceMap){return BasicSourceMapConsumer.fromSourceMap(aSourceMap)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(aStr,index){var c=aStr.charAt(index);return c===";"||c===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(aCallback,aContext,aOrder){var context=aContext||null;var order=aOrder||SourceMapConsumer.GENERATED_ORDER;var mappings;switch(order){case SourceMapConsumer.GENERATED_ORDER:mappings=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:mappings=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var sourceRoot=this.sourceRoot;mappings.map(function(mapping){var source=mapping.source===null?null:this._sources.at(mapping.source);if(source!=null&&sourceRoot!=null){source=util.join(sourceRoot,source)}return{source:source,generatedLine:mapping.generatedLine,generatedColumn:mapping.generatedColumn,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:mapping.name===null?null:this._names.at(mapping.name)}},this).forEach(aCallback,context)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(aArgs){var line=util.getArg(aArgs,"line");var needle={source:util.getArg(aArgs,"source"),originalLine:line,originalColumn:util.getArg(aArgs,"column",0)};if(this.sourceRoot!=null){needle.source=util.relative(this.sourceRoot,needle.source)}if(!this._sources.has(needle.source)){return[]}needle.source=this._sources.indexOf(needle.source);var mappings=[];var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(index>=0){var mapping=this._originalMappings[index];if(aArgs.column===undefined){var originalLine=mapping.originalLine;while(mapping&&mapping.originalLine===originalLine){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[++index]}}else{var originalColumn=mapping.originalColumn;while(mapping&&mapping.originalLine===line&&mapping.originalColumn==originalColumn){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[++index]}}}return mappings};exports.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sources=util.getArg(sourceMap,"sources");var names=util.getArg(sourceMap,"names",[]);var sourceRoot=util.getArg(sourceMap,"sourceRoot",null);var sourcesContent=util.getArg(sourceMap,"sourcesContent",null);var mappings=util.getArg(sourceMap,"mappings");var file=util.getArg(sourceMap,"file",null);if(version!=this._version){throw new Error("Unsupported version: "+version)}sources=sources.map(util.normalize);this._names=ArraySet.fromArray(names,true);this._sources=ArraySet.fromArray(sources,true);this.sourceRoot=sourceRoot;this.sourcesContent=sourcesContent;this._mappings=mappings;this.file=file}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(aSourceMap){var smc=Object.create(BasicSourceMapConsumer.prototype);var names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),true);var sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),true);smc.sourceRoot=aSourceMap._sourceRoot;smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot);smc.file=aSourceMap._file;var generatedMappings=aSourceMap._mappings.toArray().slice();var destGeneratedMappings=smc.__generatedMappings=[];var destOriginalMappings=smc.__originalMappings=[];for(var i=0,length=generatedMappings.length;i<length;i++){var srcMapping=generatedMappings[i];var destMapping=new Mapping;destMapping.generatedLine=srcMapping.generatedLine;destMapping.generatedColumn=srcMapping.generatedColumn;if(srcMapping.source){destMapping.source=sources.indexOf(srcMapping.source);destMapping.originalLine=srcMapping.originalLine;destMapping.originalColumn=srcMapping.originalColumn;if(srcMapping.name){destMapping.name=names.indexOf(srcMapping.name)}destOriginalMappings.push(destMapping)}destGeneratedMappings.push(destMapping)}quickSort(smc.__originalMappings,util.compareByOriginalPositions);return smc};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(s){return this.sourceRoot!=null?util.join(this.sourceRoot,s):s},this)}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){var generatedLine=1;var previousGeneratedColumn=0;var previousOriginalLine=0;var previousOriginalColumn=0;var previousSource=0;var previousName=0;var length=aStr.length;var index=0;var cachedSegments={};var temp={};var originalMappings=[];var generatedMappings=[];var mapping,str,segment,end,value;while(index<length){if(aStr.charAt(index)===";"){generatedLine++;index++;previousGeneratedColumn=0}else if(aStr.charAt(index)===","){index++}else{mapping=new Mapping;mapping.generatedLine=generatedLine;for(end=index;end<length;end++){if(this._charIsMappingSeparator(aStr,end)){break}}str=aStr.slice(index,end);segment=cachedSegments[str];if(segment){index+=str.length}else{segment=[];while(index<end){base64VLQ.decode(aStr,index,temp);value=temp.value;index=temp.rest;segment.push(value)}if(segment.length===2){throw new Error("Found a source, but no line and column")}if(segment.length===3){throw new Error("Found a source and line, but no column")}cachedSegments[str]=segment}mapping.generatedColumn=previousGeneratedColumn+segment[0];previousGeneratedColumn=mapping.generatedColumn;if(segment.length>1){mapping.source=previousSource+segment[1];previousSource+=segment[1];mapping.originalLine=previousOriginalLine+segment[2];previousOriginalLine=mapping.originalLine;mapping.originalLine+=1;mapping.originalColumn=previousOriginalColumn+segment[3];previousOriginalColumn=mapping.originalColumn;if(segment.length>4){mapping.name=previousName+segment[4];previousName+=segment[4]}}generatedMappings.push(mapping);if(typeof mapping.originalLine==="number"){originalMappings.push(mapping)}}}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated);this.__generatedMappings=generatedMappings;quickSort(originalMappings,util.compareByOriginalPositions);this.__originalMappings=originalMappings};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){if(aNeedle[aLineName]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName])}if(aNeedle[aColumnName]<0){throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName])}return binarySearch.search(aNeedle,aMappings,aComparator,aBias)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var index=0;index<this._generatedMappings.length;++index){var mapping=this._generatedMappings[index];if(index+1<this._generatedMappings.length){var nextMapping=this._generatedMappings[index+1];if(mapping.generatedLine===nextMapping.generatedLine){mapping.lastGeneratedColumn=nextMapping.generatedColumn-1;continue}}mapping.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._generatedMappings,"generatedLine","generatedColumn",util.compareByGeneratedPositionsDeflated,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);if(source!==null){source=this._sources.at(source);if(this.sourceRoot!=null){source=util.join(this.sourceRoot,source)}}var name=util.getArg(mapping,"name",null);if(name!==null){name=this._names.at(name)}return{source:source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name:name}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(sc){return sc==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(aSource,nullOnMissing){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){aSource=util.relative(this.sourceRoot,aSource)}if(this._sources.has(aSource)){return this.sourcesContent[this._sources.indexOf(aSource)]}var url;if(this.sourceRoot!=null&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,"");if(url.scheme=="file"&&this._sources.has(fileUriAbsPath)){return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]}if((!url.path||url.path=="/")&&this._sources.has("/"+aSource)){return this.sourcesContent[this._sources.indexOf("/"+aSource)]}}if(nullOnMissing){return null}else{throw new Error('"'+aSource+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(aArgs){var source=util.getArg(aArgs,"source");if(this.sourceRoot!=null){source=util.relative(this.sourceRoot,source)}if(!this._sources.has(source)){return{line:null,column:null,lastColumn:null}}source=this._sources.indexOf(source);var needle={source:source,originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._originalMappings[index];if(mapping.source===needle.source){return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};exports.BasicSourceMapConsumer=BasicSourceMapConsumer;function IndexedSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sections=util.getArg(sourceMap,"sections");if(version!=this._version){throw new Error("Unsupported version: "+version)}this._sources=new ArraySet;this._names=new ArraySet;var lastOffset={line:-1,column:0};this._sections=sections.map(function(s){if(s.url){throw new Error("Support for url field in sections not implemented.")}var offset=util.getArg(s,"offset");var offsetLine=util.getArg(offset,"line");var offsetColumn=util.getArg(offset,"column");if(offsetLine<lastOffset.line||offsetLine===lastOffset.line&&offsetColumn<lastOffset.column){throw new Error("Section offsets must be ordered and non-overlapping.")}lastOffset=offset;return{generatedOffset:{generatedLine:offsetLine+1,generatedColumn:offsetColumn+1},consumer:new SourceMapConsumer(util.getArg(s,"map"))}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var sources=[];for(var i=0;i<this._sections.length;i++){for(var j=0;j<this._sections[i].consumer.sources.length;j++){sources.push(this._sections[i].consumer.sources[j])}}return sources}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var sectionIndex=binarySearch.search(needle,this._sections,function(needle,section){var cmp=needle.generatedLine-section.generatedOffset.generatedLine;if(cmp){return cmp}return needle.generatedColumn-section.generatedOffset.generatedColumn});var section=this._sections[sectionIndex];if(!section){return{source:null,line:null,column:null,name:null}}return section.consumer.originalPositionFor({line:needle.generatedLine-(section.generatedOffset.generatedLine-1),column:needle.generatedColumn-(section.generatedOffset.generatedLine===needle.generatedLine?section.generatedOffset.generatedColumn-1:0),bias:aArgs.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(s){return s.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(aSource,nullOnMissing){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];var content=section.consumer.sourceContentFor(aSource,true);if(content){return content}}if(nullOnMissing){return null}else{throw new Error('"'+aSource+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(aArgs){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];if(section.consumer.sources.indexOf(util.getArg(aArgs,"source"))===-1){continue}var generatedPosition=section.consumer.generatedPositionFor(aArgs);if(generatedPosition){var ret={line:generatedPosition.line+(section.generatedOffset.generatedLine-1),column:generatedPosition.column+(section.generatedOffset.generatedLine===generatedPosition.line?section.generatedOffset.generatedColumn-1:0)};return ret}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(aStr,aSourceRoot){this.__generatedMappings=[];this.__originalMappings=[];for(var i=0;i<this._sections.length;i++){var section=this._sections[i];var sectionMappings=section.consumer._generatedMappings;for(var j=0;j<sectionMappings.length;j++){var mapping=sectionMappings[i];var source=section.consumer._sources.at(mapping.source);if(section.consumer.sourceRoot!==null){source=util.join(section.consumer.sourceRoot,source)}this._sources.add(source);source=this._sources.indexOf(source);var name=section.consumer._names.at(mapping.name);this._names.add(name);name=this._names.indexOf(name);var adjustedMapping={source:source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.column+(section.generatedOffset.generatedLine===mapping.generatedLine)?section.generatedOffset.generatedColumn-1:0,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:name};this.__generatedMappings.push(adjustedMapping);if(typeof adjustedMapping.originalLine==="number"){this.__originalMappings.push(adjustedMapping)}}}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated);quickSort(this.__originalMappings,util.compareByOriginalPositions)};exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer})},{"./array-set":33,"./base64-vlq":34,"./binary-search":36,"./quick-sort":38,"./util":42,amdefine:43}],40:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64VLQ=require("./base64-vlq");var util=require("./util");var ArraySet=require("./array-set").ArraySet;var MappingList=require("./mapping-list").MappingList;function SourceMapGenerator(aArgs){if(!aArgs){aArgs={}}this._file=util.getArg(aArgs,"file",null);this._sourceRoot=util.getArg(aArgs,"sourceRoot",null);this._skipValidation=util.getArg(aArgs,"skipValidation",false);this._sources=new ArraySet;this._names=new ArraySet;this._mappings=new MappingList;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot;var generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot:sourceRoot});aSourceMapConsumer.eachMapping(function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};if(mapping.source!=null){newMapping.source=mapping.source;if(sourceRoot!=null){newMapping.source=util.relative(sourceRoot,newMapping.source)}newMapping.original={line:mapping.originalLine,column:mapping.originalColumn};if(mapping.name!=null){newMapping.name=mapping.name}}generator.addMapping(newMapping)});aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){generator.setSourceContent(sourceFile,content)}});return generator};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(aArgs){var generated=util.getArg(aArgs,"generated");var original=util.getArg(aArgs,"original",null);var source=util.getArg(aArgs,"source",null);var name=util.getArg(aArgs,"name",null);if(!this._skipValidation){this._validateMapping(generated,original,source,name)}if(source!=null&&!this._sources.has(source)){this._sources.add(source)}if(name!=null&&!this._names.has(name)){this._names.add(name)}this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:original!=null&&original.line,originalColumn:original!=null&&original.column,source:source,name:name})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(aSourceFile,aSourceContent){var source=aSourceFile;if(this._sourceRoot!=null){source=util.relative(this._sourceRoot,source)}if(aSourceContent!=null){if(!this._sourcesContents){this._sourcesContents={}}this._sourcesContents[util.toSetString(source)]=aSourceContent}else if(this._sourcesContents){delete this._sourcesContents[util.toSetString(source)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(aSourceFile==null){if(aSourceMapConsumer.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}sourceFile=aSourceMapConsumer.file}var sourceRoot=this._sourceRoot;if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}var newSources=new ArraySet;var newNames=new ArraySet;this._mappings.unsortedForEach(function(mapping){if(mapping.source===sourceFile&&mapping.originalLine!=null){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});if(original.source!=null){mapping.source=original.source;if(aSourceMapPath!=null){mapping.source=util.join(aSourceMapPath,mapping.source)}if(sourceRoot!=null){mapping.source=util.relative(sourceRoot,mapping.source)}mapping.originalLine=original.line;mapping.originalColumn=original.column;if(original.name!=null){mapping.name=original.name}}}var source=mapping.source;if(source!=null&&!newSources.has(source)){newSources.add(source)}var name=mapping.name;if(name!=null&&!newNames.has(name)){newNames.add(name)}},this);this._sources=newSources;this._names=newNames;aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aSourceMapPath!=null){sourceFile=util.join(aSourceMapPath,sourceFile)}if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}this.setSourceContent(sourceFile,content)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(aGenerated,aOriginal,aSource,aName){if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0&&!aOriginal&&!aSource&&!aName){return}else if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var previousGeneratedColumn=0;var previousGeneratedLine=1;var previousOriginalColumn=0;var previousOriginalLine=0;var previousName=0;var previousSource=0;var result="";var mapping;var mappings=this._mappings.toArray();for(var i=0,len=mappings.length;i<len;i++){mapping=mappings[i];if(mapping.generatedLine!==previousGeneratedLine){previousGeneratedColumn=0;while(mapping.generatedLine!==previousGeneratedLine){result+=";";previousGeneratedLine++}}else{if(i>0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1])){continue}result+=","}}result+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn);previousGeneratedColumn=mapping.generatedColumn;if(mapping.source!=null){result+=base64VLQ.encode(this._sources.indexOf(mapping.source)-previousSource);previousSource=this._sources.indexOf(mapping.source);result+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine);previousOriginalLine=mapping.originalLine-1;result+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn);previousOriginalColumn=mapping.originalColumn;if(mapping.name!=null){result+=base64VLQ.encode(this._names.indexOf(mapping.name)-previousName);previousName=this._names.indexOf(mapping.name)}}}return result};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(aSources,aSourceRoot){return aSources.map(function(source){if(!this._sourcesContents){return null}if(aSourceRoot!=null){source=util.relative(aSourceRoot,source)}var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){map.file=this._file}if(this._sourceRoot!=null){map.sourceRoot=this._sourceRoot}if(this._sourcesContents){map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)}return map};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};exports.SourceMapGenerator=SourceMapGenerator})},{"./array-set":33,"./base64-vlq":34,"./mapping-list":37,"./util":42,amdefine:43}],41:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var SourceMapGenerator=require("./source-map-generator").SourceMapGenerator;var util=require("./util");var REGEX_NEWLINE=/(\r?\n)/;var NEWLINE_CODE=10;var isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[];this.sourceContents={};this.line=aLine==null?null:aLine;this.column=aColumn==null?null:aColumn;this.source=aSource==null?null:aSource;this.name=aName==null?null:aName;this[isSourceNode]=true;if(aChunks!=null)this.add(aChunks)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode;var remainingLines=aGeneratedCode.split(REGEX_NEWLINE);var shiftNextLine=function(){var lineContents=remainingLines.shift();var newLine=remainingLines.shift()||"";return lineContents+newLine};var lastGeneratedLine=1,lastGeneratedColumn=0;var lastMapping=null;aSourceMapConsumer.eachMapping(function(mapping){if(lastMapping!==null){if(lastGeneratedLine<mapping.generatedLine){var code="";addMappingWithCode(lastMapping,shiftNextLine());lastGeneratedLine++;lastGeneratedColumn=0}else{var nextLine=remainingLines[0];var code=nextLine.substr(0,mapping.generatedColumn-lastGeneratedColumn);remainingLines[0]=nextLine.substr(mapping.generatedColumn-lastGeneratedColumn);lastGeneratedColumn=mapping.generatedColumn;addMappingWithCode(lastMapping,code);lastMapping=mapping;return}}while(lastGeneratedLine<mapping.generatedLine){node.add(shiftNextLine());lastGeneratedLine++}if(lastGeneratedColumn<mapping.generatedColumn){var nextLine=remainingLines[0];node.add(nextLine.substr(0,mapping.generatedColumn));remainingLines[0]=nextLine.substr(mapping.generatedColumn);lastGeneratedColumn=mapping.generatedColumn}lastMapping=mapping},this);if(remainingLines.length>0){if(lastMapping){addMappingWithCode(lastMapping,shiftNextLine())}node.add(remainingLines.join(""))}aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aRelativePath!=null){sourceFile=util.join(aRelativePath,sourceFile)}node.setSourceContent(sourceFile,content)}});return node;function addMappingWithCode(mapping,code){if(mapping===null||mapping.source===undefined){node.add(code)}else{var source=aRelativePath?util.join(aRelativePath,mapping.source):mapping.source;node.add(new SourceNode(mapping.originalLine,mapping.originalColumn,source,code,mapping.name))}}};SourceNode.prototype.add=function SourceNode_add(aChunk){if(Array.isArray(aChunk)){aChunk.forEach(function(chunk){this.add(chunk)},this)}else if(aChunk[isSourceNode]||typeof aChunk==="string"){if(aChunk){this.children.push(aChunk)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(aChunk){if(Array.isArray(aChunk)){for(var i=aChunk.length-1;i>=0;i--){this.prepend(aChunk[i])}}else if(aChunk[isSourceNode]||typeof aChunk==="string"){
this.children.unshift(aChunk)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.walk=function SourceNode_walk(aFn){var chunk;for(var i=0,len=this.children.length;i<len;i++){chunk=this.children[i];if(chunk[isSourceNode]){chunk.walk(aFn)}else{if(chunk!==""){aFn(chunk,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(aSep){var newChildren;var i;var len=this.children.length;if(len>0){newChildren=[];for(i=0;i<len-1;i++){newChildren.push(this.children[i]);newChildren.push(aSep)}newChildren.push(this.children[i]);this.children=newChildren}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(aPattern,aReplacement){var lastChild=this.children[this.children.length-1];if(lastChild[isSourceNode]){lastChild.replaceRight(aPattern,aReplacement)}else if(typeof lastChild==="string"){this.children[this.children.length-1]=lastChild.replace(aPattern,aReplacement)}else{this.children.push("".replace(aPattern,aReplacement))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(aSourceFile,aSourceContent){this.sourceContents[util.toSetString(aSourceFile)]=aSourceContent};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(aFn){for(var i=0,len=this.children.length;i<len;i++){if(this.children[i][isSourceNode]){this.children[i].walkSourceContents(aFn)}}var sources=Object.keys(this.sourceContents);for(var i=0,len=sources.length;i<len;i++){aFn(util.fromSetString(sources[i]),this.sourceContents[sources[i]])}};SourceNode.prototype.toString=function SourceNode_toString(){var str="";this.walk(function(chunk){str+=chunk});return str};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(aArgs){var generated={code:"",line:1,column:0};var map=new SourceMapGenerator(aArgs);var sourceMappingActive=false;var lastOriginalSource=null;var lastOriginalLine=null;var lastOriginalColumn=null;var lastOriginalName=null;this.walk(function(chunk,original){generated.code+=chunk;if(original.source!==null&&original.line!==null&&original.column!==null){if(lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}lastOriginalSource=original.source;lastOriginalLine=original.line;lastOriginalColumn=original.column;lastOriginalName=original.name;sourceMappingActive=true}else if(sourceMappingActive){map.addMapping({generated:{line:generated.line,column:generated.column}});lastOriginalSource=null;sourceMappingActive=false}for(var idx=0,length=chunk.length;idx<length;idx++){if(chunk.charCodeAt(idx)===NEWLINE_CODE){generated.line++;generated.column=0;if(idx+1===length){lastOriginalSource=null;sourceMappingActive=false}else if(sourceMappingActive){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}}else{generated.column++}}});this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent)});return{code:generated.code,map:map}};exports.SourceNode=SourceNode})},{"./source-map-generator":40,"./util":42,amdefine:43}],42:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs){return aArgs[aName]}else if(arguments.length===3){return aDefaultValue}else{throw new Error('"'+aName+'" is a required argument.')}}exports.getArg=getArg;var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);if(!match){return null}return{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}}exports.urlParse=urlParse;function urlGenerate(aParsedUrl){var url="";if(aParsedUrl.scheme){url+=aParsedUrl.scheme+":"}url+="//";if(aParsedUrl.auth){url+=aParsedUrl.auth+"@"}if(aParsedUrl.host){url+=aParsedUrl.host}if(aParsedUrl.port){url+=":"+aParsedUrl.port}if(aParsedUrl.path){url+=aParsedUrl.path}return url}exports.urlGenerate=urlGenerate;function normalize(aPath){var path=aPath;var url=urlParse(aPath);if(url){if(!url.path){return aPath}path=url.path}var isAbsolute=path.charAt(0)==="/";var parts=path.split(/\/+/);for(var part,up=0,i=parts.length-1;i>=0;i--){part=parts[i];if(part==="."){parts.splice(i,1)}else if(part===".."){up++}else if(up>0){if(part===""){parts.splice(i+1,up);up=0}else{parts.splice(i,2);up--}}}path=parts.join("/");if(path===""){path=isAbsolute?"/":"."}if(url){url.path=path;return urlGenerate(url)}return path}exports.normalize=normalize;function join(aRoot,aPath){if(aRoot===""){aRoot="."}if(aPath===""){aPath="."}var aPathUrl=urlParse(aPath);var aRootUrl=urlParse(aRoot);if(aRootUrl){aRoot=aRootUrl.path||"/"}if(aPathUrl&&!aPathUrl.scheme){if(aRootUrl){aPathUrl.scheme=aRootUrl.scheme}return urlGenerate(aPathUrl)}if(aPathUrl||aPath.match(dataUrlRegexp)){return aPath}if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path){aRootUrl.host=aPath;return urlGenerate(aRootUrl)}var joined=aPath.charAt(0)==="/"?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);if(aRootUrl){aRootUrl.path=joined;return urlGenerate(aRootUrl)}return joined}exports.join=join;function relative(aRoot,aPath){if(aRoot===""){aRoot="."}aRoot=aRoot.replace(/\/$/,"");var level=0;while(aPath.indexOf(aRoot+"/")!==0){var index=aRoot.lastIndexOf("/");if(index<0){return aPath}aRoot=aRoot.slice(0,index);if(aRoot.match(/^([^\/]+:\/)?\/*$/)){return aPath}++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)}exports.relative=relative;function toSetString(aStr){return"$"+aStr}exports.toSetString=toSetString;function fromSetString(aStr){return aStr.substr(1)}exports.fromSetString=fromSetString;function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp=mappingA.source-mappingB.source;if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0||onlyCompareOriginal){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp}cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}return mappingA.name-mappingB.name}exports.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0||onlyCompareGenerated){return cmp}cmp=mappingA.source-mappingB.source;if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp}return mappingA.name-mappingB.name}exports.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(aStr1,aStr2){if(aStr1===aStr2){return 0}if(aStr1>aStr2){return 1}return-1}function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp}cmp=strcmp(mappingA.source,mappingB.source);if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp}return strcmp(mappingA.name,mappingB.name)}exports.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated})},{amdefine:43}],43:[function(require,module,exports){(function(process,__filename){"use strict";function amdefine(module,requireFn){"use strict";var defineCache={},loaderCache={},alreadyCalled=false,path=require("path"),makeRequire,stringRequire;function trimDots(ary){var i,part;for(i=0;ary[i];i+=1){part=ary[i];if(part==="."){ary.splice(i,1);i-=1}else if(part===".."){if(i===1&&(ary[2]===".."||ary[0]==="..")){break}else if(i>0){ary.splice(i-1,2);i-=2}}}}function normalize(name,baseName){var baseParts;if(name&&name.charAt(0)==="."){if(baseName){baseParts=baseName.split("/");baseParts=baseParts.slice(0,baseParts.length-1);baseParts=baseParts.concat(name.split("/"));trimDots(baseParts);name=baseParts.join("/")}}return name}function makeNormalize(relName){return function(name){return normalize(name,relName)}}function makeLoad(id){function load(value){loaderCache[id]=value}load.fromText=function(id,text){throw new Error("amdefine does not implement load.fromText")};return load}makeRequire=function(systemRequire,exports,module,relId){function amdRequire(deps,callback){if(typeof deps==="string"){return stringRequire(systemRequire,exports,module,deps,relId)}else{deps=deps.map(function(depName){return stringRequire(systemRequire,exports,module,depName,relId)});if(callback){process.nextTick(function(){callback.apply(null,deps)})}}}amdRequire.toUrl=function(filePath){if(filePath.indexOf(".")===0){return normalize(filePath,path.dirname(module.filename))}else{return filePath}};return amdRequire};requireFn=requireFn||function req(){return module.require.apply(module,arguments)};function runFactory(id,deps,factory){var r,e,m,result;if(id){e=loaderCache[id]={};m={id:id,uri:__filename,exports:e};r=makeRequire(requireFn,e,m,id)}else{if(alreadyCalled){throw new Error("amdefine with no module ID cannot be called more than once per file.")}alreadyCalled=true;e=module.exports;m=module;r=makeRequire(requireFn,e,m,module.id)}if(deps){deps=deps.map(function(depName){return r(depName)})}if(typeof factory==="function"){result=factory.apply(m.exports,deps)}else{result=factory}if(result!==undefined){m.exports=result;if(id){loaderCache[id]=m.exports}}}stringRequire=function(systemRequire,exports,module,id,relId){var index=id.indexOf("!"),originalId=id,prefix,plugin;if(index===-1){id=normalize(id,relId);if(id==="require"){return makeRequire(systemRequire,exports,module,relId)}else if(id==="exports"){return exports}else if(id==="module"){return module}else if(loaderCache.hasOwnProperty(id)){return loaderCache[id]}else if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}else{if(systemRequire){return systemRequire(originalId)}else{throw new Error("No module with ID: "+id)}}}else{prefix=id.substring(0,index);id=id.substring(index+1,id.length);plugin=stringRequire(systemRequire,exports,module,prefix,relId);if(plugin.normalize){id=plugin.normalize(id,makeNormalize(relId))}else{id=normalize(id,relId)}if(loaderCache[id]){return loaderCache[id]}else{plugin.load(id,makeRequire(systemRequire,exports,module,relId),makeLoad(id),{});return loaderCache[id]}}};function define(id,deps,factory){if(Array.isArray(id)){factory=deps;deps=id;id=undefined}else if(typeof id!=="string"){factory=id;id=deps=undefined}if(deps&&!Array.isArray(deps)){factory=deps;deps=undefined}if(!deps){deps=["require","exports","module"]}if(id){defineCache[id]=[id,deps,factory]}else{runFactory(id,deps,factory)}}define.require=function(id){if(loaderCache[id]){return loaderCache[id]}if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}};define.amd={};return define}module.exports=amdefine}).call(this,require("_process"),"/node_modules/postcss/node_modules/source-map/node_modules/amdefine/amdefine.js")},{_process:7,path:6}],44:[function(require,module,exports){module.exports={name:"postcss",version:"4.1.16",description:"Tool for transforming CSS with JS plugins",keywords:["css","postproccessor","parser","source map","transform","manipulation","preprocess","transpiler"],author:{name:"Andrey Sitnik",email:"andrey@sitnik.ru"},license:"MIT",repository:{type:"git",url:"https://github.com/postcss/postcss.git"},dependencies:{"es6-promise":"~2.3.0","source-map":"~0.4.2","js-base64":"~2.1.8"},devDependencies:{"concat-with-sourcemaps":"1.0.2","gulp-json-editor":"2.2.1","load-resources":"0.1.0","gulp-eslint":"0.15.0","gulp-babel":"5.1.0","gulp-mocha":"2.1.2",yaspeller:"2.5.0","gulp-util":"3.0.6","gulp-run":"1.6.8","fs-extra":"0.21.0",sinon:"1.15.4",mocha:"2.2.5",gulp:"3.9.0",chai:"3.0.0",babel:"5.6.14"},scripts:{test:"gulp"},main:"lib/postcss",readme:"# PostCSS [![Build Status][ci-img]][ci] [![Gitter][chat-img]][chat]\n\n<img align=\"right\" width=\"95\" height=\"95\"\n title=\"Philosopher’s stone, logo of PostCSS\"\n src=\"http://postcss.github.io/postcss/logo.svg\">\n\nPostCSS is a tool for transforming CSS with JS plugins.\nThese plugins can support variables and mixins, transpile future CSS syntax,\ninline images, and more.\n\nGoogle, Twitter, Alibaba, and Shopify uses PostCSS.\nIts plugin, [Autoprefixer], is one of the most popular CSS processors.\n\nPostCSS can do the same work as preprocessors like Sass, Less, and Stylus.\nBut PostCSS is modular, 3-30 times faster, and much more powerful.\n\nTwitter account: [@postcss](https://twitter.com/postcss).\nWeibo account: [postcss](http://weibo.com/postcss).\nVK.com page: [postcss](https://vk.com/postcss).\n\n[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg\n[ci-img]: https://img.shields.io/travis/postcss/postcss.svg\n[chat]: https://gitter.im/postcss/postcss\n[ci]: https://travis-ci.org/postcss/postcss\n\n[Examples](#what-is-postcss) | [Features](#features) | [Usage](#usage) | [Plugins](#plugins) | [Write Own Plugin](#how-to-develop-postcss-plugin) | [Options](#options)\n--- | --- | --- | --- | --- | ---\n\n<a href=\"https://evilmartians.com/?utm_source=postcss\">\n<img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\" alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n[Autoprefixer]: https://github.com/postcss/autoprefixer\n\n## What is PostCSS\n\nPostCSS itself is very small. It includes only a CSS parser,\na CSS node tree API, a source map generator, and a node tree stringifier.\n\nAll CSS transformations are made by plugins. And these plugins are just\nsmall plain JS functions, which receive a CSS node tree, transform it,\nand return a modified tree.\n\nYou can use the [cssnext] plugin pack and write future CSS code right now:\n\n```css\n:root {\n --mainColor: #ffbbaaff;\n}\n@custom-media --mobile (width <= 640px);\n@custom-selector --heading h1, h2, h3, h4, h5, h6;\n\n.post-article :--heading {\n color: color( var(--mainColor) blackness(+20%) );\n}\n@media (--mobile) {\n .post-article :--heading {\n margin-top: 0;\n }\n}\n```\n\nOr if you like the Sass syntax, you could combine\n[`postcss-nested`] and [`postcss-mixins`]:\n\n```css\n@define-mixin social-icon $network $color {\n &.is-$network {\n background: $color;\n }\n}\n\n.social-icon {\n @mixin social-icon twitter #55acee;\n @mixin social-icon facebook #3b5998;\n\n padding: 10px 5px;\n @media (max-width: 640px) {\n padding: 0;\n }\n}\n```\n\n[cssnext]: http://cssnext.io/\n\n## Features\n\nPreprocessors are template languages, where you mix styles with code\n(like PHP does with HTML).\nIn contrast, in PostCSS you write a custom subset of CSS.\nAll code can only be in JS plugins.\n\nAs a result, PostCSS offers three main benefits:\n\n* **Performance:** PostCSS, written in JS, is [3 times faster] than libsass,\n which is written in C++.\n* **Future CSS:** PostCSS plugins can read and rebuild an entire document,\n meaning that they can provide new language features. For example, [cssnext]\n transpiles the latest W3C drafts to current CSS syntax.\n* **New abilities:** PostCSS plugins can read and change every part of CSS.\n It makes many new classes of tools possible. [Autoprefixer], [`rtlcss`],\n [`doiuse`] or [`postcss-colorblind`] are good examples.\n\n[3 times faster]: https://github.com/postcss/benchmark\n\n## Usage\n\nYou just need to follow these two steps to use PostCSS:\n\n1. Add PostCSS to your build tool.\n2. Select plugins from the list below and add them to your PostCSS process.\n\nThere are plugins for [Grunt], [Gulp], [webpack], [Broccoli],\n[Brunch] and [ENB].\n\n```js\ngulp.task('css', function () {\n var postcss = require('gulp-postcss');\n return gulp.src('src/**/*.css')\n .pipe( postcss([ require('cssnext')(), require('cssnano')() ]) )\n .pipe( gulp.dest('build/') );\n});\n```\n\nFor other environments, you can use the [CLI tool] or the JS API:\n\n```js\nvar postcss = require('postcss');\npostcss([ require('cssnext')(), require('cssnano')() ])\n .process(css, { from: 'src/app.css', to: 'app.css' })\n .then(function (result) {\n fs.writeFileSync('app.css', result.css);\n if ( result.map ) fs.writeFileSync('app.css.map', result.map);\n });\n```\n\nYou can also use PostCSS plugins with the Stylus by using [`poststylus`].\n\nRead the [PostCSS API] for more details about the JS API.\n\n[`poststylus`]: https://github.com/seaneking/poststylus\n[PostCSS API]: https://github.com/postcss/postcss/blob/master/docs/api.md\n[Broccoli]: https://github.com/jeffjewiss/broccoli-postcss\n[CLI tool]: https://github.com/code42day/postcss-cli\n[webpack]: https://github.com/postcss/postcss-loader\n[Brunch]: https://github.com/iamvdo/postcss-brunch\n[Grunt]: https://github.com/nDmitry/grunt-postcss\n[Gulp]: https://github.com/postcss/gulp-postcss\n[ENB]: https://github.com/theprotein/enb-postcss\n\n## Plugins\n\n### Control\n\nThere is two way to make PostCSS magic more explicit.\n\nDefine a plugins contexts and switch between them in different parts of CSS\nby [`postcss-plugin-context`]:\n\n```css\n.css-example.is-test-for-css4-browsers {\n color: gray(255, 50%);\n}\n@context cssnext {\n .css-example.is-fallback-for-all-browsers {\n color: gray(255, 50%);\n }\n}\n```\n\nOr to enable plugins right in CSS by [`postcss-use`]:\n\n```css\n@use autoprefixer(browsers: ['last 2 versions']);\n\n:fullscreen a {\n display: flex\n}\n```\n\n[`postcss-plugin-context`]: https://github.com/postcss/postcss-plugin-context\n[`postcss-use`]: https://github.com/postcss/postcss-use\n\n### Packs\n\n* [`atcss`] contains plugins that transform your CSS according\n to special annotation comments.\n* [`cssnano`] contains plugins that optimize CSS size for use in production.\n* [`cssnext`] contains plugins that allow you to use future CSS features today.\n\n[`cssnano`]: https://github.com/ben-eb/cssnano\n[`cssnext`]: http://cssnext.io/\n[`atcss`]: https://github.com/morishitter/atcss\n\n### Future CSS Syntax\n\n* [`postcss-color-function`] supports functions to transform colors.\n* [`postcss-color-gray`] supports the `gray()` function.\n* [`postcss-color-hex-alpha`] supports `#rrggbbaa` and `#rgba` notation.\n* [`postcss-color-hwb`] transforms `hwb()` to widely compatible `rgb()`.\n* [`postcss-color-rebeccapurple`] supports the `rebeccapurple` color.\n* [`postcss-conic-gradient`] supports the `conic-gradient` background.\n* [`postcss-css-variables`] supports variables for nested rules,\n selectors, and at-rules\n* [`postcss-custom-media`] supports custom aliases for media queries.\n* [`postcss-custom-properties`] supports variables, using syntax from\n the W3C Custom Properties.\n* [`postcss-custom-selectors`] adds custom aliases for selectors.\n* [`postcss-font-variant`] transpiles human-readable `font-variant`\n to more widely supported CSS.\n* [`postcss-host`] makes the Shadow DOM’s `:host` selector work properly\n with pseudo-classes.\n* [`postcss-media-minmax`] adds `<=` and `=>` statements to media queries.\n* [`postcss-pseudo-class-any-link`] adds `:any-link` pseudo-class.\n* [`postcss-selector-not`] transforms CSS4 `:not()` to CSS3 `:not()`.\n* [`mq4-hover-shim`] supports the `@media (hover)` feature.\n\nSee also [`cssnext`] plugins pack to add future CSS syntax by one line of code.\n\n### Fallbacks\n\n* [`postcss-color-rgba-fallback`] transforms `rgba()` to hexadecimal.\n* [`postcss-epub`] adds the `-epub-` prefix to relevant properties.\n* [`postcss-image-set`] adds `background-image` with first image\n for `image-set()`.\n* [`postcss-opacity`] adds opacity filter for IE8.\n* [`postcss-pseudoelements`] Convert `::` selectors into `:` selectors\n for IE 8 compatibility.\n* [`postcss-vmin`] generates `vm` fallback for `vmin` unit in IE9.\n* [`postcss-will-change`] inserts 3D hack before `will-change` property.\n* [`autoprefixer`] adds vendor prefixes for you, using data from Can I Use.\n* [`cssgrace`] provides various helpers and transpiles CSS 3 for IE\n and other old browsers.\n* [`pixrem`] generates pixel fallbacks for `rem` units.\n\n### Language Extensions\n\n* [`postcss-bem`] adds at-rules for BEM and SUIT style classes.\n* [`postcss-conditionals`] adds `@if` statements.\n* [`postcss-define-property`] to define properties shortcut.\n* [`postcss-each`] adds `@each` statement.\n* [`postcss-for`] adds `@for` loops.\n* [`postcss-map`] enables configuration maps.\n* [`postcss-mixins`] enables mixins more powerful than Sass’s,\n defined within stylesheets or in JS.\n* [`postcss-media-variables`] adds support for `var()` and `calc()`\n in `@media` rules\n* [`postcss-modular-scale`] adds a modular scale `ms()` function.\n* [`postcss-nested`] unwraps nested rules.\n* [`postcss-pseudo-class-enter`] transforms `:enter` into `:hover` and `:focus`.\n* [`postcss-quantity-queries`] enables quantity queries.\n* [`postcss-simple-extend`] supports extending of silent classes,\n like Sass’s `@extend`.\n* [`postcss-simple-vars`] supports for Sass-style variables.\n* [`postcss-strip-units`] strips units off of property values.\n* [`postcss-vertical-rhythm`] adds a vertical rhythm unit\n based on `font-size` and `line-height`.\n* [`csstyle`] adds components workflow to your styles.\n\n### Colors\n\n* [`postcss-brand-colors`] inserts company brand colors\n in the `brand-colors` module.\n* [`postcss-color-alpha`] transforms `#hex.a`, `black(alpha)` and `white(alpha)`\n to `rgba()`.\n* [`postcss-color-hcl`] transforms `hcl(H, C, L)` and `HCL(H, C, L, alpha)`\n to `#rgb` and `rgba()`.\n* [`postcss-color-mix`] mixes two colors together.\n* [`postcss-color-palette`] transforms CSS 2 color keywords to a custom palette.\n* [`postcss-color-pantone`] transforms pantone color to RGB.\n* [`postcss-color-scale`] adds a color scale `cs()` function.\n* [`postcss-hexrgba`] adds shorthand hex `rgba(hex, alpha)` method.\n\n### Grids\n\n* [`postcss-grid`] adds a semantic grid system.\n* [`postcss-neat`] is a semantic and fluid grid framework.\n* [`lost`] feature-rich `calc()` grid system by Jeet author.\n\n### Optimizations\n\n* [`postcss-assets`] allows you to simplify URLs, insert image dimensions,\n and inline files.\n* [`postcss-at2x`] handles retina background images via use of `at-2x` keyword.\n* [`postcss-calc`] reduces `calc()` to values\n (when expressions involve the same units).\n* [`postcss-data-packer`] moves embedded Base64 data to a separate file.\n* [`postcss-import`] inlines the stylesheets referred to by `@import` rules.\n* [`postcss-single-charset`] ensures that there is one and only one\n `@charset` rule at the top of file.\n* [`postcss-sprites`] generates CSS sprites from stylesheets.\n* [`postcss-url`] rebases or inlines `url()`s.\n* [`postcss-zindex`] rebases positive `z-index` values.\n* [`css-byebye`] removes the CSS rules that you don’t want.\n* [`css-mqpacker`] joins matching CSS media queries into a single statement.\n* [`webpcss`] adds URLs for WebP images for browsers that support WebP.\n\nSee also plugins in modular minifier [`cssnano`].\n\n### Shortcuts\n\n* [`postcss-alias`] to create shorter aliases for properties.\n* [`postcss-border`] adds shorthand for width and color of all borders\n in `border` property.\n* [`postcss-clearfix`] adds `fix` and `fix-legacy` properties to the `clear`\n declaration.\n* [`postcss-default-unit`] adds default unit to numeric CSS properties.\n* [`postcss-easings`] replaces easing names from easings.net\n with `cubic-bezier()` functions.\n* [`postcss-focus`] adds `:focus` selector to every `:hover`.\n* [`postcss-fontpath`] adds font links for different browsers.\n* [`postcss-generate-preset`] allows quick generation of rules.\n Useful for creating repetitive utilities.\n* [`postcss-position`] adds shorthand declarations for position attributes.\n* [`postcss-property-lookup`] allows referencing property values without\n a variable.\n* [`postcss-short`] adds and extends numerous shorthand properties.\n* [`postcss-size`] adds a `size` shortcut that sets width and height\n with one declaration.\n* [`postcss-verthorz`] adds vertical and horizontal spacing declarations.\n\n### Others\n\n* [`postcss-class-prefix`] adds a prefix/namespace to class selectors.\n* [`postcss-colorblind`] transforms colors using filters to simulate\n colorblindness.\n* [`postcss-fakeid`] transforms `#foo` IDs to attribute selectors `[id=\"foo\"]`.\n* [`postcss-flexboxfixer`] unprefixes `-webkit-` only flexbox in legacy CSS.\n* [`postcss-gradientfixer`] unprefixes `-webkit-` only gradients in legacy CSS.\n* [`postcss-log-warnings`] logs warnings messages from other plugins\n in the console.\n* [`postcss-messages`] displays warning messages from other plugins\n right in your browser.\n* [`postcss-pxtorem`] converts pixel units to `rem`.\n* [`postcss-style-guide`] generates a style guide automatically.\n* [`rtlcss`] mirrors styles for right-to-left locales.\n* [`stylehacks`] removes CSS hacks based on browser support.\n\n### Analysis\n\n* [`postcss-bem-linter`] lints CSS for conformance to SUIT CSS methodology.\n* [`postcss-cssstats`] returns an object with CSS statistics.\n* [`css2modernizr`] creates a Modernizr config file\n that requires only the tests that your CSS uses.\n* [`doiuse`] lints CSS for browser support, using data from Can I Use.\n* [`list-selectors`] lists and categorizes the selectors used in your CSS,\n for code review.\n\n### Fun\n\n* [`postcss-australian-stylesheets`] Australian Style Sheets.\n* [`postcss-canadian-stylesheets`] Canadian Style Sheets.\n* [`postcss-pointer`] Replaces `pointer: cursor` with `cursor: pointer`.\n* [`postcss-spiffing`] lets you use British English in your CSS.\n\n[`postcss-australian-stylesheets`]: https://github.com/dp-lewis/postcss-australian-stylesheets\n[`postcss-pseudo-class-any-link`]: https://github.com/jonathantneal/postcss-pseudo-class-any-link\n[`postcss-canadian-stylesheets`]: https://github.com/chancancode/postcss-canadian-stylesheets\n[`postcss-color-rebeccapurple`]: https://github.com/postcss/postcss-color-rebeccapurple\n[`postcss-color-rgba-fallback`]: https://github.com/postcss/postcss-color-rgba-fallback\n[`postcss-discard-duplicates`]: https://github.com/ben-eb/postcss-discard-duplicates\n[`postcss-minify-font-weight`]: https://github.com/ben-eb/postcss-minify-font-weight\n[`postcss-pseudo-class-enter`]: https://github.com/jonathantneal/postcss-pseudo-class-enter\n[`postcss-custom-properties`]: https://github.com/postcss/postcss-custom-properties\n[`postcss-discard-font-face`]: https://github.com/ben-eb/postcss-discard-font-face\n[`postcss-custom-selectors`]: https://github.com/postcss/postcss-custom-selectors\n[`postcss-discard-comments`]: https://github.com/ben-eb/postcss-discard-comments\n[`postcss-minify-selectors`]: https://github.com/ben-eb/postcss-minify-selectors\n[`postcss-quantity-queries`]: https://github.com/pascalduez/postcss-quantity-queries\n[`postcss-color-hex-alpha`]: https://github.com/postcss/postcss-color-hex-alpha\n[`postcss-define-property`]: https://github.com/daleeidd/postcss-define-property\n[`postcss-generate-preset`]: https://github.com/simonsmith/postcss-generate-preset\n[`postcss-media-variables`]: https://github.com/WolfgangKluge/postcss-media-variables\n[`postcss-property-lookup`]: https://github.com/simonsmith/postcss-property-lookup\n[`postcss-vertical-rhythm`]: https://github.com/markgoodyear/postcss-vertical-rhythm\n[`postcss-color-function`]: https://github.com/postcss/postcss-color-function\n[`postcss-conic-gradient`]: https://github.com/jonathantneal/postcss-conic-gradient\n[`postcss-convert-values`]: https://github.com/ben-eb/postcss-convert-values\n[`postcss-pseudoelements`]: https://github.com/axa-ch/postcss-pseudoelements\n[`postcss-single-charset`]: https://github.com/hail2u/postcss-single-charset\n[`postcss-color-palette`]: https://github.com/zaim/postcss-color-palette\n[`postcss-color-pantone`]: https://github.com/longdog/postcss-color-pantone\n[`postcss-css-variables`]: https://github.com/MadLittleMods/postcss-css-variables\n[`postcss-discard-empty`]: https://github.com/ben-eb/postcss-discard-empty\n[`postcss-gradientfixer`]: https://github.com/hallvors/postcss-gradientfixer\n[`postcss-modular-scale`]: https://github.com/kristoferjoseph/postcss-modular-scale\n[`postcss-normalize-url`]: https://github.com/ben-eb/postcss-normalize-url\n[`postcss-reduce-idents`]: https://github.com/ben-eb/postcss-reduce-idents\n[`postcss-simple-extend`]: https://github.com/davidtheclark/postcss-simple-extend\n[`postcss-brand-colors`]: https://github.com/postcss/postcss-brand-colors\n[`postcss-class-prefix`]: https://github.com/thompsongl/postcss-class-prefix\n[`postcss-conditionals`]: https://github.com/andyjansson/postcss-conditionals\n[`postcss-custom-media`]: https://github.com/postcss/postcss-custom-media\n[`postcss-default-unit`]: https://github.com/antyakushev/postcss-default-unit\n[`postcss-flexboxfixer`]: https://github.com/hallvors/postcss-flexboxfixer\n[`postcss-font-variant`]: https://github.com/postcss/postcss-font-variant\n[`postcss-log-warnings`]: https://github.com/davidtheclark/postcss-log-warnings\n[`postcss-media-minmax`]: https://github.com/postcss/postcss-media-minmax\n[`postcss-merge-idents`]: https://github.com/ben-eb/postcss-merge-idents\n[`postcss-selector-not`]: https://github.com/postcss/postcss-selector-not\n[`postcss-color-alpha`]: https://github.com/avanes/postcss-color-alpha\n[`postcss-color-scale`]: https://github.com/kristoferjoseph/postcss-color-scale\n[`postcss-data-packer`]: https://github.com/Ser-Gen/postcss-data-packer\n[`postcss-font-family`]: https://github.com/ben-eb/postcss-font-family\n[`postcss-merge-rules`]: https://github.com/ben-eb/postcss-merge-rules\n[`postcss-simple-vars`]: https://github.com/postcss/postcss-simple-vars\n[`postcss-strip-units`]: https://github.com/whitneyit/postcss-strip-units\n[`postcss-style-guide`]: https://github.com/morishitter/postcss-style-guide\n[`postcss-will-change`]: https://github.com/postcss/postcss-will-change\n[`postcss-bem-linter`]: https://github.com/necolas/postcss-bem-linter\n[`postcss-color-gray`]: https://github.com/postcss/postcss-color-gray\n[`postcss-colorblind`]: https://github.com/btholt/postcss-colorblind\n[`postcss-color-hcl`]: https://github.com/devgru/postcss-color-hcl\n[`postcss-color-hwb`]: https://github.com/postcss/postcss-color-hwb\n[`postcss-color-mix`]: https://github.com/iamstarkov/postcss-color-mix\n[`postcss-image-set`]: https://github.com/alex499/postcss-image-set\n[`postcss-clearfix`]: https://github.com/seaneking/postcss-clearfix\n[`postcss-colormin`]: https://github.com/ben-eb/colormin\n[`postcss-cssstats`]: https://github.com/cssstats/postcss-cssstats\n[`postcss-messages`]: https://github.com/postcss/postcss-messages\n[`postcss-position`]: https://github.com/seaneking/postcss-position\n[`postcss-spiffing`]: https://github.com/HashanP/postcss-spiffing\n[`postcss-verthorz`]: https://github.com/davidhemphill/postcss-verthorz\n[`pleeease-filters`]: https://github.com/iamvdo/pleeease-filters\n[`postcss-fontpath`]: https://github.com/seaneking/postcss-fontpath\n[`postcss-easings`]: https://github.com/postcss/postcss-easings\n[`postcss-hexrgba`]: https://github.com/seaneking/postcss-hexrgba\n[`postcss-opacity`]: https://github.com/iamvdo/postcss-opacity\n[`postcss-pointer`]: https://github.com/markgoodyear/postcss-pointer\n[`postcss-pxtorem`]: https://github.com/cuth/postcss-pxtorem\n[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites\n[`postcss-assets`]: https://github.com/borodean/postcss-assets\n[`postcss-border`]: https://github.com/andrepolischuk/postcss-border\n[`postcss-fakeid`]: https://github.com/pathsofdesign/postcss-fakeid\n[`postcss-import`]: https://github.com/postcss/postcss-import\n[`postcss-mixins`]: https://github.com/postcss/postcss-mixins\n[`postcss-nested`]: https://github.com/postcss/postcss-nested\n[`postcss-zindex`]: https://github.com/ben-eb/postcss-zindex\n[`list-selectors`]: https://github.com/davidtheclark/list-selectors\n[`mq4-hover-shim`]: https://github.com/twbs/mq4-hover-shim\n[`postcss-focus`]: https://github.com/postcss/postcss-focus\n[`css2modernizr`]: https://github.com/vovanbo/css2modernizr\n[`postcss-short`]: https://github.com/jonathantneal/postcss-short\n[`postcss-alias`]: https://github.com/seaneking/postcss-alias\n[`postcss-at2x`]: https://github.com/simonsmith/postcss-at2x\n[`postcss-calc`]: https://github.com/postcss/postcss-calc\n[`postcss-each`]: https://github.com/outpunk/postcss-each\n[`postcss-epub`]: https://github.com/Rycochet/postcss-epub\n[`postcss-grid`]: https://github.com/andyjansson/postcss-grid\n[`postcss-host`]: https://github.com/vitkarpov/postcss-host\n[`postcss-neat`]: https://github.com/jo-asakura/postcss-neat\n[`postcss-size`]: https://github.com/postcss/postcss-size\n[`postcss-vmin`]: https://github.com/iamvdo/postcss-vmin\n[`autoprefixer`]: https://github.com/postcss/autoprefixer\n[`css-mqpacker`]: https://github.com/hail2u/node-css-mqpacker\n[`postcss-bem`]: https://github.com/ileri/postcss-bem\n[`postcss-for`]: https://github.com/antyakushev/postcss-for\n[`postcss-map`]: https://github.com/pascalduez/postcss-map\n[`postcss-url`]: https://github.com/postcss/postcss-url\n[`css-byebye`]: https://github.com/AoDev/css-byebye\n[`stylehacks`]: https://github.com/ben-eb/stylehacks\n[`cssgrace`]: https://github.com/cssdream/cssgrace\n[`csstyle`]: https://github.com/geddski/csstyle\n[`webpcss`]: https://github.com/lexich/webpcss\n[`doiuse`]: https://github.com/anandthakker/doiuse\n[`pixrem`]: https://github.com/robwierzbowski/node-pixrem\n[`rtlcss`]: https://github.com/MohammadYounes/rtlcss\n[`lost`]: https://github.com/corysimmons/lost\n\n## How to Develop PostCSS Plugin\n\n* [Plugin Guidelines](https://github.com/postcss/postcss/blob/master/docs/guidelines/plugin.md)\n* [Plugin Boilerplate](https://github.com/postcss/postcss-plugin-boilerplate)\n* [PostCSS API](https://github.com/postcss/postcss/blob/master/docs/api.md)\n* [Ask questions](https://gitter.im/postcss/postcss)\n\n## Options\n\n### Source Map\n\nPostCSS has great [source maps] support. It can read and interpret maps\nfrom previous transformation steps, autodetect the format that you expect,\nand output both external and inline maps.\n\nTo ensure that you generate an accurate source map, you must indicate the input\nand output CSS files paths — using the options `from` and `to`, respectively.\n\nTo generate a new source map with the default options, simply set `map: true`.\nThis will generate an inline source map that contains the source content.\nIf you don’t want the map inlined, you can use set `map.inline: false`.\n\n```js\nprocessor\n .process(css, {\n from: 'app.sass.css',\n to: 'app.css',\n map: { inline: false },\n })\n .then(function (result) {\n result.map //=> '{ \"version\":3,\n // \"file\":\"app.css\",\n // \"sources\":[\"app.sass\"],\n // \"mappings\":\"AAAA,KAAI\" }'\n });\n```\n\nIf PostCSS finds source maps from a previous transformation,\nit will automatically update that source map with the same options.\n\nIf you want more control over source map generation, you can define the `map`\noption as an object with the following parameters:\n\n* `inline` boolean: indicates that the source map should be embedded\n in the output CSS as a Base64-encoded comment. By default, it is `true`.\n But if all previous maps are external, not inline, PostCSS will not embed\n the map even if you do not set this option.\n\n If you have an inline source map, the `result.map` property will be empty,\n as the source map will be contained within the text of `result.css`.\n\n* `prev` string, object or boolean: source map content from\n a previous processing step (for example, Sass compilation).\n PostCSS will try to read the previous source map automatically\n (based on comments within the source CSS), but you can use this option\n to identify it manually. If desired, you can omit the previous map\n with `prev: false`.\n\n* `sourcesContent` boolean: indicates that PostCSS should set the origin\n content (for example, Sass source) of the source map. By default, it’s `true`.\n But if all previous maps do not contain sources content, PostCSS will also\n leave it out even if you do not set this option.\n\n* `annotation` boolean or string: indicates that PostCSS should add annotation\n comments to the CSS. By default, PostCSS will always add a comment with a path\n to the source map. But if the input CSS does not have any annotation\n comment, PostCSS will omit it, too, even if you do not set this option.\n\n By default, PostCSS presumes that you want to save the source map as\n `opts.to + '.map'` and will use this path in the annotation comment.\n But you can set another path by providing a string value for `annotation`.\n\n If you have set `inline: true`, annotation cannot be disabled.\n\n[source maps]: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/\n\n### Safe Mode\n\nIf you provide a `safe: true` option to the `process` or `parse` methods,\nPostCSS will try to correct any syntax errors that it finds in the CSS.\n\n```js\npostcss.parse('a {'); // will throw \"Unclosed block\"\npostcss.parse('a {', { safe: true }); // will return CSS root for a {}\n```\n\nThis is useful for legacy code filled with hacks. Another use-case\nis interactive tools with live input — for example,\nthe [Autoprefixer demo](http://jsfiddle.net/simevidas/udyTs/show/light/).\n",
readmeFilename:"README.md",bugs:{url:"https://github.com/postcss/postcss/issues"},homepage:"https://github.com/postcss/postcss",_id:"postcss@4.1.16",_from:"postcss@^4.1.0"}},{}],"postcss-extend":[function(require,module,exports){"use strict";var postcss=require("postcss");module.exports=postcss.plugin("postcss-simple-extend",function simpleExtend(){return function(css,result){var definingAtRules=["define-placeholder","define-extend","extend-define"];var extendingAtRules=["extend"];var recurseStack=[];var isAntiPatternCSS=false;css.eachAtRule(function(atRule){if(definingAtRules.indexOf(atRule.name)!==-1){processDefinition(atRule)}else if(extendingAtRules.indexOf(atRule.name)!==-1){processExtension(atRule)}});css.eachRule(function(targetNode){var tgtSaved=targetNode.selectors;var selectorAccumulator;for(var i=0;i<tgtSaved.length;i++){if(tgtSaved[i].substring(0,20)!=="@define-placeholder "&&tgtSaved[i].charAt(0)!=="%"){if(!selectorAccumulator){selectorAccumulator=[tgtSaved[i]]}else{selectorAccumulator.push(tgtSaved[i])}}else if(tgtSaved.length===1){targetNode.removeSelf()}}if(selectorAccumulator){targetNode.selector=selectorAccumulator.join(", ")}});function processDefinition(atRule){if(isBadDefinitionLocation(atRule)){atRule.removeSelf();return}var definition=postcss.rule();definition.semicolon=atRule.semicolon;atRule.nodes.forEach(function(node){if(isBadDefinitionNode(node))return;var clone=node.clone();clone.before=node.before;clone.after=node.after;clone.between=node.between;definition.append(clone)});definition.selector="@define-placeholder "+atRule.params.toString();atRule.parent.insertBefore(atRule,definition);atRule.removeSelf()}function processExtension(atRule){if(isBadExtension(atRule)){if(!atRule.parent.nodes.length||atRule.parent.nodes.length===1&&atRule.parent.type!=="root"){atRule.parent.removeSelf()}else{atRule.removeSelf()}return}var originSels=atRule.parent.selectors;var selectorRetainer=[];var couldExtend=false;var subTarget={node:{},bool:false};if(!hasMediaAncestor(atRule)){css.eachRule(function(targetNode){var tgtSaved=targetNode.selectors;for(var i=0;i<tgtSaved.length;i++){if(tgtSaved[i].substring(0,20)==="@define-placeholder "){tgtSaved[i]=tgtSaved[i].substring(20,tgtSaved[i].length)}}var tgtAccumulate=targetNode.selectors;for(var n=0;n<tgtSaved.length;n++){if(atRule.params===tgtSaved[n]){if(extensionRecursionHandler(atRule,targetNode)){processExtension(atRule);couldExtend=true;return}tgtAccumulate=tgtAccumulate.concat(originSels);couldExtend=true}else if(tgtSaved[n].substring(1).search(/[\s.:#]/)+1!==-1){var tgtBase=tgtSaved[n].substring(0,tgtSaved[n].substring(1).search(/[\s.:#]/)+1);var tgtSub=tgtSaved[n].substring(tgtSaved[n].substring(1).search(/[\s.:#]/)+1,tgtSaved[n].length);if(atRule.params===tgtBase){if(extensionRecursionHandler(atRule,targetNode)){processExtension(atRule);couldExtend=true;return}tgtAccumulate=tgtAccumulate.concat(formSubSelector(originSels,tgtSub));couldExtend=true}}}if(couldExtend){tgtAccumulate=uniqreq(tgtAccumulate).toString().replace(/,/g,", ");targetNode.selector=tgtAccumulate}})}else{var backFirstTargetNode;var targetNodeArray=[];css.eachRule(function(subRule){if(!hasMediaAncestor(subRule)||subRule.parent===atRule.parent.parent){targetNodeArray.push(subRule)}else if(subRule.selectors.indexOf(atRule.params)!==-1){isBadExtensionPair(atRule,subRule)}else{for(var s=0;s<subRule.selectors.length;s++){if(subRule.selectors[s].substring(1).search(/[\s.:#]/)+1!==-1&&subRule.selectors[s].substring(0,subRule.selectors[s].substring(1).search(/[\s.:#]/)+1)===atRule.params){isBadExtensionPair(atRule,subRule);break}}}});while(targetNodeArray.length>0){backFirstTargetNode=targetNodeArray.pop();if(backFirstTargetNode.selectors.indexOf(atRule.params)!==-1){if(extensionRecursionHandler(atRule,backFirstTargetNode)){processExtension(atRule);couldExtend=true;return}if(backFirstTargetNode.parent===atRule.parent.parent){selectorRetainer=backFirstTargetNode.selectors;backFirstTargetNode.selector=uniqreq(selectorRetainer.concat(originSels)).join(", ")}else{safeCopyDeclarations(backFirstTargetNode,atRule.parent)}couldExtend=true}else{for(var m=0;m<backFirstTargetNode.selectors.length;m++){var extTgtBase=backFirstTargetNode.selectors[m].substring(0,backFirstTargetNode.selectors[m].substring(1).search(/[\s.:#]/)+1);var extTgtSub=backFirstTargetNode.selectors[m].substring(backFirstTargetNode.selectors[m].substring(1).search(/[\s.:#]/)+1,backFirstTargetNode.selectors[m].length);if(backFirstTargetNode.selectors[m].substring(1).search(/[\s.:#]/)+1!==-1&&extTgtBase===atRule.params){if(extensionRecursionHandler(atRule,backFirstTargetNode)){processExtension(atRule);couldExtend=true;return}if(backFirstTargetNode.parent===atRule.parent.parent){selectorRetainer=backFirstTargetNode.selectors;backFirstTargetNode.selector=uniqreq(selectorRetainer.concat(formSubSelector(originSels,extTgtSub))).join(", ")}else{subTarget=findBrotherSubClass(atRule.parent,extTgtSub);if(subTarget.bool){safeCopyDeclarations(backFirstTargetNode,subTarget.node)}else{var newNode=postcss.rule();newNode.semicolon=atRule.semicolon;safeCopyDeclarations(backFirstTargetNode,newNode);newNode.selector=formSubSelector(atRule.parent.selectors,extTgtSub).join(", ");atRule.parent.parent.insertAfter(atRule.parent,newNode)}}couldExtend=true}}}}}if(!couldExtend){result.warn("'"+atRule.params+"', has not been defined, so it cannot be extended")}if(atRule.parent!==undefined){if(!atRule.parent.nodes.length||atRule.parent.nodes.length===1){atRule.parent.removeSelf()}else{atRule.removeSelf()}}}function isBadDefinitionNode(node){if(node.type==="rule"||node.type==="atrule"){result.warn("Defining at-rules cannot contain statements",{node:node});return true}}function isBadDefinitionLocation(atRule){if(atRule.parent.type!=="root"){result.warn("Defining at-rules must occur at the root level",{node:atRule});return true}}function isBadExtension(atRule){if(atRule===undefined){result.warn("Extending at-rules need a target",{node:atRule});return true}if(atRule.parent.type==="root"){result.warn("Extending at-rules cannot occur at the root level",{node:atRule});return true}if(atRule.parent.selector===undefined||atRule.parent.selector===""){if(atRule.parent.name==="define-placeholder"){result.warn("Extending at-rules cannot occur within @define statements, only within `%` silent classes",{node:atRule})}else{result.warn("Extending at-rules cannot occur within unnamed rules",{node:atRule})}return true}if(atRule.params===""||atRule.params.search(/\s*/)!==0){result.warn("Extending at-rules need a target",{node:atRule});return true}}function isBadExtensionPair(atRule,targetNode){if(hasMediaAncestor(targetNode)&&hasMediaAncestor(atRule)&&targetNode.parent!==atRule.parent.parent){result.warn("@extend was called to extend something in an @media from within another @media, this was safely ignored. For more information see the README under 'Quirks'",{node:targetNode});return true}}function hasMediaAncestor(node){var parent=node.parent;if(parent===undefined){return false}if(parent.type==="atrule"&&parent.name==="media"){return true}if(parent.type!=="root"){return hasMediaAncestor(parent)}}function uniqreq(a){var seen={};return a.filter(function(item){return seen.hasOwnProperty(item)?false:seen[item]=true})}function safeCopyDeclarations(nodeOrigin,nodeDest){nodeOrigin.nodes.forEach(function(node){if(isBadDefinitionNode(node))return;if(nodeDest.some(function(decl){return decl.prop===node.prop})){return}var clone=node.clone();if(nodeOrigin.parent===nodeDest.parent){clone.before=node.before}else{clone.before=node.before+" "}clone.after=node.after;clone.between=node.between;nodeDest.append(clone)})}function formSubSelector(selArr,tgtSub){var selectorRetainer=selArr.slice();for(var i=0;i<selectorRetainer.length;i++){selectorRetainer[i]=selectorRetainer[i]+tgtSub}return selectorRetainer}function findUnresolvedExtendChild(nodeOrigin){var foundNode={};var foundBool=nodeOrigin.some(function(node){if(node.type==="atrule"&&extendingAtRules.indexOf(node.name)!==-1){foundNode=node;return true}});return{node:foundNode,bool:foundBool}}function extensionRecursionHandler(atRule,targetNode){var recursableRule=findUnresolvedExtendChild(targetNode);var isTopOfRecurse=false;if(recurseStack.length===0){isTopOfRecurse=true}if(!isAntiPatternCSS&&css.index(atRule.parent)<css.index(targetNode)){result.warn("@extend is being used in an anti-pattern (extending things not yet defined). This is your first and final warning",{node:atRule.parent});isAntiPatternCSS=true}if(recursableRule.bool){recurseStack.push(atRule.params);while(recursableRule.bool){if(recurseStack.indexOf(recursableRule.node.params)===-1){processExtension(recursableRule.node);recursableRule=findUnresolvedExtendChild(targetNode)}else{result.warn("Infinite extension recursion detected",{node:atRule});recurseStack=uniqreq(recurseStack);return false}}if(recurseStack.pop()!==atRule.params&&recurseStack.indexOf(atRule.params)===-1){result.warn("Detected critically mis-aligned recursion stack! (Please post your CSS in a github issue, this shouldn't ever happen!)",{node:atRule})}if(isTopOfRecurse){recurseStack=[]}return true}}function findBrotherSubClass(nodeOrigin,tgtSub){var foundNode={};var foundBool=nodeOrigin.parent.some(function(node){if(node.selectors){var seldiff=node.selectors;var selectorAccumulator=nodeOrigin.selectors;for(var x=0;x<selectorAccumulator.length;x++){selectorAccumulator[x]=selectorAccumulator[x]+tgtSub}if(node!==nodeOrigin&&selectorAccumulator.length===node.selectors.length){seldiff=seldiff.concat(selectorAccumulator);seldiff=uniqreq(seldiff);if(seldiff.length===selectorAccumulator.length){foundNode=node;return true}}}});return{node:foundNode,bool:foundBool}}}})},{postcss:20}]},{},[]);require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){},{}],2:[function(require,module,exports){var base64=require("base64-js");var ieee754=require("ieee754");var isArray=require("is-array");exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;Buffer.poolSize=8192;var kMaxLength=1073741823;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=function(){try{var buf=new ArrayBuffer(0);var arr=new Uint8Array(buf);arr.foo=function(){return 42};return 42===arr.foo()&&typeof arr.subarray==="function"&&new Uint8Array(1).subarray(1,1).byteLength===0}catch(e){return false}}();function Buffer(subject,encoding,noZero){if(!(this instanceof Buffer))return new Buffer(subject,encoding,noZero);var type=typeof subject;var length;if(type==="number")length=subject>0?subject>>>0:0;else if(type==="string"){length=Buffer.byteLength(subject,encoding)}else if(type==="object"&&subject!==null){if(subject.type==="Buffer"&&isArray(subject.data))subject=subject.data;length=+subject.length>0?Math.floor(+subject.length):0}else throw new TypeError("must start with number, buffer, array or string");if(length>kMaxLength)throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength.toString(16)+" bytes");var buf;if(Buffer.TYPED_ARRAY_SUPPORT){buf=Buffer._augment(new Uint8Array(length))}else{buf=this;buf.length=length;buf._isBuffer=true}var i;if(Buffer.TYPED_ARRAY_SUPPORT&&typeof subject.byteLength==="number"){buf._set(subject)}else if(isArrayish(subject)){if(Buffer.isBuffer(subject)){for(i=0;i<length;i++)buf[i]=subject.readUInt8(i)}else{for(i=0;i<length;i++)buf[i]=(subject[i]%256+256)%256}}else if(type==="string"){buf.write(subject,0,encoding)}else if(type==="number"&&!Buffer.TYPED_ARRAY_SUPPORT&&!noZero){for(i=0;i<length;i++){buf[i]=0}}if(length>0&&length<=Buffer.poolSize)buf.parent=rootParent;return buf}function SlowBuffer(subject,encoding,noZero){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding,noZero);var buf=new Buffer(subject,encoding,noZero);delete buf.parent;return buf}Buffer.isBuffer=function(b){return!!(b!=null&&b._isBuffer)};Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len&&a[i]===b[i];i++){}if(i!==len){x=a[i];y=b[i]}if(x<y)return-1;if(y<x)return 1;return 0};Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function(list,totalLength){if(!isArray(list))throw new TypeError("Usage: Buffer.concat(list[, length])");if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}var i;if(totalLength===undefined){totalLength=0;for(i=0;i<list.length;i++){totalLength+=list[i].length}}var buf=new Buffer(totalLength);var pos=0;for(i=0;i<list.length;i++){var item=list[i];item.copy(buf,pos);pos+=item.length}return buf};Buffer.byteLength=function(str,encoding){var ret;str=str+"";switch(encoding||"utf8"){case"ascii":case"binary":case"raw":ret=str.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=str.length*2;break;case"hex":ret=str.length>>>1;break;case"utf8":case"utf-8":ret=utf8ToBytes(str).length;break;case"base64":ret=base64ToBytes(str).length;break;default:ret=str.length}return ret};Buffer.prototype.length=undefined;Buffer.prototype.parent=undefined;Buffer.prototype.toString=function(encoding,start,end){var loweredCase=false;start=start>>>0;end=end===undefined||end===Infinity?this.length:end>>>0;if(!encoding)encoding="utf8";if(start<0)start=0;if(end>this.length)end=this.length;if(end<=start)return"";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}};Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)===0};Buffer.prototype.inspect=function(){var str="";var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString("hex",0,max).match(/.{2}/g).join(" ");if(this.length>max)str+=" ... "}return"<Buffer "+str+">"};Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return Buffer.compare(this,b)};Buffer.prototype.get=function(offset){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(offset)};Buffer.prototype.set=function(v,offset){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(v,offset)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");buf[offset+i]=byte}return i}function utf8Write(buf,string,offset,length){var charsWritten=blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length);return charsWritten}function asciiWrite(buf,string,offset,length){var charsWritten=blitBuffer(asciiToBytes(string),buf,offset,length);return charsWritten}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){var charsWritten=blitBuffer(base64ToBytes(string),buf,offset,length);return charsWritten}function utf16leWrite(buf,string,offset,length){var charsWritten=blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length,2);return charsWritten}Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=Number(offset)||0;if(length<0||offset<0||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");var remaining=this.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=hexWrite(this,string,offset,length);break;case"utf8":case"utf-8":ret=utf8Write(this,string,offset,length);break;case"ascii":ret=asciiWrite(this,string,offset,length);break;case"binary":ret=binaryWrite(this,string,offset,length);break;case"base64":ret=base64Write(this,string,offset,length);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ret=utf16leWrite(this,string,offset,length);break;default:throw new TypeError("Unknown encoding: "+encoding)}return ret};Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){var res="";var tmp="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){if(buf[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(buf[i]);tmp=""}else{tmp+="%"+buf[i].toString(16)}}return res+decodeUtf8Char(tmp)}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i]&127)}return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;i++){ret+=String.fromCharCode(buf[i])}return ret}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(buf[i])}return out}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res="";for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256)}return res}Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0}else if(start>len){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(end<start)end=start;var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT){newBuf=Buffer._augment(this.subarray(start,end))}else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,undefined,true);for(var i=0;i<sliceLen;i++){newBuf[i]=this[i+start]}}if(newBuf.length)newBuf.parent=this.parent||this;return newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;return val};Buffer.prototype.readUIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256))val+=this[offset+--byteLength]*mul;return val};Buffer.prototype.readUInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256))val+=this[offset+i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256))val+=this[offset+--i]*mul;mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1;var i=0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=value/mul>>>0&255;return offset+byteLength};Buffer.prototype.writeUInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value;return offset+1};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=65535+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i<j;i++){buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>(littleEndian?i:1-i)*8}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=4294967295+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i<j;i++){buf[offset+i]=value>>>(littleEndian?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=0;var mul=1;var sub=value<0?1:0;this[offset]=value&255;while(++i<byteLength&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength-1)-1,-Math.pow(2,8*byteLength-1))}var i=byteLength-1;var mul=1;var sub=value<0?1:0;this[offset+i]=value&255;while(--i>=0&&(mul*=256))this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeInt8=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=255+value+1;this[offset]=value;return offset+1};Buffer.prototype.writeInt16LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8}else objectWriteUInt16(this,value,offset,true);return offset+2};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value}else objectWriteUInt16(this,value,offset,false);return offset+2};Buffer.prototype.writeInt32LE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24}else objectWriteUInt32(this,value,offset,true);return offset+4};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value}else objectWriteUInt32(this,value,offset,false);return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||value<min)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(offset<0)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38);ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){if(!noAssert)checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308);ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;if(!start)start=0;if(!end&&end!==0)end=this.length;if(target_start>=target.length)target_start=target.length;if(!target_start)target_start=0;if(end>0&&end<start)end=start;if(end===start)return 0;if(target.length===0||source.length===0)return 0;if(target_start<0)throw new RangeError("targetStart out of bounds");if(start<0||start>=source.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-target_start<end-start)end=target.length-target_start+start;var len=end-start;if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i<len;i++){target[i+target_start]=this[i+start]}}else{target._set(this.subarray(start,start+len),target_start)}return len};Buffer.prototype.fill=function(value,start,end){if(!value)value=0;if(!start)start=0;if(!end)end=this.length;if(end<start)throw new RangeError("end < start");if(end===start)return;if(this.length===0)return;if(start<0||start>=this.length)throw new RangeError("start out of bounds");if(end<0||end>this.length)throw new RangeError("end out of bounds");var i;if(typeof value==="number"){for(i=start;i<end;i++){this[i]=value}}else{var bytes=utf8ToBytes(value.toString());var len=bytes.length;for(i=start;i<end;i++){this[i]=bytes[i%len]}}return this};Buffer.prototype.toArrayBuffer=function(){if(typeof Uint8Array!=="undefined"){if(Buffer.TYPED_ARRAY_SUPPORT){return new Buffer(this).buffer}else{var buf=new Uint8Array(this.length);for(var i=0,len=buf.length;i<len;i+=1){buf[i]=this[i]}return buf.buffer}}else{throw new TypeError("Buffer.toArrayBuffer not supported in this browser")}};var BP=Buffer.prototype;Buffer._augment=function(arr){arr.constructor=Buffer;arr._isBuffer=true;arr._get=arr.get;arr._set=arr.set;arr.get=BP.get;arr.set=BP.set;arr.write=BP.write;arr.toString=BP.toString;arr.toLocaleString=BP.toString;arr.toJSON=BP.toJSON;arr.equals=BP.equals;arr.compare=BP.compare;arr.copy=BP.copy;arr.slice=BP.slice;arr.readUIntLE=BP.readUIntLE;arr.readUIntBE=BP.readUIntBE;arr.readUInt8=BP.readUInt8;arr.readUInt16LE=BP.readUInt16LE;arr.readUInt16BE=BP.readUInt16BE;arr.readUInt32LE=BP.readUInt32LE;arr.readUInt32BE=BP.readUInt32BE;arr.readIntLE=BP.readIntLE;arr.readIntBE=BP.readIntBE;arr.readInt8=BP.readInt8;arr.readInt16LE=BP.readInt16LE;arr.readInt16BE=BP.readInt16BE;arr.readInt32LE=BP.readInt32LE;arr.readInt32BE=BP.readInt32BE;arr.readFloatLE=BP.readFloatLE;arr.readFloatBE=BP.readFloatBE;arr.readDoubleLE=BP.readDoubleLE;arr.readDoubleBE=BP.readDoubleBE;arr.writeUInt8=BP.writeUInt8;arr.writeUIntLE=BP.writeUIntLE;arr.writeUIntBE=BP.writeUIntBE;arr.writeUInt16LE=BP.writeUInt16LE;arr.writeUInt16BE=BP.writeUInt16BE;arr.writeUInt32LE=BP.writeUInt32LE;arr.writeUInt32BE=BP.writeUInt32BE;arr.writeIntLE=BP.writeIntLE;arr.writeIntBE=BP.writeIntBE;arr.writeInt8=BP.writeInt8;arr.writeInt16LE=BP.writeInt16LE;
arr.writeInt16BE=BP.writeInt16BE;arr.writeInt32LE=BP.writeInt32LE;arr.writeInt32BE=BP.writeInt32BE;arr.writeFloatLE=BP.writeFloatLE;arr.writeFloatBE=BP.writeFloatBE;arr.writeDoubleLE=BP.writeDoubleLE;arr.writeDoubleBE=BP.writeDoubleBE;arr.fill=BP.fill;arr.inspect=BP.inspect;arr.toArrayBuffer=BP.toArrayBuffer;return arr};var INVALID_BASE64_RE=/[^+\/0-9A-z\-]/g;function base64clean(str){str=stringtrim(str).replace(INVALID_BASE64_RE,"");if(str.length<2)return"";while(str.length%4!==0){str=str+"="}return str}function stringtrim(str){if(str.trim)return str.trim();return str.replace(/^\s+|\s+$/g,"")}function isArrayish(subject){return isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(string,units){var codePoint,length=string.length;var leadSurrogate=null;units=units||Infinity;var bytes=[];var i=0;for(;i<length;i++){codePoint=string.charCodeAt(i);if(codePoint>55295&&codePoint<57344){if(leadSurrogate){if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}else{codePoint=leadSurrogate-55296<<10|codePoint-56320|65536;leadSurrogate=null}}else{if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}else{leadSurrogate=codePoint;continue}}}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=null}if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<2097152){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++){byteArray.push(str.charCodeAt(i)&255)}return byteArray}function utf16leToBytes(str,units){var c,hi,lo;var byteArray=[];for(var i=0;i<str.length;i++){if((units-=2)<0)break;c=str.charCodeAt(i);hi=c>>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length,unitSize){if(unitSize)length-=length%unitSize;for(var i=0;i<length;i++){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}},{"base64-js":3,ieee754:4,"is-array":5}],3:[function(require,module,exports){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(exports){"use strict";var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var PLUS="+".charCodeAt(0);var SLASH="/".charCodeAt(0);var NUMBER="0".charCodeAt(0);var LOWER="a".charCodeAt(0);var UPPER="A".charCodeAt(0);var PLUS_URL_SAFE="-".charCodeAt(0);var SLASH_URL_SAFE="_".charCodeAt(0);function decode(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;if(code===SLASH||code===SLASH_URL_SAFE)return 63;if(code<NUMBER)return-1;if(code<NUMBER+10)return code-NUMBER+26+26;if(code<UPPER+26)return code-UPPER;if(code<LOWER+26)return code-LOWER+26}function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0;arr=new Arr(b64.length*3/4-placeHolders);l=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v}for(i=0,j=0;i<l;i+=4,j+=3){tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3));push((tmp&16711680)>>16);push((tmp&65280)>>8);push(tmp&255)}if(placeHolders===2){tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4;push(tmp&255)}else if(placeHolders===1){tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2;push(tmp>>8&255);push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(num&63)}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=encode(temp>>2);output+=encode(temp<<4&63);output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=encode(temp>>10);output+=encode(temp>>4&63);output+=encode(temp<<2&63);output+="=";break}return output}exports.toByteArray=b64ToByteArray;exports.fromByteArray=uint8ToBase64})(typeof exports==="undefined"?this.base64js={}:exports)},{}],4:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],5:[function(require,module,exports){var isArray=Array.isArray;var str=Object.prototype.toString;module.exports=isArray||function(val){return!!val&&"[object Array]"==str.call(val)}},{}],6:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")};exports.sep="/";exports.delimiter=":";exports.dirname=function(path){var result=splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir};exports.basename=function(path,ext){var f=splitPath(path)[2];if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){return splitPath(path)[3]};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i])}return res}var substr="ab".substr(-1)==="b"?function(str,start,len){return str.substr(start,len)}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len)}}).call(this,require("_process"))},{_process:7}],7:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canMutationObserver=typeof window!=="undefined"&&window.MutationObserver;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}var queue=[];if(canMutationObserver){var hiddenDiv=document.createElement("div");var observer=new MutationObserver(function(){var queueList=queue.slice();queue.length=0;queueList.forEach(function(fn){fn()})});observer.observe(hiddenDiv,{attributes:true});return function nextTick(fn){if(!queue.length){hiddenDiv.setAttribute("yes","no")}queue.push(fn)}}if(canPost){window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")}},{}],8:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var AtRule=function(_Container){function AtRule(defaults){_classCallCheck(this,AtRule);_Container.call(this,defaults);this.type="atrule"}_inherits(AtRule,_Container);AtRule.prototype.stringify=function stringify(builder,semicolon){var name="@"+this.name;var params=this.params?this.stringifyRaw("params"):"";if(typeof this.afterName!=="undefined"){name+=this.afterName}else if(params){name+=" "}if(this.nodes){this.stringifyBlock(builder,name+params)}else{var before=this.style("before");if(before)builder(before);var end=(this.between||"")+(semicolon?";":"");builder(name+params+end,this)}};AtRule.prototype.append=function append(child){if(!this.nodes)this.nodes=[];return _Container.prototype.append.call(this,child)};AtRule.prototype.prepend=function prepend(child){if(!this.nodes)this.nodes=[];return _Container.prototype.prepend.call(this,child)};AtRule.prototype.insertBefore=function insertBefore(exist,add){if(!this.nodes)this.nodes=[];return _Container.prototype.insertBefore.call(this,exist,add)};AtRule.prototype.insertAfter=function insertAfter(exist,add){if(!this.nodes)this.nodes=[];return _Container.prototype.insertAfter.call(this,exist,add)};return AtRule}(_container2["default"]);exports["default"]=AtRule;module.exports=exports["default"]},{"./container":10}],9:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _node=require("./node");var _node2=_interopRequireDefault(_node);var Comment=function(_Node){function Comment(defaults){_classCallCheck(this,Comment);_Node.call(this,defaults);this.type="comment"}_inherits(Comment,_Node);Comment.prototype.stringify=function stringify(builder){var before=this.style("before");if(before)builder(before);var left=this.style("left","commentLeft");var right=this.style("right","commentRight");builder("/*"+left+this.text+right+"*/",this)};return Comment}(_node2["default"]);exports["default"]=Comment;module.exports=exports["default"]},{"./node":17}],10:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _node=require("./node");var _node2=_interopRequireDefault(_node);var Container=function(_Node){function Container(){_classCallCheck(this,Container);_Node.apply(this,arguments)}_inherits(Container,_Node);Container.prototype.stringifyContent=function stringifyContent(builder){if(!this.nodes)return;var i=undefined,last=this.nodes.length-1;while(last>0){if(this.nodes[last].type!=="comment")break;last-=1}var semicolon=this.style("semicolon");for(i=0;i<this.nodes.length;i++){this.nodes[i].stringify(builder,last!==i||semicolon)}};Container.prototype.stringifyBlock=function stringifyBlock(builder,start){var before=this.style("before");if(before)builder(before);var between=this.style("between","beforeOpen");builder(start+between+"{",this,"start");var after=undefined;if(this.nodes&&this.nodes.length){this.stringifyContent(builder);after=this.style("after")}else{after=this.style("after","emptyBody")}if(after)builder(after);builder("}",this,"end")};Container.prototype.push=function push(child){child.parent=this;this.nodes.push(child);return this};Container.prototype.each=function each(callback){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;var id=this.lastEach;this.indexes[id]=0;if(!this.nodes)return undefined;var index=undefined,result=undefined;while(this.indexes[id]<this.nodes.length){index=this.indexes[id];result=callback(this.nodes[index],index);if(result===false)break;this.indexes[id]+=1}delete this.indexes[id];if(result===false)return false};Container.prototype.eachInside=function eachInside(callback){return this.each(function(child,i){var result=callback(child,i);if(result!==false&&child.eachInside){result=child.eachInside(callback)}if(result===false)return result})};Container.prototype.eachDecl=function eachDecl(prop,callback){if(!callback){callback=prop;return this.eachInside(function(child,i){if(child.type==="decl"){var result=callback(child,i);if(result===false)return result}})}else if(prop instanceof RegExp){return this.eachInside(function(child,i){if(child.type==="decl"&&prop.test(child.prop)){var result=callback(child,i);if(result===false)return result}})}else{return this.eachInside(function(child,i){if(child.type==="decl"&&child.prop===prop){var result=callback(child,i);if(result===false)return result}})}};Container.prototype.eachRule=function eachRule(callback){return this.eachInside(function(child,i){if(child.type==="rule"){var result=callback(child,i);if(result===false)return result}})};Container.prototype.eachAtRule=function eachAtRule(name,callback){if(!callback){callback=name;return this.eachInside(function(child,i){if(child.type==="atrule"){var result=callback(child,i);if(result===false)return result}})}else if(name instanceof RegExp){return this.eachInside(function(child,i){if(child.type==="atrule"&&name.test(child.name)){var result=callback(child,i);if(result===false)return result}})}else{return this.eachInside(function(child,i){if(child.type==="atrule"&&child.name===name){var result=callback(child,i);if(result===false)return result}})}};Container.prototype.eachComment=function eachComment(callback){return this.eachInside(function(child,i){if(child.type==="comment"){var result=callback(child,i);if(result===false)return result}})};Container.prototype.append=function append(child){var nodes=this.normalize(child,this.last);for(var _iterator=nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;this.nodes.push(node)}return this};Container.prototype.prepend=function prepend(child){var nodes=this.normalize(child,this.first,"prepend").reverse();for(var _iterator2=nodes,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++]}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value}var node=_ref2;this.nodes.unshift(node)}for(var id in this.indexes){this.indexes[id]=this.indexes[id]+nodes.length}return this};Container.prototype.insertBefore=function insertBefore(exist,add){exist=this.index(exist);var type=exist===0?"prepend":false;var nodes=this.normalize(add,this.nodes[exist],type).reverse();for(var _iterator3=nodes,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_iterator3[Symbol.iterator]();;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++]}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value}var node=_ref3;this.nodes.splice(exist,0,node)}var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(exist<=index){this.indexes[id]=index+nodes.length}}return this};Container.prototype.insertAfter=function insertAfter(exist,add){exist=this.index(exist);var nodes=this.normalize(add,this.nodes[exist]).reverse();for(var _iterator4=nodes,_isArray4=Array.isArray(_iterator4),_i4=0,_iterator4=_isArray4?_iterator4:_iterator4[Symbol.iterator]();;){var _ref4;if(_isArray4){if(_i4>=_iterator4.length)break;_ref4=_iterator4[_i4++]}else{_i4=_iterator4.next();if(_i4.done)break;_ref4=_i4.value}var node=_ref4;this.nodes.splice(exist+1,0,node)}var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(exist<index){this.indexes[id]=index+nodes.length}}return this};Container.prototype.remove=function remove(child){child=this.index(child);this.nodes[child].parent=undefined;this.nodes.splice(child,1);var index=undefined;for(var id in this.indexes){index=this.indexes[id];if(index>=child){this.indexes[id]=index-1}}return this};Container.prototype.removeAll=function removeAll(){for(var _iterator5=this.nodes,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_iterator5[Symbol.iterator]();;){var _ref5;if(_isArray5){if(_i5>=_iterator5.length)break;_ref5=_iterator5[_i5++]}else{_i5=_iterator5.next();if(_i5.done)break;_ref5=_i5.value}var node=_ref5;node.parent=undefined}this.nodes=[];return this};Container.prototype.replaceValues=function replaceValues(regexp,opts,callback){if(!callback){callback=opts;opts={}}this.eachDecl(function(decl){if(opts.props&&opts.props.indexOf(decl.prop)===-1)return;if(opts.fast&&decl.value.indexOf(opts.fast)===-1)return;decl.value=decl.value.replace(regexp,callback)});return this};Container.prototype.every=function every(condition){return this.nodes.every(condition)};Container.prototype.some=function some(condition){return this.nodes.some(condition)};Container.prototype.index=function index(child){if(typeof child==="number"){return child}else{return this.nodes.indexOf(child)}};Container.prototype.normalize=function normalize(nodes,sample){var _this=this;if(typeof nodes==="string"){var parse=require("./parse");nodes=parse(nodes).nodes}else if(!Array.isArray(nodes)){if(nodes.type==="root"){nodes=nodes.nodes}else if(nodes.type){nodes=[nodes]}else if(nodes.prop){if(typeof nodes.value==="undefined"){throw new Error("Value field is missed in node creation")}nodes=[new _declaration2["default"](nodes)]}else if(nodes.selector){var Rule=require("./rule");nodes=[new Rule(nodes)]}else if(nodes.name){var AtRule=require("./at-rule");nodes=[new AtRule(nodes)]}else if(nodes.text){nodes=[new _comment2["default"](nodes)]}else{throw new Error("Unknown node type in node creation")}}var processed=nodes.map(function(child){if(child.parent)child=child.clone();if(typeof child.before==="undefined"){if(sample&&typeof sample.before!=="undefined"){child.before=sample.before.replace(/[^\s]/g,"")}}child.parent=_this;return child});return processed};_createClass(Container,[{key:"first",get:function get(){if(!this.nodes)return undefined;return this.nodes[0]}},{key:"last",get:function get(){if(!this.nodes)return undefined;return this.nodes[this.nodes.length-1]}}]);return Container}(_node2["default"]);exports["default"]=Container;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./node":17,"./parse":18,"./rule":25}],11:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var CssSyntaxError=function(_SyntaxError){function CssSyntaxError(message,line,column,source,file,plugin){_classCallCheck(this,CssSyntaxError);_SyntaxError.call(this,message);this.reason=message;if(file)this.file=file;if(source)this.source=source;if(plugin)this.plugin=plugin;if(typeof line!=="undefined"&&typeof column!=="undefined"){this.line=line;this.column=column}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}_inherits(CssSyntaxError,_SyntaxError);CssSyntaxError.prototype.setMessage=function setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"<css input>";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason};CssSyntaxError.prototype.showSourceCode=function showSourceCode(color){if(!this.source)return"";var num=this.line-1;var lines=this.source.split("\n");var prev=num>0?lines[num-1]+"\n":"";var broken=lines[num];var next=num<lines.length-1?"\n"+lines[num+1]:"";var mark="\n";for(var i=0;i<this.column-1;i++){mark+=" "}if(typeof color==="undefined"&&typeof process!=="undefined"){if(process.stdout&&process.env){color=process.stdout.isTTY&&!process.env.NODE_DISABLE_COLORS}}if(color){mark+="^"}else{mark+="^"}return"\n"+prev+broken+mark+next};CssSyntaxError.prototype.highlight=function highlight(color){_warnOnce2["default"]("CssSyntaxError#highlight is deprecated and will be "+"removed in 5.0. Use error.showSourceCode instead.");return this.showSourceCode(color).replace(/^\n/,"")};CssSyntaxError.prototype.setMozillaProps=function setMozillaProps(){var sample=Error.call(this,this.message);if(sample.columnNumber)this.columnNumber=this.column;if(sample.description)this.description=this.message;if(sample.lineNumber)this.lineNumber=this.line;if(sample.fileName)this.fileName=this.file};CssSyntaxError.prototype.toString=function toString(){return this.name+": "+this.message+this.showSourceCode()};return CssSyntaxError}(SyntaxError);exports["default"]=CssSyntaxError;CssSyntaxError.prototype.name="CssSyntaxError";module.exports=exports["default"]}).call(this,require("_process"))},{"./warn-once":28,_process:7}],12:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _node=require("./node");var _node2=_interopRequireDefault(_node);var Declaration=function(_Node){function Declaration(defaults){_classCallCheck(this,Declaration);_Node.call(this,defaults);this.type="decl"}_inherits(Declaration,_Node);Declaration.prototype.stringify=function stringify(builder,semicolon){var before=this.style("before");if(before)builder(before);var between=this.style("between","colon");var string=this.prop+between+this.stringifyRaw("value");if(this.important){string+=this._important||" !important"}if(semicolon)string+=";";builder(string,this)};return Declaration}(_node2["default"]);exports["default"]=Declaration;module.exports=exports["default"]},{"./node":17}],13:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _cssSyntaxError=require("./css-syntax-error");var _cssSyntaxError2=_interopRequireDefault(_cssSyntaxError);var _previousMap=require("./previous-map");var _previousMap2=_interopRequireDefault(_previousMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var sequence=0;var Input=function(){function Input(css){var opts=arguments[1]===undefined?{}:arguments[1];_classCallCheck(this,Input);this.css=css.toString();if(this.css[0]===""||this.css[0]==="￾"){this.css=this.css.slice(1)}this.safe=!!opts.safe;if(opts.from)this.file=_path2["default"].resolve(opts.from);var map=new _previousMap2["default"](this.css,opts,this.id);if(map.text){this.map=map;var file=map.consumer().file;if(!this.file&&file)this.file=this.mapResolve(file)}if(this.file){this.from=this.file}else{sequence+=1;this.id="<input css "+sequence+">";this.from=this.id}if(this.map)this.map.file=this.from}Input.prototype.error=function error(message,line,column){var opts=arguments[3]===undefined?{}:arguments[3];var error=new _cssSyntaxError2["default"](message);var origin=this.origin(line,column);if(origin){error=new _cssSyntaxError2["default"](message,origin.line,origin.column,origin.source,origin.file,opts.plugin)}else{error=new _cssSyntaxError2["default"](message,line,column,this.css,this.file,opts.plugin)}error.generated={line:line,column:column,source:this.css};if(this.file)error.generated.file=this.file;return error};Input.prototype.origin=function origin(line,column){if(!this.map)return false;var consumer=this.map.consumer();var from=consumer.originalPositionFor({line:line,column:column});if(!from.source)return false;var result={file:this.mapResolve(from.source),line:from.line,column:from.column};var source=consumer.sourceContentFor(result.file);if(source)result.source=source;return result};Input.prototype.mapResolve=function mapResolve(file){return _path2["default"].resolve(this.map.consumer().sourceRoot||".",file)};return Input}();exports["default"]=Input;module.exports=exports["default"]},{"./css-syntax-error":11,"./previous-map":21,path:6}],14:[function(require,module,exports){(function(global){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _mapGenerator=require("./map-generator");var _mapGenerator2=_interopRequireDefault(_mapGenerator);var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var _result=require("./result");var _result2=_interopRequireDefault(_result);var _parse=require("./parse");var _parse2=_interopRequireDefault(_parse);var _root=require("./root");var _root2=_interopRequireDefault(_root);var Promise=global.Promise||require("es6-promise").Promise;function isPromise(obj){return typeof obj==="object"&&typeof obj.then==="function";
}var LazyResult=function(){function LazyResult(processor,css,opts){_classCallCheck(this,LazyResult);this.stringified=false;this.processed=false;var root=undefined;if(css instanceof _root2["default"]){root=css}else if(css instanceof LazyResult||css instanceof _result2["default"]){root=css.root;if(css.map&&typeof opts.map==="undefined"){opts.map={prev:css.map}}}else{try{root=_parse2["default"](css,opts)}catch(error){this.error=error}}this.result=new _result2["default"](processor,root,opts)}LazyResult.prototype.warnings=function warnings(){return this.sync().warnings()};LazyResult.prototype.toString=function toString(){return this.css};LazyResult.prototype.then=function then(onFulfilled,onRejected){return this.async().then(onFulfilled,onRejected)};LazyResult.prototype["catch"]=function _catch(onRejected){return this.async()["catch"](onRejected)};LazyResult.prototype.handleError=function handleError(error,plugin){try{this.error=error;if(error.name==="CssSyntaxError"&&!error.plugin){error.plugin=plugin.postcssPlugin;error.setMessage()}else if(plugin.postcssVersion){var pluginName=plugin.postcssPlugin;var pluginVer=plugin.postcssVersion;var runtimeVer=this.result.processor.version;var a=pluginVer.split(".");var b=runtimeVer.split(".");if(a[0]!==b[0]||parseInt(a[1])>parseInt(b[1])){_warnOnce2["default"]("Your current PostCSS version is "+runtimeVer+", "+("but "+pluginName+" uses "+pluginVer+". Perhaps ")+"this is the source of the error below.")}}}catch(err){}};LazyResult.prototype.asyncTick=function asyncTick(resolve,reject){var _this=this;if(this.plugin>=this.processor.plugins.length){this.processed=true;return resolve()}try{(function(){var plugin=_this.processor.plugins[_this.plugin];var promise=_this.run(plugin);_this.plugin+=1;if(isPromise(promise)){promise.then(function(){_this.asyncTick(resolve,reject)})["catch"](function(error){_this.handleError(error,plugin);_this.processed=true;reject(error)})}else{_this.asyncTick(resolve,reject)}})()}catch(error){this.processed=true;reject(error)}};LazyResult.prototype.async=function async(){var _this2=this;if(this.processed){return new Promise(function(resolve,reject){if(_this2.error){reject(_this2.error)}else{resolve(_this2.stringify())}})}if(this.processing){return this.processing}this.processing=new Promise(function(resolve,reject){if(_this2.error)return reject(_this2.error);_this2.plugin=0;_this2.asyncTick(resolve,reject)}).then(function(){_this2.processed=true;return _this2.stringify()});return this.processing};LazyResult.prototype.sync=function sync(){if(this.processed)return this.result;this.processed=true;if(this.processing){throw new Error("Use process(css).then(cb) to work with async plugins")}if(this.error)throw this.error;for(var _iterator=this.result.processor.plugins,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var plugin=_ref;var promise=this.run(plugin);if(isPromise(promise)){throw new Error("Use process(css).then(cb) to work with async plugins")}}return this.result};LazyResult.prototype.run=function run(plugin){this.result.lastPlugin=plugin;var returned=undefined;try{returned=plugin(this.result.root,this.result)}catch(error){this.handleError(error,plugin);throw error}if(returned instanceof _root2["default"]){this.result.root=returned}else{return returned}};LazyResult.prototype.stringify=function stringify(){if(this.stringified)return this.result;this.stringified=true;this.sync();var map=new _mapGenerator2["default"](this.result.root,this.result.opts);var data=map.generate();this.result.css=data[0];this.result.map=data[1];return this.result};_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]);return LazyResult}();exports["default"]=LazyResult;module.exports=exports["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./map-generator":16,"./parse":18,"./result":23,"./root":24,"./warn-once":28,"es6-promise":30}],15:[function(require,module,exports){"use strict";exports.__esModule=true;var list={split:function split(string,separators,last){var array=[];var current="";var split=false;var func=0;var quote=false;var escape=false;for(var i=0;i<string.length;i++){var letter=string[i];if(quote){if(escape){escape=false}else if(letter==="\\"){escape=true}else if(letter===quote){quote=false}}else if(letter==='"'||letter==="'"){quote=letter}else if(letter==="("){func+=1}else if(letter===")"){if(func>0)func-=1}else if(func===0){if(separators.indexOf(letter)!==-1)split=true}if(split){if(current!=="")array.push(current.trim());current="";split=false}else{current+=letter}}if(last||current!=="")array.push(current.trim());return array},space:function space(string){var spaces=[" ","\n"," "];return list.split(string,spaces)},comma:function comma(string){var comma=",";return list.split(string,[comma],true)}};exports["default"]=list;module.exports=exports["default"]},{}],16:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _jsBase64=require("js-base64");var _sourceMap=require("source-map");var _sourceMap2=_interopRequireDefault(_sourceMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var _default=function(){var _class=function _default(root,opts){_classCallCheck(this,_class);this.root=root;this.opts=opts;this.mapOpts=opts.map||{}};_class.prototype.isMap=function isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}else{return this.previous().length>0}};_class.prototype.previous=function previous(){var _this=this;if(!this.previousMaps){this.previousMaps=[];this.root.eachInside(function(node){if(node.source&&node.source.input.map){var map=node.source.input.map;if(_this.previousMaps.indexOf(map)===-1){_this.previousMaps.push(map)}}})}return this.previousMaps};_class.prototype.isInline=function isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}var annotation=this.mapOpts.annotation;if(typeof annotation!=="undefined"&&annotation!==true){return false}if(this.previous().length){return this.previous().some(function(i){return i.inline})}else{return true}};_class.prototype.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(function(i){return i.withContent()})}else{return true}};_class.prototype.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var node=undefined;for(var i=this.root.nodes.length-1;i>=0;i--){node=this.root.nodes[i];if(node.type!=="comment")continue;if(node.text.indexOf("# sourceMappingURL=")===0){this.root.remove(i)}}};_class.prototype.setSourcesContent=function setSourcesContent(){var _this2=this;var already={};this.root.eachInside(function(node){if(node.source){var from=node.source.input.from;if(from&&!already[from]){already[from]=true;var relative=_this2.relative(from);_this2.map.setSourceContent(relative,node.source.input.css)}}})};_class.prototype.applyPrevMaps=function applyPrevMaps(){for(var _iterator=this.previous(),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var prev=_ref;var from=this.relative(prev.file);var root=prev.root||_path2["default"].dirname(prev.file);var map=undefined;if(this.mapOpts.sourcesContent===false){map=new _sourceMap2["default"].SourceMapConsumer(prev.text);if(map.sourcesContent){map.sourcesContent=map.sourcesContent.map(function(){return null})}}else{map=prev.consumer()}this.map.applySourceMap(map,from,this.relative(root))}};_class.prototype.isAnnotation=function isAnnotation(){if(this.isInline()){return true}else if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}else if(this.previous().length){return this.previous().some(function(i){return i.annotation})}else{return true}};_class.prototype.addAnnotation=function addAnnotation(){var content=undefined;if(this.isInline()){content="data:application/json;base64,"+_jsBase64.Base64.encode(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){content=this.mapOpts.annotation}else{content=this.outputFile()+".map"}this.css+="\n/*# sourceMappingURL="+content+" */"};_class.prototype.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to)}else if(this.opts.from){return this.relative(this.opts.from)}else{return"to.css"}};_class.prototype.generateMap=function generateMap(){this.stringify();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}else{return[this.css,this.map]}};_class.prototype.relative=function relative(file){var from=this.opts.to?_path2["default"].dirname(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){from=_path2["default"].dirname(_path2["default"].resolve(from,this.mapOpts.annotation))}file=_path2["default"].relative(from,file);if(_path2["default"].sep==="\\"){return file.replace(/\\/g,"/")}else{return file}};_class.prototype.sourcePath=function sourcePath(node){return this.relative(node.source.input.from)};_class.prototype.stringify=function stringify(){var _this3=this;this.css="";this.map=new _sourceMap2["default"].SourceMapGenerator({file:this.outputFile()});var line=1;var column=1;var lines=undefined,last=undefined;var builder=function builder(str,node,type){_this3.css+=str;if(node&&node.source&&node.source.start&&type!=="end"){_this3.map.addMapping({source:_this3.sourcePath(node),original:{line:node.source.start.line,column:node.source.start.column-1},generated:{line:line,column:column-1}})}lines=str.match(/\n/g);if(lines){line+=lines.length;last=str.lastIndexOf("\n");column=str.length-last}else{column=column+str.length}if(node&&node.source&&node.source.end&&type!=="start"){_this3.map.addMapping({source:_this3.sourcePath(node),original:{line:node.source.end.line,column:node.source.end.column},generated:{line:line,column:column-1}})}};this.root.stringify(builder)};_class.prototype.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}else{return[this.root.toString()]}};return _class}();exports["default"]=_default;module.exports=exports["default"]},{"js-base64":31,path:6,"source-map":32}],17:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _cssSyntaxError=require("./css-syntax-error");var _cssSyntaxError2=_interopRequireDefault(_cssSyntaxError);var defaultStyle={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var cloneNode=function cloneNode(obj,parent){var cloned=new obj.constructor;for(var i in obj){if(!obj.hasOwnProperty(i))continue;var value=obj[i];var type=typeof value;if(i==="parent"&&type==="object"){if(parent)cloned[i]=parent}else if(i==="source"){cloned[i]=value}else if(value instanceof Array){cloned[i]=value.map(function(j){return cloneNode(j,cloned)})}else if(i!=="before"&&i!=="after"&&i!=="between"&&i!=="semicolon"){if(type==="object")value=cloneNode(value);cloned[i]=value}}return cloned};var _default=function(){var _class=function _default(){var defaults=arguments[0]===undefined?{}:arguments[0];_classCallCheck(this,_class);for(var _name in defaults){this[_name]=defaults[_name]}};_class.prototype.error=function error(message){var opts=arguments[1]===undefined?{}:arguments[1];if(this.source){var pos=this.source.start;return this.source.input.error(message,pos.line,pos.column,opts)}else{return new _cssSyntaxError2["default"](message)}};_class.prototype.removeSelf=function removeSelf(){if(this.parent){this.parent.remove(this)}this.parent=undefined;return this};_class.prototype.replace=function replace(nodes){this.parent.insertBefore(this,nodes);this.parent.remove(this);return this};_class.prototype.toString=function toString(){var result="";var builder=function builder(str){return result+=str};this.stringify(builder);return result};_class.prototype.clone=function clone(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=cloneNode(this);for(var _name2 in overrides){cloned[_name2]=overrides[_name2]}return cloned};_class.prototype.cloneBefore=function cloneBefore(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=this.clone(overrides);this.parent.insertBefore(this,cloned);return cloned};_class.prototype.cloneAfter=function cloneAfter(){var overrides=arguments[0]===undefined?{}:arguments[0];var cloned=this.clone(overrides);this.parent.insertAfter(this,cloned);return cloned};_class.prototype.replaceWith=function replaceWith(node){this.parent.insertBefore(this,node);this.removeSelf();return this};_class.prototype.moveTo=function moveTo(container){this.cleanStyles(this.root()===container.root());this.removeSelf();container.append(this);return this};_class.prototype.moveBefore=function moveBefore(node){this.cleanStyles(this.root()===node.root());this.removeSelf();node.parent.insertBefore(node,this);return this};_class.prototype.moveAfter=function moveAfter(node){this.cleanStyles(this.root()===node.root());this.removeSelf();node.parent.insertAfter(node,this);return this};_class.prototype.next=function next(){var index=this.parent.index(this);return this.parent.nodes[index+1]};_class.prototype.prev=function prev(){var index=this.parent.index(this);return this.parent.nodes[index-1]};_class.prototype.toJSON=function toJSON(){var fixed={};for(var _name3 in this){if(!this.hasOwnProperty(_name3))continue;if(_name3==="parent")continue;var value=this[_name3];if(value instanceof Array){fixed[_name3]=value.map(function(i){if(typeof i==="object"&&i.toJSON){return i.toJSON()}else{return i}})}else if(typeof value==="object"&&value.toJSON){fixed[_name3]=value.toJSON()}else{fixed[_name3]=value}}return fixed};_class.prototype.style=function style(own,detect){var value=undefined;if(!detect)detect=own;if(own){value=this[own];if(typeof value!=="undefined")return value}var parent=this.parent;if(detect==="before"){if(!parent||parent.type==="root"&&parent.first===this){return""}}if(!parent)return defaultStyle[detect];var root=this.root();if(!root.styleCache)root.styleCache={};if(typeof root.styleCache[detect]!=="undefined"){return root.styleCache[detect]}if(detect==="semicolon"){root.eachInside(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"){value=i.semicolon;if(typeof value!=="undefined")return false}})}else if(detect==="emptyBody"){root.eachInside(function(i){if(i.nodes&&i.nodes.length===0){value=i.after;if(typeof value!=="undefined")return false}})}else if(detect==="indent"){root.eachInside(function(i){var p=i.parent;if(p&&p!==root&&p.parent&&p.parent===root){if(typeof i.before!=="undefined"){var parts=i.before.split("\n");value=parts[parts.length-1];value=value.replace(/[^\s]/g,"");return false}}})}else if(detect==="beforeComment"){root.eachComment(function(i){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}});if(typeof value==="undefined"){value=this.style(null,"beforeDecl")}}else if(detect==="beforeDecl"){root.eachDecl(function(i){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}});if(typeof value==="undefined"){value=this.style(null,"beforeRule")}}else if(detect==="beforeRule"){root.eachInside(function(i){if(i.nodes&&(i.parent!==root||root.first!==i)){if(typeof i.before!=="undefined"){value=i.before;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}}})}else if(detect==="beforeClose"){root.eachInside(function(i){if(i.nodes&&i.nodes.length>0){if(typeof i.after!=="undefined"){value=i.after;if(value.indexOf("\n")!==-1){value=value.replace(/[^\n]+$/,"")}return false}}})}else if(detect==="before"||detect==="after"){if(this.type==="decl"){value=this.style(null,"beforeDecl")}else if(this.type==="comment"){value=this.style(null,"beforeComment")}else if(detect==="before"){value=this.style(null,"beforeRule")}else{value=this.style(null,"beforeClose")}var node=this.parent;var depth=0;while(node&&node.type!=="root"){depth+=1;node=node.parent}if(value.indexOf("\n")!==-1){var indent=this.style(null,"indent");if(indent.length){for(var step=0;step<depth;step++){value+=indent}}}return value}else if(detect==="colon"){root.eachDecl(function(i){if(typeof i.between!=="undefined"){value=i.between.replace(/[^\s:]/g,"");return false}})}else if(detect==="beforeOpen"){root.eachInside(function(i){if(i.type!=="decl"){value=i.between;if(typeof value!=="undefined")return false}})}else{root.eachInside(function(i){value=i[own];if(typeof value!=="undefined")return false})}if(typeof value==="undefined")value=defaultStyle[detect];root.styleCache[detect]=value;return value};_class.prototype.root=function root(){var result=this;while(result.parent)result=result.parent;return result};_class.prototype.cleanStyles=function cleanStyles(keepBetween){delete this.before;delete this.after;if(!keepBetween)delete this.between;if(this.nodes){for(var _iterator=this.nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;node.cleanStyles(keepBetween)}}};_class.prototype.stringifyRaw=function stringifyRaw(prop){var value=this[prop];var raw=this["_"+prop];if(raw&&raw.value===value){return raw.raw}else{return value}};return _class}();exports["default"]=_default;module.exports=exports["default"]},{"./css-syntax-error":11}],18:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=parse;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _parser=require("./parser");var _parser2=_interopRequireDefault(_parser);var _input=require("./input");var _input2=_interopRequireDefault(_input);function parse(css,opts){var input=new _input2["default"](css,opts);var parser=new _parser2["default"](input);parser.tokenize();parser.loop();return parser.root}module.exports=exports["default"]},{"./input":13,"./parser":19}],19:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _tokenize=require("./tokenize");var _tokenize2=_interopRequireDefault(_tokenize);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _atRule=require("./at-rule");var _atRule2=_interopRequireDefault(_atRule);var _root=require("./root");var _root2=_interopRequireDefault(_root);var _rule=require("./rule");var _rule2=_interopRequireDefault(_rule);var Parser=function(){function Parser(input){_classCallCheck(this,Parser);this.input=input;this.pos=0;this.root=new _root2["default"];this.current=this.root;this.spaces="";this.semicolon=false;this.root.source={input:input};if(input.map)this.root.prevMap=input.map}Parser.prototype.tokenize=function tokenize(){this.tokens=_tokenize2["default"](this.input)};Parser.prototype.loop=function loop(){var token=undefined;while(this.pos<this.tokens.length){token=this.tokens[this.pos];switch(token[0]){case"word":case":":this.word(token);break;case"}":this.end(token);break;case"comment":this.comment(token);break;case"at-word":this.atrule(token);break;case"{":this.emptyRule(token);break;default:this.spaces+=token[1];break}this.pos+=1}this.endFile()};Parser.prototype.comment=function comment(token){var node=new _comment2["default"];this.init(node,token[2],token[3]);node.source.end={line:token[4],column:token[5]};var text=token[1].slice(2,-2);if(text.match(/^\s*$/)){node.left=text;node.text="";node.right=""}else{var match=text.match(/^(\s*)([^]*[^\s])(\s*)$/);node.left=match[1];node.text=match[2];node.right=match[3]}};Parser.prototype.emptyRule=function emptyRule(token){var node=new _rule2["default"];this.init(node,token[2],token[3]);node.between="";node.selector="";this.current=node};Parser.prototype.word=function word(){var token=undefined;var end=false;var type=null;var colon=false;var bracket=null;var brackets=0;var start=this.pos;this.pos+=1;while(this.pos<this.tokens.length){token=this.tokens[this.pos];type=token[0];if(type==="("){if(!bracket)bracket=token;brackets+=1}else if(brackets===0){if(type===";"){if(colon){this.decl(this.tokens.slice(start,this.pos+1));return}else{break}}else if(type==="{"){this.rule(this.tokens.slice(start,this.pos+1));return}else if(type==="}"){this.pos-=1;end=true;break}else{if(type===":")colon=true}}else if(type===")"){brackets-=1;if(brackets===0)bracket=null}this.pos+=1}if(this.pos===this.tokens.length){this.pos-=1;end=true}if(brackets>0&&!this.input.safe){throw this.input.error("Unclosed bracket",bracket[2],bracket[3])}if(end&&colon){while(this.pos>start){token=this.tokens[this.pos][0];if(token!=="space"&&token!=="comment")break;this.pos-=1}this.decl(this.tokens.slice(start,this.pos+1));return}if(this.input.safe){var buffer=this.tokens.slice(start,this.pos+1);this.spaces+=buffer.map(function(i){return i[1]}).join("")}else{token=this.tokens[start];throw this.input.error("Unknown word",token[2],token[3])}};Parser.prototype.rule=function rule(tokens){tokens.pop();var node=new _rule2["default"];this.init(node,tokens[0][2],tokens[0][3]);node.between=this.spacesFromEnd(tokens);this.raw(node,"selector",tokens);this.current=node};Parser.prototype.decl=function decl(tokens){var node=new _declaration2["default"];this.init(node);var last=tokens[tokens.length-1];if(last[0]===";"){this.semicolon=true;tokens.pop()}if(last[4]){node.source.end={line:last[4],column:last[5]}}else{node.source.end={line:last[2],column:last[3]}}while(tokens[0][0]!=="word"){node.before+=tokens.shift()[1]}node.source.start={line:tokens[0][2],column:tokens[0][3]};node.prop=tokens.shift()[1];node.between="";var token=undefined;while(tokens.length){token=tokens.shift();if(token[0]===":"){node.between+=token[1];break}else if(token[0]!=="space"&&token[0]!=="comment"){this.unknownWord(node,token,tokens)}else{node.between+=token[1]}}if(node.prop[0]==="_"||node.prop[0]==="*"){node.before+=node.prop[0];node.prop=node.prop.slice(1)}node.between+=this.spacesFromStart(tokens);if(this.input.safe)this.checkMissedSemicolon(tokens);for(var i=tokens.length-1;i>0;i--){token=tokens[i];if(token[1]==="!important"){node.important=true;var string=this.stringFrom(tokens,i);string=this.spacesFromEnd(tokens)+string;if(string!==" !important")node._important=string;break}else if(token[1]==="important"){var cache=tokens.slice(0);var str="";for(var j=i;j>0;j--){var type=cache[j][0];if(str.trim().indexOf("!")===0&&type!=="space"){break}str=cache.pop()[1]+str}if(str.trim().indexOf("!")===0){node.important=true;node._important=str;tokens=cache}}if(token[0]!=="space"&&token[0]!=="comment"){break}}this.raw(node,"value",tokens);if(node.value.indexOf(":")!==-1&&!this.input.safe){this.checkMissedSemicolon(tokens)}};Parser.prototype.atrule=function atrule(token){var node=new _atRule2["default"];node.name=token[1].slice(1);if(node.name===""){if(this.input.safe){node.name=""}else{throw this.input.error("At-rule without name",token[2],token[3])}}this.init(node,token[2],token[3]);var last=false;var open=false;var params=[];this.pos+=1;while(this.pos<this.tokens.length){token=this.tokens[this.pos];if(token[0]===";"){node.source.end={line:token[2],column:token[3]};this.semicolon=true;break}else if(token[0]==="{"){open=true;break}else{params.push(token)}this.pos+=1}if(this.pos===this.tokens.length){last=true}node.between=this.spacesFromEnd(params);if(params.length){node.afterName=this.spacesFromStart(params);this.raw(node,"params",params);if(last){token=params[params.length-1];node.source.end={line:token[4],column:token[5]};this.spaces=node.between;node.between=""}}else{node.afterName="";node.params=""}if(open){node.nodes=[];this.current=node}};Parser.prototype.end=function end(token){if(this.current.nodes&&this.current.nodes.length){this.current.semicolon=this.semicolon}this.semicolon=false;this.current.after=(this.current.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end={line:token[2],column:token[3]};this.current=this.current.parent}else if(!this.input.safe){throw this.input.error("Unexpected }",token[2],token[3])}else{this.current.after+="}"}};Parser.prototype.endFile=function endFile(){if(this.current.parent&&!this.input.safe){var pos=this.current.source.start;throw this.input.error("Unclosed block",pos.line,pos.column)}if(this.current.nodes&&this.current.nodes.length){this.current.semicolon=this.semicolon}this.current.after=(this.current.after||"")+this.spaces;while(this.current.parent){this.current=this.current.parent;this.current.after=""}};Parser.prototype.unknownWord=function unknownWord(node,token){if(this.input.safe){node.source.start={line:token[2],column:token[3]};node.before+=node.prop+node.between;node.prop=token[1];node.between=""}else{throw this.input.error("Unknown word",token[2],token[3])}};Parser.prototype.checkMissedSemicolon=function checkMissedSemicolon(tokens){var prev=null;var colon=false;var brackets=0;var type=undefined,token=undefined;for(var i=0;i<tokens.length;i++){token=tokens[i];type=token[0];if(type==="("){brackets+=1}else if(type===")"){brackets-=0}else if(brackets===0&&type===":"){if(!prev&&this.input.safe){continue}else if(!prev){throw this.input.error("Double colon",token[2],token[3])}else if(prev[0]==="word"&&prev[1]==="progid"){continue}else{colon=i;break}}prev=token}if(colon===false)return;if(this.input.safe){var split=undefined;for(split=colon-1;split>=0;split--){if(tokens[split][0]==="word")break}for(split-=1;split>=0;split--){if(tokens[split][0]!=="space"){split+=1;break}}var other=tokens.splice(split,tokens.length-split);this.decl(other)}else{var founded=0;for(var j=colon-1;j>=0;j--){token=tokens[j];if(token[0]!=="space"){founded+=1;if(founded===2)break}}throw this.input.error("Missed semicolon",token[2],token[3])}};Parser.prototype.init=function init(node,line,column){this.current.push(node);node.source={start:{line:line,column:column},input:this.input};node.before=this.spaces;this.spaces="";if(node.type!=="comment")this.semicolon=false};Parser.prototype.raw=function raw(node,prop,tokens){var token=undefined;var value="";var clean=true;for(var _iterator=tokens,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){if(_isArray){if(_i>=_iterator.length)break;token=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;token=_i.value}if(token[0]==="comment"){clean=false}else{value+=token[1]}}if(!clean){var origin="";for(var _iterator2=tokens,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[Symbol.iterator]();;){if(_isArray2){if(_i2>=_iterator2.length)break;token=_iterator2[_i2++]}else{_i2=_iterator2.next();if(_i2.done)break;token=_i2.value}origin+=token[1]}node["_"+prop]={value:value,raw:origin}}node[prop]=value};Parser.prototype.spacesFromEnd=function spacesFromEnd(tokens){var next=undefined;var spaces="";while(tokens.length){next=tokens[tokens.length-1][0];if(next!=="space"&&next!=="comment")break;spaces+=tokens.pop()[1]}return spaces};Parser.prototype.spacesFromStart=function spacesFromStart(tokens){var next=undefined;var spaces="";while(tokens.length){next=tokens[0][0];if(next!=="space"&&next!=="comment")break;spaces+=tokens.shift()[1]}return spaces};Parser.prototype.stringFrom=function stringFrom(tokens,from){var result="";for(var i=from;i<tokens.length;i++){result+=tokens[i][1]}tokens.splice(from,tokens.length-from);return result};return Parser}();exports["default"]=Parser;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./root":24,"./rule":25,"./tokenize":26}],20:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _declaration=require("./declaration");var _declaration2=_interopRequireDefault(_declaration);var _processor=require("./processor");var _processor2=_interopRequireDefault(_processor);var _comment=require("./comment");var _comment2=_interopRequireDefault(_comment);var _atRule=require("./at-rule");var _atRule2=_interopRequireDefault(_atRule);var _vendor=require("./vendor");var _vendor2=_interopRequireDefault(_vendor);var _parse=require("./parse");var _parse2=_interopRequireDefault(_parse);var _list=require("./list");var _list2=_interopRequireDefault(_list);var _rule=require("./rule");var _rule2=_interopRequireDefault(_rule);var _root=require("./root");var _root2=_interopRequireDefault(_root);var postcss=function postcss(){for(var _len=arguments.length,plugins=Array(_len),_key=0;_key<_len;_key++){plugins[_key]=arguments[_key]}if(plugins.length===1&&Array.isArray(plugins[0])){plugins=plugins[0]}return new _processor2["default"](plugins)};postcss.plugin=function(name,initializer){var creator=function creator(){var transformer=initializer.apply(this,arguments);transformer.postcssPlugin=name;transformer.postcssVersion=_processor2["default"].prototype.version;return transformer};creator.postcss=creator();return creator};postcss.vendor=_vendor2["default"];postcss.parse=_parse2["default"];postcss.list=_list2["default"];postcss.comment=function(defaults){return new _comment2["default"](defaults)};postcss.atRule=function(defaults){return new _atRule2["default"](defaults)};postcss.decl=function(defaults){return new _declaration2["default"](defaults)};postcss.rule=function(defaults){return new _rule2["default"](defaults)};postcss.root=function(defaults){return new _root2["default"](defaults)};exports["default"]=postcss;module.exports=exports["default"]},{"./at-rule":8,"./comment":9,"./declaration":12,"./list":15,"./parse":18,"./processor":22,"./root":24,"./rule":25,"./vendor":27}],21:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _jsBase64=require("js-base64");var _sourceMap=require("source-map");var _sourceMap2=_interopRequireDefault(_sourceMap);var _path=require("path");var _path2=_interopRequireDefault(_path);var _fs=require("fs");var _fs2=_interopRequireDefault(_fs);var PreviousMap=function(){function PreviousMap(css,opts){_classCallCheck(this,PreviousMap);this.loadAnnotation(css);this.inline=this.startWith(this.annotation,"data:");var prev=opts.map?opts.map.prev:undefined;var text=this.loadMap(opts.from,prev);
if(text)this.text=text}PreviousMap.prototype.consumer=function consumer(){if(!this.consumerCache){this.consumerCache=new _sourceMap2["default"].SourceMapConsumer(this.text)}return this.consumerCache};PreviousMap.prototype.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)};PreviousMap.prototype.startWith=function startWith(string,start){if(!string)return false;return string.substr(0,start.length)===start};PreviousMap.prototype.loadAnnotation=function loadAnnotation(css){var match=css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);if(match)this.annotation=match[1].trim()};PreviousMap.prototype.decodeInline=function decodeInline(text){var utf64="data:application/json;charset=utf-8;base64,";var b64="data:application/json;base64,";var uri="data:application/json,";if(this.startWith(text,uri)){return decodeURIComponent(text.substr(uri.length))}else if(this.startWith(text,b64)){return _jsBase64.Base64.decode(text.substr(b64.length))}else if(this.startWith(text,utf64)){return _jsBase64.Base64.decode(text.substr(utf64.length))}else{var encoding=text.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+encoding)}};PreviousMap.prototype.loadMap=function loadMap(file,prev){if(prev===false)return false;if(prev){if(typeof prev==="string"){return prev}else if(prev instanceof _sourceMap2["default"].SourceMapConsumer){return _sourceMap2["default"].SourceMapGenerator.fromSourceMap(prev).toString()}else if(prev instanceof _sourceMap2["default"].SourceMapGenerator){return prev.toString()}else if(typeof prev==="object"&&prev.mappings){return JSON.stringify(prev)}else{throw new Error("Unsupported previous source map format: "+prev.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){var map=this.annotation;if(file)map=_path2["default"].join(_path2["default"].dirname(file),map);this.root=_path2["default"].dirname(map);if(_fs2["default"].existsSync&&_fs2["default"].existsSync(map)){return _fs2["default"].readFileSync(map,"utf-8").toString().trim()}else{return false}}};return PreviousMap}();exports["default"]=PreviousMap;module.exports=exports["default"]},{fs:1,"js-base64":31,path:6,"source-map":32}],22:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _lazyResult=require("./lazy-result");var _lazyResult2=_interopRequireDefault(_lazyResult);var Processor=function(){function Processor(){var plugins=arguments[0]===undefined?[]:arguments[0];_classCallCheck(this,Processor);this.plugins=this.normalize(plugins)}Processor.prototype.use=function use(plugin){this.plugins=this.plugins.concat(this.normalize([plugin]));return this};Processor.prototype.process=function process(css){var opts=arguments[1]===undefined?{}:arguments[1];return new _lazyResult2["default"](this,css,opts)};Processor.prototype.normalize=function normalize(plugins){var normalized=[];for(var _iterator=plugins,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var i=_ref;var type=typeof i;if((type==="object"||type==="function")&&i.postcss){i=i.postcss}if(typeof i==="object"&&Array.isArray(i.plugins)){normalized=normalized.concat(i.plugins)}else{normalized.push(i)}}return normalized};return Processor}();exports["default"]=Processor;Processor.prototype.version=require("../package").version;module.exports=exports["default"]},{"../package":44,"./lazy-result":14}],23:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var _warnOnce=require("./warn-once");var _warnOnce2=_interopRequireDefault(_warnOnce);var _warning=require("./warning");var _warning2=_interopRequireDefault(_warning);var Result=function(){function Result(processor,root,opts){_classCallCheck(this,Result);this.processor=processor;this.messages=[];this.root=root;this.opts=opts;this.css=undefined;this.map=undefined}Result.prototype.toString=function toString(){return this.css};Result.prototype.warn=function warn(text){var opts=arguments[1]===undefined?{}:arguments[1];if(!opts.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){opts.plugin=this.lastPlugin.postcssPlugin}}this.messages.push(new _warning2["default"](text,opts))};Result.prototype.warnings=function warnings(){return this.messages.filter(function(i){return i.type==="warning"})};_createClass(Result,[{key:"from",get:function get(){_warnOnce2["default"]("result.from is deprecated and will be removed in 5.0. "+"Use result.opts.from instead.");return this.opts.from}},{key:"to",get:function get(){_warnOnce2["default"]("result.to is deprecated and will be removed in 5.0. "+"Use result.opts.to instead.");return this.opts.to}}]);return Result}();exports["default"]=Result;module.exports=exports["default"]},{"./warn-once":28,"./warning":29}],24:[function(require,module,exports){"use strict";exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var Root=function(_Container){function Root(defaults){_classCallCheck(this,Root);_Container.call(this,defaults);if(!this.nodes)this.nodes=[];this.type="root"}_inherits(Root,_Container);Root.prototype.remove=function remove(child){child=this.index(child);if(child===0&&this.nodes.length>1){this.nodes[1].before=this.nodes[child].before}return _Container.prototype.remove.call(this,child)};Root.prototype.normalize=function normalize(child,sample,type){var nodes=_Container.prototype.normalize.call(this,child);if(sample){if(type==="prepend"){if(this.nodes.length>1){sample.before=this.nodes[1].before}else{delete sample.before}}else{for(var _iterator=nodes,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value}var node=_ref;if(this.first!==sample)node.before=sample.before}}}return nodes};Root.prototype.stringify=function stringify(builder){this.stringifyContent(builder);if(this.after)builder(this.after)};Root.prototype.toResult=function toResult(){var opts=arguments[0]===undefined?{}:arguments[0];var LazyResult=require("./lazy-result");var Processor=require("./processor");var lazy=new LazyResult(new Processor,this,opts);return lazy.stringify()};return Root}(_container2["default"]);exports["default"]=Root;module.exports=exports["default"]},{"./container":10,"./lazy-result":14,"./processor":22}],25:[function(require,module,exports){"use strict";exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)subClass.__proto__=superClass}var _container=require("./container");var _container2=_interopRequireDefault(_container);var _list=require("./list");var _list2=_interopRequireDefault(_list);var Rule=function(_Container){function Rule(defaults){_classCallCheck(this,Rule);_Container.call(this,defaults);if(!this.nodes)this.nodes=[];this.type="rule"}_inherits(Rule,_Container);Rule.prototype.stringify=function stringify(builder){this.stringifyBlock(builder,this.stringifyRaw("selector"))};_createClass(Rule,[{key:"selectors",get:function get(){return _list2["default"].comma(this.selector)},set:function set(values){this.selector=values.join(", ")}}]);return Rule}(_container2["default"]);exports["default"]=Rule;module.exports=exports["default"]},{"./container":10,"./list":15}],26:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=tokenize;var SINGLE_QUOTE=39;var DOUBLE_QUOTE=34;var BACKSLASH=92;var SLASH=47;var NEWLINE=10;var SPACE=32;var FEED=12;var TAB=9;var CR=13;var OPEN_PARENTHESES=40;var CLOSE_PARENTHESES=41;var OPEN_CURLY=123;var CLOSE_CURLY=125;var SEMICOLON=59;var ASTERICK=42;var COLON=58;var AT=64;var RE_AT_END=/[ \n\t\r\{\(\)'"\\;\/]/g;var RE_WORD_END=/[ \n\t\r\(\)\{\}:;@!'"\\]|\/(?=\*)/g;var RE_BAD_BRACKET=/.[\\\/\("'\n]/;function tokenize(input){var tokens=[];var css=input.css.valueOf();var code=undefined,next=undefined,quote=undefined,lines=undefined,last=undefined,content=undefined,escape=undefined,nextLine=undefined,nextOffset=undefined,escaped=undefined,escapePos=undefined;var length=css.length;var offset=-1;var line=1;var pos=0;var unclosed=function unclosed(what,end){if(input.safe){css+=end;next=css.length-1}else{throw input.error("Unclosed "+what,line,pos-offset)}};while(pos<length){code=css.charCodeAt(pos);if(code===NEWLINE){offset=pos;line+=1}switch(code){case NEWLINE:case SPACE:case TAB:case CR:case FEED:next=pos;do{next+=1;code=css.charCodeAt(next);if(code===NEWLINE){offset=next;line+=1}}while(code===SPACE||code===NEWLINE||code===TAB||code===CR||code===FEED);tokens.push(["space",css.slice(pos,next)]);pos=next-1;break;case OPEN_CURLY:tokens.push(["{","{",line,pos-offset]);break;case CLOSE_CURLY:tokens.push(["}","}",line,pos-offset]);break;case COLON:tokens.push([":",":",line,pos-offset]);break;case SEMICOLON:tokens.push([";",";",line,pos-offset]);break;case OPEN_PARENTHESES:next=css.indexOf(")",pos+1);content=css.slice(pos,next+1);if(next===-1||RE_BAD_BRACKET.test(content)){tokens.push(["(","(",line,pos-offset])}else{tokens.push(["brackets",content,line,pos-offset,line,next-offset]);pos=next}break;case CLOSE_PARENTHESES:tokens.push([")",")",line,pos-offset]);break;case SINGLE_QUOTE:case DOUBLE_QUOTE:quote=code===SINGLE_QUOTE?"'":'"';next=pos;do{escaped=false;next=css.indexOf(quote,next+1);if(next===-1)unclosed("quote",quote);escapePos=next;while(css.charCodeAt(escapePos-1)===BACKSLASH){escapePos-=1;escaped=!escaped}}while(escaped);tokens.push(["string",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;case AT:RE_AT_END.lastIndex=pos+1;RE_AT_END.test(css);if(RE_AT_END.lastIndex===0){next=css.length-1}else{next=RE_AT_END.lastIndex-2}tokens.push(["at-word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;case BACKSLASH:next=pos;escape=true;while(css.charCodeAt(next+1)===BACKSLASH){next+=1;escape=!escape}code=css.charCodeAt(next+1);if(escape&&(code!==SLASH&&code!==SPACE&&code!==NEWLINE&&code!==TAB&&code!==CR&&code!==FEED)){next+=1}tokens.push(["word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next;break;default:if(code===SLASH&&css.charCodeAt(pos+1)===ASTERICK){next=css.indexOf("*/",pos+2)+1;if(next===0)unclosed("comment","*/");content=css.slice(pos,next+1);lines=content.split("\n");last=lines.length-1;if(last>0){nextLine=line+last;nextOffset=next-lines[last].length}else{nextLine=line;nextOffset=offset}tokens.push(["comment",content,line,pos-offset,nextLine,next-nextOffset]);offset=nextOffset;line=nextLine;pos=next}else{RE_WORD_END.lastIndex=pos+1;RE_WORD_END.test(css);if(RE_WORD_END.lastIndex===0){next=css.length-1}else{next=RE_WORD_END.lastIndex-2}tokens.push(["word",css.slice(pos,next+1),line,pos-offset,line,next-offset]);pos=next}break}pos++}return tokens}module.exports=exports["default"]},{}],27:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]={prefix:function prefix(prop){if(prop[0]==="-"){var sep=prop.indexOf("-",1);return prop.substr(0,sep+1)}else{return""}},unprefixed:function unprefixed(prop){if(prop[0]==="-"){var sep=prop.indexOf("-",1);return prop.substr(sep+1)}else{return prop}}};module.exports=exports["default"]},{}],28:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=warnOnce;var printed={};function warnOnce(message){if(printed[message])return;printed[message]=true;if(typeof console!=="undefined"&&console.warn)console.warn(message)}module.exports=exports["default"]},{}],29:[function(require,module,exports){"use strict";exports.__esModule=true;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Warning=function(){function Warning(text){var opts=arguments[1]===undefined?{}:arguments[1];_classCallCheck(this,Warning);this.type="warning";this.text=text;for(var opt in opts){this[opt]=opts[opt]}}Warning.prototype.toString=function toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin}).message}else if(this.plugin){return this.plugin+": "+this.text}else{return this.text}};return Warning}();exports["default"]=Warning;module.exports=exports["default"]},{}],30:[function(require,module,exports){(function(process,global){(function(){"use strict";function lib$es6$promise$utils$$objectOrFunction(x){return typeof x==="function"||typeof x==="object"&&x!==null}function lib$es6$promise$utils$$isFunction(x){return typeof x==="function"}function lib$es6$promise$utils$$isMaybeThenable(x){return typeof x==="object"&&x!==null}var lib$es6$promise$utils$$_isArray;if(!Array.isArray){lib$es6$promise$utils$$_isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}}else{lib$es6$promise$utils$$_isArray=Array.isArray}var lib$es6$promise$utils$$isArray=lib$es6$promise$utils$$_isArray;var lib$es6$promise$asap$$len=0;var lib$es6$promise$asap$$toString={}.toString;var lib$es6$promise$asap$$vertxNext;var lib$es6$promise$asap$$customSchedulerFn;var lib$es6$promise$asap$$asap=function asap(callback,arg){lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len]=callback;lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len+1]=arg;lib$es6$promise$asap$$len+=2;if(lib$es6$promise$asap$$len===2){if(lib$es6$promise$asap$$customSchedulerFn){lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush)}else{lib$es6$promise$asap$$scheduleFlush()}}};function lib$es6$promise$asap$$setScheduler(scheduleFn){lib$es6$promise$asap$$customSchedulerFn=scheduleFn}function lib$es6$promise$asap$$setAsap(asapFn){lib$es6$promise$asap$$asap=asapFn}var lib$es6$promise$asap$$browserWindow=typeof window!=="undefined"?window:undefined;var lib$es6$promise$asap$$browserGlobal=lib$es6$promise$asap$$browserWindow||{};var lib$es6$promise$asap$$BrowserMutationObserver=lib$es6$promise$asap$$browserGlobal.MutationObserver||lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;var lib$es6$promise$asap$$isNode=typeof process!=="undefined"&&{}.toString.call(process)==="[object process]";var lib$es6$promise$asap$$isWorker=typeof Uint8ClampedArray!=="undefined"&&typeof importScripts!=="undefined"&&typeof MessageChannel!=="undefined";function lib$es6$promise$asap$$useNextTick(){var nextTick=process.nextTick;var version=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);if(Array.isArray(version)&&version[1]==="0"&&version[2]==="10"){nextTick=setImmediate}return function(){nextTick(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useVertxTimer(){return function(){lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush)}}function lib$es6$promise$asap$$useMutationObserver(){var iterations=0;var observer=new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);var node=document.createTextNode("");observer.observe(node,{characterData:true});return function(){node.data=iterations=++iterations%2}}function lib$es6$promise$asap$$useMessageChannel(){var channel=new MessageChannel;channel.port1.onmessage=lib$es6$promise$asap$$flush;return function(){channel.port2.postMessage(0)}}function lib$es6$promise$asap$$useSetTimeout(){return function(){setTimeout(lib$es6$promise$asap$$flush,1)}}var lib$es6$promise$asap$$queue=new Array(1e3);function lib$es6$promise$asap$$flush(){for(var i=0;i<lib$es6$promise$asap$$len;i+=2){var callback=lib$es6$promise$asap$$queue[i];var arg=lib$es6$promise$asap$$queue[i+1];callback(arg);lib$es6$promise$asap$$queue[i]=undefined;lib$es6$promise$asap$$queue[i+1]=undefined}lib$es6$promise$asap$$len=0}function lib$es6$promise$asap$$attemptVertex(){try{var r=require;var vertx=r("vertx");lib$es6$promise$asap$$vertxNext=vertx.runOnLoop||vertx.runOnContext;return lib$es6$promise$asap$$useVertxTimer()}catch(e){return lib$es6$promise$asap$$useSetTimeout()}}var lib$es6$promise$asap$$scheduleFlush;if(lib$es6$promise$asap$$isNode){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useNextTick()}else if(lib$es6$promise$asap$$BrowserMutationObserver){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useMutationObserver()}else if(lib$es6$promise$asap$$isWorker){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useMessageChannel()}else if(lib$es6$promise$asap$$browserWindow===undefined&&typeof require==="function"){lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$attemptVertex()}else{lib$es6$promise$asap$$scheduleFlush=lib$es6$promise$asap$$useSetTimeout()}function lib$es6$promise$$internal$$noop(){}var lib$es6$promise$$internal$$PENDING=void 0;var lib$es6$promise$$internal$$FULFILLED=1;var lib$es6$promise$$internal$$REJECTED=2;var lib$es6$promise$$internal$$GET_THEN_ERROR=new lib$es6$promise$$internal$$ErrorObject;function lib$es6$promise$$internal$$selfFullfillment(){return new TypeError("You cannot resolve a promise with itself")}function lib$es6$promise$$internal$$cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function lib$es6$promise$$internal$$getThen(promise){try{return promise.then}catch(error){lib$es6$promise$$internal$$GET_THEN_ERROR.error=error;return lib$es6$promise$$internal$$GET_THEN_ERROR}}function lib$es6$promise$$internal$$tryThen(then,value,fulfillmentHandler,rejectionHandler){try{then.call(value,fulfillmentHandler,rejectionHandler)}catch(e){return e}}function lib$es6$promise$$internal$$handleForeignThenable(promise,thenable,then){lib$es6$promise$asap$$asap(function(promise){var sealed=false;var error=lib$es6$promise$$internal$$tryThen(then,thenable,function(value){if(sealed){return}sealed=true;if(thenable!==value){lib$es6$promise$$internal$$resolve(promise,value)}else{lib$es6$promise$$internal$$fulfill(promise,value)}},function(reason){if(sealed){return}sealed=true;lib$es6$promise$$internal$$reject(promise,reason)},"Settle: "+(promise._label||" unknown promise"));if(!sealed&&error){sealed=true;lib$es6$promise$$internal$$reject(promise,error)}},promise)}function lib$es6$promise$$internal$$handleOwnThenable(promise,thenable){if(thenable._state===lib$es6$promise$$internal$$FULFILLED){lib$es6$promise$$internal$$fulfill(promise,thenable._result)}else if(thenable._state===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,thenable._result)}else{lib$es6$promise$$internal$$subscribe(thenable,undefined,function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}}function lib$es6$promise$$internal$$handleMaybeThenable(promise,maybeThenable){if(maybeThenable.constructor===promise.constructor){lib$es6$promise$$internal$$handleOwnThenable(promise,maybeThenable)}else{var then=lib$es6$promise$$internal$$getThen(maybeThenable);if(then===lib$es6$promise$$internal$$GET_THEN_ERROR){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$GET_THEN_ERROR.error)}else if(then===undefined){lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}else if(lib$es6$promise$utils$$isFunction(then)){lib$es6$promise$$internal$$handleForeignThenable(promise,maybeThenable,then)}else{lib$es6$promise$$internal$$fulfill(promise,maybeThenable)}}}function lib$es6$promise$$internal$$resolve(promise,value){if(promise===value){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$selfFullfillment())}else if(lib$es6$promise$utils$$objectOrFunction(value)){lib$es6$promise$$internal$$handleMaybeThenable(promise,value)}else{lib$es6$promise$$internal$$fulfill(promise,value)}}function lib$es6$promise$$internal$$publishRejection(promise){if(promise._onerror){promise._onerror(promise._result)}lib$es6$promise$$internal$$publish(promise)}function lib$es6$promise$$internal$$fulfill(promise,value){if(promise._state!==lib$es6$promise$$internal$$PENDING){return}promise._result=value;promise._state=lib$es6$promise$$internal$$FULFILLED;if(promise._subscribers.length!==0){lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,promise)}}function lib$es6$promise$$internal$$reject(promise,reason){if(promise._state!==lib$es6$promise$$internal$$PENDING){return}promise._state=lib$es6$promise$$internal$$REJECTED;promise._result=reason;lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection,promise)}function lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection){var subscribers=parent._subscribers;var length=subscribers.length;parent._onerror=null;subscribers[length]=child;subscribers[length+lib$es6$promise$$internal$$FULFILLED]=onFulfillment;subscribers[length+lib$es6$promise$$internal$$REJECTED]=onRejection;if(length===0&&parent._state){lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish,parent)}}function lib$es6$promise$$internal$$publish(promise){var subscribers=promise._subscribers;var settled=promise._state;if(subscribers.length===0){return}var child,callback,detail=promise._result;for(var i=0;i<subscribers.length;i+=3){child=subscribers[i];callback=subscribers[i+settled];if(child){lib$es6$promise$$internal$$invokeCallback(settled,child,callback,detail)}else{callback(detail)}}promise._subscribers.length=0}function lib$es6$promise$$internal$$ErrorObject(){this.error=null}var lib$es6$promise$$internal$$TRY_CATCH_ERROR=new lib$es6$promise$$internal$$ErrorObject;function lib$es6$promise$$internal$$tryCatch(callback,detail){try{return callback(detail)}catch(e){lib$es6$promise$$internal$$TRY_CATCH_ERROR.error=e;return lib$es6$promise$$internal$$TRY_CATCH_ERROR}}function lib$es6$promise$$internal$$invokeCallback(settled,promise,callback,detail){var hasCallback=lib$es6$promise$utils$$isFunction(callback),value,error,succeeded,failed;if(hasCallback){value=lib$es6$promise$$internal$$tryCatch(callback,detail);if(value===lib$es6$promise$$internal$$TRY_CATCH_ERROR){failed=true;error=value.error;value=null}else{succeeded=true}if(promise===value){lib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$cannotReturnOwn());return}}else{value=detail;succeeded=true}if(promise._state!==lib$es6$promise$$internal$$PENDING){}else if(hasCallback&&succeeded){lib$es6$promise$$internal$$resolve(promise,value)}else if(failed){lib$es6$promise$$internal$$reject(promise,error)}else if(settled===lib$es6$promise$$internal$$FULFILLED){lib$es6$promise$$internal$$fulfill(promise,value)}else if(settled===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,value)}}function lib$es6$promise$$internal$$initializePromise(promise,resolver){try{resolver(function resolvePromise(value){lib$es6$promise$$internal$$resolve(promise,value)},function rejectPromise(reason){lib$es6$promise$$internal$$reject(promise,reason)})}catch(e){lib$es6$promise$$internal$$reject(promise,e)}}function lib$es6$promise$enumerator$$Enumerator(Constructor,input){var enumerator=this;enumerator._instanceConstructor=Constructor;enumerator.promise=new Constructor(lib$es6$promise$$internal$$noop);if(enumerator._validateInput(input)){enumerator._input=input;enumerator.length=input.length;enumerator._remaining=input.length;enumerator._init();if(enumerator.length===0){lib$es6$promise$$internal$$fulfill(enumerator.promise,enumerator._result)}else{enumerator.length=enumerator.length||0;enumerator._enumerate();if(enumerator._remaining===0){lib$es6$promise$$internal$$fulfill(enumerator.promise,enumerator._result)}}}else{lib$es6$promise$$internal$$reject(enumerator.promise,enumerator._validationError())}}lib$es6$promise$enumerator$$Enumerator.prototype._validateInput=function(input){return lib$es6$promise$utils$$isArray(input)};lib$es6$promise$enumerator$$Enumerator.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")};lib$es6$promise$enumerator$$Enumerator.prototype._init=function(){this._result=new Array(this.length)};var lib$es6$promise$enumerator$$default=lib$es6$promise$enumerator$$Enumerator;lib$es6$promise$enumerator$$Enumerator.prototype._enumerate=function(){var enumerator=this;var length=enumerator.length;var promise=enumerator.promise;var input=enumerator._input;for(var i=0;promise._state===lib$es6$promise$$internal$$PENDING&&i<length;i++){enumerator._eachEntry(input[i],i)}};lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry=function(entry,i){var enumerator=this;var c=enumerator._instanceConstructor;if(lib$es6$promise$utils$$isMaybeThenable(entry)){if(entry.constructor===c&&entry._state!==lib$es6$promise$$internal$$PENDING){entry._onerror=null;enumerator._settledAt(entry._state,i,entry._result)}else{enumerator._willSettleAt(c.resolve(entry),i)}}else{enumerator._remaining--;enumerator._result[i]=entry}};lib$es6$promise$enumerator$$Enumerator.prototype._settledAt=function(state,i,value){var enumerator=this;var promise=enumerator.promise;if(promise._state===lib$es6$promise$$internal$$PENDING){enumerator._remaining--;if(state===lib$es6$promise$$internal$$REJECTED){lib$es6$promise$$internal$$reject(promise,value)}else{enumerator._result[i]=value}}if(enumerator._remaining===0){lib$es6$promise$$internal$$fulfill(promise,enumerator._result)}};lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt=function(promise,i){var enumerator=this;lib$es6$promise$$internal$$subscribe(promise,undefined,function(value){enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED,i,value)},function(reason){enumerator._settledAt(lib$es6$promise$$internal$$REJECTED,i,reason)})};function lib$es6$promise$promise$all$$all(entries){return new lib$es6$promise$enumerator$$default(this,entries).promise}var lib$es6$promise$promise$all$$default=lib$es6$promise$promise$all$$all;function lib$es6$promise$promise$race$$race(entries){var Constructor=this;var promise=new Constructor(lib$es6$promise$$internal$$noop);if(!lib$es6$promise$utils$$isArray(entries)){lib$es6$promise$$internal$$reject(promise,new TypeError("You must pass an array to race."));return promise}var length=entries.length;function onFulfillment(value){lib$es6$promise$$internal$$resolve(promise,value)}function onRejection(reason){lib$es6$promise$$internal$$reject(promise,reason)}for(var i=0;promise._state===lib$es6$promise$$internal$$PENDING&&i<length;i++){lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]),undefined,onFulfillment,onRejection)}return promise}var lib$es6$promise$promise$race$$default=lib$es6$promise$promise$race$$race;function lib$es6$promise$promise$resolve$$resolve(object){var Constructor=this;if(object&&typeof object==="object"&&object.constructor===Constructor){return object}var promise=new Constructor(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$resolve(promise,object);return promise}var lib$es6$promise$promise$resolve$$default=lib$es6$promise$promise$resolve$$resolve;function lib$es6$promise$promise$reject$$reject(reason){var Constructor=this;var promise=new Constructor(lib$es6$promise$$internal$$noop);lib$es6$promise$$internal$$reject(promise,reason);return promise}var lib$es6$promise$promise$reject$$default=lib$es6$promise$promise$reject$$reject;var lib$es6$promise$promise$$counter=0;function lib$es6$promise$promise$$needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function lib$es6$promise$promise$$needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var lib$es6$promise$promise$$default=lib$es6$promise$promise$$Promise;function lib$es6$promise$promise$$Promise(resolver){this._id=lib$es6$promise$promise$$counter++;this._state=undefined;this._result=undefined;this._subscribers=[];if(lib$es6$promise$$internal$$noop!==resolver){if(!lib$es6$promise$utils$$isFunction(resolver)){lib$es6$promise$promise$$needsResolver()}if(!(this instanceof lib$es6$promise$promise$$Promise)){lib$es6$promise$promise$$needsNew()}lib$es6$promise$$internal$$initializePromise(this,resolver)}}lib$es6$promise$promise$$Promise.all=lib$es6$promise$promise$all$$default;lib$es6$promise$promise$$Promise.race=lib$es6$promise$promise$race$$default;lib$es6$promise$promise$$Promise.resolve=lib$es6$promise$promise$resolve$$default;lib$es6$promise$promise$$Promise.reject=lib$es6$promise$promise$reject$$default;lib$es6$promise$promise$$Promise._setScheduler=lib$es6$promise$asap$$setScheduler;lib$es6$promise$promise$$Promise._setAsap=lib$es6$promise$asap$$setAsap;lib$es6$promise$promise$$Promise._asap=lib$es6$promise$asap$$asap;lib$es6$promise$promise$$Promise.prototype={constructor:lib$es6$promise$promise$$Promise,then:function(onFulfillment,onRejection){var parent=this;var state=parent._state;if(state===lib$es6$promise$$internal$$FULFILLED&&!onFulfillment||state===lib$es6$promise$$internal$$REJECTED&&!onRejection){return this}var child=new this.constructor(lib$es6$promise$$internal$$noop);var result=parent._result;if(state){var callback=arguments[state-1];lib$es6$promise$asap$$asap(function(){lib$es6$promise$$internal$$invokeCallback(state,child,callback,result)})}else{lib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection)}return child},"catch":function(onRejection){return this.then(null,onRejection)}};function lib$es6$promise$polyfill$$polyfill(){var local;if(typeof global!=="undefined"){local=global}else if(typeof self!=="undefined"){
local=self}else{try{local=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}var P=local.Promise;if(P&&Object.prototype.toString.call(P.resolve())==="[object Promise]"&&!P.cast){return}local.Promise=lib$es6$promise$promise$$default}var lib$es6$promise$polyfill$$default=lib$es6$promise$polyfill$$polyfill;var lib$es6$promise$umd$$ES6Promise={Promise:lib$es6$promise$promise$$default,polyfill:lib$es6$promise$polyfill$$default};if(typeof define==="function"&&define["amd"]){define(function(){return lib$es6$promise$umd$$ES6Promise})}else if(typeof module!=="undefined"&&module["exports"]){module["exports"]=lib$es6$promise$umd$$ES6Promise}else if(typeof this!=="undefined"){this["ES6Promise"]=lib$es6$promise$umd$$ES6Promise}lib$es6$promise$polyfill$$default()}).call(this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:7}],31:[function(require,module,exports){(function(global){"use strict";var _Base64=global.Base64;var version="2.1.9";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=require("buffer").Buffer}catch(err){}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64tab=function(bin){var t={};for(var i=0,l=bin.length;i<l;i++)t[bin.charAt(i)]=i;return t}(b64chars);var fromCharCode=String.fromCharCode;var cb_utob=function(c){if(c.length<2){var cc=c.charCodeAt(0);return cc<128?c:cc<2048?fromCharCode(192|cc>>>6)+fromCharCode(128|cc&63):fromCharCode(224|cc>>>12&15)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}else{var cc=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return fromCharCode(240|cc>>>18&7)+fromCharCode(128|cc>>>12&63)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob)};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(ccc.length>1?ccc.charCodeAt(1):0)<<8|(ccc.length>2?ccc.charCodeAt(2):0),chars=[b64chars.charAt(ord>>>18),b64chars.charAt(ord>>>12&63),padlen>=2?"=":b64chars.charAt(ord>>>6&63),padlen>=1?"=":b64chars.charAt(ord&63)];return chars.join("")};var btoa=global.btoa?function(b){return global.btoa(b)}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)};var _encode=buffer?function(u){return(u.constructor===buffer.constructor?u:new buffer(u)).toString("base64")}:function(u){return btoa(utob(u))};var encode=function(u,urisafe){return!urisafe?_encode(String(u)):_encode(String(u)).replace(/[+\/]/g,function(m0){return m0=="+"?"-":"_"}).replace(/=/g,"")};var encodeURI=function(u){return encode(u,true)};var re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g");var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((offset&1023)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1))}};var btou=function(b){return b.replace(re_btou,cb_btou)};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(n&255)];chars.length-=[0,0,2,1][padlen];return chars.join("")};var atob=global.atob?function(a){return global.atob(a)}:function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode)};var _decode=buffer?function(a){return(a.constructor===buffer.constructor?a:new buffer(a,"base64")).toString()}:function(a){return btou(atob(a))};var decode=function(a){return _decode(String(a).replace(/[-_]/g,function(m0){return m0=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};var noConflict=function(){var Base64=global.Base64;global.Base64=_Base64;return Base64};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict};if(typeof Object.defineProperty==="function"){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,true)}))}}if(global["Meteor"]){Base64=global.Base64}})(this)},{buffer:2}],32:[function(require,module,exports){exports.SourceMapGenerator=require("./source-map/source-map-generator").SourceMapGenerator;exports.SourceMapConsumer=require("./source-map/source-map-consumer").SourceMapConsumer;exports.SourceNode=require("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":39,"./source-map/source-map-generator":40,"./source-map/source-node":41}],33:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function ArraySet(){this._array=[];this._set={}}ArraySet.fromArray=function ArraySet_fromArray(aArray,aAllowDuplicates){var set=new ArraySet;for(var i=0,len=aArray.length;i<len;i++){set.add(aArray[i],aAllowDuplicates)}return set};ArraySet.prototype.size=function ArraySet_size(){return Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(aStr,aAllowDuplicates){var isDuplicate=this.has(aStr);var idx=this._array.length;if(!isDuplicate||aAllowDuplicates){this._array.push(aStr)}if(!isDuplicate){this._set[util.toSetString(aStr)]=idx}};ArraySet.prototype.has=function ArraySet_has(aStr){return Object.prototype.hasOwnProperty.call(this._set,util.toSetString(aStr))};ArraySet.prototype.indexOf=function ArraySet_indexOf(aStr){if(this.has(aStr)){return this._set[util.toSetString(aStr)]}throw new Error('"'+aStr+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(aIdx){if(aIdx>=0&&aIdx<this._array.length){return this._array[aIdx]}throw new Error("No element indexed by "+aIdx)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};exports.ArraySet=ArraySet})},{"./util":42,amdefine:43}],34:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64=require("./base64");var VLQ_BASE_SHIFT=5;var VLQ_BASE=1<<VLQ_BASE_SHIFT;var VLQ_BASE_MASK=VLQ_BASE-1;var VLQ_CONTINUATION_BIT=VLQ_BASE;function toVLQSigned(aValue){return aValue<0?(-aValue<<1)+1:(aValue<<1)+0}function fromVLQSigned(aValue){var isNegative=(aValue&1)===1;var shifted=aValue>>1;return isNegative?-shifted:shifted}exports.encode=function base64VLQ_encode(aValue){var encoded="";var digit;var vlq=toVLQSigned(aValue);do{digit=vlq&VLQ_BASE_MASK;vlq>>>=VLQ_BASE_SHIFT;if(vlq>0){digit|=VLQ_CONTINUATION_BIT}encoded+=base64.encode(digit)}while(vlq>0);return encoded};exports.decode=function base64VLQ_decode(aStr,aIndex,aOutParam){var strLen=aStr.length;var result=0;var shift=0;var continuation,digit;do{if(aIndex>=strLen){throw new Error("Expected more digits in base 64 VLQ value.")}digit=base64.decode(aStr.charCodeAt(aIndex++));if(digit===-1){throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1))}continuation=!!(digit&VLQ_CONTINUATION_BIT);digit&=VLQ_BASE_MASK;result=result+(digit<<shift);shift+=VLQ_BASE_SHIFT}while(continuation);aOutParam.value=fromVLQSigned(result);aOutParam.rest=aIndex}})},{"./base64":35,amdefine:43}],35:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number<intToCharMap.length){return intToCharMap[number]}throw new TypeError("Must be between 0 and 63: "+aNumber)};exports.decode=function(charCode){var bigA=65;var bigZ=90;var littleA=97;var littleZ=122;var zero=48;var nine=57;var plus=43;var slash=47;var littleOffset=26;var numberOffset=52;if(bigA<=charCode&&charCode<=bigZ){return charCode-bigA}if(littleA<=charCode&&charCode<=littleZ){return charCode-littleA+littleOffset}if(zero<=charCode&&charCode<=nine){return charCode-zero+numberOffset}if(charCode==plus){return 62}if(charCode==slash){return 63}return-1}})},{amdefine:43}],36:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){exports.GREATEST_LOWER_BOUND=1;exports.LEAST_UPPER_BOUND=2;function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow;var cmp=aCompare(aNeedle,aHaystack[mid],true);if(cmp===0){return mid}else if(cmp>0){if(aHigh-mid>1){return recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias)}if(aBias==exports.LEAST_UPPER_BOUND){return aHigh<aHaystack.length?aHigh:-1}else{return mid}}else{if(mid-aLow>1){return recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias)}if(aBias==exports.LEAST_UPPER_BOUND){return mid}else{return aLow<0?-1:aLow}}}exports.search=function search(aNeedle,aHaystack,aCompare,aBias){if(aHaystack.length===0){return-1}var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0){return-1}while(index-1>=0){if(aCompare(aHaystack[index],aHaystack[index-1],true)!==0){break}--index}return index}})},{amdefine:43}],37:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine;var lineB=mappingB.generatedLine;var columnA=mappingA.generatedColumn;var columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)};MappingList.prototype.add=function MappingList_add(aMapping){var mapping;if(generatedPositionAfter(this._last,aMapping)){this._last=aMapping;this._array.push(aMapping)}else{this._sorted=false;this._array.push(aMapping)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(util.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};exports.MappingList=MappingList})},{"./util":42,amdefine:43}],38:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y];ary[y]=temp}function randomIntInRange(low,high){return Math.round(low+Math.random()*(high-low))}function doQuickSort(ary,comparator,p,r){if(p<r){var pivotIndex=randomIntInRange(p,r);var i=p-1;swap(ary,pivotIndex,r);var pivot=ary[r];for(var j=p;j<r;j++){if(comparator(ary[j],pivot)<=0){i+=1;swap(ary,i,j)}}swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1);doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}})},{amdefine:43}],39:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var util=require("./util");var binarySearch=require("./binary-search");var ArraySet=require("./array-set").ArraySet;var base64VLQ=require("./base64-vlq");var quickSort=require("./quick-sort").quickSort;function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}return sourceMap.sections!=null?new IndexedSourceMapConsumer(sourceMap):new BasicSourceMapConsumer(sourceMap)}SourceMapConsumer.fromSourceMap=function(aSourceMap){return BasicSourceMapConsumer.fromSourceMap(aSourceMap)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(aStr,index){var c=aStr.charAt(index);return c===";"||c===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(aCallback,aContext,aOrder){var context=aContext||null;var order=aOrder||SourceMapConsumer.GENERATED_ORDER;var mappings;switch(order){case SourceMapConsumer.GENERATED_ORDER:mappings=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:mappings=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var sourceRoot=this.sourceRoot;mappings.map(function(mapping){var source=mapping.source===null?null:this._sources.at(mapping.source);if(source!=null&&sourceRoot!=null){source=util.join(sourceRoot,source)}return{source:source,generatedLine:mapping.generatedLine,generatedColumn:mapping.generatedColumn,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:mapping.name===null?null:this._names.at(mapping.name)}},this).forEach(aCallback,context)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(aArgs){var line=util.getArg(aArgs,"line");var needle={source:util.getArg(aArgs,"source"),originalLine:line,originalColumn:util.getArg(aArgs,"column",0)};if(this.sourceRoot!=null){needle.source=util.relative(this.sourceRoot,needle.source)}if(!this._sources.has(needle.source)){return[]}needle.source=this._sources.indexOf(needle.source);var mappings=[];var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(index>=0){var mapping=this._originalMappings[index];if(aArgs.column===undefined){var originalLine=mapping.originalLine;while(mapping&&mapping.originalLine===originalLine){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[++index]}}else{var originalColumn=mapping.originalColumn;while(mapping&&mapping.originalLine===line&&mapping.originalColumn==originalColumn){mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)});mapping=this._originalMappings[++index]}}}return mappings};exports.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sources=util.getArg(sourceMap,"sources");var names=util.getArg(sourceMap,"names",[]);var sourceRoot=util.getArg(sourceMap,"sourceRoot",null);var sourcesContent=util.getArg(sourceMap,"sourcesContent",null);var mappings=util.getArg(sourceMap,"mappings");var file=util.getArg(sourceMap,"file",null);if(version!=this._version){throw new Error("Unsupported version: "+version)}sources=sources.map(util.normalize);this._names=ArraySet.fromArray(names,true);this._sources=ArraySet.fromArray(sources,true);this.sourceRoot=sourceRoot;this.sourcesContent=sourcesContent;this._mappings=mappings;this.file=file}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(aSourceMap){var smc=Object.create(BasicSourceMapConsumer.prototype);var names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),true);var sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),true);smc.sourceRoot=aSourceMap._sourceRoot;smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot);smc.file=aSourceMap._file;var generatedMappings=aSourceMap._mappings.toArray().slice();var destGeneratedMappings=smc.__generatedMappings=[];var destOriginalMappings=smc.__originalMappings=[];for(var i=0,length=generatedMappings.length;i<length;i++){var srcMapping=generatedMappings[i];var destMapping=new Mapping;destMapping.generatedLine=srcMapping.generatedLine;destMapping.generatedColumn=srcMapping.generatedColumn;if(srcMapping.source){destMapping.source=sources.indexOf(srcMapping.source);destMapping.originalLine=srcMapping.originalLine;destMapping.originalColumn=srcMapping.originalColumn;if(srcMapping.name){destMapping.name=names.indexOf(srcMapping.name)}destOriginalMappings.push(destMapping)}destGeneratedMappings.push(destMapping)}quickSort(smc.__originalMappings,util.compareByOriginalPositions);return smc};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(s){return this.sourceRoot!=null?util.join(this.sourceRoot,s):s},this)}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(aStr,aSourceRoot){var generatedLine=1;var previousGeneratedColumn=0;var previousOriginalLine=0;var previousOriginalColumn=0;var previousSource=0;var previousName=0;var length=aStr.length;var index=0;var cachedSegments={};var temp={};var originalMappings=[];var generatedMappings=[];var mapping,str,segment,end,value;while(index<length){if(aStr.charAt(index)===";"){generatedLine++;index++;previousGeneratedColumn=0}else if(aStr.charAt(index)===","){index++}else{mapping=new Mapping;mapping.generatedLine=generatedLine;for(end=index;end<length;end++){if(this._charIsMappingSeparator(aStr,end)){break}}str=aStr.slice(index,end);segment=cachedSegments[str];if(segment){index+=str.length}else{segment=[];while(index<end){base64VLQ.decode(aStr,index,temp);value=temp.value;index=temp.rest;segment.push(value)}if(segment.length===2){throw new Error("Found a source, but no line and column")}if(segment.length===3){throw new Error("Found a source and line, but no column")}cachedSegments[str]=segment}mapping.generatedColumn=previousGeneratedColumn+segment[0];previousGeneratedColumn=mapping.generatedColumn;if(segment.length>1){mapping.source=previousSource+segment[1];previousSource+=segment[1];mapping.originalLine=previousOriginalLine+segment[2];previousOriginalLine=mapping.originalLine;mapping.originalLine+=1;mapping.originalColumn=previousOriginalColumn+segment[3];previousOriginalColumn=mapping.originalColumn;if(segment.length>4){mapping.name=previousName+segment[4];previousName+=segment[4]}}generatedMappings.push(mapping);if(typeof mapping.originalLine==="number"){originalMappings.push(mapping)}}}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated);this.__generatedMappings=generatedMappings;quickSort(originalMappings,util.compareByOriginalPositions);this.__originalMappings=originalMappings};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){if(aNeedle[aLineName]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName])}if(aNeedle[aColumnName]<0){throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName])}return binarySearch.search(aNeedle,aMappings,aComparator,aBias)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var index=0;index<this._generatedMappings.length;++index){var mapping=this._generatedMappings[index];if(index+1<this._generatedMappings.length){var nextMapping=this._generatedMappings[index+1];if(mapping.generatedLine===nextMapping.generatedLine){mapping.lastGeneratedColumn=nextMapping.generatedColumn-1;continue}}mapping.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._generatedMappings,"generatedLine","generatedColumn",util.compareByGeneratedPositionsDeflated,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);if(source!==null){source=this._sources.at(source);if(this.sourceRoot!=null){source=util.join(this.sourceRoot,source)}}var name=util.getArg(mapping,"name",null);if(name!==null){name=this._names.at(name)}return{source:source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name:name}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(sc){return sc==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(aSource,nullOnMissing){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){aSource=util.relative(this.sourceRoot,aSource)}if(this._sources.has(aSource)){return this.sourcesContent[this._sources.indexOf(aSource)]}var url;if(this.sourceRoot!=null&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,"");if(url.scheme=="file"&&this._sources.has(fileUriAbsPath)){return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]}if((!url.path||url.path=="/")&&this._sources.has("/"+aSource)){return this.sourcesContent[this._sources.indexOf("/"+aSource)]}}if(nullOnMissing){return null}else{throw new Error('"'+aSource+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(aArgs){var source=util.getArg(aArgs,"source");if(this.sourceRoot!=null){source=util.relative(this.sourceRoot,source)}if(!this._sources.has(source)){return{line:null,column:null,lastColumn:null}}source=this._sources.indexOf(source);var needle={source:source,originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")};var index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._originalMappings[index];if(mapping.source===needle.source){return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};exports.BasicSourceMapConsumer=BasicSourceMapConsumer;function IndexedSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;if(typeof aSourceMap==="string"){sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))}var version=util.getArg(sourceMap,"version");var sections=util.getArg(sourceMap,"sections");if(version!=this._version){throw new Error("Unsupported version: "+version)}this._sources=new ArraySet;this._names=new ArraySet;var lastOffset={line:-1,column:0};this._sections=sections.map(function(s){if(s.url){throw new Error("Support for url field in sections not implemented.")}var offset=util.getArg(s,"offset");var offsetLine=util.getArg(offset,"line");var offsetColumn=util.getArg(offset,"column");if(offsetLine<lastOffset.line||offsetLine===lastOffset.line&&offsetColumn<lastOffset.column){throw new Error("Section offsets must be ordered and non-overlapping.")}lastOffset=offset;return{generatedOffset:{generatedLine:offsetLine+1,generatedColumn:offsetColumn+1},consumer:new SourceMapConsumer(util.getArg(s,"map"))}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var sources=[];for(var i=0;i<this._sections.length;i++){for(var j=0;j<this._sections[i].consumer.sources.length;j++){sources.push(this._sections[i].consumer.sources[j])}}return sources}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")};var sectionIndex=binarySearch.search(needle,this._sections,function(needle,section){var cmp=needle.generatedLine-section.generatedOffset.generatedLine;if(cmp){return cmp}return needle.generatedColumn-section.generatedOffset.generatedColumn});var section=this._sections[sectionIndex];if(!section){return{source:null,line:null,column:null,name:null}}return section.consumer.originalPositionFor({line:needle.generatedLine-(section.generatedOffset.generatedLine-1),column:needle.generatedColumn-(section.generatedOffset.generatedLine===needle.generatedLine?section.generatedOffset.generatedColumn-1:0),bias:aArgs.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(s){return s.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(aSource,nullOnMissing){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];var content=section.consumer.sourceContentFor(aSource,true);if(content){return content}}if(nullOnMissing){return null}else{throw new Error('"'+aSource+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(aArgs){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];if(section.consumer.sources.indexOf(util.getArg(aArgs,"source"))===-1){continue}var generatedPosition=section.consumer.generatedPositionFor(aArgs);if(generatedPosition){var ret={line:generatedPosition.line+(section.generatedOffset.generatedLine-1),column:generatedPosition.column+(section.generatedOffset.generatedLine===generatedPosition.line?section.generatedOffset.generatedColumn-1:0)};return ret}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(aStr,aSourceRoot){this.__generatedMappings=[];this.__originalMappings=[];for(var i=0;i<this._sections.length;i++){var section=this._sections[i];var sectionMappings=section.consumer._generatedMappings;for(var j=0;j<sectionMappings.length;j++){var mapping=sectionMappings[i];var source=section.consumer._sources.at(mapping.source);if(section.consumer.sourceRoot!==null){source=util.join(section.consumer.sourceRoot,source)}this._sources.add(source);source=this._sources.indexOf(source);var name=section.consumer._names.at(mapping.name);this._names.add(name);name=this._names.indexOf(name);var adjustedMapping={source:source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.column+(section.generatedOffset.generatedLine===mapping.generatedLine)?section.generatedOffset.generatedColumn-1:0,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:name};this.__generatedMappings.push(adjustedMapping);if(typeof adjustedMapping.originalLine==="number"){this.__originalMappings.push(adjustedMapping)}}}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated);quickSort(this.__originalMappings,util.compareByOriginalPositions)};exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer})},{"./array-set":33,"./base64-vlq":34,"./binary-search":36,"./quick-sort":38,"./util":42,amdefine:43}],40:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var base64VLQ=require("./base64-vlq");var util=require("./util");var ArraySet=require("./array-set").ArraySet;var MappingList=require("./mapping-list").MappingList;function SourceMapGenerator(aArgs){if(!aArgs){aArgs={}}this._file=util.getArg(aArgs,"file",null);this._sourceRoot=util.getArg(aArgs,"sourceRoot",null);this._skipValidation=util.getArg(aArgs,"skipValidation",false);this._sources=new ArraySet;this._names=new ArraySet;this._mappings=new MappingList;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot;var generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot:sourceRoot});aSourceMapConsumer.eachMapping(function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};if(mapping.source!=null){newMapping.source=mapping.source;if(sourceRoot!=null){newMapping.source=util.relative(sourceRoot,newMapping.source)}newMapping.original={line:mapping.originalLine,column:mapping.originalColumn};if(mapping.name!=null){newMapping.name=mapping.name}}generator.addMapping(newMapping)});aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){generator.setSourceContent(sourceFile,content)}});return generator};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(aArgs){var generated=util.getArg(aArgs,"generated");var original=util.getArg(aArgs,"original",null);var source=util.getArg(aArgs,"source",null);var name=util.getArg(aArgs,"name",null);if(!this._skipValidation){this._validateMapping(generated,original,source,name)}if(source!=null&&!this._sources.has(source)){this._sources.add(source)}if(name!=null&&!this._names.has(name)){this._names.add(name)}this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:original!=null&&original.line,originalColumn:original!=null&&original.column,source:source,name:name})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(aSourceFile,aSourceContent){var source=aSourceFile;if(this._sourceRoot!=null){source=util.relative(this._sourceRoot,source)}if(aSourceContent!=null){if(!this._sourcesContents){this._sourcesContents={}}this._sourcesContents[util.toSetString(source)]=aSourceContent}else if(this._sourcesContents){delete this._sourcesContents[util.toSetString(source)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(aSourceMapConsumer,aSourceFile,aSourceMapPath){
var sourceFile=aSourceFile;if(aSourceFile==null){if(aSourceMapConsumer.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}sourceFile=aSourceMapConsumer.file}var sourceRoot=this._sourceRoot;if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}var newSources=new ArraySet;var newNames=new ArraySet;this._mappings.unsortedForEach(function(mapping){if(mapping.source===sourceFile&&mapping.originalLine!=null){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});if(original.source!=null){mapping.source=original.source;if(aSourceMapPath!=null){mapping.source=util.join(aSourceMapPath,mapping.source)}if(sourceRoot!=null){mapping.source=util.relative(sourceRoot,mapping.source)}mapping.originalLine=original.line;mapping.originalColumn=original.column;if(original.name!=null){mapping.name=original.name}}}var source=mapping.source;if(source!=null&&!newSources.has(source)){newSources.add(source)}var name=mapping.name;if(name!=null&&!newNames.has(name)){newNames.add(name)}},this);this._sources=newSources;this._names=newNames;aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aSourceMapPath!=null){sourceFile=util.join(aSourceMapPath,sourceFile)}if(sourceRoot!=null){sourceFile=util.relative(sourceRoot,sourceFile)}this.setSourceContent(sourceFile,content)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(aGenerated,aOriginal,aSource,aName){if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0&&!aOriginal&&!aSource&&!aName){return}else if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var previousGeneratedColumn=0;var previousGeneratedLine=1;var previousOriginalColumn=0;var previousOriginalLine=0;var previousName=0;var previousSource=0;var result="";var mapping;var mappings=this._mappings.toArray();for(var i=0,len=mappings.length;i<len;i++){mapping=mappings[i];if(mapping.generatedLine!==previousGeneratedLine){previousGeneratedColumn=0;while(mapping.generatedLine!==previousGeneratedLine){result+=";";previousGeneratedLine++}}else{if(i>0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1])){continue}result+=","}}result+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn);previousGeneratedColumn=mapping.generatedColumn;if(mapping.source!=null){result+=base64VLQ.encode(this._sources.indexOf(mapping.source)-previousSource);previousSource=this._sources.indexOf(mapping.source);result+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine);previousOriginalLine=mapping.originalLine-1;result+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn);previousOriginalColumn=mapping.originalColumn;if(mapping.name!=null){result+=base64VLQ.encode(this._names.indexOf(mapping.name)-previousName);previousName=this._names.indexOf(mapping.name)}}}return result};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(aSources,aSourceRoot){return aSources.map(function(source){if(!this._sourcesContents){return null}if(aSourceRoot!=null){source=util.relative(aSourceRoot,source)}var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){map.file=this._file}if(this._sourceRoot!=null){map.sourceRoot=this._sourceRoot}if(this._sourcesContents){map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)}return map};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};exports.SourceMapGenerator=SourceMapGenerator})},{"./array-set":33,"./base64-vlq":34,"./mapping-list":37,"./util":42,amdefine:43}],41:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){var SourceMapGenerator=require("./source-map-generator").SourceMapGenerator;var util=require("./util");var REGEX_NEWLINE=/(\r?\n)/;var NEWLINE_CODE=10;var isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[];this.sourceContents={};this.line=aLine==null?null:aLine;this.column=aColumn==null?null:aColumn;this.source=aSource==null?null:aSource;this.name=aName==null?null:aName;this[isSourceNode]=true;if(aChunks!=null)this.add(aChunks)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode;var remainingLines=aGeneratedCode.split(REGEX_NEWLINE);var shiftNextLine=function(){var lineContents=remainingLines.shift();var newLine=remainingLines.shift()||"";return lineContents+newLine};var lastGeneratedLine=1,lastGeneratedColumn=0;var lastMapping=null;aSourceMapConsumer.eachMapping(function(mapping){if(lastMapping!==null){if(lastGeneratedLine<mapping.generatedLine){var code="";addMappingWithCode(lastMapping,shiftNextLine());lastGeneratedLine++;lastGeneratedColumn=0}else{var nextLine=remainingLines[0];var code=nextLine.substr(0,mapping.generatedColumn-lastGeneratedColumn);remainingLines[0]=nextLine.substr(mapping.generatedColumn-lastGeneratedColumn);lastGeneratedColumn=mapping.generatedColumn;addMappingWithCode(lastMapping,code);lastMapping=mapping;return}}while(lastGeneratedLine<mapping.generatedLine){node.add(shiftNextLine());lastGeneratedLine++}if(lastGeneratedColumn<mapping.generatedColumn){var nextLine=remainingLines[0];node.add(nextLine.substr(0,mapping.generatedColumn));remainingLines[0]=nextLine.substr(mapping.generatedColumn);lastGeneratedColumn=mapping.generatedColumn}lastMapping=mapping},this);if(remainingLines.length>0){if(lastMapping){addMappingWithCode(lastMapping,shiftNextLine())}node.add(remainingLines.join(""))}aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);if(content!=null){if(aRelativePath!=null){sourceFile=util.join(aRelativePath,sourceFile)}node.setSourceContent(sourceFile,content)}});return node;function addMappingWithCode(mapping,code){if(mapping===null||mapping.source===undefined){node.add(code)}else{var source=aRelativePath?util.join(aRelativePath,mapping.source):mapping.source;node.add(new SourceNode(mapping.originalLine,mapping.originalColumn,source,code,mapping.name))}}};SourceNode.prototype.add=function SourceNode_add(aChunk){if(Array.isArray(aChunk)){aChunk.forEach(function(chunk){this.add(chunk)},this)}else if(aChunk[isSourceNode]||typeof aChunk==="string"){if(aChunk){this.children.push(aChunk)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(aChunk){if(Array.isArray(aChunk)){for(var i=aChunk.length-1;i>=0;i--){this.prepend(aChunk[i])}}else if(aChunk[isSourceNode]||typeof aChunk==="string"){this.children.unshift(aChunk)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk)}return this};SourceNode.prototype.walk=function SourceNode_walk(aFn){var chunk;for(var i=0,len=this.children.length;i<len;i++){chunk=this.children[i];if(chunk[isSourceNode]){chunk.walk(aFn)}else{if(chunk!==""){aFn(chunk,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(aSep){var newChildren;var i;var len=this.children.length;if(len>0){newChildren=[];for(i=0;i<len-1;i++){newChildren.push(this.children[i]);newChildren.push(aSep)}newChildren.push(this.children[i]);this.children=newChildren}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(aPattern,aReplacement){var lastChild=this.children[this.children.length-1];if(lastChild[isSourceNode]){lastChild.replaceRight(aPattern,aReplacement)}else if(typeof lastChild==="string"){this.children[this.children.length-1]=lastChild.replace(aPattern,aReplacement)}else{this.children.push("".replace(aPattern,aReplacement))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(aSourceFile,aSourceContent){this.sourceContents[util.toSetString(aSourceFile)]=aSourceContent};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(aFn){for(var i=0,len=this.children.length;i<len;i++){if(this.children[i][isSourceNode]){this.children[i].walkSourceContents(aFn)}}var sources=Object.keys(this.sourceContents);for(var i=0,len=sources.length;i<len;i++){aFn(util.fromSetString(sources[i]),this.sourceContents[sources[i]])}};SourceNode.prototype.toString=function SourceNode_toString(){var str="";this.walk(function(chunk){str+=chunk});return str};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(aArgs){var generated={code:"",line:1,column:0};var map=new SourceMapGenerator(aArgs);var sourceMappingActive=false;var lastOriginalSource=null;var lastOriginalLine=null;var lastOriginalColumn=null;var lastOriginalName=null;this.walk(function(chunk,original){generated.code+=chunk;if(original.source!==null&&original.line!==null&&original.column!==null){if(lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}lastOriginalSource=original.source;lastOriginalLine=original.line;lastOriginalColumn=original.column;lastOriginalName=original.name;sourceMappingActive=true}else if(sourceMappingActive){map.addMapping({generated:{line:generated.line,column:generated.column}});lastOriginalSource=null;sourceMappingActive=false}for(var idx=0,length=chunk.length;idx<length;idx++){if(chunk.charCodeAt(idx)===NEWLINE_CODE){generated.line++;generated.column=0;if(idx+1===length){lastOriginalSource=null;sourceMappingActive=false}else if(sourceMappingActive){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})}}else{generated.column++}}});this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent)});return{code:generated.code,map:map}};exports.SourceNode=SourceNode})},{"./source-map-generator":40,"./util":42,amdefine:43}],42:[function(require,module,exports){if(typeof define!=="function"){var define=require("amdefine")(module,require)}define(function(require,exports,module){function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs){return aArgs[aName]}else if(arguments.length===3){return aDefaultValue}else{throw new Error('"'+aName+'" is a required argument.')}}exports.getArg=getArg;var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);if(!match){return null}return{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}}exports.urlParse=urlParse;function urlGenerate(aParsedUrl){var url="";if(aParsedUrl.scheme){url+=aParsedUrl.scheme+":"}url+="//";if(aParsedUrl.auth){url+=aParsedUrl.auth+"@"}if(aParsedUrl.host){url+=aParsedUrl.host}if(aParsedUrl.port){url+=":"+aParsedUrl.port}if(aParsedUrl.path){url+=aParsedUrl.path}return url}exports.urlGenerate=urlGenerate;function normalize(aPath){var path=aPath;var url=urlParse(aPath);if(url){if(!url.path){return aPath}path=url.path}var isAbsolute=path.charAt(0)==="/";var parts=path.split(/\/+/);for(var part,up=0,i=parts.length-1;i>=0;i--){part=parts[i];if(part==="."){parts.splice(i,1)}else if(part===".."){up++}else if(up>0){if(part===""){parts.splice(i+1,up);up=0}else{parts.splice(i,2);up--}}}path=parts.join("/");if(path===""){path=isAbsolute?"/":"."}if(url){url.path=path;return urlGenerate(url)}return path}exports.normalize=normalize;function join(aRoot,aPath){if(aRoot===""){aRoot="."}if(aPath===""){aPath="."}var aPathUrl=urlParse(aPath);var aRootUrl=urlParse(aRoot);if(aRootUrl){aRoot=aRootUrl.path||"/"}if(aPathUrl&&!aPathUrl.scheme){if(aRootUrl){aPathUrl.scheme=aRootUrl.scheme}return urlGenerate(aPathUrl)}if(aPathUrl||aPath.match(dataUrlRegexp)){return aPath}if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path){aRootUrl.host=aPath;return urlGenerate(aRootUrl)}var joined=aPath.charAt(0)==="/"?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);if(aRootUrl){aRootUrl.path=joined;return urlGenerate(aRootUrl)}return joined}exports.join=join;function relative(aRoot,aPath){if(aRoot===""){aRoot="."}aRoot=aRoot.replace(/\/$/,"");var level=0;while(aPath.indexOf(aRoot+"/")!==0){var index=aRoot.lastIndexOf("/");if(index<0){return aPath}aRoot=aRoot.slice(0,index);if(aRoot.match(/^([^\/]+:\/)?\/*$/)){return aPath}++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)}exports.relative=relative;function toSetString(aStr){return"$"+aStr}exports.toSetString=toSetString;function fromSetString(aStr){return aStr.substr(1)}exports.fromSetString=fromSetString;function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp=mappingA.source-mappingB.source;if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0||onlyCompareOriginal){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp}cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}return mappingA.name-mappingB.name}exports.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0||onlyCompareGenerated){return cmp}cmp=mappingA.source-mappingB.source;if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp}return mappingA.name-mappingB.name}exports.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(aStr1,aStr2){if(aStr1===aStr2){return 0}if(aStr1>aStr2){return 1}return-1}function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp}cmp=strcmp(mappingA.source,mappingB.source);if(cmp!==0){return cmp}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp}return strcmp(mappingA.name,mappingB.name)}exports.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated})},{amdefine:43}],43:[function(require,module,exports){(function(process,__filename){"use strict";function amdefine(module,requireFn){"use strict";var defineCache={},loaderCache={},alreadyCalled=false,path=require("path"),makeRequire,stringRequire;function trimDots(ary){var i,part;for(i=0;ary[i];i+=1){part=ary[i];if(part==="."){ary.splice(i,1);i-=1}else if(part===".."){if(i===1&&(ary[2]===".."||ary[0]==="..")){break}else if(i>0){ary.splice(i-1,2);i-=2}}}}function normalize(name,baseName){var baseParts;if(name&&name.charAt(0)==="."){if(baseName){baseParts=baseName.split("/");baseParts=baseParts.slice(0,baseParts.length-1);baseParts=baseParts.concat(name.split("/"));trimDots(baseParts);name=baseParts.join("/")}}return name}function makeNormalize(relName){return function(name){return normalize(name,relName)}}function makeLoad(id){function load(value){loaderCache[id]=value}load.fromText=function(id,text){throw new Error("amdefine does not implement load.fromText")};return load}makeRequire=function(systemRequire,exports,module,relId){function amdRequire(deps,callback){if(typeof deps==="string"){return stringRequire(systemRequire,exports,module,deps,relId)}else{deps=deps.map(function(depName){return stringRequire(systemRequire,exports,module,depName,relId)});if(callback){process.nextTick(function(){callback.apply(null,deps)})}}}amdRequire.toUrl=function(filePath){if(filePath.indexOf(".")===0){return normalize(filePath,path.dirname(module.filename))}else{return filePath}};return amdRequire};requireFn=requireFn||function req(){return module.require.apply(module,arguments)};function runFactory(id,deps,factory){var r,e,m,result;if(id){e=loaderCache[id]={};m={id:id,uri:__filename,exports:e};r=makeRequire(requireFn,e,m,id)}else{if(alreadyCalled){throw new Error("amdefine with no module ID cannot be called more than once per file.")}alreadyCalled=true;e=module.exports;m=module;r=makeRequire(requireFn,e,m,module.id)}if(deps){deps=deps.map(function(depName){return r(depName)})}if(typeof factory==="function"){result=factory.apply(m.exports,deps)}else{result=factory}if(result!==undefined){m.exports=result;if(id){loaderCache[id]=m.exports}}}stringRequire=function(systemRequire,exports,module,id,relId){var index=id.indexOf("!"),originalId=id,prefix,plugin;if(index===-1){id=normalize(id,relId);if(id==="require"){return makeRequire(systemRequire,exports,module,relId)}else if(id==="exports"){return exports}else if(id==="module"){return module}else if(loaderCache.hasOwnProperty(id)){return loaderCache[id]}else if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}else{if(systemRequire){return systemRequire(originalId)}else{throw new Error("No module with ID: "+id)}}}else{prefix=id.substring(0,index);id=id.substring(index+1,id.length);plugin=stringRequire(systemRequire,exports,module,prefix,relId);if(plugin.normalize){id=plugin.normalize(id,makeNormalize(relId))}else{id=normalize(id,relId)}if(loaderCache[id]){return loaderCache[id]}else{plugin.load(id,makeRequire(systemRequire,exports,module,relId),makeLoad(id),{});return loaderCache[id]}}};function define(id,deps,factory){if(Array.isArray(id)){factory=deps;deps=id;id=undefined}else if(typeof id!=="string"){factory=id;id=deps=undefined}if(deps&&!Array.isArray(deps)){factory=deps;deps=undefined}if(!deps){deps=["require","exports","module"]}if(id){defineCache[id]=[id,deps,factory]}else{runFactory(id,deps,factory)}}define.require=function(id){if(loaderCache[id]){return loaderCache[id]}if(defineCache[id]){runFactory.apply(null,defineCache[id]);return loaderCache[id]}};define.amd={};return define}module.exports=amdefine}).call(this,require("_process"),"/node_modules/postcss/node_modules/source-map/node_modules/amdefine/amdefine.js")},{_process:7,path:6}],44:[function(require,module,exports){module.exports={name:"postcss",version:"4.1.16",description:"Tool for transforming CSS with JS plugins",keywords:["css","postproccessor","parser","source map","transform","manipulation","preprocess","transpiler"],author:{name:"Andrey Sitnik",email:"andrey@sitnik.ru"},license:"MIT",repository:{type:"git",url:"https://github.com/postcss/postcss.git"},dependencies:{"es6-promise":"~2.3.0","source-map":"~0.4.2","js-base64":"~2.1.8"},devDependencies:{"concat-with-sourcemaps":"1.0.2","gulp-json-editor":"2.2.1","load-resources":"0.1.0","gulp-eslint":"0.15.0","gulp-babel":"5.1.0","gulp-mocha":"2.1.2",yaspeller:"2.5.0","gulp-util":"3.0.6","gulp-run":"1.6.8","fs-extra":"0.21.0",sinon:"1.15.4",mocha:"2.2.5",gulp:"3.9.0",chai:"3.0.0",babel:"5.6.14"},scripts:{test:"gulp"},main:"lib/postcss",readme:"# PostCSS [![Build Status][ci-img]][ci] [![Gitter][chat-img]][chat]\n\n<img align=\"right\" width=\"95\" height=\"95\"\n title=\"Philosopher’s stone, logo of PostCSS\"\n src=\"http://postcss.github.io/postcss/logo.svg\">\n\nPostCSS is a tool for transforming CSS with JS plugins.\nThese plugins can support variables and mixins, transpile future CSS syntax,\ninline images, and more.\n\nGoogle, Twitter, Alibaba, and Shopify uses PostCSS.\nIts plugin, [Autoprefixer], is one of the most popular CSS processors.\n\nPostCSS can do the same work as preprocessors like Sass, Less, and Stylus.\nBut PostCSS is modular, 3-30 times faster, and much more powerful.\n\nTwitter account: [@postcss](https://twitter.com/postcss).\nWeibo account: [postcss](http://weibo.com/postcss).\nVK.com page: [postcss](https://vk.com/postcss).\n\n[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg\n[ci-img]: https://img.shields.io/travis/postcss/postcss.svg\n[chat]: https://gitter.im/postcss/postcss\n[ci]: https://travis-ci.org/postcss/postcss\n\n[Examples](#what-is-postcss) | [Features](#features) | [Usage](#usage) | [Plugins](#plugins) | [Write Own Plugin](#how-to-develop-postcss-plugin) | [Options](#options)\n--- | --- | --- | --- | --- | ---\n\n<a href=\"https://evilmartians.com/?utm_source=postcss\">\n<img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\" alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n[Autoprefixer]: https://github.com/postcss/autoprefixer\n\n## What is PostCSS\n\nPostCSS itself is very small. It includes only a CSS parser,\na CSS node tree API, a source map generator, and a node tree stringifier.\n\nAll CSS transformations are made by plugins. And these plugins are just\nsmall plain JS functions, which receive a CSS node tree, transform it,\nand return a modified tree.\n\nYou can use the [cssnext] plugin pack and write future CSS code right now:\n\n```css\n:root {\n --mainColor: #ffbbaaff;\n}\n@custom-media --mobile (width <= 640px);\n@custom-selector --heading h1, h2, h3, h4, h5, h6;\n\n.post-article :--heading {\n color: color( var(--mainColor) blackness(+20%) );\n}\n@media (--mobile) {\n .post-article :--heading {\n margin-top: 0;\n }\n}\n```\n\nOr if you like the Sass syntax, you could combine\n[`postcss-nested`] and [`postcss-mixins`]:\n\n```css\n@define-mixin social-icon $network $color {\n &.is-$network {\n background: $color;\n }\n}\n\n.social-icon {\n @mixin social-icon twitter #55acee;\n @mixin social-icon facebook #3b5998;\n\n padding: 10px 5px;\n @media (max-width: 640px) {\n padding: 0;\n }\n}\n```\n\n[cssnext]: http://cssnext.io/\n\n## Features\n\nPreprocessors are template languages, where you mix styles with code\n(like PHP does with HTML).\nIn contrast, in PostCSS you write a custom subset of CSS.\nAll code can only be in JS plugins.\n\nAs a result, PostCSS offers three main benefits:\n\n* **Performance:** PostCSS, written in JS, is [3 times faster] than libsass,\n which is written in C++.\n* **Future CSS:** PostCSS plugins can read and rebuild an entire document,\n meaning that they can provide new language features. For example, [cssnext]\n transpiles the latest W3C drafts to current CSS syntax.\n* **New abilities:** PostCSS plugins can read and change every part of CSS.\n It makes many new classes of tools possible. [Autoprefixer], [`rtlcss`],\n [`doiuse`] or [`postcss-colorblind`] are good examples.\n\n[3 times faster]: https://github.com/postcss/benchmark\n\n## Usage\n\nYou just need to follow these two steps to use PostCSS:\n\n1. Add PostCSS to your build tool.\n2. Select plugins from the list below and add them to your PostCSS process.\n\nThere are plugins for [Grunt], [Gulp], [webpack], [Broccoli],\n[Brunch] and [ENB].\n\n```js\ngulp.task('css', function () {\n var postcss = require('gulp-postcss');\n return gulp.src('src/**/*.css')\n .pipe( postcss([ require('cssnext')(), require('cssnano')() ]) )\n .pipe( gulp.dest('build/') );\n});\n```\n\nFor other environments, you can use the [CLI tool] or the JS API:\n\n```js\nvar postcss = require('postcss');\npostcss([ require('cssnext')(), require('cssnano')() ])\n .process(css, { from: 'src/app.css', to: 'app.css' })\n .then(function (result) {\n fs.writeFileSync('app.css', result.css);\n if ( result.map ) fs.writeFileSync('app.css.map', result.map);\n });\n```\n\nYou can also use PostCSS plugins with the Stylus by using [`poststylus`].\n\nRead the [PostCSS API] for more details about the JS API.\n\n[`poststylus`]: https://github.com/seaneking/poststylus\n[PostCSS API]: https://github.com/postcss/postcss/blob/master/docs/api.md\n[Broccoli]: https://github.com/jeffjewiss/broccoli-postcss\n[CLI tool]: https://github.com/code42day/postcss-cli\n[webpack]: https://github.com/postcss/postcss-loader\n[Brunch]: https://github.com/iamvdo/postcss-brunch\n[Grunt]: https://github.com/nDmitry/grunt-postcss\n[Gulp]: https://github.com/postcss/gulp-postcss\n[ENB]: https://github.com/theprotein/enb-postcss\n\n## Plugins\n\n### Control\n\nThere is two way to make PostCSS magic more explicit.\n\nDefine a plugins contexts and switch between them in different parts of CSS\nby [`postcss-plugin-context`]:\n\n```css\n.css-example.is-test-for-css4-browsers {\n color: gray(255, 50%);\n}\n@context cssnext {\n .css-example.is-fallback-for-all-browsers {\n color: gray(255, 50%);\n }\n}\n```\n\nOr to enable plugins right in CSS by [`postcss-use`]:\n\n```css\n@use autoprefixer(browsers: ['last 2 versions']);\n\n:fullscreen a {\n display: flex\n}\n```\n\n[`postcss-plugin-context`]: https://github.com/postcss/postcss-plugin-context\n[`postcss-use`]: https://github.com/postcss/postcss-use\n\n### Packs\n\n* [`atcss`] contains plugins that transform your CSS according\n to special annotation comments.\n* [`cssnano`] contains plugins that optimize CSS size for use in production.\n* [`cssnext`] contains plugins that allow you to use future CSS features today.\n\n[`cssnano`]: https://github.com/ben-eb/cssnano\n[`cssnext`]: http://cssnext.io/\n[`atcss`]: https://github.com/morishitter/atcss\n\n### Future CSS Syntax\n\n* [`postcss-color-function`] supports functions to transform colors.\n* [`postcss-color-gray`] supports the `gray()` function.\n* [`postcss-color-hex-alpha`] supports `#rrggbbaa` and `#rgba` notation.\n* [`postcss-color-hwb`] transforms `hwb()` to widely compatible `rgb()`.\n* [`postcss-color-rebeccapurple`] supports the `rebeccapurple` color.\n* [`postcss-conic-gradient`] supports the `conic-gradient` background.\n* [`postcss-css-variables`] supports variables for nested rules,\n selectors, and at-rules\n* [`postcss-custom-media`] supports custom aliases for media queries.\n* [`postcss-custom-properties`] supports variables, using syntax from\n the W3C Custom Properties.\n* [`postcss-custom-selectors`] adds custom aliases for selectors.\n* [`postcss-font-variant`] transpiles human-readable `font-variant`\n to more widely supported CSS.\n* [`postcss-host`] makes the Shadow DOM’s `:host` selector work properly\n with pseudo-classes.\n* [`postcss-media-minmax`] adds `<=` and `=>` statements to media queries.\n* [`postcss-pseudo-class-any-link`] adds `:any-link` pseudo-class.\n* [`postcss-selector-not`] transforms CSS4 `:not()` to CSS3 `:not()`.\n* [`mq4-hover-shim`] supports the `@media (hover)` feature.\n\nSee also [`cssnext`] plugins pack to add future CSS syntax by one line of code.\n\n### Fallbacks\n\n* [`postcss-color-rgba-fallback`] transforms `rgba()` to hexadecimal.\n* [`postcss-epub`] adds the `-epub-` prefix to relevant properties.\n* [`postcss-image-set`] adds `background-image` with first image\n for `image-set()`.\n* [`postcss-opacity`] adds opacity filter for IE8.\n* [`postcss-pseudoelements`] Convert `::` selectors into `:` selectors\n for IE 8 compatibility.\n* [`postcss-vmin`] generates `vm` fallback for `vmin` unit in IE9.\n* [`postcss-will-change`] inserts 3D hack before `will-change` property.\n* [`autoprefixer`] adds vendor prefixes for you, using data from Can I Use.\n* [`cssgrace`] provides various helpers and transpiles CSS 3 for IE\n and other old browsers.\n* [`pixrem`] generates pixel fallbacks for `rem` units.\n\n### Language Extensions\n\n* [`postcss-bem`] adds at-rules for BEM and SUIT style classes.\n* [`postcss-conditionals`] adds `@if` statements.\n* [`postcss-define-property`] to define properties shortcut.\n* [`postcss-each`] adds `@each` statement.\n* [`postcss-for`] adds `@for` loops.\n* [`postcss-map`] enables configuration maps.\n* [`postcss-mixins`] enables mixins more powerful than Sass’s,\n defined within stylesheets or in JS.\n* [`postcss-media-variables`] adds support for `var()` and `calc()`\n in `@media` rules\n* [`postcss-modular-scale`] adds a modular scale `ms()` function.\n* [`postcss-nested`] unwraps nested rules.\n* [`postcss-pseudo-class-enter`] transforms `:enter` into `:hover` and `:focus`.\n* [`postcss-quantity-queries`] enables quantity queries.\n* [`postcss-simple-extend`] supports extending of silent classes,\n like Sass’s `@extend`.\n* [`postcss-simple-vars`] supports for Sass-style variables.\n* [`postcss-strip-units`] strips units off of property values.\n* [`postcss-vertical-rhythm`] adds a vertical rhythm unit\n based on `font-size` and `line-height`.\n* [`csstyle`] adds components workflow to your styles.\n\n### Colors\n\n* [`postcss-brand-colors`] inserts company brand colors\n in the `brand-colors` module.\n* [`postcss-color-alpha`] transforms `#hex.a`, `black(alpha)` and `white(alpha)`\n to `rgba()`.\n* [`postcss-color-hcl`] transforms `hcl(H, C, L)` and `HCL(H, C, L, alpha)`\n to `#rgb` and `rgba()`.\n* [`postcss-color-mix`] mixes two colors together.\n* [`postcss-color-palette`] transforms CSS 2 color keywords to a custom palette.\n* [`postcss-color-pantone`] transforms pantone color to RGB.\n* [`postcss-color-scale`] adds a color scale `cs()` function.\n* [`postcss-hexrgba`] adds shorthand hex `rgba(hex, alpha)` method.\n\n### Grids\n\n* [`postcss-grid`] adds a semantic grid system.\n* [`postcss-neat`] is a semantic and fluid grid framework.\n* [`lost`] feature-rich `calc()` grid system by Jeet author.\n\n### Optimizations\n\n* [`postcss-assets`] allows you to simplify URLs, insert image dimensions,\n and inline files.\n* [`postcss-at2x`] handles retina background images via use of `at-2x` keyword.\n* [`postcss-calc`] reduces `calc()` to values\n (when expressions involve the same units).\n* [`postcss-data-packer`] moves embedded Base64 data to a separate file.\n* [`postcss-import`] inlines the stylesheets referred to by `@import` rules.\n* [`postcss-single-charset`] ensures that there is one and only one\n `@charset` rule at the top of file.\n* [`postcss-sprites`] generates CSS sprites from stylesheets.\n* [`postcss-url`] rebases or inlines `url()`s.\n* [`postcss-zindex`] rebases positive `z-index` values.\n* [`css-byebye`] removes the CSS rules that you don’t want.\n* [`css-mqpacker`] joins matching CSS media queries into a single statement.\n* [`webpcss`] adds URLs for WebP images for browsers that support WebP.\n\nSee also plugins in modular minifier [`cssnano`].\n\n### Shortcuts\n\n* [`postcss-alias`] to create shorter aliases for properties.\n* [`postcss-border`] adds shorthand for width and color of all borders\n in `border` property.\n* [`postcss-clearfix`] adds `fix` and `fix-legacy` properties to the `clear`\n declaration.\n* [`postcss-default-unit`] adds default unit to numeric CSS properties.\n* [`postcss-easings`] replaces easing names from easings.net\n with `cubic-bezier()` functions.\n* [`postcss-focus`] adds `:focus` selector to every `:hover`.\n* [`postcss-fontpath`] adds font links for different browsers.\n* [`postcss-generate-preset`] allows quick generation of rules.\n Useful for creating repetitive utilities.\n* [`postcss-position`] adds shorthand declarations for position attributes.\n* [`postcss-property-lookup`] allows referencing property values without\n a variable.\n* [`postcss-short`] adds and extends numerous shorthand properties.\n* [`postcss-size`] adds a `size` shortcut that sets width and height\n with one declaration.\n* [`postcss-verthorz`] adds vertical and horizontal spacing declarations.\n\n### Others\n\n* [`postcss-class-prefix`] adds a prefix/namespace to class selectors.\n* [`postcss-colorblind`] transforms colors using filters to simulate\n colorblindness.\n* [`postcss-fakeid`] transforms `#foo` IDs to attribute selectors `[id=\"foo\"]`.\n* [`postcss-flexboxfixer`] unprefixes `-webkit-` only flexbox in legacy CSS.\n* [`postcss-gradientfixer`] unprefixes `-webkit-` only gradients in legacy CSS.\n* [`postcss-log-warnings`] logs warnings messages from other plugins\n in the console.\n* [`postcss-messages`] displays warning messages from other plugins\n right in your browser.\n* [`postcss-pxtorem`] converts pixel units to `rem`.\n* [`postcss-style-guide`] generates a style guide automatically.\n* [`rtlcss`] mirrors styles for right-to-left locales.\n* [`stylehacks`] removes CSS hacks based on browser support.\n\n### Analysis\n\n* [`postcss-bem-linter`] lints CSS for conformance to SUIT CSS methodology.\n* [`postcss-cssstats`] returns an object with CSS statistics.\n* [`css2modernizr`] creates a Modernizr config file\n that requires only the tests that your CSS uses.\n* [`doiuse`] lints CSS for browser support, using data from Can I Use.\n* [`list-selectors`] lists and categorizes the selectors used in your CSS,\n for code review.\n\n### Fun\n\n* [`postcss-australian-stylesheets`] Australian Style Sheets.\n* [`postcss-canadian-stylesheets`] Canadian Style Sheets.\n* [`postcss-pointer`] Replaces `pointer: cursor` with `cursor: pointer`.\n* [`postcss-spiffing`] lets you use British English in your CSS.\n\n[`postcss-australian-stylesheets`]: https://github.com/dp-lewis/postcss-australian-stylesheets\n[`postcss-pseudo-class-any-link`]: https://github.com/jonathantneal/postcss-pseudo-class-any-link\n[`postcss-canadian-stylesheets`]: https://github.com/chancancode/postcss-canadian-stylesheets\n[`postcss-color-rebeccapurple`]: https://github.com/postcss/postcss-color-rebeccapurple\n[`postcss-color-rgba-fallback`]: https://github.com/postcss/postcss-color-rgba-fallback\n[`postcss-discard-duplicates`]: https://github.com/ben-eb/postcss-discard-duplicates\n[`postcss-minify-font-weight`]: https://github.com/ben-eb/postcss-minify-font-weight\n[`postcss-pseudo-class-enter`]: https://github.com/jonathantneal/postcss-pseudo-class-enter\n[`postcss-custom-properties`]: https://github.com/postcss/postcss-custom-properties\n[`postcss-discard-font-face`]: https://github.com/ben-eb/postcss-discard-font-face\n[`postcss-custom-selectors`]: https://github.com/postcss/postcss-custom-selectors\n[`postcss-discard-comments`]: https://github.com/ben-eb/postcss-discard-comments\n[`postcss-minify-selectors`]: https://github.com/ben-eb/postcss-minify-selectors\n[`postcss-quantity-queries`]: https://github.com/pascalduez/postcss-quantity-queries\n[`postcss-color-hex-alpha`]: https://github.com/postcss/postcss-color-hex-alpha\n[`postcss-define-property`]: https://github.com/daleeidd/postcss-define-property\n[`postcss-generate-preset`]: https://github.com/simonsmith/postcss-generate-preset\n[`postcss-media-variables`]: https://github.com/WolfgangKluge/postcss-media-variables\n[`postcss-property-lookup`]: https://github.com/simonsmith/postcss-property-lookup\n[`postcss-vertical-rhythm`]: https://github.com/markgoodyear/postcss-vertical-rhythm\n[`postcss-color-function`]: https://github.com/postcss/postcss-color-function\n[`postcss-conic-gradient`]: https://github.com/jonathantneal/postcss-conic-gradient\n[`postcss-convert-values`]: https://github.com/ben-eb/postcss-convert-values\n[`postcss-pseudoelements`]: https://github.com/axa-ch/postcss-pseudoelements\n[`postcss-single-charset`]: https://github.com/hail2u/postcss-single-charset\n[`postcss-color-palette`]: https://github.com/zaim/postcss-color-palette\n[`postcss-color-pantone`]: https://github.com/longdog/postcss-color-pantone\n[`postcss-css-variables`]: https://github.com/MadLittleMods/postcss-css-variables\n[`postcss-discard-empty`]: https://github.com/ben-eb/postcss-discard-empty\n[`postcss-gradientfixer`]: https://github.com/hallvors/postcss-gradientfixer\n[`postcss-modular-scale`]: https://github.com/kristoferjoseph/postcss-modular-scale\n[`postcss-normalize-url`]: https://github.com/ben-eb/postcss-normalize-url\n[`postcss-reduce-idents`]: https://github.com/ben-eb/postcss-reduce-idents\n[`postcss-simple-extend`]: https://github.com/davidtheclark/postcss-simple-extend\n[`postcss-brand-colors`]: https://github.com/postcss/postcss-brand-colors\n[`postcss-class-prefix`]: https://github.com/thompsongl/postcss-class-prefix\n[`postcss-conditionals`]: https://github.com/andyjansson/postcss-conditionals\n[`postcss-custom-media`]: https://github.com/postcss/postcss-custom-media\n[`postcss-default-unit`]: https://github.com/antyakushev/postcss-default-unit\n[`postcss-flexboxfixer`]: https://github.com/hallvors/postcss-flexboxfixer\n[`postcss-font-variant`]: https://github.com/postcss/postcss-font-variant\n[`postcss-log-warnings`]: https://github.com/davidtheclark/postcss-log-warnings\n[`postcss-media-minmax`]: https://github.com/postcss/postcss-media-minmax\n[`postcss-merge-idents`]: https://github.com/ben-eb/postcss-merge-idents\n[`postcss-selector-not`]: https://github.com/postcss/postcss-selector-not\n[`postcss-color-alpha`]: https://github.com/avanes/postcss-color-alpha\n[`postcss-color-scale`]: https://github.com/kristoferjoseph/postcss-color-scale\n[`postcss-data-packer`]: https://github.com/Ser-Gen/postcss-data-packer\n[`postcss-font-family`]: https://github.com/ben-eb/postcss-font-family\n[`postcss-merge-rules`]: https://github.com/ben-eb/postcss-merge-rules\n[`postcss-simple-vars`]: https://github.com/postcss/postcss-simple-vars\n[`postcss-strip-units`]: https://github.com/whitneyit/postcss-strip-units\n[`postcss-style-guide`]: https://github.com/morishitter/postcss-style-guide\n[`postcss-will-change`]: https://github.com/postcss/postcss-will-change\n[`postcss-bem-linter`]: https://github.com/necolas/postcss-bem-linter\n[`postcss-color-gray`]: https://github.com/postcss/postcss-color-gray\n[`postcss-colorblind`]: https://github.com/btholt/postcss-colorblind\n[`postcss-color-hcl`]: https://github.com/devgru/postcss-color-hcl\n[`postcss-color-hwb`]: https://github.com/postcss/postcss-color-hwb\n[`postcss-color-mix`]: https://github.com/iamstarkov/postcss-color-mix\n[`postcss-image-set`]: https://github.com/alex499/postcss-image-set\n[`postcss-clearfix`]: https://github.com/seaneking/postcss-clearfix\n[`postcss-colormin`]: https://github.com/ben-eb/colormin\n[`postcss-cssstats`]: https://github.com/cssstats/postcss-cssstats\n[`postcss-messages`]: https://github.com/postcss/postcss-messages\n[`postcss-position`]: https://github.com/seaneking/postcss-position\n[`postcss-spiffing`]: https://github.com/HashanP/postcss-spiffing\n[`postcss-verthorz`]: https://github.com/davidhemphill/postcss-verthorz\n[`pleeease-filters`]: https://github.com/iamvdo/pleeease-filters\n[`postcss-fontpath`]: https://github.com/seaneking/postcss-fontpath\n[`postcss-easings`]: https://github.com/postcss/postcss-easings\n[`postcss-hexrgba`]: https://github.com/seaneking/postcss-hexrgba\n[`postcss-opacity`]: https://github.com/iamvdo/postcss-opacity\n[`postcss-pointer`]: https://github.com/markgoodyear/postcss-pointer\n[`postcss-pxtorem`]: https://github.com/cuth/postcss-pxtorem\n[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites\n[`postcss-assets`]: https://github.com/borodean/postcss-assets\n[`postcss-border`]: https://github.com/andrepolischuk/postcss-border\n[`postcss-fakeid`]: https://github.com/pathsofdesign/postcss-fakeid\n[`postcss-import`]: https://github.com/postcss/postcss-import\n[`postcss-mixins`]: https://github.com/postcss/postcss-mixins\n[`postcss-nested`]: https://github.com/postcss/postcss-nested\n[`postcss-zindex`]: https://github.com/ben-eb/postcss-zindex\n[`list-selectors`]: https://github.com/davidtheclark/list-selectors\n[`mq4-hover-shim`]: https://github.com/twbs/mq4-hover-shim\n[`postcss-focus`]: https://github.com/postcss/postcss-focus\n[`css2modernizr`]: https://github.com/vovanbo/css2modernizr\n[`postcss-short`]: https://github.com/jonathantneal/postcss-short\n[`postcss-alias`]: https://github.com/seaneking/postcss-alias\n[`postcss-at2x`]: https://github.com/simonsmith/postcss-at2x\n[`postcss-calc`]: https://github.com/postcss/postcss-calc\n[`postcss-each`]: https://github.com/outpunk/postcss-each\n[`postcss-epub`]: https://github.com/Rycochet/postcss-epub\n[`postcss-grid`]: https://github.com/andyjansson/postcss-grid\n[`postcss-host`]: https://github.com/vitkarpov/postcss-host\n[`postcss-neat`]: https://github.com/jo-asakura/postcss-neat\n[`postcss-size`]: https://github.com/postcss/postcss-size\n[`postcss-vmin`]: https://github.com/iamvdo/postcss-vmin\n[`autoprefixer`]: https://github.com/postcss/autoprefixer\n[`css-mqpacker`]: https://github.com/hail2u/node-css-mqpacker\n[`postcss-bem`]: https://github.com/ileri/postcss-bem\n[`postcss-for`]: https://github.com/antyakushev/postcss-for\n[`postcss-map`]: https://github.com/pascalduez/postcss-map\n[`postcss-url`]: https://github.com/postcss/postcss-url\n[`css-byebye`]: https://github.com/AoDev/css-byebye\n[`stylehacks`]: https://github.com/ben-eb/stylehacks\n[`cssgrace`]: https://github.com/cssdream/cssgrace\n[`csstyle`]: https://github.com/geddski/csstyle\n[`webpcss`]: https://github.com/lexich/webpcss\n[`doiuse`]: https://github.com/anandthakker/doiuse\n[`pixrem`]: https://github.com/robwierzbowski/node-pixrem\n[`rtlcss`]: https://github.com/MohammadYounes/rtlcss\n[`lost`]: https://github.com/corysimmons/lost\n\n## How to Develop PostCSS Plugin\n\n* [Plugin Guidelines](https://github.com/postcss/postcss/blob/master/docs/guidelines/plugin.md)\n* [Plugin Boilerplate](https://github.com/postcss/postcss-plugin-boilerplate)\n* [PostCSS API](https://github.com/postcss/postcss/blob/master/docs/api.md)\n* [Ask questions](https://gitter.im/postcss/postcss)\n\n## Options\n\n### Source Map\n\nPostCSS has great [source maps] support. It can read and interpret maps\nfrom previous transformation steps, autodetect the format that you expect,\nand output both external and inline maps.\n\nTo ensure that you generate an accurate source map, you must indicate the input\nand output CSS files paths — using the options `from` and `to`, respectively.\n\nTo generate a new source map with the default options, simply set `map: true`.\nThis will generate an inline source map that contains the source content.\nIf you don’t want the map inlined, you can use set `map.inline: false`.\n\n```js\nprocessor\n .process(css, {\n from: 'app.sass.css',\n to: 'app.css',\n map: { inline: false },\n })\n .then(function (result) {\n result.map //=> '{ \"version\":3,\n // \"file\":\"app.css\",\n // \"sources\":[\"app.sass\"],\n // \"mappings\":\"AAAA,KAAI\" }'\n });\n```\n\nIf PostCSS finds source maps from a previous transformation,\nit will automatically update that source map with the same options.\n\nIf you want more control over source map generation, you can define the `map`\noption as an object with the following parameters:\n\n* `inline` boolean: indicates that the source map should be embedded\n in the output CSS as a Base64-encoded comment. By default, it is `true`.\n But if all previous maps are external, not inline, PostCSS will not embed\n the map even if you do not set this option.\n\n If you have an inline source map, the `result.map` property will be empty,\n as the source map will be contained within the text of `result.css`.\n\n* `prev` string, object or boolean: source map content from\n a previous processing step (for example, Sass compilation).\n PostCSS will try to read the previous source map automatically\n (based on comments within the source CSS), but you can use this option\n to identify it manually. If desired, you can omit the previous map\n with `prev: false`.\n\n* `sourcesContent` boolean: indicates that PostCSS should set the origin\n content (for example, Sass source) of the source map. By default, it’s `true`.\n But if all previous maps do not contain sources content, PostCSS will also\n leave it out even if you do not set this option.\n\n* `annotation` boolean or string: indicates that PostCSS should add annotation\n comments to the CSS. By default, PostCSS will always add a comment with a path\n to the source map. But if the input CSS does not have any annotation\n comment, PostCSS will omit it, too, even if you do not set this option.\n\n By default, PostCSS presumes that you want to save the source map as\n `opts.to + '.map'` and will use this path in the annotation comment.\n But you can set another path by providing a string value for `annotation`.\n\n If you have set `inline: true`, annotation cannot be disabled.\n\n[source maps]: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/\n\n### Safe Mode\n\nIf you provide a `safe: true` option to the `process` or `parse` methods,\nPostCSS will try to correct any syntax errors that it finds in the CSS.\n\n```js\npostcss.parse('a {'); // will throw \"Unclosed block\"\npostcss.parse('a {', { safe: true }); // will return CSS root for a {}\n```\n\nThis is useful for legacy code filled with hacks. Another use-case\nis interactive tools with live input — for example,\nthe [Autoprefixer demo](http://jsfiddle.net/simevidas/udyTs/show/light/).\n",
readmeFilename:"README.md",bugs:{url:"https://github.com/postcss/postcss/issues"},homepage:"https://github.com/postcss/postcss",_id:"postcss@4.1.16",_from:"postcss@^4.1.11"}},{}],"postcss-nested":[function(require,module,exports){var postcss=require("postcss");var selector=function(parent,node){return parent.selectors.map(function(i){return node.selectors.map(function(j){if(j.indexOf("&")===-1){return i+" "+j}else{return j.replace(/&/g,i)}}).join(", ")}).join(", ")};var atruleChilds=function(rule,atrule){var decls=[];atrule.each(function(child){if(child.type==="decl"){decls.push(child)}else if(child.type==="rule"){child.selector=selector(rule,child)}else if(child.type==="atrule"){atruleChilds(rule,child)}});if(decls.length){var clone=rule.clone({nodes:[]});for(var i=0;i<decls.length;i++)decls[i].moveTo(clone);atrule.prepend(clone)}};var processRule=function(rule,bubble){var unwrapped=false;var after=rule;rule.each(function(child){if(child.type==="rule"){unwrapped=true;child.selector=selector(rule,child);after=child.moveAfter(after)}else if(child.type==="atrule"){if(bubble.indexOf(child.name)!==-1){unwrapped=true;atruleChilds(rule,child);after=child.moveAfter(after)}}});if(unwrapped){rule.semicolon=true;if(rule.nodes.length===0)rule.removeSelf()}};module.exports=postcss.plugin("postcss-nested",function(opts){var bubble=["media","supports","document"];if(opts&&opts.bubble){bubble=bubble.concat(opts.bubble.map(function(i){return i.replace(/^@/,"")}))}var process=function(node){node.each(function(child){if(child.type==="rule"){processRule(child,bubble)}else if(child.type==="atrule"){process(child)}})};return process})},{postcss:20}]},{},[]);var postcss=require("postcss");var extend=require("postcss-extend");var nested=require("postcss-nested");var css=["",".real { .child { color: green} &:before { color: blue } }","%ph { .child { color: green} &:before { color: blue } }","",".real-extend { background: red; @extend real; }","",".ph-extend { background: red; @extend %ph; }"].join("\n");postcss([nested(),extend()]).process(css).then(function(result){console.log("result:\n==============\n",result.css)}).catch(function(e){console.log("error\n",e)});
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"postcss": "4.1.16",
"postcss-extend": "0.4.3",
"postcss-nested": "0.3.2"
}
}
<!-- contents of this file will be placed inside the <body> -->
<!-- contents of this file will be placed inside the <head> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment