UNPKG

fluentreports

Version:

A simple, Fluent API for creating PDF Reports

14 lines 1.61 MB
!function(r){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).fluentReports=r()}}((function(){return function r(e,n,t){function a(o,c){if(!n[o]){if(!e[o]){var s="function"==typeof require&&require;if(!c&&s)return s(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[o]={exports:{}};e[o][0].call(l.exports,(function(r){return a(e[o][1][r]||r)}),l,l.exports,r,e,n,t)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<t.length;o++)a(t[o]);return a}({1:[function(r,e,n){},{}],2:[function(r,e,n){(function(n){(function(){"use strict";var t=r("object.assign/polyfill")(); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */function a(r,e){if(r===e)return 0;for(var n=r.length,t=e.length,a=0,i=Math.min(n,t);a<i;++a)if(r[a]!==e[a]){n=r[a],t=e[a];break}return n<t?-1:t<n?1:0}function i(r){return n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(r):!(null==r||!r._isBuffer)}var o=r("util/"),c=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function l(r){return Object.prototype.toString.call(r)}function X(r){return!i(r)&&("function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(r):!!r&&(r instanceof DataView||!!(r.buffer&&r.buffer instanceof ArrayBuffer))))}var P=e.exports=g,K=/\s*function\s+([^\(\s]*)\s*/;function d(r){if(o.isFunction(r)){if(u)return r.name;var e=r.toString().match(K);return e&&e[1]}}function m(r,e){return"string"==typeof r?r.length<e?r:r.slice(0,e):r}function h(r){if(u||!o.isFunction(r))return o.inspect(r);var e=d(r);return"[Function"+(e?": "+e:"")+"]"}function f(r,e,n,t,a){throw new P.AssertionError({message:n,actual:r,expected:e,operator:t,stackStartFunction:a})}function g(r,e){r||f(r,!0,e,"==",P.ok)}function p(r,e,n,t){if(r===e)return!0;if(i(r)&&i(e))return 0===a(r,e);if(o.isDate(r)&&o.isDate(e))return r.getTime()===e.getTime();if(o.isRegExp(r)&&o.isRegExp(e))return r.source===e.source&&r.global===e.global&&r.multiline===e.multiline&&r.lastIndex===e.lastIndex&&r.ignoreCase===e.ignoreCase;if(null!==r&&"object"==typeof r||null!==e&&"object"==typeof e){if(X(r)&&X(e)&&l(r)===l(e)&&!(r instanceof Float32Array||r instanceof Float64Array))return 0===a(new Uint8Array(r.buffer),new Uint8Array(e.buffer));if(i(r)!==i(e))return!1;var c=(t=t||{actual:[],expected:[]}).actual.indexOf(r);return-1!==c&&c===t.expected.indexOf(e)||(t.actual.push(r),t.expected.push(e),function(r,e,n,t){if(null==r||null==e)return!1;if(o.isPrimitive(r)||o.isPrimitive(e))return r===e;if(n&&Object.getPrototypeOf(r)!==Object.getPrototypeOf(e))return!1;var a=y(r),i=y(e);if(a&&!i||!a&&i)return!1;if(a)return p(r=s.call(r),e=s.call(e),n);var c,u,l=b(r),X=b(e);if(l.length!==X.length)return!1;for(l.sort(),X.sort(),u=l.length-1;u>=0;u--)if(l[u]!==X[u])return!1;for(u=l.length-1;u>=0;u--)if(!p(r[c=l[u]],e[c],n,t))return!1;return!0}(r,e,n,t))}return n?r===e:r==e}function y(r){return"[object Arguments]"==Object.prototype.toString.call(r)}function A(r,e){if(!r||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(r);try{if(r instanceof e)return!0}catch(r){}return!Error.isPrototypeOf(e)&&!0===e.call({},r)}function v(r,e,n,t){var a;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(t=n,n=null),a=function(r){var e;try{r()}catch(r){e=r}return e}(e),t=(n&&n.name?" ("+n.name+").":".")+(t?" "+t:"."),r&&!a&&f(a,n,"Missing expected exception"+t);var i="string"==typeof t,c=!r&&a&&!n;if((!r&&o.isError(a)&&i&&A(a,n)||c)&&f(a,n,"Got unwanted exception"+t),r&&a&&n&&!A(a,n)||!r&&a)throw a}P.AssertionError=function(r){this.name="AssertionError",this.actual=r.actual,this.expected=r.expected,this.operator=r.operator,r.message?(this.message=r.message,this.generatedMessage=!1):(this.message=function(r){return m(h(r.actual),128)+" "+r.operator+" "+m(h(r.expected),128)}(this),this.generatedMessage=!0);var e=r.stackStartFunction||f;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var t=n.stack,a=d(e),i=t.indexOf("\n"+a);if(i>=0){var o=t.indexOf("\n",i+1);t=t.substring(o+1)}this.stack=t}}},o.inherits(P.AssertionError,Error),P.fail=f,P.ok=g,P.equal=function(r,e,n){r!=e&&f(r,e,n,"==",P.equal)},P.notEqual=function(r,e,n){r==e&&f(r,e,n,"!=",P.notEqual)},P.deepEqual=function(r,e,n){p(r,e,!1)||f(r,e,n,"deepEqual",P.deepEqual)},P.deepStrictEqual=function(r,e,n){p(r,e,!0)||f(r,e,n,"deepStrictEqual",P.deepStrictEqual)},P.notDeepEqual=function(r,e,n){p(r,e,!1)&&f(r,e,n,"notDeepEqual",P.notDeepEqual)},P.notDeepStrictEqual=function r(e,n,t){p(e,n,!0)&&f(e,n,t,"notDeepStrictEqual",r)},P.strictEqual=function(r,e,n){r!==e&&f(r,e,n,"===",P.strictEqual)},P.notStrictEqual=function(r,e,n){r===e&&f(r,e,n,"!==",P.notStrictEqual)},P.throws=function(r,e,n){v(!0,r,e,n)},P.doesNotThrow=function(r,e,n){v(!1,r,e,n)},P.ifError=function(r){if(r)throw r},P.strict=t((function r(e,n){e||f(e,!0,n,"==",r)}),P,{equal:P.strictEqual,deepEqual:P.deepStrictEqual,notEqual:P.notStrictEqual,notDeepEqual:P.notDeepStrictEqual}),P.strict.strict=P.strict;var b=Object.keys||function(r){var e=[];for(var n in r)c.call(r,n)&&e.push(n);return e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object.assign/polyfill":58,"util/":5}],3:[function(r,e,n){"function"==typeof Object.create?e.exports=function(r,e){r.super_=e,r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(r,e){r.super_=e;var n=function(){};n.prototype=e.prototype,r.prototype=new n,r.prototype.constructor=r}},{}],4:[function(r,e,n){e.exports=function(r){return r&&"object"==typeof r&&"function"==typeof r.copy&&"function"==typeof r.fill&&"function"==typeof r.readUInt8}},{}],5:[function(r,e,n){(function(e,t){(function(){var a=/%[sdj%]/g;n.format=function(r){if(!f(r)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var t=arguments,i=t.length,o=String(r).replace(a,(function(r){if("%%"===r)return"%";if(n>=i)return r;switch(r){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(r){return"[Circular]"}default:return r}})),s=t[n];n<i;s=t[++n])m(s)||!y(s)?o+=" "+s:o+=" "+c(s);return o},n.deprecate=function(r,a){if(g(t.process))return function(){return n.deprecate(r,a).apply(this,arguments)};if(!0===e.noDeprecation)return r;var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(a);e.traceDeprecation?console.trace(a):console.error(a),i=!0}return r.apply(this,arguments)}};var i,o={};function c(r,e){var t={seen:[],stylize:u};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),d(e)?t.showHidden=e:e&&n._extend(t,e),g(t.showHidden)&&(t.showHidden=!1),g(t.depth)&&(t.depth=2),g(t.colors)&&(t.colors=!1),g(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=s),l(t,r,t.depth)}function s(r,e){var n=c.styles[e];return n?"["+c.colors[n][0]+"m"+r+"["+c.colors[n][1]+"m":r}function u(r,e){return r}function l(r,e,t){if(r.customInspect&&e&&b(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var a=e.inspect(t,r);return f(a)||(a=l(r,a,t)),a}var i=function(r,e){if(g(e))return r.stylize("undefined","undefined");if(f(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(n,"string")}if(h(e))return r.stylize(""+e,"number");if(d(e))return r.stylize(""+e,"boolean");if(m(e))return r.stylize("null","null")}(r,e);if(i)return i;var o=Object.keys(e),c=function(r){var e={};return r.forEach((function(r,n){e[r]=!0})),e}(o);if(r.showHidden&&(o=Object.getOwnPropertyNames(e)),v(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return X(e);if(0===o.length){if(b(e)){var s=e.name?": "+e.name:"";return r.stylize("[Function"+s+"]","special")}if(p(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(A(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return X(e)}var u,y="",C=!1,W=["{","}"];(K(e)&&(C=!0,W=["[","]"]),b(e))&&(y=" [Function"+(e.name?": "+e.name:"")+"]");return p(e)&&(y=" "+RegExp.prototype.toString.call(e)),A(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+X(e)),0!==o.length||C&&0!=e.length?t<0?p(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special"):(r.seen.push(e),u=C?function(r,e,n,t,a){for(var i=[],o=0,c=e.length;o<c;++o)N(e,String(o))?i.push(P(r,e,n,t,String(o),!0)):i.push("");return a.forEach((function(a){a.match(/^\d+$/)||i.push(P(r,e,n,t,a,!0))})),i}(r,e,t,c,o):o.map((function(n){return P(r,e,t,c,n,C)})),r.seen.pop(),function(r,e,n){var t=r.reduce((function(r,e){return e.indexOf("\n")>=0&&0,r+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(t>60)return n[0]+(""===e?"":e+"\n ")+" "+r.join(",\n ")+" "+n[1];return n[0]+e+" "+r.join(", ")+" "+n[1]}(u,y,W)):W[0]+y+W[1]}function X(r){return"["+Error.prototype.toString.call(r)+"]"}function P(r,e,n,t,a,i){var o,c,s;if((s=Object.getOwnPropertyDescriptor(e,a)||{value:e[a]}).get?c=s.set?r.stylize("[Getter/Setter]","special"):r.stylize("[Getter]","special"):s.set&&(c=r.stylize("[Setter]","special")),N(t,a)||(o="["+a+"]"),c||(r.seen.indexOf(s.value)<0?(c=m(n)?l(r,s.value,null):l(r,s.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(r){return" "+r})).join("\n").substr(2):"\n"+c.split("\n").map((function(r){return" "+r})).join("\n")):c=r.stylize("[Circular]","special")),g(o)){if(i&&a.match(/^\d+$/))return c;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=r.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=r.stylize(o,"string"))}return o+": "+c}function K(r){return Array.isArray(r)}function d(r){return"boolean"==typeof r}function m(r){return null===r}function h(r){return"number"==typeof r}function f(r){return"string"==typeof r}function g(r){return void 0===r}function p(r){return y(r)&&"[object RegExp]"===C(r)}function y(r){return"object"==typeof r&&null!==r}function A(r){return y(r)&&"[object Date]"===C(r)}function v(r){return y(r)&&("[object Error]"===C(r)||r instanceof Error)}function b(r){return"function"==typeof r}function C(r){return Object.prototype.toString.call(r)}function W(r){return r<10?"0"+r.toString(10):r.toString(10)}n.debuglog=function(r){if(g(i)&&(i=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!o[r])if(new RegExp("\\b"+r+"\\b","i").test(i)){var t=e.pid;o[r]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",r,t,e)}}else o[r]=function(){};return o[r]},n.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=K,n.isBoolean=d,n.isNull=m,n.isNullOrUndefined=function(r){return null==r},n.isNumber=h,n.isString=f,n.isSymbol=function(r){return"symbol"==typeof r},n.isUndefined=g,n.isRegExp=p,n.isObject=y,n.isDate=A,n.isError=v,n.isFunction=b,n.isPrimitive=function(r){return null===r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||"symbol"==typeof r||void 0===r},n.isBuffer=r("./support/isBuffer");var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(r,e){return Object.prototype.hasOwnProperty.call(r,e)}n.log=function(){var r,e;console.log("%s - %s",(r=new Date,e=[W(r.getHours()),W(r.getMinutes()),W(r.getSeconds())].join(":"),[r.getDate(),B[r.getMonth()],e].join(" ")),n.format.apply(n,arguments))},n.inherits=r("inherits"),n._extend=function(r,e){if(!e||!y(e))return r;for(var n=Object.keys(e),t=n.length;t--;)r[n[t]]=e[n[t]];return r}}).call(this)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":4,_process:71,inherits:3}],6:[function(r,e,n){(function(n){(function(){"use strict";var t=r("possible-typed-array-names"),a="undefined"==typeof globalThis?n:globalThis;e.exports=function(){for(var r=[],e=0;e<t.length;e++)"function"==typeof a[t[e]]&&(r[r.length]=t[e]);return r}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"possible-typed-array-names":70}],7:[function(r,e,n){"use strict";n.byteLength=function(r){var e=s(r),n=e[0],t=e[1];return 3*(n+t)/4-t},n.toByteArray=function(r){var e,n,t=s(r),o=t[0],c=t[1],u=new i(function(r,e,n){return 3*(e+n)/4-n}(0,o,c)),l=0,X=c>0?o-4:o;for(n=0;n<X;n+=4)e=a[r.charCodeAt(n)]<<18|a[r.charCodeAt(n+1)]<<12|a[r.charCodeAt(n+2)]<<6|a[r.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=a[r.charCodeAt(n)]<<2|a[r.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=a[r.charCodeAt(n)]<<10|a[r.charCodeAt(n+1)]<<4|a[r.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},n.fromByteArray=function(r){for(var e,n=r.length,a=n%3,i=[],o=16383,c=0,s=n-a;c<s;c+=o)i.push(u(r,c,c+o>s?s:c+o));1===a?(e=r[n-1],i.push(t[e>>2]+t[e<<4&63]+"==")):2===a&&(e=(r[n-2]<<8)+r[n-1],i.push(t[e>>10]+t[e>>4&63]+t[e<<2&63]+"="));return i.join("")};for(var t=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)t[c]=o[c],a[o.charCodeAt(c)]=c;function s(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=r.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(r,e,n){for(var a,i,o=[],c=e;c<n;c+=3)a=(r[c]<<16&16711680)+(r[c+1]<<8&65280)+(255&r[c+2]),o.push(t[(i=a)>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],8:[function(r,e,n){arguments[4][1][0].apply(n,arguments)},{dup:1}],9:[function(r,e,n){(function(e,t){(function(){"use strict";var a=r("assert"),i=r("pako/lib/zlib/zstream"),o=r("pako/lib/zlib/deflate.js"),c=r("pako/lib/zlib/inflate.js"),s=r("pako/lib/zlib/constants");for(var u in s)n[u]=s[u];n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7;function l(r){if("number"!=typeof r||r<n.DEFLATE||r>n.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=r,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=n.UNZIP),this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==n.INFLATE&&this.mode!==n.GUNZIP&&this.mode!==n.INFLATERAW&&this.mode!==n.UNZIP||c.inflateEnd(this.strm),this.mode=n.NONE,this.dictionary=null)},l.prototype.write=function(r,e,n,t,a,i,o){return this._write(!0,r,e,n,t,a,i,o)},l.prototype.writeSync=function(r,e,n,t,a,i,o){return this._write(!1,r,e,n,t,a,i,o)},l.prototype._write=function(r,i,o,c,s,u,l,X){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==n.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===i,"must provide flush value"),this.write_in_progress=!0,i!==n.Z_NO_FLUSH&&i!==n.Z_PARTIAL_FLUSH&&i!==n.Z_SYNC_FLUSH&&i!==n.Z_FULL_FLUSH&&i!==n.Z_FINISH&&i!==n.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=t.alloc(0),s=0,c=0),this.strm.avail_in=s,this.strm.input=o,this.strm.next_in=c,this.strm.avail_out=X,this.strm.output=u,this.strm.next_out=l,this.flush=i,!r)return this._process(),this._checkError()?this._afterSync():void 0;var P=this;return e.nextTick((function(){P._process(),P._after()})),this},l.prototype._afterSync=function(){var r=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,r]},l.prototype._process=function(){var r=null;switch(this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case n.UNZIP:switch(this.strm.avail_in>0&&(r=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===r)break;if(31!==this.strm.input[r]){this.mode=n.INFLATE;break}if(this.gzip_id_bytes_read=1,r++,1===this.strm.avail_in)break;case 1:if(null===r)break;139===this.strm.input[r]?(this.gzip_id_bytes_read=2,this.mode=n.GUNZIP):this.mode=n.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:for(this.err=c.inflate(this.strm,this.flush),this.err===n.Z_NEED_DICT&&this.dictionary&&(this.err=c.inflateSetDictionary(this.strm,this.dictionary),this.err===n.Z_OK?this.err=c.inflate(this.strm,this.flush):this.err===n.Z_DATA_ERROR&&(this.err=n.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===n.GUNZIP&&this.err===n.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=c.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case n.Z_OK:case n.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===n.Z_FINISH)return this._error("unexpected end of file"),!1;break;case n.Z_STREAM_END:break;case n.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var r=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,r),this.pending_close&&this.close()}},l.prototype._error=function(r){this.strm.msg&&(r=this.strm.msg),this.onerror(r,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(r,e,t,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(r>=8&&r<=15,"invalid windowBits"),a(e>=-1&&e<=9,"invalid compression level"),a(t>=1&&t<=9,"invalid memlevel"),a(i===n.Z_FILTERED||i===n.Z_HUFFMAN_ONLY||i===n.Z_RLE||i===n.Z_FIXED||i===n.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(e,r,t,i,o),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(r,e,t,a,s){switch(this.level=r,this.windowBits=e,this.memLevel=t,this.strategy=a,this.flush=n.Z_NO_FLUSH,this.err=n.Z_OK,this.mode!==n.GZIP&&this.mode!==n.GUNZIP||(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),this.mode!==n.DEFLATERAW&&this.mode!==n.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new i,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:this.err=c.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==n.Z_OK&&this._error("Init error"),this.dictionary=s,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==n.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:case n.GZIP:this.err=o.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:case n.GUNZIP:this.err=c.inflateReset(this.strm)}this.err!==n.Z_OK&&this._error("Failed to reset stream")},n.Zlib=l}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{_process:71,assert:2,buffer:11,"pako/lib/zlib/constants":61,"pako/lib/zlib/deflate.js":63,"pako/lib/zlib/inflate.js":65,"pako/lib/zlib/zstream":69}],10:[function(r,e,n){(function(e){(function(){"use strict";var t=r("buffer").Buffer,a=r("stream").Transform,i=r("./binding"),o=r("util"),c=r("assert").ok,s=r("buffer").kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+s.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16384,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(i),X=0;X<l.length;X++){var P=l[X];P.match(/^Z/)&&Object.defineProperty(n,P,{enumerable:!0,value:i[P],writable:!1})}for(var K={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},d=Object.keys(K),m=0;m<d.length;m++){var h=d[m];K[K[h]]=h}function f(r,e,n){var a=[],i=0;function o(){for(var e;null!==(e=r.read());)a.push(e),i+=e.length;r.once("readable",o)}function c(){var e,o=null;i>=s?o=new RangeError(u):e=t.concat(a,i),a=[],r.close(),n(o,e)}r.on("error",(function(e){r.removeListener("end",c),r.removeListener("readable",o),n(e)})),r.on("end",c),r.end(e),o()}function g(r,e){if("string"==typeof e&&(e=t.from(e)),!t.isBuffer(e))throw new TypeError("Not a string or buffer");var n=r._finishFlushFlag;return r._processChunk(e,n)}function p(r){if(!(this instanceof p))return new p(r);N.call(this,r,i.DEFLATE)}function y(r){if(!(this instanceof y))return new y(r);N.call(this,r,i.INFLATE)}function A(r){if(!(this instanceof A))return new A(r);N.call(this,r,i.GZIP)}function v(r){if(!(this instanceof v))return new v(r);N.call(this,r,i.GUNZIP)}function b(r){if(!(this instanceof b))return new b(r);N.call(this,r,i.DEFLATERAW)}function C(r){if(!(this instanceof C))return new C(r);N.call(this,r,i.INFLATERAW)}function W(r){if(!(this instanceof W))return new W(r);N.call(this,r,i.UNZIP)}function B(r){return r===i.Z_NO_FLUSH||r===i.Z_PARTIAL_FLUSH||r===i.Z_SYNC_FLUSH||r===i.Z_FULL_FLUSH||r===i.Z_FINISH||r===i.Z_BLOCK}function N(r,e){var o=this;if(this._opts=r=r||{},this._chunkSize=r.chunkSize||n.Z_DEFAULT_CHUNK,a.call(this,r),r.flush&&!B(r.flush))throw new Error("Invalid flush flag: "+r.flush);if(r.finishFlush&&!B(r.finishFlush))throw new Error("Invalid flush flag: "+r.finishFlush);if(this._flushFlag=r.flush||i.Z_NO_FLUSH,this._finishFlushFlag=void 0!==r.finishFlush?r.finishFlush:i.Z_FINISH,r.chunkSize&&(r.chunkSize<n.Z_MIN_CHUNK||r.chunkSize>n.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+r.chunkSize);if(r.windowBits&&(r.windowBits<n.Z_MIN_WINDOWBITS||r.windowBits>n.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+r.windowBits);if(r.level&&(r.level<n.Z_MIN_LEVEL||r.level>n.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+r.level);if(r.memLevel&&(r.memLevel<n.Z_MIN_MEMLEVEL||r.memLevel>n.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+r.memLevel);if(r.strategy&&r.strategy!=n.Z_FILTERED&&r.strategy!=n.Z_HUFFMAN_ONLY&&r.strategy!=n.Z_RLE&&r.strategy!=n.Z_FIXED&&r.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+r.strategy);if(r.dictionary&&!t.isBuffer(r.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(e);var c=this;this._hadError=!1,this._handle.onerror=function(r,e){O(c),c._hadError=!0;var t=new Error(r);t.errno=e,t.code=n.codes[e],c.emit("error",t)};var s=n.Z_DEFAULT_COMPRESSION;"number"==typeof r.level&&(s=r.level);var u=n.Z_DEFAULT_STRATEGY;"number"==typeof r.strategy&&(u=r.strategy),this._handle.init(r.windowBits||n.Z_DEFAULT_WINDOWBITS,s,r.memLevel||n.Z_DEFAULT_MEMLEVEL,u,r.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=s,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}function O(r,n){n&&e.nextTick(n),r._handle&&(r._handle.close(),r._handle=null)}function _(r){r.emit("close")}Object.defineProperty(n,"codes",{enumerable:!0,value:Object.freeze(K),writable:!1}),n.Deflate=p,n.Inflate=y,n.Gzip=A,n.Gunzip=v,n.DeflateRaw=b,n.InflateRaw=C,n.Unzip=W,n.createDeflate=function(r){return new p(r)},n.createInflate=function(r){return new y(r)},n.createDeflateRaw=function(r){return new b(r)},n.createInflateRaw=function(r){return new C(r)},n.createGzip=function(r){return new A(r)},n.createGunzip=function(r){return new v(r)},n.createUnzip=function(r){return new W(r)},n.deflate=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new p(e),r,n)},n.deflateSync=function(r,e){return g(new p(e),r)},n.gzip=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new A(e),r,n)},n.gzipSync=function(r,e){return g(new A(e),r)},n.deflateRaw=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new b(e),r,n)},n.deflateRawSync=function(r,e){return g(new b(e),r)},n.unzip=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new W(e),r,n)},n.unzipSync=function(r,e){return g(new W(e),r)},n.inflate=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new y(e),r,n)},n.inflateSync=function(r,e){return g(new y(e),r)},n.gunzip=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new v(e),r,n)},n.gunzipSync=function(r,e){return g(new v(e),r)},n.inflateRaw=function(r,e,n){return"function"==typeof e&&(n=e,e={}),f(new C(e),r,n)},n.inflateRawSync=function(r,e){return g(new C(e),r)},o.inherits(N,a),N.prototype.params=function(r,t,a){if(r<n.Z_MIN_LEVEL||r>n.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+r);if(t!=n.Z_FILTERED&&t!=n.Z_HUFFMAN_ONLY&&t!=n.Z_RLE&&t!=n.Z_FIXED&&t!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==r||this._strategy!==t){var o=this;this.flush(i.Z_SYNC_FLUSH,(function(){c(o._handle,"zlib binding closed"),o._handle.params(r,t),o._hadError||(o._level=r,o._strategy=t,a&&a())}))}else e.nextTick(a)},N.prototype.reset=function(){return c(this._handle,"zlib binding closed"),this._handle.reset()},N.prototype._flush=function(r){this._transform(t.alloc(0),"",r)},N.prototype.flush=function(r,n){var a=this,o=this._writableState;("function"==typeof r||void 0===r&&!n)&&(n=r,r=i.Z_FULL_FLUSH),o.ended?n&&e.nextTick(n):o.ending?n&&this.once("end",n):o.needDrain?n&&this.once("drain",(function(){return a.flush(r,n)})):(this._flushFlag=r,this.write(t.alloc(0),"",n))},N.prototype.close=function(r){O(this,r),e.nextTick(_,this)},N.prototype._transform=function(r,e,n){var a,o=this._writableState,c=(o.ending||o.ended)&&(!r||o.length===r.length);return null===r||t.isBuffer(r)?this._handle?(c?a=this._finishFlushFlag:(a=this._flushFlag,r.length>=o.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),void this._processChunk(r,a,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},N.prototype._processChunk=function(r,e,n){var a=r&&r.length,i=this._chunkSize-this._offset,o=0,l=this,X="function"==typeof n;if(!X){var P,K=[],d=0;this.on("error",(function(r){P=r})),c(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,r,o,a,this._buffer,this._offset,i)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw P;if(d>=s)throw O(this),new RangeError(u);var h=t.concat(K,d);return O(this),h}c(this._handle,"zlib binding closed");var f=this._handle.write(e,r,o,a,this._buffer,this._offset,i);function g(s,u){if(this&&(this.buffer=null,this.callback=null),!l._hadError){var P=i-u;if(c(P>=0,"have should not go down"),P>0){var m=l._buffer.slice(l._offset,l._offset+P);l._offset+=P,X?l.push(m):(K.push(m),d+=m.length)}if((0===u||l._offset>=l._chunkSize)&&(i=l._chunkSize,l._offset=0,l._buffer=t.allocUnsafe(l._chunkSize)),0===u){if(o+=a-s,a=s,!X)return!0;var h=l._handle.write(e,r,o,a,l._buffer,l._offset,l._chunkSize);return h.callback=g,void(h.buffer=r)}if(!X)return!1;n()}}f.buffer=r,f.callback=g},o.inherits(p,N),o.inherits(y,N),o.inherits(A,N),o.inherits(v,N),o.inherits(b,N),o.inherits(C,N),o.inherits(W,N)}).call(this)}).call(this,r("_process"))},{"./binding":9,_process:71,assert:2,buffer:11,stream:74,util:93}],11:[function(r,e,n){(function(e){(function(){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ "use strict";var e=r("base64-js"),t=r("ieee754");n.Buffer=o,n.SlowBuffer=function(r){+r!=r&&(r=0);return o.alloc(+r)},n.INSPECT_MAX_BYTES=50;var a=2147483647;function i(r){if(r>a)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return e.__proto__=o.prototype,e}function o(r,e,n){if("number"==typeof r){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(r)}return c(r,e,n)}function c(r,e,n){if("string"==typeof r)return function(r,e){"string"==typeof e&&""!==e||(e="utf8");if(!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|P(r,e),t=i(n),a=t.write(r,e);a!==n&&(t=t.slice(0,a));return t}(r,e);if(ArrayBuffer.isView(r))return l(r);if(null==r)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(E(r,ArrayBuffer)||r&&E(r.buffer,ArrayBuffer))return function(r,e,n){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var t;t=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);return t.__proto__=o.prototype,t}(r,e,n);if("number"==typeof r)throw new TypeError('The "value" argument must not be of type number. Received type number');var t=r.valueOf&&r.valueOf();if(null!=t&&t!==r)return o.from(t,e,n);var a=function(r){if(o.isBuffer(r)){var e=0|X(r.length),n=i(e);return 0===n.length||r.copy(n,0,0,e),n}if(void 0!==r.length)return"number"!=typeof r.length||L(r.length)?i(0):l(r);if("Buffer"===r.type&&Array.isArray(r.data))return l(r.data)}(r);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof r[Symbol.toPrimitive])return o.from(r[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function s(r){if("number"!=typeof r)throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function u(r){return s(r),i(r<0?0:0|X(r))}function l(r){for(var e=r.length<0?0:0|X(r.length),n=i(e),t=0;t<e;t+=1)n[t]=255&r[t];return n}function X(r){if(r>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|r}function P(r,e){if(o.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||E(r,ArrayBuffer))return r.byteLength;if("string"!=typeof r)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var n=r.length,t=arguments.length>2&&!0===arguments[2];if(!t&&0===n)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return R(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return D(r).length;default:if(a)return t?-1:R(r).length;e=(""+e).toLowerCase(),a=!0}}function K(r,e,n){var t=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return O(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return B(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return b(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,n);default:if(t)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),t=!0}}function d(r,e,n){var t=r[e];r[e]=r[n],r[n]=t}function m(r,e,n,t,a){if(0===r.length)return-1;if("string"==typeof n?(t=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),L(n=+n)&&(n=a?0:r.length-1),n<0&&(n=r.length+n),n>=r.length){if(a)return-1;n=r.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof e&&(e=o.from(e,t)),o.isBuffer(e))return 0===e.length?-1:h(r,e,n,t,a);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(r,e,n):Uint8Array.prototype.lastIndexOf.call(r,e,n):h(r,[e],n,t,a);throw new TypeError("val must be string, number or Buffer")}function h(r,e,n,t,a){var i,o=1,c=r.length,s=e.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(r.length<2||e.length<2)return-1;o=2,c/=2,s/=2,n/=2}function u(r,e){return 1===o?r[e]:r.readUInt16BE(e*o)}if(a){var l=-1;for(i=n;i<c;i++)if(u(r,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*o}else-1!==l&&(i-=i-l),l=-1}else for(n+s>c&&(n=c-s),i=n;i>=0;i--){for(var X=!0,P=0;P<s;P++)if(u(r,i+P)!==u(e,P)){X=!1;break}if(X)return i}return-1}function f(r,e,n,t){n=Number(n)||0;var a=r.length-n;t?(t=Number(t))>a&&(t=a):t=a;var i=e.length;t>i/2&&(t=i/2);for(var o=0;o<t;++o){var c=parseInt(e.substr(2*o,2),16);if(L(c))return o;r[n+o]=c}return o}function g(r,e,n,t){return F(R(e,r.length-n),r,n,t)}function p(r,e,n,t){return F(function(r){for(var e=[],n=0;n<r.length;++n)e.push(255&r.charCodeAt(n));return e}(e),r,n,t)}function y(r,e,n,t){return p(r,e,n,t)}function A(r,e,n,t){return F(D(e),r,n,t)}function v(r,e,n,t){return F(function(r,e){for(var n,t,a,i=[],o=0;o<r.length&&!((e-=2)<0);++o)t=(n=r.charCodeAt(o))>>8,a=n%256,i.push(a),i.push(t);return i}(e,r.length-n),r,n,t)}function b(r,n,t){return 0===n&&t===r.length?e.fromByteArray(r):e.fromByteArray(r.slice(n,t))}function C(r,e,n){n=Math.min(r.length,n);for(var t=[],a=e;a<n;){var i,o,c,s,u=r[a],l=null,X=u>239?4:u>223?3:u>191?2:1;if(a+X<=n)switch(X){case 1:u<128&&(l=u);break;case 2:128==(192&(i=r[a+1]))&&(s=(31&u)<<6|63&i)>127&&(l=s);break;case 3:i=r[a+1],o=r[a+2],128==(192&i)&&128==(192&o)&&(s=(15&u)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=r[a+1],o=r[a+2],c=r[a+3],128==(192&i)&&128==(192&o)&&128==(192&c)&&(s=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&c)>65535&&s<1114112&&(l=s)}null===l?(l=65533,X=1):l>65535&&(l-=65536,t.push(l>>>10&1023|55296),l=56320|1023&l),t.push(l),a+=X}return function(r){var e=r.length;if(e<=W)return String.fromCharCode.apply(String,r);var n="",t=0;for(;t<e;)n+=String.fromCharCode.apply(String,r.slice(t,t+=W));return n}(t)}n.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=function(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===r.foo()}catch(r){return!1}}(),o.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."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(r,e,n){return c(r,e,n)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(r,e,n){return function(r,e,n){return s(r),r<=0?i(r):void 0!==e?"string"==typeof n?i(r).fill(e,n):i(r).fill(e):i(r)}(r,e,n)},o.allocUnsafe=function(r){return u(r)},o.allocUnsafeSlow=function(r){return u(r)},o.isBuffer=function(r){return null!=r&&!0===r._isBuffer&&r!==o.prototype},o.compare=function(r,e){if(E(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),E(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(r)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var n=r.length,t=e.length,a=0,i=Math.min(n,t);a<i;++a)if(r[a]!==e[a]){n=r[a],t=e[a];break}return n<t?-1:t<n?1:0},o.isEncoding=function(r){switch(String(r).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(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(0===r.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var t=o.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var i=r[n];if(E(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(t,a),a+=i.length}return t},o.byteLength=P,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)d(this,e,e+1);return this},o.prototype.swap32=function(){var r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},o.prototype.swap64=function(){var r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},o.prototype.toString=function(){var r=this.length;return 0===r?"":0===arguments.length?C(this,0,r):K.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r||0===o.compare(this,r)},o.prototype.inspect=function(){var r="",e=n.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"},o.prototype.compare=function(r,e,n,t,a){if(E(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(void 0===e&&(e=0),void 0===n&&(n=r?r.length:0),void 0===t&&(t=0),void 0===a&&(a=this.length),e<0||n>r.length||t<0||a>this.length)throw new RangeError("out of range index");if(t>=a&&e>=n)return 0;if(t>=a)return-1;if(e>=n)return 1;if(this===r)return 0;for(var i=(a>>>=0)-(t>>>=0),c=(n>>>=0)-(e>>>=0),s=Math.min(i,c),u=this.slice(t,a),l=r.slice(e,n),X=0;X<s;++X)if(u[X]!==l[X]){i=u[X],c=l[X];break}return i<c?-1:c<i?1:0},o.prototype.includes=function(r,e,n){return-1!==this.indexOf(r,e,n)},o.prototype.indexOf=function(r,e,n){return m(this,r,e,n,!0)},o.prototype.lastIndexOf=function(r,e,n){return m(this,r,e,n,!1)},o.prototype.write=function(r,e,n,t){if(void 0===e)t="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)t=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===t&&(t="utf8")):(t=n,n=void 0)}var a=this.length-e;if((void 0===n||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var i=!1;;)switch(t){case"hex":return f(this,r,e,n);case"utf8":case"utf-8":return g(this,r,e,n);case"ascii":return p(this,r,e,n);case"latin1":case"binary":return y(this,r,e,n);case"base64":return A(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,r,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;function B(r,e,n){var t="";n=Math.min(r.length,n);for(var a=e;a<n;++a)t+=String.fromCharCode(127&r[a]);return t}function N(r,e,n){var t="";n=Math.min(r.length,n);for(var a=e;a<n;++a)t+=String.fromCharCode(r[a]);return t}function O(r,e,n){var t=r.length;(!e||e<0)&&(e=0),(!n||n<0||n>t)&&(n=t);for(var a="",i=e;i<n;++i)a+=Y(r[i]);return a}function _(r,e,n){for(var t=r.slice(e,n),a="",i=0;i<t.length;i+=2)a+=String.fromCharCode(t[i]+256*t[i+1]);return a}function w(r,e,n){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+e>n)throw new RangeError("Trying to access beyond buffer length")}function x(r,e,n,t,a,i){if(!o.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(n+t>r.length)throw new RangeError("Index out of range")}function k(r,e,n,t,a,i){if(n+t>r.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(r,e,n,a,i){return e=+e,n>>>=0,i||k(r,0,n,4),t.write(r,e,n,a,23,4),n+4}function S(r,e,n,a,i){return e=+e,n>>>=0,i||k(r,0,n,8),t.write(r,e,n,a,52,8),n+8}o.prototype.slice=function(r,e){var n=this.length;(r=~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<r&&(e=r);var t=this.subarray(r,e);return t.__proto__=o.prototype,t},o.prototype.readUIntLE=function(r,e,n){r>>>=0,e>>>=0,n||w(r,e,this.length);for(var t=this[r],a=1,i=0;++i<e&&(a*=256);)t+=this[r+i]*a;return t},o.prototype.readUIntBE=function(r,e,n){r>>>=0,e>>>=0,n||w(r,e,this.length);for(var t=this[r+--e],a=1;e>0&&(a*=256);)t+=this[r+--e]*a;return t},o.prototype.readUInt8=function(r,e){return r>>>=0,e||w(r,1,this.length),this[r]},o.prototype.readUInt16LE=function(r,e){return r>>>=0,e||w(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUInt16BE=function(r,e){return r>>>=0,e||w(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUInt32LE=function(r,e){return r>>>=0,e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},o.prototype.readUInt32BE=function(r,e){return r>>>=0,e||w(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readIntLE=function(r,e,n){r>>>=0,e>>>=0,n||w(r,e,this.length);for(var t=this[r],a=1,i=0;++i<e&&(a*=256);)t+=this[r+i]*a;return t>=(a*=128)&&(t-=Math.pow(2,8*e)),t},o.prototype.readIntBE=function(r,e,n){r>>>=0,e>>>=0,n||w(r,e,this.length);for(var t=e,a=1,i=this[r+--t];t>0&&(a*=256);)i+=this[r+--t]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readInt8=function(r,e){return r>>>=0,e||w(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},o.prototype.readInt16LE=function(r,e){r>>>=0,e||w(r,2,this.length);var n=this[r]|this[r+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(r,e){r>>>=0,e||w(r,2,this.length);var n=this[r+1]|this[r]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(r,e){return r>>>=0,e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,e){return r>>>=0,e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readFloatLE=function(r,e){return r>>>=0,e||w(r,4,this.length),t.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,e){return r>>>=0,e||w(r,4,this.length),t.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,e){return r>>>=0,e||w(r,8,this.length),t.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,e){return r>>>=0,e||w(r,8,this.length),t.read(this,r,!1,52,8)},o.prototype.writeUIntLE=function(r,e,n,t){(r=+r,e>>>=0,n>>>=0,t)||x(this,r,e,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[e]=255&r;++i<n&&(a*=256);)this[e+i]=r/a&255;return e+n},o.prototype.writeUIntBE=function(r,e,n,t){(r=+r,e>>>=0,n>>>=0,t)||x(this,r,e,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[e+a]=255&r;--a>=0&&(i*=256);)this[e+a]=r/i&255;return e+n},o.prototype.writeUInt8=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,1,255,0),this[e]=255&r,e+1},o.prototype.writeUInt16LE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,2,65535,0),this[e]=255&r,this[e+1]=r>>>8,e+2},o.prototype.writeUInt16BE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=255&r,e+2},o.prototype.writeUInt32LE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=255&r,e+4},o.prototype.writeUInt32BE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r,e+4},o.prototype.writeIntLE=function(r,e,n,t){if(r=+r,e>>>=0,!t){var a=Math.pow(2,8*n-1);x(this,r,e,n,a-1,-a)}var i=0,o=1,c=0;for(this[e]=255&r;++i<n&&(o*=256);)r<0&&0===c&&0!==this[e+i-1]&&(c=1),this[e+i]=(r/o|0)-c&255;return e+n},o.prototype.writeIntBE=function(r,e,n,t){if(r=+r,e>>>=0,!t){var a=Math.pow(2,8*n-1);x(this,r,e,n,a-1,-a)}var i=n-1,o=1,c=0;for(this[e+i]=255&r;--i>=0&&(o*=256);)r<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(r/o|0)-c&255;return e+n},o.prototype.writeInt8=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=255&r,e+1},o.prototype.writeInt16LE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,2,32767,-32768),this[e]=255&r,this[e+1]=r>>>8,e+2},o.prototype.writeInt16BE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=255&r,e+2},o.prototype.writeInt32LE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,4,2147483647,-2147483648),this[e]=255&r,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},o.prototype.writeInt32BE=function(r,e,n){return r=+r,e>>>=0,n||x(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r,e+4},o.prototype.writeFloatLE=function(r,e,n){return T(this,r,e,!0,n)},o.prototype.writeFloatBE=function(r,e,n){return T(this,r,e,!1,n)},o.prototype.writeDoubleLE=function(r,e,n){return S(this,r,e,!0,n)},o.prototype.writeDoubleBE=function(r,e,n){return S(this,r,e,!1,n)},o.prototype.copy=function(r,e,n,t){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),t||0===t||(t=this.length),e>=r.length&&(e=r.length),e||(e=0),t>0&&t<n&&(t=n),t===n)return 0;if(0===r.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-e<t-n&&(t=r.length-e+n);var a=t-n;if(this===r&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,t);else if(this===r&&n<e&&e<t)for(var i=a-1;i>=0;--i)r[i+e]=this[i+n];else Uint8Array.prototype.set.call(r,this.subarray(n,t),e);return a},o.prototype.fill=function(r,e,n,t){if("string"==typeof r){if("string"==typeof e?(t=e,e=0,n=this.length):"string"==typeof n&&(t=n,n=this.length),void 0!==t&&"string"!=typeof t)throw new TypeError("encoding must be a string");if("string"==typeof t&&!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);if(1===r.length){var a=r.charCodeAt(0);("utf8"===t&&a<128||"latin1"===t)&&(r=a)}}else"number"==typeof r&&(r&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,r||(r=0),"number"==typeof r)for(i=e;i<n;++i)this[i]=r;else{var c=o.isBuffer(r)?r:o.from(r,t),s=c.length;if(0===s)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=c[i%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function Y(r){return r<16?"0"+r.toString(16):r.toString(16)}function R(r,e){var n;e=e||1/0;for(var t=r.length,a=null,i=[],o=0;o<t;++o){if((n=r.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===t){(e-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function D(r){return e.toByteArray(function(r){if((r=(r=r.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function F(r,e,n,t){for(var a=0;a<t&&!(a+n>=e.length||a>=r.length);++a)e[a+n]=r[a];return a}function E(r,e){return r instanceof e||null!=r&&null!=r.constructor&&null!=r.constructor.name&&r.constructor.name===e.name}function L(r){return r!=r}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":7,buffer:11,ieee754:43}],12:[function(r,e,n){"use strict";var t=r("function-bind"),a=r("./functionApply"),i=r("./functionCall"),o=r("./reflectApply");e.exports=o||t.call(i,a)},{"./functionApply":14,"./functionCall":15,"./reflectApply":17,"function-bind":34}],13:[function(r,e,n){"use strict";var t=r("function-bind"),a=r("./functionApply"),i=r("./actualApply");e.exports=function(){return i(t,a,arguments)}},{"./actualApply":12,"./functionApply":14,"function-bind":34}],14:[function(r,e,n){"use strict";e.exports=Function.prototype.apply},{}],15:[function(r,e,n){"use strict";e.exports=Function.prototype.call},{}],16:[function(r,e,n){"use strict";var t=r("function-bind"),a=r("es-errors/type"),i=r("./functionCall"),o=r("./actualApply");e.exports=function(r){if(r.length<1||"function"!=typeof r[0])throw new a("a function is required");return o(t,i,r)}},{"./actualApply":12,"./functionCall":15,"es-errors/type":28,"function-bind":34}],17:[function(r,e,n){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},{}],18:[function(r,e,n){"use strict";var t=r("se