Pattern/index.html
Pattern/li
aries/p5.min.js
*! p5.js v1.2.0 December 19, 2020 *
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).p5=e()}}(function(){return function a(o,s,l){function u(t,e){if(!s[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new E
or("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[t]={exports:{}};o[t][0].call(n.exports,function(e){return u(o[t][1][e]||e)},n,n.exports,a,o,s,l)}return s[t].exports}for(var h="function"==typeof require&&require,e=0;e
ay=function(e){var t,r,i=c(e),n=i[0],a=i[1],o=new h(function(e,t){return 3*(e+t)/4-t}(n,a)),s=0,l=0
l;r+=4)t=u[e.charCodeAt(r)]
18|u[e.charCodeAt(r+1)]
12|u[e.charCodeAt(r+2)]
6|u[e.charCodeAt(r+3)],o[s++]=t
16&255,o[s++]=t
8&255,o[s++]=255&t;2===a&&(t=u[e.charCodeAt(r)]
2|u[e.charCodeAt(r+1)]
4,o[s++]=255&t);1===a&&(t=u[e.charCodeAt(r)]
10|u[e.charCodeAt(r+1)]
4|u[e.charCodeAt(r+2)]
2,o[s++]=t
8&255,o[s++]=255&t);return o},r.fromByteA
ay=function(e){for(var t,r=e.length,i=r%3,n=[],a=0,o=r-i;a
2]+s[t
4&63]+"==")):2==i&&(t=(e[r-2]
8)+e[r-1],n.push(s[t
10]+s[t
4&63]+s[t
2&63]+"="));return n.join("")};for(var s=[],u=[],h="undefined"!=typeof Uint8A
ay?Uint8A
ay:A
ay,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,a=i.length;n
or("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,n,a=[],o=t;o
;o+=3)i=(e[o]
16&16711680)+(e[o+1]
8&65280)+(255&e[o+2]),a.push(s[(n=i)
18&63]+s[n
12&63]+s[n
6&63]+s[63&n]);return a.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],2:[function(e,t,r){},{}],3:[function(e,t,r){arguments[4][2][0].apply(r,arguments)},{dup:2}],4:[function(N,e,F){(function(c){"use strict";var i=N("base64-js"),a=N("ieee754"),e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function o(e){if(
e)throw new RangeE
or('The value "'+e+'" is invalid for option "size"');var t=new Uint8A
ay(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"!=typeof e)return n(e,t,r);if("string"==typeof t)throw new TypeE
or('The "string" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeE
or("Unknown encoding: "+t);var r=0|f(e,t),i=o(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(A
ayBuffer.isView(e))return u(e);if(null==e)throw new TypeE
or("The first argument must be one of type string, Buffer, A
ayBuffer, A
ay, or A
ay-like Object. Received type "+typeof e);if(A(e,A
ayBuffer)||e&&A(e.buffer,A
ayBuffer))return function(e,t,r){if(t<0||e.byteLength
or('"offset" is outside of buffer bounds');if(e.byteLength
or('"length" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8A
ay(e):void 0===r?new Uint8A
ay(e,t):new Uint8A
ay(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if("number"==typeof e)throw new TypeE
or('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(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||I(e.length)?o(0):u(e);if("Buffer"===e.type&&A
ay.isA
ay(e.data))return u(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeE
or("The first argument must be one of type string, Buffer, A
ayBuffer, A
ay, or A
ay-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeE
or('"size" argument must be of type number');if(e<0)throw new RangeE
or('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),o(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=o(t),i=0;i
=e)throw new RangeE
or("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(A
ayBuffer.isView(e)||A(e,A
ayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeE
or('The "string" argument must be one of type string, Buffer, or A
ayBuffer. Received type '+typeof e);var r=e.length,i=2
1;case"base64":return D(e).length;default:if(n)return i?-1:R(e).length;t=(""+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647
?r=2147483647:
-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),
0&&(r=e.length+r),
=e.length){if(n)return-1;r=e.length-1}else if(
0){if(!n)return-1;r=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8A
ay.prototype.indexOf?n?Uint8A
ay.prototype.indexOf.call(e,t,r):Uint8A
ay.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeE
or("val must be string, number or Buffer")}function m(e,t,r,i,n){var a,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,
=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var h=-1;for(a=r;a
+l&&(r=s-l),a=r;0<=a;a--){for(var c=!0,f=0;f
eak}if(c)return a}return-1}function v(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var a=t.length;a/2
e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function g(e,t,r,i){return k(function(e,t){for(var r,i,n,a=[],o=0;o
8,n=r%256,a.push(n),a.push(i);return a}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteA
ay(e):i.fromByteA
ay(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n
;){var a,o,s,l,u=e[n],h=null,c=239
eak;case 2:128==(192&(a=e[n+1]))&&127<(l=(31&u)
6|63&a)&&(h=l);
eak;case 3:a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&2047<(l=(15&u)
12|(63&a)
6|63&o)&&(l<55296||57343
eak;case 4:a=e[n+1],o=e[n+2],s=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(l=(15&u)
18|(63&a)
12|(63&o)
6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535
10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i
ay(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8A
ay.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.e
or||console.e
or("This
owser lacks typed a
ay (Uint8A
ay) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old
owser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8A
ay.prototype),Object.setPrototypeOf(c,Uint8A
ay),c.alloc=function(e,t,r){return n=t,a=r,s(i=e),i<=0?o(i):void 0!==n?"string"==typeof a?o(i).fill(n,a):o(i).fill(n):o(i);var i,n,a},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8A
ay)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8A
ay)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeE
or('The "buf1", "buf2" arguments must be one of type Buffer or Uint8A
ay');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n
eak}return
i?-1:i
?1:0},c.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}},c.concat=function(e,t){if(!A
ay.isA
ay(e))throw new TypeE
or('"list" argument must be an A
ay of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;
e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;
e.length;++r){var a=e[r];if(A(a,Uint8A
ay)&&(a=c.from(a)),!c.isBuffer(a))throw new TypeE
or('"list" argument must be an A
ay of Buffers');a.copy(i,n),n+=a.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeE
or("Buffer size must be a multiple of 16-bits");for(var t=0;t
or("Buffer size must be a multiple of 32-bits");for(var t=0;t
or("Buffer size must be a multiple of 64-bits");for(var t=0;t
this.length)return"";if((void 0===r||
this.length)&&(r=this.length),
=0)return"";if((
=0)<=(t
=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return w(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(i)throw new TypeE
or("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeE
or("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",t=F.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),""},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8A
ay)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeE
or('The "target" argument must be one of type Buffer or Uint8A
ay. 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===n&&(n=this.length),t<0||
e.length||i<0||n>this.length)throw new RangeE
or("out of range index");if(n<=i&&
=t)return 0;if(n<=i)return-1;if(
=t)return 1;if(this===e)return 0;for(var a=(n
=0)-(i
=0),o=(
=0)-(t
=0),s=Math.min(a,o),l=this.slice(i,n),u=e.slice(t,r),h=0;heak}return aor("Buffer.write(string, encoding, offset[, length]) is no longer supported");t
=0,isFinite(r)?(
=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n
)&&(r=n),00||t<0)||t>this.length)throw new RangeE
or("Attempt to write outside buffer bounds");i=i||"utf8";for(var a,o,s,l,u,h,c=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return u=t,h=r,k(R(e,(l=this).length-u),l,u,h);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return a=this,o=t,s=r,k(D(e),a,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,e,t,r);default:if(c)throw new TypeE
or("Unknown encoding: "+i);i=(""+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:A
ay.prototype.slice.call(this._a
||this,0)}};var x=4096;function w(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n
;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n
;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||
0||i
)&&(r=i);for(var n="",a=t;a
;++a)n+=U[e[a]];return n}function T(e,t,r){for(var i=e.slice(t,r),n="",a=0;aor("offset is not uint");if(
e+t)throw new RangeE
or("Trying to access beyond buffer length")}function C(e,t,r,i,n,a){if(!c.isBuffer(e))throw new TypeE
or('"buffer" argument must be a Buffer instance');if(nor('"value" argument is out of bounds');if(r+i>e.length)throw new RangeE
or("Index out of range")}function L(e,t,r,i){if(r+i>e.length)throw new RangeE
or("Index out of range");if(
0)throw new RangeE
or("Index out of range")}function O(e,t,r,i,n){return t=+t,
=0,n||L(e,0,r,4),a.write(e,t,r,i,23,4),r+4}function P(e,t,r,i,n){return t=+t,
=0,n||L(e,0,r,8),a.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):
e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):
t&&(t=r),tay(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e
=0,t
=0,r||E(e,t,this.length);for(var i=this[e],n=1,a=0;++a=0,t
=0,r||E(e,t,this.length);for(var i=this[e+--t],n=1;0=0,t||E(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e
=0,t||E(e,2,this.length),this[e]|this[e+1]
8},c.prototype.readUInt16BE=function(e,t){return e
=0,t||E(e,2,this.length),this[e]
8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e
=0,t||E(e,4,this.length),(this[e]|this[e+1]
8|this[e+2]
16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e
=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]
16|this[e+2]
8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e
=0,t
=0,r||E(e,t,this.length);for(var i=this[e],n=1,a=0;++a=0,t
=0,r||E(e,t,this.length);for(var i=t,n=1,a=this[e+--i];0=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e
=0,t||E(e,2,this.length);var r=this[e]|this[e+1]
8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e
=0,t||E(e,2,this.length);var r=this[e+1]|this[e]
8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e
=0,t||E(e,4,this.length),this[e]|this[e+1]
8|this[e+2]
16|this[e+3]
24},c.prototype.readInt32BE=function(e,t){return e
=0,t||E(e,4,this.length),this[e]
24|this[e+1]
16|this[e+2]
8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e
=0,t||E(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e
=0,t||E(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e
=0,t||E(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e
=0,t||E(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t
=0,
=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,a=0;for(this[t]=255&e;++a
&&(n*=256);)this[t+a]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t
=0,
=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,a=1;for(this[t+n]=255&e;0<=--n&&(a*=256);)this[t+n]=e/a&255;return t+r},c.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},c.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},c.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},c.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},c.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},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t
=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a
&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o
0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t
=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;0<=--a&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o
0)-s&255;return t+r},c.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},c.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},c.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},c.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},c.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},c.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeE
or("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=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeE
or("targetStart out of bounds");if(
0||
=this.length)throw new RangeE
or("Index out of range");if(i<0)throw new RangeE
or("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-tay.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&
t&&tay.prototype.set.call(e,this.suba
ay(r,i),t);return n},c.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 TypeE
or("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeE
or("Unknown encoding: "+i);if(1===e.length){var n=e.charCodeAt(0);("utf8"===i&&n<128||"latin1"===i)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length)throw new RangeE
or("Out of range index");if(
=t)return this;var a;if(t
=0,r=void 0===r?this.length:
0,"number"==typeof(e=e||0))for(a=t;a
;++a)this[a]=e;else{var o=c.isBuffer(e)?e:c.from(e,i),s=o.length;if(0===s)throw new TypeE
or('The value "'+e+'" is invalid for argument "value"');for(a=0;a
-t;++a)this[a+t]=o[a%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,a=[],o=0;o57344){if(!n){if(56319
){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===i){-1<(t-=3)&&a.push(239,191,189);continue}n=r;continue}if(
56320){-1<(t-=3)&&a.push(239,191,189),n=r;continue}r=65536+(n-55296
10|r-56320)}else n&&-1<(t-=3)&&a.push(239,191,189);if(n=null,
128){if(--t<0)
eak;a.push(r)}else if(
2048){if((t-=2)<0)
eak;a.push(
6|192,63&r|128)}else if(
65536){if((t-=3)<0)
eak;a.push(
12|224,
6&63|128,63&r|128)}else{if(!(
1114112))throw new E
or("Invalid code point");if((t-=4)<0)
eak;a.push(
18|240,
12&63|128,
6&63|128,63&r|128)}}return a}function D(e){return i.toByteA
ay(function(e){if((e=(e=e.split("=")[0]).trim().replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e="0123456789abcdef",t=new A
ay(256),r=0;
16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:9}],5:[function(e,t,r){"use strict";t.exports=e("./").polyfill()},{"./":6}],6:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){"use strict";function l(e){return"function"==typeof e}var r=A
ay.isA
ay?A
ay.isA
ay:function(e){return"[object A
ay]"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,o=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):g())};var e="undefined"!=typeof window?window:void 0,a=e||{},s=a.MutationObserver||a.WebKitMutationObserver,u="undefined"==typeof self&&void 0!==j&&"[object process]"==={}.toString.call(j),h="undefined"!=typeof Uint8ClampedA
ay&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new A
ay(1e3);function d(){for(var e=0;eor("You cannot resolve a promise with itself"));else if(n=typeof(i=e),null===i||"object"!=n&&"function"!=n)P(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function O(e){e._one
or&&e._one
or(e._result),k(e)}function P(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&o(k,e))}function R(e,t){e._state===S&&(e._state=T,e._result=t,o(O,e))}function D(e,t,r,i){var n=e._subscribers,a=n.length;e._one
or=null,n[a]=t,n[a+M]=r,n[a+T]=i,0===a&&e._state&&o(k,e)}function k(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,a=e._result,o=0;oor("A promises callback cannot return that same promise."))}else a=i;t._state!==S||(n&&s?L(t,a):!1===s?R(t,o):e===M?P(t,a):e===T&&R(t,a))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&tay(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&P(this.promise,this._result))):R(this.promise,new E
or("A
ay Methods must be provided an A
ay"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(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)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&("function"!=typeof e&&function(){throw new TypeE
or("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof G?function(t,e){try{e(function(e){L(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeE
or("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var a=this;return r(n)?new a(function(e,t){for(var r=n.length,i=0;i
;i++)a.resolve(n[i]).then(e,t)}):new a(function(e,t){return t(new TypeE
or("You must pass an a
ay to race."))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){o=e},B._asap=o,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new E
or("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,z("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:14}],7:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){"use strict";var r=5e3,i="callback";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}t.exports=function(a){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a,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),f(i),c(r)},s+=-1===s.indexOf("?")?"?":"&";var n=document.createElement("script");n.setAttribute("src",""+s+u+"="+r),o.charset&&n.setAttribute("charset",o.charset),n.id=i,document.getElementsByTagName("head")[0].appendChild(n),h=setTimeout(function(){e(new E
or("JSONP request to "+a+" timed out")),c(r),f(i),window[r]=function(){c(r)}},l),n.one
or=function(){e(new E
or("JSONP request to "+a+" failed")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],8:[function(e,t,r){var i=i||function(s){"use strict";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,c=/constructo
i.test(s.HTMLElement)||s.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent),d=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));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e["on"+t[i]];if("function"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(a,"writestart progress write writeend".split(" "))}var n,a=this,o="application/octet-stream"===e.type;if(a.readyState=a.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent("click"),e.dispatchEvent(t),i(),p(n),a.readyState=a.DONE});!function(){if((f||o&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(e,"_blank")||(s.location.href=e),e=void 0,a.readyState=a.DONE,i()},t.readAsDataURL(e),a.readyState=a.INIT}(n=n||l().createObjectURL(e),o)?s.location.href=n:s.open(n,"_blank")||(s.location.href=n);a.readyState=a.DONE,i(),p(n)}()},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.e
or=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.one
or=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)},{}],9:[function(e,t,r){r.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,l=(1
s)-1,u=l
1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,a=d&(1
-h)-1,d
=-h,h+=s;0-h)-1,a
=-h,h+=i;0u)-1,c=h
1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-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+c?f/l:f*Math.pow(2,1-c))*l&&(o++,l/=2),h<=o+c?(s=0,o=h):1<=o+c?(s=(t*l-1)*Math.pow(2,n),o+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(o=o
n|s,u+=n;0t.b||e.b===t.b&&e.a<=t.a}function g(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 00?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+
(e+r)*(t-i)}function o(e){var t=a(e.b);return n(t,e.c),n(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)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(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,d(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,d(t,J(t))),p(e)}function T(e){var t=a(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(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 f(e,t){var r=!1,i=a(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function a(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 d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(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 E(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 L(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?y(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=g(t.b.a,e,t.a),(e=g(r.b.a,e,r.a))<=t)}function O(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){c(e.a),e.c=!1,(e.a=t).i=e}function P(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(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 0eak}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),k(e),t=i.a,e=i}return t}function I(e,t,r,i,n,a){for(var o=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=D(e,i.f),t.b=!0,!o&&B(e,t)&&(L(r,n),O(t),c(n)),o=!1,t=i,n=r;t.b=!0,a&&j(e,t)}function U(e,t,r,i,n){var a=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(a,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(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 F(e,t,r,i,n){var a=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=n+1;i[n]=.5*o/(a+o),i[s]=.5*a/(a+o),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(y(i.a,n.a)){if(0
(n.b.a,i.a,n.a))return!1;if(v(i.a,n.a)){if(i.a!==n.a){r=e.e;var a=i.a.h;if(0<=a){var o=(r=r.b).d,s=r.e,l=r.c,u=l[a];o[u]=o[r.a],(l[o[u]]=u)<=--r.a&&(u<=1?le(r,u):y(s[o[u
1]],s[o[u]])?le(r,u):ue(r,u)),s[a]=null,l[a]=r.b,r.b=a}else for(r.c[-(a+1)]=null;0
.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else T(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,T(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,a=i.a,o=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,a),b(l,e.a,o),a===o||Math.min(a.a,s.a)>Math.max(o.a,l.a))return!1;if(y(a,o)){if(0
(l,a,o))return!1}else if(b(s,o,a)<0)return!1;var h,c,f=s,d=a,p=l,m=o;if(y(f,d)||(h=f,f=d,d=h),y(p,m)||(h=p,p=m,m=h),y(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),y(p,d)?y(d,m)?((h=g(f,p,d))+(c=g(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,y(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=y(a,o)?a:o,y(f,u)&&(u.b=f.b,u.a=f.a),v(u,a)||v(u,o))return B(e,t),!1;if(!v(s,e.a)&&0<=b(s,e.a,u)||!v(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return T(i.b),M(n.b,i),i=ce(t=P(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,T(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,T(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(T(n.b),M(i.e,J(n)),o=(a=r=t).a.b.a;(a=fe(a)).a.b.a===o;);return a=ce(t=a).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,a,!0),!0}return T(i.b),T(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[a.d,s.d,o.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,a,s,n,0),F(i,o,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))
eak;t.b=!1;var i,n=t.a,a=r.a;if(i=n.b.a!==a.b.a)e:{var o=ce(i=t),s=i.a,l=o.a,u=void 0;if(y(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;
eak e}fe(i).b=i.b=!0,u=T(s),M(l.b,u),u.d.c=i.d}else{if(0
(l.b.a,s.b.a,l.a)){i=!1;
eak e}i.b=o.b=!0,u=T(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(O(r),c(a),a=(r=ce(t)).a):t.c&&(O(t),c(n),n=(t=fe(r)).a)),n.a!==a.a)if(n.b.a===a.b.a||t.c||r.c||n.b.a!==e.a&&a.b.a!==e.a)B(e,t);else if(G(e,t))
eak;n.a===a.a&&n.b.a===a.b.a&&(L(a,n),O(t),c(n),t=fe(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 n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,o,n.b););var a=ce(l=n.b),o=l.a;n=a.a;if(0===b(o.b.a,i,o.a))v((o=l.a).a,i)||v(o.b.a,i)||(T(o.b),l.c&&(c(o.c),l.c=!1),M(i.c,o),V(r,i));else{var s=y(n.b.a,o.b.a)?l:a;a=void 0;l.d||s.c?(a=s===l?f(i.c.b,o.e):f(n.b.c.b,i.c).b,s.c?h(s,a):((l=R(o=r,l,a)).f=fe(l).f+l.a.f,l.d=D(o,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(o=ce(r=P(r.i))).a,(o=A(e,o,null)).c===l){o=(l=o).c,n=ce(r),a=r.a,s=n.a;var l,u=!1;a.b.a!==s.b.a&&G(e,r),v(a.a,e.a)&&(M(J(o),a),o=ce(r=P(r)).a,A(e,ce(r),n),u=!0),v(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,o,o,!0):(i=y(s.a,a.a)?J(s):a,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(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 q,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 q(r,t.a,t),t.a.c=e,t.a=e}function q(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function X(){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.deak;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();
eak;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 ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=ae(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),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&&y(oe(e.b),t))return se(e.b);for(;--e.a,0ay(t),i=0;i1;se.a||y(i[o],i[l])){n[r[a]=o]=a;
eak}n[r[a]=l]=a,a=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,a=t,o=r[a];;){var s=a
1,l=r[s];if(0==s||y(i[l],i[o])){n[r[a]=o]=a;
eak}n[r[a]=l]=a,a=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=X.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)}
eak;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;
eak;case 100104:case 100110:this.l=r;
eak;case 100101:case 100107:this.k=r;
eak;case 100102:case 100108:this.i=r;
eak;case 100103:case 100109:this.p=r;
eak;case 100105:case 100111:this.o=r;
eak;case 100112:this.r=r;
eak;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var a=e[n];a<-1e150&&(a=-1e150,r=!0),1e150n[u]&&(n[u]=h,o[u]=l)}if(l=0,n[1]-a[1]>n[0]-a[0]&&(l=1),n[2]-a[2]>n[l]-a[l]&&(l=2),a[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,a=s[l],o=o[l],s=[0,0,0],a=[a.g[0]-o.g[0],a.g[1]-o.g[1],a.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]=a[1]*u[2]-a[2]*u[1],s[1]=a[2]*u[0]-a[0]*u[2],s[2]=a[0]*u[1]-a[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[E(a)]=1)}r=!0}for(s=E(i),l=this.b.c,n=(s+1)%3,o=(s+2)%3,s=0eak e}if(null===r||!v(r,i))
eak;r=ie(this.e),N(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,O(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&&(L(l.c,l),c(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:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;y(l.b.a,l.a);l=l.c.b);for(;y(l.a,l.b.a);l=l.e);for(n=l.c.b,o=void 0;l.e!==n;)if(y(l.b.a,n.a)){for(;n.e!==l&&(y((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(o=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(y((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(o=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(o=f(n.e,n)).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,n=-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&&(n!==(a=s.b.d.c?0:1)&&(n=a,this.l&&this.l(!!n,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=(n=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,d(s,J(s))),(a=s.b).c===a?m(a.a,null):(a.a.c=a.c,d(a,J(a))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:X,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},e
orType:{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}},X.prototype.gluDeleteTess=X.prototype.x,X.prototype.gluTessProperty=X.prototype.B,X.prototype.gluGetTessProperty=X.prototype.y,X.prototype.gluTessNormal=X.prototype.A,X.prototype.gluTessCallback=X.prototype.z,X.prototype.gluTessVertex=X.prototype.C,X.prototype.gluTessBeginPolygon=X.prototype.u,X.prototype.gluTessBeginContour=X.prototype.t,X.prototype.gluTessEndContour=X.prototype.v,X.prototype.gluTessEndPolygon=X.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],11:[function(e,t,r){"use strict";function L(e,t,r,i){for(var n=e[t++],a=1
n,o=1+a,s=1+o,l=n+1,u=(1
l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32A
ay(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]
h,h+=8,1===d?d=e[t++]:--d;if(heak;var v=c&u;if(c
=l,h-=l,v!=a){if(v==o)
eak;for(var y=v;)b=p[b]
8,++g;var _=b;if(i=8;null!==m&&s<4096&&(p[s++]=m
8|_,u+1<=s&&l<12&&(++l,u=u
1|1)),m=v}else s=1+o,u=(1
(l=n+1))-1,m=null}return f!==i&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(y,e,t,r){var g=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535or("Width/Height invalid.");function _(e){var t=e.length;if(t<2||256or("Invalid code/color length, must be power of 2 and 2 .. 256.");return t}y[g++]=71,y[g++]=73,y[g++]=70,y[g++]=56,y[g++]=57,y[g++]=97;var n=0,a=0;if(null!==b){for(var o=_(b);o
=1;)++n;if(o=1
n,--n,void 0!==r.background){if(o<=(a=r.background))throw new E
or("Background index out of range.");if(0===a)throw new E
or("Background index explicitly passed as 0.")}}if(y[g++]=255&e,y[g++]=e
8&255,y[g++]=255&t,y[g++]=t
8&255,y[g++]=(null!==b?128:0)|n,y[g++]=a,y[g++]=0,null!==b)for(var s=0,l=b.length;s16&255,y[g++]=u
8&255,y[g++]=255&u}if(null!==i){if(i<0||65535or("Loop count invalid.");y[g++]=33,y[g++]=255,y[g++]=11,y[g++]=78,y[g++]=69,y[g++]=84,y[g++]=83,y[g++]=67,y[g++]=65,y[g++]=80,y[g++]=69,y[g++]=50,y[g++]=46,y[g++]=48,y[g++]=3,y[g++]=1,y[g++]=255&i,y[g++]=i
8&255,y[g++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,a){if(!0===x&&(--g,x=!1),a=void 0===a?{}:a,e<0||t<0||65535or("x/y invalid.");if(
=0||i<=0||65535
||65535or("Width/Height invalid.");if(n.length
*i)throw new E
or("Not enough pixels for the frame size.");var o=!0,s=a.palette;if(null==s&&(o=!1,s=b),null==s)throw new E
or("Must supply either a local or global palette.");for(var l=_(s),u=0;l
=1;)++u;l=1
u;var h=void 0===a.delay?0:a.delay,c=void 0===a.disposal?0:a.disposal;if(c<0||3or("Disposal out of range.");var f=!1,d=0;if(void 0!==a.transparent&&null!==a.transparent&&(f=!0,(d=a.transparent)<0||l<=d))throw new E
or("Transparent color index.");if(0===c&&!f&&0===h||(y[g++]=33,y[g++]=249,y[g++]=4,y[g++]=c
2|(!0===f?1:0),y[g++]=255&h,y[g++]=h
8&255,y[g++]=d,y[g++]=0),y[g++]=44,y[g++]=255&e,y[g++]=e
8&255,y[g++]=255&t,y[g++]=t
8&255,y[g++]=255&r,y[g++]=
8&255,y[g++]=255&i,y[g++]=i
8&255,y[g++]=!0===o?128|u-1:0,!0===o)for(var p=0,m=s.length;p16&255,y[g++]=v
8&255,y[g++]=255&v}return g=function(t,r,e,i){t[r++]=e;var n=r++,a=1
e,o=a-1,s=1+a,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c
=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e
h,h+=u,f(8)}var p=i[0]&o,m={};d(a);for(var v=1,y=i.length;v8|g,_=m[b];if(void 0===_){for(c|=p
h,h+=u;8<=h;)t[r++]=255&c,c
=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(a),l=1+s,u=e+1,m={}):(1
u<=l&&++u,m[b]=l++),p=g}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(y,g,u<2?2:u,n)},this.end=function(){return!1===x&&(y[g++]=59,x=!0),g},this.getOutputBuffer=function(){return y},this.setOutputBuffer=function(e){y=e},this.getOutputBufferPosition=function(){return g},this.setOutputBufferPosition=function(e){g=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new E
or("Invalid GIF 87a/89a header.");var w=x[e++]|x[e++]
8,t=x[e++]|x[e++]
8,r=x[e++],i=
7,n=1
1+(7&r);x[e++],x[e++];var a=null,o=null;i&&(a=e,e+=3*(o=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw E
or("Invalid block size");if(0===C)
eak;e+=C}
eak;case 249:if(4!==x[e++]||0!==x[e+4])throw new E
or("Invalid graphics extension block.");var d=x[e++];u=x[e++]|x[e++]
8,h=x[e++],0==(1&d)&&(h=null),c=d
2&7,e++;
eak;case 254:for(;;){if(!(0<=(C=x[e++])))throw E
or("Invalid block size");if(0===C)
eak;e+=C}
eak;default:throw new E
or("Unknown graphic control label: 0x"+x[e-1].toString(16))}
eak;case 44:var p=x[e++]|x[e++]
8,m=x[e++]|x[e++]
8,v=x[e++]|x[e++]
8,y=x[e++]|x[e++]
8,g=x[e++],b=g
6&1,_=1
1+(7&g),S=a,M=o,T=!1;if(g
7){T=!0;S=e,e+=3*(M=_)}var E=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw E
or("Invalid block size");if(0===C)
eak;e+=C}l.push({x:p,y:m,width:v,height:y,has_local_palette:T,palette_offset:S,palette_size:M,data_offset:E,data_length:e-E,transparent_index:h,interlaced:!!b,delay:u,disposal:c});
eak;case 59:s=!1;
eak;default:throw new E
or("Unknown gif block: 0x"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new E
or("Frame index out of range.");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8A
ay(i);L(x,r.data_offset,n,i);var a=r.palette_offset,o=r.transparent_index;null===o&&(o=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,v=n.length;m1),p
=1)),y===o)f+=4;else{var g=x[a+3*y],b=x[a+3*y+1],_=x[a+3*y+2];t[f++]=_,t[f++]=b,t[f++]=g,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8A
ay(i);L(x,r.data_offset,n,i);var a=r.palette_offset,o=r.transparent_index;null===o&&(o=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,v=n.length;m1),p
=1)),y===o)f+=4;else{var g=x[a+3*y],b=x[a+3*y+1],_=x[a+3*y+2];t[f++]=g,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],12:[function(jr,t,r){(function(Gr){var e;e=this,function(T){"use strict";function e(e){if(null==this)throw TypeE
or();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||
=i)){var n,a=t.charCodeAt(i);return 55296<=a&&a<=56319&&i+1
&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(a-55296)+n-56320+65536:a}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,"codePointAt",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,a=-3;function r(){this.table=new Uint16A
ay(16),this.trans=new Uint16A
ay(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8A
ay(30),c=new Uint16A
ay(30),f=new Uint8A
ay(30),d=new Uint16A
ay(30),p=new Uint8A
ay([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,v=new Uint8A
ay(320);function i(e,t,r,i){var n,a;for(n=0;n
;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n
|0;for(a=i,n=0;n<30;++n)t[n]=a,a+=1
e[n]}var y=new Uint16A
ay(16);function g(e,t,r,i){var n,a;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]
e.bitcount,e.bitcount+=8;var i=e.tag&65535
16-t;return e.tag
=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]
e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,a=e.tag;i=2*i+(1&a),a
=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=a,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,a,o,s,l;for(i=_(e,5,257),n=_(e,5,1),a=_(e,4,4),o=0;o<19;++o)v[o]=0;for(o=0;oeak;case 17:for(l=_(e,3,3);l;--l)v[s++]=0;
eak;case 18:for(l=_(e,7,11);l;--l)v[s++]=0;
eak;default:v[s++]=h}}g(t,v,0,i),g(r,v,i,n)}function S(e,t,r){for(;;){var i,n,a,o,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),o=a=e.destLen-_(e,f[n],d[n]);o7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;
24;++r)e.trans[r]=256+r;for(r=0;
144;++r)e.trans[24+r]=r;for(r=0;
8;++r)e.trans[168+r]=280+r;for(r=0;
112;++r)e.trans[176+r]=144+r;for(r=0;
5;++r)t.table[r]=0;for(t.table[5]=32,r=0;
32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new o(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);
eak;case 1:i=S(n,s,u);
eak;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);
eak;default:i=a}if(i!==l)throw new E
or("Data e
or")}while(!r);return n.destLenay(0,n.destLen):n.dest};function E(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function L(e){throw new E
or(e)}function O(e,t){e||L(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,a,o,s){var l=this,u=[e,t],h=[r,i],c=[n,a],f=[o,s];this.addPoint(e,t),this.addPoint(o,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],v=3*h[d]-3*u[d];if(0!=m){var y=Math.pow(p,2)-4*v*m;if(!(y<0)){var g=(-p+Math.sqrt(y))/(2*m);0&&
1&&(0===d&&l.addX(E(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(E(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-v/p;0<_&&_<1&&(0===d&&l.addX(E(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(E(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,a){var o=e+2/3*(r-e),s=t+2/3*(i-t),l=o+1/3*(n-e),u=s+1/3*(a-t);this.addBezier(e,t,o,s,l,u,n,a)},I.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,a){this.commands.push({type:"C",x1:e,y1:t,x2:r,y2:i,x:n,y:a})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:"Q",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:"Z"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}A
ay.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,a=0;aeak;case"L":e.addPoint(o.x,o.y),i=o.x,n=o.y;
eak;case"Q":e.addQuad(i,n,o.x1,o.y1,o.x,o.y),i=o.x,n=o.y;
eak;case"C":e.addBezier(i,n,o.x1,o.y1,o.x2,o.y2,o.x,o.y),i=o.x,n=o.y;
eak;case"Z":i=t,n=r;
eak;default:throw new E
or("Unexpected path command "+o.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;tthis.commands.length;r+=1){var i=this.commands[r];"M"===i.type?t+="M"+e(i.x,i.y):"L"===i.type?t+="L"+e(i.x,i.y):"C"===i.type?t+="C"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):"Q"===i.type?t+="Q"+e(i.x1,i.y1,i.x,i.y):"Z"===i.type&&(t+="Z")}return t},I.prototype.toSVG=function(e){var t='"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS("http:
www.w3.org/2000/svg","path");return r.setAttribute("d",t),r};var P={fail:L,argument:O,assert:O},R=2147483648,D={},k={},A={};function U(e){return function(){return e}}k.BYTE=function(e){return P.argument(0<=e&&e<=255,"Byte value should be between 0 and 255."),[e]},A.BYTE=U(1),k.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),k.CHARARRAY=function(e){for(var t=[],r=0;
e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},k.USHORT=function(e){return[e
8&255,255&e]},A.USHORT=U(2),k.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e
8&255,255&e]},A.SHORT=U(2),k.UINT24=function(e){return[e
16&255,e
8&255,255&e]},A.UINT24=U(3),k.ULONG=function(e){return[e
24&255,e
16&255,e
8&255,255&e]},A.ULONG=U(4),k.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e
24&255,e
16&255,e
8&255,255&e]},A.LONG=U(4),k.FIXED=k.ULONG,A.FIXED=A.ULONG,k.FWORD=k.SHORT,A.FWORD=A.SHORT,k.UFWORD=k.USHORT,A.UFWORD=A.USHORT,k.LONGDATETIME=function(e){return[0,0,0,0,e
24&255,e
16&255,e
8&255,255&e]},A.LONGDATETIME=U(8),k.TAG=function(e){return P.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),k.Card8=k.BYTE,A.Card8=A.BYTE,k.Card16=k.USHORT,A.Card16=A.USHORT,k.OffSize=k.BYTE,A.OffSize=A.BYTE,k.SID=k.USHORT,A.SID=A.USHORT,k.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)
8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)
8),255&e]:-32768<=e&&e<=32767?k.NUMBER16(e):k.NUMBER32(e)},A.NUMBER=function(e){return k.NUMBER(e).length},k.NUMBER16=function(e){return[28,e
8&255,255&e]},A.NUMBER16=U(3),k.NUMBER32=function(e){return[29,e
24&255,e
16&255,e
8&255,255&e]},A.NUMBER32=U(5),k.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n="",a=0,o=t.length;a2,a=0;ae.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i
8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={"x-mac-croatian":"ÃÃ
ÃÃÃÃÃáà âäãåçéèêëÃìîïñóòôöõúùûüâ °¢£§â¢Â¶Ã®Šâ¢Â´Â¨â ŽÃâ±â¤â¥âµâââÅ¡â«ÂªÂºÎ©Å¾Ã¸Â¿Â¡Â¬âÆâÄ«Äâ¦Â ÃÃÃÅÅÄâââââ÷â©ââ¬â¹âºÃ»â·âââ°ÃÄÃÄÃÃÃÃÃÃÃÄÃÃÃÃıË˯ÏÃË¸ÃæË","x-mac-cyrillic":"ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐРСТУФХЦЧШЩЪЫЬÐЮЯâ °Ò£§â¢Â¶Ð®©â¢ÐÑâ ÐÑâ±â¤â¥ÑµÒÐÐÑÐÑÐÑÐÑÑÐ
¬âÆââ«»â¦Â ÐÑÐÑÑââââââ÷âÐÑÐÑâÐÑÑабвгдежзийклмнопÑÑÑÑÑÑ
ÑÑÑÑÑÑÑÑÑ","x-mac-gaelic":"ÃÃ
ÃÃÃÃÃáà âäãåçéèêëÃìîïñóòôöõúùûüâ °¢£§â¢Â¶Ã®©â¢Â´Â¨â ÃÃá¸Â±â¤â¥á¸ÄÄá¸á¸á¸á¸Ä Ä¡á¹Ã¦Ã¸á¹á¹á¹É¼ÆÅ¿á¹ «»â¦Â ÃÃÃÅÅââââââṡáºÃ¿Å¸á¹ªâ¬â¹âºÅ¶Å·á¹«Â·á»²á»³âÃÃÃÃÃÃÃÃÃÃÃâ£ÃÃÃÃıÃýŴŵáºáº
áºáºáºáº","x-mac-greek":"ù²Ã³ÃÃÎ
à âäΨçéèêë£â¢Ã®Ã¯â¢Â½â°Ã´Ã¶Â¦â¬Ã¹Ã»Ã¼â ÎÎÎÎÎΠî©ΣΪ§â °·Î±â¤â¥Â¥ÎÎÎÎÎÎÎΦΫΨΩάάÎΡâΤ«»â¦Â ΥΧÎÎÅââââââ÷ÎÎÎÎÎήίÏÎÏαβÏδεÏγηιξκλμνοÏÏÏÏÏθÏÏÏÏ
ζÏÏÎΰÂ","x-mac-icelandic":"ÃÃ
ÃÃÃÃÃáà âäãåçéèêëÃìîïñóòôöõúùûü𢣧â¢Â¶Ã®©â¢Â´Â¨â ÃÃâ±â¤â¥Â¥ÂµâââÏâ«ÂªÂºÎ©Ã¦Ã¸Â¿Â¡Â¬âÆââ«»â¦Â ÃÃÃÅÅââââââ÷âÿŸââ¬ÃðÃþý·âââ°ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃıË˯ËË˸ËËË","x-mac-inuit":"ááá
áááá±á²á³á´á¸á¹áááááááá¦áá®á¯á°á²á³ááááááá°á¡á¥á¦â¢Â¶á§Â®Â©â¢á¨áªá«á»áááá
áááá¯á°á±á²á´áµá
áááááááªá¨á©áªá«áâ¦Â á®á¾áááââââââáááááááááááá¿áááááá
áááááááá±á²á³á´áµá¶áá á¡á¢á£á¤á¥á¦á¼ÅÅ","x-mac-ce":"ÃÄÄÃÄÃÃáÄ
ÄäÄÄÄ鏟ÄÃÄÄÄÄóÄôöõúÄÄüâ °Ä£§â¢Â¶Ã®©â¢Ä¨â ģĮįĪâ¤â¥Ä«Ä¶ââÅĻļĽľĹĺÅ
ÅŬâÅÅâ«»â¦Â ÅÅÃÅÅââââââ÷âÅÅÅÅâ¹âºÅÅÅÅ ââÅ¡ÅÅÃŤťÃŽžŪÃÃūŮÃůŰűŲųÃýķŻÅżĢË",macintosh:"ÃÃ
ÃÃÃÃÃáà âäãåçéèêëÃìîïñóòôöõúùûüâ °¢£§â¢Â¶Ã®©â¢Â´Â¨â ÃÃâ±â¤â¥Â¥ÂµâââÏâ«ÂªÂºÎ©Ã¦Ã¸Â¿Â¡Â¬âÆââ«»â¦Â ÃÃÃÅÅââââââ÷âÿŸââ¬â¹âºï¬ï¬â¡Â·âââ°ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃıË˯ËË˸ËËË","x-mac-romanian":"ÃÃ
ÃÃÃÃÃáà âäãåçéèêëÃìîïñóòôöõúùûüâ °¢£§â¢Â¶Ã®©â¢Â´Â¨â ÄÈâ±â¤â¥Â¥ÂµâââÏâ«ÂªÂºÎ©ÄÈ¿¡¬âÆââ«»â¦Â ÃÃÃÅÅââââââ÷âÿŸââ¬â¹âºÈÈâ¡Â·âââ°ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃıË˯ËË˸ËËË","x-mac-turkish":"ÃÃ
ÃÃÃÃÃáà âäãåçéèêëÃìîïñóòôöõúùûüâ °¢£§â¢Â¶Ã®©â¢Â´Â¨â ÃÃâ±â¤â¥Â¥ÂµâââÏâ«ÂªÂºÎ©Ã¦Ã¸Â¿Â¡Â¬âÆââ«»â¦Â ÃÃÃÅÅââââââ÷âÿŸÄÄİıÅÅâ¡Â·âââ°ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃï¢ Ë˯ËË˸ËËË"};D.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var a="",o=0;o
;o++){var s=e.getUint8(t+o);a+=s<=127?String.fromCharCode(s):n[127&s]}return a}};var F,B="function"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;teak;if(0===o&&a+1eak;++a,++i}r.push(i-1);for(var s=t;seak;if(G(o)&&a+1eak;++a,++i}r.push(64|i-1);for(var s=t;s8&255,l+256&255)}return a}k.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var a={},o=0;oay.prototype.push.apply(i,a),t+=a.length,r.push(t)}if(0===i.length)return[0,0];for(var o=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,k.BYTE,k.USHORT,k.UINT24,k.ULONG][s],u=0;u
.length;u+=1){var h=l(r[u]);A
ay.prototype.push.apply(o,h)}return A
ay.prototype.concat(k.Card16(e.length),k.OffSize(s),o,i)},A.INDEX=function(e){return k.INDEX(e).length},k.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;nay.isA
ay(t))for(var i=0;ior("Unknown operand type "+t);r=r.concat(k.REAL(e))}return r},k.OP=k.BYTE,A.OP=A.BYTE;var H="function"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;iay(t.length+1);i[0]={name:e+"Count",type:"USHORT",value:r};for(var n=0;nay(i+1);n[0]={name:e+"Count",type:"USHORT",value:i};for(var a=0;a;a+=1){var o=e.fields[a],s=k[o.type];P.argument(void 0!==s,"No encoding function for field type "+o.type+" ("+o.name+")");var l=e[o.name];void 0===l&&(l=o.value);var u=s(l);"TABLE"===o.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i
;i+=1){var n=e.fields[i],a=A[n.type];P.argument(void 0!==a,"No sizeOf function for field type "+n.type+" ("+n.name+")");var o=e[n.name];void 0===o&&(o=n.value),t+=a(o),"TABLE"===n.type&&(t+=2)}return t},k.RECORD=k.TABLE,A.RECORD=A.TABLE,k.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return k.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:q,tableList:X,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function ae(e,t){this.data=e,this.offset=t,this.relativeOffset=0}ae.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseCard8=ae.prototype.parseByte,ae.prototype.parseCard16=ae.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseSID=ae.prototype.parseUShort,ae.prototype.parseOffset16=ae.prototype.parseUShort,ae.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},ae.prototype.parseOffset32=ae.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i="";this.relativeOffset+=e;for(var n=0;ne/10},ae.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},ae.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new A
ay(e),r=this.data,i=this.offset+this.relativeOffset,n=0;nay(e),r=this.data,i=this.offset+this.relativeOffset,n=0;nay(e),r=this.data,i=this.offset+this.relativeOffset,n=0;nay(e),r=this.data,i=this.offset+this.relativeOffset,n=0;nay(e),i=0;iay(e),i=0;iay(e),i=Object.keys(t),n=0;nay(e),i=Object.keys(t),n=0;nay(t),i=0;iay(i),o=0;oay(l.length),h=0;hor("0x"+e.toString(16)+": Coverage format must be 1 or 2.");for(var i=new A
ay(r),n=0;n
;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},ae.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:ae.uShort,end:ae.uShort,classId:ae.uShort})};throw new E
or("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},ae.list=function(e,t){return function(){return this.parseList(e,t)}},ae.list32=function(e,t){return function(){return this.parseList32(e,t)}},ae.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},ae.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},ae.pointer=function(e){return function(){return this.parsePointer(e)}},ae.pointer32=function(e){return function(){return this.parsePointer32(e)}},ae.tag=ae.prototype.parseTag,ae.byte=ae.prototype.parseByte,ae.uShort=ae.offset16=ae.prototype.parseUShort,ae.uShortList=ae.prototype.parseUShortList,ae.uLong=ae.offset32=ae.prototype.parseULong,ae.uLongList=ae.prototype.parseULongList,ae.struct=ae.prototype.parseStruct,ae.coverage=ae.prototype.parseCoverage,ae.classDef=ae.prototype.parseClassDef;var oe={reserved:ae.uShort,reqFeatureIndex:ae.uShort,featureIndexes:ae.uShortList};ae.prototype.parseScriptList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,script:ae.pointer({defaultLangSys:ae.pointer(oe),langSysRecords:ae.recordList({tag:ae.tag,langSys:ae.pointer(oe)})})}))||[]},ae.prototype.parseFeatureList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,feature:ae.pointer({featureParams:ae.offset16,lookupListIndexes:ae.uShortList})}))||[]},ae.prototype.parseLookupList=function(i){return this.parsePointer(ae.list(ae.pointer(function(){var e=this.parseUShort();P.argument(1<=e&&e<=9,"GPOS/GSUB lookup type "+e+" unknown.");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(ae.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},ae.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return P.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:ae.offset32,featureTableSubstitutionOffset:ae.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r="",i=t;i;n+=1)i
=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n
;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t="",r=0;
e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:ae};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),P.argument(0===r.version,"cmap table version should be 0."),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var a=se.getUShort(e,t+4+8*n),o=se.getUShort(e,t+4+8*n+2);if(3===a&&(0===o||1===o||10===o)||0===a&&(0===o||1===o||2===o||3===o||4===o)){i=se.getULong(e,t+4+8*n+4);
eak}}if(-1===i)throw new E
or("No valid cmap sub-tables found.");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i
;i+=1)for(var n=t.parseULong(),a=t.parseULong(),o=t.parseULong(),s=n;s<=a;s+=1)e.glyphIndexMap[s]=o,o++}(r,s);else{if(4!==r.format)throw new E
or("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");!function(e,t,r,i,n){var a;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=a=t.parseUShort()
1,t.skip("uShort",3),e.glyphIndexMap={};for(var o=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*a),l=new se.Parser(r,i+n+16+4*a),u=new se.Parser(r,i+n+16+6*a),h=i+n+16+8*a,c=0;ceak}}var i=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:r?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:r?12:20}];r||(i=i.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),i=i.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var n,a,o,s=new $.Table("cmap",i);for(s.segments=[],t=0;tacketleft","backslash","
acketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","
aceleft","bar","
aceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","cu
ency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","
eve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","
okenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],he=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","
acketleft","backslash","
acketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","
aceleft","bar","
aceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","cu
ency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","
eve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],fe=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","
acketleft","backslash","
acketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","
aceleft","bar","
aceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","non
eakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","cu
ency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","
eve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","
okenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","G
eve","g
eve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ve(e){switch(e.version){case 1:this.names=fe.slice();
eak;case 2:this.names=new A
ay(e.numberOfGlyphs);for(var t=0;teak;case 2.5:this.names=new A
ay(e.numberOfGlyphs);for(var r=0;
e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];
eak;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i
.length;i+=1)for(var n=r.get(i),a=0;aay.isA
ay(t))for(var r=0;
t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ge.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",(t=e.path,r=t||new I,{configurable:!0,get:function(){return"function"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ge.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ge.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ge.prototype.getPath=function(e,t,r,i,n){var a,o;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(o=this.path&&n.hinting.exec(this,r)),o)a=n.hinting.getCommands(o),e=Math.round(e),t=Math.round(t),s=l=1;else{a=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;cthis.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return P.argument(0===t.length,"There are still points left in the cu
ent contour."),e},ge.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;iay.isA
ay(e)&&A
ay.isA
ay(t)){if(e.length!==t.length)return!1;for(var r=0;
e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,a=[],o=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h8|e.parseByte();if(29===t)return e.parseByte()
24|e.parseByte()
16|e.parseByte()
8|e.parseByte();if(30===t)return function(e){for(var t="",r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var i=e.parseByte(),n=i
4,a=15&i;if(15==n)
eak;if(t+=r[n],15==a)
eak;t+=r[a]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new E
or("Invalid b0 "+t)}function Ee(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],a=[];for(r=void 0!==r?r:e.length;i.relativeOffset
;){var o=i.parseByte();o<=21?(12===o&&(o=1200+i.parseByte()),n.push([o,a]),a=[]):a.push(Te(i,o))}return function(e){for(var t={},r=0;
e.length;r+=1){var i=e[r][0],n=e[r][1],a=void 0;if(a=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new E
or("Object "+t+" already has key "+i);t[i]=a}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Le(e,t,r){for(var i,n={},a=0;aay.isA
ay(o.type)){var s=[];s.length=o.type.length;for(var l=0;lay",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],Pe=[{name:"su
s",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function Re(e,t,r,i){return Le(Ee(e,t,r),Pe,i)}function De(e,t,r,i){for(var n,a,o=[],s=0;s
.length;s+=1){var l=new DataView(new Uint8A
ay(r[s]).buffer),u=(a=i,Le(Ee(n=l,0,n.byteLength),Oe,a));u._su
s=[],u._su
sBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.su
s){var d=Me(e,c+f.su
s+t);u._su
s=d.objects,u._su
sBias=Se(u._su
s)}u._privateDict=f}o.push(u)}return o}function ke(v,y,e){var g,b,_,x,w,S,t,M,T=new I,E=[],C=0,L=!1,O=!1,P=0,R=0;if(v.isCIDFont){var r=v.tables.cff.topDict._fdSelect[y.index],i=v.tables.cff.topDict._fdA
ay[r];w=i._su
s,S=i._su
sBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=v.tables.cff.topDict._su
s,S=v.tables.cff.topDict._su
sBias,t=v.tables.cff.topDict._defaultWidthX,M=v.tables.cff.topDict._nominalWidthX;var D=t;function k(e,t){O&&T.closePath(),T.moveTo(e,t),O=!0}function A(){E.length%2==0||L||(D=E.shift()+M),C+=E.length
1,E.length=0,L=!0}return function e(t){for(var r,i,n,a,o,s,l,u,h,c,f,d,p=0;peak;case 4:1eak;case 5:for(;0eak;case 6:for(;0eak;case 7:for(;0eak;case 8:for(;0eak;case 10:o=E.pop()+S,(s=w[o])&&e(s);
eak;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:g=P+E.shift(),b=R+E.shift(),_=g+E.shift(),x=b+E.shift(),l=_+E.shift(),u=x+E.shift(),h=l+E.shift(),c=u+E.shift(),f=h+E.shift(),d=c+E.shift(),P=f+E.shift(),R=d+E.shift(),E.shift(),T.curveTo(g,b,_,x,l,u),T.curveTo(h,c,f,d,P,R);
eak;case 34:g=P+E.shift(),b=R,_=g+E.shift(),x=b+E.shift(),l=_+E.shift(),u=x,h=l+E.shift(),c=x,f=h+E.shift(),d=R,P=f+E.shift(),T.curveTo(g,b,_,x,l,u),T.curveTo(h,c,f,d,P,R);
eak;case 36:g=P+E.shift(),b=R+E.shift(),_=g+E.shift(),x=b+E.shift(),l=_+E.shift(),u=x,h=l+E.shift(),c=x,f=h+E.shift(),d=c+E.shift(),P=f+E.shift(),T.curveTo(g,b,_,x,l,u),T.curveTo(h,c,f,d,P,R);
eak;case 37:g=P+E.shift(),b=R+E.shift(),_=g+E.shift(),x=b+E.shift(),l=_+E.shift(),u=x+E.shift(),h=l+E.shift(),c=u+E.shift(),f=h+E.shift(),d=c+E.shift(),Math.abs(f-P)>Math.abs(d-R)?P=f+E.shift():R=d+E.shift(),T.curveTo(g,b,_,x,l,u),T.curveTo(h,c,f,d,P,R);
eak;default:console.log("Glyph "+y.index+": unknown operator 1200"+m),E.length=0}
eak;case 14:0eak;case 18:A();
eak;case 19:case 20:A(),p+=C+7
3;
eak;case 21:2eak;case 22:1eak;case 23:A();
eak;case 24:for(;2eak;case 25:for(;6eak;case 26:for(E.length%2&&(P+=E.shift());0eak;case 27:for(E.length%2&&(R+=E.shift());0eak;case 28:r=t[p],i=t[p+1],E.push((
24|i
16)
16),p+=2;
eak;case 29:o=E.pop()+v.gsu
sBias,(s=v.gsu
s[o])&&e(s);
eak;case 30:for(;0eak;case 31:for(;0eak;default:m<32?console.log("Glyph "+y.index+": unknown operator "+m):m<247?E.push(m-139):m<251?(r=t[p],p+=1,E.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,E.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],a=t[p+3],p+=4,E.push((
24|i
16|n
8|a)/65536))}}}(e),y.advanceWidth=D,T}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n.commands.length;a+=1){var o=void 0,s=void 0,l=r.commands[a];if("Q"===l.type){l={type:"C",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if("M"===l.type)o=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if("L"===l.type)o=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if("C"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);o=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:"dx1",type:"NUMBER",value:u}),t.push({name:"dy1",type:"NUMBER",value:h}),t.push({name:"dx2",type:"NUMBER",value:c}),t.push({name:"dy2",type:"NUMBER",value:f}),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"
curveto",type:"OP",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,a,o=Me(e,(i=e,n=t,(a={}).formatMajor=se.getCard8(i,n),a.formatMinor=se.getCard8(i,n+1),a.size=se.getCard8(i,n+2),a.offsetSize=se.getCard8(i,n+3),a.startOffset=n,a.endOffset=n+4,a).endOffset,se.bytesToString),s=Me(e,o.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsu
s=u.objects,r.gsu
sBias=Se(r.gsu
s);var h=De(e,t,s.objects,l.objects);if(1!==h.length)throw new E
or("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdA
ay,d=c.fdSelect;if(0===f||0===d)throw new E
or("Font is marked as a CID font, but FDA
ay and/or FDSelect information is missing");var p=De(e,t,Me(e,f+=t).objects,l.objects);c._fdA
ay=p,d+=t,c._fdSelect=function(e,t,r,i){var n,a=[],o=new se.Parser(e,t),s=o.parseCard8();if(0===s)for(var l=0;l
;l++){if(i<=(n=o.parseCard8()))throw new E
or("CFF table CID Font FDSelect has bad FD index value "+n+" (FD count "+i+")");a.push(n)}else{if(3!==s)throw new E
or("CFF Table CID Font FDSelect table has unsupported format "+s);var u,h=o.parseCard16(),c=o.parseCard16();if(0!==c)throw new E
or("CFF Table CID Font FDSelect format 3 range has bad initial GID "+c);for(var f=0;for("CFF table CID Font FDSelect has bad FD index value "+n+" (FD count "+i+")");if(
u)throw new E
or("CFF Table CID Font FDSelect format 3 range has bad GID "+u);for(;cor("CFF Table CID Font FDSelect format 3 range has bad final GID "+u)}return a}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],v=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=v.defaultWidthX,r.nominalWidthX=v.nominalWidthX,0!==v.su
s){var y=Me(e,m+v.su
s);r.su
s=y.objects,r.su
sBias=Se(r.su
s)}else r.su
s=[],r.su
sBias=0;var g=Me(e,t+c.charStrings);r.nGlyphs=g.objects.length;var b=function(e,t,r,i){var n,a,o=new se.Parser(e,t);--r;var s=[".notdef"],l=o.parseCard8();if(0===l)for(var u=0;u
;u+=1)n=o.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=o.parseSID(),a=o.parseCard8();for(var h=0;h<=a;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new E
or("Unknown charset format "+l);for(;s.length<=r;){n=o.parseSID(),a=o.parseCard16();for(var c=0;c<=a;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},a=new se.Parser(e,t),o=a.parseCard8();if(0===o)for(var s=a.parseCard8(),l=0;lor("Unknown encoding format "+o);var u=a.parseCard8();i=1;for(var h=0;h.nGlyphs;_+=1){var x=g.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,ke,x))}},make:function(e,t){for(var r,i=new $.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSu
Index",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),n=1/t.unitsPerEm,a={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},o=[],s=1;se.length;r+=1)t.names.push({name:"name_"+r,type:"NAME",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(a,l);i.topDictIndex=Ne(f),i.globalSu
Index=new $.Record("Global Su
INDEX",[{name:"su
s",type:"INDEX",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record("Charsets",[{name:"format",type:"Card8",value:0}]),i=0;ie.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:"CHARSTRING",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}])).dict=Ie(Pe,u,h),c),i.stringIndex=function(e){var t=new $.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var r=0;
e.length;r+=1)t.strings.push({name:"string_"+r,type:"STRING",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSu
Index.sizeOf();return a.charset=d,a.encoding=0,a.charStrings=a.charset+i.charsets.sizeOf(),a.private[1]=a.charStrings+i.charStringsIndex.sizeOf(),f=Ue(a,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),P.argument(1594834165===r.magicNumber,"Font header has wrong magic number."),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:r},{name:"modified",type:"LONGDATETIME",value:t},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var a,o,s=new se.Parser(e,t),l=0;l&&(a=s.parseUShort(),o=s.parseShort());var u=n.get(l);u.advanceWidth=a,u.leftSideBearing=o}},make:function(e){for(var t=new $.Table("hmtx",[]),r=0;
e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,a=i.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+r,type:"USHORT",value:n}),t.fields.push({name:"leftSideBearing_"+r,type:"SHORT",value:a})}return t}};var ze={make:function(e){for(var t=new $.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),r="",i=12+4*e.length,n=0;nedFamily","prefe
edSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],qe={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"
",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},Xe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"
",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return"und";if(r)return r[t];
eak;case 1:return qe[t];case 3:return Ye[t]}}var Qe="utf-16",Ke={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},Je={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,a){return new $.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:r},{name:"nameID",type:"USHORT",value:i},{name:"length",type:"USHORT",value:n},{name:"offset",type:"USHORT",value:a}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n;a++)if(t[n+a]!==e[a])continue e;return n}return-1}(e,t);if(
0){r=t.length;for(var i=0,n=e.length;ior('Name table entry "'+o+'" does not exist, see nameTableNames for complete list.');n[r]=e[o],i.push(r)}for(var l=et(qe),u=et(Ye),h=[],c=[],f=0;f=r.begin&&e
.end)return t}return-1}};var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();
eak;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new A
ay(r.numberOfGlyphs);for(var n=0;n
.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var a=0;a
.numberOfGlyphs;a++)if(r.glyphNameIndex[a]>=fe.length){var o=i.parseChar();r.names.push(i.parseString(o))}
eak;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new A
ay(r.numberOfGlyphs);for(var s=0;s
.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}},st=new A
ay(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),substitute:this.parseOffset16List()}:void P.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},st[2]=function(){var e=this.parseUShort();return P.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return P.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return P.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:ae.uShort,lookupListIndex:ae.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),classDef:this.parsePointer(ae.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(i,lt)}}P.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),backtrackClassDef:this.parsePointer(ae.classDef),inputClassDef:this.parsePointer(ae.classDef),lookaheadClassDef:this.parsePointer(ae.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),inputCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(lt)}:void P.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},st[7]=function(){var e=this.parseUShort();P.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),r=new ae(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return P.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),substitutes:this.parseUShortList()}};var ut=new A
ay(9);ut[1]=function(e){return 1===e.substFormat?new $.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new $.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new $.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new $.Coverage(e.coverage)}].concat($.ushortList("substitute",e.substitute)))},ut[3]=function(e){return P.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new $.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new $.Coverage(e.coverage)}].concat($.tableList("altSet",e.alternateSets,function(e){return new $.Table("alternateSetTable",$.ushortList("alternate",e))})))},ut[4]=function(e){return P.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new $.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new $.Coverage(e.coverage)}].concat($.tableList("ligSet",e.ligatureSets,function(e){return new $.Table("ligatureSetTable",$.tableList("ligature",e,function(e){return new $.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat($.ushortList("component",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new ae(e,t=t||0),i=r.parseVersion(1);return P.argument(1===i||1.1===i,"Unsupported GSUB table version."),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new $.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new $.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();P.argument(1===i,"Unsupported META table version."),r.parseULong(),r.parseULong();for(var n=r.parseULong(),a={},o=0;oe.length;r+=4)t+=(e[r]
24)+(e[r+1]
16)+(e[r+2]
8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==r?r:0},{name:"length",type:"ULONG",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],a=t.sizeOf()+pt().sizeOf()*t.numTables;a%4!=0;)a+=1,n.push({name:"padding",type:"BYTE",value:0});for(var o=0;ot.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function vt(e,t,r){for(var i=0;ior("Glyph "+m.name+" ("+p+"): advanceWidth is not a number.");(vy;else if(y<64)c|=1
y-32;else if(y<96)f|=1
y-64;else{if(!(y<123))throw new E
or("Unicode ranges bits > 123 are reserved for internal usage");d|=1
y-96}if(".notdef"!==m.name){var g=m.getMetrics();r.push(g.xMin),i.push(g.yMin),n.push(g.xMax),a.push(g.yMax),s.push(g.leftSideBearing),l.push(g.rightSideBearing),o.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,a),advanceWidthMax:Math.max.apply(null,o),advanceWidthAvg:function(e){for(var t=0,r=0;
e.length;r+=1)t+=e[r];return t/e.length}(o),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=at.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:vt(e,"xyvw",{yMax:Math.round(b.ascende
2)}).yMax,sCapHeight:vt(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),M=Ve.make(e.glyphs),T=le.make(e.glyphs),E=e.getEnglishName("fontFamily"),C=e.getEnglishName("fontSubfamily"),L=E+" "+C,O=e.getEnglishName("postScriptName");O=O||E.replace(/\s/g,"")+"-"+C;var P={};for(var R in e.names)P[R]=e.names[R];P.uniqueID||(P.uniqueID={en:e.getEnglishName("manufacturer")+":"+L}),P.postScriptName||(P.postScriptName={en:O}),P.prefe
edFamily||(P.prefe
edFamily=e.names.fontFamily),P.prefe
edSubfamily||(P.prefe
edSubfamily=e.names.fontSubfamily);var D=[],k=it.make(P,D),A=0eak}if(!V)throw new E
or("Could not find head table with checkSum to adjust.");return B},computeCheckSum:dt};function gt(e,t){for(var r=0,i=e.length-1;
=i;){var n=r+i
1,a=e[n].tag;if(a===t)return n;a=i;){var n=r+i
1,a=e[n];if(a===t)return n;a1,o=(r=e[a]).start;if(o===t)return r;o(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,"gpos")}function St(e){xt.call(this,e,"gsub")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i
;i++)if(e[i]!==t[i])return!1;return!0}function Tt(e,t,r){for(var i=e.subtables,n=0;nayBuffer(e.length),r=new Uint8A
ay(t),i=0;iu;b+=1)n=i[b],(d=p[b]).y=Lt(a,n,g,4,32),g=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=a.parseUShort();var x={glyphIndex:a.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=a.parseShort(),x.dy=a.parseShort()):x.matchedPoints=[a.parseUShort(),a.parseUShort()]:0<(2&i)?(x.dx=a.parseChar(),x.dy=a.parseChar()):x.matchedPoints=[a.parseByte(),a.parseByte()],0<(8&i)?x.xScale=x.yScale=a.parseF2Dot14():0<(64&i)?(x.xScale=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()):0<(128&i)&&(x.xScale=a.parseF2Dot14(),x.scale01=a.parseF2Dot14(),x.scale10=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=a.parseUShort(),e.instructions=[];for(var w=0;went contour."),t}(e),i=0;i
.length;++i){var n=r[i],a=null,o=n[n.length-1],s=n[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(o.x+s.x),y:.5*(o.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;ut.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var a=void 0;if(void 0===i.matchedPoints)a=Pt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw E
or("Matched points out of range in "+t.name);var o=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=Pt([s],l)[0],l.dx=o.x-s.x,l.dy=o.y-s.y,a=Pt(n.points,l)}t.points=t.points.concat(a)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:gt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;
e.scripts.length;r++){var i=e.scripts[r].tag;if("DFLT"===i)return i;"latn"===i&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||"DFLT";var i=r.scripts,n=gt(r.scripts,e);if(0<=n)return i[n].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,a),a.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||"dflt"===t||"DFLT"===t)return i.defaultLangSys;var n=gt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,a),a.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var a,o=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l=s[u-1].tag,"Features must be added in alphabetical order."),a={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(a),o.push(u),a.feature}}},getLookupTables:function(e,t,r,i,n){var a=this.getFeatureTable(e,t,r,n),o=[];if(a){for(var s,l=a.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h.length;i++)for(var n=r[i],a=n.start,o=n.end,s=a;s<=o;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;ieak;case 2:var c=this.getGlyphClass(o.classDef1,t),f=this.getGlyphClass(o.classDef2,r),d=o.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),a=0;a.length-1;a+=1){var o=r[a];o!==r[a+1]?n.push(a,xe.ttfGlyphLoader(i,a,Ot,e,t+o,Dt)):n.push(a,xe.glyphLoader(i,a))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._e
orState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var qt={x:1,y:0,axis:"x",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,a,o,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,a=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(o=Math.abs(n))+(s=Math.abs(a)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*o)/h);n=i.distance(e,t,!0,!0),a=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(o=Math.abs(n))+(s=Math.abs(a)))?qt.setRelative(e,e,(l*s+u*o)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var a=n?t.xo:t.x,o=n?t.yo:t.y,s=a+r*i.x,l=o+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},Xt={x:0,y:1,axis:"y",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,a,o,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,a=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(o=Math.abs(n))+(s=Math.abs(a)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*o)/h);n=i.distance(e,t,!0,!0),a=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(o=Math.abs(n))+(s=Math.abs(a)))?Xt.setRelative(e,e,(l*s+u*o)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var a=n?t.xo:t.x,o=n?t.yo:t.y,s=a+r*i.x,l=o+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?qt:0===e&&1===t?Xt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(qt),Object.freeze(Xt),Yt.prototype.distance=function(e,t,r,i){return this.x*qt.distance(e,t,r,i)+this.y*Xt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,a,o,s,l,u,h;o=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),a=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(o))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+a*l)/h,i,!0):this.setRelative(e,e,(n+a)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var a=n?t.xo:t.x,o=n?t.yo:t.y,s=a+r*i.x,l=o+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=qt,this.round=Gt}}function er(e){for(var t=e.tZone=new A
ay(e.gZone.length),r=0;
t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,a=1;do{if(88===(r=i[++n]))a++;else if(89===r)a--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&
=183)n+=r-176+1;else if(184<=r&&
=191)n+=2*(r-184+1);else if(t&&1===a&&27===r)
eak}while(0(e,t){T.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function ir(e,t){T.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function nr(e,t){T.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function ar(e,t){var r,i,n=t.stack,a=n.pop(),o=n.pop(),s=t.z2[a],l=t.z1[o];T.DEBUG&&console.log("SPVTL["+e+"]",a,o),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function or(e,t){var r,i,n=t.stack,a=n.pop(),o=n.pop(),s=t.z2[a],l=t.z1[o];T.DEBUG&&console.log("SFVTL["+e+"]",a,o),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){T.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,a=t.pv;T.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var o=a.distance(i,Kt);e&&(o=t.round(o)),n.setRelative(i,Kt,o,a),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,a=t.z2,o=a.length-2;T.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var s=0;seak;case 1:r=t.gZone;
eak;default:throw new E
or("Invalid zone")}for(var h=l.distance(o,o,!1,!0),c=r.length-2,f=0;f",s),t.stack.push(Math.round(64*s))}function yr(e,t){var r=t.stack,i=r.pop(),n=t.fv,a=t.pv,o=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;T.DEBUG&&console.log(t.step,"DELTAP["+e+"]",i,r);for(var h=0;h4)===o){var d=(15&f)-8;0<=d&&d++,T.DEBUG&&console.log(t.step,"DELTAPFIX",c,"by",d*l);var p=u[c];n.setRelative(p,p,d*l,a)}}}function gr(e,t){var r=t.stack,i=r.pop();T.DEBUG&&console.log(t.step,"ROUND[]"),r.push(64*t.round(i/64))}function
(e,t){var r=t.stack,i=r.pop(),n=t.ppem,a=t.deltaBase+16*(e-1),o=t.deltaShift;T.DEBUG&&console.log(t.step,"DELTAC["+e+"]",i,r);for(var s=0;s4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*o;T.DEBUG&&console.log(t.step,"DELTACFIX",l,"by",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,a=n.pop(),o=n.pop(),s=t.z2[a],l=t.z1[o];T.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",a,o),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;T.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var a=0;a8|i[++r];32768&o&&(o=-(1+(65535^o))),n.push(o)}t.ip=r}function Sr(e,t,r,i,n,a){var o,s,l,u,h=a.stack,c=e&&h.pop(),f=h.pop(),d=a.rp0,p=a.z0[d],m=a.z1[f],v=a.minDis,y=a.fv,g=a.dpv;l=0<=(s=o=g.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=a.cvt[c],i&&Math.abs(s-u)":"_")+(i?"R":"_")+(0===n?"Gr":1===n?"Bl":2===n?"Wh":"")+"]",e?c+"("+a.cvt[c]+","+u+")":"",f,"(d =",o,"->",l*s,")"),a.rp1=a.rp0,a.rp2=f,t&&(a.rp0=f)}Ft.prototype.exec=function(e,t){if("number"!=typeof t)throw new E
or("Point size is not a number!");if(!(2orState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t("fpgm",r.tables.fpgm)).funcs=[],n.font=r,T.DEBUG&&(console.log("---EXEC FPGM---"),n.step=-1);try{At(n)}catch(e){return console.log("Hinting e
or in FPGM:"+e),void(this._e
orState=3)}}$t.prototype=n,(i=this._prepState=new $t("prep",r.tables.prep)).ppem=t;var a=r.tables.cvt;if(a)for(var o=i.cvt=new A
ay(a.length),s=t
.unitsPerEm,l=0;lorState<2&&console.log("Hinting e
or in PREP:"+e),this._e
orState=2}}if(!(1orState))try{return It(e,i)}catch(e){return this._e
orState<1&&(console.log("Hinting e
or:"+e),console.log("Note: further hinting e
ors are silenced")),void(this._e
orState=1)}}},It=function(e,t){var r,i,n,a=t.ppem/t.font.unitsPerEm,o=a,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;um.length;b++)r.push(m[b]+g)}e.instructions&&!n.inhibitGridFit&&((n=new $t("glyf",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*a),0)),T.DEBUG&&(console.log("---EXEC COMPOSITE---"),n.step=-1),At(n),i.length-=2)}else n=new $t("glyf",e.instructions),T.DEBUG&&(console.log("---EXEC GLYPH---"),n.step=-1),Ut(e,n,a,o),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,a,o,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;cor("unknown instruction: 0x"+Number(t[e.ip]).toString(16));r(e)}}},kt=[
.bind(void 0,Xt),
.bind(void 0,qt),ir.bind(void 0,Xt),ir.bind(void 0,qt),nr.bind(void 0,Xt),nr.bind(void 0,qt),ar.bind(void 0,0),ar.bind(void 0,1),or.bind(void 0,0),or.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"SPVFS[]",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"SPVFS[]",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;T.DEBUG&&console.log(e.step,"GPV[]"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;T.DEBUG&&console.log(e.step,"GFV[]"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,T.DEBUG&&console.log(e.step,"SFVTPV[]")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),a=t.pop(),o=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[a],d=e.z2[o];T.DEBUG&&console.log("ISECT[], ",r,i,n,a,o);var p=u.x,m=u.y,v=h.x,y=h.y,g=c.x,b=c.y,_=f.x,x=f.y,w=(p-v)*(b-x)-(m-y)*(g-_),S=p*y-m*v,M=g*x-b*_;d.x=(S*(g-_)-M*(p-v))/w,d.y=(S*(b-x)-M*(m-y))/w},function(e){e.rp0=e.stack.pop(),T.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)},function(e){e.rp1=e.stack.pop(),T.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)},function(e){e.rp2=e.stack.pop(),T.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)},function(e){var t=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"SZP0[]",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;
eak;case 1:e.z0=e.gZone;
eak;default:throw new E
or("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"SZP1[]",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;
eak;case 1:e.z1=e.gZone;
eak;default:throw new E
or("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"SZP2[]",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;
eak;case 1:e.z2=e.gZone;
eak;default:throw new E
or("Invalid zone pointer")}},function(e){var t=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"SZPS[]",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;
eak;case 1:e.z0=e.z1=e.z2=e.gZone;
eak;default:throw new E
or("Invalid zone pointer")}},function(e){e.loop=e.stack.pop(),T.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)},function(e){T.DEBUG&&console.log(e.step,"RTG[]"),e.round=Gt},function(e){T.DEBUG&&console.log(e.step,"RTHG[]"),e.round=Vt},function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64},function(e){T.DEBUG&&console.log(e.step,"ELSE[]"),tr(e,!1)},function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1},function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;T.DEBUG&&console.log(e.step,"DUP[]"),t.push(t[t.length-1])},sr,function(e){T.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"SWAP[]"),t.push(r),t.push(i)},function(e){var t=e.stack;T.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"CINDEX[]",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"MINDEX[]",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"LOOPCALL[]",r,i);var n=e.ip,a=e.prog;e.prog=e.funcs[r];for(var o=0;oor("FDEF not allowed here");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),a=i;for(T.DEBUG&&console.log(e.step,"FDEF[]",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(a+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,Xt),ur.bind(void 0,qt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,a=e.z2;r--;){var o=t.pop(),s=a[o];T.DEBUG&&console.log(e.step,(1",i),s.interpolate(c,a,o,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,a=e.fv,o=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];T.DEBUG&&console.log(e.step,(18|r[++t];32768&o&&(o=-(1+(65535^o))),i.push(o)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();T.DEBUG&&console.log(e.step,"WS",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();T.DEBUG&&console.log(e.step,"RS",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"WCVTP",r,i),e.cvt[i]=
64},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"RCVT",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,vr.bind(void 0,0),vr.bind(void 0,1),function(e){T.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)},void 0,function(e){T.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"LT[]",r,i),t.push(i
?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"LTEQ[]",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"GT[]",r,i),t.push(
i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"GTEQ[]",r,i),t.push(
=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"EQ[]",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"NEQ[]",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"IF[]",t),t||(tr(e,!0),T.DEBUG&&console.log(e.step,"EIF[]"))},function(e){T.DEBUG&&console.log(e.step,"EIF[]")},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"AND[]",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"OR[]",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)},yr.bind(void 0,1),function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"SDB[]",t),e.deltaBase=t},function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"SDS[]",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"ADD[]",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"SUB[]",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"DIV[]",r,i),t.push(64*i
)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"MUL[]",r,i),t.push(i*
64)},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(64*Math.floor(
64))},function(e){var t=e.stack,r=t.pop();T.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(64*Math.ceil(
64))},gr.bind(void 0,0),gr.bind(void 0,1),gr.bind(void 0,2),gr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"WCVTF[]",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},yr.bind(void 0,2),yr.bind(void 0,3),
.bind(void 0,1),
.bind(void 0,2),
.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"SROUND[]",r),e.round=Wt,192&r){case 0:t=.5;
eak;case 64:t=1;
eak;case 128:t=2;
eak;default:throw new E
or("invalid SROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;
eak;case 16:e.srPhase=.25*t;
eak;case 32:e.srPhase=.5*t;
eak;case 48:e.srPhase=.75*t;
eak;default:throw new E
or("invalid SROUND value")}r&=15,e.srThreshold=0===r?0:(
8-.5)*t},function(e){var t,r=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"S45ROUND[]",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;
eak;case 64:t=Math.sqrt(2);
eak;case 128:t=2*Math.sqrt(2);
eak;default:throw new E
or("invalid S45ROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;
eak;case 16:e.srPhase=.25*t;
eak;case 32:e.srPhase=.5*t;
eak;case 48:e.srPhase=.75*t;
eak;default:throw new E
or("invalid S45ROUND value")}r&=15,e.srThreshold=0===r?0:(
8-.5)*t},void 0,void 0,function(e){T.DEBUG&&console.log(e.step,"ROFF[]"),e.round=Bt},void 0,function(e){T.DEBUG&&console.log(e.step,"RUTG[]"),e.round=zt},function(e){T.DEBUG&&console.log(e.step,"RDTG[]"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"SCANCTRL[]",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;T.DEBUG&&console.log(e.step,"GETINFO[]",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();T.DEBUG&&console.log(e.step,"ROLL[]"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"MAX[]",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();T.DEBUG&&console.log(e.step,"MIN[]",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();T.DEBUG&&console.log(e.step,"SCANTYPE[]",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(T.DEBUG&&console.log(e.step,"INSTCTRL[]",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new E
or("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=A
ay.from||function(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g)||[]};function Tr(e){(e=e||{}).empty||(Ct(e.familyName,"When creating a new Font object, familyName is required."),Ct(e.styleName,"When creating a new Font object, styleName is required."),Ct(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Ct(e.ascender,"When creating a new Font object, ascender is...