!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.t?define(["exports"],t):t((r=r||self).i={})}(this,function(y){"use strict";function h(){this.o=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function i(r){this.font=r}function F(r){this.u=r}function v(r,t){this.encoding=r,this.charset=t}function E(r,c){if(c.l){var t=r;t.h={};for(var e=t.m.u.v,i=Object.keys(e),n=0;n>>1,o=r[n].tag;if(o===t)return n;o>>1,o=r[n];if(o===t)return n;o>>1,a=(n=r[o]).start;if(a===t)return n;a(n=r[e-1]).end?0:n}function m(r,t){this.font=r,this.M=t}function p(r){m.call(this,r,"gpos")}function b(r){m.call(this,r,"gsub")}function g(r,t,e){for(var i=r.C,n=0;nt.points.length-1||i.er[1]>n.points.length-1)throw Error("Matched points out of range in "+t.name);var a=t.points[i.er[0]],s=n.points[i.er[1]],i={J:i.J,$:i.$,rr:i.rr,tr:i.tr,dx:0,dy:0},s=I([s],i)[0];i.dx=a.x-s.x,i.dy=a.y-s.y,o=I(n.points,i)}t.points=t.points.concat(o)}}return T(t.points)}function N(r){this.font=r,this.sr=function(r){return Gt.ar(r).o},this.ur=this.cr=void 0,this.lr=0}function q(r){return r}function G(r){return Math.sign(r)*Math.round(Math.abs(r))}function B(r){return Math.sign(r)*Math.round(Math.abs(2*r))/2}function P(r){return Math.sign(r)*(Math.round(Math.abs(r)+.5)-.5)}function j(r){return Math.sign(r)*Math.ceil(Math.abs(r))}function W(r){return Math.sign(r)*Math.floor(Math.abs(r))}function _(r,t){this.x=r,this.y=t,this.axis=void 0,this.slope=t/r,this.hr=-r/t,Object.freeze(this)}function z(r,t){var e=Math.sqrt(r*r+t*t);return t/=e,1===(r/=e)&&0===t?Bt:0===r&&1===t?Pt:new _(r,t)}function X(r,t,e,i){this.x=this.vr=Math.round(64*r)/64,this.y=this.dr=Math.round(64*t)/64,this.Y=e,this.Z=i,this.mr=void 0,this.pr=void 0,this.br=!1,this.gr=!1,Object.preventExtensions(this)}function Z(r,t){switch(this.wr=r,this.stack=[],this.yr=t,r){case"glyf":this.kr=this.Sr=this.Fr=1,this.Er=this.Dr=this.Ar=0;case"prep":this.Mr=this.Cr=this.Or=Bt,this.round=G}}function Y(r){for(var t=r.Ir=new Array(r.Tr.length),e=0;e>4)===a&&(0<=(f=(15&f)-8)&&f++,y.Ur,u=h[u],n.Br(u,u,f*l,o))}}function lr(r,t){var e=t.stack,i=e.pop();y.Ur,e.push(64*t.round(i/64))}function hr(r,t){var e=t.stack,i=e.pop(),n=t.Yr,o=t.Qr+16*(r-1),a=t.Vr;y.Ur;for(var s=0;s>4)===n&&(0<=(f=(15&f)-8)&&f++,y.Ur,t.Xr[u]+=f*a)}}function vr(r,t){var e,i=t.stack,n=i.pop(),i=i.pop(),n=t.Rr[n],i=t.Nr[i];y.Ur,r=r?(e=n.y-i.y,i.x-n.x):(e=i.x-n.x,i.y-n.y),t.Or=z(e,r)}function dr(r,t){var e=t.stack,i=t.yr,n=t.Lr;y.Ur;for(var o=0;o=o.start&&r<=o.end)return n=r-o.start,o.index+n}break;default:return-1}return-1}function Mr(r,t){for(var e=[],i=0;i>4,o=15&o;if(15==a)break;if(i+=n[a],15==o)break;i+=n[o]}return parseFloat(i)}if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+r.T()+108;if(251<=t&&t<=254)return 256*-(t-251)-r.T()-108;throw new Error("Invalid b0 "+t)}function jr(c,r,t){var e=new U.U(c,r=void 0!==r?r:0),l=[],i=[];for(t=void 0!==t?t:c.length;e.I>1,x.length=0,S=!0}var b,g,w,y,e,M,C,i,O,k=new h,x=[],I=0,S=!1,T=!1,F=0,E=0,L=(O=p.de?(e=p.m.be.pe.me[r.index],e=p.m.be.pe.ge[e],M=e.oe,C=e.ae,i=e.se,e.ue):(M=p.m.be.pe.oe,C=p.m.be.pe.ae,i=p.m.be.pe.se,p.m.be.pe.ue),i);return function c(r){for(var t,l,h,v,d,m,e,i,n,o,a,s,u=0;uMath.abs(s-E)?F=a+x.shift():E=s+x.shift(),k.we(b,g,w,y,e,i),k.we(n,o,a,s,F,E);break;default:x.length=0}break;case 14:0>3;break;case 21:2>16),u+=2;break;case 29:d=x.pop()+p.ye,(m=p.ke[d])&&c(m);break;case 30:for(;0>>1|(21845&e)<<1;st[e]=((65280&(ut=(61680&(ut=(52428&ut)>>>2|(13107&ut)<<2))>>>4|(3855&ut)<<4))>>>8|(255&ut)<<8)>>>1}for(var ft=function(r,t,e){for(var i=r.length,n=0,o=new $r(t);n>>c]=l}else for(s=new $r(i),n=0;n>>15-r[n]);return s},ct=new Jr(288),e=0;e<144;++e)ct[e]=8;for(e=144;e<256;++e)ct[e]=9;for(e=256;e<280;++e)ct[e]=7;for(e=280;e<288;++e)ct[e]=8;for(var lt=new Jr(32),e=0;e<32;++e)lt[e]=5;function ht(r,e,t){function c(r){var t=e.length;t>>4)<16)F[a++]=s;else{var C=0,O=0;for(16==s?(O=3+pt(r,i,3),i+=2,C=F[a-1]):17==s?(O=3+pt(r,i,7),i+=3):18==s&&(O=11+pt(r,i,127),i+=7);O--;)F[a++]=C}}var I=F.subarray(0,y),u=F.subarray(y),p=mt(I),b=mt(u),o=ft(I,p,1),m=ft(u,b,1)}else kt(1);if(g>>4;if(g<(i+=15&C)){v&&kt(0);break}if(C||kt(2),f<256)e[n++]=f;else{if(256==f){U=i,o=null;break}var R,N=f-254,f=(264>>4,u=(f||kt(3),i+=15&f,at[q]);if(3t&&(t=r[e]);return t},pt=function(r,t,e){var i=t/8|0;return(r[i]|r[1+i]<<8)>>(7&t)&e},bt=function(r,t){var e=t/8|0;return(r[e]|r[1+e]<<8|r[2+e]<<16)>>(7&t)},gt=function(r){return(r+7)/8|0},wt=function(r,t,e){(null==e||e>r.length)&&(e=r.length);var i=new(2==r.BYTES_PER_ELEMENT?$r:4==r.BYTES_PER_ELEMENT?rt:Jr)(e-(t=null==t||t<0?0:t));return i.set(r.subarray(t,e)),i},yt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],kt=function(r,t,e){t=new Error(t||yt[r]);if(t.code=r,Error.captureStackTrace&&Error.captureStackTrace(t,kt),!e)throw t;return t},nt=new Jr(0),xt="undefined"!=typeof TextDecoder&&new TextDecoder;try{xt.decode(nt,{stream:!0})}catch(r){}h.prototype.moveTo=function(r,t){this.o.push({type:"M",x:r,y:t})},h.prototype.lineTo=function(r,t){this.o.push({type:"L",x:r,y:t})},h.prototype.we=h.prototype.bezierCurveTo=function(r,t,e,i,n,o){this.o.push({type:"C",x1:r,y1:t,x2:e,y2:i,x:n,y:o})},h.prototype.He=h.prototype.quadraticCurveTo=function(r,t,e,i){this.o.push({type:"Q",x1:r,y1:t,x:e,y:i})},h.prototype.close=h.prototype.closePath=function(){this.o.push({type:"Z"})},h.prototype.extend=function(r){r.o&&(r=r.o),Array.prototype.push.apply(this.o,r)},h.prototype.Ke=function(n){function r(){for(var r=arguments,t="",e=0;e=a[t-1].tag,"Features must be added in alphabetical order."),a.push(n={tag:e,qi:{Gi:0,Bi:[]}}),o.push(t),n.qi}},Pi:function(r,t,e,i,n){var r=this.Ni(r,t,e,n),o=[];if(r){for(var a,s=r.Bi,u=this.font.m[this.M].ji,f=0;f>1,o.Pn("uShort",3),u.v={};for(var f,k=new U.U(g,w+y+14),x=new U.U(g,w+y+16+2*f),S=new U.U(g,w+y+16+4*f),F=new U.U(g,w+y+16+6*f),E=w+y+16+8*f,D=0;D