vue-p5
Version:
Vue component wrapper for p5.js
24 lines (18 loc) • 564 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.VueP5 = factory());
}(this, (function () { 'use strict';
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function commonjsRequire () {
throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
}
function unwrapExports (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var p5_min = createCommonjsModule(function (module, exports) {
/*! p5.js v0.10.2 October 14, 2019 */
!function(e){module.exports=e();}(function(){return function n(o,s,l){function u(t,e){if(!s[t]){if(!o[t]){var r="function"==typeof commonjsRequire&&commonjsRequire;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var a=s[t]={exports:{}};o[t][0].call(a.exports,function(e){return u(o[t][1][e]||e)},a,a.exports,n,o,s,l);}return s[t].exports}for(var h="function"==typeof commonjsRequire&&commonjsRequire,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){r.byteLength=function(e){var t=f(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){for(var t,r=f(e),i=r[0],a=r[1],n=new c((u=i,h=a,3*(u+h)/4-h)),o=0,s=0<a?i-4:i,l=0;l<s;l+=4)t=d[e.charCodeAt(l)]<<18|d[e.charCodeAt(l+1)]<<12|d[e.charCodeAt(l+2)]<<6|d[e.charCodeAt(l+3)],n[o++]=t>>16&255,n[o++]=t>>8&255,n[o++]=255&t;var u,h;2===a&&(t=d[e.charCodeAt(l)]<<2|d[e.charCodeAt(l+1)]>>4,n[o++]=255&t);1===a&&(t=d[e.charCodeAt(l)]<<10|d[e.charCodeAt(l+1)]<<4|d[e.charCodeAt(l+2)]>>2,n[o++]=t>>8&255,n[o++]=255&t);return n},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],n=0,o=r-i;n<o;n+=16383)a.push(l(e,n,o<n+16383?o:n+16383));1===i?(t=e[r-1],a.push(s[t>>2]+s[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return a.join("")};for(var s=[],d=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,n=i.length;a<n;++a)s[a]=i[a],d[i.charCodeAt(a)]=a;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return -1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,a,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),n.push(s[(a=i)>>18&63]+s[a>>12&63]+s[a>>6&63]+s[63&a]);return n.join("")}d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63;},{}],2:[function(e,t,r){},{}],3:[function(e,t,r){var i=e("base64-js"),n=e("ieee754");r.Buffer=d,r.SlowBuffer=function(e){+e!=e&&(e=0);return d.alloc(+e)},r.INSPECT_MAX_BYTES=50;var a=2147483647;function o(e){if(a<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=d.prototype,t}function d(e,t,r){if("number"!=typeof e)return s(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}function s(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|f(e,t),i=o(r),a=i.write(e,t);a!==r&&(i=i.slice(0,a));return i}(e,t);if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return i.__proto__=d.prototype,i}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return d.from(i,t,r);var a=function(e){if(d.isBuffer(e)){var t=0|c(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return "number"!=typeof e.length||F(e.length)?o(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),o(e<0?0:0|c(e))}function h(e){for(var t=e.length<0?0:0|c(e.length),r=o(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function c(e){if(a<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function f(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(e).length;default:if(a)return i?-1:A(e).length;t=(""+t).toLowerCase(),a=!0;}}function p(e,t,r){var i=e[t];e[t]=e[r],e[r]=i;}function m(e,t,r,i,a){if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+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=d.from(t,i)),d.isBuffer(t))return 0===t.length?-1:v(e,t,r,i,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,i,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,i,a){var n,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s/=o=2,l/=2,r/=2;}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var h=-1;for(n=r;n<s;n++)if(u(e,n)===u(t,-1===h?0:n-h)){if(-1===h&&(h=n),n-h+1===l)return h*o}else -1!==h&&(n-=n-h),h=-1;}else for(s<r+l&&(r=s-l),n=r;0<=n;n--){for(var d=!0,c=0;c<l;c++)if(u(e,n+c)!==u(t,c)){d=!1;break}if(d)return n}return -1}function g(e,t,r,i){r=Number(r)||0;var a=e.length-r;i?a<(i=Number(i))&&(i=a):i=a;var n=t.length;n/2<i&&(i=n/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(F(s))return o;e[r+o]=s;}return o}function y(e,t,r,i){return k(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function _(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function b(e,t,r){r=Math.min(e.length,r);for(var i=[],a=t;a<r;){var n,o,s,l,u=e[a],h=null,d=239<u?4:223<u?3:191<u?2:1;if(a+d<=r)switch(d){case 1:u<128&&(h=u);break;case 2:128==(192&(n=e[a+1]))&&127<(l=(31&u)<<6|63&n)&&(h=l);break;case 3:n=e[a+1],o=e[a+2],128==(192&n)&&128==(192&o)&&2047<(l=(15&u)<<12|(63&n)<<6|63&o)&&(l<55296||57343<l)&&(h=l);break;case 4:n=e[a+1],o=e[a+2],s=e[a+3],128==(192&n)&&128==(192&o)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&n)<<12|(63&o)<<6|63&s)&&l<1114112&&(h=l);}null===h?(h=65533,d=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),a+=d;}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}r.kMaxLength=a,(d.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return !1}}())||"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(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),d.poolSize=8192,d.from=function(e,t,r){return s(e,t,r)},d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,d.alloc=function(e,t,r){return a=t,n=r,l(i=e),i<=0?o(i):void 0!==a?"string"==typeof n?o(i).fill(a,n):o(i).fill(a):o(i);var i,a,n;},d.allocUnsafe=function(e){return u(e)},d.allocUnsafeSlow=function(e){return u(e)},d.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==d.prototype},d.compare=function(e,t){if(U(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,a=0,n=Math.min(r,i);a<n;++a)if(e[a]!==t[a]){r=e[a],i=t[a];break}return r<i?-1:i<r?1:0},d.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}},d.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=d.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var n=e[r];if(U(n,Uint8Array)&&(n=d.from(n)),!d.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(i,a),a+=n.length;}return i},d.byteLength=f,d.prototype._isBuffer=!0,d.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)p(this,t,t+1);return this},d.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)p(this,t,t+3),p(this,t+1,t+2);return this},d.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)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},d.prototype.toLocaleString=d.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?b(this,0,e):function(e,t,r){var i=!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))return "";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return w(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0;}}.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},d.prototype.compare=function(e,t,r,i,a){if(U(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),t<0||r>e.length||i<0||a>this.length)throw new RangeError("out of range index");if(a<=i&&r<=t)return 0;if(a<=i)return -1;if(r<=t)return 1;if(this===e)return 0;for(var n=(a>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(n,o),l=this.slice(i,a),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){n=l[h],o=u[h];break}return n<o?-1:o<n?1:0},d.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},d.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},d.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},d.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=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===i&&(i="utf8")):(i=r,r=void 0);}var a=this.length-t;if((void 0===r||a<r)&&(r=a),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var n,o,s,l,u,h,d,c,f,p=!1;;)switch(i){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return c=t,f=r,k(A(e,(d=this).length-c),d,c,f);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return l=this,u=t,h=r,k(I(e),l,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,s=r,k(function(e,t){for(var r,i,a,n=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,a=r%256,n.push(a),n.push(i);return n}(e,(n=this).length-o),n,o,s);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0;}},d.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(127&e[a]);return i}function S(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(e[a]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var a="",n=t;n<r;++n)a+=D(e[n]);return a}function E(e,t,r){for(var i=e.slice(t,r),a="",n=0;n<i.length;n+=2)a+=String.fromCharCode(i[n]+256*i[n+1]);return a}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,i,a,n){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(a<t||t<n)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function P(e,t,r,i,a,n){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,i,a){return t=+t,r>>>=0,a||P(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function R(e,t,r,i,a){return t=+t,r>>>=0,a||P(e,0,r,8),n.write(e,t,r,i,52,8),r+8}d.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return i.__proto__=d.prototype,i},d.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],a=1,n=0;++n<t&&(a*=256);)i+=this[e+n]*a;return i},d.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],a=1;0<t&&(a*=256);)i+=this[e+--t]*a;return i},d.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],a=1,n=0;++n<t&&(a*=256);)i+=this[e+n]*a;return (a*=128)<=i&&(i-=Math.pow(2,8*t)),i},d.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,a=1,n=this[e+--i];0<i&&(a*=256);)n+=this[e+--i]*a;return (a*=128)<=n&&(n-=Math.pow(2,8*t)),n},d.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),n.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),n.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),n.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),n.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t>>>=0,r>>>=0,i)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,n=0;for(this[t]=255&e;++n<r&&(a*=256);)this[t+n]=e/a&255;return t+r},d.prototype.writeUIntBE=function(e,t,r,i){(e=+e,t>>>=0,r>>>=0,i)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,n=1;for(this[t+a]=255&e;0<=--a&&(n*=256);)this[t+a]=e/n&255;return t+r},d.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a);}var n=0,o=1,s=0;for(this[t]=255&e;++n<r&&(o*=256);)e<0&&0===s&&0!==this[t+n-1]&&(s=1),this[t+n]=(e/o>>0)-s&255;return t+r},d.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a);}var n=r-1,o=1,s=0;for(this[t+n]=255&e;0<=--n&&(o*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/o>>0)-s&255;return t+r},d.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},d.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},d.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},d.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},d.prototype.copy=function(e,t,r,i){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),0<i&&i<r&&(i=r),i===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("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var a=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var n=a-1;0<=n;--n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return a},d.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!d.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a);}}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;var n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else {var o=d.isBuffer(e)?e:d.from(e,i),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s];}return this};var O=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function A(e,t){var r;t=t||1/0;for(var i=e.length,a=null,n=[],o=0;o<i;++o){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!a){if(56319<r){-1<(t-=3)&&n.push(239,191,189);continue}if(o+1===i){-1<(t-=3)&&n.push(239,191,189);continue}a=r;continue}if(r<56320){-1<(t-=3)&&n.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320);}else a&&-1<(t-=3)&&n.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;n.push(r);}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128);}else if(r<65536){if((t-=3)<0)break;n.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;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128);}}return n}function I(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return "";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,i){for(var a=0;a<i&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}},{"base64-js":1,ieee754:8}],4:[function(e,t,r){t.exports=e("./").polyfill();},{"./":5}],5:[function(V,r,i){(function(G,j){var e,t;e=this,t=function(){function u(e){return "function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return "[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,a=void 0,s=function(e,t){c[i]=e,c[i+1]=t,2===(i+=2)&&(a?a(f):y());};var e="undefined"!=typeof window?window:void 0,n=e||{},o=n.MutationObserver||n.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==G&&"[object process]"==={}.toString.call(G),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var e=setTimeout;return function(){return e(f,1)}}var c=new Array(1e3);function f(){for(var e=0;e<i;e+=2){(0, c[e])(c[e+1]),c[e]=void 0,c[e+1]=void 0;}i=0;}var p,m,v,g,y=void 0;function _(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&F(i);var a=r._state;if(a){var n=arguments[a-1];s(function(){return k(a,i,n,r._result)});}else A(r,i,e,t);return i}function b(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(w);return L(t,e),t}y=l?function(){return G.nextTick(f)}:o?(m=0,v=new o(f),g=document.createTextNode(""),v.observe(g,{characterData:!0}),function(){g.data=m=++m%2;}):h?((p=new MessageChannel).port1.onmessage=f,function(){return p.port2.postMessage(0)}):void 0===e&&"function"==typeof V?function(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(f);}:d()}catch(e){return d()}}():d();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2,T={error:null};function C(e){try{return e.then}catch(e){return T.error=e,T}}function P(e,t,r){var i,a,n,o;t.constructor===e.constructor&&r===_&&t.constructor.resolve===b?(n=e,(o=t)._state===M?O(n,o._result):o._state===E?D(n,o._result):A(o,void 0,function(e){return L(n,e)},function(e){return D(n,e)})):r===T?(D(e,T.error),T.error=null):void 0===r?O(e,t):u(r)?(i=t,a=r,s(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i);}catch(e){return e}}(a,i,function(e){r||(r=!0,i!==e?L(t,e):O(t,e));},function(e){r||(r=!0,D(t,e));},t._label);!r&&e&&(r=!0,D(t,e));},e)):O(e,t);}function L(e,t){var r,i;e===t?D(e,new TypeError("You cannot resolve a promise with itself")):(i=typeof(r=t),null===r||"object"!==i&&"function"!==i?O(e,t):P(e,t,C(t)));}function R(e){e._onerror&&e._onerror(e._result),I(e);}function O(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&s(I,e));}function D(e,t){e._state===S&&(e._state=E,e._result=t,s(R,e));}function A(e,t,r,i){var a=e._subscribers,n=a.length;e._onerror=null,a[n]=t,a[n+M]=r,a[n+E]=i,0===n&&e._state&&s(I,e);}function I(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,a=void 0,n=e._result,o=0;o<t.length;o+=3)i=t[o],a=t[o+r],i?k(r,i,a,n):a(n);e._subscribers.length=0;}}function k(e,t,r,i){var a=u(r),n=void 0,o=void 0,s=void 0,l=void 0;if(a){if((n=function(e,t){try{return e(t)}catch(e){return T.error=e,T}}(r,i))===T?(l=!0,o=n.error,n.error=null):s=!0,t===n)return void D(t,new TypeError("A promises callback cannot return that same promise."))}else n=i,s=!0;t._state!==S||(a&&s?L(t,n):l?D(t,o):e===M?O(t,n):e===E&&D(t,n));}var U=0;function F(e){e[x]=U++,e._state=void 0,e._result=void 0,e._subscribers=[];}var N=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||F(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?O(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&O(this.promise,this._result))):D(this.promise,new Error("Array Methods must be provided an Array"));}return e.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t);},e.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===b){var a=C(t);if(a===_&&t._state!==S)this._settledAt(t._state,e,t._result);else if("function"!=typeof a)this._remaining--,this._result[e]=t;else if(r===B){var n=new r(w);P(n,t,a),this._willSettleAt(n,e);}else this._willSettleAt(new r(function(e){return e(t)}),e);}else this._willSettleAt(i(t),e);},e.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?D(i,r):this._result[t]=r),0===this._remaining&&O(i,this._result);},e.prototype._willSettleAt=function(e,t){var r=this;A(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)});},e}();var B=function(){function t(e){this[x]=U++,this._result=this._state=void 0,this._subscribers=[],w!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e(function(e){L(t,e);},function(e){D(t,e);});}catch(e){D(t,e);}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}());}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var r=this.constructor;return u(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return B.prototype.then=_,B.all=function(e){return new N(this,e).promise},B.race=function(a){var n=this;return r(a)?new n(function(e,t){for(var r=a.length,i=0;i<r;i++)n.resolve(a[i]).then(e,t);}):new n(function(e,t){return t(new TypeError("You must pass an array to race."))})},B.resolve=b,B.reject=function(e){var t=new this(w);return D(t,e),t},B._setScheduler=function(e){a=e;},B._setAsap=function(e){s=e;},B._asap=s,B.polyfill=function(){var e=void 0;if(void 0!==j)e=j;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")();}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve());}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=B;},B.Promise=B},"object"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t();}).call(this,V("_process"),"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});},{_process:13}],6:[function(e,i,a){!function(e,t){if(void 0!==a&&void 0!==i)t(a,i);else {var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports;}}(this,function(e,t){var r=5e3,i="callback";function d(t){try{delete window[t];}catch(e){window[t]=void 0;}}function c(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t);}t.exports=function(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=n,l=o.timeout||r,u=o.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=o.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),i=u+"_"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),c(i),d(r);},s+=-1===s.indexOf("?")?"?":"&";var a=document.createElement("script");a.setAttribute("src",""+s+u+"="+r),o.charset&&a.setAttribute("charset",o.charset),a.id=i,document.getElementsByTagName("head")[0].appendChild(a),h=setTimeout(function(){e(new Error("JSONP request to "+n+" timed out")),d(r),c(i),window[r]=function(){d(r);};},l),a.onerror=function(){e(new Error("JSONP request to "+n+" failed")),d(r),c(i),h&&clearTimeout(h);};})};});},{}],7:[function(e,t,r){var i=i||function(s){if(!(void 0===s||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS("http://www.w3.org/1999/xhtml","a"),h="download"in u,d=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent),f=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0);},p=function(e){setTimeout(function(){"string"==typeof e?l().revokeObjectURL(e):e.remove();},4e4);},m=function(e){return /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));var i,a=this,n="application/octet-stream"===e.type,o=function(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var a=e["on"+t[i]];if("function"==typeof a)try{a.call(e,r||e);}catch(e){f(e);}}}(a,"writestart progress write writeend".split(" "));};if(a.readyState=a.INIT,h)return i=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=i,u.download=r,e=u,t=new MouseEvent("click"),e.dispatchEvent(t),o(),p(i),a.readyState=a.DONE;});!function(){if((c||n&&d)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=c?t.result:t.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(e,"_blank")||(s.location.href=e),e=void 0,a.readyState=a.DONE,o();},t.readAsDataURL(e),a.readyState=a.INIT}i||(i=l().createObjectURL(e)),n?s.location.href=i:s.open(i,"_blank")||(s.location.href=i);a.readyState=a.DONE,o(),p(i);}();},t=i.prototype;return "undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||"download",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||"download",r)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i);},{}],8:[function(e,t,r){r.read=function(e,t,r,i,a){var n,o,s=8*a-i-1,l=(1<<s)-1,u=l>>1,h=-7,d=r?a-1:0,c=r?-1:1,f=e[t+d];for(d+=c,n=f&(1<<-h)-1,f>>=-h,h+=s;0<h;n=256*n+e[t+d],d+=c,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=i;0<h;o=256*o+e[t+d],d+=c,h-=8);if(0===n)n=1-u;else {if(n===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),n-=u;}return (f?-1:1)*o*Math.pow(2,n-i)},r.write=function(e,t,r,i,a,n){var o,s,l,u=8*n-a-1,h=(1<<u)-1,d=h>>1,c=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:n-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),2<=(t+=1<=o+d?c/l:c*Math.pow(2,1-d))*l&&(o++,l/=2),h<=o+d?(s=0,o=h):1<=o+d?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));8<=a;e[r+f]=255&s,f+=p,s/=256,a-=8);for(o=o<<a|s,u+=a;0<u;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*m;};},{}],9:[function(e,t,r){var i;function v(e,t){return e.b===t.b&&e.a===t.a}function g(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,a=r.b-t.b;return 0<i+a?i<a?t.a-e.a+i/(i+a)*(e.a-r.a):t.a-r.a+a/(i+a)*(r.a-e.a):0}function _(e,t,r){var i=t.b-e.b,a=r.b-t.b;return 0<i+a?(t.a-r.a)*i+(t.a-e.a)*a:0}function b(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,a=r.a-t.a;return 0<i+a?i<a?t.b-e.b+i/(i+a)*(e.b-r.b):t.b-r.b+a/(i+a)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,a=r.a-t.a;return 0<i+a?(t.b-r.b)*i+(t.b-e.b)*a:0}function S(e,t,r,i){return (e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function o(e){var t=n(e.b);return a(t,e.c),a(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),f(t,e),i||(a(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e));}function d(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,f(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,f(t,J(t))),p(e);}function E(e){var t=n(e),r=t.b;return f(t,e.e),t.a=e.b.a,a(r,t.a),t.d=r.d=e.d,t=t.b,f(e.b,J(e.b)),f(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function c(e,t){var r=!1,i=n(e),a=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),f(i,e.e),f(a,t),i.a=e.b.a,a.a=t.a,i.d=a.d=e.d,e.d.a=a,r||s(i,e.d),i}function n(e){var t=new K,r=new K,i=e.b.h;return (((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function f(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r;}function a(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t;}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i;}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i;}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f;}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?g(t.a,r.a)?_(r.b.a,t.a,r.a)<=0:0<=_(t.b.a,r.a,t.a):_(r.b.a,e,r.a)<=0:r.b.a===e?0<=_(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null;}function h(e,t){d(e.a),e.c=!1,(e.a=t).i=e;}function R(e){for(var t=e.a.a;(e=ce(e)).a.a===t;);return e.c&&(h(e,t=c(de(e).a.b,e.a.e)),e=ce(e)),e}function O(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function D(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return !1}function A(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e);}function I(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=de(e),a=i.a;if(a.a!==t.a){if(!i.c){A(e);break}h(i,a=c(t.c.b,a.b));}t.c!==a&&(M(J(a),a),M(t,a)),A(e),t=i.a,e=i;}return t}function k(e,t,r,i,a,n){for(var o=!0;O(e,t,r.b),(r=r.c)!==i;);for(null===a&&(a=de(t).a.b.c);(r=(i=de(t)).a.b).a===a.a;)r.c!==a&&(M(J(r),r),M(J(a),r)),i.f=t.f-r.f,i.d=D(e,i.f),t.b=!0,!o&&B(e,t)&&(P(r,a),L(t),d(a)),o=!1,t=i,a=r;t.b=!0,n&&j(e,t);}function U(e,t,r,i,a){var n=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(n,r,i,e.c)||null,null===t.d&&(a?e.n||(Z(e,100156),e.n=!0):t.d=r[0]);}function F(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r);}function N(e,t,r,i,a){var n=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),o=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=a+1;i[a]=.5*o/(n+o),i[s]=.5*n/(n+o),e.g[0]+=i[a]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[a]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[a]*t.g[2]+i[s]*r.g[2];}function B(e,t){var r=de(t),i=t.a,a=r.a;if(g(i.a,a.a)){if(0<_(a.b.a,i.a,a.a))return !1;if(v(i.a,a.a)){if(i.a!==a.a){r=e.e;var n=i.a.h;if(0<=n){var o=(r=r.b).d,s=r.e,l=r.c,u=l[n];o[u]=o[r.a],(l[o[u]]=u)<=--r.a&&(u<=1?le(r,u):g(s[o[u>>1]],s[o[u]])?le(r,u):ue(r,u)),s[n]=null,l[n]=r.b,r.b=n;}else for(r.c[-(n+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;F(e,J(a),i);}}else E(a.b),M(i,J(a)),t.b=r.b=!0;}else {if(_(i.b.a,a.a,i.a)<0)return !1;ce(t).b=t.b=!0,E(i.b),M(J(a),i);}return !0}function G(e,t){var r=de(t),i=t.a,a=r.a,n=i.a,o=a.a,s=i.b.a,l=a.b.a,u=new ee;if(_(s,e.a,n),_(l,e.a,o),n===o||Math.min(n.a,s.a)>Math.max(o.a,l.a))return !1;if(g(n,o)){if(0<_(l,n,o))return !1}else if(_(s,o,n)<0)return !1;var h,d,c=s,f=n,p=l,m=o;if(g(c,f)||(h=c,c=f,f=h),g(p,m)||(h=p,p=m,m=h),g(c,p)||(h=c,c=p,p=h,h=f,f=m,m=h),g(p,f)?g(f,m)?((h=y(c,p,f))+(d=y(p,f,m))<0&&(h=-h,d=-d),u.b=S(h,p.b,d,f.b)):((h=_(c,p,f))+(d=-_(c,m,f))<0&&(h=-h,d=-d),u.b=S(h,p.b,d,m.b)):u.b=(p.b+f.b)/2,b(c,f)||(h=c,c=f,f=h),b(p,m)||(h=p,p=m,m=h),b(c,p)||(h=c,c=p,p=h,h=f,f=m,m=h),b(p,f)?b(f,m)?((h=x(c,p,f))+(d=x(p,f,m))<0&&(h=-h,d=-d),u.a=S(h,p.a,d,f.a)):((h=w(c,p,f))+(d=-w(c,m,f))<0&&(h=-h,d=-d),u.a=S(h,p.a,d,m.a)):u.a=(p.a+f.a)/2,g(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),g(c=g(n,o)?n:o,u)&&(u.b=c.b,u.a=c.a),v(u,n)||v(u,o))return B(e,t),!1;if(!v(s,e.a)&&0<=_(s,e.a,u)||!v(l,e.a)&&_(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(a.b,i),i=de(t=R(t)).a,I(e,de(t),r),k(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=_(s,e.a,u)&&(ce(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),_(l,e.a,u)<=0&&(t.b=r.b=!0,E(a.b),a.a.b=e.a.b,a.a.a=e.a.a),!1;for(E(a.b),M(i.e,J(a)),o=(n=r=t).a.b.a;(n=ce(n)).a.b.a===o;);return n=de(t=n).a.b.c,r.a=J(a),k(e,t,(a=I(e,r,null)).c,i.b.c,n,!0),!0}return E(i.b),E(a.b),M(J(a),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,a=[0,0,0,0],u=[n.d,s.d,o.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,N(i,n,s,a,0),N(i,o,l,a,2),U(e,i,u,a,!0),ce(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=de(t);;){for(;r.b;)r=de(t=r);if(!t.b&&(null===(t=ce(r=t))||!t.b))break;t.b=!1;var i,a=t.a,n=r.a;if(i=a.b.a!==n.b.a)e:{var o=de(i=t),s=i.a,l=o.a,u=void 0;if(g(s.b.a,l.b.a)){if(_(s.b.a,l.b.a,s.a)<0){i=!1;break e}ce(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d;}else {if(0<_(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=o.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d;}i=!0;}if(i&&(r.c?(L(r),d(n),n=(r=de(t)).a):t.c&&(L(t),d(a),a=(t=ce(r)).a)),a.a!==n.a)if(a.b.a===n.b.a||t.c||r.c||a.b.a!==e.a&&n.b.a!==e.a)B(e,t);else if(G(e,t))break;a.a===n.a&&a.b.a===n.b.a&&(P(n,a),L(t),d(a),t=ce(r));}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(o=new he).a=i.c.b;for(var a=(l=r.f).a;null!==(a=a.a).b&&!l.c(l.b,o,a.b););var n=de(l=a.b),o=l.a;a=n.a;if(0===_(o.b.a,i,o.a))v((o=l.a).a,i)||v(o.b.a,i)||(E(o.b),l.c&&(d(o.c),l.c=!1),M(i.c,o),V(r,i));else {var s=g(a.b.a,o.b.a)?l:n;n=void 0;l.d||s.c?(n=s===l?c(i.c.b,o.e):c(a.b.c.b,i.c).b,s.c?h(s,n):((l=O(o=r,l,n)).f=ce(l).f+l.a.f,l.d=D(o,l.f)),V(r,i)):k(r,l,i.c,i.c,null,!0);}return}if(l=(o=de(r=R(r.i))).a,(o=I(e,o,null)).c===l){o=(l=o).c,a=de(r),n=r.a,s=a.a;var l,u=!1;n.b.a!==s.b.a&&G(e,r),v(n.a,e.a)&&(M(J(o),n),o=de(r=R(r)).a,I(e,de(r),a),u=!0),v(s.a,e.a)&&(M(l,J(s)),l=I(e,a,null),u=!0),u?k(e,r,l.c,o,o,!0):(i=g(s.a,n.a)?J(s):n,k(e,r,i=c(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r));}else k(e,r,o.c,l,l,!0);}function z(e,t){var r=new he,i=o(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i;}function H(e){this.a=new X,this.b=e,this.c=u;}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this;}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null;}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t();}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w();}}function Z(e,t){e.p&&e.p(t,e.c);}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1;}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0;}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b;}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0;}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ae;}function re(e,t){if(e.e){var r,i=e.b,a=++i.a;return 2*a>i.f&&(i.f*=2,i.c=ne(i.c,i.f+1)),0===i.b?r=a:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=a,i.d[a]=r,i.h&&ue(i,a),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&g(oe(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ae(){this.d=ne([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1;}function ne(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function oe(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,a=t[1],n=r[a];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[a]=null,i[a]=e.b,e.b=a,0<--e.a&&le(e,1)),n}function le(e,t){for(var r=e.d,i=e.e,a=e.c,n=t,o=r[n];;){var s=n<<1;s<e.a&&g(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||g(i[o],i[l])){a[r[n]=o]=n;break}a[r[n]=l]=n,n=s;}}function ue(e,t){for(var r=e.d,i=e.e,a=e.c,n=t,o=r[n];;){var s=n>>1,l=r[s];if(0===s||g(i[l],i[o])){a[r[n]=o]=n;break}a[r[n]=l]=n,n=s;}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1;}function de(e){return e.e.c.b}function ce(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0);},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901);},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900);}return !1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r;},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900);}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var a=0;a<3;++a){var n=e[a];n<-1e150&&(n=-1e150,r=!0),1e150<n&&(n=1e150,r=!0),i[a]=n;}r&&Z(this,100155),null===(r=this.q)?M(r=o(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r;},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e;},i.t=function(){Y(this,1),this.d=2,this.q=null;},i.v=function(){Y(this,2),this.d=1;},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],a=this.j[1],o=this.j[2]];if(0===l&&0===a&&0===o){for(var a=[-2e150,-2e150,-2e150],n=[2e150,2e150,2e150],o=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<n[u]&&(n[u]=h,s[u]=l),h>a[u]&&(a[u]=h,o[u]=l);}if(l=0,a[1]-n[1]>a[0]-n[0]&&(l=1),a[2]-n[2]>a[l]-n[l]&&(l=2),n[l]>=a[l])i[0]=0,i[1]=0,i[2]=1;else {for(a=0,n=s[l],o=o[l],s=[0,0,0],n=[n.g[0]-o.g[0],n.g[1]-o.g[1],n.g[2]-o.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-o.g[0],u[1]=l.g[1]-o.g[1],u[2]=l.g[2]-o.g[2],s[0]=n[1]*u[2]-n[2]*u[1],s[1]=n[2]*u[0]-n[0]*u[2],s[2]=n[0]*u[1]-n[1]*u[0],a<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(a=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);a<=0&&(i[0]=i[1]=i[2]=0,i[T(n)]=1);}r=!0;}for(s=T(i),l=this.b.c,a=(s+1)%3,o=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[a],i.a=s*i.g[o];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((a=l.a).f<=0))for(;i+=(a.a.b-a.b.a.b)*(a.a.a+a.b.a.a),(a=a.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a;}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,a=l.e,v(l.a,l.b.a)&&l.e.e!==l&&(F(this,a,l),d(l),a=(l=a).e),a.e===l&&(a!==l&&(a!==r&&a!==r.b||(r=r.h),d(a)),l!==r&&l!==r.b||(r=r.h),d(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort((r=e.c,function(e,t){return g(r[e],r[t])?1:-1})),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0;}(e.b);var r;}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=oe(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=oe(l.b),g(l,r))){r=l;break e}if(null===r||!v(r,i))break;r=ie(this.e),F(this,i.c,r.c);}V(this,i);}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),d(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:d(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;g(l.b.a,l.a);l=l.c.b);for(;g(l.a,l.b.a);l=l.e);for(a=l.c.b,o=void 0;l.e!==a;)if(g(l.b.a,a.a)){for(;a.e!==l&&(g((t=a.e).b.a,t.a)||_(a.a,a.b.a,a.e.b.a)<=0);)a=(o=c(a.e,a)).b;a=a.c.b;}else {for(;a.e!==l&&(g((e=l.c.b).a,e.b.a)||0<=_(l.b.a,l.a,l.c.b.a));)l=(o=c(l,l.c.b)).b;l=l.e;}for(;a.e.e!==l;)a=(o=c(a.e,a)).b;}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c);}}else {for(i=this.b,r=!!this.l,l=!1,a=-1,o=i.a.d;o!==i.a;o=o.d)if(o.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=o.a;r&&(a!==(n=s.b.d.c?0:1)&&(a=n,this.l&&this.l(!!a,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==o.a;);l&&this.i&&this.i(this.c);}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(o=(a=l.a).e,s=void 0;o=(s=o).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,f(s,J(s))),(n=s.b).c===n?m(n.a,null):(n.a.c=n.c,f(n,J(n))),p(s)),s!==a;);a=l.d,((l=l.b).d=a).b=l;}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null;},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess);},{}],10:[function(e,t,r){function P(e,t,r,i){for(var a=e[t++],n=1<<a,o=n+1,s=o+1,l=a+1,u=(1<<l)-1,h=0,d=0,c=0,f=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==f;)d|=e[t++]<<h,h+=8,1===f?f=e[t++]:--f;if(h<l)break;var v=d&u;if(d>>=l,h-=l,v!==n){if(v===o)break;for(var g=v<s?v:m,y=0,_=g;n<_;)_=p[_]>>8,++y;var b=_;if(i<c+y+(g!==v?1:0))return void console.log("Warning, gif stream longer than expected.");r[c++]=b;var x=c+=y;for(g!==v&&(r[c++]=b),_=g;y--;)_=p[_],r[--x]=255&_,_>>=8;null!==m&&s<4096&&(p[s++]=m<<8|b,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=v;}else s=o+1,u=(1<<(l=a+1))-1,m=null;}return c!==i&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(g,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,_=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error("Width/Height invalid.");function b(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return t}g[y++]=71,g[y++]=73,g[y++]=70,g[y++]=56,g[y++]=57,g[y++]=97;var a=0,n=0;if(null!==_){for(var o=b(_);o>>=1;)++a;if(o=1<<a,--a,void 0!==r.background){if(o<=(n=r.background))throw new Error("Background index out of range.");if(0===n)throw new Error("Background index explicitly passed as 0.")}}if(g[y++]=255&e,g[y++]=e>>8&255,g[y++]=255&t,g[y++]=t>>8&255,g[y++]=(nu