text: !function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}([function(e,t,r){"use strict";e.exports={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,BKR:14,BKA:15,BKN:16,ABG:17,AEN:18,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,SEM_SKIP:301,ATTR_N:400,ATTR_R:401,ATTR_MR:402,ATTR_NMR:403,ATTR_RMR:404,LOOKAROUND_NONE:500,LOOKAROUND_AHEAD:501,LOOKAROUND_BEHIND:502,BKR_MODE_UM:601,BKR_MODE_PM:602,BKR_MODE_CS:603,BKR_MODE_CI:604}},function(e,t,r){"use strict";function n(e){return!(e>=55296&&e<=57343)&&!(e>1114111)}var a=r(2),o=r(13).converter,s=this,i=function(e,t,r){for(var n;;){if(e<=0){t=0,n=0;break}if("number"!=typeof t){t=0,n=e;break}if(t>=e){t=e,n=e;break}if("number"!=typeof r){n=e;break}if((n=t+r)>e){n=e;break}break}return{beg:t,end:n}};t.htmlToPage=function(e,t){var n=r(6);if("string"!=typeof e)throw new Error("utilities.js: htmlToPage: input HTML is not a string");"string"!=typeof t&&(t="htmlToPage");var a="";return a+="<!DOCTYPE html>\n",a+='<html lang="en">\n',a+="<head>\n",a+='<meta charset="utf-8">\n',a+="<title>"+t+"</title>\n",a+="<style>\n",a+="'"+n()+"'",a+="</style>\n",a+="</head>\n<body>\n",a+="<p>"+new Date+"</p>\n",a+=e,a+="</body>\n</html>\n"},t.parserResultToHtml=function(e,t){var n=r(0),o=null;"string"==typeof t&&""!==t&&(o=t);var s,i;s=!0===e.success?'<span class="'+a.CLASS_MATCH+'">true</span>':'<span class="'+a.CLASS_NOMATCH+'">false</span>',i=e.state===n.EMPTY?'<span class="'+a.CLASS_EMPTY+'">EMPTY</span>':e.state===n.MATCH?'<span class="'+a.CLASS_MATCH+'">MATCH</span>':e.state===n.NOMATCH?'<span class="'+a.CLASS_NOMATCH+'">NOMATCH</span>':'<span class="'+a.CLASS_NOMATCH+'">unrecognized</span>';var h="";return h+='<table class="'+a.CLASS_STATE+'">\n',o&&(h+="<caption>"+o+"</caption>\n"),h+="<tr><th>state item</th><th>value</th><th>description</th></tr>\n",h+="<tr><td>parser success</td><td>"+s+"</td>\n",h+='<td><span class="'+a.CLASS_MATCH+'">true</span> if the parse succeeded,\n',h+=' <span class="'+a.CLASS_NOMATCH+'">false</span> otherwise',h+="<br><i>NOTE: for success, entire string must be matched</i></td></tr>\n",h+="<tr><td>parser state</td><td>"+i+"</td>\n",h+='<td><span class="'+a.CLASS_EMPTY+'">EMPTY</span>, ',h+='<span class="'+a.CLASS_MATCH+'">MATCH</span> or \n',h+='<span class="'+a.CLASS_NOMATCH+'">NOMATCH</span></td></tr>\n',h+="<tr><td>string length</td><td>"+e.length+"</td><td>length of the input (sub)string</td></tr>\n",h+="<tr><td>matched length</td><td>"+e.matched+"</td><td>number of input string characters matched</td></tr>\n",h+="<tr><td>max matched</td><td>"+e.maxMatched+"</td><td>maximum number of input string characters matched</td></tr>\n",h+="<tr><td>max tree depth</td><td>"+e.maxTreeDepth+"</td><td>maximum depth of the parse tree reached</td></tr>\n",h+="<tr><td>node hits</td><td>"+e.nodeHits+"</td><td>number of parse tree node hits (opcode function calls)</td></tr>\n",h+="<tr><td>input length</td><td>"+e.inputLength+"</td><td>length of full input string</td></tr>\n",h+="<tr><td>sub-string begin</td><td>"+e.subBegin+"</td><td>sub-string first character index</td></tr>\n",h+="<tr><td>sub-string end</td><td>"+e.subEnd+"</td><td>sub-string end-of-string index</td></tr>\n",h+="<tr><td>sub-string length</td><td>"+e.subLength+"</td><td>sub-string length</td></tr>\n",h+="</table>\n"},t.charsToString=function(e,t,r){var n,a;if("number"==typeof t){if(t>=e.length)return"";n=t<0?0:t}else n=0;if("number"==typeof r){if(r<=0)return"";a=r>e.length-n?e.length:n+r}else a=e.length;return n<a?o.encode("UTF16LE",e.slice(n,a)).toString("utf16le"):""},t.stringToChars=function(e){return o.decode("STRING",e)},t.opcodeToString=function(e){var t=r(0),n="unknown";switch(e){case t.ALT:n="ALT";break;case t.CAT:n="CAT";break;case t.RNM:n="RNM";break;case t.UDT:n="UDT";break;case t.AND:n="AND";break;case t.NOT:n="NOT";break;case t.REP:n="REP";break;case t.TRG:n="TRG";break;case t.TBS:n="TBS";break;case t.TLS:n="TLS";break;case t.BKR:n="BKR";break;case t.BKA:n="BKA";break;case t.BKN:n="BKN";break;case t.ABG:n="ABG";break;case t.AEN:n="AEN"}return n},t.stateToString=function(e){var t=r(0),n="unknown";switch(e){case t.ACTIVE:n="ACTIVE";break;case t.MATCH:n="MATCH";break;case t.EMPTY:n="EMPTY";break;case t.NOMATCH:n="NOMATCH"}return n},t.asciiChars=["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","SO","SI","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US","&nbsp;","!","&#34;","#","$","%","&#38;","&#39;","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&#60;","=","&#62;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","&#92;","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","DEL"],t.charToHex=function(e){var t=e.toString(16).toUpperCase();switch(t.length){case 1:case 3:case 7:t="0"+t;break;case 6:t="00"+t;break;case 5:t="000"+t}return t},t.charsToDec=function(e,t,r){var n="";if(!Array.isArray(e))throw new Error("utilities.js: charsToDec: input must be an array of integers");var a=i(e.length,t,r);if(a.end>a.beg){n+=e[a.beg];for(var o=a.beg+1;o<a.end;o+=1)n+=","+e[o]}return n},t.charsToHex=function(e,t,r){var n="";if(!Array.isArray(e))throw new Error("utilities.js: charsToHex: input must be an array of integers");var a=i(e.length,t,r);if(a.end>a.beg){n+="\\x"+s.charToHex(e[a.beg]);for(var o=a.beg+1;o<a.end;o+=1)n+=",\\x"+s.charToHex(e[o])}return n},t.charsToHtmlEntities=function(e,t,r){var n="";if(!Array.isArray(e))throw new Error("utilities.js: charsToHex: input must be an array of integers");var a=i(e.length,t,r);if(a.end>a.beg)for(var o=a.beg;o<a.end;o+=1)n+="&#x"+e[o].toString(16)+";";return n},t.charsToUnicode=function(e,t,r){var a="";if(!Array.isArray(e))throw new Error("utilities.js: charsToUnicode: input must be an array of integers");var o=i(e.length,t,r);if(o.end>o.beg)for(var h=o.beg;h<o.end;h+=1)n(e[h])?a+="&#"+e[h]+";":a+=" U+"+s.charToHex(e[h]);return a},t.charsToJsUnicode=function(e,t,r){var n="";if(!Array.isArray(e))throw new Error("utilities.js: charsToJsUnicode: input must be an array of integers");var a=i(e.length,t,r);if(a.end>a.beg){n+="\\u"+s.charToHex(e[a.beg]);for(var o=a.beg+1;o<a.end;o+=1)n+=",\\u"+s.charToHex(e[o])}return n},t.charsToAscii=function(e,t,r){var n="";if(!Array.isArray(e))throw new Error("utilities.js: charsToAscii: input must be an array of integers");for(var a=i(e.length,t,r),o=a.beg;o<a.end;o+=1){var h=e[o];n+=h>=32&&h<=126?String.fromCharCode(h):"\\x"+s.charToHex(h)}return n},t.charsToAsciiHtml=function(e,t,r){if(!Array.isArray(e))throw new Error("utilities.js: charsToAsciiHtml: input must be an array of integers");for(var n,o="",h=i(e.length,t,r),c=h.beg;c<h.end;c+=1)o+=(n=e[c])<32||127===n?'<span class="'+a.CLASS_CTRLCHAR+'">'+s.asciiChars[n]+"</span>":n>127?'<span class="'+a.CLASS_CTRLCHAR+'">U+'+s.charToHex(n)+"</span>":s.asciiChars[n];return o},t.stringToAsciiHtml=function(e){var t=o.decode("STRING",e);return this.charsToAsciiHtml(t)}},function(e,t){e.exports={CLASS_MONOSPACE:"apg-mono",CLASS_ACTIVE:"apg-active",CLASS_EMPTY:"apg-empty",CLASS_MATCH:"apg-match",CLASS_NOMATCH:"apg-nomatch",CLASS_LOOKAHEAD:"apg-lh-match",CLASS_LOOKBEHIND:"apg-lb-match",CLASS_REMAINDER:"apg-remainder",CLASS_CTRLCHAR:"apg-ctrl-char",CLASS_LINEEND:"apg-line-end",CLASS_ERROR:"apg-error",CLASS_PHRASE:"apg-phrase",CLASS_EMPTYPHRASE:"apg-empty-phrase",CLASS_STATE:"apg-state",CLASS_STATS:"apg-stats",CLASS_TRACE:"apg-trace",CLASS_GRAMMAR:"apg-grammar",CLASS_RULES:"apg-rules",CLASS_RULESLINK:"apg-rules-link",CLASS_ATTRIBUTES:"apg-attrs"}},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=o.prototype:(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return s(this,e,t,r)}function s(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,r,n):"string"==typeof t?u(e,t,r):p(e,t)}function i(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,r,n){return i(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}function c(e,t){if(i(t),e=a(e,t<0?0:0|d(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function u(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(t,r),s=(e=a(e,n)).write(t,r);return s!==n&&(e=e.slice(0,s)),e}function l(e,t){var r=t.length<0?0:0|d(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function f(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),o.TYPED_ARRAY_SUPPORT?(e=t).__proto__=o.prototype:e=l(e,t),e}function p(e,t){if(o.isBuffer(t)){var r=0|d(t.length);return 0===(e=a(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||J(t.length)?a(e,0):l(e,t);if("Buffer"===t.type&&W(t.data))return l(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),o.alloc(+e)}function b(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(n)return z(e).length;t=(""+t).toLowerCase(),n=!0}}function T(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return M(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function A(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,a);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,a){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,i=e.length,h=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,i/=2,h/=2,r/=2}var c;if(a){var u=-1;for(c=r;c<i;c++)if(o(e,c)===o(t,-1===u?0:c-u)){if(-1===u&&(u=c),c-u+1===h)return u*s}else-1!==u&&(c-=c-u),u=-1}else for(r+h>i&&(r=i-h),c=r;c>=0;c--){for(var l=!0,f=0;f<h;f++)if(o(e,c+f)!==o(t,f)){l=!1;break}if(l)return c}return-1}function w(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var o=t.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 i=parseInt(t.substr(2*s,2),16);if(isNaN(i))return s;e[r+s]=i}return s}function y(e,t,r,n){return X(z(t,e.length-r),e,r,n)}function v(e,t,r,n){return X(G(t),e,r,n)}function C(e,t,r,n){return v(e,t,r,n)}function S(e,t,r,n){return X(q(t),e,r,n)}function L(e,t,r,n){return X(V(t,e.length-r),e,r,n)}function M(e,t,r){return 0===t&&r===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var o=e[a],s=null,i=o>239?4:o>223?3:o>191?2:1;if(a+i<=r){var h,c,u,l;switch(i){case 1:o<128&&(s=o);break;case 2:128==(192&(h=e[a+1]))&&(l=(31&o)<<6|63&h)>127&&(s=l);break;case 3:h=e[a+1],c=e[a+2],128==(192&h)&&128==(192&c)&&(l=(15&o)<<12|(63&h)<<6|63&c)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:h=e[a+1],c=e[a+2],u=e[a+3],128==(192&h)&&128==(192&c)&&128==(192&u)&&(l=(15&o)<<18|(63&h)<<12|(63&c)<<6|63&u)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,i=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),a+=i}return N(n)}function N(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=$));return r}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function B(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function x(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",o=t;o<r;++o)a+=j(e[o]);return a}function U(e,t,r){for(var n=e.slice(t,r),a="",o=0;o<n.length;o+=2)a+=String.fromCharCode(n[o]+256*n[o+1]);return a}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,a,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-r,2);a<o;++a)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-r,4);a<o;++a)e[r+a]=t>>>8*(n?a:3-a)&255}function P(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,a){return a||P(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,a){return a||P(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,r,n,52,8),r+8}function Y(e){if((e=K(e).replace(ee,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){t=t||1/0;for(var r,n=e.length,a=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=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((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function V(e,t){for(var r,n,a,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,a=r%256,o.push(a),o.push(n);return o}function q(e){return Z.toByteArray(Y(e))}function X(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function J(e){return e!==e}var Z=r(9),Q=r(10),W=r(11);t.Buffer=o,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return s(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return h(null,e,t,r)},o.allocUnsafe=function(e){return c(null,e)},o.allocUnsafeSlow=function(e){return c(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,a=0,s=Math.min(r,n);a<s;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).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}},o.concat=function(e,t){if(!W(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var s=e[r];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,a),a+=s.length}return n},o.byteLength=b,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)A(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)A(this,t,t+3),A(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):T.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,a){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var s=a-n,i=r-t,h=Math.min(s,i),c=this.slice(n,a),u=e.slice(t,r),l=0;l<h;++l)if(c[l]!==u[l]){s=c[l],i=u[l];break}return s<i?-1:i<s?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n;if(o.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=o.prototype;else{var a=t-e;n=new o(a,void 0);for(var s=0;s<a;++s)n[s]=this[s+e]}return n},o.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n},o.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},o.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),Q.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),Q.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),Q.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),Q.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||_(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||_(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);_(this,e,t,r,a-1,-a)}var o=0,s=1,i=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===i&&0!==this[t+o-1]&&(i=1),this[t+o]=(e/s>>0)-i&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);_(this,e,t,r,a-1,-a)}var o=r-1,s=1,i=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===i&&0!==this[t+o+1]&&(i=1),this[t+o]=(e/s>>0)-i&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<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),e.length-t<n-r&&(n=e.length-t+r);var a,s=n-r;if(this===e&&r<t&&t<n)for(a=s-1;a>=0;--a)e[a+t]=this[a+r];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(a=0;a<s;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+s),t);return s},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<r;++s)this[s]=e;else{var i=o.isBuffer(e)?e:z(new o(e,n).toString()),h=i.length;for(s=0;s<r-t;++s)this[s+t]=i[s%h]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,r(8))},function(e,t,r){(function(e){"use strict;";var r=this,n=4294967292,a=4294967293,o=4294967294,s=[0,1,3,7,15,31,63,127,255,511,1023],i=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"],h=[];"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e){h.push(e.charCodeAt(0))}),t.utf8={encode:function(t){var r=[];return t.forEach(function(e){if(e>=0&&e<=127)r.push(e);else if(e<=2047)r.push(192+(e>>6&s[5])),r.push(128+(e&s[6]));else if(e<55296||e>57343&&e<=65535)r.push(224+(e>>12&s[4])),r.push(128+(e>>6&s[6])),r.push(128+(e&s[6]));else{if(!(e>=65536&&e<=1114111))throw new RangeError("utf8.encode: character out of range: char: "+e);var t=e>>16&s[5];r.push(240+(t>>2)),r.push(128+((t&s[2])<<4)+(e>>12&s[4])),r.push(128+(e>>6&s[6])),r.push(128+(e&s[6]))}}),e.from(r)},decode:function(e,t){for(var r,i,h,c,u,l,f=e.length,p=t?3:0,d=[];p<f;){for(i=e[p],r=4294967295;;){if(i>=0&&i<=127){r=i,l=1;break}if((h=p+1)<f&&i>=194&&i<=223){r=function(e,t){if(128!=(192&t))return a;var r=((e&s[5])<<6)+(t&s[6]);return r<128?n:r}(i,e[h]),l=2;break}if((c=p+2)<f&&i>=224&&i<=239){r=function(e,t,r){if(128!=(192&r)||128!=(192&t))return a;var i=((e&s[4])<<12)+((t&s[6])<<6)+(r&s[6]);return i<2048?n:i>=55296&&i<=57343?o:i}(i,e[h],e[c]),l=3;break}if((u=p+3)<f&&i>=240&&i<=244){r=function(e,t,r,i){if(128!=(192&i)||128!=(192&r)||128!=(192&t))return a;var h=(((e&s[3])<<2)+(t>>4&s[2])<<16)+((t&s[4])<<12)+((r&s[6])<<6)+(i&s[6]);return h<65536?n:h>1114111?o:h}(i,e[h],e[c],e[u]),l=4;break}break}if(r>1114111){var g="byte["+p+"]";if(4294967295===r)throw new RangeError("utf8.decode: ill-formed UTF8 byte sequence found at: "+g);if(r===a)throw new RangeError("utf8.decode: illegal trailing byte found at: "+g);if(r===o)throw new RangeError("utf8.decode: code point out of range found at: "+g);if(r===n)throw new RangeError("utf8.decode: non-shortest form found at: "+g);throw new RangeError("utf8.decode: unrecognized error found at: "+g)}d.push(r),p+=l}return d}},t.utf16be={encode:function(t){for(var r,n,a,o=[],i=0;i<t.length;i+=1)if((r=t[i])>=0&&r<=55295||r>=57344&&r<=65535)o.push(r>>8&s[8]),o.push(r&s[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError("utf16be.encode: UTF16BE value out of range: char["+i+"]: "+r);n=55296+((a=r-65536)>>10),a=56320+(a&s[10]),o.push(n>>8&s[8]),o.push(n&s[8]),o.push(a>>8&s[8]),o.push(a&s[8])}return e.from(o)},decode:function(e,t){if(e.length%2>0)throw new RangeError("utf16be.decode: data length must be even multiple of 2: length: "+e.length);for(var r,n,a,o,s,i,h=[],c=e.length,u=t?2:0,l=0;u<c;){for(;;){if((a=u+1)<c){if((s=(e[u]<<8)+e[a])<55296||s>57343){r=s,n=2;break}if((o=u+3)<c&&(i=(e[u+2]<<8)+e[o],s<=56319&&i>=56320&&i<=57343)){r=65536+(s-55296<<10)+(i-56320),n=4;break}}throw new RangeError("utf16be.decode: ill-formed UTF16BE byte sequence found: byte["+u+"]")}h[l++]=r,u+=n}return h}},t.utf16le={encode:function(t){for(var r,n,a,o=[],i=0;i<t.length;i+=1)if((r=t[i])>=0&&r<=55295||r>=57344&&r<=65535)o.push(r&s[8]),o.push(r>>8&s[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError("utf16le.encode: UTF16LE value out of range: char["+i+"]: "+r);n=55296+((a=r-65536)>>10),a=56320+(a&s[10]),o.push(n&s[8]),o.push(n>>8&s[8]),o.push(a&s[8]),o.push(a>>8&s[8])}return e.from(o)},decode:function(e,t){if(e.length%2>0)throw new RangeError("utf16le.decode: data length must be even multiple of 2: length: "+e.length);for(var r,n,a,o,s,i,h=[],c=e.length,u=t?2:0,l=0;u<c;){for(;;){if((a=u+1)<c){if((s=(e[a]<<8)+e[u])<55296||s>57343){r=s,n=2;break}if((o=u+3)<c&&(i=(e[o]<<8)+e[u+2],s<=56319&&i>=56320&&i<=57343)){r=65536+(s-55296<<10)+(i-56320),n=4;break}}throw new RangeError("utf16le.decode: ill-formed UTF16LE byte sequence found: byte["+u+"]")}h[l++]=r,u+=n}return h}},t.utf32be={encode:function(t){var r=e.alloc(4*t.length),n=0;return t.forEach(function(e){if(e>=55296&&e<=57343||e>1114111)throw new RangeError("utf32be.encode: UTF32BE character code out of range: char["+n/4+"]: "+e);r[n++]=e>>24&s[8],r[n++]=e>>16&s[8],r[n++]=e>>8&s[8],r[n++]=e&s[8]}),r},decode:function(e,t){if(e.length%4>0)throw new RangeError("utf32be.decode: UTF32BE byte length must be even multiple of 4: length: "+e.length);for(var r=[],n=t?4:0;n<e.length;n+=4){var a=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];if(a>=55296&&a<=57343||a>1114111)throw new RangeError("utf32be.decode: UTF32BE character code out of range: char["+n/4+"]: "+a);r.push(a)}return r}},t.utf32le={encode:function(t){var r=e.alloc(4*t.length),n=0;return t.forEach(function(e){if(e>=55296&&e<=57343||e>1114111)throw new RangeError("utf32le.encode: UTF32LE character code out of range: char["+n/4+"]: "+e);r[n++]=e&s[8],r[n++]=e>>8&s[8],r[n++]=e>>16&s[8],r[n++]=e>>24&s[8]}),r},decode:function(e,t){if(e.length%4>0)throw new RangeError("utf32be.decode: UTF32LE byte length must be even multiple of 4: length: "+e.length);for(var r=[],n=t?4:0;n<e.length;n+=4){var a=(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n];if(a>=55296&&a<=57343||a>1114111)throw new RangeError("utf32le.encode: UTF32LE character code out of range: char["+n/4+"]: "+a);r.push(a)}return r}},t.uint7={encode:function(t){for(var r=e.alloc(t.length),n=0;n<t.length;n+=1){if(t[n]>127)throw new RangeError("uint7.encode: UINT7 character code out of range: char["+n+"]: "+t[n]);r[n]=t[n]}return r},decode:function(e){for(var t=[],r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError("uint7.decode: UINT7 character code out of range: byte["+r+"]: "+e[r]);t[r]=e[r]}return t}},t.uint8={encode:function(t){for(var r=e.alloc(t.length),n=0;n<t.length;n+=1){if(t[n]>255)throw new RangeError("uint8.encode: UINT8 character code out of range: char["+n+"]: "+t[n]);r[n]=t[n]}return r},decode:function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e[r];return t}},t.uint16be={encode:function(t){var r=e.alloc(2*t.length),n=0;return t.forEach(function(e){if(e>65535)throw new RangeError("uint16be.encode: UINT16BE character code out of range: char["+n/2+"]: "+e);r[n++]=e>>8&s[8],r[n++]=e&s[8]}),r},decode:function(e){if(e.length%2>0)throw new RangeError("uint16be.decode: UINT16BE byte length must be even multiple of 2: length: "+e.length);for(var t=[],r=0;r<e.length;r+=2)t.push((e[r]<<8)+e[r+1]);return t}},t.uint16le={encode:function(t){var r=e.alloc(2*t.length),n=0;return t.forEach(function(e){if(e>65535)throw new RangeError("uint16le.encode: UINT16LE character code out of range: char["+n/2+"]: "+e);r[n++]=e&s[8],r[n++]=e>>8&s[8]}),r},decode:function(e){if(e.length%2>0)throw new RangeError("uint16le.decode: UINT16LE byte length must be even multiple of 2: length: "+e.length);for(var t=[],r=0;r<e.length;r+=2)t.push((e[r+1]<<8)+e[r]);return t}},t.uint32be={encode:function(t){var r=e.alloc(4*t.length),n=0;return t.forEach(function(e){r[n++]=e>>24&s[8],r[n++]=e>>16&s[8],r[n++]=e>>8&s[8],r[n++]=e&s[8]}),r},decode:function(e){if(e.length%4>0)throw new RangeError("uint32be.decode: UINT32BE byte length must be even multiple of 4: length: "+e.length);for(var t=[],r=0;r<e.length;r+=4)t.push((e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3]);return t}},t.uint32le={encode:function(t){var r=e.alloc(4*t.length),n=0;return t.forEach(function(e){r[n++]=e&s[8],r[n++]=e>>8&s[8],r[n++]=e>>16&s[8],r[n++]=e>>24&s[8]}),r},decode:function(e){if(e.length%4>0)throw new RangeError("uint32le.decode: UINT32LE byte length must be even multiple of 4: length: "+e.length);for(var t=[],r=0;r<e.length;r+=4)t.push((e[r+3]<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]);return t}},t.string={encode:function(e){return r.utf16le.encode(e).toString("utf16le")},decode:function(t){return r.utf16le.decode(e.from(t,"utf16le"),0)}},t.escaped={encode:function(t){for(var r=[],n=0;n<t.length;n+=1){var a=t[n];if(96===a)r.push(a),r.push(a);else if(10===a)r.push(a);else if(a>=32&&a<=126)r.push(a);else{var o="";if(a>=0&&a<=31)o+="`x"+i[a];else if(a>=127&&a<=255)o+="`x"+i[a];else if(a>=256&&a<=65535)o+="`u"+i[a>>8&s[8]]+i[a&s[8]];else{if(!(a>=65536&&a<=4294967295))throw new Error("escape.encode(char): char > 0xffffffff not allowed");o+="`u{";var h=a>>24&s[8];h>0&&(o+=i[h]),o+=i[a>>16&s[8]]+i[a>>8&s[8]]+i[a&s[8]]+"}"}e.from(o).forEach(function(e){r.push(e)})}}return e.from(r)},decode:function(e){function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}for(var r,n,a,o=[],s=e.length,i=0;i<s;){for(;;){if(a=!0,96!==e[i]){o.push(e[i]),i+=1,a=!1;break}if((r=i+1)>=s)break;if(96===e[r]){o.push(96),i+=2,a=!1;break}if(120===e[r]){if((n=function(e,r,n){var a={char:null,nexti:e+2,error:!0};if(e+1<r&&t(n[e])&&t(n[e+1])){var o=String.fromCodePoint(n[e],n[e+1]);a.char=parseInt(o,16),isNaN(a.char)||(a.error=!1)}return a}(r+1,s,e)).error)break;o.push(n.char),i=n.nexti,a=!1;break}if(117===e[r]){if(123===e[r+1]){if((n=function(e,r,n){for(var a={char:null,nexti:e+4,error:!0},o="";e<r&&t(n[e]);)o+=String.fromCodePoint(n[e]),e+=1;return a.char=parseInt(o,16),125!==n[e]||isNaN(a.char)||(a.error=!1),a.nexti=e+1,a}(r+2,s,e)).error)break;o.push(n.char),i=n.nexti,a=!1;break}if((n=function(e,r,n){var a={char:null,nexti:e+4,error:!0};if(e+3<r&&t(n[e])&&t(n[e+1])&&t(n[e+2])&&t(n[e+3])){var o=String.fromCodePoint(n[e],n[e+1],n[e+2],n[e+3]);a.char=parseInt(o,16),isNaN(a.char)||(a.error=!1)}return a}(r+1,s,e)).error)break;o.push(n.char),i=n.nexti,a=!1;break}break}if(a)throw new Error("escaped.decode: ill-formed escape sequence at buf["+i+"]")}return o}};t.lineEnds={crlf:function(e){for(var t=[],r=0;r<e.length;)switch(e[r]){case 13:r+1<e.length&&10===e[r+1]?r+=2:r+=1,t.push(13),t.push(10);break;case 10:t.push(13),t.push(10),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&10!==t[t.length-1]&&(t.push(13),t.push(10)),t},lf:function(e){for(var t=[],r=0;r<e.length;)switch(e[r]){case 13:r+1<e.length&&10===e[r+1]?r+=2:r+=1,t.push(10);break;case 10:t.push(10),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&10!==t[t.length-1]&&t.push(10),t}},t.base64={encode:function(t){if(0===t.length)return e.alloc(0);var r,n,a,o=t.length%3;o=o>0?3-o:0;var i=(t.length+o)/3,c=e.alloc(4*i);o>0&&(i-=1),r=0,n=0;for(var u=0;u<i;u+=1)a=t[r++]<<16,a+=t[r++]<<8,a+=t[r++],c[n++]=h[a>>18&s[6]],c[n++]=h[a>>12&s[6]],c[n++]=h[a>>6&s[6]],c[n++]=h[a&s[6]];return 0===o?c:1===o?(a=t[r++]<<16,a+=t[r]<<8,c[n++]=h[a>>18&s[6]],c[n++]=h[a>>12&s[6]],c[n++]=h[a>>6&s[6]],c[n]=h[64],c):2===o?(a=t[r]<<16,c[n++]=h[a>>18&s[6]],c[n++]=h[a>>12&s[6]],c[n++]=h[64],c[n]=h[64],c):void 0},decode:function(t){if(0===t.length)return e.alloc(0);var r,n,a,o=function(t){for(var r=[],n=0,a=0;a<t.length;a+=1)for(var o=t[a];;){if(32===o||9===o||10===o||13===o)break;if(o>=65&&o<=90){r.push(o-65);break}if(o>=97&&o<=122){r.push(o-71);break}if(o>=48&&o<=57){r.push(o+4);break}if(43===o){r.push(62);break}if(47===o){r.push(63);break}if(61===o){r.push(64),n+=1;break}throw new RangeError("base64.decode: invalid character buf["+a+"]: "+o)}if(r.length%4>0)throw new RangeError("base64.decode: string length not integral multiple of 4: "+r.length);switch(n){case 0:break;case 1:if(64!==r[r.length-1])throw new RangeError("base64.decode: one tail character found: not last character");break;case 2:if(64!==r[r.length-1]||64!==r[r.length-2])throw new RangeError("base64.decode: two tail characters found: not last characters");break;default:throw new RangeError("base64.decode: more than two tail characters found: "+n)}return{tail:n,buf:e.from(r)}}(t),i=o.tail,h=o.buf,c=h.length/4,u=e.alloc(3*c-i);i>0&&(c-=1),n=0,r=0;for(var l=0;l<c;l+=1)a=h[r++]<<18,a+=h[r++]<<12,a+=h[r++]<<6,a+=h[r++],u[n++]=a>>16&s[8],u[n++]=a>>8&s[8],u[n++]=a&s[8];return 1===i&&(a=h[r++]<<18,a+=h[r++]<<12,a+=h[r]<<6,u[n++]=a>>16&s[8],u[n]=a>>8&s[8]),2===i&&(a=h[r++]<<18,a+=h[r++]<<12,u[n]=a>>16&s[8]),u},toString:function(e){if(e.length%4>0)throw new RangeError("base64.toString: input buffer length not multiple of 4: "+e.length);for(var t="",r=0,n=0;n<e.length;n+=4){for(var a=n;a<n+4;a+=1)if(!function(e){return e>=65&&e<=90||(e>=97&&e<=122||(e>=48&&e<=57||(43===e||(47===e||61===e))))}(e[a]))throw new RangeError("base64.toString: buf["+a+"]: "+e[a]+" : not valid base64 character code");!function(e,n,a,o){switch(r){case 76:t+="\r\n"+e+n+a+o,r=4;break;case 75:t+=e+"\r\n"+n+a+o,r=3;break;case 74:t+=e+n+"\r\n"+a+o,r=2;break;case 73:t+=e+n+a+"\r\n"+o,r=1;break;default:t+=e+n+a+o,r+=4}}(String.fromCharCode(e[n]),String.fromCharCode(e[n+1]),String.fromCharCode(e[n+2]),String.fromCharCode(e[n+3]))}return t}}}).call(t,r(3).Buffer)},function(e,t){e.exports=function(){"use strict;";var e=-1,t=0;this.init=function(r){if("number"!=typeof r||r<=0)throw new Error("circular-buffer.js: init: circular buffer size must an integer > 0");t=Math.ceil(r),e=-1},this.increment=function(){return((e+=1)+t)%t},this.maxSize=function(){return t},this.items=function(){return e+1},this.getListIndex=function(r){return-1===e?-1:r<0||r>e?-1:e-r>=t?-1:(r+t)%t},this.forEach=function(r){if(-1!==e)if(e<t)for(n=0;n<=e;n+=1)r(n,n);else for(var n=e-t+1;n<=e;n+=1)r((n+t)%t,n)}}},function(e,t){e.exports=function(){return"/* This file automatically generated by toless() and LESS. */\n.apg-mono {\n  font-family: monospace;\n}\n.apg-active {\n  font-weight: bold;\n  color: #000000;\n}\n.apg-match {\n  font-weight: bold;\n  color: #264BFF;\n}\n.apg-empty {\n  font-weight: bold;\n  color: #0fbd0f;\n}\n.apg-nomatch {\n  font-weight: bold;\n  color: #FF4000;\n}\n.apg-lh-match {\n  font-weight: bold;\n  color: #1A97BA;\n}\n.apg-lb-match {\n  font-weight: bold;\n  color: #5F1687;\n}\n.apg-remainder {\n  font-weight: bold;\n  color: #999999;\n}\n.apg-ctrl-char {\n  font-weight: bolder;\n  font-style: italic;\n  font-size: .6em;\n}\n.apg-line-end {\n  font-weight: bold;\n  color: #000000;\n}\n.apg-error {\n  font-weight: bold;\n  color: #FF4000;\n}\n.apg-phrase {\n  color: #000000;\n  background-color: #8caae6;\n}\n.apg-empty-phrase {\n  color: #0fbd0f;\n}\ntable.apg-state {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: left;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-state th,\ntable.apg-state td {\n  text-align: left;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-state th:nth-last-child(2),\ntable.apg-state td:nth-last-child(2) {\n  text-align: right;\n}\ntable.apg-state caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-stats {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-stats th,\ntable.apg-stats td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-stats caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-trace {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-trace caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-trace th,\ntable.apg-trace td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-trace th:last-child,\ntable.apg-trace th:nth-last-child(2),\ntable.apg-trace td:last-child,\ntable.apg-trace td:nth-last-child(2) {\n  text-align: left;\n}\ntable.apg-grammar {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-grammar caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-grammar th,\ntable.apg-grammar td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-grammar th:last-child,\ntable.apg-grammar td:last-child {\n  text-align: left;\n}\ntable.apg-rules {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-rules caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-rules th,\ntable.apg-rules td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-rules a {\n  color: #003399 !important;\n}\ntable.apg-rules a:hover {\n  color: #8caae6 !important;\n}\ntable.apg-attrs {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: center;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-attrs caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-attrs th,\ntable.apg-attrs td {\n  text-align: center;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-attrs th:nth-child(1),\ntable.apg-attrs th:nth-child(2),\ntable.apg-attrs th:nth-child(3) {\n  text-align: right;\n}\ntable.apg-attrs td:nth-child(1),\ntable.apg-attrs td:nth-child(2),\ntable.apg-attrs td:nth-child(3) {\n  text-align: right;\n}\ntable.apg-attrs a {\n  color: #003399 !important;\n}\ntable.apg-attrs a:hover {\n  color: #8caae6 !important;\n}\n"}},function(e,t,r){"use strict";t.ast=r(14),t.circular=r(5),t.ids=r(0),t.parser=r(15),t.stats=r(16),t.trace=r(17),t.utils=r(1),t.emitcss=r(6),t.style=r(2)},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function a(e){return 3*e.length/4-n(e)}function o(e){var t,r,a,o,s,i,h=e.length;s=n(e),i=new l(3*h/4-s),a=s>0?h-4:h;var c=0;for(t=0,r=0;t<a;t+=4,r+=3)o=u[e.charCodeAt(t)]<<18|u[e.charCodeAt(t+1)]<<12|u[e.charCodeAt(t+2)]<<6|u[e.charCodeAt(t+3)],i[c++]=o>>16&255,i[c++]=o>>8&255,i[c++]=255&o;return 2===s?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,i[c++]=255&o):1===s&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,i[c++]=o>>8&255,i[c++]=255&o),i}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function i(e,t,r){for(var n,a=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(s(n));return a.join("")}function h(e){for(var t,r=e.length,n=r%3,a="",o=[],s=0,h=r-n;s<h;s+=16383)o.push(i(e,s,s+16383>h?h:s+16383));return 1===n?(t=e[r-1],a+=c[t>>2],a+=c[t<<4&63],a+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],a+=c[t>>10],a+=c[t>>4&63],a+=c[t<<2&63],a+="="),o.push(a),o.join("")}t.byteLength=a,t.toByteArray=o,t.fromByteArray=h;for(var c=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=f.length;p<d;++p)c[p]=f[p],u[f.charCodeAt(p)]=p;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,a){var o,s,i=8*a-n-1,h=(1<<i)-1,c=h>>1,u=-7,l=r?a-1:0,f=r?-1:1,p=e[t+l];for(l+=f,o=p&(1<<-u)-1,p>>=-u,u+=i;u>0;o=256*o+e[t+l],l+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+l],l+=f,u-=8);if(0===o)o=1-c;else{if(o===h)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var s,i,h,c=8*o-a-1,u=(1<<c)-1,l=u>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-s))<1&&(s--,h*=2),(t+=s+l>=1?f/h:f*Math.pow(2,1-l))*h>=2&&(s++,h/=2),s+l>=u?(i=0,s=u):s+l>=1?(i=(t*h-1)*Math.pow(2,a),s+=l):(i=t*Math.pow(2,l-1)*Math.pow(2,a),s=0));a>=8;e[r+p]=255&i,p+=d,i/=256,a-=8);for(s=s<<a|i,c+=a;c>0;e[r+p]=255&s,p+=d,s/=256,c-=8);e[r+p-d]|=128*g}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){(function(e){"use strict;";var n=this,a=r(4),o="UTF16BE",s="UTF32BE",i=function(e){e.type="UTF8";var t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)},h=function(e){var t=e.data;switch(e.bom=0,e.type){case"UTF16":e.type=o,t.length>=2&&(254===t[0]&&255===t[1]?e.bom=2:255===t[0]&&254===t[1]&&(e.type="UTF16LE",e.bom=2));break;case o:if(e.type=o,t.length>=2)if(254===t[0]&&255===t[1])e.bom=2;else if(255===t[0]&&254===t[1])throw new TypeError('src type: "UTF16BE" specified but BOM is for "UTF16LE"');break;case"UTF16LE":if(e.type="UTF16LE",t.length>=0){if(254===t[0]&&255===t[1])throw new TypeError('src type: "UTF16LE" specified but BOM is for "UTF16BE"');255===t[0]&&254===t[1]&&(e.bom=2)}break;default:throw new TypeError('UTF16 BOM: src type "'+e.type+'" unrecognized')}},c=function(e){var t=e.data;switch(e.bom=0,e.type){case"UTF32":e.type=s,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.type="UTF32LE",e.bom=4));break;case s:if(e.type=s,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]))throw new TypeError('src type: UTF32BE specified but BOM is for UTF32LE"');break;case"UTF32LE":if(e.type="UTF32LE",t.length>=4){if(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3])throw new TypeError('src type: "UTF32LE" specified but BOM is for "UTF32BE"');255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw new TypeError('UTF32 BOM: src type "'+e.type+'" unrecognized')}},u=function(t,r){if("string"!=typeof t||""===t)throw new TypeError('type: "'+t+'" not recognized');var n=function(e){var t={type:"",base64:!1},r=/^(base64:)?([a-zA-Z0-9]+)$/i.exec(e);return r&&(r[2]&&(t.type=r[2].toUpperCase()),r[1]&&(t.base64=!0)),t}(t.toUpperCase());if(n.base64){if("STRING"===n.type)throw new TypeError('type: "'+t+' "BASE64:" prefix not allowed with type STRING');if(e.isBuffer(r))n.data=a.base64.decode(r);else{if("string"!=typeof r)throw new TypeError('type: "'+t+" unrecognized data type: typeof(data): "+typeof r);var u=e.from(r,"ascii");n.data=a.base64.decode(u)}}else n.data=r;switch(n.type){case"UTF8":i(n);break;case"UTF16":case o:case"UTF16LE":h(n);break;case"UTF32":case s:case"UTF32LE":c(n);break;case"UINT16":n.type="UINT16BE";break;case"UINT32":n.type="UINT32BE";break;case"ASCII":n.type="UINT7";break;case"BINARY":n.type="UINT8";break;case"UINT7":case"UINT8":case"UINT16LE":case"UINT16BE":case"UINT32LE":case"UINT32BE":case"STRING":case"ESCAPED":break;default:throw new TypeError('type: "'+t+'" not recognized')}if("STRING"===n.type){if("string"!=typeof n.data)throw new TypeError('type: "'+t+'" but data is not a string')}else if(!e.isBuffer(n.data))throw new TypeError('type: "'+t+'" but data is not a Buffer');return n},l=function(e,t){if(!Array.isArray(t))throw new TypeError('dst chars: not array: "'+typeof t);if("string"!=typeof e)throw new TypeError('dst type: not string: "'+typeof e);switch(ret=function(e){for(var t,r,n={crlf:!1,lf:!1,base64:!1,type:""};;){if(r=e,"CRLF:"===(t=e.slice(0,5))){n.crlf=!0,r=e.slice(5);break}if("LF:"===(t=e.slice(0,3))){n.lf=!0,r=e.slice(3);break}break}return t=r.split(":"),1===t.length?n.type=t[0]:2===t.length&&"BASE64"===t[1]&&(n.base64=!0,n.type=t[0]),n}(e.toUpperCase()),ret.type){case"UTF8":case o:case"UTF16LE":case s:case"UTF32LE":case"UINT7":case"UINT8":case"UINT16LE":case"UINT16BE":case"UINT32LE":case"UINT32BE":case"ESCAPED":break;case"STRING":if(ret.base64)throw new TypeError('":BASE64" suffix not allowed with type STRING');break;case"ASCII":ret.type="UINT7";break;case"BINARY":ret.type="UINT8";break;case"UTF16":ret.type=o;break;case"UTF32":ret.type=s;break;case"UINT16":ret.type="UINT16BE";break;case"UINT32":ret.type="UINT32BE";break;default:throw new TypeError('dst type unrecognized: "'+e+'" : must have form [crlf:|lf:]type[:base64]')}return ret},f=function(e,t){switch(e){case"UTF8":return a.utf8.encode(t);case o:return a.utf16be.encode(t);case"UTF16LE":return a.utf16le.encode(t);case s:return a.utf32be.encode(t);case"UTF32LE":return a.utf32le.encode(t);case"UINT7":return a.uint7.encode(t);case"UINT8":return a.uint8.encode(t);case"UINT16BE":return a.uint16be.encode(t);case"UINT16LE":return a.uint16le.encode(t);case"UINT32BE":return a.uint32be.encode(t);case"UINT32LE":return a.uint32le.encode(t);case"STRING":return a.string.encode(t);case"ESCAPED":return a.escaped.encode(t);default:throw new TypeError('encode type "'+e+'" not recognized')}},p=function(e){switch(e.type){case"UTF8":return a.utf8.decode(e.data,e.bom);case"UTF16LE":return a.utf16le.decode(e.data,e.bom);case o:return a.utf16be.decode(e.data,e.bom);case s:return a.utf32be.decode(e.data,e.bom);case"UTF32LE":return a.utf32le.decode(e.data,e.bom);case"UINT7":return a.uint7.decode(e.data);case"UINT8":return a.uint8.decode(e.data);case"UINT16BE":return a.uint16be.decode(e.data);case"UINT16LE":return a.uint16le.decode(e.data);case"UINT32BE":return a.uint32be.decode(e.data);case"UINT32LE":return a.uint32le.decode(e.data);case"STRING":return a.string.decode(e.data);case"ESCAPED":return a.escaped.decode(e.data);default:throw new TypeError('decode type "'+e.type+'" not recognized')}};t.decode=function(e,t){var r=u(e,t);return p(r)},t.encode=function(e,t){var r,n,o=l(e,t);return o.crlf?(r=a.lineEnds.crlf(t),n=f(o.type,r)):o.lf?(r=a.lineEnds.lf(t),n=f(o.type,r)):n=f(o.type,t),o.base64&&(n=a.base64.encode(n)),n},t.convert=function(e,t,r){return n.encode(r,n.decode(e,t))}}).call(t,r(3).Buffer)},function(e,t,r){"use strict";t.converter=r(12),t.transformers=r(4)},function(e,t,r){e.exports=function(){"use strict";function e(e){for(var t="",r=0;r<e;r+=1)t+=" ";return t}var t=r(0),n=r(1),a=this,o=null,s=null,i=null,h=0,c=[],u=[],l=[],f=[];this.callbacks=[],this.astObject="astObject",this.init=function(e,t,r){l.length=0,f.length=0,c.length=0,h=0,o=e,s=t,i=r;var n,p=[];for(n=0;n<o.length;n+=1)p.push(o[n].lower);for(n=0;n<s.length;n+=1)p.push(s[n].lower);for(h=o.length+s.length,n=0;n<h;n+=1)c[n]=!1,u[n]=null;for(var d in a.callbacks){var g=d.toLowerCase();if((n=p.indexOf(g))<0)throw new Error("ast.js: init: node '"+d+"' not a rule or udt name");"function"==typeof a.callbacks[d]&&(c[n]=!0,u[n]=a.callbacks[d]),!0===a.callbacks[d]&&(c[n]=!0)}},this.ruleDefined=function(e){return!1!==c[e]},this.udtDefined=function(e){return!1!==c[o.length+e]},this.down=function(e,r){var n=f.length;return l.push(n),f.push({name:r,thisIndex:n,thatIndex:null,state:t.SEM_PRE,callbackIndex:e,phraseIndex:null,phraseLength:null,stack:l.length}),n},this.up=function(e,r,n,a){var o=f.length,s=l.pop();return f.push({name:r,thisIndex:o,thatIndex:s,state:t.SEM_POST,callbackIndex:e,phraseIndex:n,phraseLength:a,stack:l.length}),f[s].thatIndex=o,f[s].phraseIndex=n,f[s].phraseLength=a,o},this.translate=function(e){for(var r,n,a=0;a<f.length;a+=1)n=f[a],r=u[n.callbackIndex],n.state===t.SEM_PRE?null!==r&&r(t.SEM_PRE,i,n.phraseIndex,n.phraseLength,e)===t.SEM_SKIP&&(a=n.thatIndex):null!==r&&r(t.SEM_POST,i,n.phraseIndex,n.phraseLength,e)},this.setLength=function(e){f.length=e,l.length=e>0?f[e-1].stack:0},this.getLength=function(){return f.length},this.toXml=function(r){var a=n.charsToDec,o="decimal integer character codes";"string"==typeof r&&r.length>=3&&("asc"===(r=r.slice(0,3).toLowerCase())?(a=n.charsToAscii,o="ASCII for printing characters, hex for non-printing"):"hex"===r?(a=n.charsToHex,o="hexidecimal integer character codes"):"uni"===r&&(a=n.charsToUnicode,o="Unicode UTF-32 integer character codes"));var s="",h=0;return s+='<?xml version="1.0" encoding="utf-8"?>\n',s+='<root nodes="'+f.length/2+'" characters="'+i.length+'">\n',s+="\x3c!-- input string, "+o+" --\x3e\n",s+=e(h+2),s+=a(i),s+="\n",f.forEach(function(r,n){r.state===t.SEM_PRE?(s+=e(h+=1),s+='<node name="'+r.name+'" index="'+r.phraseIndex+'" length="'+r.phraseLength+'">\n',s+=e(h+2),s+=a(i,r.phraseIndex,r.phraseLength),s+="\n"):(s+=e(h),s+='</node>\x3c!-- name="'+r.name+'" --\x3e\n',h-=1)}),s+="</root>\n"},this.phrases=function(){var e,r,n={};for(e=0;e<f.length;e+=1)(r=f[e]).state===t.SEM_PRE&&(Array.isArray(n[r.name])||(n[r.name]=[]),n[r.name].push({index:r.phraseIndex,length:r.phraseLength}));return n}}},function(e,t,r){e.exports=function(){"use strict";var e=this,t=r(0),n=r(1);this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];var a,o,s,i,h=0,c=null,u=null,l=0,f=0,p=0,d=null,g=null,b=null,T=null,A=null,E=0,m=1/0,w=1/0,y=function(e,r,n){var a;if(e>=b.length)throw new Error("parser.js: evaluateRule(): rule index: "+e+" out of range");if(r>=s)throw new Error("parser.js: evaluateRule(): phrase index: "+r+" out of range");a=c.length,c.push({type:t.RNM,index:e}),ie(a,r,n),c.pop()},v=function(e,r,n){var a;if(e>=T.length)throw new Error("parser.js: evaluateUdt(): udt index: "+e+" out of range");if(r>=s)throw new Error("parser.js: evaluateUdt(): phrase index: "+r+" out of range");a=c.length,c.push({type:t.UDT,empty:T[e].empty,index:e}),ie(a,r,n),c.pop()},C=function(){h=0,l=0,f=0,p=0,E=0,i=[{lookAround:t.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],b=null,T=null,u=null,a=0,o=0,s=0,d=null,g=null,A=null,c=null},S=function(){var e=[],t=function(){var t=e[e.length-1],r={};for(var n in t)r[n]=t[n];return r};this.push=function(){e.push(t())},this.pop=function(t){if(t||(t=e.length-1),t<1||t>e.length)throw new Error("parser.js: backRef.pop(): bad length: "+t);return e.length=t,e[e.length-1]},this.length=function(){return e.length},this.savePhrase=function(t,r,n){e[e.length-1][t]={phraseIndex:r,phraseLength:n}},this.getPhrase=function(t){return e[e.length-1][t]},function(){var t={};b.forEach(function(e){e.isBkr&&(t[e.lower]=null)}),T.length>0&&T.forEach(function(e){e.isBkr&&(t[e.lower]=null)}),e.push(t)}()},L=function(){var e=this;this.state=t.ACTIVE,this.phraseLength=0,this.lookAround=i[i.length-1],this.uFrame=new S,this.pFrame=new S,this.evaluateRule=y,this.evaluateUdt=v,this.refresh=function(){e.state=t.ACTIVE,e.phraseLength=0,e.lookAround=i[i.length-1]}},M=function(){return i[i.length-1]},R=function(){return i.length>1},N=function(){return i[i.length-1].lookAround===t.LOOKAROUND_BEHIND},k=function(){for(;;){if(void 0===e.ast){e.ast=null;break}if(null===e.ast)break;if("astObject"!==e.ast.astObject)throw new Error("parser.js: initializeAst(): ast object not recognized");break}null!==e.ast&&e.ast.init(b,T,u)},B=function(){for(;;){if(void 0===e.trace){e.trace=null;break}if(null===e.trace)break;if("traceObject"!==e.trace.traceObject)throw new Error("parser.js: initializeTrace(): trace object not recognized");break}null!==e.trace&&e.trace.init(b,T,u)},x=function(){for(;;){if(void 0===e.stats){e.stats=null;break}if(null===e.stats)break;if("statsObject"!==e.stats.statsObject)throw new Error("parser.js: initializeStats(): stats object not recognized");break}null!==e.stats&&e.stats.init(b,T)},U=function(e){if(!e)throw new Error("parser.js: initializeGrammar(): grammar object undefined");if("grammarObject"!==e.grammarObject)throw new Error("parser.js: initializeGrammar(): bad grammar object");b=e.rules,T=e.udts},O=function(e){var t="parser.js: initializeStartRule(): ",r=null;if("number"==typeof e){if(e>=b.length)throw new Error(t+"start rule index too large: max: "+b.length+": index: "+e);r=e}else{if("string"!=typeof e)throw new Error(t+"type of start rule '"+typeof e+"' not recognized");for(var n=e.toLowerCase(),a=0;a<b.length;a+=1)if(n===b[a].lower){r=b[a].index;break}if(null===r)throw new Error(t+"start rule name '"+e+"' not recognized")}return r},_=function(e,t,r){var i="parser.js: initializeInputChars(): ";if(void 0===e)throw new Error(i+"input string is undefined");if(null===e)throw new Error(i+"input string is null");if("string"==typeof e)e=n.stringToChars(e);else if(!Array.isArray(e))throw new Error(i+"input string is not a string or array");if(e.length>0&&"number"!=typeof e[0])throw new Error(i+"input string not an array of integers");if("number"!=typeof t)t=0;else if((t=Math.floor(t))<0||t>e.length)throw new Error(i+"input beginning index out of range: "+t);if("number"!=typeof r)r=e.length-t;else if((r=Math.floor(r))<0||r>e.length-t)throw new Error(i+"input length out of range: "+r);u=e,s=(a=t)+(o=r)},I=function(){var t,r="parser.js: initializeCallbacks(): ";for(d=[],g=[],t=0;t<b.length;t+=1)d[t]=null;for(t=0;t<T.length;t+=1)g[t]=null;var n,a=[];for(t=0;t<b.length;t+=1)a.push(b[t].lower);for(t=0;t<T.length;t+=1)a.push(T[t].lower);for(var o in e.callbacks){if((t=a.indexOf(o.toLowerCase()))<0)throw new Error(r+"syntax callback '"+o+"' not a rule or udt name");if((n=e.callbacks[o])||(n=null),"function"!=typeof n&&null!==n)throw new Error(r+"syntax callback["+o+"] must be function reference or 'false' (false/null/undefined/etc.)");t<b.length?d[t]=n:g[t-b.length]=n}for(t=0;t<T.length;t+=1)if(null===g[t])throw new Error(r+"all UDT callbacks must be defined. UDT callback["+T[t].lower+"] not a function reference")};this.setMaxTreeDepth=function(e){if("number"!=typeof e)throw new Error("parser: max tree depth must be integer > 0: "+e);if((m=Math.floor(e))<=0)throw new Error("parser: max tree depth must be integer > 0: "+e)},this.setMaxNodeHits=function(e){if("number"!=typeof e)throw new Error("parser: max node hits must be integer > 0: "+e);if((w=Math.floor(e))<=0)throw new Error("parser: max node hits must be integer > 0: "+e)},this.parse=function(e,t,r,n){return C(),_(r,0,r.length),D(e,t,n)},this.parseSubstring=function(e,t,r,n,a,o){return C(),_(r,n,a),D(e,t,o)};var D=function(e,r,n){var i,h;switch("parser.js: parse(): ",U(e),r=O(r),I(),B(),x(),k(),i=new L,void 0!==n&&null!==n&&(A=n),c=[{type:t.RNM,index:r}],ie(0,a,i),c=null,i.state){case t.ACTIVE:throw new Error("parser.js: parse(): final state should never be 'ACTIVE'");case t.NOMATCH:h=!1;break;case t.EMPTY:case t.MATCH:h=i.phraseLength===o}return{success:h,state:i.state,length:o,matched:i.phraseLength,maxMatched:E,maxTreeDepth:f,nodeHits:p,inputLength:u.length,subBegin:a,subEnd:s,subLength:o}},P=function(e,r,n){for(var a=c[e],o=0;o<a.children.length&&(ie(a.children[o],r,n),n.state===t.NOMATCH);o+=1);},H=function(r,n,a){var o,s,i,h,u;o=c[r];var l=a.uFrame.length(),f=a.pFrame.length();e.ast&&(i=e.ast.getLength()),s=!0,h=n,u=0;for(var p=0;p<o.children.length;p+=1){if(ie(o.children[p],h,a),a.state===t.NOMATCH){s=!1;break}h+=a.phraseLength,u+=a.phraseLength}s?(a.state=0===u?t.EMPTY:t.MATCH,a.phraseLength=u):(a.state=t.NOMATCH,a.phraseLength=0,a.uFrame.pop(l),a.pFrame.pop(f),e.ast&&e.ast.setLength(i))},F=function(r,n,a){var o,i,h,u,l;o=c[r],h=n,u=0,l=0;var f=a.uFrame.length(),p=a.pFrame.length();for(e.ast&&(i=e.ast.getLength());;){if(h>=s)break;if(ie(r+1,h,a),a.state===t.NOMATCH)break;if(a.state===t.EMPTY)break;if(l+=1,u+=a.phraseLength,h+=a.phraseLength,l===o.max)break}a.state===t.EMPTY?(a.state=0===u?t.EMPTY:t.MATCH,a.phraseLength=u):l>=o.min?(a.state=0===u?t.EMPTY:t.MATCH,a.phraseLength=u):(a.state=t.NOMATCH,a.phraseLength=0,a.uFrame.pop(f),a.pFrame.pop(p),e.ast&&e.ast.setLength(i))},Y=function(e,r,n,a){if(r.phraseLength>n){var o="parser.js: opRNM("+e.name+"): callback function error: ";throw o+="sysData.phraseLength: "+r.phraseLength,o+=" must be <= remaining chars: "+n,new Error(o)}switch(r.state){case t.ACTIVE:if(!0!==a)throw new Error("parser.js: opRNM("+e.name+"): callback function return error. ACTIVE state not allowed.");break;case t.EMPTY:r.phraseLength=0;break;case t.MATCH:0===r.phraseLength&&(r.state=t.EMPTY);break;case t.NOMATCH:r.phraseLength=0;break;default:throw new Error("parser.js: opRNM("+e.name+"): callback function return error. Unrecognized return state: "+r.state)}},K=function(r,n,a){var o,i,h,l,f,p,g,T,E;o=c[r],i=b[o.index],h=d[o.index];var m=!R();if(m&&((f=e.ast&&e.ast.ruleDefined(o.index))&&(l=e.ast.getLength(),e.ast.down(o.index,b[o.index].name)),g=a.uFrame.length(),T=a.pFrame.length(),a.uFrame.push(),a.pFrame.push(),E=a.pFrame,a.pFrame=new S),null===h)p=c,c=i.opcodes,ie(0,n,a),c=p;else{var w=s-n;h(a,u,n,A),Y(i,a,w,!0),a.state===t.ACTIVE&&(p=c,c=i.opcodes,ie(0,n,a),c=p,h(a,u,n,A),Y(i,a,w,!1))}m&&(f&&(a.state===t.NOMATCH?e.ast.setLength(l):e.ast.up(o.index,b[o.index].name,n,a.phraseLength)),a.pFrame=E,a.state===t.NOMATCH?(a.uFrame.pop(g),a.pFrame.pop(T)):b[o.index].isBkr&&(a.pFrame.savePhrase(b[o.index].lower,n,a.phraseLength),a.uFrame.savePhrase(b[o.index].lower,n,a.phraseLength)))},j=function(e,r,n){if(r.phraseLength>n){var a="parser.js: opUDT("+e.name+"): callback function error: ";throw a+="sysData.phraseLength: "+r.phraseLength,a+=" must be <= remaining chars: "+n,new Error(a)}switch(r.state){case t.ACTIVE:throw new Error("parser.js: opUDT("+e.name+"): callback function return error. ACTIVE state not allowed.");case t.EMPTY:if(!1===e.empty)throw new Error("parser.js: opUDT("+e.name+"): callback function return error. May not return EMPTY.");r.phraseLength=0;break;case t.MATCH:if(0===r.phraseLength){if(!1===e.empty)throw new Error("parser.js: opUDT("+e.name+"): callback function return error. May not return EMPTY.");r.state=t.EMPTY}break;case t.NOMATCH:r.phraseLength=0;break;default:throw new Error("parser.js: opUDT("+e.name+"): callback function return error. Unrecognized return state: "+r.state)}},z=function(r,n,a){var o,i,h,l,f,p,d;h=c[r];var E=!R();E&&((l=e.ast&&e.ast.udtDefined(h.index))&&(i=b.length+h.index,o=e.ast.getLength(),e.ast.down(i,T[h.index].name)),f=a.uFrame.length(),p=a.pFrame.length(),a.uFrame.push(),a.pFrame.push(),d=a.pFrame,a.pFrame=new S);var m=s-n;g[h.index](a,u,n,A),j(T[h.index],a,m),E&&(l&&(a.state===t.NOMATCH?e.ast.setLength(o):e.ast.up(i,T[h.index].name,n,a.phraseLength)),a.pFrame=d,a.state===t.NOMATCH?(a.uFrame.pop(f),a.pFrame.pop(p)):T[h.index].isBkr&&(a.pFrame.savePhrase((void 0)[h.index].lower,n,a.phraseLength),a.uFrame.savePhrase((void 0)[h.index].lower,n,a.phraseLength)))},G=function(e,r,n){i.push({lookAround:t.LOOKAROUND_AHEAD,anchor:r,charsEnd:s,charsLength:o}),s=u.length,o=u.length-a,ie(e+1,r,n);var h=i.pop();switch(s=h.charsEnd,o=h.charsLength,n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.EMPTY;break;case t.NOMATCH:n.state=t.NOMATCH;break;default:throw new Error("opAND: invalid state "+n.state)}},V=function(e,r,n){i.push({lookAround:t.LOOKAROUND_AHEAD,anchor:r,charsEnd:s,charsLength:o}),s=u.length,o=u.length-a,ie(e+1,r,n);var h=i.pop();switch(s=h.charsEnd,o=h.charsLength,n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.NOMATCH;break;case t.NOMATCH:n.state=t.EMPTY;break;default:throw new Error("opNOT: invalid state "+n.state)}},q=function(e,r,n){var a=c[e];n.state=t.NOMATCH,r<s&&a.min<=u[r]&&u[r]<=a.max&&(n.state=t.MATCH,n.phraseLength=1)},X=function(e,r,n){var a,o,i;if(o=c[e],i=o.string.length,n.state=t.NOMATCH,r+i<=s){for(a=0;a<i;a+=1)if(u[r+a]!==o.string[a])return;n.state=t.MATCH,n.phraseLength=i}},J=function(e,r,n){var a,o,i,h;if(h=c[e],n.state=t.NOMATCH,0!==(i=h.string.length)){if(r+i<=s){for(a=0;a<i;a+=1)if((o=u[r+a])>=65&&o<=90&&(o+=32),o!==h.string[a])return;n.state=t.MATCH,n.phraseLength=i}}else n.state=t.EMPTY},Z=function(e,r,n){n.state=t.NOMATCH,n.phraseLength=0,n.state=0===r?t.EMPTY:t.NOMATCH},Q=function(e,r,n){n.state=t.NOMATCH,n.phraseLength=0,n.state=r===u.length?t.EMPTY:t.NOMATCH},W=function(e,r,n){var a,o,i,h,l,f,p,d,g;if(h=c[e],n.state=t.NOMATCH,p=h.index<b.length?b[h.index].lower:T[h.index-b.length].lower,d=h.bkrMode===t.BKR_MODE_PM?n.pFrame.getPhrase(p):n.uFrame.getPhrase(p),g=h.bkrCase===t.BKR_MODE_CI,null!==d)if(l=d.phraseIndex,0!==(i=d.phraseLength)){if(r+i<=s){if(g){for(a=0;a<i;a+=1)if(o=u[r+a],f=u[l+a],o>=65&&o<=90&&(o+=32),f>=65&&f<=90&&(f+=32),o!==f)return;n.state=t.MATCH,n.phraseLength=i}else for(a=0;a<i;a+=1)if(o=u[r+a],f=u[l+a],o!==f)return;n.state=t.MATCH,n.phraseLength=i}}else n.state=t.EMPTY},$=function(e,r,n){switch(c[e],i.push({lookAround:t.LOOKAROUND_BEHIND,anchor:r}),ie(e+1,r,n),i.pop(),n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.EMPTY;break;case t.NOMATCH:n.state=t.NOMATCH;break;default:throw new Error("opBKA: invalid state "+n.state)}},ee=function(e,r,n){switch(c[e],i.push({lookAround:t.LOOKAROUND_BEHIND,anchor:r}),ie(e+1,r,n),i.pop(),n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.NOMATCH;break;case t.NOMATCH:n.state=t.EMPTY;break;default:throw new Error("opBKN: invalid state "+n.state)}},te=function(r,n,a){var o,s,i,h,u,l,f,p;o=c[r],f=a.uFrame.length(),p=a.pFrame.length(),e.ast&&(i=e.ast.getLength()),s=!0,h=n,l=0,u=0;for(var d=o.children.length-1;d>=0;d-=1)if(ie(o.children[d],h,a),h-=a.phraseLength,l+=a.phraseLength,u+=a.phraseLength,a.state===t.NOMATCH){s=!1;break}s?(a.state=0===l?t.EMPTY:t.MATCH,a.phraseLength=l):(a.state=t.NOMATCH,a.phraseLength=0,a.uFrame.pop(f),a.pFrame.pop(p),e.ast&&e.ast.setLength(i))},re=function(r,n,a){var o,s,i,h,u,l,f;for(o=c[r],i=n,h=0,u=0,l=a.uFrame.length(),f=a.pFrame.length(),e.ast&&(s=e.ast.getLength());;){if(i<=0)break;if(ie(r+1,i,a),a.state===t.NOMATCH)break;if(a.state===t.EMPTY)break;if(u+=1,h+=a.phraseLength,i-=a.phraseLength,u===o.max)break}a.state===t.EMPTY?(a.state=0===h?t.EMPTY:t.MATCH,a.phraseLength=h):u>=o.min?(a.state=0===h?t.EMPTY:t.MATCH,a.phraseLength=h):(a.state=t.NOMATCH,a.phraseLength=0,a.uFrame.pop(l),a.pFrame.pop(f),e.ast&&e.ast.setLength(s))},ne=function(e,r,n){var a=c[e];if(n.state=t.NOMATCH,n.phraseLength=0,r>0){var o=u[r-1];a.min<=o&&o<=a.max&&(n.state=t.MATCH,n.phraseLength=1)}},ae=function(e,r,n){var a,o,s,i;if(o=c[e],n.state=t.NOMATCH,s=o.string.length,(i=r-s)>=0){for(a=0;a<s;a+=1)if(u[i+a]!==o.string[a])return;n.state=t.MATCH,n.phraseLength=s}},oe=function(e,r,n){var a,o,s,i;if(a=c[e],n.state=t.NOMATCH,0!==(i=a.string.length)){if((s=r-i)>=0){for(var h=0;h<i;h+=1)if((o=u[s+h])>=65&&o<=90&&(o+=32),o!==a.string[h])return;n.state=t.MATCH,n.phraseLength=i}}else n.state=t.EMPTY},se=function(e,r,n){var a,o,s,i,h,l,f,p,d,g;if(i=c[e],n.state=t.NOMATCH,n.phraseLength=0,f=i.index<b.length?b[i.index].lower:T[i.index-b.length].lower,d=i.bkrMode===t.BKR_MODE_PM?n.pFrame.getPhrase(f):n.uFrame.getPhrase(f),g=i.bkrCase===t.BKR_MODE_CI,null!==d){if(h=d.phraseIndex,0===(s=d.phraseLength))return n.state=t.EMPTY,void(n.phraseLength=0);if((p=r-s)>=0){if(g){for(a=0;a<s;a+=1)if(o=u[p+a],l=u[h+a],o>=65&&o<=90&&(o+=32),l>=65&&l<=90&&(l+=32),o!==l)return;n.state=t.MATCH,n.phraseLength=s}else for(a=0;a<s;a+=1)if(o=u[p+a],l=u[h+a],o!==l)return;n.state=t.MATCH,n.phraseLength=s}}},ie=function(r,n,a){var o,s=!0;if(o=c[r],(p+=1)>w)throw new Error("parser: maximum number of node hits exceeded: "+w);if((l+=1)>f&&(f=l)>m)throw new Error("parser: maximum parse tree depth exceeded: "+m);if(a.refresh(),null!==e.trace){i=M();e.trace.down(o,a.state,n,a.phraseLength,i.anchor,i.lookAround)}if(N())switch(o.type){case t.ALT:P(r,n,a);break;case t.CAT:te(r,n,a);break;case t.REP:re(r,n,a);break;case t.RNM:K(r,n,a);break;case t.UDT:z(r,n,a);break;case t.AND:G(r,n,a);break;case t.NOT:V(r,n,a);break;case t.TRG:ne(r,n,a);break;case t.TBS:ae(r,n,a);break;case t.TLS:oe(r,n,a);break;case t.BKR:se(r,n,a);break;case t.BKA:$(r,n,a);break;case t.BKN:ee(r,n,a);break;case t.ABG:Z(0,n,a);break;case t.AEN:Q(0,n,a);break;default:s=!1}else switch(o.type){case t.ALT:P(r,n,a);break;case t.CAT:H(r,n,a);break;case t.REP:F(r,n,a);break;case t.RNM:K(r,n,a);break;case t.UDT:z(r,n,a);break;case t.AND:G(r,n,a);break;case t.NOT:V(r,n,a);break;case t.TRG:q(r,n,a);break;case t.TBS:X(r,n,a);break;case t.TLS:J(r,n,a);break;case t.BKR:W(r,n,a);break;case t.BKA:$(r,n,a);break;case t.BKN:ee(r,n,a);break;case t.ABG:Z(0,n,a);break;case t.AEN:Q(0,n,a);break;default:s=!1}if(!R()&&n+a.phraseLength>E&&(E=n+a.phraseLength),null!==e.stats&&e.stats.collect(o,a),null!==e.trace){var i=M();e.trace.up(o,a.state,n,a.phraseLength,i.anchor,i.lookAround)}return l-=1,s}}},function(e,t,r){e.exports=function(){"use strict";var e,t=r(0),n=r(1),a=r(2),o=[],s=[],i=[],h=[],c=[];this.statsObject="statsObject";var u=function(e,t){return e.lower<t.lower?-1:e.lower>t.lower?1:0},l=function(e,t){return e.total<t.total?1:e.total>t.total?-1:u(e,t)},f=function(e,t){return e.index<t.index?-1:e.index>t.index?1:0},p=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},d=function(){i.length=0,e=new p,i[t.ALT]=new p,i[t.CAT]=new p,i[t.REP]=new p,i[t.RNM]=new p,i[t.TRG]=new p,i[t.TBS]=new p,i[t.TLS]=new p,i[t.UDT]=new p,i[t.AND]=new p,i[t.NOT]=new p,i[t.BKR]=new p,i[t.BKA]=new p,i[t.BKN]=new p,i[t.ABG]=new p,i[t.AEN]=new p,h.length=0;for(r=0;r<o.length;r+=1)h.push({empty:0,match:0,nomatch:0,total:0,name:o[r].name,lower:o[r].lower,index:o[r].index});if(s.length>0){c.length=0;for(var r=0;r<s.length;r+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:s[r].name,lower:s[r].lower,index:s[r].index})}},g=function(e,r,n){switch(e.total+=1,r){case t.EMPTY:e.empty+=1;break;case t.MATCH:e.match+=1;break;case t.NOMATCH:e.nomatch+=1;break;default:throw"stats.js: collect(): incStat(): unrecognized state: "+r}},b=function(e,t){var r="";return r+="<tr>",r+='<td class="'+a.CLASS_ACTIVE+'">'+e+"</td>",r+='<td class="'+a.CLASS_EMPTY+'">'+t.empty+"</td>",r+='<td class="'+a.CLASS_MATCH+'">'+t.match+"</td>",r+='<td class="'+a.CLASS_NOMATCH+'">'+t.nomatch+"</td>",r+='<td class="'+a.CLASS_ACTIVE+'">'+t.total+"</td>",r+="</tr>\n"},T=function(){var r="";return r+=b("ALT",i[t.ALT]),r+=b("CAT",i[t.CAT]),r+=b("REP",i[t.REP]),r+=b("RNM",i[t.RNM]),r+=b("TRG",i[t.TRG]),r+=b("TBS",i[t.TBS]),r+=b("TLS",i[t.TLS]),r+=b("UDT",i[t.UDT]),r+=b("AND",i[t.AND]),r+=b("NOT",i[t.NOT]),r+=b("BKR",i[t.BKR]),r+=b("BKA",i[t.BKA]),r+=b("BKN",i[t.BKN]),r+=b("ABG",i[t.ABG]),r+=b("AEN",i[t.AEN]),r+=b("totals",e)},A=function(){var e="";e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>rules</th><th></th><th></th><th></th><th></th></tr>\n";for(t=0;t<o.length;t+=1)h[t].total>0&&(e+="<tr>",e+='<td class="'+a.CLASS_ACTIVE+'">'+h[t].name+"</td>",e+='<td class="'+a.CLASS_EMPTY+'">'+h[t].empty+"</td>",e+='<td class="'+a.CLASS_MATCH+'">'+h[t].match+"</td>",e+='<td class="'+a.CLASS_NOMATCH+'">'+h[t].nomatch+"</td>",e+='<td class="'+a.CLASS_ACTIVE+'">'+h[t].total+"</td>",e+="</tr>\n");if(s.length>0){e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>udts</th><th></th><th></th><th></th><th></th></tr>\n";for(var t=0;t<s.length;t+=1)c[t].total>0&&(e+="<tr>",e+='<td class="'+a.CLASS_ACTIVE+'">'+c[t].name+"</td>",e+='<td class="'+a.CLASS_EMPTY+'">'+c[t].empty+"</td>",e+='<td class="'+a.CLASS_MATCH+'">'+c[t].match+"</td>",e+='<td class="'+a.CLASS_NOMATCH+'">'+c[t].nomatch+"</td>",e+='<td class="'+a.CLASS_ACTIVE+'">'+c[t].total+"</td>",e+="</tr>\n")}return e};this.validate=function(e){var t=!1;return"string"==typeof e&&"stats"===e&&(t=!0),t},this.init=function(e,t){o=e,s=t,d()},this.collect=function(r,n){g(e,n.state,n.phraseLength),g(i[r.type],n.state,n.phraseLength),r.type===t.RNM&&g(h[r.index],n.state,n.phraseLength),r.type===t.UDT&&g(c[r.index],n.state,n.phraseLength)},this.toHtml=function(e,t){var r="";for(r+='<table class="'+a.CLASS_STATS+'">\n',"string"==typeof t&&(r+="<caption>"+t+"</caption>\n"),r+='<tr><th class="'+a.CLASS_ACTIVE+'">ops</th>\n',r+='<th class="'+a.CLASS_EMPTY+'">EMPTY</th>\n',r+='<th class="'+a.CLASS_MATCH+'">MATCH</th>\n',r+='<th class="'+a.CLASS_NOMATCH+'">NOMATCH</th>\n',r+='<th class="'+a.CLASS_ACTIVE+'">totals</th></tr>\n';;){if(void 0===e){r+=T();break}if(null===e){r+=T();break}if("ops"===e){r+=T();break}if("index"===e){h.sort(f),c.length>0&&c.sort(f),r+=T(),r+=A();break}if("hits"===e){h.sort(l),c.length>0&&c.sort(f),r+=T(),r+=A();break}if("alpha"===e){h.sort(u),c.length>0&&c.sort(u),r+=T(),r+=A();break}break}return r+="</table>\n"},this.toHtmlPage=function(e,t,r){return n.htmlToPage(this.toHtml(e,t),r)}}},function(e,t,r){e.exports=function(){"use strict";var e=this,t=r(1),n=r(2),a=new(r(5)),o=r(0),s=[],i=5e3,h=-1,c=0,u=0,l=[],f=null,p=null,d=null,g=[],b=[],T='<span class="'+n.CLASS_LINEEND+'">&bull;</span>',A='<span class="'+n.CLASS_LINEEND+'">&hellip;</span>',E='<span class="'+n.CLASS_EMPTY+'">&#120634;</span>',m=function(){var t=function(e){g[o.ALT]=e,g[o.CAT]=e,g[o.REP]=e,g[o.TLS]=e,g[o.TBS]=e,g[o.TRG]=e,g[o.AND]=e,g[o.NOT]=e,g[o.BKR]=e,g[o.BKA]=e,g[o.BKN]=e,g[o.ABG]=e,g[o.AEN]=e},r=0;for(var n in e.filter.operators)r+=1;if(0!==r){for(var n in e.filter.operators){if("<ALL>"===(a=n.toUpperCase()))return void t(!0);if("<NONE>"===a)return void t(!1)}t(!1);for(var n in e.filter.operators){var a=n.toUpperCase();if("ALT"===a)g[o.ALT]=!0===e.filter.operators[n];else if("CAT"===a)g[o.CAT]=!0===e.filter.operators[n];else if("REP"===a)g[o.REP]=!0===e.filter.operators[n];else if("AND"===a)g[o.AND]=!0===e.filter.operators[n];else if("NOT"===a)g[o.NOT]=!0===e.filter.operators[n];else if("TLS"===a)g[o.TLS]=!0===e.filter.operators[n];else if("TBS"===a)g[o.TBS]=!0===e.filter.operators[n];else if("TRG"===a)g[o.TRG]=!0===e.filter.operators[n];else if("BKR"===a)g[o.BKR]=!0===e.filter.operators[n];else if("BKA"===a)g[o.BKA]=!0===e.filter.operators[n];else if("BKN"===a)g[o.BKN]=!0===e.filter.operators[n];else if("ABG"===a)g[o.ABG]=!0===e.filter.operators[n];else{if("AEN"!==a)throw new Error("trace.js: initOpratorFilter: '"+n+"' not a valid operator name. Must be <all>, <none>, alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn");g[o.AEN]=!0===e.filter.operators[n]}}}else t(!1)},w=function(){var t,r,n=function(e){g[o.RNM]=e,g[o.UDT]=e;var t=p.length+d.length;b.length=0;for(var r=0;r<t;r+=1)b.push(e)},a=[];for(r=0;r<p.length;r+=1)a.push(p[r].lower);for(r=0;r<d.length;r+=1)a.push(d[r].lower);b.length=0,t=0;for(var s in e.filter.rules)t+=1;if(0!==t){for(var s in e.filter.rules){if("<all>"===(i=s.toLowerCase()))return void n(!0);if("<none>"===i)return void n(!1)}n(!1),g[o.RNM]=!0,g[o.UDT]=!0;for(var s in e.filter.rules){var i=s.toLowerCase();if((r=a.indexOf(i))<0)throw new Error("trace.js: initRuleFilter: '"+s+"' not a valid rule or udt name");b[r]=!0===e.filter.rules[s]}}else n(!0)};this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){h=-1,"number"==typeof e&&e>0?(i=Math.ceil(e),"number"==typeof t&&(h=Math.floor(t))<0&&(h=-1)):i=0},this.getMaxRecords=function(){return i},this.getLastRecord=function(){return h},this.init=function(e,t,r){s.length=0,l.length=0,c=0,u=0,f=r,p=e,d=t,m(),w(),a.init(i)};var y=function(e){return e.type===o.RNM?!(!g[e.type]||!b[e.index]):e.type===o.UDT?!(!g[e.type]||!b[p.length+e.index]):g[e.type]},v=function(e){return-1===h||e<=h};this.down=function(e,t,r,n,o,i){v(c)&&y(e)&&(l.push(c),s[a.increment()]={dirUp:!1,depth:u,thisLine:c,thatLine:void 0,opcode:e,state:t,phraseIndex:r,phraseLength:n,lookAnchor:o,lookAround:i},c+=1,u+=1)},this.up=function(e,t,r,n,o,i){if(v(c)&&y(e)){var h=c,f=l.pop(),p=a.getListIndex(f);-1!==p&&(s[p].thatLine=h),u-=1,s[a.increment()]={dirUp:!0,depth:u,thisLine:h,thatLine:f,opcode:e,state:t,phraseIndex:r,phraseLength:n,lookAnchor:o,lookAround:i},c+=1}};var C=function(e,r){function n(e,r){if(r)switch(e.op={id:r.type,name:t.opcodeToString(r.type)},e.opData=void 0,r.type){case o.RNM:e.opData=p[r.index].name;break;case o.UDT:e.opData=d[r.index].name;break;case o.BKR:var n,a,s;n=r.index<p.length?p[r.index].name:d[r.index-p.length].name,a=r.bkrCase===o.BKR_MODE_CI?"%i":"%s",s=r.bkrMode===o.BKR_MODE_UM?"%u":"%p",e.opData="\\\\"+a+s+n;break;case o.TLS:case o.TBS:e.opData=[];for(var i=0;i<r.string.length;i+=1)e.opData.push(r.string[i]);break;case o.TRG:case o.REP:e.opData=[r.min,r.max]}else e.op={id:void 0,name:void 0},e.opData=void 0}function i(e,t,r){return e===o.MATCH?{index:t,length:r}:e===o.NOMATCH?{index:t,length:0}:e===o.EMPTY?{index:t,length:0}:null}function h(e,r,a){var o={id:m++,branch:-1,parent:e,up:!1,down:!1,depth:a,children:[]};return r?(o.down=!0,o.state={id:r.state,name:t.stateToString(r.state)},o.phrase=null,n(o,r.opcode)):(o.state={id:void 0,name:void 0},o.phrase=i(),n(o,void 0)),o}function c(e,r){r&&(e.up=!0,e.state={id:r.state,name:t.stateToString(r.state)},e.phrase=i(r.state,r.phraseIndex,r.phraseLength),e.down||n(e,r.opcode))}function u(e){if(L+=1,e.branch=M,L>C&&(C=L),0===e.children.length)S+=1;else for(var t=0;t<e.children.length;t+=1)t>0&&(M+=1),e.children[t].leftMost=!1,e.children[t].rightMost=!1,e.leftMost&&(e.children[t].leftMost=0===t),e.rightMost&&(e.children[t].rightMost=t===e.children.length-1),u(e.children[t]);L-=1}function l(e,t,r){var n,a={};if(a.id=e.id,a.branch=e.branch,a.leftMost=e.leftMost,a.rightMost=e.rightMost,n=e.state.name?e.state.name:"ACTIVE",a.state={id:e.state.id,name:n},n=e.op.name?e.op.name:"?",a.op={id:e.op.id,name:n},"string"==typeof e.opData)a.opData=e.opData;else if(Array.isArray(e.opData)){a.opData=[];for(o=0;o<e.opData.length;o+=1)a.opData[o]=e.opData[o]}else a.opData=void 0;e.phrase?a.phrase={index:e.phrase.index,length:e.phrase.length}:a.phrase=null,a.depth=e.depth,a.children=[];for(var o=0;o<e.children.length;o+=1){var s=o!==e.children.length-1;a.children[o]=l(e.children[o],t,s)}return a}var g,b,T,A,E,m=-1,w=[],y=!0;for(T=h(null,null,-1),w.push(T),b=T,a.forEach(function(e,t){if(E=s[e],y&&(y=!1,E.depth>0))for(var r=E.dirUp?E.depth+1:E.depth,n=0;n<r;n+=1)A=b,b=h(b,null,n),w.push(b),A.children.push(b);E.dirUp?(c(b=w.pop(),E),b=w[w.length-1]):(A=b,b=h(b,E,E.depth),w.push(b),A.children.push(b))});w.length>1;)c(b=w.pop(),null);if(0===T.children.length)throw new Error("trace.toTree(): parse tree has no nodes");if(0===w.length)throw new Error("trace.toTree(): integrity check: dummy root node disappeared?");for(var v=g=T.children[0];g&&!g.down&&!g.up;)v=g,g=g.children[0];var C=0,S=0,L=-1,M=1;(g=v).leftMost=!0,g.rightMost=!0,u(g),g.branch=0,(e={}).string=[];for(R=0;R<f.length;R+=1)e.string[R]=f[R];e.rules=[];for(R=0;R<p.length;R+=1)e.rules[R]=p[R].name;e.udts=[];for(var R=0;R<d.length;R+=1)e.udts[R]=d[R].name;e.id={},e.id.ALT={id:o.ALT,name:"ALT"},e.id.CAT={id:o.CAT,name:"CAT"},e.id.REP={id:o.REP,name:"REP"},e.id.RNM={id:o.RNM,name:"RNM"},e.id.TLS={id:o.TLS,name:"TLS"},e.id.TBS={id:o.TBS,name:"TBS"},e.id.TRG={id:o.TRG,name:"TRG"},e.id.UDT={id:o.UDT,name:"UDT"},e.id.AND={id:o.AND,name:"AND"},e.id.NOT={id:o.NOT,name:"NOT"},e.id.BKR={id:o.BKR,name:"BKR"},e.id.BKA={id:o.BKA,name:"BKA"},e.id.BKN={id:o.BKN,name:"BKN"},e.id.ABG={id:o.ABG,name:"ABG"},e.id.AEN={id:o.AEN,name:"AEN"},e.id.ACTIVE={id:o.ACTIVE,name:"ACTIVE"},e.id.MATCH={id:o.MATCH,name:"MATCH"},e.id.EMPTY={id:o.EMPTY,name:"EMPTY"},e.id.NOMATCH={id:o.NOMATCH,name:"NOMATCH"},e.treeDepth=C,e.leafNodes=S;var N;return N=g.down?g.up?"none":"right":g.up?"left":"both",e.branchesIncomplete=N,e.tree=l(g,g.depth,!1),e};this.toTree=function(e){var t=C();return e?JSON.stringify(t):t},this.toHtml=function(e,t){var r=8;if("string"==typeof e&&e.length>=3){var n=e.toLowerCase().slice(0,3);"hex"===n?r=16:"dec"===n?r=10:"uni"===n&&(r=32)}var a="";return a+=S(r,t),a+=M(r),a+=L()},this.toHtmlPage=function(e,r,n){return t.htmlToPage(this.toHtml(e,r),n)};var S=function(e,t){var r;switch(e){case 16:r="hexidecimal";break;case 10:r="decimal";break;case 8:r="ASCII";break;case 32:r="UNICODE";break;default:throw new Error("trace.js: htmlHeader: unrecognized mode: "+e)}var a="";return a+="<p>display mode: "+r+"</p>\n",a+='<table class="'+n.CLASS_TRACE+'">\n',"string"==typeof t&&(a+="<caption>"+t+"</caption>"),a},L=function(){var e="";return e+="</table>\n",e+='<p class="'+n.CLASS_MONOSPACE+'">legend:<br>\n',e+="(a)&nbsp;-&nbsp;line number<br>\n",e+="(b)&nbsp;-&nbsp;matching line number<br>\n",e+="(c)&nbsp;-&nbsp;phrase offset<br>\n",e+="(d)&nbsp;-&nbsp;phrase length<br>\n",e+="(e)&nbsp;-&nbsp;tree depth<br>\n",e+="(f)&nbsp;-&nbsp;operator state<br>\n",e+='&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_ACTIVE+'">&darr;</span>&nbsp;&nbsp;phrase opened<br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_MATCH+'">&uarr;M</span> phrase matched<br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_EMPTY+'">&uarr;E</span> empty phrase matched<br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_NOMATCH+'">&uarr;N</span> phrase not matched<br>\n',e+="operator&nbsp;-&nbsp;ALT, CAT, REP, RNM, TRG, TLS, TBS<sup>&dagger;</sup>, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN<sup>&Dagger;</sup><br>\n",e+="phrase&nbsp;&nbsp;&nbsp;-&nbsp;up to 80 characters of the phrase being matched<br>\n",e+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_MATCH+'">matched characters</span><br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_LOOKAHEAD+'">matched characters in look ahead mode</span><br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_LOOKBEHIND+'">matched characters in look behind mode</span><br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_REMAINDER+'">remainder characters(not yet examined by parser)</span><br>\n',e+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="'+n.CLASS_CTRLCHAR+'">control characters, TAB, LF, CR, etc. (ASCII mode only)</span><br>\n',e+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;"+E+" empty string<br>\n",e+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;"+T+" end of input string<br>\n",e+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;"+A+" input string display truncated<br>\n",e+="</p>\n",e+='<p class="'+n.CLASS_MONOSPACE+'">\n',e+="<sup>&dagger;</sup>original ABNF operators:<br>\n",e+="ALT - alternation<br>\n",e+="CAT - concatenation<br>\n",e+="REP - repetition<br>\n",e+="RNM - rule name<br>\n",e+="TRG - terminal range<br>\n",e+="TLS - terminal literal string (case insensitive)<br>\n",e+="TBS - terminal binary string (case sensitive)<br>\n",e+="<br>\n",e+="<sup>&Dagger;</sup>super set SABNF operators:<br>\n",e+="UDT - user-defined terminal<br>\n",e+="AND - positive look ahead<br>\n",e+="NOT - negative look ahead<br>\n",e+="BKA - positive look behind<br>\n",e+="BKN - negative look behind<br>\n",e+="BKR - back reference<br>\n",e+="ABG - anchor - begin of input string<br>\n",e+="AEN - anchor - end of input string<br>\n",e+="</p>\n"},M=function(r){if(null===p)return"";var i,h,c,u,l,g,b="";return b+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",b+="<th>operator</th><th>phrase</th></tr>\n",a.forEach(function(a,T){var A=s[a];switch(i=A.thisLine,h=void 0!==A.thatLine?A.thatLine:"--",c=!1,u=!1,l=!1,A.lookAround===o.LOOKAROUND_AHEAD&&(c=!0,l=!0,g=A.lookAnchor),A.opcode.type!==o.AND&&A.opcode.type!==o.NOT||(c=!0,l=!0,g=A.phraseIndex),A.lookAround===o.LOOKAROUND_BEHIND&&(u=!0,l=!0,g=A.lookAnchor),A.opcode.type!==o.BKA&&A.opcode.type!==o.BKN||(u=!0,l=!0,g=A.phraseIndex),b+="<tr>",b+="<td>"+i+"</td><td>"+h+"</td>",b+="<td>"+A.phraseIndex+"</td>",b+="<td>"+A.phraseLength+"</td>",b+="<td>"+A.depth+"</td>",b+="<td>",A.state){case o.ACTIVE:b+='<span class="'+n.CLASS_ACTIVE+'">&darr;&nbsp;</span>';break;case o.MATCH:b+='<span class="'+n.CLASS_MATCH+'">&uarr;M</span>';break;case o.NOMATCH:b+='<span class="'+n.CLASS_NOMATCH+'">&uarr;N</span>';break;case o.EMPTY:b+='<span class="'+n.CLASS_EMPTY+'">&uarr;E</span>';break;default:b+='<span class="'+n.CLASS_ACTIVE+'">--</span>'}if(b+="</td>",b+="<td>",b+=e.indent(A.depth),c?b+='<span class="'+n.CLASS_LOOKAHEAD+'">':u&&(b+='<span class="'+n.CLASS_LOOKBEHIND+'">'),b+=t.opcodeToString(A.opcode.type),A.opcode.type===o.RNM&&(b+="("+p[A.opcode.index].name+") "),A.opcode.type===o.BKR){var E=A.opcode.bkrCase===o.BKR_MODE_CI?"%i":"%s",m=A.opcode.bkrMode===o.BKR_MODE_UM?"%u":"%p";b+="(\\"+E+m+p[A.opcode.index].name+") "}A.opcode.type===o.UDT&&(b+="("+d[A.opcode.index].name+") "),A.opcode.type===o.TRG&&(b+="("+R(r,A.opcode)+") "),A.opcode.type===o.TBS&&(b+="("+k(r,A.opcode)+") "),A.opcode.type===o.TLS&&(b+="("+B(r,A.opcode)+") "),A.opcode.type===o.REP&&(b+="("+N(r,A.opcode)+") "),l&&(b+="</span>"),b+="</td>",b+="<td>",b+=u?x(r,f,A.state,A.phraseIndex,A.phraseLength,g):c?U(r,f,A.state,A.phraseIndex,A.phraseLength):O(r,f,A.state,A.phraseIndex,A.phraseLength),b+="</td></tr>\n"}),b+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",b+="<th>operator</th><th>phrase</th></tr>\n",b+="</table>\n"};this.indent=function(e){for(var t="",r=0;r<e;r+=1)t+=".";return t};var R=function(e,t){var r="";if(t.type===o.TRG)if(16===e||32===e){var n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n="0"+n),r+=16===e?"%x":"U+",r+=n,(n=t.max.toString(16).toUpperCase()).length%2!=0&&(n="0"+n),r+="&ndash;"+n}else r="%d"+t.min.toString(10)+"&ndash;"+t.max.toString(10);return r},N=function(e,t){var r="";if(t.type===o.REP)if(16===e){var n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n="0"+n),r="x"+n,t.max<1/0?(n=t.max.toString(16).toUpperCase()).length%2!=0&&(n="0"+n):n="inf",r+="&ndash;"+n}else r=t.max<1/0?t.min.toString(10)+"&ndash;"+t.max.toString(10):t.min.toString(10)+"&ndash;inf";return r},k=function(e,t){var r="";if(t.type===o.TBS){var n=Math.min(t.string.length,10);if(16===e||32===e){r+=16===e?"%x":"U+";for(s=0;s<n;s+=1){var a;s>0&&(r+="."),(a=t.string[s].toString(16).toUpperCase()).length%2!=0&&(a="0"+a),r+=a}}else{r="%d";for(var s=0;s<n;s+=1)s>0&&(r+="."),r+=t.string[s].toString(10)}n<t.string.length&&(r+=A)}return r},B=function(e,r){var n="";if(r.type===o.TLS){var a=Math.min(r.string.length,5);if(16===e||10===e){var s,i,h;16===e?(n="%x",h=16):(n="%d",h=10);for(c=0;c<a;c+=1)c>0&&(n+="."),(i=r.string[c])>=97&&i<=122?n+=((s=i-32).toString(h)+"/"+i.toString(h)).toUpperCase():i>=65&&i<=90?(s=i,i+=32,n+=(s.toString(h)+"/"+i.toString(h)).toUpperCase()):n+=i.toString(h).toUpperCase();a<r.string.length&&(n+=A)}else{n='"';for(var c=0;c<a;c+=1)n+=t.asciiChars[r.string[c]];a<r.string.length&&(n+=A),n+='"'}}return n},x=function(e,t,r,a,s,i){var h,c,u,l,f="",p=T,d='<span class="'+n.CLASS_LOOKBEHIND+'">',g='<span class="'+n.CLASS_REMAINDER+'">',b=!1;switch(r){case o.EMPTY:f+=E;case o.NOMATCH:case o.MATCH:case o.ACTIVE:c=i-(h=a-s),u=i,l=t.length-u}return p=T,c>80?(c=80,p=A,l=0):c+l>80&&(p=A,l=80-c),c>0&&(f+=d,f+=I(e,t,h,c,b),f+="</span>",b=!0),l>0&&(f+=g,f+=I(e,t,u,l,b),f+="</span>"),f+p},U=function(e,t,r,a,o){var s='<span class="'+n.CLASS_LOOKAHEAD+'">';return _(e,t,r,a,o,s)},O=function(e,t,r,a,o){var s='<span class="'+n.CLASS_MATCH+'">';return _(e,t,r,a,o,s)},_=function(e,t,r,a,s,i){var h,c,u,l,f="",p=T,d='<span class="'+n.CLASS_REMAINDER+'">',g=!1;switch(r){case o.EMPTY:f+=E;case o.NOMATCH:case o.ACTIVE:h=a,c=0,u=a,l=t.length-u;break;case o.MATCH:h=a,u=a+(c=s),l=t.length-u}return p=T,c>80?(c=80,p=A,l=0):c+l>80&&(p=A,l=80-c),c>0&&(f+=i,f+=I(e,t,h,c,g),f+="</span>",g=!0),l>0&&(f+=d,f+=I(e,t,u,l,g),f+="</span>"),f+p},I=function(e,r,n,a,o){if(0===a)return"";var s="",i=o?",":"";switch(e){case 16:s=i+t.charsToHex(r,n,a);break;case 10:if(o)return","+t.charsToDec(r,n,a);s=i+t.charsToDec(r,n,a);break;case 32:s=t.charsToUnicode(r,n,a);break;case 8:default:s=t.charsToAsciiHtml(r,n,a)}return s}}},function(e,t,r){!function(){this.apglib=r(7)}()}]);
  