|
|
!function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,r,n){(function(t){!function(e){if("object"==typeof n&&void 0!==r)r.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).hotkeys=e()}}(function(){function t(){return p||"all"}function r(t,e,r){t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent&&t.attachEvent("on"+e,function(){r(window.event)})}function n(e){var r,n=e.keyCode||e.which||e.charCode,o=v["*"];if(-1===g.indexOf(n)&&g.push(n),93!==n&&224!==n||(n=91),n in b){b[n]=!0;for(var s in d)d[s]===n&&(f[s]=!0);if(!o)return}for(var a in b)b[a]=e[y[a]];if(f.filter.call(this,e)){if(r=t(),o)for(u=0;u<o.length;u++)o[u].scope===r&&i(e,o[u],r);if(n in v)for(var u=0;u<v[n].length;u++)i(e,v[n][u],r)}}function i(t,e,r){var n;if(e.scope===r||"all"===e.scope){n=e.mods.length>0;for(var i in b)(!b[i]&&e.mods.indexOf(+i)>-1||b[i]&&-1===e.mods.indexOf(+i))&&(n=!1);(0!==e.mods.length||b[16]||b[18]||b[17]||b[91])&&!n&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function o(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function s(t){for(var e=t.slice(0,t.length-1),r=0;r<e.length;r++)e[r]=d[e[r]];return e}function a(t){var e;return t=t.replace(/\s/g,""),""===(e=t.split(","))[e.length-1]&&(e[e.length-2]+=","),e}function u(t){var r=t.keyCode||e.which||e.charCode,n=g.indexOf(r);if(n>=0&&g.splice(n,1),93!==r&&224!==r||(r=91),r in b){b[r]=!1;for(var i in d)d[i]===r&&(f[i]=!1)}}function f(t,e,r){var n=a(t),i=[],o=0;for(void 0===r&&(r=e,e="all");o<n.length;o++)i=[],(t=n[o].split("+")).length>1&&(i=s(t),t=[t[t.length-1]]),(t="*"===(t=t[0])?"*":m(t))in v||(v[t]=[]),v[t].push({shortcut:n[o],scope:e,method:r,key:n[o],mods:i})}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e]===t)return e;return-1});for(var l,c=navigator.userAgent.toLowerCase().indexOf("firefox")>0,h={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,"⇪":20,CapsLock:20,",":188,".":190,"/":191,"`":192,"-":c?173:189,"=":c?61:187,";":c?59:186,"'":222,"[":219,"]":221,"\\":220},p="all",d={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":c?224:91,command:c?224:91},g=[],y={16:"shiftKey",18:"altKey",17:"ctrlKey"},b={16:!1,18:!1,17:!1},m=function(t){return h[t]||t.toUpperCase().charCodeAt(0)},v={},w=1;w<20;w++)h["f"+w]=111+w;y[c?224:91]="metaKey",b[c?224:91]=!1,r(document,"keydown",function(t){n(t)}),r(document,"keyup",function(t){u(t)}),l={setScope:function(t){p=t||"all"},getScope:t,deleteScope:function(t){var e,r,n;for(e in v)for(r=v[e],n=0;n<r.length;)r[n].scope===t?r.splice(n,1):n++},getPressedKeyCodes:function(t){return g.slice(0)},isPressed:function(t){return"string"==typeof t&&(t=m(t)),-1!==g.indexOf(t)},filter:function(t){var e=(t.target||t.srcElement).tagName;return!("INPUT"===e||"SELECT"===e||"TEXTAREA"===e)},unbind:function(e,r){for(var n,i,u=a(e),f=[],l=0;l<u.length;l++){if((n=u[l].split("+")).length>1&&(f=s(n)),e=n[n.length-1],e=m(e),void 0===r&&(r=t()),!v[e])return;for(var c=0;c<v[e].length;c++)(i=v[e][c]).scope===r&&o(i.mods,f)&&(v[e][c]={})}}};for(var _ in l)f[_]=l[_];var x=window.hotkeys;return f.noConflict=function(t){return t&&window.hotkeys===f&&(window.hotkeys=x),f},window.hotkeys=f,f})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function o(t,e,r){for(var n,o=[],s=e;s<r;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(i(n));return o.join("")}r.byteLength=function(t){return 3*t.length/4-n(t)},r.toByteArray=function(t){var e,r,i,o,s,f=t.length;o=n(t),s=new u(3*f/4-o),r=o>0?f-4:f;var l=0;for(e=0;e<r;e+=4)i=a[t.charCodeAt(e)]<<18|a[t.charCodeAt(e+1)]<<12|a[t.charCodeAt(e+2)]<<6|a[t.charCodeAt(e+3)],s[l++]=i>>16&255,s[l++]=i>>8&255,s[l++]=255&i;return 2===o?(i=a[t.charCodeAt(e)]<<2|a[t.charCodeAt(e+1)]>>4,s[l++]=255&i):1===o&&(i=a[t.charCodeAt(e)]<<10|a[t.charCodeAt(e+1)]<<4|a[t.charCodeAt(e+2)]>>2,s[l++]=i>>8&255,s[l++]=255&i),s},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i="",a=[],u=0,f=r-n;u<f;u+=16383)a.push(o(t,u,u+16383>f?f:u+16383));return 1===n?(e=t[r-1],i+=s[e>>2],i+=s[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=s[e>>10],i+=s[e>>4&63],i+=s[e<<2&63],i+="="),a.push(i),a.join("")};for(var s=[],a=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l<c;++l)s[l]=f[l],a[f.charCodeAt(l)]=l;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],3:[function(t,e,r){},{}],4:[function(t,e,r){arguments[4][3][0].apply(r,arguments)},{dup:3}],5:[function(t,e,r){"use strict";function n(t){if(t>G)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=i.prototype,e}function i(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(t)}return o(t,e,r)}function o(t,e,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return $(t)?c(t,e,r):"string"==typeof t?f(t,e):h(t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,e,r){return s(t),t<=0?n(t):void 0!==e?"string"==typeof r?n(t).fill(e,r):n(t).fill(e):n(t)}function u(t){return s(t),n(t<0?0:0|p(t))}function f(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,e),o=n(r),s=o.write(t,e);return s!==r&&(o=o.slice(0,s)),o}function l(t){for(var e=t.length<0?0:0|p(t.length),r=n(e),i=0;i<e;i+=1)r[i]=255&t[i];return r}function c(t,e,r){if(e<0||t.byteLength<e)throw new RangeError("'offset' is out of bounds");if(t.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),n.__proto__=i.prototype,n}function h(t){if(i.isBuffer(t)){var e=0|p(t.length),r=n(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(t){if(V(t)||"length"in t)return"number"!=typeof t.length||z(t.length)?n(0):l(t);if("Buffer"===t.type&&Array.isArray(t.data))return l(t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return 0|t}function d(t,e){if(i.isBuffer(t))return t.length;if(V(t)||$(t))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(n)return R(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return A(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,z(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;f<a;f++)if(o(t,f)===o(e,-1===l?0:f-l)){if(-1===l&&(l=f),f-l+1===u)return l*s}else-1!==l&&(f-=f-l),l=-1}else for(r+u>a&&(r=a-u),f=r;f>=0;f--){for(var c=!0,h=0;h<u;h++)if(o(t,f+h)!==o(e,h)){c=!1;break}if(c)return f}return-1}function v(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(z(a))return s;t[r+s]=a}return s}function w(t,e,r,n){return K(R(e,t.length-r),t,r,n)}function _(t,e,r,n){return K(U(e),t,r,n)}function x(t,e,r,n){return _(t,e,r,n)}function k(t,e,r,n){return K(W(e),t,r,n)}function E(t,e,r,n){return K(F(e,t.length-r),t,r,n)}function S(t,e,r){return 0===e&&r===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,f,l,c;switch(a){case 1:o<128&&(s=o);break;case 2:128==(192&(u=t[i+1]))&&(c=(31&o)<<6|63&u)>127&&(s=c);break;case 3:u=t[i+1],f=t[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:u=t[i+1],f=t[i+2],l=t[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(s=c)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return j(n)}function j(t){var e=t.length;if(e<=X)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=X));return r}function A(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function M(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function T(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=P(t[o]);return i}function O(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function q(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,s){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<s)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function D(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,i){return e=+e,r>>>=0,i||D(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),Y.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return e=+e,r>>>=0,i||D(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),Y.write(t,e,r,n,52,8),r+8}function I(t){if((t=t.trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function P(t){return t<16?"0"+t.toString(16):t.toString(16)}function R(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function U(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function F(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}function W(t){return H.toByteArray(I(t))}function K(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function $(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function V(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function z(t){return t!==t}var H=t("base64-js"),Y=t("ieee754");r.Buffer=i,r.SlowBuffer=function(t){return+t!=t&&(t=0),i.alloc(+t)},r.INSPECT_MAX_BYTES=50;var G=2147483647;r.kMaxLength=G,i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(t,e,r){return o(t,e,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(t,e,r){return a(t,e,r)},i.allocUnsafe=function(t){return u(t)},i.allocUnsafeSlow=function(t){return u(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,s=Math.min(r,n);o<s;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var s=t[r];if(!i.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},i.byteLength=d,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},i.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var s=o-n,a=r-e,u=Math.min(s,a),f=this.slice(n,o),l=t.slice(e,r),c=0;c<u;++c)if(f[c]!==l[c]){s=f[c],a=l[c];break}return s<a?-1:a<s?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return k(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=i.prototype,n},i.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},i.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},i.prototype.readUInt8=function(t,e){return t>>>=0,e||q(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||q(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||q(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||q(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},i.prototype.readInt8=function(t,e){return t>>>=0,e||q(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||q(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){t>>>=0,e||q(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||q(t,4,this.length),Y.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||q(t,4,this.length),Y.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||q(t,8,this.length),Y.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||q(t,8,this.length),Y.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<r;++s)this[s]=t;else{var a=i.isBuffer(t)?t:new i(t,n),u=a.length;for(s=0;s<r-e;++s)this[s+e]=a[s%u]}return this};var Z=/[^+/0-9A-Za-z-_]/g},{"base64-js":2,ieee754:27}],6:[function(t,e,r){(function(t){function e(t){return Object.prototype.toString.call(t)}r.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},r.isBoolean=function(t){return"boolean"==typeof t},r.isNull=function(t){return null===t},r.isNullOrUndefined=function(t){return null==t},r.isNumber=function(t){return"number"==typeof t},r.isString=function(t){return"string"==typeof t},r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=function(t){return void 0===t},r.isRegExp=function(t){return"[object RegExp]"===e(t)},r.isObject=function(t){return"object"==typeof t&&null!==t},r.isDate=function(t){return"[object Date]"===e(t)},r.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},r.isFunction=function(t){return"function"==typeof t},r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":29}],7:[function(t,e,r){function n(t){return null===t||void 0===t}function i(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function o(t,e,r){var o,l;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=s.call(t),e=s.call(e),f(t,e,r));if(i(t)){if(!i(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var c=a(t),h=a(e)}catch(t){return!1}if(c.length!=h.length)return!1;for(c.sort(),h.sort(),o=c.length-1;o>=0;o--)if(c[o]!=h[o])return!1;for(o=c.length-1;o>=0;o--)if(l=c[o],!f(t[l],e[l],r))return!1;return typeof t==typeof e}var s=Array.prototype.slice,a=t("./lib/keys.js"),u=t("./lib/is_arguments.js"),f=e.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?r.strict?t===e:t==e:o(t,e,r))}},{"./lib/is_arguments.js":8,"./lib/keys.js":9}],8:[function(t,e,r){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(r=e.exports=o?n:i).supported=n,r.unsupported=i},{}],9:[function(t,e,r){function n(t){var e=[];for(var r in t)e.push(r);return e}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},{}],10:[function(t,e,r){"use strict";var n=t("object-keys"),i=t("foreach"),o="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=function(t){return"function"==typeof t&&"[object Function]"===s.call(t)},u=Object.defineProperty&&function(){var t={};try{Object.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),f=function(t,e,r,n){(!(e in t)||a(n)&&n())&&(u?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);o&&(s=s.concat(Object.getOwnPropertySymbols(e))),i(s,function(n){f(t,n,e[n],r[n])})};l.supportsDescriptors=!!u,e.exports=l},{foreach:21,"object-keys":34}],11:[function(t,e,r){e.exports=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],12:[function(t,e,r){"use strict";var n=t("./helpers/isNaN"),i=t("./helpers/isFinite"),o=t("./helpers/sign"),s=t("./helpers/mod"),a=t("is-callable"),u=t("es-to-primitive/es5"),f=t("has"),l={ToPrimitive:u,ToBoolean:function(t){return!!t},ToNumber:function(t){return Number(t)},ToInteger:function(t){var e=this.ToNumber(t);return n(e)?0:0!==e&&i(e)?o(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(n(e)||0===e||!i(e))return 0;var r=o(e)*Math.floor(Math.abs(e));return s(r,65536)},ToString:function(t){return String(t)},ToObject:function(t){return this.CheckObjectCoercible(t),Object(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new TypeError(e||"Cannot call method on "+t);return t},IsCallable:a,SameValue:function(t,e){return t===e?0!==t||1/t==1/e:n(t)&&n(e)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(f(t,r)&&!e[r])return!1;var n=f(t,"[[Value]]"),i=f(t,"[[Get]]")||f(t,"[[Set]]");if(n&&i)throw new TypeError("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){if(void 0===t)return!1;if(!this.IsPropertyDescriptor(t))throw new TypeError("Desc must be a Property Descriptor");return!(!f(t,"[[Get]]")&&!f(t,"[[Set]]"))},IsDataDescriptor:function(t){if(void 0===t)return!1;if(!this.IsPropertyDescriptor(t))throw new TypeError("Desc must be a Property Descriptor");return!(!f(t,"[[Value]]")&&!f(t,"[[Writable]]"))},IsGenericDescriptor:function(t){if(void 0===t)return!1;if(!this.IsPropertyDescriptor(t))throw new TypeError("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t)},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(!this.IsPropertyDescriptor(t))throw new TypeError("Desc must be a Property Descriptor");if(this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new TypeError("ToPropertyDescriptor requires an object");var e={};if(f(t,"enumerable")&&(e["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),f(t,"configurable")&&(e["[[Configurable]]"]=this.ToBoolean(t.configurable)),f(t,"value")&&(e["[[Value]]"]=t.value),f(t,"writable")&&(e["[[Writable]]"]=this.ToBoolean(t.writable)),f(t,"get")){var r=t.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");e["[[Get]]"]=r}if(f(t,"set")){var n=t.set;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("setter must be a function");e["[[Set]]"]=n}if((f(e,"[[Get]]")||f(e,"[[Set]]"))&&(f(e,"[[Value]]")||f(e,"[[Writable]]")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}};e.exports=l},{"./helpers/isFinite":13,"./helpers/isNaN":14,"./helpers/mod":15,"./helpers/sign":16,"es-to-primitive/es5":17,has:26,"is-callable":30}],13:[function(t,e,r){var n=Number.isNaN||function(t){return t!==t};e.exports=Number.isFinite||function(t){return"number"==typeof t&&!n(t)&&t!==1/0&&t!==-1/0}},{}],14:[function(t,e,r){e.exports=Number.isNaN||function(t){return t!==t}},{}],15:[function(t,e,r){e.exports=function(t,e){var r=t%e;return Math.floor(r>=0?r:r+e)}},{}],16:[function(t,e,r){e.exports=function(t){return t>=0?1:-1}},{}],17:[function(t,e,r){"use strict";var n=Object.prototype.toString,i=t("./helpers/isPrimitive"),o=t("is-callable"),s={"[[DefaultValue]]":function(t,e){var r=e||("[object Date]"===n.call(t)?String:Number);if(r===String||r===Number){var s,a,u=r===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<u.length;++a)if(o(t[u[a]])&&(s=t[u[a]](),i(s)))return s;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}};e.exports=function(t,e){return i(t)?t:s["[[DefaultValue]]"](t,e)}},{"./helpers/isPrimitive":18,"is-callable":30}],18:[function(t,e,r){e.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},{}],19:[function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,o,u,f;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(r=this._events[t],a(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(s(r))for(o=Array.prototype.slice.call(arguments,1),n=(f=r.slice()).length,u=0;u<n;u++)f[u].apply(this,o);return!0},n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(r=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,o,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],o=r.length,n=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(r)){for(a=o;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){n=a;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],20:[function(t,e,r){function n(t,e,r){for(var n=0,i=t.length;n<i;n++)u.call(t,n)&&e.call(r,t[n],n,t)}function i(t,e,r){for(var n=0,i=t.length;n<i;n++)e.call(r,t.charAt(n),n,t)}function o(t,e,r){for(var n in t)u.call(t,n)&&e.call(r,t[n],n,t)}var s=t("is-function");e.exports=function(t,e,r){if(!s(e))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),"[object Array]"===a.call(t)?n(t,e,r):"string"==typeof t?i(t,e,r):o(t,e,r)};var a=Object.prototype.toString,u=Object.prototype.hasOwnProperty},{"is-function":31}],21:[function(t,e,r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=function(t,e,r){if("[object Function]"!==i.call(e))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)e.call(r,t[s],s,t);else for(var a in t)n.call(t,a)&&e.call(r,t[a],a,t)}},{}],22:[function(t,e,r){var n=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,o=n.call(arguments,1),s=Math.max(0,e.length-o.length),a=[],u=0;u<s;u++)a.push("$"+u);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var i=e.apply(this,o.concat(n.call(arguments)));return Object(i)===i?i:this}return e.apply(t,o.concat(n.call(arguments)))}),e.prototype){var f=function(){};f.prototype=e.prototype,r.prototype=new f,f.prototype=null}return r}},{}],23:[function(t,e,r){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":22}],24:[function(t,e,r){e.exports=t("./javascript/diff_match_patch_uncompressed.js").diff_match_patch},{"./javascript/diff_match_patch_uncompressed.js":25}],25:[function(t,e,r){function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}n.Diff,n.prototype.diff_main=function(t,e,r,n){void 0===n&&(n=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=n;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===r&&(r=!0);var o=r,s=this.diff_commonPrefix(t,e),a=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=this.diff_commonSuffix(t,e);var u=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var f=this.diff_compute_(t,e,o,i);return a&&f.unshift([0,a]),u&&f.push([0,u]),this.diff_cleanupMerge(f),f},n.prototype.diff_compute_=function(t,e,r,n){var i;if(!t)return[[1,e]];if(!e)return[[-1,t]];var o=t.length>e.length?t:e,s=t.length>e.length?e:t,a=o.indexOf(s);if(-1!=a)return i=[[1,o.substring(0,a)],[0,s],[1,o.substring(a+s.length)]],t.length>e.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[[-1,t],[1,e]];var u=this.diff_halfMatch_(t,e);if(u){var f=u[0],l=u[1],c=u[2],h=u[3],p=u[4],d=this.diff_main(f,c,r,n),g=this.diff_main(l,h,r,n);return d.concat([[0,p]],g)}return r&&t.length>100&&e.length>100?this.diff_lineMode_(t,e,n):this.diff_bisect_(t,e,n)},n.prototype.diff_lineMode_=function(t,e,r){var n=this.diff_linesToChars_(t,e);t=n.chars1,e=n.chars2;var i=n.lineArray,o=this.diff_main(t,e,!1,r);this.diff_charsToLines_(o,i),this.diff_cleanupSemantic(o),o.push([0,""]);for(var s=0,a=0,u=0,f="",l="";s<o.length;){switch(o[s][0]){case 1:u++,l+=o[s][1];break;case-1:a++,f+=o[s][1];break;case 0:if(a>=1&&u>=1){o.splice(s-a-u,a+u),s=s-a-u;for(var c=(n=this.diff_main(f,l,!1,r)).length-1;c>=0;c--)o.splice(s,0,n[c]);s+=n.length}u=0,a=0,f="",l=""}s++}return o.pop(),o},n.prototype.diff_bisect_=function(t,e,r){for(var n=t.length,i=e.length,o=Math.ceil((n+i)/2),s=o,a=2*o,u=new Array(a),f=new Array(a),l=0;l<a;l++)u[l]=-1,f[l]=-1;u[s+1]=0,f[s+1]=0;for(var c=n-i,h=c%2!=0,p=0,d=0,g=0,y=0,b=0;b<o&&!((new Date).getTime()>r);b++){for(var m=-b+p;m<=b-d;m+=2){for(var v,w=s+m,_=(v=m==-b||m!=b&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-m;v<n&&_<i&&t.charAt(v)==e.charAt(_);)v++,_++;if(u[w]=v,v>n)d+=2;else if(_>i)p+=2;else if(h&&(E=s+c-m)>=0&&E<a&&-1!=f[E]&&v>=(k=n-f[E]))return this.diff_bisectSplit_(t,e,v,_,r)}for(var x=-b+g;x<=b-y;x+=2){for(var k,E=s+x,S=(k=x==-b||x!=b&&f[E-1]<f[E+1]?f[E+1]:f[E-1]+1)-x;k<n&&S<i&&t.charAt(n-k-1)==e.charAt(i-S-1);)k++,S++;if(f[E]=k,k>n)y+=2;else if(S>i)g+=2;else if(!h&&(w=s+c-x)>=0&&w<a&&-1!=u[w]){_=s+(v=u[w])-w;if(k=n-k,v>=k)return this.diff_bisectSplit_(t,e,v,_,r)}}}return[[-1,t],[1,e]]},n.prototype.diff_bisectSplit_=function(t,e,r,n,i){var o=t.substring(0,r),s=e.substring(0,n),a=t.substring(r),u=e.substring(n),f=this.diff_main(o,s,!1,i),l=this.diff_main(a,u,!1,i);return f.concat(l)},n.prototype.diff_linesToChars_=function(t,e){function r(t){for(var e="",r=0,o=-1,s=n.length;o<t.length-1;){-1==(o=t.indexOf("\n",r))&&(o=t.length-1);var a=t.substring(r,o+1);r=o+1,(i.hasOwnProperty?i.hasOwnProperty(a):void 0!==i[a])?e+=String.fromCharCode(i[a]):(e+=String.fromCharCode(s),i[a]=s,n[s++]=a)}return e}var n=[],i={};return n[0]="",{chars1:r(t),chars2:r(e),lineArray:n}},n.prototype.diff_charsToLines_=function(t,e){for(var r=0;r<t.length;r++){for(var n=t[r][1],i=[],o=0;o<n.length;o++)i[o]=e[n.charCodeAt(o)];t[r][1]=i.join("")}},n.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var r=0,n=Math.min(t.length,e.length),i=n,o=0;r<i;)t.substring(o,i)==e.substring(o,i)?o=r=i:n=i,i=Math.floor((n-r)/2+r);return i},n.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var r=0,n=Math.min(t.length,e.length),i=n,o=0;r<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=r=i:n=i,i=Math.floor((n-r)/2+r);return i},n.prototype.diff_commonOverlap_=function(t,e){var r=t.length,n=e.length;if(0==r||0==n)return 0;r>n?t=t.substring(r-n):r<n&&(e=e.substring(0,r));var i=Math.min(r,n);if(t==e)return i;for(var o=0,s=1;;){var a=t.substring(i-s),u=e.indexOf(a);if(-1==u)return o;s+=u,0!=u&&t.substring(i-s)!=e.substring(0,s)||(o=s,s++)}},n.prototype.diff_halfMatch_=function(t,e){function r(t,e,r){for(var n,i,o,a,u=t.substring(r,r+Math.floor(t.length/4)),f=-1,l="";-1!=(f=e.indexOf(u,f+1));){var c=s.diff_commonPrefix(t.substring(r),e.substring(f)),h=s.diff_commonSuffix(t.substring(0,r),e.substring(0,f));l.length<h+c&&(l=e.substring(f-h,f)+e.substring(f,f+c),n=t.substring(0,r-h),i=t.substring(r+c),o=e.substring(0,f-h),a=e.substring(f+c))}return 2*l.length>=t.length?[n,i,o,a,l]:null}if(this.Diff_Timeout<=0)return null;var n=t.length>e.length?t:e,i=t.length>e.length?e:t;if(n.length<4||2*i.length<n.length)return null;var o,s=this,a=r(n,i,Math.ceil(n.length/4)),u=r(n,i,Math.ceil(n.length/2));if(!a&&!u)return null;o=u?a&&a[4].length>u[4].length?a:u:a;var f,l,c,h;return t.length>e.length?(f=o[0],l=o[1],c=o[2],h=o[3]):(c=o[0],h=o[1],f=o[2],l=o[3]),[f,l,c,h,o[4]]},n.prototype.diff_cleanupSemantic=function(t){for(var e=!1,r=[],n=0,i=null,o=0,s=0,a=0,u=0,f=0;o<t.length;)0==t[o][0]?(r[n++]=o,s=u,a=f,u=0,f=0,i=t[o][1]):(1==t[o][0]?u+=t[o][1].length:f+=t[o][1].length,i&&i.length<=Math.max(s,a)&&i.length<=Math.max(u,f)&&(t.splice(r[n-1],0,[-1,i]),t[r[n-1]+1][0]=1,n--,o=--n>0?r[n-1]:-1,s=0,a=0,u=0,f=0,i=null,e=!0)),o++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),o=1;o<t.length;){if(-1==t[o-1][0]&&1==t[o][0]){var l=t[o-1][1],c=t[o][1],h=this.diff_commonOverlap_(l,c),p=this.diff_commonOverlap_(c,l);h>=p?(h>=l.length/2||h>=c.length/2)&&(t.splice(o,0,[0,c.substring(0,h)]),t[o-1][1]=l.substring(0,l.length-h),t[o+1][1]=c.substring(h),o++):(p>=l.length/2||p>=c.length/2)&&(t.splice(o,0,[0,l.substring(0,p)]),t[o-1][0]=1,t[o-1][1]=c.substring(0,c.length-p),t[o+1][0]=-1,t[o+1][1]=l.substring(p),o++),o++}o++}},n.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var r=t.charAt(t.length-1),i=e.charAt(0),o=r.match(n.nonAlphaNumericRegex_),s=i.match(n.nonAlphaNumericRegex_),a=o&&r.match(n.whitespaceRegex_),u=s&&i.match(n.whitespaceRegex_),f=a&&r.match(n.linebreakRegex_),l=u&&i.match(n.linebreakRegex_),c=f&&t.match(n.blanklineEndRegex_),h=l&&e.match(n.blanklineStartRegex_);return c||h?5:f||l?4:o&&!a&&u?3:a||u?2:o||s?1:0}for(var r=1;r<t.length-1;){if(0==t[r-1][0]&&0==t[r+1][0]){var i=t[r-1][1],o=t[r][1],s=t[r+1][1],a=this.diff_commonSuffix(i,o);if(a){var u=o.substring(o.length-a);i=i.substring(0,i.length-a),o=u+o.substring(0,o.length-a),s=u+s}for(var f=i,l=o,c=s,h=e(i,o)+e(o,s);o.charAt(0)===s.charAt(0);){i+=o.charAt(0),o=o.substring(1)+s.charAt(0),s=s.substring(1);var p=e(i,o)+e(o,s);p>=h&&(h=p,f=i,l=o,c=s)}t[r-1][1]!=f&&(f?t[r-1][1]=f:(t.splice(r-1,1),r--),t[r][1]=l,c?t[r+1][1]=c:(t.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,r=[],n=0,i=null,o=0,s=!1,a=!1,u=!1,f=!1;o<t.length;)0==t[o][0]?(t[o][1].length<this.Diff_EditCost&&(u||f)?(r[n++]=o,s=u,a=f,i=t[o][1]):(n=0,i=null),u=f=!1):(-1==t[o][0]?f=!0:u=!0,i&&(s&&a&&u&&f||i.length<this.Diff_EditCost/2&&s+a+u+f==3)&&(t.splice(r[n-1],0,[-1,i]),t[r[n-1]+1][0]=1,n--,i=null,s&&a?(u=f=!0,n=0):(o=--n>0?r[n-1]:-1,u=f=!1),e=!0)),o++;e&&this.diff_cleanupMerge(t)},n.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,r=0,n=0,i=0,o="",s="";r<t.length;)switch(t[r][0]){case 1:i++,s+=t[r][1],r++;break;case-1:n++,o+=t[r][1],r++;break;case 0:n+i>1?(0!==n&&0!==i&&(0!==(e=this.diff_commonPrefix(s,o))&&(r-n-i>0&&0==t[r-n-i-1][0]?t[r-n-i-1][1]+=s.substring(0,e):(t.splice(0,0,[0,s.substring(0,e)]),r++),s=s.substring(e),o=o.substring(e)),0!==(e=this.diff_commonSuffix(s,o))&&(t[r][1]=s.substring(s.length-e)+t[r][1],s=s.substring(0,s.length-e),o=o.substring(0,o.length-e))),0===n?t.splice(r-i,n+i,[1,s]):0===i?t.splice(r-n,n+i,[-1,o]):t.splice(r-n-i,n+i,[-1,o],[1,s]),r=r-n-i+(n?1:0)+(i?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,i=0,n=0,o="",s=""}""===t[t.length-1][1]&&t.pop();var a=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),a=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),a=!0)),r++;a&&this.diff_cleanupMerge(t)},n.prototype.diff_xIndex=function(t,e){var r,n=0,i=0,o=0,s=0;for(r=0;r<t.length&&(1!==t[r][0]&&(n+=t[r][1].length),-1!==t[r][0]&&(i+=t[r][1].length),!(n>e));r++)o=n,s=i;return t.length!=r&&-1===t[r][0]?s:s+(e-o)},n.prototype.diff_prettyHtml=function(t){for(var e=[],r=/&/g,n=/</g,i=/>/g,o=/\n/g,s=0;s<t.length;s++){var a=t[s][0],u=t[s][1].replace(r,"&").replace(n,"<").replace(i,">").replace(o,"¶<br>");switch(a){case 1:e[s]='<ins style="background:#e6ffe6;">'+u+"</ins>";break;case-1:e[s]='<del style="background:#ffe6e6;">'+u+"</del>";break;case 0:e[s]="<span>"+u+"</span>"}}return e.join("")},n.prototype.diff_text1=function(t){for(var e=[],r=0;r<t.length;r++)1!==t[r][0]&&(e[r]=t[r][1]);return e.join("")},n.prototype.diff_text2=function(t){for(var e=[],r=0;r<t.length;r++)-1!==t[r][0]&&(e[r]=t[r][1]);return e.join("")},n.prototype.diff_levenshtein=function(t){for(var e=0,r=0,n=0,i=0;i<t.length;i++){var o=t[i][0],s=t[i][1];switch(o){case 1:r+=s.length;break;case-1:n+=s.length;break;case 0:e+=Math.max(r,n),r=0,n=0}}return e+=Math.max(r,n)},n.prototype.diff_toDelta=function(t){for(var e=[],r=0;r<t.length;r++)switch(t[r][0]){case 1:e[r]="+"+encodeURI(t[r][1]);break;case-1:e[r]="-"+t[r][1].length;break;case 0:e[r]="="+t[r][1].length}return e.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(t,e){for(var r=[],n=0,i=0,o=e.split(/\t/g),s=0;s<o.length;s++){var a=o[s].substring(1);switch(o[s].charAt(0)){case"+":try{r[n++]=[1,decodeURI(a)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var u=parseInt(a,10);if(isNaN(u)||u<0)throw new Error("Invalid number in diff_fromDelta: "+a);var f=t.substring(i,i+=u);"="==o[s].charAt(0)?r[n++]=[0,f]:r[n++]=[-1,f];break;default:if(o[s])throw new Error("Invalid diff operation in diff_fromDelta: "+o[s])}}if(i!=t.length)throw new Error("Delta length ("+i+") does not equal source text length ("+t.length+").");return r},n.prototype.match_main=function(t,e,r){if(null==t||null==e||null==r)throw new Error("Null input. (match_main)");return r=Math.max(0,Math.min(r,t.length)),t==e?0:t.length?t.substring(r,r+e.length)==e?r:this.match_bitap_(t,e,r):-1},n.prototype.match_bitap_=function(t,e,r){function n(t,n){var i=t/e.length,s=Math.abs(r-n);return o.Match_Distance?i+s/o.Match_Distance:s?1:i}if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),o=this,s=this.Match_Threshold,a=t.indexOf(e,r);-1!=a&&(s=Math.min(n(0,a),s),-1!=(a=t.lastIndexOf(e,r+e.length))&&(s=Math.min(n(0,a),s)));var u=1<<e.length-1;a=-1;for(var f,l,c,h=e.length+t.length,p=0;p<e.length;p++){for(f=0,l=h;f<l;)n(p,r+l)<=s?f=l:h=l,l=Math.floor((h-f)/2+f);h=l;var d=Math.max(1,r-l+1),g=Math.min(r+l,t.length)+e.length,y=Array(g+2);y[g+1]=(1<<p)-1;for(var b=g;b>=d;b--){var m=i[t.charAt(b-1)];if(y[b]=0===p?(y[b+1]<<1|1)&m:(y[b+1]<<1|1)&m|(c[b+1]|c[b])<<1|1|c[b+1],y[b]&u){var v=n(p,b-1);if(v<=s){if(s=v,!((a=b-1)>r))break;d=Math.max(1,2*r-a)}}}if(n(p+1,r)>s)break;c=y}return a},n.prototype.match_alphabet_=function(t){for(var e={},r=0;r<t.length;r++)e[t.charAt(r)]=0;for(r=0;r<t.length;r++)e[t.charAt(r)]|=1<<t.length-r-1;return e},n.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var r=e.substring(t.start2,t.start2+t.length1),n=0;e.indexOf(r)!=e.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n+=this.Patch_Margin,r=e.substring(t.start2-n,t.start2+t.length1+n);n+=this.Patch_Margin;var i=e.substring(t.start2-n,t.start2);i&&t.diffs.unshift([0,i]);var o=e.substring(t.start2+t.length1,t.start2+t.length1+n);o&&t.diffs.push([0,o]),t.start1-=i.length,t.start2-=i.length,t.length1+=i.length+o.length,t.length2+=i.length+o.length}},n.prototype.patch_make=function(t,e,r){var i,o;if("string"==typeof t&&"string"==typeof e&&void 0===r)i=t,(o=this.diff_main(i,e,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(t&&"object"==typeof t&&void 0===e&&void 0===r)o=t,i=this.diff_text1(o);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===r)i=t,o=e;else{if("string"!=typeof t||"string"!=typeof e||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");i=t,o=r}if(0===o.length)return[];for(var s=[],a=new n.patch_obj,u=0,f=0,l=0,c=i,h=i,p=0;p<o.length;p++){var d=o[p][0],g=o[p][1];switch(u||0===d||(a.start1=f,a.start2=l),d){case 1:a.diffs[u++]=o[p],a.length2+=g.length,h=h.substring(0,l)+g+h.substring(l);break;case-1:a.length1+=g.length,a.diffs[u++]=o[p],h=h.substring(0,l)+h.substring(l+g.length);break;case 0:g.length<=2*this.Patch_Margin&&u&&o.length!=p+1?(a.diffs[u++]=o[p],a.length1+=g.length,a.length2+=g.length):g.length>=2*this.Patch_Margin&&u&&(this.patch_addContext_(a,c),s.push(a),a=new n.patch_obj,u=0,c=h,f=l)}1!==d&&(f+=g.length),-1!==d&&(l+=g.length)}return u&&(this.patch_addContext_(a,c),s.push(a)),s},n.prototype.patch_deepCopy=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=new n.patch_obj;o.diffs=[];for(var s=0;s<i.diffs.length;s++)o.diffs[s]=i.diffs[s].slice();o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,e[r]=o}return e},n.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var r=this.patch_addPadding(t);e=r+e+r,this.patch_splitMax(t);for(var n=0,i=[],o=0;o<t.length;o++){var s,a=t[o].start2+n,u=this.diff_text1(t[o].diffs),f=-1;if(u.length>this.Match_MaxBits?-1!=(s=this.match_main(e,u.substring(0,this.Match_MaxBits),a))&&(-1==(f=this.match_main(e,u.substring(u.length-this.Match_MaxBits),a+u.length-this.Match_MaxBits))||s>=f)&&(s=-1):s=this.match_main(e,u,a),-1==s)i[o]=!1,n-=t[o].length2-t[o].length1;else{i[o]=!0,n=s-a;var l;if(l=-1==f?e.substring(s,s+u.length):e.substring(s,f+this.Match_MaxBits),u==l)e=e.substring(0,s)+this.diff_text2(t[o].diffs)+e.substring(s+u.length);else{var c=this.diff_main(u,l,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(c)/u.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(c);for(var h,p=0,d=0;d<t[o].diffs.length;d++){var g=t[o].diffs[d];0!==g[0]&&(h=this.diff_xIndex(c,p)),1===g[0]?e=e.substring(0,s+h)+g[1]+e.substring(s+h):-1===g[0]&&(e=e.substring(0,s+h)+e.substring(s+this.diff_xIndex(c,p+g[1].length))),-1!==g[0]&&(p+=g[1].length)}}}}}return e=e.substring(r.length,e.length-r.length),[e,i]},n.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,r="",n=1;n<=e;n++)r+=String.fromCharCode(n);for(n=0;n<t.length;n++)t[n].start1+=e,t[n].start2+=e;var i=t[0],o=i.diffs;if(0==o.length||0!=o[0][0])o.unshift([0,r]),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>o[0][1].length){s=e-o[0][1].length;o[0][1]=r.substring(o[0][1].length)+o[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(i=t[t.length-1],0==(o=i.diffs).length||0!=o[o.length-1][0])o.push([0,r]),i.length1+=e,i.length2+=e;else if(e>o[o.length-1][1].length){var s=e-o[o.length-1][1].length;o[o.length-1][1]+=r.substring(0,s),i.length1+=s,i.length2+=s}return r},n.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,r=0;r<t.length;r++)if(!(t[r].length1<=e)){var i=t[r];t.splice(r--,1);for(var o=i.start1,s=i.start2,a="";0!==i.diffs.length;){var u=new n.patch_obj,f=!0;for(u.start1=o-a.length,u.start2=s-a.length,""!==a&&(u.length1=u.length2=a.length,u.diffs.push([0,a]));0!==i.diffs.length&&u.length1<e-this.Patch_Margin;){var l=i.diffs[0][0],c=i.diffs[0][1];1===l?(u.length2+=c.length,s+=c.length,u.diffs.push(i.diffs.shift()),f=!1):-1===l&&1==u.diffs.length&&0==u.diffs[0][0]&&c.length>2*e?(u.length1+=c.length,o+=c.length,f=!1,u.diffs.push([l,c]),i.diffs.shift()):(c=c.substring(0,e-u.length1-this.Patch_Margin),u.length1+=c.length,o+=c.length,0===l?(u.length2+=c.length,s+=c.length):f=!1,u.diffs.push([l,c]),c==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(c.length))}a=(a=this.diff_text2(u.diffs)).substring(a.length-this.Patch_Margin);var h=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==h&&(u.length1+=h.length,u.length2+=h.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=h:u.diffs.push([0,h])),f||t.splice(++r,0,u)}}},n.prototype.patch_toText=function(t){for(var e=[],r=0;r<t.length;r++)e[r]=t[r];return e.join("")},n.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var r=t.split("\n"),i=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<r.length;){var s=r[i].match(o);if(!s)throw new Error("Invalid patch string: "+r[i]);var a=new n.patch_obj;for(e.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),i++;i<r.length;){var u=r[i].charAt(0);try{var f=decodeURI(r[i].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+f)}if("-"==u)a.diffs.push([-1,f]);else if("+"==u)a.diffs.push([1,f]);else if(" "==u)a.diffs.push([0,f]);else{if("@"==u)break;if(""!==u)throw new Error('Invalid patch mode "'+u+'" in: '+f)}i++}}return e},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){for(var t,e,r,n=["@@ -"+(t=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(e=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],i=0;i<this.diffs.length;i++){switch(this.diffs[i][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}n[i+1]=r+encodeURI(this.diffs[i][1])+"\n"}return n.join("").replace(/%20/g," ")},this.diff_match_patch=n,this.DIFF_DELETE=-1,this.DIFF_INSERT=1,this.DIFF_EQUAL=0},{}],26:[function(t,e,r){var n=t("function-bind");e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":23}],27:[function(t,e,r){r.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,l=-7,c=r?i-1:0,h=r?-1:1,p=t[e+c];for(c+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+c],c+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,l=(1<<f)-1,c=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],28:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],29:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||i(t)||!!t._isBuffer)}},{}],30:[function(t,e,r){"use strict";var n=Function.prototype.toString,i=/^\s*class /,o=function(t){try{var e=n.call(t).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return i.test(e)}catch(t){return!1}},s=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return s(t);if(o(t))return!1;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},{}],31:[function(t,e,r){e.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},{}],32:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],33:[function(t,e,r){function n(t){return String(t).replace(/"/g,""")}function i(t){return"[object Array]"===p(t)}function o(t){return"[object Date]"===p(t)}function s(t){return"[object RegExp]"===p(t)}function a(t){return"[object Error]"===p(t)}function u(t){return"[object Symbol]"===p(t)}function f(t){return"[object String]"===p(t)}function l(t){return"[object Number]"===p(t)}function c(t){return"[object Boolean]"===p(t)}function h(t,e){return D.call(t,e)}function p(t){return L.call(t)}function d(t){if(t.name)return t.name;var e=String(t).match(/^function\s*([\w$]+)/);return e?e[1]:void 0}function g(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function y(t){if(!C)return!1;try{C.call(t);try{T.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}function b(t){if(!T)return!1;try{T.call(t);try{C.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}function m(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}function v(t){return"'"+t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,w)+"'"}function w(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16)}function _(t){return"Object("+t+")"}function x(t,e,r){return t+" ("+e+") {"+r.join(", ")+"}"}function k(t,e){var r=i(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=h(t,o)?e(t[o],t):""}for(var s in t)h(t,s)&&(r&&String(Number(s))===s&&s<t.length||(/[^\w$]/.test(s)?n.push(e(s,t)+": "+e(t[s],t)):n.push(s+": "+e(t[s],t))));return n}var E="function"==typeof Map&&Map.prototype,S=Object.getOwnPropertyDescriptor&&E?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,C=E&&S&&"function"==typeof S.get?S.get:null,j=E&&Map.prototype.forEach,A="function"==typeof Set&&Set.prototype,M=Object.getOwnPropertyDescriptor&&A?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,T=A&&M&&"function"==typeof M.get?M.get:null,O=A&&Set.prototype.forEach,q=Boolean.prototype.valueOf,L=Object.prototype.toString;e.exports=function t(e,r,h,p){function w(e,n){return n&&(p=p.slice()).push(n),t(e,r,h+1,p)}if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return v(e);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);r||(r={});var E=void 0===r.depth?5:r.depth;if(void 0===h&&(h=0),h>=E&&E>0&&"object"==typeof e)return"[Object]";if(void 0===p)p=[];else if(g(p,e)>=0)return"[Circular]";if("function"==typeof e){var S=d(e);return"[Function"+(S?": "+S:"")+"]"}if(u(e)){var A=Symbol.prototype.toString.call(e);return"object"==typeof e?_(A):A}if(m(e)){for(var M="<"+String(e.nodeName).toLowerCase(),L=e.attributes||[],D=0;D<L.length;D++)M+=" "+L[D].name+'="'+n(L[D].value)+'"';return M+=">",e.childNodes&&e.childNodes.length&&(M+="..."),M+="</"+String(e.nodeName).toLowerCase()+">"}if(i(e))return 0===e.length?"[]":"[ "+k(e,w).join(", ")+" ]";if(a(e))return 0===(B=k(e,w)).length?"["+String(e)+"]":"{ ["+String(e)+"] "+B.join(", ")+" }";if("object"==typeof e&&"function"==typeof e.inspect)return e.inspect();if(y(e)){B=[];return j.call(e,function(t,r){B.push(w(r,e)+" => "+w(t,e))}),x("Map",C.call(e),B)}if(b(e)){var B=[];return O.call(e,function(t){B.push(w(t,e))}),x("Set",T.call(e),B)}if(l(e))return _(Number(e));if(c(e))return _(q.call(e));if(f(e))return _(w(String(e)));if(!o(e)&&!s(e)){var N=k(e,w);return 0===N.length?"{}":"{ "+N.join(", ")+" }"}return String(e)};var D=Object.prototype.hasOwnProperty||function(t){return t in this}},{}],34:[function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Array.prototype.slice,s=t("./isArguments"),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(t){var e=t.constructor;return e&&e.prototype===t},h={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{c(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),d=function(t){if("undefined"==typeof window||!p)return c(t);try{return c(t)}catch(t){return!1}},g=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),o=s(t),a=e&&"[object String]"===i.call(t),c=[];if(!e&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var h=f&&r;if(a&&t.length>0&&!n.call(t,0))for(var p=0;p<t.length;++p)c.push(String(p));if(o&&t.length>0)for(var g=0;g<t.length;++g)c.push(String(g));else for(var y in t)h&&"prototype"===y||!n.call(t,y)||c.push(String(y));if(u)for(var b=d(t),m=0;m<l.length;++m)b&&"constructor"===l[m]||!n.call(t,l[m])||c.push(l[m]);return c};g.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return t(s(e)?o.call(e):e)}}}else Object.keys=g;return Object.keys||g},e.exports=g},{"./isArguments":35}],35:[function(t,e,r){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),r}},{}],36:[function(t,e,r){(function(t){function e(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(t){return i.exec(t).slice(1)};r.resolve=function(){for(var r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(r=s+"/"+r,i="/"===s.charAt(0))}return r=e(n(r.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(t){var i=r.isAbsolute(t),o="/"===s(t,-1);return(t=e(n(t.split("/"),function(t){return!!t}),!i).join("/"))||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},r.isAbsolute=function(t){return"/"===t.charAt(0)},r.join=function(){var t=Array.prototype.slice.call(arguments,0);return r.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},r.relative=function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=r.resolve(t).substr(1),e=r.resolve(e).substr(1);for(var i=n(t.split("/")),o=n(e.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}for(var f=[],u=a;u<i.length;u++)f.push("..");return(f=f.concat(o.slice(a))).join("/")},r.sep="/",r.delimiter=":",r.dirname=function(t){var e=o(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},r.basename=function(t,e){var r=o(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},r.extname=function(t){return o(t)[3]};var s="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,t("_process"))},{_process:38}],37:[function(t,e,r){(function(t){"use strict";!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return t.nextTick(function(){e.apply(null,o)})}}:e.exports=t.nextTick}).call(this,t("_process"))},{_process:38}],38:[function(t,e,r){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function s(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?g=d.concat(g):b=-1,g.length&&u())}function u(){if(!y){var t=o(a);y=!0;for(var e=g.length;e;){for(d=g,g=[];++b<e;)d&&d[b].run();b=-1,e=g.length}d=null,y=!1,s(t)}}function f(t,e){this.fun=t,this.array=e}function l(){}var c,h,p=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var d,g=[],y=!1,b=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];g.push(new f(t,e)),1!==g.length||y||o(u)},f.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],39:[function(t,e,r){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":40}],40:[function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);f.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s(o,this)}function o(t){t.end()}var s=t("process-nextick-args"),a=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=n;var u=t("core-util-is");u.inherits=t("inherits");var f=t("./_stream_readable"),l=t("./_stream_writable");u.inherits(n,f);for(var c=a(l.prototype),h=0;h<c.length;h++){var p=c[h];n.prototype[p]||(n.prototype[p]=l.prototype[p])}Object.defineProperty(n.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),n.prototype._destroy=function(t,e){this.push(null),this.end(),s(e,t)}},{"./_stream_readable":42,"./_stream_writable":44,"core-util-is":6,inherits:28,"process-nextick-args":37}],41:[function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);i.call(this,t)}e.exports=n;var i=t("./_stream_transform"),o=t("core-util-is");o.inherits=t("inherits"),o.inherits(n,i),n.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":43,"core-util-is":6,inherits:28}],42:[function(t,e,r){(function(r,n){"use strict";function i(t){return I.from(t)}function o(t){return I.isBuffer(t)||t instanceof P}function s(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?D(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}function a(e,r){L=L||t("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,r instanceof L&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new K,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(W||(W=t("string_decoder/").StringDecoder),this.decoder=new W(e.encoding),this.encoding=e.encoding)}function u(e){if(L=L||t("./_stream_duplex"),!(this instanceof u))return new u(e);this._readableState=new a(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),N.call(this)}function f(t,e,r,n,o){var s=t._readableState;if(null===e)s.reading=!1,g(t,s);else{var a;o||(a=c(s,e)),a?t.emit("error",a):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===I.prototype||(e=i(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?l(t,s,e,!1):m(t,s)):l(t,s,e,!1))):n||(s.reading=!1)}return h(s)}function l(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&y(t)),m(t,e)}function c(t,e){var r;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function p(t){return t>=z?t=z:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function g(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,y(t)}}function y(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(F("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?q(b,t):b(t))}function b(t){F("emit readable"),t.emit("readable"),E(t)}function m(t,e){e.readingMore||(e.readingMore=!0,q(v,t,e))}function v(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(F("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function w(t){return function(){var e=t._readableState;F("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&B(t,"data")&&(e.flowing=!0,E(t))}}function _(t){F("readable nexttick read 0"),t.read(0)}function x(t,e){e.resumeScheduled||(e.resumeScheduled=!0,q(k,t,e))}function k(t,e){e.reading||(F("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(F("flow",e.flowing);e.flowing&&null!==t.read(););}function S(t,e){if(0===e.length)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=C(t,e.buffer,e.decoder),r}function C(t,e,r){var n;return t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?j(t,e):A(t,e),n}function j(t,e){var r=e.head,n=1,i=r.data;for(t-=i.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++n}return e.length-=n,i}function A(t,e){var r=I.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),0===(t-=s)){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}function M(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,q(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}var q=t("process-nextick-args");e.exports=u;var L,D=t("isarray");u.ReadableState=a;t("events").EventEmitter;var B=function(t,e){return t.listeners(e).length},N=t("./internal/streams/stream"),I=t("safe-buffer").Buffer,P=n.Uint8Array||function(){},R=t("core-util-is");R.inherits=t("inherits");var U=t("util"),F=void 0;F=U&&U.debuglog?U.debuglog("stream"):function(){};var W,K=t("./internal/streams/BufferList"),$=t("./internal/streams/destroy");R.inherits(u,N);var V=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=$.destroy,u.prototype._undestroy=$.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=I.from(t,e),e=""),r=!0),f(this,t,e,!1,r)},u.prototype.unshift=function(t){return f(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(e){return W||(W=t("string_decoder/").StringDecoder),this._readableState.decoder=new W(e),this._readableState.encoding=e,this};var z=8388608;u.prototype.read=function(t){F("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return F("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?M(this):y(this),null;if(0===(t=d(t,e))&&e.ended)return 0===e.length&&M(this),null;var n=e.needReadable;F("need readable",n),(0===e.length||e.length-t<e.highWaterMark)&&F("length less than watermark",n=!0),e.ended||e.reading?F("reading or ended",n=!1):n&&(F("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=d(r,e)));var i;return null===(i=t>0?S(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&M(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(t,e){F("onunpipe"),t===h&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){F("onend"),t.end()}function o(){F("cleanup"),t.removeListener("close",f),t.removeListener("finish",l),t.removeListener("drain",g),t.removeListener("error",u),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",a),y=!0,!p.awaitDrain||t._writableState&&!t._writableState.needDrain||g()}function a(e){F("ondata"),b=!1,!1!==t.write(e)||b||((1===p.pipesCount&&p.pipes===t||p.pipesCount>1&&-1!==O(p.pipes,t))&&!y&&(F("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,b=!0),h.pause())}function u(e){F("onerror",e),c(),t.removeListener("error",u),0===B(t,"error")&&t.emit("error",e)}function f(){t.removeListener("finish",l),c()}function l(){F("onfinish"),t.removeListener("close",f),c()}function c(){F("unpipe"),h.unpipe(t)}var h=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=t;break;case 1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,F("pipe count=%d opts=%j",p.pipesCount,e);var d=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?i:c;p.endEmitted?q(d):h.once("end",d),t.on("unpipe",n);var g=w(h);t.on("drain",g);var y=!1,b=!1;return h.on("data",a),s(t,"error",u),t.once("close",f),t.once("finish",l),t.emit("pipe",h),p.flowing||(F("pipe resume"),h.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var s=O(e.pipes,t);return-1===s?this:(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)},u.prototype.on=function(t,e){var r=N.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&y(this):q(_,this))}return r},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||(F("resume"),t.flowing=!0,x(this,t)),this},u.prototype.pause=function(){return F("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(F("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;t.on("end",function(){if(F("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){F("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))});for(var i in t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<V.length;o++)t.on(V[o],n.emit.bind(n,V[o]));return n._read=function(e){F("wrapped _read",e),r&&(r=!1,t.resume())},n},u._fromList=S}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":40,"./internal/streams/BufferList":45,"./internal/streams/destroy":46,"./internal/streams/stream":47,_process:38,"core-util-is":6,events:19,inherits:28,isarray:32,"process-nextick-args":37,"safe-buffer":53,"string_decoder/":59,util:3}],43:[function(t,e,r){"use strict";function n(t){this.afterTransform=function(e,r){return i(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&t.push(r),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState=new n(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,r){s(e,t,r)}):s(e)})}function s(t,e,r){if(e)return t.emit("error",e);null!==r&&void 0!==r&&t.push(r);var n=t._writableState,i=t._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}e.exports=o;var a=t("./_stream_duplex"),u=t("core-util-is");u.inherits=t("inherits"),u.inherits(o,a),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;a.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},{"./_stream_duplex":40,"core-util-is":6,inherits:28}],44:[function(t,e,r){(function(r,n){"use strict";function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){C(e,t)}}function o(t){return L.from(t)}function s(t){return L.isBuffer(t)||t instanceof D}function a(){}function u(e,r){A=A||t("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,r instanceof A&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){b(r,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function f(e){if(A=A||t("./_stream_duplex"),!(N.call(f,this)||this instanceof A))return new f(e);this._writableState=new u(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),q.call(this)}function l(t,e){var r=new Error("write after end");t.emit("error",r),j(e,r)}function c(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),j(n,o),i=!1),i}function h(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=L.from(e,r)),e}function p(t,e,r,n,i,o){if(!r){var s=h(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else d(t,e,!1,a,n,i,o);return u}function d(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function g(t,e,r,n,i){--e.pendingcb,r?(j(i,n),j(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),E(t,e))}function y(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function b(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(y(r),e)g(t,r,n,e,i);else{var o=_(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),n?M(m,t,r,o,i):m(t,r,o,i)}}function m(t,e,r,n){r||v(t,e),e.pendingcb--,n(),E(t,e)}function v(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,d(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e)}else{for(;r;){var f=r.chunk,l=r.encoding,c=r.callback;if(d(t,e,!1,e.objectMode?1:f.length,f,l,c),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),E(t,e)})}function k(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,j(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function E(t,e){var r=_(e);return r&&(k(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}function S(t,e,r){e.ending=!0,E(t,e),r&&(e.finished?j(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function C(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var j=t("process-nextick-args");e.exports=f;var A,M=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:j;f.WritableState=u;var T=t("core-util-is");T.inherits=t("inherits");var O={deprecate:t("util-deprecate")},q=t("./internal/streams/stream"),L=t("safe-buffer").Buffer,D=n.Uint8Array||function(){},B=t("./internal/streams/destroy");T.inherits(f,q),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var N;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(N=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(t){return!!N.call(this,t)||t&&t._writableState instanceof u}})):N=function(t){return t instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(t,e,r){var n=this._writableState,i=!1,u=s(t)&&!n.objectMode;return u&&!L.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(r=e,e=null),u?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=a),n.ended?l(this,r):(u||c(this,n,t,r))&&(n.pendingcb++,i=p(this,n,u,t,e,r)),i},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},f.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},f.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},f.prototype._writev=null,f.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||S(this,n,r)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),f.prototype.destroy=B.destroy,f.prototype._undestroy=B.undestroy,f.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":40,"./internal/streams/destroy":46,"./internal/streams/stream":47,_process:38,"core-util-is":6,inherits:28,"process-nextick-args":37,"safe-buffer":53,"util-deprecate":67}],45:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r){t.copy(e,r)}var o=t("safe-buffer").Buffer;e.exports=function(){function t(){n(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),r=this.head,n=0;r;)i(r.data,e,n),n+=r.data.length,r=r.next;return e},t}()},{"safe-buffer":53}],46:[function(t,e,r){"use strict";function n(t,e){t.emit("error",e)}var i=t("process-nextick-args");e.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;o||s?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i(n,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(i(n,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":37}],47:[function(t,e,r){e.exports=t("events").EventEmitter},{events:19}],48:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":49}],49:[function(t,e,r){(r=e.exports=t("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":40,"./lib/_stream_passthrough.js":41,"./lib/_stream_readable.js":42,"./lib/_stream_transform.js":43,"./lib/_stream_writable.js":44}],50:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":49}],51:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":44}],52:[function(t,e,r){(function(r){var n=t("through"),i="undefined"!=typeof setImmediate?setImmediate:r.nextTick;e.exports=function(t,e){var r=n(t,e);r.pause();var o=r.resume,s=r.pause,a=!1;return r.pause=function(){return a=!0,s.apply(this,arguments)},r.resume=function(){return a=!1,o.apply(this,arguments)},i(function(){a||r.resume()}),r}}).call(this,t("_process"))},{_process:38,through:66}],53:[function(t,e,r){function n(t,e){for(var r in t)e[r]=t[r]}function i(t,e,r){return s(t,e,r)}var o=t("buffer"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=o:(n(o,r),r.Buffer=i),n(s,i),i.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,r)},i.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=s(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},{buffer:5}],54:[function(t,e,r){function n(){i.call(this)}e.exports=n;var i=t("events").EventEmitter;t("inherits")(n,i),n.Readable=t("readable-stream/readable.js"),n.Writable=t("readable-stream/writable.js"),n.Duplex=t("readable-stream/duplex.js"),n.Transform=t("readable-stream/transform.js"),n.PassThrough=t("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&f.pause&&f.pause()}function n(){f.readable&&f.resume&&f.resume()}function o(){l||(l=!0,t.end())}function s(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function a(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){f.removeListener("data",r),t.removeListener("drain",n),f.removeListener("end",o),f.removeListener("close",s),f.removeListener("error",a),t.removeListener("error",a),f.removeListener("end",u),f.removeListener("close",u),t.removeListener("close",u)}var f=this;f.on("data",r),t.on("drain",n),t._isStdio||e&&!1===e.end||(f.on("end",o),f.on("close",s));var l=!1;return f.on("error",a),t.on("error",a),f.on("end",u),f.on("close",u),t.on("close",u),t.emit("pipe",f),t}},{events:19,inherits:28,"readable-stream/duplex.js":39,"readable-stream/passthrough.js":48,"readable-stream/readable.js":49,"readable-stream/transform.js":50,"readable-stream/writable.js":51}],55:[function(t,e,r){"use strict";var n=t("function-bind"),i=t("es-abstract/es5"),o=n.call(Function.call,String.prototype.replace),s=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var t=i.ToString(i.CheckObjectCoercible(this));return o(o(t,s,""),a,"")}},{"es-abstract/es5":12,"function-bind":23}],56:[function(t,e,r){"use strict";var n=t("function-bind"),i=t("define-properties"),o=t("./implementation"),s=t("./polyfill"),a=t("./shim"),u=n.call(Function.call,s());i(u,{getPolyfill:s,implementation:o,shim:a}),e.exports=u},{"./implementation":55,"./polyfill":57,"./shim":58,"define-properties":10,"function-bind":23}],57:[function(t,e,r){"use strict";var n=t("./implementation");e.exports=function(){return String.prototype.trim&&""==="".trim()?String.prototype.trim:n}},{"./implementation":55}],58:[function(t,e,r){"use strict";var n=t("define-properties"),i=t("./polyfill");e.exports=function(){var t=i();return n(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t}},{"./polyfill":57,"define-properties":10}],59:[function(t,e,r){"use strict";function n(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=n(t);if("string"!=typeof e&&(y.isEncoding===b||!b(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=f,e=4;break;case"base64":this.text=h,this.end=p,e=3;break;default:return this.write=d,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function a(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function u(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"<22>".repeat(r);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>".repeat(r+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"<22>".repeat(r+2)}}function f(t){var e=this.lastTotal-this.lastNeed,r=u(this,t,e);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function g(t){return t&&t.length?this.write(t):""}var y=t("safe-buffer").Buffer,b=y.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};r.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>".repeat(this.lastTotal-this.lastNeed):e},o.prototype.text=function(t,e){var r=a(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":53}],60:[function(t,e,r){"use strict";function n(t,e){var r=g.diff_main(e,t);g.diff_cleanupSemantic(r);var n,i="";return r.forEach(function(t){switch(t[0]){case 0:n="span";break;case 1:n="ins";break;case-1:n="del"}i+="<"+n+">"+t[1]+"</"+n+">"}),i}function i(t){var e=document.createElement("DIV");e.id=t.id,e.setAttribute("class","test");var r=document.createElement("P");return r.setAttribute("class","name"),r.appendChild(document.createTextNode(t.name)),e.appendChild(r),d=e,p.appendChild(e),e}function o(t,e){var r=document.createElement("P");r.setAttribute("class","assert "+(t.ok?"ok":"fail"));var n=document.createElement("SPAN");if(n.setAttribute("class","ok"),n.appendChild(document.createTextNode(t.ok?"OK":"FAIL")),r.appendChild(n),t.name){var i=document.createElement("SPAN");i.setAttribute("class","name"),i.appendChild(document.createTextNode(t.name)),r.appendChild(i)}return e.appendChild(r),r.scrollIntoView({block:"end",behavior:"smooth"}),r}function s(t,e){var r=document.createElement("P");return r.setAttribute("class","comment"),r.appendChild(document.createTextNode(t)),e.appendChild(r),r}function a(t,e){var r=document.createElement("P");return r.setAttribute("class","end"),e.appendChild(r),r}function u(t,e){var r=t.actual,i=t.expected;r&&i&&"object"==typeof r&&"object"==typeof i&&(r=JSON.stringify(r),i=JSON.stringify(i));var o=document.createElement("SPAN");o.setAttribute("class","actual"),o.appendChild(document.createTextNode(r)),e.appendChild(o);var s=document.createElement("SPAN");if(s.setAttribute("class","expected"),s.appendChild(document.createTextNode(i)),e.appendChild(s),t.file){var a=document.createElement("SPAN");a.setAttribute("class","line");var u=/\/([^\/]+)$/.exec(t.file)[1];a.appendChild(document.createTextNode(u)),e.appendChild(a),console.warn(t.error.stack)}if(r&&i&&r.constructor==String&&i.constructor==String){var f=document.createElement("P");f.setAttribute("class","diff"),f.innerHTML=n(r,i),e.appendChild(f)}}function f(t){if("test"===t.type)d=i(t,d);else if("assert"===t.type){var e=o(t,d);t.ok||u(t,e)}else"end"===t.type?(a(t,d),d=d.parentNode):t.constructor===String?s(t,d):console.warn("tape-dom row",t.type,t)}function l(t){t.createStream({objectMode:!0}).on("data",f)}function c(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode(y);t.appendChild(e),document.head.appendChild(t)}function h(t){return"object"==typeof window&&(c(),l(t)),h}var p,d,g=new(t("googlediff")),y=t("./tape_css");"object"==typeof document&&((p=document.getElementById("tests"))||((p=document.createElement("div")).setAttribute("id","tests"),document.body.appendChild(p)),d=p),h.installCSS=c,h.stream=l,e.exports=h},{"./tape_css":61,googlediff:24}],61:[function(t,e,r){"use strict";e.exports="div.test{width:100%;border-top:1px dotted grey;margin-top:1em;background:#eef;font-weight:700;margin-bottom:1em}div#tests{margin-bottom:5em}p.assert{margin-top:0;margin-bottom:0;font-weight:400;width:100%}p.assert.ok{background:#efe;color:grey}p.assert.fail{background:#faa}p.comment{background:#eef;color:grey;font-style:italic;margin-top:.2em;margin-bottom:.2em;padding-left:2.4em}p.end{border-bottom:1px dotted grey;margin-top:1em;background:#eef;margin-top:.2em;margin-bottom:.2em}p.diff{background:#ffe;margin-top:0;margin-bottom:0;padding-top:.25em;padding-bottom:.25em;padding-left:4em;font-weight:400;white-space:pre-wrap}ins{background:#afa}del{background:#faa;text-decoration:strike}span.ok{font-weight:700}span.actual,span.expected,span.name{padding-left:1em;font-style:italic;max-width:25em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}p.assert.fail span.name{color:#555}span.expected:before{content:'!=';padding-right:1em}span.line{padding-left:1em;float:right;text-align:right;overflow:hidden;text-overflow:ellipsis;font-family:monospace;color:#888}"},{}],62:[function(t,e,r){(function(n){function i(t){t||(t={});var e=o({autoclose:s(t.autoclose,!1)}),r=e.createStream({objectMode:t.objectMode}),i=r.pipe(t.stream||a());c&&i.on("error",function(t){e._exitCode=1});var u=!1;if(r.on("end",function(){u=!0}),!1===t.exit)return e;if(!c||!h)return e;return n.on("exit",function(t){if(0===t){if(!u)for(var r=e._results._only,i=0;i<e._tests.length;i++){var o=e._tests[i];r&&o!==r||o._exit()}e.close(),n.exit(t||e._exitCode)}}),e}function o(t){t||(t={});var e=f();!1!==t.autoclose&&e.once("done",function(){e.close()});var r=function(t,n,i){var o=new u(t,n,i);return r._tests.push(o),function t(e){e.on("test",function(e){t(e)}),e.on("result",function(t){t.ok||"string"==typeof t||(r._exitCode=1)})}(o),e.push(o),o};r._results=e,r._tests=[],r.createStream=function(t){return e.createStream(t)},r.onFinish=function(t){e.on("done",t)};var n=!1;return r.only=function(){if(n)throw new Error("there can only be one only test");n=!0;var t=r.apply(null,arguments);return e.only(t),t},r._exitCode=0,r.close=function(){e.close()},r}var s=t("defined"),a=t("./lib/default_stream"),u=t("./lib/test"),f=t("./lib/results"),l=t("through"),c=void 0!==n&&n&&"function"==typeof n.on&&!0!==n.browser,h=void 0!==n&&n&&"function"==typeof n.exit;"undefined"!=typeof setImmediate?setImmediate:n.nextTick;(r=e.exports=function(){function t(t){return t||(t={}),t.autoclose=!c,e||(e=i(t)),e}var e,r=function(){return t().apply(this,arguments)};return r.only=function(){return t().only.apply(this,arguments)},r.createStream=function(r){if(r||(r={}),!e){var n=l();return t({stream:n,objectMode:r.objectMode}),n}return e.createStream(r)},r.onFinish=function(){return t().onFinish.apply(this,arguments)},r.getHarness=t,r}()).createHarness=o,r.Test=u,r.test=r,r.test.skip=u.skip}).call(this,t("_process"))},{"./lib/default_stream":63,"./lib/results":64,"./lib/test":65,_process:38,defined:11,through:66}],63:[function(t,e,r){(function(r){var n=t("through"),i=t("fs");e.exports=function(){function t(){if(i.writeSync&&/^win/.test(r.platform))try{i.writeSync(1,e+"\n")}catch(t){o.emit("error",t)}else try{console.log(e)}catch(t){o.emit("error",t)}e=""}var e="",o=n(function(r){for(var n=0;n<r.length;n++){var i="string"==typeof r?r.charAt(n):String.fromCharCode(r[n]);"\n"===i?t():e+=i}},t);return o}}).call(this,t("_process"))},{_process:38,fs:4,through:66}],64:[function(t,e,r){(function(r){function n(){if(!(this instanceof n))return new n;this.count=0,this.fail=0,this.pass=0,this._stream=l(),this.tests=[],this._only=null}function i(t,e){var r="";if(r+=(t.ok?"ok ":"not ok ")+e,r+=t.name?" "+t.name.toString().replace(/\s+/g," "):"",t.skip?r+=" # SKIP":t.todo&&(r+=" # TODO"),r+="\n",t.ok)return r;if(r+=" ---\n",r+=" operator: "+t.operator+"\n",d(t,"expected")||d(t,"actual")){var n=h(t.expected,{depth:t.objectPrintDepth}),i=h(t.actual,{depth:t.objectPrintDepth});Math.max(n.length,i.length)>65||s(n)||s(i)?(r+=" expected: |-\n "+n+"\n",r+=" actual: |-\n "+i+"\n"):(r+=" expected: "+n+"\n",r+=" actual: "+i+"\n")}t.at&&(r+=" at: "+t.at+"\n");var o=t.actual&&t.actual.stack,u=t.error&&t.error.stack,f=a(o,u);if(f){var l=String(f).split("\n");r+=" stack: |-\n";for(var c=0;c<l.length;c++)r+=" "+l[c]+"\n"}return r+=" ...\n"}function o(t){if(!t._only)return t.tests.shift();do{var e=t.tests.shift();if(e&&t._only===e)return e}while(0!==t.tests.length)}function s(t){return g(y,t)}var a=t("defined"),u=t("events").EventEmitter,f=t("inherits"),l=t("through"),c=t("resumer"),h=t("object-inspect"),p=t("function-bind"),d=t("has"),g=p.call(Function.call,RegExp.prototype.test),y=/\:|\-|\?/,b="undefined"!=typeof setImmediate?setImmediate:r.nextTick;e.exports=n,f(n,u),n.prototype.createStream=function(t){t||(t={});var e,r=this,n=0;return t.objectMode?(e=l(),r.on("_push",function t(r,i){i||(i={});var o=n++;r.once("prerun",function(){var t={type:"test",name:r.name,id:o};d(i,"parent")&&(t.parent=i.parent),e.queue(t)}),r.on("test",function(e){t(e,{parent:o})}),r.on("result",function(t){t.test=o,t.type="assert",e.queue(t)}),r.on("end",function(){e.queue({type:"end",test:o})})}),r.on("done",function(){e.queue(null)})):((e=c()).queue("TAP version 13\n"),r._stream.pipe(e)),b(function t(){for(var e;e=o(r);)if(e.run(),!e.ended)return e.once("end",function(){b(t)});r.emit("done")}),e},n.prototype.push=function(t){var e=this;e.tests.push(t),e._watch(t),e.emit("_push",t)},n.prototype.only=function(t){this._only=t},n.prototype._watch=function(t){var e=this,r=function(t){e._stream.queue(t)};t.once("prerun",function(){r("# "+t.name+"\n")}),t.on("result",function(t){"string"!=typeof t?(r(i(t,e.count+1)),e.count++,t.ok?e.pass++:e.fail++):r("# "+t+"\n")}),t.on("test",function(t){e._watch(t)})},n.prototype.close=function(){var t=this;t.closed&&t._stream.emit("error",new Error("ALREADY CLOSED")),t.closed=!0;var e=function(e){t._stream.queue(e)};e("\n1.."+t.count+"\n"),e("# tests "+t.count+"\n"),e("# pass "+t.pass+"\n"),e(t.fail?"# fail "+t.fail+"\n":"\n# ok\n"),t._stream.queue(null)}}).call(this,t("_process"))},{_process:38,defined:11,events:19,"function-bind":23,has:26,inherits:28,"object-inspect":33,resumer:52,through:66}],65:[function(t,e,r){(function(r,n){function i(t,e,r){if(!(this instanceof i))return new i(t,e,r);var n=b(t,e,r);this.readable=!0,this.name=n.name||"(anonymous)",this.assertCount=0,this.pendingCount=0,this._skip=n.opts.skip||!1,this._timeout=n.opts.timeout,this._objectPrintDepth=n.opts.objectPrintDepth||5,this._plan=void 0,this._cb=n.cb,this._progeny=[],this._ok=!0;for(var o in this)this[o]=function(t,e){return"function"==typeof e?function(){return e.apply(t,arguments)}:e}(this,this[o])}var o=t("deep-equal"),s=t("defined"),a=t("path"),u=t("inherits"),f=t("events").EventEmitter,l=t("has"),c=t("string.prototype.trim"),h=t("function-bind"),p=t("for-each"),d=h.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=i;var g="undefined"!=typeof setImmediate?setImmediate:r.nextTick,y=setTimeout;u(i,f);var b=function(t,e,r){for(var n,i="(anonymous)",o={},s=0;s<arguments.length;s++){var a=arguments[s],u=typeof a;"string"===u?i=a:"object"===u?o=a||o:"function"===u&&(n=a)}return{name:i,opts:o,cb:n}};i.prototype.run=function(){if(this._skip&&this.comment("SKIP "+this.name),!this._cb||this._skip)return this._end();null!=this._timeout&&this.timeoutAfter(this._timeout),this.emit("prerun"),this._cb(this),this.emit("run")},i.prototype.test=function(t,e,r){var n=this,o=new i(t,e,r);this._progeny.push(o),this.pendingCount++,this.emit("test",o),o.on("prerun",function(){n.assertCount++}),n._pendingAsserts()||g(function(){n._end()}),g(function(){n._plan||n.pendingCount!=n._progeny.length||n._end()})},i.prototype.comment=function(t){var e=this;p(c(t).split("\n"),function(t){e.emit("result",c(t).replace(/^#\s*/,""))})},i.prototype.plan=function(t){this._plan=t,this.emit("plan",t)},i.prototype.timeoutAfter=function(t){if(!t)throw new Error("timeoutAfter requires a timespan");var e=this,r=y(function(){e.fail("test timed out after "+t+"ms"),e.end()},t);this.once("end",function(){clearTimeout(r)})},i.prototype.end=function(t){arguments.length>=1&&t&&this.ifError(t),this.calledEnd&&this.fail(".end() called twice"),this.calledEnd=!0,this._end()},i.prototype._end=function(t){var e=this;if(this._progeny.length){var r=this._progeny.shift();return r.on("end",function(){e._end()}),void r.run()}this.ended||this.emit("end");var n=this._pendingAsserts();!this._planError&&void 0!==this._plan&&n&&(this._planError=!0,this.fail("plan != count",{expected:this._plan,actual:this.assertCount})),this.ended=!0},i.prototype._exit=function(){void 0===this._plan||this._planError||this.assertCount===this._plan?this.ended||this.fail("test exited without ending",{exiting:!0}):(this._planError=!0,this.fail("plan != count",{expected:this._plan,actual:this.assertCount,exiting:!0}))},i.prototype._pendingAsserts=function(){return void 0===this._plan?1:this._plan-(this._progeny.length+this.assertCount)},i.prototype._assert=function(t,e){var r=this,i=e.extra||{},o={id:r.assertCount++,ok:Boolean(t),skip:s(i.skip,e.skip),name:s(i.message,e.message,"(unnamed assert)"),operator:s(i.operator,e.operator),objectPrintDepth:r._objectPrintDepth};if((l(e,"actual")||l(i,"actual"))&&(o.actual=s(i.actual,e.actual)),(l(e,"expected")||l(i,"expected"))&&(o.expected=s(i.expected,e.expected)),this._ok=Boolean(this._ok&&t),t||(o.error=s(i.error,e.error,new Error(o.name))),!t)for(var u=(new Error("exception").stack||"").split("\n"),f=a.dirname(n)+a.sep,c=0;c<u.length;c++){var h=/^[^\s]*\s*\bat\s+(.+)/.exec(u[c]);if(h){var p=h[1].split(/\s+/),d=/((?:\/|[A-Z]:\\)[^:\s]+:(\d+)(?::(\d+))?)/.exec(p[1]);if((d||(d=/((?:\/|[A-Z]:\\)[^:\s]+:(\d+)(?::(\d+))?)/.exec(p[2]))||(d=/((?:\/|[A-Z]:\\)[^:\s]+:(\d+)(?::(\d+))?)/.exec(p[3])))&&d[1].slice(0,f.length)!==f){o.functionName=p[0],o.file=d[1],o.line=Number(d[2]),d[3]&&(o.column=d[3]),o.at=h[1];break}}}r.emit("result",o);var y=r._pendingAsserts();y||(i.exiting?r._end():g(function(){r._end()})),!r._planError&&y<0&&(r._planError=!0,r.fail("plan != count",{expected:r._plan,actual:r._plan-y}))},i.prototype.fail=function(t,e){this._assert(!1,{message:t,operator:"fail",extra:e})},i.prototype.pass=function(t,e){this._assert(!0,{message:t,operator:"pass",extra:e})},i.prototype.skip=function(t,e){this._assert(!0,{message:t,operator:"skip",skip:!0,extra:e})},i.prototype.ok=i.prototype.true=i.prototype.assert=function(t,e,r){this._assert(t,{message:s(e,"should be truthy"),operator:"ok",expected:!0,actual:t,extra:r})},i.prototype.notOk=i.prototype.false=i.prototype.notok=function(t,e,r){this._assert(!t,{message:s(e,"should be falsy"),operator:"notOk",expected:!1,actual:t,extra:r})},i.prototype.error=i.prototype.ifError=i.prototype.ifErr=i.prototype.iferror=function(t,e,r){this._assert(!t,{message:s(e,String(t)),operator:"error",actual:t,extra:r})},i.prototype.equal=i.prototype.equals=i.prototype.isEqual=i.prototype.is=i.prototype.strictEqual=i.prototype.strictEquals=function(t,e,r,n){this._assert(t===e,{message:s(r,"should be equal"),operator:"equal",actual:t,expected:e,extra:n})},i.prototype.notEqual=i.prototype.notEquals=i.prototype.notStrictEqual=i.prototype.notStrictEquals=i.prototype.isNotEqual=i.prototype.isNot=i.prototype.not=i.prototype.doesNotEqual=i.prototype.isInequal=function(t,e,r,n){this._assert(t!==e,{message:s(r,"should not be equal"),operator:"notEqual",actual:t,notExpected:e,extra:n})},i.prototype.deepEqual=i.prototype.deepEquals=i.prototype.isEquivalent=i.prototype.same=function(t,e,r,n){this._assert(o(t,e,{strict:!0}),{message:s(r,"should be equivalent"),operator:"deepEqual",actual:t,expected:e,extra:n})},i.prototype.deepLooseEqual=i.prototype.looseEqual=i.prototype.looseEquals=function(t,e,r,n){this._assert(o(t,e),{message:s(r,"should be equivalent"),operator:"deepLooseEqual",actual:t,expected:e,extra:n})},i.prototype.notDeepEqual=i.prototype.notEquivalent=i.prototype.notDeeply=i.prototype.notSame=i.prototype.isNotDeepEqual=i.prototype.isNotDeeply=i.prototype.isNotEquivalent=i.prototype.isInequivalent=function(t,e,r,n){this._assert(!o(t,e,{strict:!0}),{message:s(r,"should not be equivalent"),operator:"notDeepEqual",actual:t,notExpected:e,extra:n})},i.prototype.notDeepLooseEqual=i.prototype.notLooseEqual=i.prototype.notLooseEquals=function(t,e,r,n){this._assert(!o(t,e),{message:s(r,"should be equivalent"),operator:"notDeepLooseEqual",actual:t,expected:e,extra:n})},i.prototype.throws=function(t,e,r,n){"string"==typeof e&&(r=e,e=void 0);var i=void 0;try{t()}catch(t){if(i={error:t},!(null==t||d(t,"message")&&l(t,"message"))){var o=t.message;delete t.message,t.message=o}}var a=i;e instanceof RegExp&&(a=e.test(i&&i.error),e=String(e)),"function"==typeof e&&i&&(a=i.error instanceof e,i.error=i.error.constructor),this._assert("function"==typeof t&&a,{message:s(r,"should throw"),operator:"throws",actual:i&&i.error,expected:e,error:!a&&i&&i.error,extra:n})},i.prototype.doesNotThrow=function(t,e,r,n){"string"==typeof e&&(r=e,e=void 0);var i=void 0;try{t()}catch(t){i={error:t}}this._assert(!i,{message:s(r,"should not throw"),operator:"throws",actual:i&&i.error,expected:e,error:i&&i.error,extra:n})},i.skip=function(t,e,r){var n=b.apply(null,arguments);return n.opts.skip=!0,i(n.name,n.opts,n.cb)}}).call(this,t("_process"),"/node_modules/tape/lib")},{_process:38,"deep-equal":7,defined:11,events:19,"for-each":20,"function-bind":23,has:26,inherits:28,path:36,"string.prototype.trim":56}],66:[function(t,e,r){(function(n){function i(t,e,r){function i(){for(;f.length&&!c.paused;){var t=f.shift();if(null===t)return c.emit("end");c.emit("data",t)}}function s(){c.writable=!1,e.call(c),!c.readable&&c.autoDestroy&&c.destroy()}t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var a=!1,u=!1,f=[],l=!1,c=new o;return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(r&&!1===r.autoDestroy),c.write=function(e){return t.call(this,e),!c.paused},c.queue=c.push=function(t){return l?c:(null===t&&(l=!0),f.push(t),i(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&n.nextTick(function(){c.destroy()})}),c.end=function(t){if(!a)return a=!0,arguments.length&&c.write(t),s(),c},c.destroy=function(){if(!u)return u=!0,a=!0,f.length=0,c.writable=c.readable=!1,c.emit("close"),c},c.pause=function(){if(!c.paused)return c.paused=!0,c},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),i(),c.paused||c.emit("drain"),c},c}var o=t("stream");r=e.exports=i,i.through=i}).call(this,t("_process"))},{_process:38,stream:54}],67:[function(t,e,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],68:[function(t,e,r){function n(t,e,r){var n=document.createEventObject?document.createEventObject():document.createEvent("Events");if(n.initEvent&&n.initEvent("keydown",!0,!0),n.keyCode=e,n.which=e,r)for(var i in r)n[i]=r[i];t.dispatchEvent?t.dispatchEvent(n):t.fireEvent("onkeydown",n)}var i=t("tape");t("tape-dom")(i);var o=t("../dist/hotkeys.js"),s=navigator.userAgent.toLowerCase().indexOf("firefox")>0;i("hotkeys 单元测试",function(t){o("w",function(e){t.equal(e.keyCode,87,"单个按键 w keyCode == 87")}),n(document.body,87),o("enter",function(e){t.equal(e.keyCode,13,"单个特殊键按键 enter,enter验证 keyCode == 13")}),o("return",function(e){t.equal(e.keyCode,13,"单个特殊键按键 return,return验证 keyCode == 13")}),n(document.body,13),o("space",function(e){t.equal(e.keyCode,32,"单个特殊键按键 space,space验证 keyCode == 32")}),n(document.body,32),o("backspace",function(e){t.equal(e.keyCode,8,"单个特殊键按键 backspace,backspace 验证 keyCode == 8")}),n(document.body,8),o("tab",function(e){t.equal(e.keyCode,9,"单个特殊键按键 tab,tab 验证 keyCode == 9")}),n(document.body,9),o("clear",function(e){t.equal(e.keyCode,12,"单个特殊键按键 clear,clear 验证 keyCode == 12")}),n(document.body,12),o(",",function(e){t.equal(e.keyCode,188,"单个特殊键按键 , ,, 验证 keyCode == 188")}),n(document.body,188),o(".",function(e){t.equal(e.keyCode,190,"单个特殊键按键 . ,. 验证 keyCode == 190")}),n(document.body,190),o(".",function(e){t.equal(e.keyCode,190,"单个特殊键按键 . ,. 验证 keyCode == 190")}),n(document.body,190),o("/",function(e){t.equal(e.keyCode,191,"单个特殊键按键 / ,/ 验证 keyCode == 191")}),n(document.body,191),o("`",function(e){t.equal(e.keyCode,192,"单个特殊键按键 ` ,` 验证 keyCode == 192")}),n(document.body,192),o("-",function(e){t.equal(e.keyCode,s?173:189,"单个特殊键按键 -,- 验证 keyCode == 火狐?173:189")}),n(document.body,s?173:189),o("=",function(e){t.equal(e.keyCode,s?61:187,"单个特殊键按键 =,= 验证 keyCode == 火狐?61:187")}),n(document.body,s?61:187),o(";",function(e){t.equal(e.keyCode,s?59:186,"单个特殊键按键 ; ,; 验证 keyCode == 火狐?59:186")}),n(document.body,s?59:186),o("'".toString(),function(e){t.equal(e.keyCode,222,"单个特殊键按键 ' ,' 验证 keyCode == 222 ")}),n(document.body,222),o("\\".toString(),function(e){t.equal(e.keyCode,220,"单个特殊键按键 \\ ,\\ 验证 keyCode == 220 ")}),n(document.body,220),o("[".toString(),function(e){t.equal(e.keyCode,219,"单个特殊键按键 [ ,[ 验证 keyCode == 219 ")}),n(document.body,219),o("]".toString(),function(e){t.equal(e.keyCode,221,"单个特殊键按键 ] ,] 验证 keyCode == 221 ")}),n(document.body,221),o("left",function(e){t.equal(e.keyCode,37,"单个特殊键按键 left,left 验证 keyCode == 37")}),n(document.body,37),o("up",function(e){t.equal(e.keyCode,38,"单个特殊键按键 up,up 验证 keyCode == 38")}),n(document.body,38),o("del",function(e){t.equal(e.keyCode,46,"单个特殊键按键 del,del 验证 keyCode == 46")}),o("delete",function(e){t.equal(e.keyCode,46,"单个特殊键按键 delete,delete 验证 keyCode == 46")}),n(document.body,46),o("home",function(e){t.equal(e.keyCode,36,"单个特殊键按键 home,home 验证 keyCode == 36")}),n(document.body,36),o("pageup",function(e){t.equal(e.keyCode,33,"单个特殊键按键 pageup,pageup 验证 keyCode == 33")}),n(document.body,33),o("pagedown",function(e){t.equal(e.keyCode,34,"单个特殊键按键 pagedown,pagedown 验证 keyCode == 34")}),n(document.body,34),o("end",function(e){t.equal(e.keyCode,35,"单个特殊键按键 end,end 验证 keyCode == 35")}),n(document.body,35),o("right",function(e){t.equal(e.keyCode,39,"单个特殊键按键 right,right 验证 keyCode == 39")}),n(document.body,39),o("down",function(e){t.equal(e.keyCode,40,"单个特殊键按键 down,down 验证 keyCode == 40")}),n(document.body,40),o("esc",function(e){t.equal(e.keyCode,27,"单个特殊键按键 esc,esc 验证 keyCode == 27")}),o("escape",function(e){t.equal(e.keyCode,27,"单个特殊键按键 escape,escape 验证 keyCode == 27")}),n(document.body,27),o("CapsLock",function(e){t.equal(e.keyCode,20,"单个特殊键按键 CapsLock,CapsLock验证 keyCode == 20")}),o("⇪",function(e){t.equal(e.keyCode,20,"单个特殊键按键 ⇪,⇪验证 keyCode == 20")}),n(document.body,20),o("⌘+r",function(e){return t.equal(e.keyCode,82,"组合键 ⌘+d,d验证 keyCode == 82"),t.equal(e.metaKey,!0,"组合键 ⌘+d,alt验证 metaKey == true"),!1}),n(document.body,82,{metaKey:!0}),o("alt+d",function(e){t.equal(e.keyCode,68,"组合键 alt+d,d验证 keyCode == 68"),t.equal(e.altKey,!0,"组合键 alt+d,alt验证 altKey == true")}),n(document.body,68,{altKey:!0}),o("shift+a",function(e){t.equal(e.keyCode,65,"组合键 shift+a,a验证 keyCode == 65"),t.equal(e.shiftKey,!0,"组合键 shift+a,shift验证 shiftKey == true")}),n(document.body,65,{shiftKey:!0}),o("⇧+a",function(e){t.equal(e.keyCode,65,"组合键 ⇧+a,a验证 keyCode == 65"),t.equal(e.shiftKey,!0,"组合键 ⇧+a,⇧验证 shiftKey == true")}),n(document.body,65,{shiftKey:!0}),o("⌘+a",function(e){t.equal(e.keyCode,65,"组合键 ⌘+a,a验证 keyCode == 65"),t.equal(e.metaKey,!0,"组合键 ⌘+a,⌘验证 metaKey == true")}),n(document.body,65,{metaKey:!0}),o("⌃+a",function(e){t.equal(e.keyCode,65,"组合键 ⌃+a,a验证 keyCode == 65"),t.equal(e.ctrlKey,!0,"组合键 ⌃+a,⌃验证 ctrlKey == true")}),n(document.body,65,{ctrlKey:!0}),o("⌥+a",function(e){t.equal(e.keyCode,65,"组合键 ⌥+a,a验证 keyCode == 65"),t.equal(e.altKey,!0,"组合键 ⌥+a,⌥验证 altKey == true")}),n(document.body,65,{altKey:!0})})},{"../dist/hotkeys.js":1,tape:62,"tape-dom":60}]},{},[68]);
|