-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathe106d62cc6d652433a9c.worker.js
13 lines (13 loc) · 213 KB
/
e106d62cc6d652433a9c.worker.js
1
2
3
4
5
6
7
8
9
10
11
12
13
(function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s="c3bd")})({0:function(e,t){},"04f8":function(e,t,r){var n=r("2d00"),a=r("d039"),o=r("da84"),i=o.String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"06cf":function(e,t,r){var n=r("83ab"),a=r("c65b"),o=r("d1e7"),i=r("5c6c"),s=r("fc6a"),u=r("a04b"),l=r("1a2d"),p=r("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=s(e),t=u(t),p)try{return c(e,t)}catch(r){}if(l(e,t))return i(!a(o.f,e,t),e[t])}},"07fa":function(e,t,r){var n=r("50c4");e.exports=function(e){return n(e.length)}},"0cfb":function(e,t,r){var n=r("83ab"),a=r("d039"),o=r("cc12");e.exports=!n&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t){var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"13d2":function(e,t,r){var n=r("e330"),a=r("d039"),o=r("1626"),i=r("1a2d"),s=r("83ab"),u=r("5e77").CONFIGURABLE,l=r("8925"),p=r("69f3"),c=p.enforce,f=p.get,h=String,d=Object.defineProperty,v=n("".slice),g=n("".replace),y=n([].join),m=s&&!a((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),S=e.exports=function(e,t,r){"Symbol("===v(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||u&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&r&&i(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var n=c(e);return i(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=S((function(){return o(this)&&f(this).source||l(this)}),"toString")},1626:function(e,t,r){var n=r("8ea1"),a=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},"1a2d":function(e,t,r){var n=r("e330"),a=r("7b0b"),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(a(e),t)}},"1d80":function(e,t,r){var n=r("7234"),a=TypeError;e.exports=function(e){if(n(e))throw a("Can't call method on "+e);return e}},"1fb5":function(e,t,r){"use strict";t.byteLength=p,t.toByteArray=f,t.fromByteArray=v;for(var n=[],a=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=i.length;s<u;++s)n[s]=i[s],a[i.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function p(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function c(e,t,r){return 3*(t+r)/4-r}function f(e){var t,r,n=l(e),i=n[0],s=n[1],u=new o(c(e,i,s)),p=0,f=s>0?i-4:i;for(r=0;r<f;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],u[p++]=t>>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===s&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,u[p++]=255&t),1===s&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function d(e,t,r){for(var n,a=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(h(n));return a.join("")}function v(e){for(var t,r=e.length,a=r%3,o=[],i=16383,s=0,u=r-a;s<u;s+=i)o.push(d(e,s,s+i>u?u:s+i));return 1===a?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},"23cb":function(e,t,r){var n=r("5926"),a=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):o(r,t)}},"23e7":function(e,t,r){var n=r("da84"),a=r("06cf").f,o=r("9112"),i=r("cb2d"),s=r("6374"),u=r("e893"),l=r("94ca");e.exports=function(e,t){var r,p,c,f,h,d,v=e.target,g=e.global,y=e.stat;if(p=g?n:y?n[v]||s(v,{}):(n[v]||{}).prototype,p)for(c in t){if(h=t[c],e.dontCallGetSet?(d=a(p,c),f=d&&d.value):f=p[c],r=l(g?c:v+(y?".":"#")+c,e.forced),!r&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),i(p,c,h,e)}}},"241c":function(e,t,r){var n=r("ca84"),a=r("7839"),o=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"2d00":function(e,t,r){var n,a,o=r("da84"),i=r("342f"),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,p=l&&l.v8;p&&(n=p.split("."),a=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&i&&(n=i.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/),n&&(a=+n[1]))),e.exports=a},"342f":function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"3a9b":function(e,t,r){var n=r("e330");e.exports=n({}.isPrototypeOf)},"40d5":function(e,t,r){var n=r("d039");e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"44ad":function(e,t,r){var n=r("e330"),a=r("d039"),o=r("c6b6"),i=Object,s=n("".split);e.exports=a((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):i(e)}:i},"485a":function(e,t,r){var n=r("c65b"),a=r("1626"),o=r("861d"),i=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&a(r=e.toString)&&!o(s=n(r,e)))return s;if(a(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&a(r=e.toString)&&!o(s=n(r,e)))return s;throw i("Can't convert object to primitive value")}},"4d64":function(e,t,r){var n=r("fc6a"),a=r("23cb"),o=r("07fa"),i=function(e){return function(t,r,i){var s,u=n(t),l=o(u),p=a(i,l);if(e&&r!=r){while(l>p)if(s=u[p++],s!=s)return!0}else for(;l>p;p++)if((e||p in u)&&u[p]===r)return e||p||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"50c4":function(e,t,r){var n=r("5926"),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},5692:function(e,t,r){var n=r("c430"),a=r("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,r){var n=r("d066"),a=r("e330"),o=r("241c"),i=r("7418"),s=r("825a"),u=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=i.f;return r?u(t,r(e)):t}},5926:function(e,t,r){var n=r("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},"59ed":function(e,t,r){var n=r("1626"),a=r("0d51"),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(a(e)+" is not a function")}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e77":function(e,t,r){var n=r("83ab"),a=r("1a2d"),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,s=a(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},6374:function(e,t,r){var n=r("da84"),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},"69f3":function(e,t,r){var n,a,o,i=r("cdce"),s=r("da84"),u=r("861d"),l=r("9112"),p=r("1a2d"),c=r("c6cd"),f=r("f772"),h=r("d012"),d="Object already initialized",v=s.TypeError,g=s.WeakMap,y=function(e){return o(e)?a(e):n(e,{})},m=function(e){return function(t){var r;if(!u(t)||(r=a(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return r}};if(i||c.state){var b=c.state||(c.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw v(d);return t.facade=e,b.set(e,t),t},a=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var S=f("state");h[S]=!0,n=function(e,t){if(p(e,S))throw v(d);return t.facade=e,l(e,S,t),t},a=function(e){return p(e,S)?e[S]:{}},o=function(e){return p(e,S)}}e.exports={set:n,get:a,has:o,enforce:y,getterFor:m}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,r){var n=r("1d80"),a=Object;e.exports=function(e){return a(n(e))}},"825a":function(e,t,r){var n=r("861d"),a=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw o(a(e)+" is not an object")}},"83ab":function(e,t,r){var n=r("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(e,t,r){var n=r("1626"),a=r("8ea1"),o=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},8925:function(e,t,r){var n=r("e330"),a=r("1626"),o=r("c6cd"),i=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},"8ea1":function(e,t){var r="object"==typeof document&&document.all,n="undefined"==typeof r&&void 0!==r;e.exports={all:r,IS_HTMLDDA:n}},"90e3":function(e,t,r){var n=r("e330"),a=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++a+o,36)}},9112:function(e,t,r){var n=r("83ab"),a=r("9bf2"),o=r("5c6c");e.exports=n?function(e,t,r){return a.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},9152:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,u=(1<<s)-1,l=u>>1,p=-7,c=r?a-1:0,f=r?-1:1,h=e[t+c];for(c+=f,o=h&(1<<-p)-1,h>>=-p,p+=s;p>0;o=256*o+e[t+c],c+=f,p-=8);for(i=o&(1<<-p)-1,o>>=-p,p+=n;p>0;i=256*i+e[t+c],c+=f,p-=8);if(0===o)o=1-l;else{if(o===u)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,n),o-=l}return(h?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,u,l=8*o-a-1,p=(1<<l)-1,c=p>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),t+=i+c>=1?f/u:f*Math.pow(2,1-c),t*u>=2&&(i++,u/=2),i+c>=p?(s=0,i=p):i+c>=1?(s=(t*u-1)*Math.pow(2,a),i+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,a),i=0));a>=8;e[r+h]=255&s,h+=d,s/=256,a-=8);for(i=i<<a|s,l+=a;l>0;e[r+h]=255&i,h+=d,i/=256,l-=8);e[r+h-d]|=128*v}},"94ca":function(e,t,r){var n=r("d039"),a=r("1626"),o=/#|\.prototype\./,i=function(e,t){var r=u[s(e)];return r==p||r!=l&&(a(t)?n(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},l=i.NATIVE="N",p=i.POLYFILL="P";e.exports=i},"9bf2":function(e,t,r){var n=r("83ab"),a=r("0cfb"),o=r("aed9"),i=r("825a"),s=r("a04b"),u=TypeError,l=Object.defineProperty,p=Object.getOwnPropertyDescriptor,c="enumerable",f="configurable",h="writable";t.f=n?o?function(e,t,r){if(i(e),t=s(t),i(r),"function"===typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=p(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:c in r?r[c]:n[c],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(i(e),t=s(t),i(r),a)try{return l(e,t,r)}catch(n){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},a04b:function(e,t,r){var n=r("c04e"),a=r("d9b5");e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},a788:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"BoundingBox",(function(){return L})),r.d(t,"Font",(function(){return xi})),r.d(t,"Glyph",(function(){return Ne})),r.d(t,"Path",(function(){return C})),r.d(t,"_parse",(function(){return ye})),r.d(t,"load",(function(){return es})),r.d(t,"loadSync",(function(){return ts})),r.d(t,"parse",(function(){return $i})),
/*! https://mths.be/codepointat v0.2.0 by @mathias */
String.prototype.codePointAt||function(){var e=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(n){}return r}(),t=function(e){if(null==this)throw TypeError();var t=String(this),r=t.length,n=e?Number(e):0;if(n!=n&&(n=0),!(n<0||n>=r)){var a,o=t.charCodeAt(n);return o>=55296&&o<=56319&&r>n+1&&(a=t.charCodeAt(n+1),a>=56320&&a<=57343)?1024*(o-55296)+a-56320+65536:o}};e?e(String.prototype,"codePointAt",{value:t,configurable:!0,writable:!0}):String.prototype.codePointAt=t}();var n=0,a=-3;function o(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new o,this.dtree=new o}var s=new o,u=new o,l=new Uint8Array(30),p=new Uint16Array(30),c=new Uint8Array(30),f=new Uint16Array(30),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new o,v=new Uint8Array(320);function g(e,t,r,n){var a,o;for(a=0;a<r;++a)e[a]=0;for(a=0;a<30-r;++a)e[a+r]=a/r|0;for(o=n,a=0;a<30;++a)t[a]=o,o+=1<<e[a]}function y(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}var m=new Uint16Array(16);function b(e,t,r,n){var a,o;for(a=0;a<16;++a)e.table[a]=0;for(a=0;a<n;++a)e.table[t[r+a]]++;for(e.table[0]=0,o=0,a=0;a<16;++a)m[a]=o,o+=e.table[a];for(a=0;a<n;++a)t[r+a]&&(e.trans[m[t[r+a]]++]=a)}function S(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function x(e,t,r){if(!t)return r;while(e.bitcount<24)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function T(e,t){while(e.bitcount<24)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=0,n=0,a=0,o=e.tag;do{n=2*n+(1&o),o>>>=1,++a,r+=t.table[a],n-=t.table[a]}while(n>=0);return e.tag=o,e.bitcount-=a,t.trans[r+n]}function w(e,t,r){var n,a,o,i,s,u;for(n=x(e,5,257),a=x(e,5,1),o=x(e,4,4),i=0;i<19;++i)v[i]=0;for(i=0;i<o;++i){var l=x(e,3,0);v[h[i]]=l}for(b(d,v,0,19),s=0;s<n+a;){var p=T(e,d);switch(p){case 16:var c=v[s-1];for(u=x(e,2,3);u;--u)v[s++]=c;break;case 17:for(u=x(e,3,3);u;--u)v[s++]=0;break;case 18:for(u=x(e,7,11);u;--u)v[s++]=0;break;default:v[s++]=p;break}}b(t,v,0,n),b(r,v,n,a)}function U(e,t,r){while(1){var a,o,i,s,u=T(e,t);if(256===u)return n;if(u<256)e.dest[e.destLen++]=u;else for(u-=257,a=x(e,l[u],p[u]),o=T(e,r),i=e.destLen-x(e,c[o],f[o]),s=i;s<i+a;++s)e.dest[e.destLen++]=e.dest[s]}}function k(e){var t,r,o;while(e.bitcount>8)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],r=e.source[e.sourceIndex+3],r=256*r+e.source[e.sourceIndex+2],t!==(65535&~r))return a;for(e.sourceIndex+=4,o=t;o;--o)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,n}function O(e,t){var r,o,l,p=new i(e,t);do{switch(r=S(p),o=x(p,2,0),o){case 0:l=k(p);break;case 1:l=U(p,s,u);break;case 2:w(p,p.ltree,p.dtree),l=U(p,p.ltree,p.dtree);break;default:l=a}if(l!==n)throw new Error("Data error")}while(!r);return p.destLen<p.dest.length?"function"===typeof p.dest.slice?p.dest.slice(0,p.destLen):p.dest.subarray(0,p.destLen):p.dest}y(s,u),g(l,p,4,3),g(c,f,2,1),l[28]=0,p[28]=258;var E=O;function R(e,t,r,n,a){return Math.pow(1-a,3)*e+3*Math.pow(1-a,2)*a*t+3*(1-a)*Math.pow(a,2)*r+Math.pow(a,3)*n}function L(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function C(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function D(e){throw new Error(e)}function I(e,t){e||D(t)}L.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},L.prototype.addPoint=function(e,t){"number"===typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"===typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},L.prototype.addX=function(e){this.addPoint(e,null)},L.prototype.addY=function(e){this.addPoint(null,e)},L.prototype.addBezier=function(e,t,r,n,a,o,i,s){var u=[e,t],l=[r,n],p=[a,o],c=[i,s];this.addPoint(e,t),this.addPoint(i,s);for(var f=0;f<=1;f++){var h=6*u[f]-12*l[f]+6*p[f],d=-3*u[f]+9*l[f]-9*p[f]+3*c[f],v=3*l[f]-3*u[f];if(0!==d){var g=Math.pow(h,2)-4*v*d;if(!(g<0)){var y=(-h+Math.sqrt(g))/(2*d);0<y&&y<1&&(0===f&&this.addX(R(u[f],l[f],p[f],c[f],y)),1===f&&this.addY(R(u[f],l[f],p[f],c[f],y)));var m=(-h-Math.sqrt(g))/(2*d);0<m&&m<1&&(0===f&&this.addX(R(u[f],l[f],p[f],c[f],m)),1===f&&this.addY(R(u[f],l[f],p[f],c[f],m)))}}else{if(0===h)continue;var b=-v/h;0<b&&b<1&&(0===f&&this.addX(R(u[f],l[f],p[f],c[f],b)),1===f&&this.addY(R(u[f],l[f],p[f],c[f],b)))}}},L.prototype.addQuad=function(e,t,r,n,a,o){var i=e+2/3*(r-e),s=t+2/3*(n-t),u=i+1/3*(a-e),l=s+1/3*(o-t);this.addBezier(e,t,i,s,u,l,a,o)},C.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},C.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},C.prototype.curveTo=C.prototype.bezierCurveTo=function(e,t,r,n,a,o){this.commands.push({type:"C",x1:e,y1:t,x2:r,y2:n,x:a,y:o})},C.prototype.quadTo=C.prototype.quadraticCurveTo=function(e,t,r,n){this.commands.push({type:"Q",x1:e,y1:t,x:r,y:n})},C.prototype.close=C.prototype.closePath=function(){this.commands.push({type:"Z"})},C.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof L){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()}Array.prototype.push.apply(this.commands,e)},C.prototype.getBoundingBox=function(){for(var e=new L,t=0,r=0,n=0,a=0,o=0;o<this.commands.length;o++){var i=this.commands[o];switch(i.type){case"M":e.addPoint(i.x,i.y),t=n=i.x,r=a=i.y;break;case"L":e.addPoint(i.x,i.y),n=i.x,a=i.y;break;case"Q":e.addQuad(n,a,i.x1,i.y1,i.x,i.y),n=i.x,a=i.y;break;case"C":e.addBezier(n,a,i.x1,i.y1,i.x2,i.y2,i.x,i.y),n=i.x,a=i.y;break;case"Z":n=t,a=r;break;default:throw new Error("Unexpected path command "+i.type)}}return e.isEmpty()&&e.addPoint(0,0),e},C.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];"M"===r.type?e.moveTo(r.x,r.y):"L"===r.type?e.lineTo(r.x,r.y):"C"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):"Q"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):"Z"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},C.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function r(){for(var e=arguments,r="",n=0;n<arguments.length;n+=1){var a=e[n];a>=0&&n>0&&(r+=" "),r+=t(a)}return r}e=void 0!==e?e:2;for(var n="",a=0;a<this.commands.length;a+=1){var o=this.commands[a];"M"===o.type?n+="M"+r(o.x,o.y):"L"===o.type?n+="L"+r(o.x,o.y):"C"===o.type?n+="C"+r(o.x1,o.y1,o.x2,o.y2,o.x,o.y):"Q"===o.type?n+="Q"+r(o.x1,o.y1,o.x,o.y):"Z"===o.type&&(n+="Z")}return n},C.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>",t},C.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 A={fail:D,argument:I,assert:I},P=32768,B=2147483648,M={},F={},G={};function N(e){return function(){return e}}F.BYTE=function(e){return A.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},G.BYTE=N(1),F.CHAR=function(e){return[e.charCodeAt(0)]},G.CHAR=N(1),F.CHARARRAY=function(e){"undefined"===typeof e&&(e="",console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},G.CHARARRAY=function(e){return"undefined"===typeof e?0:e.length},F.USHORT=function(e){return[e>>8&255,255&e]},G.USHORT=N(2),F.SHORT=function(e){return e>=P&&(e=-(2*P-e)),[e>>8&255,255&e]},G.SHORT=N(2),F.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},G.UINT24=N(3),F.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},G.ULONG=N(4),F.LONG=function(e){return e>=B&&(e=-(2*B-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},G.LONG=N(4),F.FIXED=F.ULONG,G.FIXED=G.ULONG,F.FWORD=F.SHORT,G.FWORD=G.SHORT,F.UFWORD=F.USHORT,G.UFWORD=G.USHORT,F.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},G.LONGDATETIME=N(8),F.TAG=function(e){return A.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},G.TAG=N(4),F.Card8=F.BYTE,G.Card8=G.BYTE,F.Card16=F.USHORT,G.Card16=G.USHORT,F.OffSize=F.BYTE,G.OffSize=G.BYTE,F.SID=F.USHORT,G.SID=G.USHORT,F.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?(e-=108,[247+(e>>8),255&e]):e>=-1131&&e<=-108?(e=-e-108,[251+(e>>8),255&e]):e>=-32768&&e<=32767?F.NUMBER16(e):F.NUMBER32(e)},G.NUMBER=function(e){return F.NUMBER(e).length},F.NUMBER16=function(e){return[28,e>>8&255,255&e]},G.NUMBER16=N(3),F.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},G.NUMBER32=N(5),F.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}for(var a="",o=0,i=t.length;o<i;o+=1){var s=t[o];a+="e"===s?"-"===t[++o]?"c":"b":"."===s?"a":"-"===s?"e":s}a+=1&a.length?"f":"ff";for(var u=[30],l=0,p=a.length;l<p;l+=2)u.push(parseInt(a.substr(l,2),16));return u},G.REAL=function(e){return F.REAL(e).length},F.NAME=F.CHARARRAY,G.NAME=G.CHARARRAY,F.STRING=F.CHARARRAY,G.STRING=G.CHARARRAY,M.UTF8=function(e,t,r){for(var n=[],a=r,o=0;o<a;o++,t+=1)n[o]=e.getUint8(t);return String.fromCharCode.apply(null,n)},M.UTF16=function(e,t,r){for(var n=[],a=r/2,o=0;o<a;o++,t+=2)n[o]=e.getUint16(t);return String.fromCharCode.apply(null,n)},F.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t[t.length]=n>>8&255,t[t.length]=255&n}return t},G.UTF16=function(e){return 2*e.length};var H={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};M.MACSTRING=function(e,t,r,n){var a=H[n];if(void 0!==a){for(var o="",i=0;i<r;i++){var s=e.getUint8(t+i);o+=s<=127?String.fromCharCode(s):a[127&s]}return o}};var _,z="function"===typeof WeakMap&&new WeakMap,W=function(e){if(!_)for(var t in _={},H)_[t]=new String(t);var r=_[e];if(void 0!==r){if(z){var n=z.get(r);if(void 0!==n)return n}var a=H[e];if(void 0!==a){for(var o={},i=0;i<a.length;i++)o[a.charCodeAt(i)]=i+128;return z&&z.set(r,o),o}}};function j(e){return e>=-128&&e<=127}function Y(e,t,r){var n=0,a=e.length;while(t<a&&n<64&&0===e[t])++t,++n;return r.push(128|n-1),t}function q(e,t,r){var n=0,a=e.length,o=t;while(o<a&&n<64){var i=e[o];if(!j(i))break;if(0===i&&o+1<a&&0===e[o+1])break;++o,++n}r.push(n-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function X(e,t,r){var n=0,a=e.length,o=t;while(o<a&&n<64){var i=e[o];if(0===i)break;if(j(i)&&o+1<a&&j(e[o+1]))break;++o,++n}r.push(64|n-1);for(var s=t;s<o;++s){var u=e[s];r.push(u+65536>>8&255,u+256&255)}return o}F.MACSTRING=function(e,t){var r=W(t);if(void 0!==r){for(var n=[],a=0;a<e.length;a++){var o=e.charCodeAt(a);if(o>=128&&(o=r[o],void 0===o))return;n[a]=o}return n}},G.MACSTRING=function(e,t){var r=F.MACSTRING(e,t);return void 0!==r?r.length:0},F.VARDELTAS=function(e){var t=0,r=[];while(t<e.length){var n=e[t];t=0===n?Y(e,t,r):n>=-128&&n<=127?q(e,t,r):X(e,t,r)}return r},F.INDEX=function(e){for(var t=1,r=[t],n=[],a=0;a<e.length;a+=1){var o=F.OBJECT(e[a]);Array.prototype.push.apply(n,o),t+=o.length,r.push(t)}if(0===n.length)return[0,0];for(var i=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,u=[void 0,F.BYTE,F.USHORT,F.UINT24,F.ULONG][s],l=0;l<r.length;l+=1){var p=u(r[l]);Array.prototype.push.apply(i,p)}return Array.prototype.concat(F.Card16(e.length),F.OffSize(s),i,n)},G.INDEX=function(e){return F.INDEX(e).length},F.DICT=function(e){for(var t=[],r=Object.keys(e),n=r.length,a=0;a<n;a+=1){for(var o=parseInt(r[a],0),i=e[o],s=F.OPERAND(i.value,i.type),u=F.OPERATOR(o),l=0;l<s.length;l++)t.push(s[l]);for(var p=0;p<u.length;p++)t.push(u[p])}return t},G.DICT=function(e){return F.DICT(e).length},F.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},F.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var n=0;n<t.length;n+=1){A.argument(e.length===t.length,"Not enough arguments given for type"+t);for(var a=F.OPERAND(e[n],t[n]),o=0;o<a.length;o++)r.push(a[o])}else if("SID"===t)for(var i=F.NUMBER(e),s=0;s<i.length;s++)r.push(i[s]);else if("offset"===t)for(var u=F.NUMBER32(e),l=0;l<u.length;l++)r.push(u[l]);else if("number"===t)for(var p=F.NUMBER(e),c=0;c<p.length;c++)r.push(p[c]);else{if("real"!==t)throw new Error("Unknown operand type "+t);for(var f=F.REAL(e),h=0;h<f.length;h++)r.push(f[h])}return r},F.OP=F.BYTE,G.OP=G.BYTE;var V="function"===typeof WeakMap&&new WeakMap;function Z(e,t,r){if(t.length&&("coverageFormat"!==t[0].name||1===t[0].value))for(var n=0;n<t.length;n+=1){var a=t[n];this[a.name]=a.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),i=0;i<o.length;i+=1){var s=o[i],u=r[s];void 0!==this[s]&&(this[s]=u)}}function Q(e,t,r){void 0===r&&(r=t.length);var n=new Array(t.length+1);n[0]={name:e+"Count",type:"USHORT",value:r};for(var a=0;a<t.length;a++)n[a+1]={name:e+a,type:"USHORT",value:t[a]};return n}function K(e,t,r){var n=t.length,a=new Array(n+1);a[0]={name:e+"Count",type:"USHORT",value:n};for(var o=0;o<n;o++)a[o+1]={name:e+o,type:"TABLE",value:r(t[o],o)};return a}function J(e,t,r){var n=t.length,a=[];a[0]={name:e+"Count",type:"USHORT",value:n};for(var o=0;o<n;o++)a=a.concat(r(t[o],o));return a}function $(e){1===e.format?Z.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(Q("glyph",e.glyphs))):2===e.format?Z.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:2}].concat(J("rangeRecord",e.ranges,(function(e){return[{name:"startGlyphID",type:"USHORT",value:e.start},{name:"endGlyphID",type:"USHORT",value:e.end},{name:"startCoverageIndex",type:"USHORT",value:e.index}]})))):A.assert(!1,"Coverage format must be 1 or 2.")}function ee(e){Z.call(this,"scriptListTable",J("scriptRecord",e,(function(e,t){var r=e.script,n=r.defaultLangSys;return A.assert(!!n,"Unable to write GSUB: script "+e.tag+" has no default language system."),[{name:"scriptTag"+t,type:"TAG",value:e.tag},{name:"script"+t,type:"TABLE",value:new Z("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new Z("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(Q("featureIndex",n.featureIndexes)))}].concat(J("langSys",r.langSysRecords,(function(e,t){var r=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new Z("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(Q("featureIndex",r.featureIndexes)))}]}))))}]})))}function te(e){Z.call(this,"featureListTable",J("featureRecord",e,(function(e,t){var r=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new Z("featureTable",[{name:"featureParams",type:"USHORT",value:r.featureParams}].concat(Q("lookupListIndex",r.lookupListIndexes)))}]})))}function re(e,t){Z.call(this,"lookupListTable",K("lookup",e,(function(e){var r=t[e.lookupType];return A.assert(!!r,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new Z("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(K("subtable",e.subtables,r)))})))}F.CHARSTRING=function(e){if(V){var t=V.get(e);if(void 0!==t)return t}for(var r=[],n=e.length,a=0;a<n;a+=1)for(var o=e[a],i=F[o.type](o.value),s=0;s<i.length;s++)r.push(i[s]);return V&&V.set(e,r),r},G.CHARSTRING=function(e){return F.CHARSTRING(e).length},F.OBJECT=function(e){var t=F[e.type];return A.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},G.OBJECT=function(e){var t=G[e.type];return A.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},F.TABLE=function(e){for(var t=[],r=e.fields.length,n=[],a=[],o=0;o<r;o+=1){var i=e.fields[o],s=F[i.type];A.argument(void 0!==s,"No encoding function for field type "+i.type+" ("+i.name+")");var u=e[i.name];void 0===u&&(u=i.value);var l=s(u);if("TABLE"===i.type)a.push(t.length),t.push(0,0),n.push(l);else for(var p=0;p<l.length;p++)t.push(l[p])}for(var c=0;c<n.length;c+=1){var f=a[c],h=t.length;A.argument(h<65536,"Table "+e.tableName+" too big."),t[f]=h>>8,t[f+1]=255&h;for(var d=0;d<n[c].length;d++)t.push(n[c][d])}return t},G.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n<r;n+=1){var a=e.fields[n],o=G[a.type];A.argument(void 0!==o,"No sizeOf function for field type "+a.type+" ("+a.name+")");var i=e[a.name];void 0===i&&(i=a.value),t+=o(i),"TABLE"===a.type&&(t+=2)}return t},F.RECORD=F.TABLE,G.RECORD=G.TABLE,F.LITERAL=function(e){return e},G.LITERAL=function(e){return e.length},Z.prototype.encode=function(){return F.TABLE(this)},Z.prototype.sizeOf=function(){return G.TABLE(this)},$.prototype=Object.create(Z.prototype),$.prototype.constructor=$,ee.prototype=Object.create(Z.prototype),ee.prototype.constructor=ee,te.prototype=Object.create(Z.prototype),te.prototype.constructor=te,re.prototype=Object.create(Z.prototype),re.prototype.constructor=re;var ne={Table:Z,Record:Z,Coverage:$,ScriptList:ee,FeatureList:te,LookupList:re,ushortList:Q,tableList:K,recordList:J};function ae(e,t){return e.getUint8(t)}function oe(e,t){return e.getUint16(t,!1)}function ie(e,t){return e.getInt16(t,!1)}function se(e,t){var r=e.getUint16(t,!1),n=e.getUint8(t+2,!1);return r*Math.pow(2,8)+n}function ue(e,t){return e.getUint32(t,!1)}function le(e,t){var r=e.getInt16(t,!1),n=e.getUint16(t+2,!1);return r+n/65535}function pe(e,t){for(var r="",n=t;n<t+4;n+=1)r+=String.fromCharCode(e.getInt8(n));return r}function ce(e,t,r){for(var n=0,a=0;a<r;a+=1)n<<=8,n+=e.getUint8(t+a);return n}function fe(e,t,r){for(var n=[],a=t;a<r;a+=1)n.push(e.getUint8(a));return n}function he(e){for(var t="",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t}var de={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function ve(e,t){this.data=e,this.offset=t,this.relativeOffset=0}ve.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ve.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ve.prototype.parseCard8=ve.prototype.parseByte,ve.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ve.prototype.parseCard16=ve.prototype.parseUShort,ve.prototype.parseSID=ve.prototype.parseUShort,ve.prototype.parseOffset16=ve.prototype.parseUShort,ve.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ve.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},ve.prototype.parseUInt24=function(){var e=se(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=3,e},ve.prototype.parseULong=function(){var e=ue(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ve.prototype.parseOffset32=ve.prototype.parseULong,ve.prototype.parseFixed=function(){var e=le(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ve.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,n="";this.relativeOffset+=e;for(var a=0;a<e;a++)n+=String.fromCharCode(t.getUint8(r+a));return n},ve.prototype.parseTag=function(){return this.parseString(4)},ve.prototype.parseLongDateTime=function(){var e=ue(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},ve.prototype.parseVersion=function(e){var t=oe(this.data,this.offset+this.relativeOffset),r=oe(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},ve.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=de[e]*t},ve.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getUint32(n),n+=4;return this.relativeOffset+=4*e,t},ve.prototype.parseOffset16List=ve.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getUint16(n),n+=2;return this.relativeOffset+=2*e,t},ve.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getInt16(n),n+=2;return this.relativeOffset+=2*e,t},ve.prototype.parseUInt24List=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=se(r,n),n+=3;return this.relativeOffset+=3*e,t},ve.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getUint8(n++);return this.relativeOffset+=e,t},ve.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r},ve.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r},ve.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=Object.keys(t),a=0;a<e;a++){for(var o={},i=0;i<n.length;i++){var s=n[i],u=t[s];o[s]=u.call(this)}r[a]=o}return r},ve.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=Object.keys(t),a=0;a<e;a++){for(var o={},i=0;i<n.length;i++){var s=n[i],u=t[s];o[s]=u.call(this)}r[a]=o}return r},ve.prototype.parseStruct=function(e){if("function"===typeof e)return e.call(this);for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n],o=e[a];r[a]=o.call(this)}return r},ve.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},ve.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),n=0;n<t;n++)r[n]=this.parseValueRecord(e);return r},ve.prototype.parsePointer=function(e,t){void 0===t&&(t=!1);var r=this.parseOffset16();if(r>0){var n=this.offset+r,a=new ve(this.data,n).parseStruct(e);return t&&(a.tableOffset=n),a}},ve.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new ve(this.data,this.offset+t).parseStruct(e)},ve.prototype.parseListOfLists=function(e){for(var t=this.parseOffset16List(),r=t.length,n=this.relativeOffset,a=new Array(r),o=0;o<r;o++){var i=t[o];if(0!==i)if(this.relativeOffset=i,e){for(var s=this.parseOffset16List(),u=new Array(s.length),l=0;l<s.length;l++)this.relativeOffset=i+s[l],u[l]=e.call(this);a[o]=u}else a[o]=this.parseUShortList();else a[o]=void 0}return this.relativeOffset=n,a},ve.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2===t){for(var n=new Array(r),a=0;a<r;a++)n[a]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:n}}throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.")},ve.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:ve.uShort,end:ve.uShort,classId:ve.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},ve.list=function(e,t){return function(){return this.parseList(e,t)}},ve.list32=function(e,t){return function(){return this.parseList32(e,t)}},ve.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},ve.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},ve.pointer=function(e,t){return void 0===t&&(t=!1),function(){return this.parsePointer(e,t)}},ve.pointer32=function(e){return function(){return this.parsePointer32(e)}},ve.tag=ve.prototype.parseTag,ve.byte=ve.prototype.parseByte,ve.uShort=ve.offset16=ve.prototype.parseUShort,ve.uShortList=ve.prototype.parseUShortList,ve.uInt24=ve.prototype.parseUInt24,ve.uLong=ve.offset32=ve.prototype.parseULong,ve.uLongList=ve.prototype.parseULongList,ve.uInt24List=ve.prototype.parseUInt24List,ve.struct=ve.prototype.parseStruct,ve.coverage=ve.prototype.parseCoverage,ve.classDef=ve.prototype.parseClassDef;var ge={reserved:ve.uShort,reqFeatureIndex:ve.uShort,featureIndexes:ve.uShortList};ve.prototype.parseScriptList=function(){return this.parsePointer(ve.recordList({tag:ve.tag,script:ve.pointer({defaultLangSys:ve.pointer(ge),langSysRecords:ve.recordList({tag:ve.tag,langSys:ve.pointer(ge)})})}))||[]},ve.prototype.parseFeatureList=function(){return this.parsePointer(ve.recordList({tag:ve.tag,feature:ve.pointer({featureParams:ve.offset16,lookupListIndexes:ve.uShortList},!0)}))||[]},ve.prototype.parseStylisticSetFeatureParams=function(){return this.parsePointer({version:ve.uShort,uiNameId:ve.uShort})||[]},ve.prototype.parseCharacterVariantFeatureParams=function(){return this.parsePointer({format:ve.uShort,featUiLabelNameId:ve.uShort,featUiTooltipTextNameId:ve.uShort,sampleTextNameId:ve.uShort,numNamedParameters:ve.uShort,firstParamUiLabelNameId:ve.uShort,characters:ve.uInt24List})||[]},ve.prototype.parseLookupList=function(e){return this.parsePointer(ve.list(ve.pointer((function(){var t=this.parseUShort();A.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var r=this.parseUShort(),n=16&r;return{lookupType:t,lookupFlag:r,subtables:this.parseList(ve.pointer(e[t])),markFilteringSet:n?this.parseUShort():void 0}}))))||[]},ve.prototype.parseFeatureVariationsList=function(){return this.parsePointer32((function(){var e=this.parseUShort(),t=this.parseUShort();A.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown.");var r=this.parseRecordList32({conditionSetOffset:ve.offset32,featureTableSubstitutionOffset:ve.offset32});return r}))||[]};var ye={getByte:ae,getCard8:ae,getUShort:oe,getCard16:oe,getShort:ie,getUInt24:se,getULong:ue,getFixed:le,getTag:pe,getOffset:ce,getBytes:fe,bytesToString:he,Parser:ve};function me(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n<r;n+=1)for(var a=t.parseULong(),o=t.parseULong(),i=t.parseULong(),s=a;s<=o;s+=1)e.glyphIndexMap[s]=i,i++}function be(e,t,r,n,a){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new ye.Parser(r,n+a+14),s=new ye.Parser(r,n+a+16+2*o),u=new ye.Parser(r,n+a+16+4*o),l=new ye.Parser(r,n+a+16+6*o),p=n+a+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,h=i.parseUShort(),d=s.parseUShort(),v=u.parseShort(),g=l.parseUShort(),y=d;y<=h;y+=1)0!==g?(p=l.offset+l.relativeOffset-2,p+=g,p+=2*(y-d),f=ye.getUShort(r,p),0!==f&&(f=f+v&65535)):f=y+v&65535,e.glyphIndexMap[y]=f}function Se(e,t){var r={};r.version=ye.getUShort(e,t),A.argument(0===r.version,"cmap table version should be 0."),r.numTables=ye.getUShort(e,t+2);for(var n=-1,a=r.numTables-1;a>=0;a-=1){var o=ye.getUShort(e,t+4+8*a),i=ye.getUShort(e,t+4+8*a+2);if(3===o&&(0===i||1===i||10===i)||0===o&&(0===i||1===i||2===i||3===i||4===i)){n=ye.getULong(e,t+4+8*a+4);break}}if(-1===n)throw new Error("No valid cmap sub-tables found.");var s=new ye.Parser(e,t+n);if(r.format=s.parseUShort(),12===r.format)me(r,s);else{if(4!==r.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");be(r,s,e,t,n)}return r}function xe(e,t,r){e.segments.push({end:t,start:t,delta:-(t-r),offset:0,glyphIndex:r})}function Te(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function we(e){var t,r=!0;for(t=e.length-1;t>0;t-=1){var n=e.get(t);if(n.unicode>65535){console.log("Adding CMAP format 12 (needed!)"),r=!1;break}}var a=[{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||(a=a.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),a=a.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 o=new ne.Table("cmap",a);for(o.segments=[],t=0;t<e.length;t+=1){for(var i=e.get(t),s=0;s<i.unicodes.length;s+=1)xe(o,i.unicodes[s],t);o.segments=o.segments.sort((function(e,t){return e.start-t.start}))}Te(o);var u=o.segments.length,l=0,p=[],c=[],f=[],h=[],d=[],v=[];for(t=0;t<u;t+=1){var g=o.segments[t];g.end<=65535&&g.start<=65535?(p=p.concat({name:"end_"+t,type:"USHORT",value:g.end}),c=c.concat({name:"start_"+t,type:"USHORT",value:g.start}),f=f.concat({name:"idDelta_"+t,type:"SHORT",value:g.delta}),h=h.concat({name:"idRangeOffset_"+t,type:"USHORT",value:g.offset}),void 0!==g.glyphId&&(d=d.concat({name:"glyph_"+t,type:"USHORT",value:g.glyphId}))):l+=1,r||void 0===g.glyphIndex||(v=v.concat({name:"cmap12Start_"+t,type:"ULONG",value:g.start}),v=v.concat({name:"cmap12End_"+t,type:"ULONG",value:g.end}),v=v.concat({name:"cmap12Glyph_"+t,type:"ULONG",value:g.glyphIndex}))}if(o.segCountX2=2*(u-l),o.searchRange=2*Math.pow(2,Math.floor(Math.log(u-l)/Math.log(2))),o.entrySelector=Math.log(o.searchRange/2)/Math.log(2),o.rangeShift=o.segCountX2-o.searchRange,o.fields=o.fields.concat(p),o.fields.push({name:"reservedPad",type:"USHORT",value:0}),o.fields=o.fields.concat(c),o.fields=o.fields.concat(f),o.fields=o.fields.concat(h),o.fields=o.fields.concat(d),o.cmap4Length=14+2*p.length+2+2*c.length+2*f.length+2*h.length+2*d.length,!r){var y=16+4*v.length;o.cmap12Offset=20+o.cmap4Length,o.fields=o.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:y},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:v.length/3}]),o.fields=o.fields.concat(v)}return o}var Ue={parse:Se,make:we},ke=[".notdef","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","bracketleft","backslash","bracketright","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","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","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","breve","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","brokenbar","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"],Oe=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","bracketleft","backslash","bracketright","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","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","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","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],Ee=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],Re=[".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","bracketleft","backslash","bracketright","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","braceleft","bar","braceright","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","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","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","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function Le(e){this.font=e}function Ce(e){this.cmap=e}function De(e,t){this.encoding=e,this.charset=t}function Ie(e){switch(e.version){case 1:this.names=Re.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<Re.length?this.names[t]=Re[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-Re.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=Re[r+e.glyphNameIndex[r]];break;case 3:this.names=[];break;default:this.names=[];break}}function Ae(e){for(var t,r=e.tables.cmap.glyphIndexMap,n=Object.keys(r),a=0;a<n.length;a+=1){var o=n[a],i=r[o];t=e.glyphs.get(i),t.addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name="gid"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}function Pe(e){e._IndexToUnicodeMap={};for(var t=e.tables.cmap.glyphIndexMap,r=Object.keys(t),n=0;n<r.length;n+=1){var a=r[n],o=t[a];void 0===e._IndexToUnicodeMap[o]?e._IndexToUnicodeMap[o]={unicodes:[parseInt(a)]}:e._IndexToUnicodeMap[o].unicodes.push(parseInt(a))}}function Be(e,t){t.lowMemory?Pe(e):Ae(e)}function Me(e,t,r,n,a){e.beginPath(),e.moveTo(t,r),e.lineTo(n,a),e.stroke()}Le.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var n=0;n<r.length;n+=1)for(var a=r.get(n),o=0;o<a.unicodes.length;o+=1)if(a.unicodes[o]===t)return n;return null},Ce.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},De.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},Ie.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},Ie.prototype.glyphIndexToName=function(e){return this.names[e]};var Fe={line:Me};function Ge(e,t){var r=t||new C;return{configurable:!0,get:function(){return"function"===typeof r&&(r=r()),r},set:function(e){r=e}}}function Ne(e){this.bindConstructorValues(e)}function He(e,t,r){Object.defineProperty(e,t,{get:function(){return e.path,e[r]},set:function(t){e[r]=t},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];n.path.unitsPerEm=e.unitsPerEm,this.glyphs[r]=n}this.length=t&&t.length||0}function ze(e,t){return new Ne({index:t,font:e})}function We(e,t,r,n,a,o){return function(){var i=new Ne({index:t,font:e});return i.path=function(){r(i,n,a);var t=o(e.glyphs,i);return t.unitsPerEm=e.unitsPerEm,t},He(i,"xMin","_xMin"),He(i,"xMax","_xMax"),He(i,"yMin","_yMin"),He(i,"yMax","_yMax"),i}}function je(e,t,r,n){return function(){var a=new Ne({index:t,font:e});return a.path=function(){var t=r(e,a,n);return t.unitsPerEm=e.unitsPerEm,t},a}}Ne.prototype.bindConstructorValues=function(e){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]:[],"xMin"in e&&(this.xMin=e.xMin),"yMin"in e&&(this.yMin=e.yMin),"xMax"in e&&(this.xMax=e.xMax),"yMax"in e&&(this.yMax=e.yMax),"advanceWidth"in e&&(this.advanceWidth=e.advanceWidth),"leftSideBearing"in e&&(this.leftSideBearing=e.leftSideBearing),Object.defineProperty(this,"path",Ge(this,e.path))},Ne.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},Ne.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},Ne.prototype.getPath=function(e,t,r,n,a){var o,i;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72,n||(n={});var s=n.xScale,u=n.yScale;if(n.hinting&&a&&a.hinting&&(i=this.path&&a.hinting.exec(this,r)),i)o=a.hinting.getCommands(i),e=Math.round(e),t=Math.round(t),s=u=1;else{o=this.path.commands;var l=1/(this.path.unitsPerEm||1e3)*r;void 0===s&&(s=l),void 0===u&&(u=l)}for(var p=new C,c=0;c<o.length;c+=1){var f=o[c];"M"===f.type?p.moveTo(e+f.x*s,t+-f.y*u):"L"===f.type?p.lineTo(e+f.x*s,t+-f.y*u):"Q"===f.type?p.quadraticCurveTo(e+f.x1*s,t+-f.y1*u,e+f.x*s,t+-f.y*u):"C"===f.type?p.curveTo(e+f.x1*s,t+-f.y1*u,e+f.x2*s,t+-f.y2*u,e+f.x*s,t+-f.y*u):"Z"===f.type&&p.closePath()}return p},Ne.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var n=this.points[r];t.push(n),n.lastPointOfContour&&(e.push(t),t=[])}return A.argument(0===t.length,"There are still points left in the current contour."),e},Ne.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],n=0;n<e.length;n+=1){var a=e[n];"Z"!==a.type&&(t.push(a.x),r.push(a.y)),"Q"!==a.type&&"C"!==a.type||(t.push(a.x1),r.push(a.y1)),"C"===a.type&&(t.push(a.x2),r.push(a.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},Ne.prototype.draw=function(e,t,r,n,a){this.getPath(t,r,n,a).draw(e)},Ne.prototype.drawPoints=function(e,t,r,n){function a(t,r,n,a){e.beginPath();for(var o=0;o<t.length;o+=1)e.moveTo(r+t[o].x*a,n+t[o].y*a),e.arc(r+t[o].x*a,n+t[o].y*a,2,0,2*Math.PI,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:24;for(var o=1/this.path.unitsPerEm*n,i=[],s=[],u=this.path,l=0;l<u.commands.length;l+=1){var p=u.commands[l];void 0!==p.x&&i.push({x:p.x,y:-p.y}),void 0!==p.x1&&s.push({x:p.x1,y:-p.y1}),void 0!==p.x2&&s.push({x:p.x2,y:-p.y2})}e.fillStyle="blue",a(i,t,r,o),e.fillStyle="red",a(s,t,r,o)},Ne.prototype.drawMetrics=function(e,t,r,n){var a;t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:24,a=1/this.path.unitsPerEm*n,e.lineWidth=1,e.strokeStyle="black",Fe.line(e,t,-1e4,t,1e4),Fe.line(e,-1e4,r,1e4,r);var o=this.xMin||0,i=this.yMin||0,s=this.xMax||0,u=this.yMax||0,l=this.advanceWidth||0;e.strokeStyle="blue",Fe.line(e,t+o*a,-1e4,t+o*a,1e4),Fe.line(e,t+s*a,-1e4,t+s*a,1e4),Fe.line(e,-1e4,r+-i*a,1e4,r+-i*a),Fe.line(e,-1e4,r+-u*a,1e4,r+-u*a),e.strokeStyle="green",Fe.line(e,t+l*a,-1e4,t+l*a,1e4)},_e.prototype.get=function(e){if(void 0===this.glyphs[e]){this.font._push(e),"function"===typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());var t=this.glyphs[e],r=this.font._IndexToUnicodeMap[e];if(r)for(var n=0;n<r.unicodes.length;n++)t.addUnicode(r.unicodes[n]);this.font.cffEncoding?this.font.isCIDFont?t.name="gid"+e:t.name=this.font.cffEncoding.charset[e]:this.font.glyphNames.names&&(t.name=this.font.glyphNames.glyphIndexToName(e)),this.glyphs[e].advanceWidth=this.font._hmtxTableData[e].advanceWidth,this.glyphs[e].leftSideBearing=this.font._hmtxTableData[e].leftSideBearing}else"function"===typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());return this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var Ye={GlyphSet:_e,glyphLoader:ze,ttfGlyphLoader:We,cffGlyphLoader:je};function qe(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!qe(e[r],t[r]))return!1;return!0}return!1}function Xe(e){var t;return t=e.length<1240?107:e.length<33900?1131:32768,t}function Ve(e,t,r){var n,a,o=[],i=[],s=ye.getCard16(e,t);if(0!==s){var u=ye.getByte(e,t+2);n=t+(s+1)*u+2;for(var l=t+3,p=0;p<s+1;p+=1)o.push(ye.getOffset(e,l,u)),l+=u;a=n+o[s]}else a=t+2;for(var c=0;c<o.length-1;c+=1){var f=ye.getBytes(e,n+o[c],n+o[c+1]);r&&(f=r(f)),i.push(f)}return{objects:i,startOffset:t,endOffset:a}}function Ze(e,t){var r,n,a=[],o=ye.getCard16(e,t);if(0!==o){var i=ye.getByte(e,t+2);r=t+(o+1)*i+2;for(var s=t+3,u=0;u<o+1;u+=1)a.push(ye.getOffset(e,s,i)),s+=i;n=r+a[o]}else n=t+2;return{offsets:a,startOffset:t,endOffset:n}}function Qe(e,t,r,n,a){var o=ye.getCard16(r,n),i=0;if(0!==o){var s=ye.getByte(r,n+2);i=n+(o+1)*s+2}var u=ye.getBytes(r,i+t[e],i+t[e+1]);return a&&(u=a(u)),u}function Ke(e){var t="",r=15,n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(1){var a=e.parseByte(),o=a>>4,i=15&a;if(o===r)break;if(t+=n[o],i===r)break;t+=n[i]}return parseFloat(t)}function Je(e,t){var r,n,a,o;if(28===t)return r=e.parseByte(),n=e.parseByte(),r<<8|n;if(29===t)return r=e.parseByte(),n=e.parseByte(),a=e.parseByte(),o=e.parseByte(),r<<24|n<<16|a<<8|o;if(30===t)return Ke(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return r=e.parseByte(),256*(t-247)+r+108;if(t>=251&&t<=254)return r=e.parseByte(),256*-(t-251)-r-108;throw new Error("Invalid b0 "+t)}function $e(e){for(var t={},r=0;r<e.length;r+=1){var n=e[r][0],a=e[r][1],o=void 0;if(o=1===a.length?a[0]:a,t.hasOwnProperty(n)&&!isNaN(t[n]))throw new Error("Object "+t+" already has key "+n);t[n]=o}return t}function et(e,t,r){t=void 0!==t?t:0;var n=new ye.Parser(e,t),a=[],o=[];r=void 0!==r?r:e.length;while(n.relativeOffset<r){var i=n.parseByte();i<=21?(12===i&&(i=1200+n.parseByte()),a.push([i,o]),o=[]):o.push(Je(n,i))}return $e(a)}function tt(e,t){return t=t<=390?ke[t]:e[t-391],t}function rt(e,t,r){for(var n,a={},o=0;o<t.length;o+=1){var i=t[o];if(Array.isArray(i.type)){var s=[];s.length=i.type.length;for(var u=0;u<i.type.length;u++)n=void 0!==e[i.op]?e[i.op][u]:void 0,void 0===n&&(n=void 0!==i.value&&void 0!==i.value[u]?i.value[u]:null),"SID"===i.type[u]&&(n=tt(r,n)),s[u]=n;a[i.name]=s}else n=e[i.op],void 0===n&&(n=void 0!==i.value?i.value:null),"SID"===i.type&&(n=tt(r,n)),a[i.name]=n}return a}function nt(e,t){var r={};return r.formatMajor=ye.getCard8(e,t),r.formatMinor=ye.getCard8(e,t+1),r.size=ye.getCard8(e,t+2),r.offsetSize=ye.getCard8(e,t+3),r.startOffset=t,r.endOffset=t+4,r}var at=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],ot=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function it(e,t){var r=et(e,0,e.byteLength);return rt(r,at,t)}function st(e,t,r,n){var a=et(e,t,r);return rt(a,ot,n)}function ut(e,t,r,n){for(var a=[],o=0;o<r.length;o+=1){var i=new DataView(new Uint8Array(r[o]).buffer),s=it(i,n);s._subrs=[],s._subrsBias=0,s._defaultWidthX=0,s._nominalWidthX=0;var u=s.private[0],l=s.private[1];if(0!==u&&0!==l){var p=st(e,l+t,u,n);if(s._defaultWidthX=p.defaultWidthX,s._nominalWidthX=p.nominalWidthX,0!==p.subrs){var c=l+p.subrs,f=Ve(e,c+t);s._subrs=f.objects,s._subrsBias=Xe(s._subrs)}s._privateDict=p}a.push(s)}return a}function lt(e,t,r,n){var a,o,i=new ye.Parser(e,t);r-=1;var s=[".notdef"],u=i.parseCard8();if(0===u)for(var l=0;l<r;l+=1)a=i.parseSID(),s.push(tt(n,a));else if(1===u)while(s.length<=r){a=i.parseSID(),o=i.parseCard8();for(var p=0;p<=o;p+=1)s.push(tt(n,a)),a+=1}else{if(2!==u)throw new Error("Unknown charset format "+u);while(s.length<=r){a=i.parseSID(),o=i.parseCard16();for(var c=0;c<=o;c+=1)s.push(tt(n,a)),a+=1}}return s}function pt(e,t,r){var n,a={},o=new ye.Parser(e,t),i=o.parseCard8();if(0===i)for(var s=o.parseCard8(),u=0;u<s;u+=1)n=o.parseCard8(),a[n]=u;else{if(1!==i)throw new Error("Unknown encoding format "+i);var l=o.parseCard8();n=1;for(var p=0;p<l;p+=1)for(var c=o.parseCard8(),f=o.parseCard8(),h=c;h<=c+f;h+=1)a[h]=n,n+=1}return new De(a,r)}function ct(e,t,r){var n,a,o,i,s,u,l,p,c=new C,f=[],h=0,d=!1,v=!1,g=0,y=0;if(e.isCIDFont){var m=e.tables.cff.topDict._fdSelect[t.index],b=e.tables.cff.topDict._fdArray[m];s=b._subrs,u=b._subrsBias,l=b._defaultWidthX,p=b._nominalWidthX}else s=e.tables.cff.topDict._subrs,u=e.tables.cff.topDict._subrsBias,l=e.tables.cff.topDict._defaultWidthX,p=e.tables.cff.topDict._nominalWidthX;var S=l;function x(e,t){v&&c.closePath(),c.moveTo(e,t),v=!0}function T(){var e;e=f.length%2!==0,e&&!d&&(S=f.shift()+p),h+=f.length>>1,f.length=0,d=!0}function w(r){var l,m,b,U,k,O,E,R,L,C,D,I,A=0;while(A<r.length){var P=r[A];switch(A+=1,P){case 1:T();break;case 3:T();break;case 4:f.length>1&&!d&&(S=f.shift()+p,d=!0),y+=f.pop(),x(g,y);break;case 5:while(f.length>0)g+=f.shift(),y+=f.shift(),c.lineTo(g,y);break;case 6:while(f.length>0){if(g+=f.shift(),c.lineTo(g,y),0===f.length)break;y+=f.shift(),c.lineTo(g,y)}break;case 7:while(f.length>0){if(y+=f.shift(),c.lineTo(g,y),0===f.length)break;g+=f.shift(),c.lineTo(g,y)}break;case 8:while(f.length>0)n=g+f.shift(),a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),g=o+f.shift(),y=i+f.shift(),c.curveTo(n,a,o,i,g,y);break;case 10:k=f.pop()+u,O=s[k],O&&w(O);break;case 11:return;case 12:switch(P=r[A],A+=1,P){case 35:n=g+f.shift(),a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),E=o+f.shift(),R=i+f.shift(),L=E+f.shift(),C=R+f.shift(),D=L+f.shift(),I=C+f.shift(),g=D+f.shift(),y=I+f.shift(),f.shift(),c.curveTo(n,a,o,i,E,R),c.curveTo(L,C,D,I,g,y);break;case 34:n=g+f.shift(),a=y,o=n+f.shift(),i=a+f.shift(),E=o+f.shift(),R=i,L=E+f.shift(),C=i,D=L+f.shift(),I=y,g=D+f.shift(),c.curveTo(n,a,o,i,E,R),c.curveTo(L,C,D,I,g,y);break;case 36:n=g+f.shift(),a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),E=o+f.shift(),R=i,L=E+f.shift(),C=i,D=L+f.shift(),I=C+f.shift(),g=D+f.shift(),c.curveTo(n,a,o,i,E,R),c.curveTo(L,C,D,I,g,y);break;case 37:n=g+f.shift(),a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),E=o+f.shift(),R=i+f.shift(),L=E+f.shift(),C=R+f.shift(),D=L+f.shift(),I=C+f.shift(),Math.abs(D-g)>Math.abs(I-y)?g=D+f.shift():y=I+f.shift(),c.curveTo(n,a,o,i,E,R),c.curveTo(L,C,D,I,g,y);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+P),f.length=0}break;case 14:f.length>0&&!d&&(S=f.shift()+p,d=!0),v&&(c.closePath(),v=!1);break;case 18:T();break;case 19:case 20:T(),A+=h+7>>3;break;case 21:f.length>2&&!d&&(S=f.shift()+p,d=!0),y+=f.pop(),g+=f.pop(),x(g,y);break;case 22:f.length>1&&!d&&(S=f.shift()+p,d=!0),g+=f.pop(),x(g,y);break;case 23:T();break;case 24:while(f.length>2)n=g+f.shift(),a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),g=o+f.shift(),y=i+f.shift(),c.curveTo(n,a,o,i,g,y);g+=f.shift(),y+=f.shift(),c.lineTo(g,y);break;case 25:while(f.length>6)g+=f.shift(),y+=f.shift(),c.lineTo(g,y);n=g+f.shift(),a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),g=o+f.shift(),y=i+f.shift(),c.curveTo(n,a,o,i,g,y);break;case 26:f.length%2&&(g+=f.shift());while(f.length>0)n=g,a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),g=o,y=i+f.shift(),c.curveTo(n,a,o,i,g,y);break;case 27:f.length%2&&(y+=f.shift());while(f.length>0)n=g+f.shift(),a=y,o=n+f.shift(),i=a+f.shift(),g=o+f.shift(),y=i,c.curveTo(n,a,o,i,g,y);break;case 28:l=r[A],m=r[A+1],f.push((l<<24|m<<16)>>16),A+=2;break;case 29:k=f.pop()+e.gsubrsBias,O=e.gsubrs[k],O&&w(O);break;case 30:while(f.length>0){if(n=g,a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),g=o+f.shift(),y=i+(1===f.length?f.shift():0),c.curveTo(n,a,o,i,g,y),0===f.length)break;n=g+f.shift(),a=y,o=n+f.shift(),i=a+f.shift(),y=i+f.shift(),g=o+(1===f.length?f.shift():0),c.curveTo(n,a,o,i,g,y)}break;case 31:while(f.length>0){if(n=g+f.shift(),a=y,o=n+f.shift(),i=a+f.shift(),y=i+f.shift(),g=o+(1===f.length?f.shift():0),c.curveTo(n,a,o,i,g,y),0===f.length)break;n=g,a=y+f.shift(),o=n+f.shift(),i=a+f.shift(),g=o+f.shift(),y=i+(1===f.length?f.shift():0),c.curveTo(n,a,o,i,g,y)}break;default:P<32?console.log("Glyph "+t.index+": unknown operator "+P):P<247?f.push(P-139):P<251?(l=r[A],A+=1,f.push(256*(P-247)+l+108)):P<255?(l=r[A],A+=1,f.push(256*-(P-251)-l-108)):(l=r[A],m=r[A+1],b=r[A+2],U=r[A+3],A+=4,f.push((l<<24|m<<16|b<<8|U)/65536))}}}return w(r),t.advanceWidth=S,c}function ft(e,t,r,n){var a,o=[],i=new ye.Parser(e,t),s=i.parseCard8();if(0===s)for(var u=0;u<r;u++){if(a=i.parseCard8(),a>=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");o.push(a)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var l,p=i.parseCard16(),c=i.parseCard16();if(0!==c)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+c);for(var f=0;f<p;f++){if(a=i.parseCard8(),l=i.parseCard16(),a>=n)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");if(l>r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+l);for(;c<l;c++)o.push(a);c=l}if(l!==r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+l)}return o}function ht(e,t,r,n){r.tables.cff={};var a=nt(e,t),o=Ve(e,a.endOffset,ye.bytesToString),i=Ve(e,o.endOffset),s=Ve(e,i.endOffset,ye.bytesToString),u=Ve(e,s.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Xe(r.gsubrs);var l=ut(e,t,i.objects,s.objects);if(1!==l.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+l.length);var p=l[0];if(r.tables.cff.topDict=p,p._privateDict&&(r.defaultWidthX=p._privateDict.defaultWidthX,r.nominalWidthX=p._privateDict.nominalWidthX),void 0!==p.ros[0]&&void 0!==p.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var c=p.fdArray,f=p.fdSelect;if(0===c||0===f)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");c+=t;var h=Ve(e,c),d=ut(e,t,h.objects,s.objects);p._fdArray=d,f+=t,p._fdSelect=ft(e,f,r.numGlyphs,d.length)}var v,g=t+p.private[1],y=st(e,g,p.private[0],s.objects);if(r.defaultWidthX=y.defaultWidthX,r.nominalWidthX=y.nominalWidthX,0!==y.subrs){var m=g+y.subrs,b=Ve(e,m);r.subrs=b.objects,r.subrsBias=Xe(r.subrs)}else r.subrs=[],r.subrsBias=0;n.lowMemory?(v=Ze(e,t+p.charStrings),r.nGlyphs=v.offsets.length):(v=Ve(e,t+p.charStrings),r.nGlyphs=v.objects.length);var S=lt(e,t+p.charset,r.nGlyphs,s.objects);if(0===p.encoding?r.cffEncoding=new De(Oe,S):1===p.encoding?r.cffEncoding=new De(Ee,S):r.cffEncoding=pt(e,t+p.encoding,S),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new Ye.GlyphSet(r),n.lowMemory)r._push=function(n){var a=Qe(n,v.offsets,e,t+p.charStrings);r.glyphs.push(n,Ye.cffGlyphLoader(r,n,ct,a))};else for(var x=0;x<r.nGlyphs;x+=1){var T=v.objects[x];r.glyphs.push(x,Ye.cffGlyphLoader(r,x,ct,T))}}function dt(e,t){var r,n=ke.indexOf(e);return n>=0&&(r=n),n=t.indexOf(e),n>=0?r=n+ke.length:(r=ke.length+t.length,t.push(e)),r}function vt(){return new ne.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}])}function gt(e){var t=new ne.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:"name_"+r,type:"NAME",value:e[r]});return t}function yt(e,t,r){for(var n={},a=0;a<e.length;a+=1){var o=e[a],i=t[o.name];void 0===i||qe(i,o.value)||("SID"===o.type&&(i=dt(i,r)),n[o.op]={name:o.name,type:o.type,value:i})}return n}function mt(e,t){var r=new ne.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return r.dict=yt(at,e,t),r}function bt(e){var t=new ne.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function St(e){var t=new ne.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:"string_"+r,type:"STRING",value:e[r]});return t}function xt(){return new ne.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}])}function Tt(e,t){for(var r=new ne.Record("Charsets",[{name:"format",type:"Card8",value:0}]),n=0;n<e.length;n+=1){var a=e[n],o=dt(a,t);r.fields.push({name:"glyph_"+n,type:"SID",value:o})}return r}function wt(e){var t=[],r=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var n=0,a=0,o=0;o<r.commands.length;o+=1){var i=void 0,s=void 0,u=r.commands[o];if("Q"===u.type){var l=1/3,p=2/3;u={type:"C",x:u.x,y:u.y,x1:Math.round(l*n+p*u.x1),y1:Math.round(l*a+p*u.y1),x2:Math.round(l*u.x+p*u.x1),y2:Math.round(l*u.y+p*u.y1)}}if("M"===u.type)i=Math.round(u.x-n),s=Math.round(u.y-a),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),n=Math.round(u.x),a=Math.round(u.y);else if("L"===u.type)i=Math.round(u.x-n),s=Math.round(u.y-a),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),n=Math.round(u.x),a=Math.round(u.y);else if("C"===u.type){var c=Math.round(u.x1-n),f=Math.round(u.y1-a),h=Math.round(u.x2-u.x1),d=Math.round(u.y2-u.y1);i=Math.round(u.x-u.x2),s=Math.round(u.y-u.y2),t.push({name:"dx1",type:"NUMBER",value:c}),t.push({name:"dy1",type:"NUMBER",value:f}),t.push({name:"dx2",type:"NUMBER",value:h}),t.push({name:"dy2",type:"NUMBER",value:d}),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),n=Math.round(u.x),a=Math.round(u.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}function Ut(e){for(var t=new ne.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),r=0;r<e.length;r+=1){var n=e.get(r),a=wt(n);t.charStrings.push({name:n.name,type:"CHARSTRING",value:a})}return t}function kt(e,t){var r=new ne.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return r.dict=yt(ot,e,t),r}function Ot(e,t){for(var r,n=new ne.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),a=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[a,0,0,a,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},i={},s=[],u=1;u<e.length;u+=1)r=e.get(u),s.push(r.name);var l=[];n.header=vt(),n.nameIndex=gt([t.postScriptName]);var p=mt(o,l);n.topDictIndex=bt(p),n.globalSubrIndex=xt(),n.charsets=Tt(s,l),n.charStringsIndex=Ut(e),n.privateDict=kt(i,l),n.stringIndex=St(l);var c=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf();return o.charset=c,o.encoding=0,o.charStrings=o.charset+n.charsets.sizeOf(),o.private[1]=o.charStrings+n.charStringsIndex.sizeOf(),p=mt(o,l),n.topDictIndex=bt(p),n}var Et={parse:ht,make:Ot};function Rt(e,t){var r={},n=new ye.Parser(e,t);return r.version=n.parseVersion(),r.fontRevision=Math.round(1e3*n.parseFixed())/1e3,r.checkSumAdjustment=n.parseULong(),r.magicNumber=n.parseULong(),A.argument(1594834165===r.magicNumber,"Font header has wrong magic number."),r.flags=n.parseUShort(),r.unitsPerEm=n.parseUShort(),r.created=n.parseLongDateTime(),r.modified=n.parseLongDateTime(),r.xMin=n.parseShort(),r.yMin=n.parseShort(),r.xMax=n.parseShort(),r.yMax=n.parseShort(),r.macStyle=n.parseUShort(),r.lowestRecPPEM=n.parseUShort(),r.fontDirectionHint=n.parseShort(),r.indexToLocFormat=n.parseShort(),r.glyphDataFormat=n.parseShort(),r}function Lt(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new ne.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 Ct={parse:Rt,make:Lt};function Dt(e,t){var r={},n=new ye.Parser(e,t);return r.version=n.parseVersion(),r.ascender=n.parseShort(),r.descender=n.parseShort(),r.lineGap=n.parseShort(),r.advanceWidthMax=n.parseUShort(),r.minLeftSideBearing=n.parseShort(),r.minRightSideBearing=n.parseShort(),r.xMaxExtent=n.parseShort(),r.caretSlopeRise=n.parseShort(),r.caretSlopeRun=n.parseShort(),r.caretOffset=n.parseShort(),n.relativeOffset+=8,r.metricDataFormat=n.parseShort(),r.numberOfHMetrics=n.parseUShort(),r}function It(e){return new ne.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 At={parse:Dt,make:It};function Pt(e,t,r,n,a){for(var o,i,s=new ye.Parser(e,t),u=0;u<n;u+=1){u<r&&(o=s.parseUShort(),i=s.parseShort());var l=a.get(u);l.advanceWidth=o,l.leftSideBearing=i}}function Bt(e,t,r,n,a){var o,i;e._hmtxTableData={};for(var s=new ye.Parser(t,r),u=0;u<a;u+=1)u<n&&(o=s.parseUShort(),i=s.parseShort()),e._hmtxTableData[u]={advanceWidth:o,leftSideBearing:i}}function Mt(e,t,r,n,a,o,i){i.lowMemory?Bt(e,t,r,n,a):Pt(t,r,n,a,o)}function Ft(e){for(var t=new ne.Table("hmtx",[]),r=0;r<e.length;r+=1){var n=e.get(r),a=n.advanceWidth||0,o=n.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+r,type:"USHORT",value:a}),t.fields.push({name:"leftSideBearing_"+r,type:"SHORT",value:o})}return t}var Gt={parse:Mt,make:Ft};function Nt(e){for(var t=new ne.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),r="",n=12+4*e.length,a=0;a<e.length;++a){var o=r.indexOf(e[a]);o<0&&(o=r.length,r+=e[a]),t.fields.push({name:"offset "+a,type:"USHORT",value:n+o}),t.fields.push({name:"length "+a,type:"USHORT",value:e[a].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),t}function Ht(e,t){var r=new ye.Parser(e,t),n=r.parseULong();A.argument(1===n,"Unsupported ltag table version."),r.skip("uLong",1);for(var a=r.parseULong(),o=[],i=0;i<a;i++){for(var s="",u=t+r.parseUShort(),l=r.parseUShort(),p=u;p<u+l;++p)s+=String.fromCharCode(e.getInt8(p));o.push(s)}return o}var _t={make:Nt,parse:Ht};function zt(e,t){var r={},n=new ye.Parser(e,t);return r.version=n.parseVersion(),r.numGlyphs=n.parseUShort(),1===r.version&&(r.maxPoints=n.parseUShort(),r.maxContours=n.parseUShort(),r.maxCompositePoints=n.parseUShort(),r.maxCompositeContours=n.parseUShort(),r.maxZones=n.parseUShort(),r.maxTwilightPoints=n.parseUShort(),r.maxStorage=n.parseUShort(),r.maxFunctionDefs=n.parseUShort(),r.maxInstructionDefs=n.parseUShort(),r.maxStackElements=n.parseUShort(),r.maxSizeOfInstructions=n.parseUShort(),r.maxComponentElements=n.parseUShort(),r.maxComponentDepth=n.parseUShort()),r}function Wt(e){return new ne.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}var jt={parse:zt,make:Wt},Yt=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],qt={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:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},Xt={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},Vt={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:"br",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 Zt(e,t,r){switch(e){case 0:if(65535===t)return"und";if(r)return r[t];break;case 1:return qt[t];case 3:return Vt[t]}}var Qt="utf-16",Kt={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"},Jt={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 $t(e,t,r){switch(e){case 0:return Qt;case 1:return Jt[r]||Kt[t];case 3:if(1===t||10===t)return Qt;break}}var er={0:"unicode",1:"macintosh",2:"reserved",3:"windows"};function tr(e){return er[e]}function rr(e,t,r){for(var n={},a=new ye.Parser(e,t),o=a.parseUShort(),i=a.parseUShort(),s=a.offset+a.parseUShort(),u=0;u<i;u++){var l=a.parseUShort(),p=a.parseUShort(),c=a.parseUShort(),f=a.parseUShort(),h=Yt[f]||f,d=a.parseUShort(),v=a.parseUShort(),g=Zt(l,c,r),y=$t(l,p,c),m=tr(l);if(void 0!==y&&void 0!==g&&void 0!==m){var b=void 0;if(b=y===Qt?M.UTF16(e,s+v,d):M.MACSTRING(e,s+v,d,y),b){var S=n[m];void 0===S&&(S=n[m]={});var x=S[h];void 0===x&&(x=S[h]={}),x[g]=b}}}return 1===o&&a.parseUShort(),n}function nr(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function ar(e,t,r,n,a,o){return new ne.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:n},{name:"length",type:"USHORT",value:a},{name:"offset",type:"USHORT",value:o}])}function or(e,t){var r=e.length,n=t.length-r+1;e:for(var a=0;a<n;a++)for(;a<n;a++){for(var o=0;o<r;o++)if(t[a+o]!==e[o])continue e;return a}return-1}function ir(e,t){var r=or(e,t);if(r<0){r=t.length;for(var n=0,a=e.length;n<a;++n)t.push(e[n])}return r}function sr(e,t){var r=nr(er),n=nr(qt),a=nr(Vt),o=[],i=[];for(var s in e){var u=void 0,l=[],p={},c=nr(Yt),f=r[s];for(var h in e[s]){var d=c[h];if(void 0===d&&(d=h),u=parseInt(d),isNaN(u))throw new Error('Name table entry "'+h+'" does not exist, see nameTableNames for complete list.');p[u]=e[s][h],l.push(u)}for(var v=0;v<l.length;v++){u=l[v];var g=p[u];for(var y in g){var m=g[y];if(1===f||0===f){var b=n[y],S=Xt[b],x=$t(f,S,b),T=F.MACSTRING(m,x);if(0===f&&(b=t.indexOf(y),b<0&&(b=t.length,t.push(y)),S=4,T=F.UTF16(m)),void 0!==T){var w=ir(T,i);o.push(ar(f,S,b,u,T.length,w))}}if(3===f){var U=a[y];if(void 0!==U){var k=F.UTF16(m),O=ir(k,i);o.push(ar(3,1,U,u,k.length,O))}}}}}o.sort((function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID}));for(var E=new ne.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:o.length},{name:"stringOffset",type:"USHORT",value:6+12*o.length}]),R=0;R<o.length;R++)E.fields.push({name:"record_"+R,type:"RECORD",value:o[R]});return E.fields.push({name:"strings",type:"LITERAL",value:i}),E}var ur={parse:rr,make:sr},lr=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function pr(e){for(var t=0;t<lr.length;t+=1){var r=lr[t];if(e>=r.begin&&e<r.end)return t}return-1}function cr(e,t){var r={},n=new ye.Parser(e,t);r.version=n.parseUShort(),r.xAvgCharWidth=n.parseShort(),r.usWeightClass=n.parseUShort(),r.usWidthClass=n.parseUShort(),r.fsType=n.parseUShort(),r.ySubscriptXSize=n.parseShort(),r.ySubscriptYSize=n.parseShort(),r.ySubscriptXOffset=n.parseShort(),r.ySubscriptYOffset=n.parseShort(),r.ySuperscriptXSize=n.parseShort(),r.ySuperscriptYSize=n.parseShort(),r.ySuperscriptXOffset=n.parseShort(),r.ySuperscriptYOffset=n.parseShort(),r.yStrikeoutSize=n.parseShort(),r.yStrikeoutPosition=n.parseShort(),r.sFamilyClass=n.parseShort(),r.panose=[];for(var a=0;a<10;a++)r.panose[a]=n.parseByte();return r.ulUnicodeRange1=n.parseULong(),r.ulUnicodeRange2=n.parseULong(),r.ulUnicodeRange3=n.parseULong(),r.ulUnicodeRange4=n.parseULong(),r.achVendID=String.fromCharCode(n.parseByte(),n.parseByte(),n.parseByte(),n.parseByte()),r.fsSelection=n.parseUShort(),r.usFirstCharIndex=n.parseUShort(),r.usLastCharIndex=n.parseUShort(),r.sTypoAscender=n.parseShort(),r.sTypoDescender=n.parseShort(),r.sTypoLineGap=n.parseShort(),r.usWinAscent=n.parseUShort(),r.usWinDescent=n.parseUShort(),r.version>=1&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),r.version>=2&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r}function fr(e){return new ne.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)}var hr={parse:cr,make:fr,unicodeRanges:lr,getUnicodeRange:pr};function dr(e,t){var r={},n=new ye.Parser(e,t);switch(r.version=n.parseVersion(),r.italicAngle=n.parseFixed(),r.underlinePosition=n.parseShort(),r.underlineThickness=n.parseShort(),r.isFixedPitch=n.parseULong(),r.minMemType42=n.parseULong(),r.maxMemType42=n.parseULong(),r.minMemType1=n.parseULong(),r.maxMemType1=n.parseULong(),r.version){case 1:r.names=Re.slice();break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var a=0;a<r.numberOfGlyphs;a++)r.glyphNameIndex[a]=n.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=Re.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=n.parseChar();break}return r}function vr(){return new ne.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}])}var gr={parse:dr,make:vr},yr=new Array(9);yr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ve.coverage),deltaGlyphId:this.parseShort()}:2===t?{substFormat:2,coverage:this.parsePointer(ve.coverage),substitute:this.parseOffset16List()}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},yr[2]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ve.coverage),sequences:this.parseListOfLists()}},yr[3]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ve.coverage),alternateSets:this.parseListOfLists()}},yr[4]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ve.coverage),ligatureSets:this.parseListOfLists((function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}}))}};var mr={sequenceIndex:ve.uShort,lookupListIndex:ve.uShort};function br(e,t){t=t||0;var r,n=new ve(e,t),a=n.parseVersion(1);return A.argument(1===a||1.1===a,"Unsupported GSUB table version."),r=1===a?{version:a,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(yr)}:{version:a,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(yr),variations:n.parseFeatureVariationsList()},r.features.forEach((function(t){if(t.tag.match(/ss(?:0[1-9]|1\d|20)/)){var r=new ve(e,t.feature.tableOffset);t.feature.featureParamsTable=r.parseStylisticSetFeatureParams()}else if(t.tag.match(/cv(?:0[1-9]|[1-9]\d)/)){var n=new ve(e,t.feature.tableOffset);t.feature.featureParamsTable=n.parseCharacterVariantFeatureParams()}delete t.feature.tableOffset})),r}yr[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(ve.coverage),ruleSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,mr)}}))};if(2===t)return{substFormat:t,coverage:this.parsePointer(ve.coverage),classDef:this.parsePointer(ve.classDef),classSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,mr)}}))};if(3===t){var r=this.parseUShort(),n=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,ve.pointer(ve.coverage)),lookupRecords:this.parseRecordList(n,mr)}}A.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},yr[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ve.coverage),chainRuleSets:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(mr)}}))}:2===t?{substFormat:2,coverage:this.parsePointer(ve.coverage),backtrackClassDef:this.parsePointer(ve.classDef),inputClassDef:this.parsePointer(ve.classDef),lookaheadClassDef:this.parsePointer(ve.classDef),chainClassSet:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(mr)}}))}:3===t?{substFormat:3,backtrackCoverage:this.parseList(ve.pointer(ve.coverage)),inputCoverage:this.parseList(ve.pointer(ve.coverage)),lookaheadCoverage:this.parseList(ve.pointer(ve.coverage)),lookupRecords:this.parseRecordList(mr)}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},yr[7]=function(){var e=this.parseUShort();A.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),r=new ve(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:yr[t].call(r)}},yr[8]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ve.coverage),backtrackCoverage:this.parseList(ve.pointer(ve.coverage)),lookaheadCoverage:this.parseList(ve.pointer(ve.coverage)),substitutes:this.parseUShortList()}};var Sr=new Array(9);function xr(e){return new ne.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new ne.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new ne.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new ne.LookupList(e.lookups,Sr)}])}Sr[1]=function(e){return 1===e.substFormat?new ne.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new ne.Coverage(e.coverage)},{name:"deltaGlyphID",type:"SHORT",value:e.deltaGlyphId}]):new ne.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new ne.Coverage(e.coverage)}].concat(ne.ushortList("substitute",e.substitute)))},Sr[2]=function(e){return A.assert(1===e.substFormat,"Lookup type 2 substFormat must be 1."),new ne.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new ne.Coverage(e.coverage)}].concat(ne.tableList("seqSet",e.sequences,(function(e){return new ne.Table("sequenceSetTable",ne.ushortList("sequence",e))}))))},Sr[3]=function(e){return A.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new ne.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new ne.Coverage(e.coverage)}].concat(ne.tableList("altSet",e.alternateSets,(function(e){return new ne.Table("alternateSetTable",ne.ushortList("alternate",e))}))))},Sr[4]=function(e){return A.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new ne.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new ne.Coverage(e.coverage)}].concat(ne.tableList("ligSet",e.ligatureSets,(function(e){return new ne.Table("ligatureSetTable",ne.tableList("ligature",e,(function(e){return new ne.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(ne.ushortList("component",e.components,e.components.length+1)))})))}))))},Sr[6]=function(e){if(1===e.substFormat){var t=new ne.Table("chainContextTable",[{name:"substFormat",type:"USHORT",value:e.substFormat},{name:"coverage",type:"TABLE",value:new ne.Coverage(e.coverage)}].concat(ne.tableList("chainRuleSet",e.chainRuleSets,(function(e){return new ne.Table("chainRuleSetTable",ne.tableList("chainRule",e,(function(e){var t=ne.ushortList("backtrackGlyph",e.backtrack,e.backtrack.length).concat(ne.ushortList("inputGlyph",e.input,e.input.length+1)).concat(ne.ushortList("lookaheadGlyph",e.lookahead,e.lookahead.length)).concat(ne.ushortList("substitution",[],e.lookupRecords.length));return e.lookupRecords.forEach((function(e,r){t=t.concat({name:"sequenceIndex"+r,type:"USHORT",value:e.sequenceIndex}).concat({name:"lookupListIndex"+r,type:"USHORT",value:e.lookupListIndex})})),new ne.Table("chainRuleTable",t)})))}))));return t}if(2===e.substFormat)A.assert(!1,"lookup type 6 format 2 is not yet supported.");else if(3===e.substFormat){var r=[{name:"substFormat",type:"USHORT",value:e.substFormat}];r.push({name:"backtrackGlyphCount",type:"USHORT",value:e.backtrackCoverage.length}),e.backtrackCoverage.forEach((function(e,t){r.push({name:"backtrackCoverage"+t,type:"TABLE",value:new ne.Coverage(e)})})),r.push({name:"inputGlyphCount",type:"USHORT",value:e.inputCoverage.length}),e.inputCoverage.forEach((function(e,t){r.push({name:"inputCoverage"+t,type:"TABLE",value:new ne.Coverage(e)})})),r.push({name:"lookaheadGlyphCount",type:"USHORT",value:e.lookaheadCoverage.length}),e.lookaheadCoverage.forEach((function(e,t){r.push({name:"lookaheadCoverage"+t,type:"TABLE",value:new ne.Coverage(e)})})),r.push({name:"substitutionCount",type:"USHORT",value:e.lookupRecords.length}),e.lookupRecords.forEach((function(e,t){r=r.concat({name:"sequenceIndex"+t,type:"USHORT",value:e.sequenceIndex}).concat({name:"lookupListIndex"+t,type:"USHORT",value:e.lookupListIndex})}));var n=new ne.Table("chainContextTable",r);return n}A.assert(!1,"lookup type 6 format must be 1, 2 or 3.")};var Tr={parse:br,make:xr};function wr(e,t){var r=new ye.Parser(e,t),n=r.parseULong();A.argument(1===n,"Unsupported META table version."),r.parseULong(),r.parseULong();for(var a=r.parseULong(),o={},i=0;i<a;i++){var s=r.parseTag(),u=r.parseULong(),l=r.parseULong();if("appl"!==s&&"bild"!==s){var p=M.UTF8(e,t+u,l);o[s]=p}}return o}function Ur(e){var t=Object.keys(e).length,r="",n=16+12*t,a=new ne.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:n},{name:"numTags",type:"ULONG",value:t}]);for(var o in e){var i=r.length;r+=e[o],a.fields.push({name:"tag "+o,type:"TAG",value:o}),a.fields.push({name:"offset "+o,type:"ULONG",value:n+i}),a.fields.push({name:"length "+o,type:"ULONG",value:e[o].length})}return a.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),a}var kr={parse:wr,make:Ur};function Or(e,t){var r=new ve(e,t),n=r.parseUShort();A.argument(0===n,"Only COLRv0 supported.");var a=r.parseUShort(),o=r.parseOffset32(),i=r.parseOffset32(),s=r.parseUShort();r.relativeOffset=o;var u=r.parseRecordList(a,{glyphID:ve.uShort,firstLayerIndex:ve.uShort,numLayers:ve.uShort});r.relativeOffset=i;var l=r.parseRecordList(s,{glyphID:ve.uShort,paletteIndex:ve.uShort});return{version:n,baseGlyphRecords:u,layerRecords:l}}function Er(e){var t=e.version;void 0===t&&(t=0);var r=e.baseGlyphRecords;void 0===r&&(r=[]);var n=e.layerRecords;void 0===n&&(n=[]),A.argument(0===t,"Only COLRv0 supported.");var a=14,o=a+6*r.length;return new ne.Table("COLR",[{name:"version",type:"USHORT",value:t},{name:"numBaseGlyphRecords",type:"USHORT",value:r.length},{name:"baseGlyphRecordsOffset",type:"ULONG",value:a},{name:"layerRecordsOffset",type:"ULONG",value:o},{name:"numLayerRecords",type:"USHORT",value:n.length}].concat(r.map((function(e,t){return[{name:"glyphID_"+t,type:"USHORT",value:e.glyphID},{name:"firstLayerIndex_"+t,type:"USHORT",value:e.firstLayerIndex},{name:"numLayers_"+t,type:"USHORT",value:e.numLayers}]})).flat(),n.map((function(e,t){return[{name:"LayerGlyphID_"+t,type:"USHORT",value:e.glyphID},{name:"paletteIndex_"+t,type:"USHORT",value:e.paletteIndex}]})).flat()))}var Rr={parse:Or,make:Er};function Lr(e,t){var r=new ve(e,t),n=r.parseShort(),a=r.parseShort(),o=r.parseShort(),i=r.parseShort(),s=r.parseOffset32(),u=r.parseUShortList(o);r.relativeOffset=s;var l=r.parseULongList(i);return{version:n,numPaletteEntries:a,colorRecords:l,colorRecordIndices:u}}function Cr(e){var t=e.version;void 0===t&&(t=0);var r=e.numPaletteEntries;void 0===r&&(r=0);var n=e.colorRecords;void 0===n&&(n=[]);var a=e.colorRecordIndices;return void 0===a&&(a=[0]),A.argument(0===t,"Only CPALv0 are supported."),A.argument(n.length,"No colorRecords given."),A.argument(a.length,"No colorRecordIndices given."),a.length>1&&A.argument(r,"Can't infer numPaletteEntries on multiple colorRecordIndices"),new ne.Table("CPAL",[{name:"version",type:"USHORT",value:t},{name:"numPaletteEntries",type:"USHORT",value:r||n.length},{name:"numPalettes",type:"USHORT",value:a.length},{name:"numColorRecords",type:"USHORT",value:n.length},{name:"colorRecordsArrayOffset",type:"ULONG",value:12+2*a.length}].concat(a.map((function(e,t){return{name:"colorRecordIndices_"+t,type:"USHORT",value:e}})),n.map((function(e,t){return{name:"colorRecords_"+t,type:"ULONG",value:e}}))))}var Dr={parse:Lr,make:Cr};function Ir(e){return Math.log(e)/Math.log(2)|0}function Ar(e){while(e.length%4!==0)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32),t}function Pr(e,t,r,n){return new ne.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!==n?n:0}])}function Br(e){var t=new ne.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,Ir(t.numTables));t.searchRange=16*r,t.entrySelector=Ir(r),t.rangeShift=16*t.numTables-t.searchRange;var n=[],a=[],o=t.sizeOf()+Pr().sizeOf()*t.numTables;while(o%4!==0)o+=1,a.push({name:"padding",type:"BYTE",value:0});for(var i=0;i<e.length;i+=1){var s=e[i];A.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var u=s.sizeOf(),l=Pr(s.tableName,Ar(s.encode()),o,u);n.push({name:l.tag+" Table Record",type:"RECORD",value:l}),a.push({name:s.tableName+" table",type:"RECORD",value:s}),o+=u,A.argument(!isNaN(o),"Something went wrong calculating the offset.");while(o%4!==0)o+=1,a.push({name:"padding",type:"BYTE",value:0})}return n.sort((function(e,t){return e.value.tag>t.value.tag?1:-1})),t.fields=t.fields.concat(n),t.fields=t.fields.concat(a),t}function Mr(e,t,r){for(var n=0;n<t.length;n+=1){var a=e.charToGlyphIndex(t[n]);if(a>0){var o=e.glyphs.get(a);return o.getMetrics()}}return r}function Fr(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}function Gr(e){for(var t,r=[],n=[],a=[],o=[],i=[],s=[],u=[],l=0,p=0,c=0,f=0,h=0,d=0;d<e.glyphs.length;d+=1){var v=e.glyphs.get(d),g=0|v.unicode;if(isNaN(v.advanceWidth))throw new Error("Glyph "+v.name+" ("+d+"): advanceWidth is not a number.");(t>g||void 0===t)&&g>0&&(t=g),l<g&&(l=g);var y=hr.getUnicodeRange(g);if(y<32)p|=1<<y;else if(y<64)c|=1<<y-32;else if(y<96)f|=1<<y-64;else{if(!(y<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");h|=1<<y-96}if(".notdef"!==v.name){var m=v.getMetrics();r.push(m.xMin),n.push(m.yMin),a.push(m.xMax),o.push(m.yMax),s.push(m.leftSideBearing),u.push(m.rightSideBearing),i.push(v.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,a),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,i),advanceWidthAvg:Fr(i),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,u)};b.ascender=e.ascender,b.descender=e.descender;var S=Ct.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=At.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}),T=jt.make(e.glyphs.length),w=hr.make(Object.assign({xAvgCharWidth:Math.round(b.advanceWidthAvg),usFirstCharIndex:t,usLastCharIndex:l,ulUnicodeRange1:p,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:h,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:Mr(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:Mr(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0},e.tables.os2)),U=Gt.make(e.glyphs),k=Ue.make(e.glyphs),O=e.getEnglishName("fontFamily"),E=e.getEnglishName("fontSubfamily"),R=O+" "+E,L=e.getEnglishName("postScriptName");L||(L=O.replace(/\s/g,"")+"-"+E);var C={};for(var D in e.names)C[D]=e.names[D];C.unicode=C.unicode||{},C.macintosh=C.macintosh||{},C.windows=C.windows||{};var I=e.names.unicode||{},A=e.names.macintosh||{},P=e.names.windows||{};for(var B in["unicode","macintosh","windows"])C[B]=C[B]||{},C[B].uniqueID||(C.unicode.uniqueID={en:e.getEnglishName("manufacturer")+":"+R}),C[B].postScriptName||(C.unicode.postScriptName={en:L});C.unicode.preferredFamily||(C.unicode.preferredFamily=I.fontFamily||A.fontFamily||P.fontFamily),C.macintosh.preferredFamily||(C.macintosh.preferredFamily=A.fontFamily||I.fontFamily||P.fontFamily),C.windows.preferredFamily||(C.windows.preferredFamily=P.fontFamily||I.fontFamily||A.fontFamily),C.unicode.preferredSubfamily||(C.unicode.preferredSubfamily=I.fontSubFamily||A.fontSubFamily||P.fontSubFamily),C.macintosh.preferredSubfamily||(C.macintosh.preferredSubfamily=A.fontSubFamily||I.fontSubFamily||P.fontSubFamily),C.windows.preferredSubfamily||(C.windows.preferredSubfamily=P.fontSubFamily||I.fontSubFamily||A.fontSubFamily);var M=[],F=ur.make(C,M),G=M.length>0?_t.make(M):void 0,N=gr.make(),H=Et.make(e.glyphs,{version:e.getEnglishName("version"),fullName:R,familyName:O,weightName:E,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),_=e.metas&&Object.keys(e.metas).length>0?kr.make(e.metas):void 0,z=[S,x,T,w,F,k,N,H,U];G&&z.push(G),e.tables.gsub&&z.push(Tr.make(e.tables.gsub)),e.tables.cpal&&z.push(Dr.make(e.tables.cpal)),e.tables.colr&&z.push(Rr.make(e.tables.colr)),_&&z.push(_);for(var W=Br(z),j=W.encode(),Y=Ar(j),q=W.fields,X=!1,V=0;V<q.length;V+=1)if("head table"===q[V].name){q[V].value.checkSumAdjustment=2981146554-Y,X=!0;break}if(!X)throw new Error("Could not find head table with checkSum to adjust.");return W}var Nr={make:Br,fontToTable:Gr,computeCheckSum:Ar};function Hr(e,t){var r=0,n=e.length-1;while(r<=n){var a=r+n>>>1,o=e[a].tag;if(o===t)return a;o<t?r=a+1:n=a-1}return-r-1}function _r(e,t){var r=0,n=e.length-1;while(r<=n){var a=r+n>>>1,o=e[a];if(o===t)return a;o<t?r=a+1:n=a-1}return-r-1}function zr(e,t){var r,n=0,a=e.length-1;while(n<=a){var o=n+a>>>1;r=e[o];var i=r.start;if(i===t)return r;i<t?n=o+1:a=o-1}if(n>0)return r=e[n-1],t>r.end?0:r}function Wr(e,t){this.font=e,this.tableName=t}function jr(e){Wr.call(this,e,"gpos")}function Yr(e){Wr.call(this,e,"gsub")}function qr(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Xr(e,t,r){for(var n=e.subtables,a=0;a<n.length;a++){var o=n[a];if(o.substFormat===t)return o}if(r)return n.push(r),r}function Vr(){return"undefined"!==typeof window}function Zr(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;++n)r[n]=e[n];return t}function Qr(t){for(var r=e.alloc(t.byteLength),n=new Uint8Array(t),a=0;a<r.length;++a)r[a]=n[a];return r}function Kr(e,t){if(!e)throw t}function Jr(e,t,r,n,a){var o;return(t&n)>0?(o=e.parseByte(),0===(t&a)&&(o=-o),o=r+o):o=(t&a)>0?r:r+e.parseShort(),o}function $r(e,t,r){var n,a,o=new ye.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),e.numberOfContours>0){for(var i=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)i.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var u=0;u<e.instructionLength;u+=1)e.instructions.push(o.parseByte());var l=i[i.length-1]+1;n=[];for(var p=0;p<l;p+=1)if(a=o.parseByte(),n.push(a),(8&a)>0)for(var c=o.parseByte(),f=0;f<c;f+=1)n.push(a),p+=1;if(A.argument(n.length===l,"Bad flags."),i.length>0){var h,d=[];if(l>0){for(var v=0;v<l;v+=1)a=n[v],h={},h.onCurve=!!(1&a),h.lastPointOfContour=i.indexOf(v)>=0,d.push(h);for(var g=0,y=0;y<l;y+=1)a=n[y],h=d[y],h.x=Jr(o,a,g,2,16),g=h.x;for(var m=0,b=0;b<l;b+=1)a=n[b],h=d[b],h.y=Jr(o,a,m,4,32),m=h.y}e.points=d}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];var S=!0;while(S){n=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&n)>0?(2&n)>0?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:(2&n)>0?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],(8&n)>0?x.xScale=x.yScale=o.parseF2Dot14():(64&n)>0?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):(128&n)>0&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),S=!!(32&n)}if(256&n){e.instructionLength=o.parseUShort(),e.instructions=[];for(var T=0;T<e.instructionLength;T+=1)e.instructions.push(o.parseByte())}}}function en(e,t){for(var r=[],n=0;n<e.length;n+=1){var a=e[n],o={x:t.xScale*a.x+t.scale01*a.y+t.dx,y:t.scale10*a.x+t.yScale*a.y+t.dy,onCurve:a.onCurve,lastPointOfContour:a.lastPointOfContour};r.push(o)}return r}function tn(e){for(var t=[],r=[],n=0;n<e.length;n+=1){var a=e[n];r.push(a),a.lastPointOfContour&&(t.push(r),r=[])}return A.argument(0===r.length,"There are still points left in the current contour."),t}function rn(e){var t=new C;if(!e)return t;for(var r=tn(e),n=0;n<r.length;++n){var a=r[n],o=null,i=a[a.length-1],s=a[0];if(i.onCurve)t.moveTo(i.x,i.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var u={x:.5*(i.x+s.x),y:.5*(i.y+s.y)};t.moveTo(u.x,u.y)}for(var l=0;l<a.length;++l)if(o=i,i=s,s=a[(l+1)%a.length],i.onCurve)t.lineTo(i.x,i.y);else{var p=s;o.onCurve||{x:.5*(i.x+o.x),y:.5*(i.y+o.y)},s.onCurve||(p={x:.5*(i.x+s.x),y:.5*(i.y+s.y)}),t.quadraticCurveTo(i.x,i.y,p.x,p.y)}t.closePath()}return t}function nn(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var n=t.components[r],a=e.get(n.glyphIndex);if(a.getPath(),a.points){var o=void 0;if(void 0===n.matchedPoints)o=en(a.points,n);else{if(n.matchedPoints[0]>t.points.length-1||n.matchedPoints[1]>a.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],s=a.points[n.matchedPoints[1]],u={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};s=en([s],u)[0],u.dx=i.x-s.x,u.dy=i.y-s.y,o=en(a.points,u)}t.points=t.points.concat(o)}}return rn(t.points)}function an(e,t,r,n){for(var a=new Ye.GlyphSet(n),o=0;o<r.length-1;o+=1){var i=r[o],s=r[o+1];i!==s?a.push(o,Ye.ttfGlyphLoader(n,o,$r,e,t+i,nn)):a.push(o,Ye.glyphLoader(n,o))}return a}function on(e,t,r,n){var a=new Ye.GlyphSet(n);return n._push=function(o){var i=r[o],s=r[o+1];i!==s?a.push(o,Ye.ttfGlyphLoader(n,o,$r,e,t+i,nn)):a.push(o,Ye.glyphLoader(n,o))},a}function sn(e,t,r,n,a){return a.lowMemory?on(e,t,r,n):an(e,t,r,n)}Wr.prototype={searchTag:Hr,binSearch:_r,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;r<e.scripts.length;r++){var n=e.scripts[r].tag;if("DFLT"===n)return n;"latn"===n&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||"DFLT";var n=r.scripts,a=Hr(r.scripts,e);if(a>=0)return n[a].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-a,0,o),o.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||"dflt"===t||"DFLT"===t)return n.defaultLangSys;var a=Hr(n.langSysRecords,t);if(a>=0)return n.langSysRecords[a].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-a,0,o),o.langSys}}},getFeatureTable:function(e,t,r,n){var a=this.getLangSysTable(e,t,n);if(a){for(var o,i=a.featureIndexes,s=this.font.tables[this.tableName].features,u=0;u<i.length;u++)if(o=s[i[u]],o.tag===r)return o.feature;if(n){var l=s.length;return A.assert(0===l||r>=s[l-1].tag,"Features must be added in alphabetical order."),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),i.push(l),o.feature}}},getLookupTables:function(e,t,r,n,a){var o=this.getFeatureTable(e,t,r,a),i=[];if(o){for(var s,u=o.lookupListIndexes,l=this.font.tables[this.tableName].lookups,p=0;p<u.length;p++)s=l[u[p]],s.lookupType===n&&i.push(s);if(0===i.length&&a){s={lookupType:n,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=l.length;return l.push(s),u.push(c),[s]}}return i},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=zr(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=_r(e.glyphs,t);return r>=0?r:-1;case 2:var n=zr(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,n=0;n<r.length;n++)for(var a=r[n],o=a.start,i=a.end,s=o;s<=i;s++)t.push(s);return t}},jr.prototype=Wr.prototype,jr.prototype.init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},jr.prototype.getKerningValue=function(e,t,r){for(var n=0;n<e.length;n++)for(var a=e[n].subtables,o=0;o<a.length;o++){var i=a[o],s=this.getCoverageIndex(i.coverage,t);if(!(s<0))switch(i.posFormat){case 1:for(var u=i.pairSets[s],l=0;l<u.length;l++){var p=u[l];if(p.secondGlyph===r)return p.value1&&p.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(i.classDef1,t),f=this.getGlyphClass(i.classDef2,r),h=i.classRecords[c][f];return h.value1&&h.value1.xAdvance||0}}return 0},jr.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},Yr.prototype=Wr.prototype,Yr.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Yr.prototype.getSingle=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,1),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++){var u=i[s],l=this.expandCoverage(u.coverage),p=void 0;if(1===u.substFormat){var c=u.deltaGlyphId;for(p=0;p<l.length;p++){var f=l[p];n.push({sub:f,by:f+c})}}else{var h=u.substitute;for(p=0;p<l.length;p++)n.push({sub:l[p],by:h[p]})}}return n},Yr.prototype.getMultiple=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,2),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++){var u=i[s],l=this.expandCoverage(u.coverage),p=void 0;for(p=0;p<l.length;p++){var c=l[p],f=u.sequences[p];n.push({sub:c,by:f})}}return n},Yr.prototype.getAlternates=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,3),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++)for(var u=i[s],l=this.expandCoverage(u.coverage),p=u.alternateSets,c=0;c<l.length;c++)n.push({sub:l[c],by:p[c]});return n},Yr.prototype.getLigatures=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,4),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++)for(var u=i[s],l=this.expandCoverage(u.coverage),p=u.ligatureSets,c=0;c<l.length;c++)for(var f=l[c],h=p[c],d=0;d<h.length;d++){var v=h[d];n.push({sub:[f].concat(v.components),by:v.ligGlyph})}return n},Yr.prototype.addSingle=function(e,t,r,n){var a=this.getLookupTables(r,n,e,1,!0)[0],o=Xr(a,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});A.assert(1===o.coverage.format,"Single: unable to modify coverage table format "+o.coverage.format);var i=t.sub,s=this.binSearch(o.coverage.glyphs,i);s<0&&(s=-1-s,o.coverage.glyphs.splice(s,0,i),o.substitute.splice(s,0,0)),o.substitute[s]=t.by},Yr.prototype.addMultiple=function(e,t,r,n){A.assert(t.by instanceof Array&&t.by.length>1,'Multiple: "by" must be an array of two or more ids');var a=this.getLookupTables(r,n,e,2,!0)[0],o=Xr(a,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});A.assert(1===o.coverage.format,"Multiple: unable to modify coverage table format "+o.coverage.format);var i=t.sub,s=this.binSearch(o.coverage.glyphs,i);s<0&&(s=-1-s,o.coverage.glyphs.splice(s,0,i),o.sequences.splice(s,0,0)),o.sequences[s]=t.by},Yr.prototype.addAlternate=function(e,t,r,n){var a=this.getLookupTables(r,n,e,3,!0)[0],o=Xr(a,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});A.assert(1===o.coverage.format,"Alternate: unable to modify coverage table format "+o.coverage.format);var i=t.sub,s=this.binSearch(o.coverage.glyphs,i);s<0&&(s=-1-s,o.coverage.glyphs.splice(s,0,i),o.alternateSets.splice(s,0,0)),o.alternateSets[s]=t.by},Yr.prototype.addLigature=function(e,t,r,n){var a=this.getLookupTables(r,n,e,4,!0)[0],o=a.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},a.subtables[0]=o),A.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);var i=t.sub[0],s=t.sub.slice(1),u={ligGlyph:t.by,components:s},l=this.binSearch(o.coverage.glyphs,i);if(l>=0){for(var p=o.ligatureSets[l],c=0;c<p.length;c++)if(qr(p[c].components,s))return;p.push(u)}else l=-1-l,o.coverage.glyphs.splice(l,0,i),o.ligatureSets.splice(l,0,[u])},Yr.prototype.getFeature=function(e,t,r){if(/ss\d\d/.test(e))return this.getSingle(e,t,r);switch(e){case"aalt":case"salt":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,r);case"ccmp":return this.getMultiple(e,t,r).concat(this.getLigatures(e,t,r));case"stch":return this.getMultiple(e,t,r)}},Yr.prototype.add=function(e,t,r,n){if(/ss\d\d/.test(e))return this.addSingle(e,t,r,n);switch(e){case"aalt":case"salt":return"number"===typeof t.by?this.addSingle(e,t,r,n):this.addAlternate(e,t,r,n);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,r,n);case"ccmp":return t.by instanceof Array?this.addMultiple(e,t,r,n):this.addLigature(e,t,r,n)}};var un,ln,pn,cn,fn={getPath:rn,parse:sn};function hn(e){this.font=e,this.getCommands=function(e){return fn.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function dn(e){return e}function vn(e){return Math.sign(e)*Math.round(Math.abs(e))}function gn(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function yn(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function mn(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function bn(e){return Math.sign(e)*Math.floor(Math.abs(e))}var Sn=function(e){var t=this.srPeriod,r=this.srPhase,n=this.srThreshold,a=1;return e<0&&(e=-e,a=-1),e+=n-r,e=Math.trunc(e/t)*t,e+=r,e<0?r*a:e*a},xn={x:1,y:0,axis:"x",distance:function(e,t,r,n){return(r?e.xo:e.x)-(n?t.xo:t.x)},interpolate:function(e,t,r,n){var a,o,i,s,u,l,p;if(!n||n===this)return a=e.xo-t.xo,o=e.xo-r.xo,u=t.x-t.xo,l=r.x-r.xo,i=Math.abs(a),s=Math.abs(o),p=i+s,0===p?void(e.x=e.xo+(u+l)/2):void(e.x=e.xo+(u*s+l*i)/p);a=n.distance(e,t,!0,!0),o=n.distance(e,r,!0,!0),u=n.distance(t,t,!1,!0),l=n.distance(r,r,!1,!0),i=Math.abs(a),s=Math.abs(o),p=i+s,0!==p?xn.setRelative(e,e,(u*s+l*i)/p,n,!0):xn.setRelative(e,e,(u+l)/2,n,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,n,a){if(n&&n!==this){var o=a?t.xo:t.x,i=a?t.yo:t.y,s=o+r*n.x,u=i+r*n.y;e.x=s+(e.y-u)/n.normalSlope}else e.x=(a?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}},Tn={x:0,y:1,axis:"y",distance:function(e,t,r,n){return(r?e.yo:e.y)-(n?t.yo:t.y)},interpolate:function(e,t,r,n){var a,o,i,s,u,l,p;if(!n||n===this)return a=e.yo-t.yo,o=e.yo-r.yo,u=t.y-t.yo,l=r.y-r.yo,i=Math.abs(a),s=Math.abs(o),p=i+s,0===p?void(e.y=e.yo+(u+l)/2):void(e.y=e.yo+(u*s+l*i)/p);a=n.distance(e,t,!0,!0),o=n.distance(e,r,!0,!0),u=n.distance(t,t,!1,!0),l=n.distance(r,r,!1,!0),i=Math.abs(a),s=Math.abs(o),p=i+s,0!==p?Tn.setRelative(e,e,(u*s+l*i)/p,n,!0):Tn.setRelative(e,e,(u+l)/2,n,!0)},normalSlope:0,setRelative:function(e,t,r,n,a){if(n&&n!==this){var o=a?t.xo:t.x,i=a?t.yo:t.y,s=o+r*n.x,u=i+r*n.y;e.y=u+n.normalSlope*(e.x-s)}else e.y=(a?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 wn(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Un(e,t){var r=Math.sqrt(e*e+t*t);return e/=r,t/=r,1===e&&0===t?xn:0===e&&1===t?Tn:new wn(e,t)}function kn(e,t,r,n){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=n,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(xn),Object.freeze(Tn),wn.prototype.distance=function(e,t,r,n){return this.x*xn.distance(e,t,r,n)+this.y*Tn.distance(e,t,r,n)},wn.prototype.interpolate=function(e,t,r,n){var a,o,i,s,u,l,p;i=n.distance(e,t,!0,!0),s=n.distance(e,r,!0,!0),a=n.distance(t,t,!1,!0),o=n.distance(r,r,!1,!0),u=Math.abs(i),l=Math.abs(s),p=u+l,0!==p?this.setRelative(e,e,(a*l+o*u)/p,n,!0):this.setRelative(e,e,(a+o)/2,n,!0)},wn.prototype.setRelative=function(e,t,r,n,a){n=n||this;var o=a?t.xo:t.x,i=a?t.yo:t.y,s=o+r*n.x,u=i+r*n.y,l=n.normalSlope,p=this.slope,c=e.x,f=e.y;e.x=(p*c-l*s+u-f)/(p-l),e.y=p*(e.x-c)+f},wn.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},kn.prototype.nextTouched=function(e){var t=this.nextPointOnContour;while(!e.touched(t)&&t!==this)t=t.nextPointOnContour;return t},kn.prototype.prevTouched=function(e){var t=this.prevPointOnContour;while(!e.touched(t)&&t!==this)t=t.prevPointOnContour;return t};var On=Object.freeze(new kn(0,0)),En={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function Rn(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=xn,this.round=vn}}function Ln(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new kn(0,0)}function Cn(e,t){var r,n=e.prog,a=e.ip,o=1;do{if(r=n[++a],88===r)o++;else if(89===r)o--;else if(64===r)a+=n[a+1]+1;else if(65===r)a+=2*n[a+1]+1;else if(r>=176&&r<=183)a+=r-176+1;else if(r>=184&&r<=191)a+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(o>0);e.ip=a}function Dn(e,t){exports.DEBUG&&console.log(t.step,"SVTCA["+e.axis+"]"),t.fv=t.pv=t.dpv=e}function In(e,t){exports.DEBUG&&console.log(t.step,"SPVTCA["+e.axis+"]"),t.pv=t.dpv=e}function An(e,t){exports.DEBUG&&console.log(t.step,"SFVTCA["+e.axis+"]"),t.fv=e}function Pn(e,t){var r,n,a=t.stack,o=a.pop(),i=a.pop(),s=t.z2[o],u=t.z1[i];exports.DEBUG&&console.log("SPVTL["+e+"]",o,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.pv=t.dpv=Un(r,n)}function Bn(e,t){var r,n,a=t.stack,o=a.pop(),i=a.pop(),s=t.z2[o],u=t.z1[i];exports.DEBUG&&console.log("SFVTL["+e+"]",o,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.fv=Un(r,n)}function Mn(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.pv=e.dpv=Un(n,r)}function Fn(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SPVFS[]",r,n),e.fv=Un(n,r)}function Gn(e){var t=e.stack,r=e.pv;exports.DEBUG&&console.log(e.step,"GPV[]"),t.push(16384*r.x),t.push(16384*r.y)}function Nn(e){var t=e.stack,r=e.fv;exports.DEBUG&&console.log(e.step,"GFV[]"),t.push(16384*r.x),t.push(16384*r.y)}function Hn(e){e.fv=e.pv,exports.DEBUG&&console.log(e.step,"SFVTPV[]")}function _n(e){var t=e.stack,r=t.pop(),n=t.pop(),a=t.pop(),o=t.pop(),i=t.pop(),s=e.z0,u=e.z1,l=s[r],p=s[n],c=u[a],f=u[o],h=e.z2[i];exports.DEBUG&&console.log("ISECT[], ",r,n,a,o,i);var d=l.x,v=l.y,g=p.x,y=p.y,m=c.x,b=c.y,S=f.x,x=f.y,T=(d-g)*(b-x)-(v-y)*(m-S),w=d*y-v*g,U=m*x-b*S;h.x=(w*(m-S)-U*(d-g))/T,h.y=(w*(b-x)-U*(v-y))/T}function zn(e){e.rp0=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP0[]",e.rp0)}function Wn(e){e.rp1=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP1[]",e.rp1)}function jn(e){e.rp2=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SRP2[]",e.rp2)}function Yn(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP0[]",t),e.zp0=t,t){case 0:e.tZone||Ln(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function qn(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP1[]",t),e.zp1=t,t){case 0:e.tZone||Ln(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Xn(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZP2[]",t),e.zp2=t,t){case 0:e.tZone||Ln(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Vn(e){var t=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SZPS[]",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||Ln(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}}function Zn(e){e.loop=e.stack.pop(),exports.DEBUG&&console.log(e.step,"SLOOP[]",e.loop)}function Qn(e){exports.DEBUG&&console.log(e.step,"RTG[]"),e.round=vn}function Kn(e){exports.DEBUG&&console.log(e.step,"RTHG[]"),e.round=yn}function Jn(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SMD[]",t),e.minDis=t/64}function $n(e){exports.DEBUG&&console.log(e.step,"ELSE[]"),Cn(e,!1)}function ea(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"JMPR[]",t),e.ip+=t-1}function ta(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCVTCI[]",t),e.cvCutIn=t/64}function ra(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DUP[]"),t.push(t[t.length-1])}function na(e){exports.DEBUG&&console.log(e.step,"POP[]"),e.stack.pop()}function aa(e){exports.DEBUG&&console.log(e.step,"CLEAR[]"),e.stack.length=0}function oa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SWAP[]"),t.push(r),t.push(n)}function ia(e){var t=e.stack;exports.DEBUG&&console.log(e.step,"DEPTH[]"),t.push(t.length)}function sa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LOOPCALL[]",r,n);var a=e.ip,o=e.prog;e.prog=e.funcs[r];for(var i=0;i<n;i++)ln(e),exports.DEBUG&&console.log(++e.step,i+1<n?"next loopcall":"done loopcall",i);e.ip=a,e.prog=o}function ua(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"CALL[]",t);var r=e.ip,n=e.prog;e.prog=e.funcs[t],ln(e),e.ip=r,e.prog=n,exports.DEBUG&&console.log(++e.step,"returning from",t)}function la(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CINDEX[]",r),t.push(t[t.length-r])}function pa(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"MINDEX[]",r),t.push(t.splice(t.length-r,1)[0])}function ca(e){if("fpgm"!==e.env)throw new Error("FDEF not allowed here");var t=e.stack,r=e.prog,n=e.ip,a=t.pop(),o=n;exports.DEBUG&&console.log(e.step,"FDEF[]",a);while(45!==r[++n]);e.ip=n,e.funcs[a]=r.slice(o+1,n)}function fa(e,t){var r=t.stack.pop(),n=t.z0[r],a=t.fv,o=t.pv;exports.DEBUG&&console.log(t.step,"MDAP["+e+"]",r);var i=o.distance(n,On);e&&(i=t.round(i)),a.setRelative(n,On,i,o),a.touch(n),t.rp0=t.rp1=r}function ha(e,t){var r,n,a,o=t.z2,i=o.length-2;exports.DEBUG&&console.log(t.step,"IUP["+e.axis+"]");for(var s=0;s<i;s++)r=o[s],e.touched(r)||(n=r.prevTouched(e),n!==r&&(a=r.nextTouched(e),n===a&&e.setRelative(r,r,e.distance(n,n,!1,!0),e,!0),e.interpolate(r,n,a,e)))}function da(e,t){var r=t.stack,n=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[n],o=t.fv,i=t.pv,s=t.loop,u=t.z2;while(s--){var l=r.pop(),p=u[l],c=i.distance(a,a,!1,!0);o.setRelative(p,p,c,i),o.touch(p),exports.DEBUG&&console.log(t.step,(t.loop>1?"loop "+(t.loop-s)+": ":"")+"SHP["+(e?"rp1":"rp2")+"]",l)}t.loop=1}function va(e,t){var r=t.stack,n=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[n],o=t.fv,i=t.pv,s=r.pop(),u=t.z2[t.contours[s]],l=u;exports.DEBUG&&console.log(t.step,"SHC["+e+"]",s);var p=i.distance(a,a,!1,!0);do{l!==a&&o.setRelative(l,l,p,i),l=l.nextPointOnContour}while(l!==u)}function ga(e,t){var r,n,a=t.stack,o=e?t.rp1:t.rp2,i=(e?t.z0:t.z1)[o],s=t.fv,u=t.pv,l=a.pop();switch(exports.DEBUG&&console.log(t.step,"SHZ["+e+"]",l),l){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error("Invalid zone")}for(var p=u.distance(i,i,!1,!0),c=r.length-2,f=0;f<c;f++)n=r[f],s.setRelative(n,n,p,u)}function ya(e){var t=e.stack,r=e.loop,n=e.fv,a=t.pop()/64,o=e.z2;while(r--){var i=t.pop(),s=o[i];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-r)+": ":"")+"SHPIX[]",i,a),n.setRelative(s,s,a),n.touch(s)}e.loop=1}function ma(e){var t=e.stack,r=e.rp1,n=e.rp2,a=e.loop,o=e.z0[r],i=e.z1[n],s=e.fv,u=e.dpv,l=e.z2;while(a--){var p=t.pop(),c=l[p];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-a)+": ":"")+"IP[]",p,r,"<->",n),s.interpolate(c,o,i,u),s.touch(c)}e.loop=1}function ba(e,t){var r=t.stack,n=r.pop()/64,a=r.pop(),o=t.z1[a],i=t.z0[t.rp0],s=t.fv,u=t.pv;s.setRelative(o,i,n,u),s.touch(o),exports.DEBUG&&console.log(t.step,"MSIRP["+e+"]",n,a),t.rp1=t.rp0,t.rp2=a,e&&(t.rp0=a)}function Sa(e){var t=e.stack,r=e.rp0,n=e.z0[r],a=e.loop,o=e.fv,i=e.pv,s=e.z1;while(a--){var u=t.pop(),l=s[u];exports.DEBUG&&console.log(e.step,(e.loop>1?"loop "+(e.loop-a)+": ":"")+"ALIGNRP[]",u),o.setRelative(l,n,0,i),o.touch(l)}e.loop=1}function xa(e){exports.DEBUG&&console.log(e.step,"RTDG[]"),e.round=gn}function Ta(e,t){var r=t.stack,n=r.pop(),a=r.pop(),o=t.z0[a],i=t.fv,s=t.pv,u=t.cvt[n];exports.DEBUG&&console.log(t.step,"MIAP["+e+"]",n,"(",u,")",a);var l=s.distance(o,On);e&&(Math.abs(l-u)<t.cvCutIn&&(l=u),l=t.round(l)),i.setRelative(o,On,l,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),i.touch(o),t.rp0=t.rp1=a}function wa(e){var t=e.prog,r=e.ip,n=e.stack,a=t[++r];exports.DEBUG&&console.log(e.step,"NPUSHB[]",a);for(var o=0;o<a;o++)n.push(t[++r]);e.ip=r}function Ua(e){var t=e.ip,r=e.prog,n=e.stack,a=r[++t];exports.DEBUG&&console.log(e.step,"NPUSHW[]",a);for(var o=0;o<a;o++){var i=r[++t]<<8|r[++t];32768&i&&(i=-(1+(65535^i))),n.push(i)}e.ip=t}function ka(e){var t=e.stack,r=e.store;r||(r=e.store=[]);var n=t.pop(),a=t.pop();exports.DEBUG&&console.log(e.step,"WS",n,a),r[a]=n}function Oa(e){var t=e.stack,r=e.store,n=t.pop();exports.DEBUG&&console.log(e.step,"RS",n);var a=r&&r[n]||0;t.push(a)}function Ea(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTP",r,n),e.cvt[n]=r/64}function Ra(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"RCVT",r),t.push(64*e.cvt[r])}function La(e,t){var r=t.stack,n=r.pop(),a=t.z2[n];exports.DEBUG&&console.log(t.step,"GC["+e+"]",n),r.push(64*t.dpv.distance(a,On,e,!1))}function Ca(e,t){var r=t.stack,n=r.pop(),a=r.pop(),o=t.z1[n],i=t.z0[a],s=t.dpv.distance(i,o,e,e);exports.DEBUG&&console.log(t.step,"MD["+e+"]",n,a,"->",s),t.stack.push(Math.round(64*s))}function Da(e){exports.DEBUG&&console.log(e.step,"MPPEM[]"),e.stack.push(e.ppem)}function Ia(e){exports.DEBUG&&console.log(e.step,"FLIPON[]"),e.autoFlip=!0}function Aa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LT[]",r,n),t.push(n<r?1:0)}function Pa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"LTEQ[]",r,n),t.push(n<=r?1:0)}function Ba(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GT[]",r,n),t.push(n>r?1:0)}function Ma(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"GTEQ[]",r,n),t.push(n>=r?1:0)}function Fa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"EQ[]",r,n),t.push(r===n?1:0)}function Ga(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"NEQ[]",r,n),t.push(r!==n?1:0)}function Na(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ODD[]",r),t.push(Math.trunc(r)%2?1:0)}function Ha(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"EVEN[]",r),t.push(Math.trunc(r)%2?0:1)}function _a(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"IF[]",t),t||(Cn(e,!0),exports.DEBUG&&console.log(e.step,"EIF[]"))}function za(e){exports.DEBUG&&console.log(e.step,"EIF[]")}function Wa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"AND[]",r,n),t.push(r&&n?1:0)}function ja(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"OR[]",r,n),t.push(r||n?1:0)}function Ya(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NOT[]",r),t.push(r?0:1)}function qa(e,t){var r=t.stack,n=r.pop(),a=t.fv,o=t.pv,i=t.ppem,s=t.deltaBase+16*(e-1),u=t.deltaShift,l=t.z0;exports.DEBUG&&console.log(t.step,"DELTAP["+e+"]",n,r);for(var p=0;p<n;p++){var c=r.pop(),f=r.pop(),h=s+((240&f)>>4);if(h===i){var d=(15&f)-8;d>=0&&d++,exports.DEBUG&&console.log(t.step,"DELTAPFIX",c,"by",d*u);var v=l[c];a.setRelative(v,v,d*u,o)}}}function Xa(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDB[]",r),e.deltaBase=r}function Va(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"SDS[]",r),e.deltaShift=Math.pow(.5,r)}function Za(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"ADD[]",r,n),t.push(n+r)}function Qa(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"SUB[]",r,n),t.push(n-r)}function Ka(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"DIV[]",r,n),t.push(64*n/r)}function Ja(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MUL[]",r,n),t.push(n*r/64)}function $a(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"ABS[]",r),t.push(Math.abs(r))}function eo(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"NEG[]",r),t.push(-r)}function to(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"FLOOR[]",r),t.push(64*Math.floor(r/64))}function ro(e){var t=e.stack,r=t.pop();exports.DEBUG&&console.log(e.step,"CEILING[]",r),t.push(64*Math.ceil(r/64))}function no(e,t){var r=t.stack,n=r.pop();exports.DEBUG&&console.log(t.step,"ROUND[]"),r.push(64*t.round(n/64))}function ao(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"WCVTF[]",r,n),e.cvt[n]=r*e.ppem/e.font.unitsPerEm}function oo(e,t){var r=t.stack,n=r.pop(),a=t.ppem,o=t.deltaBase+16*(e-1),i=t.deltaShift;exports.DEBUG&&console.log(t.step,"DELTAC["+e+"]",n,r);for(var s=0;s<n;s++){var u=r.pop(),l=r.pop(),p=o+((240&l)>>4);if(p===a){var c=(15&l)-8;c>=0&&c++;var f=c*i;exports.DEBUG&&console.log(t.step,"DELTACFIX",u,"by",f),t.cvt[u]+=f}}}function io(e){var t,r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"SROUND[]",r),e.round=Sn,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid SROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t}function so(e){var t,r=e.stack.pop();switch(exports.DEBUG&&console.log(e.step,"S45ROUND[]",r),e.round=Sn,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid S45ROUND value")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t}function uo(e){exports.DEBUG&&console.log(e.step,"ROFF[]"),e.round=dn}function lo(e){exports.DEBUG&&console.log(e.step,"RUTG[]"),e.round=mn}function po(e){exports.DEBUG&&console.log(e.step,"RDTG[]"),e.round=bn}function co(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANCTRL[]",t)}function fo(e,t){var r,n,a=t.stack,o=a.pop(),i=a.pop(),s=t.z2[o],u=t.z1[i];exports.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",o,i),e?(r=s.y-u.y,n=u.x-s.x):(r=u.x-s.x,n=u.y-s.y),t.dpv=Un(r,n)}function ho(e){var t=e.stack,r=t.pop(),n=0;exports.DEBUG&&console.log(e.step,"GETINFO[]",r),1&r&&(n=35),32&r&&(n|=4096),t.push(n)}function vo(e){var t=e.stack,r=t.pop(),n=t.pop(),a=t.pop();exports.DEBUG&&console.log(e.step,"ROLL[]"),t.push(n),t.push(r),t.push(a)}function go(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MAX[]",r,n),t.push(Math.max(n,r))}function yo(e){var t=e.stack,r=t.pop(),n=t.pop();exports.DEBUG&&console.log(e.step,"MIN[]",r,n),t.push(Math.min(n,r))}function mo(e){var t=e.stack.pop();exports.DEBUG&&console.log(e.step,"SCANTYPE[]",t)}function bo(e){var t=e.stack.pop(),r=e.stack.pop();switch(exports.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 Error("invalid INSTCTRL[] selector")}}function So(e,t){var r=t.stack,n=t.prog,a=t.ip;exports.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var o=0;o<e;o++)r.push(n[++a]);t.ip=a}function xo(e,t){var r=t.ip,n=t.prog,a=t.stack;exports.DEBUG&&console.log(t.ip,"PUSHW["+e+"]");for(var o=0;o<e;o++){var i=n[++r]<<8|n[++r];32768&i&&(i=-(1+(65535^i))),a.push(i)}t.ip=r}function To(e,t,r,n,a,o){var i,s,u,l,p=o.stack,c=e&&p.pop(),f=p.pop(),h=o.rp0,d=o.z0[h],v=o.z1[f],g=o.minDis,y=o.fv,m=o.dpv;s=i=m.distance(v,d,!0,!0),u=s>=0?1:-1,s=Math.abs(s),e&&(l=o.cvt[c],n&&Math.abs(s-l)<o.cvCutIn&&(s=l)),r&&s<g&&(s=g),n&&(s=o.round(s)),y.setRelative(v,d,u*s,m),y.touch(v),exports.DEBUG&&console.log(o.step,(e?"MIRP[":"MDRP[")+(t?"M":"m")+(r?">":"_")+(n?"R":"_")+(0===a?"Gr":1===a?"Bl":2===a?"Wh":"")+"]",e?c+"("+o.cvt[c]+","+l+")":"",f,"(d =",i,"->",u*s,")"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}function wo(e){this.char=e,this.state={},this.activeState=null}function Uo(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function ko(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function Oo(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function Eo(e){this.eventId=e,this.subscribers=[]}function Ro(e){var t=this,r=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];r.forEach((function(e){Object.defineProperty(t.events,e,{value:new Eo(e)})})),e&&r.forEach((function(r){var n=e[r];"function"===typeof n&&t.events[r].subscribe(n)}));var n=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];n.forEach((function(e){t.events[e].subscribe(t.updateContextsRanges)}))}function Lo(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Ro.call(this,e)}function Co(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function Do(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function Io(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}function Ao(e){return/[A-z]/.test(e)}function Po(e){return/\s/.test(e)}function Bo(e){this.font=e,this.features={}}function Mo(e){this.id=e.id,this.tag=e.tag,this.substitution=e.substitution}function Fo(e,t){if(!e)return-1;switch(t.format){case 1:return t.glyphs.indexOf(e);case 2:for(var r=t.ranges,n=0;n<r.length;n++){var a=r[n];if(e>=a.start&&e<=a.end){var o=e-a.start;return a.index+o}}break;default:return-1}return-1}function Go(e,t){var r=Fo(e,t.coverage);return-1===r?null:e+t.deltaGlyphId}function No(e,t){var r=Fo(e,t.coverage);return-1===r?null:t.substitute[r]}function Ho(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],o=t.current;o=Array.isArray(o)?o[0]:o;var i=Fo(o,a);-1!==i&&r.push(i)}return r.length!==e.length?-1:r}function _o(e,t){var r=t.inputCoverage.length+t.lookaheadCoverage.length+t.backtrackCoverage.length;if(e.context.length<r)return[];var n=Ho(t.inputCoverage,e);if(-1===n)return[];var a=t.inputCoverage.length-1;if(e.lookahead.length<t.lookaheadCoverage.length)return[];var o=e.lookahead.slice(a);while(o.length&&Io(o[0].char))o.shift();var i=new Oo(o,0),s=Ho(t.lookaheadCoverage,i),u=[].concat(e.backtrack);u.reverse();while(u.length&&Io(u[0].char))u.shift();if(u.length<t.backtrackCoverage.length)return[];var l=new Oo(u,0),p=Ho(t.backtrackCoverage,l),c=n.length===t.inputCoverage.length&&s.length===t.lookaheadCoverage.length&&p.length===t.backtrackCoverage.length,f=[];if(c)for(var h=0;h<t.lookupRecords.length;h++)for(var d=t.lookupRecords[h],v=d.lookupListIndex,g=this.getLookupByIndex(v),y=0;y<g.subtables.length;y++){var m=g.subtables[y],b=this.getLookupMethod(g,m),S=this.getSubstitutionType(g,m);if("12"===S)for(var x=0;x<n.length;x++){var T=e.get(x),w=b(T);w&&f.push(w)}}return f}function zo(e,t){var r,n=e.current,a=Fo(n,t.coverage);if(-1===a)return null;for(var o=t.ligatureSets[a],i=0;i<o.length;i++){r=o[i];for(var s=0;s<r.components.length;s++){var u=e.lookahead[s],l=r.components[s];if(u!==l)break;if(s===r.components.length-1)return r}}return null}function Wo(e,t){var r=Fo(e,t.coverage);return-1===r?null:t.sequences[r]}function jo(e){var t=e.current,r=e.get(-1);return null===r&&Co(t)||!Co(r)&&Co(t)}function Yo(e){var t=e.get(1);return null===t||!Co(t)}hn.prototype.exec=function(e,t){if("number"!==typeof t)throw new Error("Point size is not a number!");if(!(this._errorState>2)){var r=this.font,n=this._prepState;if(!n||n.ppem!==t){var a=this._fpgmState;if(!a){Rn.prototype=En,a=this._fpgmState=new Rn("fpgm",r.tables.fpgm),a.funcs=[],a.font=r,exports.DEBUG&&(console.log("---EXEC FPGM---"),a.step=-1);try{ln(a)}catch(l){return console.log("Hinting error in FPGM:"+l),void(this._errorState=3)}}Rn.prototype=a,n=this._prepState=new Rn("prep",r.tables.prep),n.ppem=t;var o=r.tables.cvt;if(o)for(var i=n.cvt=new Array(o.length),s=t/r.unitsPerEm,u=0;u<o.length;u++)i[u]=o[u]*s;else n.cvt=[];exports.DEBUG&&(console.log("---EXEC PREP---"),n.step=-1);try{ln(n)}catch(l){this._errorState<2&&console.log("Hinting error in PREP:"+l),this._errorState=2}}if(!(this._errorState>1))try{return pn(e,n)}catch(l){return this._errorState<1&&(console.log("Hinting error:"+l),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},pn=function(e,t){var r,n,a,o=t.ppem/t.font.unitsPerEm,i=o,s=e.components;if(Rn.prototype=t,s){var u=t.font;n=[],r=[];for(var l=0;l<s.length;l++){var p=s[l],c=u.glyphs.get(p.glyphIndex);a=new Rn("glyf",c.instructions),exports.DEBUG&&(console.log("---EXEC COMP "+l+"---"),a.step=-1),cn(c,a,o,i);for(var f=Math.round(p.dx*o),h=Math.round(p.dy*i),d=a.gZone,v=a.contours,g=0;g<d.length;g++){var y=d[g];y.xTouched=y.yTouched=!1,y.xo=y.x=y.x+f,y.yo=y.y=y.y+h}var m=n.length;n.push.apply(n,d);for(var b=0;b<v.length;b++)r.push(v[b]+m)}e.instructions&&!a.inhibitGridFit&&(a=new Rn("glyf",e.instructions),a.gZone=a.z0=a.z1=a.z2=n,a.contours=r,n.push(new kn(0,0),new kn(Math.round(e.advanceWidth*o),0)),exports.DEBUG&&(console.log("---EXEC COMPOSITE---"),a.step=-1),ln(a),n.length-=2)}else a=new Rn("glyf",e.instructions),exports.DEBUG&&(console.log("---EXEC GLYPH---"),a.step=-1),cn(e,a,o,i),n=a.gZone;return n},cn=function(e,t,r,n){for(var a,o,i,s=e.points||[],u=s.length,l=t.gZone=t.z0=t.z1=t.z2=[],p=t.contours=[],c=0;c<u;c++)a=s[c],l[c]=new kn(a.x*r,a.y*n,a.lastPointOfContour,a.onCurve);for(var f=0;f<u;f++)a=l[f],o||(o=a,p.push(f)),a.lastPointOfContour?(a.nextPointOnContour=o,o.prevPointOnContour=a,o=void 0):(i=l[f+1],a.nextPointOnContour=i,i.prevPointOnContour=a);if(!t.inhibitGridFit){if(exports.DEBUG){console.log("PROCESSING GLYPH",t.stack);for(var h=0;h<u;h++)console.log(h,l[h].x,l[h].y)}if(l.push(new kn(0,0),new kn(Math.round(e.advanceWidth*r),0)),ln(t),l.length-=2,exports.DEBUG){console.log("FINISHED GLYPH",t.stack);for(var d=0;d<u;d++)console.log(d,l[d].x,l[d].y)}}},ln=function(e){var t=e.prog;if(t){var r,n=t.length;for(e.ip=0;e.ip<n;e.ip++){if(exports.DEBUG&&e.step++,r=un[t[e.ip]],!r)throw new Error("unknown instruction: 0x"+Number(t[e.ip]).toString(16));r(e)}}},un=[Dn.bind(void 0,Tn),Dn.bind(void 0,xn),In.bind(void 0,Tn),In.bind(void 0,xn),An.bind(void 0,Tn),An.bind(void 0,xn),Pn.bind(void 0,0),Pn.bind(void 0,1),Bn.bind(void 0,0),Bn.bind(void 0,1),Mn,Fn,Gn,Nn,Hn,_n,zn,Wn,jn,Yn,qn,Xn,Vn,Zn,Qn,Kn,Jn,$n,ea,ta,void 0,void 0,ra,na,aa,oa,ia,la,pa,void 0,void 0,void 0,sa,ua,ca,void 0,fa.bind(void 0,0),fa.bind(void 0,1),ha.bind(void 0,Tn),ha.bind(void 0,xn),da.bind(void 0,0),da.bind(void 0,1),va.bind(void 0,0),va.bind(void 0,1),ga.bind(void 0,0),ga.bind(void 0,1),ya,ma,ba.bind(void 0,0),ba.bind(void 0,1),Sa,xa,Ta.bind(void 0,0),Ta.bind(void 0,1),wa,Ua,ka,Oa,Ea,Ra,La.bind(void 0,0),La.bind(void 0,1),void 0,Ca.bind(void 0,0),Ca.bind(void 0,1),Da,void 0,Ia,void 0,void 0,Aa,Pa,Ba,Ma,Fa,Ga,Na,Ha,_a,za,Wa,ja,Ya,qa.bind(void 0,1),Xa,Va,Za,Qa,Ka,Ja,$a,eo,to,ro,no.bind(void 0,0),no.bind(void 0,1),no.bind(void 0,2),no.bind(void 0,3),void 0,void 0,void 0,void 0,ao,qa.bind(void 0,2),qa.bind(void 0,3),oo.bind(void 0,1),oo.bind(void 0,2),oo.bind(void 0,3),io,so,void 0,void 0,uo,void 0,lo,po,na,na,void 0,void 0,void 0,void 0,void 0,co,fo.bind(void 0,0),fo.bind(void 0,1),ho,void 0,vo,go,yo,mo,bo,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,So.bind(void 0,1),So.bind(void 0,2),So.bind(void 0,3),So.bind(void 0,4),So.bind(void 0,5),So.bind(void 0,6),So.bind(void 0,7),So.bind(void 0,8),xo.bind(void 0,1),xo.bind(void 0,2),xo.bind(void 0,3),xo.bind(void 0,4),xo.bind(void 0,5),xo.bind(void 0,6),xo.bind(void 0,7),xo.bind(void 0,8),To.bind(void 0,0,0,0,0,0),To.bind(void 0,0,0,0,0,1),To.bind(void 0,0,0,0,0,2),To.bind(void 0,0,0,0,0,3),To.bind(void 0,0,0,0,1,0),To.bind(void 0,0,0,0,1,1),To.bind(void 0,0,0,0,1,2),To.bind(void 0,0,0,0,1,3),To.bind(void 0,0,0,1,0,0),To.bind(void 0,0,0,1,0,1),To.bind(void 0,0,0,1,0,2),To.bind(void 0,0,0,1,0,3),To.bind(void 0,0,0,1,1,0),To.bind(void 0,0,0,1,1,1),To.bind(void 0,0,0,1,1,2),To.bind(void 0,0,0,1,1,3),To.bind(void 0,0,1,0,0,0),To.bind(void 0,0,1,0,0,1),To.bind(void 0,0,1,0,0,2),To.bind(void 0,0,1,0,0,3),To.bind(void 0,0,1,0,1,0),To.bind(void 0,0,1,0,1,1),To.bind(void 0,0,1,0,1,2),To.bind(void 0,0,1,0,1,3),To.bind(void 0,0,1,1,0,0),To.bind(void 0,0,1,1,0,1),To.bind(void 0,0,1,1,0,2),To.bind(void 0,0,1,1,0,3),To.bind(void 0,0,1,1,1,0),To.bind(void 0,0,1,1,1,1),To.bind(void 0,0,1,1,1,2),To.bind(void 0,0,1,1,1,3),To.bind(void 0,1,0,0,0,0),To.bind(void 0,1,0,0,0,1),To.bind(void 0,1,0,0,0,2),To.bind(void 0,1,0,0,0,3),To.bind(void 0,1,0,0,1,0),To.bind(void 0,1,0,0,1,1),To.bind(void 0,1,0,0,1,2),To.bind(void 0,1,0,0,1,3),To.bind(void 0,1,0,1,0,0),To.bind(void 0,1,0,1,0,1),To.bind(void 0,1,0,1,0,2),To.bind(void 0,1,0,1,0,3),To.bind(void 0,1,0,1,1,0),To.bind(void 0,1,0,1,1,1),To.bind(void 0,1,0,1,1,2),To.bind(void 0,1,0,1,1,3),To.bind(void 0,1,1,0,0,0),To.bind(void 0,1,1,0,0,1),To.bind(void 0,1,1,0,0,2),To.bind(void 0,1,1,0,0,3),To.bind(void 0,1,1,0,1,0),To.bind(void 0,1,1,0,1,1),To.bind(void 0,1,1,0,1,2),To.bind(void 0,1,1,0,1,3),To.bind(void 0,1,1,1,0,0),To.bind(void 0,1,1,1,0,1),To.bind(void 0,1,1,1,0,2),To.bind(void 0,1,1,1,0,3),To.bind(void 0,1,1,1,1,0),To.bind(void 0,1,1,1,1,1),To.bind(void 0,1,1,1,1,2),To.bind(void 0,1,1,1,1,3)],wo.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},wo.prototype.getState=function(e){return this.state[e]||null},Lo.prototype.inboundIndex=function(e){return e>=0&&e<this.tokens.length},Lo.prototype.composeRUD=function(e){var t=this,r=!0,n=e.map((function(e){return t[e[0]].apply(t,e.slice(1).concat(r))})),a=function(e){return"object"===typeof e&&e.hasOwnProperty("FAIL")};if(n.every(a))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(a)};this.dispatch("composeRUD",[n.filter((function(e){return!a(e)}))])},Lo.prototype.replaceRange=function(e,t,r,n){t=null!==t?t:this.tokens.length;var a=r.every((function(e){return e instanceof wo}));if(!isNaN(e)&&this.inboundIndex(e)&&a){var o=this.tokens.splice.apply(this.tokens,[e,t].concat(r));return n||this.dispatch("replaceToken",[e,t,r]),[o,r]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Lo.prototype.replaceToken=function(e,t,r){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof wo){var n=this.tokens.splice(e,1,t);return r||this.dispatch("replaceToken",[e,t]),[n[0],t]}return{FAIL:"replaceToken: invalid token or index."}},Lo.prototype.removeRange=function(e,t,r){t=isNaN(t)?this.tokens.length:t;var n=this.tokens.splice(e,t);return r||this.dispatch("removeRange",[n,e,t]),n},Lo.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){var r=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[r,e]),r}return{FAIL:"removeToken: invalid token index."}},Lo.prototype.insertToken=function(e,t,r){var n=e.every((function(e){return e instanceof wo}));return n?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),r||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Lo.prototype.registerModifier=function(e,t,r){this.events.newToken.subscribe((function(n,a){var o=[n,a],i=null===t||!0===t.apply(this,o),s=[n,a];if(i){var u=r.apply(this,s);n.setState(e,u)}})),this.registeredModifiers.push(e)},Eo.prototype.subscribe=function(e){return"function"===typeof e?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},Eo.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},Oo.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},Oo.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case e>0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Lo.prototype.rangeToText=function(e){if(e instanceof Uo)return this.getRangeTokens(e).map((function(e){return e.char})).join("")},Lo.prototype.getText=function(){return this.tokens.map((function(e){return e.char})).join("")},Lo.prototype.getContext=function(e){var t=this.registeredContexts[e];return t||null},Lo.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null},Lo.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof Eo&&n.subscribers.forEach((function(e){e.apply(r,t||[])}))},Lo.prototype.registerContextChecker=function(e,t,r){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if("function"!==typeof t)return{FAIL:"missing context start check."};if("function"!==typeof r)return{FAIL:"missing context end check."};var n=new ko(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n},Lo.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},Lo.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},Lo.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.ranges=[]}},Lo.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map((function(e){return e.char})),t=0;t<e.length;t++){var r=new Oo(e,t);this.runContextCheck(r)}this.dispatch("updateContextsRanges",[this.registeredContexts])},Lo.prototype.setEndOffset=function(e,t){var r=this.getContext(t).openRange.startIndex,n=new Uo(r,e,t),a=this.getContext(t).ranges;return n.rangeId=t+"."+a.length,a.push(n),this.getContext(t).openRange=null,n},Lo.prototype.runContextCheck=function(e){var t=this,r=e.index;this.contextCheckers.forEach((function(n){var a=n.contextName,o=t.getContext(a).openRange;if(!o&&n.checkStart(e)&&(o=new Uo(r,null,a),t.getContext(a).openRange=o,t.dispatch("contextStart",[a,r])),o&&n.checkEnd(e)){var i=r-o.startIndex+1,s=t.setEndOffset(i,a);t.dispatch("contextEnd",[a,s])}}))},Lo.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var r=0;r<t.length;r++){var n=t[r],a=new Oo(t,r);this.dispatch("next",[a]),this.runContextCheck(a);var o=new wo(n);this.tokens.push(o),this.dispatch("newToken",[o,a])}return this.dispatch("end",[this.tokens]),this.tokens},Bo.prototype.getDefaultScriptFeaturesIndexes=function(){for(var e=this.font.tables.gsub.scripts,t=0;t<e.length;t++){var r=e[t];if("DFLT"===r.tag)return r.script.defaultLangSys.featureIndexes}return[]},Bo.prototype.getScriptFeaturesIndexes=function(e){var t=this.font.tables;if(!t.gsub)return[];if(!e)return this.getDefaultScriptFeaturesIndexes();for(var r=this.font.tables.gsub.scripts,n=0;n<r.length;n++){var a=r[n];if(a.tag===e&&a.script.defaultLangSys)return a.script.defaultLangSys.featureIndexes;var o=a.langSysRecords;if(o)for(var i=0;i<o.length;i++){var s=o[i];if(s.tag===e){var u=s.langSys;return u.featureIndexes}}}return this.getDefaultScriptFeaturesIndexes()},Bo.prototype.mapTagsToFeatures=function(e,t){for(var r={},n=0;n<e.length;n++){var a=e[n].tag,o=e[n].feature;r[a]=o}this.features[t].tags=r},Bo.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var r=this.getScriptFeaturesIndexes(e);if(!r)return null;var n=this.font.tables.gsub;return t=r.map((function(e){return n.features[e]})),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Bo.prototype.getSubstitutionType=function(e,t){var r=e.lookupType.toString(),n=t.substFormat.toString();return r+n},Bo.prototype.getLookupMethod=function(e,t){var r=this,n=this.getSubstitutionType(e,t);switch(n){case"11":return function(e){return Go.apply(r,[e,t])};case"12":return function(e){return No.apply(r,[e,t])};case"63":return function(e){return _o.apply(r,[e,t])};case"41":return function(e){return zo.apply(r,[e,t])};case"21":return function(e){return Wo.apply(r,[e,t])};default:throw new Error("lookupType: "+e.lookupType+" - substFormat: "+t.substFormat+" is not yet supported")}},Bo.prototype.lookupFeature=function(e){var t=e.contextParams,r=t.index,n=this.getFeature({tag:e.tag,script:e.script});if(!n)return new Error("font '"+(this.font.names.unicode||this.font.names.windows||this.font.names.macintosh).fullName.en+"' doesn't support feature '"+e.tag+"' for script '"+e.script+"'.");for(var a=this.getFeatureLookups(n),o=[].concat(t.context),i=0;i<a.length;i++)for(var s=a[i],u=this.getLookupSubtables(s),l=0;l<u.length;l++){var p=u[l],c=this.getSubstitutionType(s,p),f=this.getLookupMethod(s,p),h=void 0;switch(c){case"11":h=f(t.current),h&&o.splice(r,1,new Mo({id:11,tag:e.tag,substitution:h}));break;case"12":h=f(t.current),h&&o.splice(r,1,new Mo({id:12,tag:e.tag,substitution:h}));break;case"63":h=f(t),Array.isArray(h)&&h.length&&o.splice(r,1,new Mo({id:63,tag:e.tag,substitution:h}));break;case"41":h=f(t),h&&o.splice(r,1,new Mo({id:41,tag:e.tag,substitution:h}));break;case"21":h=f(t.current),h&&o.splice(r,1,new Mo({id:21,tag:e.tag,substitution:h}));break}t=new Oo(o,r),Array.isArray(h)&&!h.length||(h=null)}return o.length?o:null},Bo.prototype.supports=function(e){if(!e.script)return!1;this.getScriptFeatures(e.script);var t=this.features.hasOwnProperty(e.script);if(!e.tag)return t;var r=this.features[e.script].some((function(t){return t.tag===e.tag}));return t&&r},Bo.prototype.getLookupSubtables=function(e){return e.subtables||null},Bo.prototype.getLookupByIndex=function(e){var t=this.font.tables.gsub.lookups;return t[e]||null},Bo.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))},Bo.prototype.getFeature=function(e){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(e.script)||this.getScriptFeatures(e.script);var t=this.features[e.script];return t?t.tags[e.tag]?this.features[e.script].tags[e.tag]:null:{FAIL:"No feature for script "+e.script}};var qo={startCheck:jo,endCheck:Yo};function Xo(e){var t=e.current,r=e.get(-1);return(Co(t)||Io(t))&&!Co(r)}function Vo(e){var t=e.get(1);switch(!0){case null===t:return!0;case!Co(t)&&!Io(t):var r=Po(t);if(!r)return!0;if(r){var n=!1;if(n=e.lookahead.some((function(e){return Co(e)||Io(e)})),!n)return!0}break;default:return!1}}var Zo={startCheck:Xo,endCheck:Vo};function Qo(e,t,r){t[r].setState(e.tag,e.substitution)}function Ko(e,t,r){t[r].setState(e.tag,e.substitution)}function Jo(e,t,r){e.substitution.forEach((function(n,a){var o=t[r+a];o.setState(e.tag,n)}))}function $o(e,t,r){var n=t[r];n.setState(e.tag,e.substitution.ligGlyph);for(var a=e.substitution.components.length,o=0;o<a;o++)n=t[r+o+1],n.setState("deleted",!0)}var ei={11:Qo,12:Ko,63:Jo,41:$o};function ti(e,t,r){e instanceof Mo&&ei[e.id]&&ei[e.id](e,t,r)}function ri(e){for(var t=[].concat(e.backtrack),r=t.length-1;r>=0;r--){var n=t[r],a=Do(n),o=Io(n);if(!a&&!o)return!0;if(a)return!1}return!1}function ni(e){if(Do(e.current))return!1;for(var t=0;t<e.lookahead.length;t++){var r=e.lookahead[t],n=Io(r);if(!n)return!0}return!1}function ai(e){var t=this,r="arab",n=this.featuresTags[r],a=this.tokenizer.getRangeTokens(e);if(1!==a.length){var o=new Oo(a.map((function(e){return e.getState("glyphIndex")})),0),i=new Oo(a.map((function(e){return e.char})),0);a.forEach((function(e,s){if(!Io(e.char)){o.setCurrentIndex(s),i.setCurrentIndex(s);var u,l=0;switch(ri(i)&&(l|=1),ni(i)&&(l|=2),l){case 1:u="fina";break;case 2:u="init";break;case 3:u="medi";break}if(-1!==n.indexOf(u)){var p=t.query.lookupFeature({tag:u,script:r,contextParams:o});if(p instanceof Error)return console.info(p.message);p.forEach((function(e,t){e instanceof Mo&&(ti(e,a,t),o.context[t]=e.substitution)}))}}}))}}function oi(e,t){var r=e.map((function(e){return e.activeState.value}));return new Oo(r,t||0)}function ii(e){var t=this,r="arab",n=this.tokenizer.getRangeTokens(e),a=oi(n);a.context.forEach((function(e,o){a.setCurrentIndex(o);var i=t.query.lookupFeature({tag:"rlig",script:r,contextParams:a});i.length&&(i.forEach((function(e){return ti(e,n,o)})),a=oi(n))}))}function si(e){var t=e.current,r=e.get(-1);return null===r&&Ao(t)||!Ao(r)&&Ao(t)}function ui(e){var t=e.get(1);return null===t||!Ao(t)}var li={startCheck:si,endCheck:ui};function pi(e,t){var r=e.map((function(e){return e.activeState.value}));return new Oo(r,t||0)}function ci(e){var t=this,r="latn",n=this.tokenizer.getRangeTokens(e),a=pi(n);a.context.forEach((function(e,o){a.setCurrentIndex(o);var i=t.query.lookupFeature({tag:"liga",script:r,contextParams:a});i.length&&(i.forEach((function(e){return ti(e,n,o)})),a=pi(n))}))}function fi(e){this.baseDir=e||"ltr",this.tokenizer=new Lo,this.featuresTags={}}function hi(e){var t=this.contextChecks[e+"Check"];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function di(){return hi.call(this,"latinWord"),hi.call(this,"arabicWord"),hi.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function vi(){var e=this,t=this.tokenizer.getContextRanges("arabicSentence");t.forEach((function(t){var r=e.tokenizer.getRangeTokens(t);e.tokenizer.replaceRange(t.startIndex,t.endOffset,r.reverse())}))}function gi(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function yi(){var e=this,t="arab";if(this.featuresTags.hasOwnProperty(t)){gi.call(this);var r=this.tokenizer.getContextRanges("arabicWord");r.forEach((function(t){ai.call(e,t)}))}}function mi(){var e=this,t="arab";if(this.featuresTags.hasOwnProperty(t)){var r=this.featuresTags[t];if(-1!==r.indexOf("rlig")){gi.call(this);var n=this.tokenizer.getContextRanges("arabicWord");n.forEach((function(t){ii.call(e,t)}))}}}function bi(){var e=this,t="latn";if(this.featuresTags.hasOwnProperty(t)){var r=this.featuresTags[t];if(-1!==r.indexOf("liga")){gi.call(this);var n=this.tokenizer.getContextRanges("latinWord");n.forEach((function(t){ci.call(e,t)}))}}}function Si(e){return{fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\s/g,"")},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}}}function xi(e){e=e||{},e.tables=e.tables||{},e.empty||(Kr(e.familyName,"When creating a new Font object, familyName is required."),Kr(e.styleName,"When creating a new Font object, styleName is required."),Kr(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Kr(e.ascender,"When creating a new Font object, ascender is required."),Kr(e.descender<=0,"When creating a new Font object, negative descender value is required."),this.names={},this.names.unicode=Si(e),this.names.macintosh=Si(e),this.names.windows=Si(e),this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables=Object.assign(e.tables,{os2:Object.assign({usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR},e.tables.os2)})),this.supported=!0,this.glyphs=new Ye.GlyphSet(this,e.glyphs||[]),this.encoding=new Le(this),this.position=new jr(this),this.substitution=new Yr(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new hn(this):void 0}})}function Ti(e,t){var r=JSON.stringify(e),n=256;for(var a in t){var o=parseInt(a);if(o&&!(o<256)){if(JSON.stringify(t[a])===r)return o;n<=o&&(n=o+1)}}return t[n]=e,n}function wi(e,t,r){var n=Ti(t.name,r);return[{name:"tag_"+e,type:"TAG",value:t.tag},{name:"minValue_"+e,type:"FIXED",value:t.minValue<<16},{name:"defaultValue_"+e,type:"FIXED",value:t.defaultValue<<16},{name:"maxValue_"+e,type:"FIXED",value:t.maxValue<<16},{name:"flags_"+e,type:"USHORT",value:0},{name:"nameID_"+e,type:"USHORT",value:n}]}function Ui(e,t,r){var n={},a=new ye.Parser(e,t);return n.tag=a.parseTag(),n.minValue=a.parseFixed(),n.defaultValue=a.parseFixed(),n.maxValue=a.parseFixed(),a.skip("uShort",1),n.name=r[a.parseUShort()]||{},n}function ki(e,t,r,n){for(var a=Ti(t.name,n),o=[{name:"nameID_"+e,type:"USHORT",value:a},{name:"flags_"+e,type:"USHORT",value:0}],i=0;i<r.length;++i){var s=r[i].tag;o.push({name:"axis_"+e+" "+s,type:"FIXED",value:t.coordinates[s]<<16})}return o}function Oi(e,t,r,n){var a={},o=new ye.Parser(e,t);a.name=n[o.parseUShort()]||{},o.skip("uShort",1),a.coordinates={};for(var i=0;i<r.length;++i)a.coordinates[r[i].tag]=o.parseFixed();return a}function Ei(e,t){var r=new ne.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+4*e.axes.length}]);r.offsetToData=r.sizeOf();for(var n=0;n<e.axes.length;n++)r.fields=r.fields.concat(wi(n,e.axes[n],t));for(var a=0;a<e.instances.length;a++)r.fields=r.fields.concat(ki(a,e.instances[a],e.axes,t));return r}function Ri(e,t,r){var n=new ye.Parser(e,t),a=n.parseULong();A.argument(65536===a,"Unsupported fvar table version.");var o=n.parseOffset16();n.skip("uShort",1);for(var i=n.parseUShort(),s=n.parseUShort(),u=n.parseUShort(),l=n.parseUShort(),p=[],c=0;c<i;c++)p.push(Ui(e,t+o+c*s,r));for(var f=[],h=t+o+i*s,d=0;d<u;d++)f.push(Oi(e,h+d*l,p,r));return{axes:p,instances:f}}fi.prototype.setText=function(e){this.text=e},fi.prototype.contextChecks={latinWordCheck:li,arabicWordCheck:qo,arabicSentenceCheck:Zo},fi.prototype.registerFeatures=function(e,t){var r=this,n=t.filter((function(t){return r.query.supports({script:e,tag:t})}));this.featuresTags.hasOwnProperty(e)?this.featuresTags[e]=this.featuresTags[e].concat(n):this.featuresTags[e]=n},fi.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new Bo(e));for(var r=0;r<t.length;r++){var n=t[r];this.query.supports({script:n.script})&&this.registerFeatures(n.script,n.tags)}},fi.prototype.registerModifier=function(e,t,r){this.tokenizer.registerModifier(e,t,r)},fi.prototype.checkContextReady=function(e){return!!this.tokenizer.getContext(e)},fi.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(yi.call(this),mi.call(this)),this.checkContextReady("latinWord")&&bi.call(this),this.checkContextReady("arabicSentence")&&vi.call(this)},fi.prototype.processText=function(e){this.text&&this.text===e||(this.setText(e),di.call(this),this.applyFeaturesToContexts())},fi.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()},fi.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],r=0;r<this.tokenizer.tokens.length;r++){var n=this.tokenizer.tokens[r];if(!n.state.deleted){var a=n.activeState.value;t.push(Array.isArray(a)?a[0]:a)}}return t},xi.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},xi.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},xi.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r},xi.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map((function(t){return"latn"===t.script?{script:"latn",tags:t.tags.filter((function(t){return e[t]}))}:t}))},xi.prototype.stringToGlyphs=function(e,t){var r=this,n=new fi,a=function(e){return r.charToGlyphIndex(e.char)};n.registerModifier("glyphIndex",null,a);var o=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;n.applyFeatures(this,o);for(var i=n.getTextGlyphs(e),s=i.length,u=new Array(s),l=this.glyphs.get(0),p=0;p<s;p+=1)u[p]=this.glyphs.get(i[p])||l;return u},xi.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},xi.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r},xi.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},xi.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+","+t]||0},xi.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]},xi.prototype.forEachGlyph=function(e,t,r,n,a,o){t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:72,a=Object.assign({},this.defaultRenderOptions,a);var i,s=1/this.unitsPerEm*n,u=this.stringToGlyphs(e,a);if(a.kerning){var l=a.script||this.position.getDefaultScriptName();i=this.position.getKerningTables(l,a.language)}for(var p=0;p<u.length;p+=1){var c=u[p];if(o.call(this,c,t,r,n,a),c.advanceWidth&&(t+=c.advanceWidth*s),a.kerning&&p<u.length-1){var f=i?this.position.getKerningValue(i,c.index,u[p+1].index):this.getKerningValue(c,u[p+1]);t+=f*s}a.letterSpacing?t+=a.letterSpacing*n:a.tracking&&(t+=a.tracking/1e3*n)}return t},xi.prototype.getPath=function(e,t,r,n,a){var o=new C;return this.forEachGlyph(e,t,r,n,a,(function(e,t,r,n){var i=e.getPath(t,r,n,a,this);o.extend(i)})),o},xi.prototype.getPaths=function(e,t,r,n,a){var o=[];return this.forEachGlyph(e,t,r,n,a,(function(e,t,r,n){var i=e.getPath(t,r,n,a,this);o.push(i)})),o},xi.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,(function(){}))},xi.prototype.draw=function(e,t,r,n,a,o){this.getPath(t,r,n,a,o).draw(e)},xi.prototype.drawPoints=function(e,t,r,n,a,o){this.forEachGlyph(t,r,n,a,o,(function(t,r,n,a){t.drawPoints(e,r,n,a)}))},xi.prototype.drawMetrics=function(e,t,r,n,a,o){this.forEachGlyph(t,r,n,a,o,(function(t,r,n,a){t.drawMetrics(e,r,n,a)}))},xi.prototype.getEnglishName=function(e){var t=(this.names.unicode||this.names.macintosh||this.names.windows)[e];if(t)return t.en},xi.prototype.validate=function(){var e=this;function t(e,t){}function r(r){var n=e.getEnglishName(r);t(n&&n.trim().length>0)}r("fontFamily"),r("weightName"),r("manufacturer"),r("copyright"),r("version"),t(this.unitsPerEm>0)},xi.prototype.toTables=function(){return Nr.fontToTable(this)},xi.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},xi.prototype.toArrayBuffer=function(){for(var e=this.toTables(),t=e.encode(),r=new ArrayBuffer(t.length),n=new Uint8Array(r),a=0;a<t.length;a++)n[a]=t[a];return r},xi.prototype.download=function(e){var t=this.getEnglishName("fontFamily"),n=this.getEnglishName("fontSubfamily");e=e||t.replace(/\s/g,"")+"-"+n+".otf";var a=this.toArrayBuffer();if(Vr())if(window.URL=window.URL||window.webkitURL,window.URL){var o=new DataView(a),i=new Blob([o],{type:"font/opentype"}),s=document.createElement("a");s.href=window.URL.createObjectURL(i),s.download=e;var u=document.createEvent("MouseEvents");u.initEvent("click",!0,!1),s.dispatchEvent(u)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var l=r(0),p=Qr(a);l.writeFileSync(e,p)}},xi.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},xi.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},xi.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Li={make:Ei,parse:Ri},Ci=function(){return{coverage:this.parsePointer(ve.coverage),attachPoints:this.parseList(ve.pointer(ve.uShortList))}},Di=function(){var e=this.parseUShort();return A.argument(1===e||2===e||3===e,"Unsupported CaretValue table version."),1===e?{coordinate:this.parseShort()}:2===e?{pointindex:this.parseShort()}:3===e?{coordinate:this.parseShort()}:void 0},Ii=function(){return this.parseList(ve.pointer(Di))},Ai=function(){return{coverage:this.parsePointer(ve.coverage),ligGlyphs:this.parseList(ve.pointer(Ii))}},Pi=function(){return this.parseUShort(),this.parseList(ve.pointer(ve.coverage))};function Bi(e,t){t=t||0;var r=new ve(e,t),n=r.parseVersion(1);A.argument(1===n||1.2===n||1.3===n,"Unsupported GDEF table version.");var a={version:n,classDef:r.parsePointer(ve.classDef),attachList:r.parsePointer(Ci),ligCaretList:r.parsePointer(Ai),markAttachClassDef:r.parsePointer(ve.classDef)};return n>=1.2&&(a.markGlyphSets=r.parsePointer(Pi)),a}var Mi={parse:Bi},Fi=new Array(10);function Gi(e,t){t=t||0;var r=new ve(e,t),n=r.parseVersion(1);return A.argument(1===n||1.1===n,"Unsupported GPOS table version "+n),1===n?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Fi)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(Fi),variations:r.parseFeatureVariationsList()}}Fi[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(ve.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(ve.coverage),values:this.parseValueRecordList()}:void A.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},Fi[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();A.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var r=this.parsePointer(ve.coverage),n=this.parseUShort(),a=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:n,valueFormat2:a,pairSets:this.parseList(ve.pointer(ve.list((function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(n),value2:this.parseValueRecord(a)}}))))};if(2===t){var o=this.parsePointer(ve.classDef),i=this.parsePointer(ve.classDef),s=this.parseUShort(),u=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:n,valueFormat2:a,classDef1:o,classDef2:i,class1Count:s,class2Count:u,classRecords:this.parseList(s,ve.list(u,(function(){return{value1:this.parseValueRecord(n),value2:this.parseValueRecord(a)}})))}}},Fi[3]=function(){return{error:"GPOS Lookup 3 not supported"}},Fi[4]=function(){return{error:"GPOS Lookup 4 not supported"}},Fi[5]=function(){return{error:"GPOS Lookup 5 not supported"}},Fi[6]=function(){return{error:"GPOS Lookup 6 not supported"}},Fi[7]=function(){return{error:"GPOS Lookup 7 not supported"}},Fi[8]=function(){return{error:"GPOS Lookup 8 not supported"}},Fi[9]=function(){return{error:"GPOS Lookup 9 not supported"}};var Ni=new Array(10);function Hi(e){return new ne.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new ne.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new ne.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new ne.LookupList(e.lookups,Ni)}])}var _i={parse:Gi,make:Hi};function zi(e){var t={};e.skip("uShort");var r=e.parseUShort();A.argument(0===r,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var a=0;a<n;a+=1){var o=e.parseUShort(),i=e.parseUShort(),s=e.parseShort();t[o+","+i]=s}return t}function Wi(e){var t={};e.skip("uShort");var r=e.parseULong();r>1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var n=e.parseUShort(),a=255&n;if(e.skip("uShort"),0===a){var o=e.parseUShort();e.skip("uShort",3);for(var i=0;i<o;i+=1){var s=e.parseUShort(),u=e.parseUShort(),l=e.parseShort();t[s+","+u]=l}}return t}function ji(e,t){var r=new ye.Parser(e,t),n=r.parseUShort();if(0===n)return zi(r);if(1===n)return Wi(r);throw new Error("Unsupported kern table version ("+n+").")}var Yi={parse:ji};function qi(e,t,r,n){for(var a=new ye.Parser(e,t),o=n?a.parseUShort:a.parseULong,i=[],s=0;s<r+1;s+=1){var u=o.call(a);n&&(u*=2),i.push(u)}return i}var Xi={parse:qi};function Vi(e,t){var n=r(0);n.readFile(e,(function(e,r){if(e)return t(e.message);t(null,Zr(r))}))}function Zi(e,t){var r=new XMLHttpRequest;r.open("get",e,!0),r.responseType="arraybuffer",r.onload=function(){return r.response?t(null,r.response):t("Font could not be loaded: "+r.statusText)},r.onerror=function(){t("Font could not be loaded")},r.send()}function Qi(e,t){for(var r=[],n=12,a=0;a<t;a+=1){var o=ye.getTag(e,n),i=ye.getULong(e,n+4),s=ye.getULong(e,n+8),u=ye.getULong(e,n+12);r.push({tag:o,checksum:i,offset:s,length:u,compression:!1}),n+=16}return r}function Ki(e,t){for(var r=[],n=44,a=0;a<t;a+=1){var o=ye.getTag(e,n),i=ye.getULong(e,n+4),s=ye.getULong(e,n+8),u=ye.getULong(e,n+12),l=void 0;l=s<u&&"WOFF",r.push({tag:o,offset:i,compression:l,compressedLength:s,length:u}),n+=20}return r}function Ji(e,t){if("WOFF"===t.compression){var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),n=new Uint8Array(t.length);if(E(r,n),n.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");var a=new DataView(n.buffer,0);return{data:a,offset:0}}return{data:e,offset:t.offset}}function $i(e,t){var r,n;t=void 0===t||null===t?{}:t;var a,o,i,s,u,l,p,c,f,h,d,v,g,y=new xi({empty:!0}),m=new DataView(e,0),b=[],S=ye.getTag(m,0);if(S===String.fromCharCode(0,1,0,0)||"true"===S||"typ1"===S)y.outlinesFormat="truetype",a=ye.getUShort(m,4),b=Qi(m,a);else if("OTTO"===S)y.outlinesFormat="cff",a=ye.getUShort(m,4),b=Qi(m,a);else{if("wOFF"!==S){if("wOF2"===S){var x="https://github.com/opentypejs/opentype.js/issues/183#issuecomment-1147228025";throw new Error("WOFF2 require an external decompressor library, see examples at: "+x)}throw new Error("Unsupported OpenType signature "+S)}var T=ye.getTag(m,4);if(T===String.fromCharCode(0,1,0,0))y.outlinesFormat="truetype";else{if("OTTO"!==T)throw new Error("Unsupported OpenType flavor "+S);y.outlinesFormat="cff"}a=ye.getUShort(m,12),b=Ki(m,a)}for(var w=0;w<a;w+=1){var U=b[w],k=void 0;switch(U.tag){case"cmap":k=Ji(m,U),y.tables.cmap=Ue.parse(k.data,k.offset),y.encoding=new Ce(y.tables.cmap);break;case"cvt ":k=Ji(m,U),g=new ye.Parser(k.data,k.offset),y.tables.cvt=g.parseShortList(U.length/2);break;case"fvar":i=U;break;case"fpgm":k=Ji(m,U),g=new ye.Parser(k.data,k.offset),y.tables.fpgm=g.parseByteList(U.length);break;case"head":k=Ji(m,U),y.tables.head=Ct.parse(k.data,k.offset),y.unitsPerEm=y.tables.head.unitsPerEm,r=y.tables.head.indexToLocFormat;break;case"hhea":k=Ji(m,U),y.tables.hhea=At.parse(k.data,k.offset),y.ascender=y.tables.hhea.ascender,y.descender=y.tables.hhea.descender,y.numberOfHMetrics=y.tables.hhea.numberOfHMetrics;break;case"hmtx":c=U;break;case"ltag":k=Ji(m,U),n=_t.parse(k.data,k.offset);break;case"COLR":k=Ji(m,U),y.tables.colr=Rr.parse(k.data,k.offset);break;case"CPAL":k=Ji(m,U),y.tables.cpal=Dr.parse(k.data,k.offset);break;case"maxp":k=Ji(m,U),y.tables.maxp=jt.parse(k.data,k.offset),y.numGlyphs=y.tables.maxp.numGlyphs;break;case"name":d=U;break;case"OS/2":k=Ji(m,U),y.tables.os2=hr.parse(k.data,k.offset);break;case"post":k=Ji(m,U),y.tables.post=gr.parse(k.data,k.offset),y.glyphNames=new Ie(y.tables.post);break;case"prep":k=Ji(m,U),g=new ye.Parser(k.data,k.offset),y.tables.prep=g.parseByteList(U.length);break;case"glyf":s=U;break;case"loca":h=U;break;case"CFF ":o=U;break;case"kern":f=U;break;case"GDEF":u=U;break;case"GPOS":l=U;break;case"GSUB":p=U;break;case"meta":v=U;break}}var O=Ji(m,d);if(y.tables.name=ur.parse(O.data,O.offset,n),y.names=y.tables.name,s&&h){var E=0===r,R=Ji(m,h),L=Xi.parse(R.data,R.offset,y.numGlyphs,E),C=Ji(m,s);y.glyphs=fn.parse(C.data,C.offset,L,y,t)}else{if(!o)throw new Error("Font doesn't contain TrueType or CFF outlines.");var D=Ji(m,o);Et.parse(D.data,D.offset,y,t)}var I=Ji(m,c);if(Gt.parse(y,I.data,I.offset,y.numberOfHMetrics,y.numGlyphs,y.glyphs,t),Be(y,t),f){var A=Ji(m,f);y.kerningPairs=Yi.parse(A.data,A.offset)}else y.kerningPairs={};if(u){var P=Ji(m,u);y.tables.gdef=Mi.parse(P.data,P.offset)}if(l){var B=Ji(m,l);y.tables.gpos=_i.parse(B.data,B.offset),y.position.init()}if(p){var M=Ji(m,p);y.tables.gsub=Tr.parse(M.data,M.offset),y.tables.gsub.features.forEach((function(e){if(e.tag.match(/ss(?:0[1-9]|1\d|20)/)){var t=e.feature.featureParamsTable,r=t.uiNameId;e.feature.uiName=y.tables.name[r]}else if(e.tag.match(/cv(?:0[1-9]|[1-9]\d)/)){var n=e.feature.featureParamsTable,a=n.featUiLabelNameId;e.feature.featUiLabelName=y.tables.name[a]}}))}if(i){var F=Ji(m,i);y.tables.fvar=Li.parse(F.data,F.offset,y.names)}if(v){var G=Ji(m,v);y.tables.meta=kr.parse(G.data,G.offset),y.metas=y.tables.meta}return y}function es(e,t,r){r=void 0===r||null===r?{}:r;var n="undefined"===typeof window,a=n&&!r.isUrl?Vi:Zi;return new Promise((function(n,o){a(e,(function(e,a){if(e){if(t)return t(e);o(e)}var i;try{i=$i(a,r)}catch(s){if(t)return t(s,null);o(s)}if(t)return t(null,i);n(i)}))}))}function ts(e,t){var n=r(0),a=n.readFileSync(e);return $i(Zr(a),t)}var rs=Object.freeze({__proto__:null,Font:xi,Glyph:Ne,Path:C,BoundingBox:L,_parse:ye,parse:$i,load:es,loadSync:ts});t["default"]=rs}.call(this,r("b639").Buffer)},aed9:function(e,t,r){var n=r("83ab"),a=r("d039");e.exports=n&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}},b622:function(e,t,r){var n=r("da84"),a=r("5692"),o=r("1a2d"),i=r("90e3"),s=r("04f8"),u=r("fdbf"),l=n.Symbol,p=a("wks"),c=u?l["for"]||l:l&&l.withoutSetter||i;e.exports=function(e){return o(p,e)||(p[e]=s&&o(l,e)?l[e]:c("Symbol."+e)),p[e]}},b639:function(e,t,r){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var n=r("1fb5"),a=r("9152"),o=r("e3db");function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=l.prototype):(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return p(this,e,t,r)}function p(e,t,r,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,r,n):"string"===typeof t?d(e,t,r):y(e,t)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t,r,n){return c(t),t<=0?u(e,t):void 0!==r?"string"===typeof n?u(e,t).fill(r,n):u(e,t).fill(r):u(e,t)}function h(e,t){if(c(t),e=u(e,t<0?0:0|m(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|S(t,r);e=u(e,n);var a=e.write(t,r);return a!==n&&(e=e.slice(0,a)),e}function v(e,t){var r=t.length<0?0:0|m(t.length);e=u(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function g(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),l.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=l.prototype):e=v(e,t),e}function y(e,t){if(l.isBuffer(t)){var r=0|m(t.length);return e=u(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):v(e,t);if("Buffer"===t.type&&o(t.data))return v(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),l.alloc(+e)}function S(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return Q(e).length;t=(""+t).toLowerCase(),n=!0}}function x(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return B(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return D(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function T(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,t,r,n,a){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"===typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:U(e,t,r,n,a);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):U(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function U(e,t,r,n,a){var o,i=1,s=e.length,u=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,u/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var p=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===p?0:o-p)){if(-1===p&&(p=o),o-p+1===u)return p*i}else-1!==p&&(o-=o-p),p=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var c=!0,f=0;f<u;f++)if(l(e,o+f)!==l(t,f)){c=!1;break}if(c)return o}return-1}function k(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n),n>a&&(n=a)):n=a;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var i=0;i<n;++i){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))return i;e[r+i]=s}return i}function O(e,t,r,n){return ee(Q(t,e.length-r),e,r,n)}function E(e,t,r,n){return ee(K(t),e,r,n)}function R(e,t,r,n){return E(e,t,r,n)}function L(e,t,r,n){return ee($(t),e,r,n)}function C(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}function D(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);var n=[],a=t;while(a<r){var o,i,s,u,l=e[a],p=null,c=l>239?4:l>223?3:l>191?2:1;if(a+c<=r)switch(c){case 1:l<128&&(p=l);break;case 2:o=e[a+1],128===(192&o)&&(u=(31&l)<<6|63&o,u>127&&(p=u));break;case 3:o=e[a+1],i=e[a+2],128===(192&o)&&128===(192&i)&&(u=(15&l)<<12|(63&o)<<6|63&i,u>2047&&(u<55296||u>57343)&&(p=u));break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128===(192&o)&&128===(192&i)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&i)<<6|63&s,u>65535&&u<1114112&&(p=u))}null===p?(p=65533,c=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),a+=c}return P(n)}t.Buffer=l,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return p(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return f(null,e,t,r)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a<o;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},l.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}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(!l.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},l.byteLength=S,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)T(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):x.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,a){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,i=r-t,s=Math.min(o,i),u=this.slice(n,a),p=e.slice(t,r),c=0;c<s;++c)if(u[c]!==p[c]){o=u[c],i=p[c];break}return o<i?-1:i<o?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return w(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return w(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return O(this,e,t,r);case"ascii":return E(this,e,t,r);case"latin1":case"binary":return R(this,e,t,r);case"base64":return L(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function P(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var r="",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=A));return r}function B(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function F(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",o=t;o<r;++o)a+=Z(e[o]);return a}function G(e,t,r){for(var n=e.slice(t,r),a="",o=0;o<n.length;o+=2)a+=String.fromCharCode(n[o]+256*n[o+1]);return a}function N(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function H(e,t,r,n,a,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function _(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-r,2);a<o;++a)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function z(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-r,4);a<o;++a)e[r+a]=t>>>8*(n?a:3-a)&255}function W(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,o){return o||W(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function Y(e,t,r,n,o){return o||W(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=l.prototype;else{var a=t-e;r=new l(a,void 0);for(var o=0;o<a;++o)r[o]=this[o+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=this[e],a=1,o=0;while(++o<t&&(a*=256))n+=this[e+o]*a;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=this[e+--t],a=1;while(t>0&&(a*=256))n+=this[e+--t]*a;return n},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=this[e],a=1,o=0;while(++o<t&&(a*=256))n+=this[e+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=t,a=1,o=this[e+--n];while(n>0&&(a*=256))o+=this[e+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),a.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),a.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),a.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),a.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var a=Math.pow(2,8*r)-1;H(this,e,t,r,a,0)}var o=1,i=0;this[t]=255&e;while(++i<r&&(o*=256))this[t+i]=e/o&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var a=Math.pow(2,8*r)-1;H(this,e,t,r,a,0)}var o=r-1,i=1;this[t+o]=255&e;while(--o>=0&&(i*=256))this[t+o]=e/i&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);H(this,e,t,r,a-1,-a)}var o=0,i=1,s=0;this[t]=255&e;while(++o<r&&(i*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);H(this,e,t,r,a-1,-a)}var o=r-1,i=1,s=0;this[t+o]=255&e;while(--o>=0&&(i*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||H(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return Y(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return Y(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a,o=n-r;if(this===e&&r<t&&t<n)for(a=o-1;a>=0;--a)e[a+t]=this[a+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},l.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o<r;++o)this[o]=e;else{var i=l.isBuffer(e)?e:Q(new l(e,n).toString()),s=i.length;for(o=0;o<r-t;++o)this[o+t]=i[o%s]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function X(e){if(e=V(e).replace(q,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Z(e){return e<16?"0"+e.toString(16):e.toString(16)}function Q(e,t){var r;t=t||1/0;for(var n=e.length,a=null,o=[],i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function J(e,t){for(var r,n,a,o=[],i=0;i<e.length;++i){if((t-=2)<0)break;r=e.charCodeAt(i),n=r>>8,a=r%256,o.push(a),o.push(n)}return o}function $(e){return n.toByteArray(X(e))}function ee(e,t,r,n){for(var a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r("c8ba"))},c04e:function(e,t,r){var n=r("c65b"),a=r("861d"),o=r("d9b5"),i=r("dc4a"),s=r("485a"),u=r("b622"),l=TypeError,p=u("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var r,u=i(e,p);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!a(r)||o(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c3bd:function(e,t,r){r("c73d"),self.window={};var n=r("a788");self.onmessage=function(e){var t=e.data,r=t.url,a=t.fileName;n.load(r,(function(e,t){e?self.postMessage({url:r,fileName:a,error:e.message||e}):self.postMessage({url:r,fileName:a,font:t})}))}},c430:function(e,t){e.exports=!1},c65b:function(e,t,r){var n=r("40d5"),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},c6b6:function(e,t,r){var n=r("e330"),a=n({}.toString),o=n("".slice);e.exports=function(e){return o(a(e),8,-1)}},c6cd:function(e,t,r){var n=r("da84"),a=r("6374"),o="__core-js_shared__",i=n[o]||a(o,{});e.exports=i},c73d:function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),o=r("edd0"),i=r("83ab"),s=TypeError,u=Object.defineProperty,l=a.self!==a;try{if(i){var p=Object.getOwnPropertyDescriptor(a,"self");!l&&p&&p.get&&p.enumerable||o(a,"self",{get:function(){return a},set:function(e){if(this!==a)throw s("Illegal invocation");u(a,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:l},{self:a})}catch(c){}},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},ca84:function(e,t,r){var n=r("e330"),a=r("1a2d"),o=r("fc6a"),i=r("4d64").indexOf,s=r("d012"),u=n([].push);e.exports=function(e,t){var r,n=o(e),l=0,p=[];for(r in n)!a(s,r)&&a(n,r)&&u(p,r);while(t.length>l)a(n,r=t[l++])&&(~i(p,r)||u(p,r));return p}},cb2d:function(e,t,r){var n=r("1626"),a=r("9bf2"),o=r("13d2"),i=r("6374");e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(n(r)&&o(r,l,s),s.global)u?e[t]=r:i(t,r);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(p){}u?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cc12:function(e,t,r){var n=r("da84"),a=r("861d"),o=n.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},cdce:function(e,t,r){var n=r("da84"),a=r("1626"),o=n.WeakMap;e.exports=a(o)&&/native code/.test(String(o))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,r){var n=r("da84"),a=r("1626"),o=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},d1e7:function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!n.call({1:2},1);t.f=o?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},d9b5:function(e,t,r){var n=r("d066"),a=r("1626"),o=r("3a9b"),i=r("fdbf"),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&o(t.prototype,s(e))}},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||this||Function("return this")()}).call(this,r("c8ba"))},dc4a:function(e,t,r){var n=r("59ed"),a=r("7234");e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},e330:function(e,t,r){var n=r("40d5"),a=Function.prototype,o=a.call,i=n&&a.bind.bind(o,o);e.exports=n?i:function(e){return function(){return o.apply(e,arguments)}}},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},e893:function(e,t,r){var n=r("1a2d"),a=r("56ef"),o=r("06cf"),i=r("9bf2");e.exports=function(e,t,r){for(var s=a(t),u=i.f,l=o.f,p=0;p<s.length;p++){var c=s[p];n(e,c)||r&&n(r,c)||u(e,c,l(t,c))}}},edd0:function(e,t,r){var n=r("13d2"),a=r("9bf2");e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},f772:function(e,t,r){var n=r("5692"),a=r("90e3"),o=n("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},fc6a:function(e,t,r){var n=r("44ad"),a=r("1d80");e.exports=function(e){return n(a(e))}},fdbf:function(e,t,r){var n=r("04f8");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}});
//# sourceMappingURL=e106d62cc6d652433a9c.worker.js.map