/*
    *
    * Wijmo Library 5.20182.500
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the GrapeCity Commercial License.
    * sales@wijmo.com
    * wijmo.com/products/wijmo-5/license/
    *
    */
"use strict";function saveBlob(t,e){if(t&&t instanceof Blob&&e)if(navigator.msSaveBlob)navigator.msSaveBlob(t,e);else{var r=document.createElement("a"),n=function(t){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(e)};if("download"in r){var i=window.URL||window.webkitURL||window,o=i.createObjectURL(t);r.href=o,r.target="_blank",r.download=e,n(r),r=null,window.setTimeout(()=>{i.revokeObjectURL(o)},3e4)}else{var s=new FileReader;s.onloadend=(t=>{r.download=e,r.href=s.result,n(r),r=null}),s.readAsDataURL(t)}}}function ptToPx(t){return wjcCore.asNumber(t)/.75}function pxToPt(t){return.75*wjcCore.asNumber(t)}function _asColor(t,e=!0){var r;return r=t?t instanceof wjcCore.Color?e?wjcCore.Color.fromRgba(t.r,t.g,t.b,t.a):t:wjcCore.Color.fromString(t):wjcCore.Color.fromRgba(0,0,0),wjcCore.assert(r instanceof wjcCore.Color,exports._Errors.InvalidArg("colorOrString")),r}function _asPdfPen(t,e=!0){return(wjcCore.isString(t)||t instanceof wjcCore.Color)&&(t=new PdfPen(t)),wjcCore.assert(null==t&&e||t instanceof PdfPen,exports._Errors.InvalidArg("penOrColor")),t}function _asPdfBrush(t,e=!0){return(wjcCore.isString(t)||t instanceof wjcCore.Color)&&(t=new PdfSolidBrush(t)),wjcCore.assert(null==t&&e||t instanceof PdfBrush,exports._Errors.InvalidArg("brushOrColor")),t}function _asPdfFont(t,e=!0){return wjcCore.assert(null==t&&e||t instanceof PdfFont,exports._Errors.InvalidArg("font")),t}function _asPt(t,e=!0,r=0){var n=!t&&0!==t;if(wjcCore.assert(!n||e,exports._Errors.ValueCannotBeEmpty("value")),n)return r;if(wjcCore.isNumber(t)){if(t===t)return t}else if(wjcCore.isString(t)){if(_FontSizePt[t])return _FontSizePt[t];var i=parseFloat(t);if(i===i){if(t.match(/(px)$/i))return pxToPt(i);if(t==i||t.match(/(pt)$/i))return i}}wjcCore.assert(!1,exports._Errors.InvalidFormat(t))}function _formatMacros(t,e){var r={},n=0;return t=t.replace(/&&/g,(t,e,i)=>(r[e-2*n+n]=!0,n++,"&")),t=t.replace(/&\[(\S+?)\]/g,(t,n,i,o)=>{var s=e[n];return s&&!r[i]?s:t})}function _compare(t,e){if(wjcCore.isObject(t)&&wjcCore.isObject(e)){for(var r in t)if(!r||"_"!==r[0]){var n=t[r];if(!(n&&wjcCore.isFunction(n.equals)?n.equals(e[r]):_compare(n,e[r])))return!1}return!0}if(wjcCore.isArray(t)&&wjcCore.isArray(e)){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!_compare(t[i],e[i]))return!1;return!0}return t===e}function _shallowCopy(t){var e={};if(t)for(var r in t)e[r]=t[r];return e}function _toTitleCase(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t}function _compressSpaces(t){return t&&(t=t.trim().replace(/\s+/gm," ")),t}function _resolveUrlIfRelative(t,e){return t&&e&&!/(^[a-z][a-z0-9]*:)?\/\//i.test(t)&&(t=e(t)),t}Object.defineProperty(exports,"__esModule",{value:!0});const wjcCore=require("wijmo/wijmo"),wjcSelfRef=require("wijmo/wijmo.pdf");var wjcSelf=wjcSelfRef||exports;window.wijmo=window.wijmo||{},window.wijmo.pdf=wjcSelf,function(t){if("object"==typeof localExports)localModule.localExports=t();else if("function"==typeof localDefine&&localDefine.amd)localDefine(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.PDFDocument=t()}}(function(){return function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var l="function"==typeof localRequire&&localRequire;if(!a&&l)return l(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=r[s]={localExports:{}};e[s][0].call(u.localExports,function(t){var r=e[s][1][t];return i(r||t)},u,u.localExports,t,e,r,n)}return r[s].localExports}for(var o="function"==typeof localRequire&&localRequire,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){var n;n=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.byteAt=function(t){return this.data[t]},t.prototype.readBool=function(){return!!this.readByte()},t.prototype.writeBool=function(t){return this.writeByte(t?1:0)},t.prototype.readUInt32=function(){var t,e,r,n;return t=16777216*this.readByte(),e=this.readByte()<<16,r=this.readByte()<<8,n=this.readByte(),t+e+r+n},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){var t,e;return t=this.readByte()<<8,e=this.readByte(),t|e},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r,n;for(r=[],e=n=0;0<=t?n<t:n>t;e=0<=t?++n:--n)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n,i;for(i=[],e=r=0,n=t.length;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.stringAt=function(t,e){return this.pos=t,this.readString(e)},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,o,s,a;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^o)+256*(255^s)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*o+256*s+a},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.slice=function(t,e){return this.data.slice(t,e)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t}(),e.localExports=n},{}],2:[function(t,e,r){(function(r){var n,i,o,s,a,l,u={}.hasOwnProperty,h=function(t,e){function r(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};l=t("stream"),a=t("fs"),i=t("./object"),s=t("./reference"),o=t("./page"),n=function(e){function n(t){var e,r,i,o;if(this.options=null!=t?t:{},n.__super__.constructor.apply(this,arguments),this.version=1.3,this.compress=null==(i=this.options.compress)||i,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0,this._root=this.ref({Type:"Catalog",Pages:this.ref({Type:"Pages",Count:0,Kids:[]})}),this.page=null,this.initColor(),this.initVector(),this.initFonts(),this.initText(),this.initImages(),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info){o=this.options.info;for(e in o)r=o[e],this.info[e]=r}this._write("%PDF-"+this.version),this._write("%ÿÿÿÿ"),this.options.pageAdding&&this.on("pageAdding",this.options.pageAdding),this.options.pageAdded&&this.on("pageAdded",this.options.pageAdded),!1!==this.options.autoFirstPage&&this.addPage()}var l;return h(n,e),(l=function(t){var e,r,i;i=[];for(r in t)e=t[r],i.push(n.prototype[r]=e);return i})(t("./mixins/color")),l(t("./mixins/vector")),l(t("./mixins/fonts")),l(t("./mixins/text")),l(t("./mixins/images")),l(t("./mixins/annotations")),n.prototype.addPage=function(t){var e;return null==t&&(t=this.options),this.emit("pageAdding",this,t),this.options.bufferPages||this.flushPages(),this.page=new o(this,t),this._pageBuffer.push(this.page),(e=this._root.data.Pages.data).Kids.push(this.page.dictionary),e.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded",this),this},n.prototype.bufferedPageRange=function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}},n.prototype.switchToPage=function(t){var e;if(!(e=this._pageBuffer[t-this._pageBufferStart]))throw new Error("switchToPage("+t+") out of bounds, current buffer covers pages "+this._pageBufferStart+" to "+(this._pageBufferStart+this._pageBuffer.length-1));return this.page=e},n.prototype.flushPages=function(){var t,e,r;for(t=this._pageBuffer,this._pageBuffer=[],this._pageBufferStart+=t.length,e=0,r=t.length;e<r;e++)t[e].end()},n.prototype.ref=function(t){var e;return e=new s(this,this._offsets.length+1,t),this._offsets.push(null),this._waiting++,e},n.prototype._read=function(){},n.prototype._write=function(t){return r.isBuffer(t)||(t=new r(t+"\n","binary")),this.push(t),this._offset+=t.length},n.prototype.addContent=function(t){return this.page.write(t),this},n.prototype._refEnd=function(t){if(this._offsets[t.id-1]=t.offset,0==--this._waiting&&this._ended)return this._finalize(),this._ended=!1},n.prototype.write=function(t,e){var r;return r=new Error("PDFDocument#write is deprecated, and will be removed in a future version of PDFKit. Please pipe the document into a Node stream."),console.warn(r.stack),this.pipe(a.createWriteStream(t)),this.end(),this.once("end",e)},n.prototype.output=function(t){throw new Error("PDFDocument#output is deprecated, and has been removed from PDFKit. Please pipe the document into a Node stream.")},n.prototype.end=function(){var t,e,r,n,i;this.emit("ending"),this.flushPages(),this._info=this.ref(),n=this.info;for(t in n)"string"==typeof(r=n[t])&&(r=new String(r)),this._info.data[t]=r;this._info.end(),i=this._fontFamilies;for(e in i)i[e].finalize();return this._root.end(),this._root.data.Pages.end(),0===this._waiting?this._finalize():this._ended=!0},n.prototype._finalize=function(t){var e,r,n,o,s;for(r=this._offset,this._write("xref"),this._write("0 "+(this._offsets.length+1)),this._write("0000000000 65535 f "),n=0,o=(s=this._offsets).length;n<o;n++)e=("0000000000"+(e=s[n])).slice(-10),this._write(e+" 00000 n ");return this._write("trailer"),this._write(i.convert({Size:this._offsets.length+1,Root:this._root,Info:this._info})),this._write("startxref"),this._write(""+r),this._write("%%EOF"),this.push(null)},n.prototype.toString=function(){return"[object PDFDocument]"},n}(l.Readable),e.localExports=n}).call(this,t("buffer").Buffer)},{"./mixins/annotations":12,"./mixins/color":13,"./mixins/fonts":14,"./mixins/images":15,"./mixins/text":16,"./mixins/vector":17,"./object":18,"./page":19,"./reference":21,buffer:28,fs:26,stream:204}],3:[function(t,e,r){(function(r){var n,i,o,s;s=t("fontkit"),i=function(){function t(){throw new Error("Cannot construct a PDFFont directly.")}return t.open=function(t,e,i,a){var l;if("string"==typeof e){if(o.isStandardFont(e))return new o(t,e,a);l=s.openSync(e,i)}else r.isBuffer(e)?l=s.create(e,i):e instanceof Uint8Array?l=s.create(new r(e),i):e instanceof ArrayBuffer&&(l=s.create(new r(new Uint8Array(e)),i));if(null==l)throw new Error("Not a supported font format or standard PDF font.");return new n(t,l,a)},t.prototype.encode=function(t){throw new Error("Must be implemented by subclasses")},t.prototype.widthOfString=function(t){throw new Error("Must be implemented by subclasses")},t.prototype.ref=function(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()},t.prototype.finalize=function(){if(!this.embedded&&null!=this.dictionary)return this.embed(),this.embedded=!0},t.prototype.embed=function(){throw new Error("Must be implemented by subclasses")},t.prototype.getAscender=function(t){return this.ascender/1e3*t},t.prototype.getBBox=function(t){return{llx:this.bbox[0]/1e3*t,lly:this.bbox[1]/1e3*t,urx:this.bbox[2]/1e3*t,ury:this.bbox[3]/1e3*t}},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.descender)/1e3*t},t}(),e.localExports=i,o=t("./font/standard"),n=t("./font/embedded")}).call(this,t("buffer").Buffer)},{"./font/embedded":5,"./font/standard":6,buffer:28,fontkit:30}],4:[function(t,e,r){var n;n=function(){function t(t){this.contents=t,this.bbox=this._parseFontBBox(t[1]),this.ascender=t[4],this.descender=t[5],this.glyphWidths=this._parseGlyphWidths(t[6]),this.charWidths=this._getCharWidths(),this.kernPairs=this._parseKerningPairs(t[7]),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}var e,r,n;return t.prototype.encodeText=function(t){var e,r,i,o,s;for(i=[],r=o=0,s=t.length;0<=s?o<s:o>s;r=0<=s?++o:--o)e=t.charCodeAt(r),e=n[e]||e,i.push(e.toString(16));return i},t.prototype.glyphsForString=function(t){var e,r,n,i,o;for(n=[],r=i=0,o=t.length;0<=o?i<o:i>o;r=0<=o?++i:--i)e=t.charCodeAt(r),n.push(this.characterToGlyph(e));return n},t.prototype.characterToGlyph=function(t){return e[n[t]||t]||".notdef"},t.prototype.widthOfGlyph=function(t){return this.glyphWidths[t]||0},t.prototype.getKernPair=function(t,e){return this.kernPairs[t+"\0"+e]||0},t.prototype.advancesForGlyphs=function(t){var e,r,n,i,o,s;for(e=[],r=o=0,s=t.length;o<s;r=++o)n=t[r],i=t[r+1],e.push(this.widthOfGlyph(n)+this.getKernPair(n,i));return e},t.prototype._parseFontBBox=function(t){var e,r,n,i,o;for(r=[],e=i=0,o=(n=t.split(":")).length;0<=o?i<o:i>o;e=0<=o?++i:--i)r.push(parseInt(n[e]));return r},t.prototype._getCharWidths=function(){var t,r,n;for(r=[],t=n=0;n<=255;t=++n)r.push(this.glyphWidths[e[t]]);return r},t.prototype._parseGlyphWidths=function(t){var e,n,i,o,s,a,l,u,h,c,f,d;if(h=t.split(","),a={},u=0,1===h.length)for(o=h[0].match(/(^\d+)-(\d+):(\d+)$/),l=parseInt(o[1]),n=parseInt(o[2]),u=parseInt(o[3]),i=c=l;l<=n?c<=n:c>=n;i=l<=n?++c:--c)a[r[i]]=u;else for(e=0,i=f=0,d=h.length;0<=d?f<d:f>d;i=0<=d?++f:--f)1===(s=h[i].split(":")).length?u=parseInt(s[0]):(e=parseInt(s[0]),u=parseInt(s[1])),a[r[e++]]=u;return a},t.prototype._parseKerningPairs=function(t){return{}},n={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},r="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:Idieresis:eacute:abreve:uhungarumlaut:ecaron:Ydieresis:divide:Yacute:Acircumflex:aacute:Ucircumflex:yacute:scommaaccent:ecircumflex:Uring:Udieresis:aogonek:Uacute:uogonek:Edieresis:Dcroat:commaaccent:copyright:Emacron:ccaron:aring:Ncommaaccent:lacute:agrave:Tcommaaccent:Cacute:atilde:Edotaccent:scaron:scedilla:iacute:lozenge:Rcaron:Gcommaaccent:ucircumflex:acircumflex:Amacron:rcaron:ccedilla:Zdotaccent:Thorn:Omacron:Racute:Sacute:dcaron:Umacron:uring:threesuperior:Ograve:Agrave:Abreve:multiply:uacute:Tcaron:partialdiff:ydieresis:Nacute:icircumflex:Ecircumflex:adieresis:edieresis:cacute:nacute:umacron:Ncaron:Iacute:plusminus:brokenbar:registered:Gbreve:Idotaccent:summation:Egrave:racute:omacron:Zacute:Zcaron:greaterequal:Eth:Ccedilla:lcommaaccent:tcaron:eogonek:Uogonek:Aacute:Adieresis:egrave:zacute:iogonek:Oacute:oacute:amacron:sacute:idieresis:Ocircumflex:Ugrave:Delta:thorn:twosuperior:Odieresis:mu:igrave:ohungarumlaut:Eogonek:dcroat:threequarters:Scedilla:lcaron:Kcommaaccent:Lacute:trademark:edotaccent:Igrave:Imacron:Lcaron:onehalf:lessequal:ocircumflex:ntilde:Uhungarumlaut:Eacute:emacron:gbreve:onequarter:Scaron:Scommaaccent:Ohungarumlaut:degree:ograve:Ccaron:ugrave:radical:Dcaron:rcommaaccent:Ntilde:otilde:Rcommaaccent:Lcommaaccent:Atilde:Aogonek:Aring:Otilde:zdotaccent:Ecaron:Iogonek:kcommaaccent:minus:Icircumflex:ncaron:tcommaaccent:logicalnot:odieresis:udieresis:notequal:gcommaaccent:eth:zcaron:ncommaaccent:onesuperior:imacron:Euro:universal:existential:suchthat:asteriskmath:congruent:Alpha:Beta:Chi:Epsilon:Phi:Gamma:Eta:Iota:theta1:Kappa:Lambda:Mu:Nu:Omicron:Pi:Theta:Rho:Sigma:Tau:Upsilon:sigma1:Omega:Xi:Psi:Zeta:therefore:perpendicular:radicalex:alpha:beta:chi:delta:epsilon:phi:gamma:eta:iota:phi1:kappa:lambda:nu:omicron:pi:theta:rho:sigma:tau:upsilon:omega1:omega:xi:psi:zeta:similar:Upsilon1:minute:infinity:club:diamond:heart:spade:arrowboth:arrowleft:arrowup:arrowright:arrowdown:second:proportional:equivalence:approxequal:arrowvertex:arrowhorizex:carriagereturn:aleph:Ifraktur:Rfraktur:weierstrass:circlemultiply:circleplus:emptyset:intersection:union:propersuperset:reflexsuperset:notsubset:propersubset:reflexsubset:element:notelement:angle:gradient:registerserif:copyrightserif:trademarkserif:product:dotmath:logicaland:logicalor:arrowdblboth:arrowdblleft:arrowdblup:arrowdblright:arrowdbldown:angleleft:registersans:copyrightsans:trademarksans:parenlefttp:parenleftex:parenleftbt:bracketlefttp:bracketleftex:bracketleftbt:bracelefttp:braceleftmid:braceleftbt:braceex:angleright:integral:integraltp:integralex:integralbt:parenrighttp:parenrightex:parenrightbt:bracketrighttp:bracketrightex:bracketrightbt:bracerighttp:bracerightmid:bracerightbt:apple:a1:a2:a202:a3:a4:a5:a119:a118:a117:a11:a12:a13:a14:a15:a16:a105:a17:a18:a19:a20:a21:a22:a23:a24:a25:a26:a27:a28:a6:a7:a8:a9:a10:a29:a30:a31:a32:a33:a34:a35:a36:a37:a38:a39:a40:a41:a42:a43:a44:a45:a46:a47:a48:a49:a50:a51:a52:a53:a54:a55:a56:a57:a58:a59:a60:a61:a62:a63:a64:a65:a66:a67:a68:a69:a70:a71:a72:a73:a74:a203:a75:a204:a76:a77:a78:a79:a81:a82:a83:a84:a97:a98:a99:a100:a89:a90:a93:a94:a91:a92:a205:a85:a206:a86:a87:a88:a95:a96:a101:a102:a103:a104:a106:a107:a108:a112:a111:a110:a109:a120:a121:a122:a123:a124:a125:a126:a127:a128:a129:a130:a131:a132:a133:a134:a135:a136:a137:a138:a139:a140:a141:a142:a143:a144:a145:a146:a147:a148:a149:a150:a151:a152:a153:a154:a155:a156:a157:a158:a159:a160:a161:a163:a164:a196:a165:a192:a166:a167:a168:a169:a170:a171:a172:a173:a162:a174:a175:a176:a177:a178:a179:a193:a180:a199:a181:a200:a182:a201:a183:a184:a197:a185:a194:a198:a186:a195:a187:a188:a189:a190:a191".split(":"),e=".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef 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 .notdef Euro .notdef quotesinglbase florin quotedblbase ellipsis dagger daggerdbl circumflex perthousand Scaron guilsinglleft OE .notdef Zcaron .notdef .notdef quoteleft quoteright quotedblleft quotedblright bullet endash emdash tilde trademark scaron guilsinglright oe .notdef zcaron ydieresis space exclamdown cent sterling currency yen brokenbar section dieresis copyright ordfeminine guillemotleft logicalnot hyphen registered macron degree plusminus twosuperior threesuperior acute mu paragraph periodcentered cedilla onesuperior ordmasculine guillemotright onequarter onehalf threequarters questiondown Agrave Aacute Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute acircumflex atilde adieresis aring ae ccedilla egrave eacute ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ograve oacute ocircumflex otilde odieresis divide oslash ugrave uacute ucircumflex udieresis yacute thorn ydieresis".split(" "),t}(),e.localExports=n},{}],5:[function(t,e,r){var n,i,o={}.hasOwnProperty,s=function(t,e){function r(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},a=[].slice;i=t("../font"),t("../object"),n=function(t){function e(t,e,r){this.document=t,this.font=e,this.id=r,this.subset=this.font.createSubset(),this.unicode=[[0]],this.widths=[this.font.getGlyph(0).advanceWidth],this.name=this.font.postscriptName,this.scale=1e3/this.font.unitsPerEm,this.ascender=this.font.ascent*this.scale,this.descender=this.font.descent*this.scale,this.lineGap=this.font.lineGap*this.scale,this.bbox=this.font.bbox,this.layoutCache=Object.create(null)}var r;return s(e,i),e.prototype.layoutRun=function(t,e){var r,n,i,o,s,a,l;for(r=s=0,a=(l=(o=this.font.layout(t,e)).positions).length;s<a;r=++s){i=l[r];for(n in i)i[n]*=this.scale;i.advanceWidth=o.glyphs[r].advanceWidth*this.scale}return o},e.prototype.layoutCached=function(t){var e,r;return(e=this.layoutCache[t])?e:(r=this.layoutRun(t),this.layoutCache[t]=r,r)},e.prototype.layout=function(t,e,r){var n,i,o,s,a,l,u;if(null==r&&(r=!1),e)return this.layoutRun(t,e);for(i=r?null:[],a=r?null:[],n=0,s=0,o=0;o<=t.length;)o===t.length&&s<o||" "===(u=t.charAt(o))||"\t"===u?(l=this.layoutCached(t.slice(s,++o)),r||(i.push.apply(i,l.glyphs),a.push.apply(a,l.positions)),n+=l.advanceWidth,s=o):o++;return{glyphs:i,positions:a,advanceWidth:n}},e.prototype.encode=function(t,e){var r,n,i,o,s,a,l,u,h,c,f;for(i=(f=this.layout(t,e)).glyphs,s=f.positions,a=[],o=h=0,c=i.length;h<c;o=++h)n=i[o],r=this.subset.includeGlyph(n.id),a.push(("0000"+r.toString(16)).slice(-4)),null==(l=this.widths)[r]&&(l[r]=n.advanceWidth*this.scale),null==(u=this.unicode)[r]&&(u[r]=n.codePoints);return[a,s]},e.prototype.widthOfString=function(t,e,r){var n,i;return i=this.layout(t,r,!0).advanceWidth,n=e/1e3,i*n},e.prototype.embed=function(){var t,e,r,n,i,o,s,a,l,u,h;return a=null!=this.subset.cff,o=this.document.ref(),a&&(o.data.Subtype="CIDFontType0C"),this.subset.encodeStream().pipe(o),n=((null!=(h=this.font["OS/2"])?h.sFamilyClass:void 0)||0)>>8,i=0,this.font.post.isFixedPitch&&(i|=1),1<=n&&n<=7&&(i|=2),i|=4,10===n&&(i|=8),this.font.head.macStyle.italic&&(i|=64),u=function(){var t,e;for(e=[],s=t=0;t<6;s=++t)e.push(String.fromCharCode(26*Math.random()+65));return e}().join(""),l=u+"+"+this.font.postscriptName,t=this.font.bbox,r=this.document.ref({Type:"FontDescriptor",FontName:l,Flags:i,FontBBox:[t.minX*this.scale,t.minY*this.scale,t.maxX*this.scale,t.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0}),a?r.data.FontFile3=o:r.data.FontFile2=o,r.end(),(e=this.document.ref({Type:"Font",Subtype:a?"CIDFontType0":"CIDFontType2",BaseFont:l,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:r,W:[0,this.widths]})).end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:l,Encoding:"Identity-H",DescendantFonts:[e],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()},r=function(){var t,e;return e=1<=arguments.length?a.call(arguments,0):[],function(){var r,n,i;for(i=[],r=0,n=e.length;r<n;r++)t=e[r],i.push(("0000"+t.toString(16)).slice(-4));return i}().join("")},e.prototype.toUnicodeCmap=function(){var t,e,n,i,o,s,a,l,u,h;for(t=this.document.ref(),i=[],s=0,l=(h=this.unicode).length;s<l;s++){for(n=[],a=0,u=(e=h[s]).length;a<u;a++)(o=e[a])>65535&&(o-=65536,n.push(r(o>>>10&1023|55296)),o=56320|1023&o),n.push(r(o));i.push("<"+n.join(" ")+">")}return t.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n1 beginbfrange\n<0000> <"+r(i.length-1)+"> ["+i.join(" ")+"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"),t},e}(),e.localExports=n},{"../font":3,"../object":18}],6:[function(t,e,r){var n,i,o,s={}.hasOwnProperty,a=function(t,e){function r(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};n=t("./afm"),i=t("../font"),t("fs"),o=function(t){function e(t,e,i){var o;this.document=t,this.name=e,this.id=i,this.font=new n(r[this.name]()),o=this.font,this.ascender=o.ascender,this.descender=o.descender,this.bbox=o.bbox,this.lineGap=o.lineGap}var r;return a(e,i),e.prototype.embed=function(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()},e.prototype.encode=function(t){var e,r,n,i,o,s,a,l;for(r=this.font.encodeText(t),i=this.font.glyphsForString(""+t),e=this.font.advancesForGlyphs(i),s=[],o=a=0,l=i.length;a<l;o=++a)n=i[o],s.push({xAdvance:e[o],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(n)});return[r,s]},e.prototype.widthOfString=function(t,e){var r,n,i,o,s,a;for(n=this.font.glyphsForString(""+t),o=0,s=0,a=(r=this.font.advancesForGlyphs(n)).length;s<a;s++)o+=r[s];return i=e/1e3,o*i},e.isStandardFont=function(t){return t in r},r={Courier:function(){return[0,"-23:-250:715:805",562,426,629,-157,"0-314:600"]},"Courier-Bold":function(){return[0,"-113:-250:749:801",562,439,629,-157,"0-314:600"]},"Courier-Oblique":function(){return[-12,"-27:-250:849:805",562,426,629,-157,"0-314:600"]},"Courier-BoldOblique":function(){return[-12,"-57:-250:869:801",562,439,629,-157,"0-314:600"]},Helvetica:function(){return[0,"-166:-225:1000:931",718,523,718,-207,"278,278,355,556,556,889,667,222,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,222,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,167,556,556,556,556,191,333,556,333,333,500,500,556,556,556,278,537,350,222,333,333,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,556,778,1000,365,889,278,222,611,944,611,278,556,556,556,556,667,584,667,667,556,722,500,500,556,722,722,556,722,556,667,722,250,737,667,500,556,722,222,556,611,722,556,667,500,500,278,471,722,778,556,556,667,333,500,611,667,778,722,667,643,722,556,333,778,667,667,584,556,611,476,500,722,278,667,556,556,500,556,556,722,278,584,260,737,778,278,600,667,333,556,611,611,549,722,722,222,317,556,722,667,667,556,500,222,778,556,556,500,278,778,722,612,556,333,778,556,278,556,667,556,834,667,299,667,556,1000,556,278,278,556,834,549,556,556,722,667,556,556,834,667,667,778,400,556,722,556,453,722,333,722,556,722,556,667,667,667,778,500,667,278,500,584,278,556,278,584,556,556,549,556,556,500,556,333,278,556"]},"Helvetica-Bold":function(){return[0,"-170:-228:1003:962",718,532,718,-207,"278,333,474,556,556,889,722,278,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,278,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,167,556,556,556,556,238,500,556,333,333,611,611,556,556,556,278,556,350,278,500,500,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,611,778,1000,365,889,278,278,611,944,611,278,556,556,611,556,667,584,667,722,556,722,556,556,556,722,722,556,722,611,667,722,250,737,667,556,556,722,278,556,611,722,556,667,556,556,278,494,722,778,611,556,722,389,556,611,667,778,722,667,743,722,611,333,778,722,722,584,611,611,494,556,722,278,667,556,556,556,611,611,722,278,584,280,737,778,278,600,667,389,611,611,611,549,722,722,278,389,556,722,722,722,556,500,278,778,611,556,556,278,778,722,612,611,333,778,611,278,611,667,611,834,667,400,722,611,1000,556,278,278,611,834,549,611,611,722,667,556,611,834,667,667,778,400,611,722,611,549,722,389,722,611,722,611,722,722,722,778,500,667,278,556,584,278,611,333,584,611,611,549,611,611,500,611,333,278,556"]},"Helvetica-Oblique":function(){return[-12,"-170:-225:1116:931",718,523,718,-207,"278,278,355,556,556,889,667,222,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,222,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,167,556,556,556,556,191,333,556,333,333,500,500,556,556,556,278,537,350,222,333,333,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,556,778,1000,365,889,278,222,611,944,611,278,556,556,556,556,667,584,667,667,556,722,500,500,556,722,722,556,722,556,667,722,250,737,667,500,556,722,222,556,611,722,556,667,500,500,278,471,722,778,556,556,667,333,500,611,667,778,722,667,643,722,556,333,778,667,667,584,556,611,476,500,722,278,667,556,556,500,556,556,722,278,584,260,737,778,278,600,667,333,556,611,611,549,722,722,222,317,556,722,667,667,556,500,222,778,556,556,500,278,778,722,612,556,333,778,556,278,556,667,556,834,667,299,667,556,1000,556,278,278,556,834,549,556,556,722,667,556,556,834,667,667,778,400,556,722,556,453,722,333,722,556,722,556,667,667,667,778,500,667,278,500,584,278,556,278,584,556,556,549,556,556,500,556,333,278,556"]},"Helvetica-BoldOblique":function(){return[-12,"-174:-228:1114:962",718,532,718,-207,"278,333,474,556,556,889,722,278,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,278,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,167,556,556,556,556,238,500,556,333,333,611,611,556,556,556,278,556,350,278,500,500,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,611,778,1000,365,889,278,278,611,944,611,278,556,556,611,556,667,584,667,722,556,722,556,556,556,722,722,556,722,611,667,722,250,737,667,556,556,722,278,556,611,722,556,667,556,556,278,494,722,778,611,556,722,389,556,611,667,778,722,667,743,722,611,333,778,722,722,584,611,611,494,556,722,278,667,556,556,556,611,611,722,278,584,280,737,778,278,600,667,389,611,611,611,549,722,722,278,389,556,722,722,722,556,500,278,778,611,556,556,278,778,722,612,611,333,778,611,278,611,667,611,834,667,400,722,611,1000,556,278,278,611,834,549,611,611,722,667,556,611,834,667,667,778,400,611,722,611,549,722,389,722,611,722,611,722,722,722,778,500,667,278,556,584,278,611,333,584,611,611,549,611,611,500,611,333,278,556"]},"Times-Roman":function(){return[0,"-168:-218:1000:898",662,450,683,-217,"250,333,408,500,500,833,778,333,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,333,500,500,167,500,500,500,500,180,444,500,333,333,556,556,500,500,500,250,453,350,333,444,444,500,1000,1000,444,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,889,276,611,722,889,310,667,278,278,500,722,500,333,444,444,500,444,722,564,722,722,444,722,500,389,444,722,722,444,722,500,611,722,250,760,611,444,444,722,278,444,611,667,444,611,389,389,278,471,667,722,500,444,722,333,444,611,556,722,667,556,588,722,500,300,722,722,722,564,500,611,476,500,722,278,611,444,444,444,500,500,722,333,564,200,760,722,333,600,611,333,500,611,611,549,722,667,278,326,444,722,722,722,444,444,278,722,500,444,389,278,722,722,612,500,300,722,500,278,500,611,500,750,556,344,722,611,980,444,333,333,611,750,549,500,500,722,611,444,500,750,556,556,722,400,500,667,500,453,722,333,722,500,667,611,722,722,722,722,444,611,333,500,564,333,500,278,564,500,500,549,500,500,444,500,300,278,500"]},"Times-Bold":function(){return[0,"-168:-218:1000:935",676,461,683,-217,"250,333,555,500,500,1000,833,333,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1000,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,333,500,500,167,500,500,500,500,278,500,500,333,333,556,556,500,500,500,250,540,350,333,500,500,500,1000,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,300,667,778,1000,330,722,278,278,500,722,556,389,444,500,556,444,722,570,722,722,500,722,500,389,444,722,722,500,722,556,667,722,250,747,667,444,500,722,278,500,667,722,500,667,389,389,278,494,722,778,556,500,722,444,444,667,611,778,722,556,672,722,556,300,778,722,722,570,556,667,494,500,722,278,667,500,444,444,556,556,722,389,570,220,747,778,389,600,667,444,500,667,667,549,722,722,278,416,444,722,722,722,444,444,278,778,500,500,389,278,778,722,612,556,300,778,556,278,500,667,556,750,556,394,778,667,1000,444,389,389,667,750,549,500,556,722,667,444,500,750,556,556,778,400,500,722,556,549,722,444,722,500,722,667,722,722,722,778,444,667,389,556,570,389,556,333,570,500,556,549,500,500,444,556,300,278,500"]},"Times-Italic":function(){return[-15.5,"-169:-217:1010:883",653,441,683,-217,"250,333,420,500,500,833,778,333,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,389,500,500,167,500,500,500,500,214,556,500,333,333,500,500,500,500,500,250,523,350,333,556,556,500,889,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,889,889,276,556,722,944,310,667,278,278,500,667,500,333,444,500,500,444,556,675,556,611,500,722,444,389,444,722,722,500,722,500,611,722,250,760,611,444,500,667,278,500,556,667,500,611,389,389,278,471,611,722,500,500,611,389,444,556,611,722,611,500,544,722,500,300,722,611,611,675,500,556,476,444,667,278,611,500,444,444,500,500,667,333,675,275,760,722,333,600,611,389,500,556,556,549,722,667,278,300,444,722,611,611,444,389,278,722,500,500,389,278,722,722,612,500,300,722,500,278,500,611,500,750,500,300,667,556,980,444,333,333,611,750,549,500,500,722,611,444,500,750,500,500,722,400,500,667,500,453,722,389,667,500,611,556,611,611,611,722,389,611,333,444,675,333,500,278,675,500,500,549,500,500,389,500,300,278,500"]},"Times-BoldItalic":function(){return[-15,"-200:-218:996:921",669,462,683,-217,"250,389,555,500,500,833,778,333,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,389,500,500,167,500,500,500,500,278,500,500,333,333,556,556,500,500,500,250,500,350,333,500,500,500,1000,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,944,266,611,722,944,300,722,278,278,500,722,500,389,444,500,556,444,611,570,611,667,500,722,444,389,444,722,722,500,722,556,667,722,250,747,667,444,500,722,278,500,611,667,500,667,389,389,278,494,667,722,556,500,667,389,444,611,611,722,667,556,608,722,556,300,722,667,667,570,556,611,494,444,722,278,667,500,444,444,556,556,722,389,570,220,747,722,389,600,667,389,500,611,611,549,722,667,278,366,444,722,667,667,444,389,278,722,500,500,389,278,722,722,612,500,300,722,576,278,500,667,500,750,556,382,667,611,1000,444,389,389,611,750,549,500,556,722,667,444,500,750,556,556,722,400,500,667,556,549,722,389,722,500,667,611,667,667,667,722,389,667,389,500,606,389,556,278,606,500,556,549,500,500,389,556,300,278,500"]},Symbol:function(){return[0,"-180:-293:1090:1010",0,0,0,0,"250,333,315:713,3:500,316:549,5:833,778,317:439,8:333,333,318:500,11:549,250,300:549,14:250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,319:549,722,667,722,250:612,323:611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,59:333,345:863,61:333,346:658,63:500,347:500,631,549,549,494,439,521,411,603,329,603,549,549,254:576,360:521,549,549,521,549,603,439,576,713,686,493,686,494,91:480,200,480,373:549,314:750,374:620,247,270:549,98:167,376:713,100:500,377:753,753,753,753,1042,987,603,987,603,281:400,220:549,386:411,231:549,205:549,387:713,208:494,115:460,155:549,307:549,388:549,549,120:1000,390:603,1000,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,285:549,415:250,304:713,416:603,603,1042,987,603,987,603,185:494,423:329,790,790,786,225:713,427:384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,790"]},ZapfDingbats:function(){return[0,"-1:-143:981:820",0,0,0,0,"278,452:974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918"]}},e}(),e.localExports=o},{"../font":3,"./afm":4,fs:26}],7:[function(t,e,r){var n,i,o,s={}.hasOwnProperty,a=function(t,e){function r(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};n=function(){function t(t){this.doc=t,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0],this._colorSpace="DeviceRGB"}return t.prototype.stop=function(t,e,r){return null==r&&(r=1),r=Math.max(0,Math.min(1,r)),this.stops.push([t,this.doc._normalizeColor(e),r]),this},t.prototype.setTransform=function(t,e,r,n,i,o){return this.transform=[t,e,r,n,i,o],this},t.prototype.embed=function(t){var e,r,n,i,o,s,a,l,u,h,c,f,d,p,g,_,m,v,y,b;if(0!==this.stops.length){for(this.embedded=!0,this.matrix=t,(l=this.stops[this.stops.length-1])[0]<1&&this.stops.push([1,l[1],l[2]]),e=[],r=[],p=[],a=_=0,y=this.stops.length-1;0<=y?_<y:_>y;a=0<=y?++_:--_)r.push(0,1),a+2!==this.stops.length&&e.push(this.stops[a+1][0]),n=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[a+0][1],C1:this.stops[a+1][1],N:1}),p.push(n),n.end();if(1===p.length?n=p[0]:(n=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:p,Bounds:e,Encode:r})).end(),this.id="Sh"+ ++this.doc._gradCount,(f=this.shader(n)).end(),(c=this.doc.ref({Type:"Pattern",PatternType:2,Shading:f,Matrix:function(){var t,e,r,n;for(n=[],t=0,e=(r=this.matrix).length;t<e;t++)g=r[t],n.push(+g.toFixed(5));return n}.call(this)})).end(),this.stops.some(function(t){return t[2]<1})){for((o=this.opacityGradient())._colorSpace="DeviceGray",m=0,v=(b=this.stops).length;m<v;m++)d=b[m],o.stop(d[0],[d[2]]);o=o.embed(this.matrix),h=[0,0,this.doc.page.width,this.doc.page.height],(i=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:h,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:o}}})).write("/Pattern cs /Sh1 scn"),i.end(h.join(" ")+" re f"),(s=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:i}})).end(),(u=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:h,XStep:h[2],YStep:h[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:c},ExtGState:{Gs1:s}}})).write("/Gs1 gs /Pattern cs /Sh1 scn"),u.end(h.join(" ")+" re f"),this.doc.page.patterns[this.id]=u}else this.doc.page.patterns[this.id]=c;return c}},t.prototype.apply=function(t){var e,r,n,i,o,s,a,l,u,h,c,f,d,p,g;return p=this.doc._ctm.slice(),i=p[0],o=p[1],l=p[2],c=p[3],f=p[4],d=p[5],g=this.transform,s=g[0],a=g[1],u=g[2],h=g[3],e=g[4],r=g[5],n=[i*s+l*a,o*s+c*a,i*u+l*h,o*u+c*h,i*e+l*r+f,o*e+c*r+d],this.embedded&&n.join(" ")===this.matrix.join(" ")||this.embed(n),this.doc.addContent("/"+this.id+" "+t)},t}(),i=function(t){function e(t,r,n,i,o){this.doc=t,this.x1=r,this.y1=n,this.x2=i,this.y2=o,e.__super__.constructor.apply(this,arguments)}return a(e,n),e.prototype.shader=function(t){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:t,Extend:[!0,!0]})},e.prototype.opacityGradient=function(){return new e(this.doc,this.x1,this.y1,this.x2,this.y2)},e}(),o=function(t){function e(t,r,n,i,o,s,a){this.doc=t,this.x1=r,this.y1=n,this.r1=i,this.x2=o,this.y2=s,this.r2=a,e.__super__.constructor.apply(this,arguments)}return a(e,n),e.prototype.shader=function(t){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:t,Extend:[!0,!0]})},e.prototype.opacityGradient=function(){return new e(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)},e}(),e.localExports={PDFGradient:n,PDFLinearGradient:i,PDFRadialGradient:o}},{}],8:[function(t,e,r){(function(r){var n,i,o,s;s=t("fs"),t("./data"),n=t("./image/jpeg"),o=t("./image/png"),i=function(){function t(){}return t.open=function(t,e){var i,a;if(r.isBuffer(t))i=t;else if(t instanceof ArrayBuffer)i=new r(new Uint8Array(t));else if(a=/^data:.+;base64,(.*)$/.exec(t))i=new r(a[1],"base64");else if(!(i=s.readFileSync(t)))return;if(255===i[0]&&216===i[1])return new n(i,e);if(137===i[0]&&"PNG"===i.toString("ascii",1,4))return new o(i,e);throw new Error("Unknown image format.")},t}(),e.localExports=i}).call(this,t("buffer").Buffer)},{"./data":1,"./image/jpeg":9,"./image/png":10,buffer:28,fs:26}],9:[function(t,e,r){var n,i=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++)if(e in this&&this[e]===t)return e;return-1};t("fs"),n=function(){function t(t,r){var n,o,s;if(this.data=t,this.label=r,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(s=2;s<this.data.length&&(o=this.data.readUInt16BE(s),s+=2,!(i.call(e,o)>=0));)s+=this.data.readUInt16BE(s);if(i.call(e,o)<0)throw"Invalid JPEG.";s+=2,this.bits=this.data[s++],this.height=this.data.readUInt16BE(s),s+=2,this.width=this.data.readUInt16BE(s),s+=2,n=this.data[s++],this.colorSpace=function(){switch(n){case 1:return"DeviceGray";case 3:return"DeviceRGB";case 4:return"DeviceCMYK"}}(),this.obj=null}var e;return e=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],t.prototype.embed=function(t){if(!this.obj)return this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null},t}(),e.localExports=n},{fs:26}],10:[function(t,e,r){(function(r){var n,i,o;o=t("zlib"),n=t("png-js"),i=function(){function t(t,e){this.label=e,this.image=new n(t),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}return t.prototype.embed=function(t){var e,n,i,o,s,a,l,u;if(this.document=t,!this.obj){if(this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"}),this.image.hasAlphaChannel||(i=this.document.ref({Predictor:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width}),this.obj.data.DecodeParms=i,i.end()),0===this.image.palette.length?this.obj.data.ColorSpace=this.image.colorSpace:((n=this.document.ref()).end(new r(this.image.palette)),this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,n]),this.image.transparency.grayscale)return s=this.image.transparency.greyscale,this.obj.data.Mask=[s,s];if(this.image.transparency.rgb){for(e=[],l=0,u=(o=this.image.transparency.rgb).length;l<u;l++)a=o[l],e.push(a,a);return this.obj.data.Mask=e}return this.image.transparency.indexed?this.loadIndexedAlphaChannel():this.image.hasAlphaChannel?this.splitAlphaChannel():this.finalize()}},t.prototype.finalize=function(){var t;return this.alphaChannel&&((t=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]})).end(this.alphaChannel),this.obj.data.SMask=t),this.obj.end(this.imgData),this.image=null,this.imgData=null},t.prototype.splitAlphaChannel=function(){return this.image.decodePixels(function(t){return function(e){var n,i,s,a,l,u,h,c,f;for(s=t.image.colors*t.image.bits/8,f=t.width*t.height,u=new r(f*s),i=new r(f),l=c=n=0,h=e.length;l<h;)u[c++]=e[l++],u[c++]=e[l++],u[c++]=e[l++],i[n++]=e[l++];return a=0,o.deflate(u,function(e,r){if(t.imgData=r,e)throw e;if(2==++a)return t.finalize()}),o.deflate(i,function(e,r){if(t.alphaChannel=r,e)throw e;if(2==++a)return t.finalize()})}}(this))},t.prototype.loadIndexedAlphaChannel=function(t){var e;return e=this.image.transparency.indexed,this.image.decodePixels(function(t){return function(n){var i,s,a,l,u;for(i=new r(t.width*t.height),s=0,a=l=0,u=n.length;l<u;a=l+=1)i[s++]=e[n[a]];return o.deflate(i,function(e,r){if(t.alphaChannel=r,e)throw e;return t.finalize()})}}(this))},t}(),e.localExports=i}).call(this,t("buffer").Buffer)},{buffer:28,"png-js":201,zlib:25}],11:[function(t,e,r){var n,i,o,s={}.hasOwnProperty,a=function(t,e){function r(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};n=t("events").EventEmitter,i=t("linebreak"),o=function(t){function e(t,e){var r;this.document=t,this.indent=e.indent||0,this.characterSpacing=e.characterSpacing||0,this.wordSpacing=0===e.wordSpacing,this.columns=e.columns||1,this.columnGap=null!=(r=e.columnGap)?r:18,this.lineWidth=(e.width-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=e.ellipsis,this.continuedX=0,this.features=e.features,null!=e.height?(this.height=e.height,this.maxY=this.startY+e.height):this.maxY=this.document.page.maxY(),this.on("firstLine",function(t){return function(e){var r;return r=t.continuedX||t.indent,t.document.x+=r,t.lineWidth-=r,t.once("line",function(){if(t.document.x-=r,t.lineWidth+=r,e.continued&&!t.continuedX&&(t.continuedX=t.indent),!e.continued)return t.continuedX=0})}}(this)),this.on("lastLine",function(t){return function(e){var r;return"justify"===(r=e.align)&&(e.align="left"),t.lastLine=!0,t.once("line",function(){return t.document.y+=e.paragraphGap||0,e.align=r,t.lastLine=!1})}}(this))}return a(e,n),e.prototype.wordWidth=function(t){return this.document.widthOfString(t,this)+this.characterSpacing+this.wordSpacing},e.prototype.eachWord=function(t,e){var r,n,o,s,a,l,u,h,c,f;for(n=new i(t),a=null,f=Object.create(null);r=n.nextBreak();){if(c=t.slice((null!=a?a.position:void 0)||0,r.position),(h=null!=f[c]?f[c]:f[c]=this.wordWidth(c))>this.lineWidth+this.continuedX)for(l=a,o={};c.length;){for(s=c.length;h>this.spaceLeft;)h=this.wordWidth(c.slice(0,--s));if(o.required=s<c.length,u=e(c.slice(0,s),h,o,l),l={required:!1},c=c.slice(s),h=this.wordWidth(c),!1===u)break}else u=e(c,h,r,a);if(!1===u)break;a=r}},e.prototype.wrap=function(t,e){var r,n,i,o,s,a,l;return null!=e.indent&&(this.indent=e.indent),null!=e.characterSpacing&&(this.characterSpacing=e.characterSpacing),null!=e.wordSpacing&&(this.wordSpacing=e.wordSpacing),null!=e.ellipsis&&(this.ellipsis=e.ellipsis),o=this.document.y+this.document.currentLineHeight(!0),(this.document.y>this.maxY||o>this.maxY)&&this.nextSection(),r="",s=0,a=0,i=0,l=this.document.y,n=function(t){return function(){return e.textWidth=s+t.wordSpacing*(a-1),e.wordCount=a,e.lineWidth=t.lineWidth,l=t.document.y,t.emit("line",r,e,t),i++}}(this),this.emit("sectionStart",e,this),this.eachWord(t,function(t){return function(i,o,l,u){var h;if((null==u||u.required)&&(t.emit("firstLine",e,t),t.spaceLeft=t.lineWidth),o<=t.spaceLeft&&(r+=i,s+=o,a++),l.required||o>t.spaceLeft){if(l.required&&t.emit("lastLine",e,t),h=t.document.currentLineHeight(!0),null!=t.height&&t.ellipsis&&t.document.y+2*h>t.maxY&&t.column>=t.columns){for(!0===t.ellipsis&&(t.ellipsis="…"),r=r.replace(/\s+$/,""),s=t.wordWidth(r+t.ellipsis);s>t.lineWidth;)r=r.slice(0,-1).replace(/\s+$/,""),s=t.wordWidth(r+t.ellipsis);r+=t.ellipsis}return l.required&&o>t.spaceLeft&&(r=i,s=o,a=1),n(),t.maxY-(t.document.y+h)<-1e-6&&!t.nextSection()?(a=0,r="",!1):l.required?(t.spaceLeft=t.lineWidth,r="",s=0,a=0):(t.spaceLeft=t.lineWidth-o,r=i,s=o,a=1)}return t.spaceLeft-=o}}(this)),a>0&&(this.emit("lastLine",e,this),n()),this.emit("sectionEnd",e,this),!0===e.continued?(i>1&&(this.continuedX=0),this.continuedX+=e.textWidth,this.document.y=l):this.document.x=this.startX},e.prototype.nextSection=function(t){var e;if(this.emit("sectionEnd",t,this),++this.column>this.columns){if(null!=this.height)return!1;this.document.addPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(e=this.document).fillColor.apply(e,this.document._fillColor),this.emit("pageBreak",t,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",t,this);return this.emit("sectionStart",t,this),!0},e}(),e.localExports=o},{events:29,linebreak:188}],12:[function(t,e,r){e.localExports={annotate:function(t,e,r,n,i){var o,s,a;i.Type="Annot",i.Rect=this._convertRect(t,e,r,n),i.Border=[0,0,0],"Link"!==i.Subtype&&null==i.C&&(i.C=this._normalizeColor(i.color||[0,0,0])),delete i.color,"string"==typeof i.Dest&&(i.Dest=new String(i.Dest));for(o in i)a=i[o],i[o[0].toUpperCase()+o.slice(1)]=a;return s=this.ref(i),this.page.annotations.push(s),s.end(),this},note:function(t,e,r,n,i,o){return null==o&&(o={}),o.Subtype="Text",o.Contents=new String(i),o.Name="Comment",null==o.color&&(o.color=[243,223,92]),this.annotate(t,e,r,n,o)},link:function(t,e,r,n,i,o){return null==o&&(o={}),o.Subtype="Link",o.A=this.ref({S:"URI",URI:new String(i)}),o.A.end(),this.annotate(t,e,r,n,o)},_markup:function(t,e,r,n,i){var o,s,a,l,u;return null==i&&(i={}),u=this._convertRect(t,e,r,n),o=u[0],a=u[1],s=u[2],l=u[3],i.QuadPoints=[o,l,s,l,o,a,s,a],i.Contents=new String,this.annotate(t,e,r,n,i)},highlight:function(t,e,r,n,i){return null==i&&(i={}),i.Subtype="Highlight",null==i.color&&(i.color=[241,238,148]),this._markup(t,e,r,n,i)},underline:function(t,e,r,n,i){return null==i&&(i={}),i.Subtype="Underline",this._markup(t,e,r,n,i)},strike:function(t,e,r,n,i){return null==i&&(i={}),i.Subtype="StrikeOut",this._markup(t,e,r,n,i)},lineAnnotation:function(t,e,r,n,i){return null==i&&(i={}),i.Subtype="Line",i.Contents=new String,i.L=[t,this.page.height-e,r,this.page.height-n],this.annotate(t,e,r,n,i)},rectAnnotation:function(t,e,r,n,i){return null==i&&(i={}),i.Subtype="Square",i.Contents=new String,this.annotate(t,e,r,n,i)},ellipseAnnotation:function(t,e,r,n,i){return null==i&&(i={}),i.Subtype="Circle",i.Contents=new String,this.annotate(t,e,r,n,i)},textAnnotation:function(t,e,r,n,i,o){return null==o&&(o={}),o.Subtype="FreeText",o.Contents=new String(i),o.DA=new String,this.annotate(t,e,r,n,o)},_convertRect:function(t,e,r,n){var i,o,s,a,l,u,h,c,f;return c=e,e+=n,h=t+r,f=this._ctm,i=f[0],o=f[1],s=f[2],a=f[3],l=f[4],u=f[5],t=i*t+s*e+l,e=o*t+a*e+u,h=i*h+s*c+l,c=o*h+a*c+u,[t,e,h,c]}}},{}],13:[function(t,e,r){var n,i,o,s,a;a=t("../gradient"),n=a.PDFGradient,i=a.PDFLinearGradient,o=a.PDFRadialGradient,e.localExports={initColor:function(){return this._opacityRegistry={},this._opacityCount=0,this._gradCount=0},_normalizeColor:function(t){var e,r;return t instanceof n?t:("string"==typeof t&&("#"===t.charAt(0)?(4===t.length&&(t=t.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3")),e=parseInt(t.slice(1),16),t=[e>>16,e>>8&255,255&e]):s[t]&&(t=s[t])),Array.isArray(t)?(3===t.length?t=function(){var e,n,i;for(i=[],e=0,n=t.length;e<n;e++)r=t[e],i.push(r/255);return i}():4===t.length&&(t=function(){var e,n,i;for(i=[],e=0,n=t.length;e<n;e++)r=t[e],i.push(r/100);return i}()),t):null)},_setColor:function(t,e){var r,i;return!!(t=this._normalizeColor(t))&&(r=e?"SCN":"scn",t instanceof n?(this._setColorSpace("Pattern",e),t.apply(r)):(i=4===t.length?"DeviceCMYK":"DeviceRGB",this._setColorSpace(i,e),t=t.join(" "),this.addContent(t+" "+r)),!0)},_setColorSpace:function(t,e){var r;return r=e?"CS":"cs",this.addContent("/"+t+" "+r)},fillColor:function(t,e){return this._setColor(t,!1)&&this.fillOpacity(e),this._fillColor=[t,e],this},strokeColor:function(t,e){return this._setColor(t,!0)&&this.strokeOpacity(e),this},opacity:function(t){return this._doOpacity(t,t),this},fillOpacity:function(t){return this._doOpacity(t,null),this},strokeOpacity:function(t){return this._doOpacity(null,t),this},_doOpacity:function(t,e){var r,n,i,o;if(null!=t||null!=e)return null!=t&&(t=Math.max(0,Math.min(1,t))),null!=e&&(e=Math.max(0,Math.min(1,e))),n=t+"_"+e,this._opacityRegistry[n]?(r=(o=this._opacityRegistry[n])[0],i=o[1]):(r={Type:"ExtGState"},null!=t&&(r.ca=t),null!=e&&(r.CA=e),(r=this.ref(r)).end(),i="Gs"+ ++this._opacityCount,this._opacityRegistry[n]=[r,i]),this.page.ext_gstates[i]=r,this.addContent("/"+i+" gs")},linearGradient:function(t,e,r,n){return new i(this,t,e,r,n)},radialGradient:function(t,e,r,n,i,s){return new o(this,t,e,r,n,i,s)}},s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{"../gradient":7}],14:[function(t,e,r){var n;n=t("../font"),e.localExports={initFonts:function(){return this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},this.font("Helvetica")},font:function(t,e,r){var i,o,s,a;return"number"==typeof e&&(r=e,e=null),"string"==typeof t&&this._registeredFonts[t]?(i=t,t=(a=this._registeredFonts[t]).src,e=a.family):"string"!=typeof(i=e||t)&&(i=null),null!=r&&this.fontSize(r),(o=this._fontFamilies[i])?(this._font=o,this):(s="F"+ ++this._fontCount,this._font=n.open(this,t,e,s),(o=this._fontFamilies[this._font.name])?(this._font=o,this):(i&&(this._fontFamilies[i]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this))},fontSize:function(t){return this._fontSize=t,this},currentLineHeight:function(t){return null==t&&(t=!1),this._font.lineHeight(this._fontSize,t)},currentFontAscender:function(){return this._font.getAscender(this._fontSize)},currentFontBBox:function(){return this._font.getBBox(this._fontSize)},currentFontSize:function(){return this._fontSize},registerFont:function(t,e,r){return this._registeredFonts[t]={src:e,family:r},this}}},{"../font":3}],15:[function(t,e,r){var n;n=t("../image"),e.localExports={initImages:function(){return this._imageRegistry={},this._imageCount=0},image:function(t,e,r,n){var i,o,s,a,l,u,h,c,f,d,p,g,_,m,v,y;return null==n&&(n={}),"object"==typeof e&&(n=e,e=null),e=null!=(_=null!=e?e:n.x)?_:this.x,r=null!=(m=null!=r?r:n.y)?m:this.y,"string"==typeof t&&(l=this._imageRegistry[t]),l||(l=t.width&&t.height?t:this.openImage(t)),l.obj||l.embed(this),null==(p=this.page.xobjects)[g=l.label]&&(p[g]=l.obj),h=.75*l.width,u=.75*l.height,f=n.width||h,s=n.height||u,n.width&&!n.height?(f=h*(d=f/h),s=u*d):n.height&&!n.width?(f=h*(a=s/u),s=u*a):n.scale?(f=h*n.scale,s=u*n.scale):n.fit?(c=h/u)>(o=(v=n.fit)[0])/(i=v[1])?(f=o,s=o/c):(s=i,f=i*c):n.cover&&((c=h/u)>(o=(y=n.cover)[0])/(i=y[1])?(s=i,f=i*c):(f=o,s=o/c)),(n.fit||n.cover)&&("center"===n.align?e=e+o/2-f/2:"right"===n.align&&(e=e+o-f),"center"===n.valign?r=r+i/2-s/2:"bottom"===n.valign&&(r=r+i-s)),this.y===r&&(this.y+=s),this.save(),this.transform(f,0,0,-s,e,r+s),this.addContent("/"+l.label+" Do"),this.restore(),this},openImage:function(t){var e;return"string"==typeof t&&(e=this._imageRegistry[t]),e||(e=n.open(t,"I"+ ++this._imageCount),"string"==typeof t&&(this._imageRegistry[t]=e)),e}}},{"../image":8}],16:[function(t,e,r){var n,i;n=t("../line_wrapper"),i=t("../object").number,e.localExports={initText:function(){return this.x=0,this.y=0,this._lineGap=0},currentLineGap:function(){return this._lineGap},lineGap:function(t){return this._lineGap=t,this},moveDown:function(t){return null==t&&(t=1),this.y+=this.currentLineHeight(!0)*t+this._lineGap,this},moveUp:function(t){return null==t&&(t=1),this.y-=this.currentLineHeight(!0)*t+this._lineGap,this},_text:function(t,e,r,i,o){var s,a,l,u;if(i=this._initOptions(e,r,i),t=null==t?"":""+t,i.wordSpacing&&(t=t.replace(/\s{2,}/g," ")),i.width)(s=this._wrapper)||(s=new n(this,i)).on("line",o),this._wrapper=i.continued?s:null,this._textOptions=i.continued?i:null,s.wrap(t,i);else for(a=0,l=(u=t.split("\n")).length;a<l;a++)o(u[a],i);return this},text:function(t,e,r,n){return this._text(t,e,r,n,this._line.bind(this))},widthOfString:function(t,e){return null==e&&(e={}),this._font.widthOfString(t,this._fontSize,e.features)+(e.characterSpacing||0)*(t.length-1)},heightOfString:function(t,e){var r,n,i,o;return null==e&&(e={}),i=this.x,o=this.y,e=this._initOptions(e),e.height=1/0,n=e.lineGap||this._lineGap||0,this._text(t,this.x,this.y,e,function(t){return function(e,r){return t.y+=t.currentLineHeight(!0)+n}}(this)),r=this.y-o,this.x=i,this.y=o,r},textAndMeasure:function(t,e,r,n,i){var o,s,a,l,u,h,c,f,d;return n=n||{},null===e&&(e=this.x,r=this.y),h=this,f=this.x,d=this.y,c={width:0,height:0,charCount:0},u=n.lineGap||this._lineGap||0,a=n.columnGap||18,l=null===e?this.x:e,o=[],s=0,i&&null===n.height&&(n.height=1/0),this._text(t,e,r,n,function(r,n,a){return c.charCount+=r.length,h.x===e&&(c.height+=h.currentLineHeight(!0)+u),n.textWidth&&(h.x>l&&(l=h.x,o[s++]=n.lineWidth),o[s]=Math.max(o[s]||0,n.textWidth)),i?a?h.y+=h.currentLineHeight(!0)+u:h.x+=h.widthOfString(t):h._line.apply(h,arguments)}),o.length?(o.forEach(function(t){return c.width+=t+a}),c.width-=a):c.width=this.x-f,!1===n.includeLastLineExternalLeading&&(c.height-=this.currentLineHeight(!0)-this.currentLineHeight(!1)),c.height=Math.max(0,c.height),i&&(this.x=f,this.y=d),c},list:function(t,e,r,i,o){var s,a,l,u,h,c,f,d,p;return i=this._initOptions(e,r,i),d=Math.round(this._font.ascender/1e3*this._fontSize/2),p=i.bulletRadius||Math.round(this._font.ascender/1e3*this._fontSize/3),l=i.textIndent||5*p,u=i.bulletIndent||8*p,c=1,h=[],f=[],(s=function(t){var e,r,n,i,o;for(o=[],e=n=0,i=t.length;n<i;e=++n)r=t[e],Array.isArray(r)?(c++,s(r),o.push(c--)):(h.push(r),o.push(f.push(c)));return o})(t),(o=new n(this,i)).on("line",this._line.bind(this)),c=1,a=0,o.on("firstLine",function(t){return function(){var e,r;return(r=f[a++])!==c&&(e=u*(r-c),t.x+=e,o.lineWidth-=e,c=r),t.circle(t.x-l+p,t.y+d,p),t.fill()}}(this)),o.on("sectionStart",function(t){return function(){var e;return e=l+u*(c-1),t.x+=e,o.lineWidth-=e}}(this)),o.on("sectionEnd",function(t){return function(){var e;return e=l+u*(c-1),t.x-=e,o.lineWidth+=e}}(this)),o.wrap(h.join("\n"),i),this},_initOptions:function(t,e,r){var n,i,o;if(null==t&&(t={}),null==r&&(r={}),"object"==typeof t&&(r=t,t=null),r=function(){var t,e,n;e={};for(t in r)n=r[t],e[t]=n;return e}(),this._textOptions){o=this._textOptions;for(n in o)i=o[n],"continued"!==n&&null==r[n]&&(r[n]=i)}return null!=t&&(this.x=t),null!=e&&(this.y=e),!1!==r.lineBreak&&null==r.width&&(r.width=Math.max(this.page.width-this.x-this.page.margins.right,0)),r.columns||(r.columns=0),null==r.columnGap&&(r.columnGap=18),r},_line:function(t,e,r){var n;return null==e&&(e={}),this._fragment(t,this.x,this.y,e),n=e.lineGap||this._lineGap||0,r?this.y+=this.currentLineHeight(!0)+n:this.x+=this.widthOfString(t)},_fragment:function(t,e,r,n){var o,s,a,l,u,h,c,f,d,p,g,_,m,v,y,b,w,x,S,C,E,A,k,P,j,I,L,T,B,N,O,F,D,z,R,M;if(0!==(t=(""+t).replace(/\n/g,"")).length){if(s=n.align||"left",I=n.wordSpacing||0,a=n.characterSpacing||0,n.width)switch(s){case"right":k=this.widthOfString(t.replace(/\s+$/,""),n),e+=n.lineWidth-k;break;case"center":e+=n.lineWidth/2-n.textWidth/2;break;case"justify":L=t.trim().split(/\s+/),k=this.widthOfString(t.replace(/\s+/g,""),n),A=this.widthOfString(" ")+a,I=Math.max(0,(n.lineWidth-k)/Math.max(1,L.length-1)-A)}if(S=n.textWidth+I*(n.wordCount-1)+a*(t.length-1),n.link&&this.link(e,r,S,this.currentLineHeight(),n.link),(n.underline||n.strike)&&(this.save(),n.stroke||this.strokeColor.apply(this,this._fillColor),m=this._fontSize<10?.5:Math.floor(this._fontSize/10),this.lineWidth(m),u=n.underline?1:2,v=r+this.currentLineHeight()/u,n.underline&&(v-=m),this.moveTo(e,v),this.lineTo(e+S,v),this.stroke(),this.restore()),this.save(),this.transform(1,0,0,-1,0,this.page.height),r=this.page.height-r-this._font.ascender/1e3*this._fontSize,null==(T=this.page.fonts)[D=this._font.id]&&(T[D]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 "+i(e)+" "+i(r)+" Tm"),this.addContent("/"+this._font.id+" "+i(this._fontSize)+" Tf"),(y=n.fill&&n.stroke?2:n.stroke?1:0)&&this.addContent(y+" Tr"),a&&this.addContent(i(a)+" Tc"),I)for(L=t.trim().split(/\s+/),I+=this.widthOfString(" ")+a,I*=1e3/this._fontSize,h=[],w=[],B=0,O=L.length;B<O;B++){j=L[B],c=(z=this._font.encode(j,n.features))[0],x=z[1],h.push.apply(h,c),w.push.apply(w,x),E={},R=w[w.length-1];for(g in R)P=R[g],E[g]=P;E.xAdvance+=I,w[w.length-1]=E}else M=this._font.encode(t,n.features),h=M[0],w=M[1];for(C=this._fontSize/1e3,l=[],_=0,d=!1,o=function(t){var e,r;return _<t&&(r=h.slice(_,t).join(""),e=w[t-1].xAdvance-w[t-1].advanceWidth,l.push("<"+r+"> "+i(-e))),_=t},f=function(t){return function(e){if(o(e),l.length>0)return t.addContent("["+l.join(" ")+"] TJ"),l.length=0}}(this),p=N=0,F=w.length;N<F;p=++N)(b=w[p]).xOffset||b.yOffset?(f(p),this.addContent("1 0 0 1 "+i(e+b.xOffset*C)+" "+i(r+b.yOffset*C)+" Tm"),f(p+1),d=!0):(d&&(this.addContent("1 0 0 1 "+i(e)+" "+i(r)+" Tm"),d=!1),b.xAdvance-b.advanceWidth!=0&&o(p+1)),e+=b.xAdvance*C;return f(p),this.addContent("ET"),this.restore()}}}},{"../line_wrapper":11,"../object":18}],17:[function(t,e,r){var n,i,o,s=[].slice;i=t("../path"),o=t("../object").number,n=(Math.sqrt(2)-1)/3*4,e.localExports={initVector:function(){return this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save:function(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore:function(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath:function(){return this.addContent("h")},lineWidth:function(t){return this.addContent(o(t)+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function(t){return"string"==typeof t&&(t=this._CAP_STYLES[t.toUpperCase()]),this.addContent(t+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function(t){return"string"==typeof t&&(t=this._JOIN_STYLES[t.toUpperCase()]),this.addContent(t+" j")},miterLimit:function(t){return this.addContent(o(t)+" M")},dash:function(t,e){var r,n,i,s;return null==e&&(e={}),null==t?this:Array.isArray(t)?(t=function(){var e,r,n;for(n=[],e=0,r=t.length;e<r;e++)i=t[e],n.push(o(i));return n}().join(" "),r=e.phase||0,this.addContent("["+t+"] "+o(r)+" d")):(n=null!=(s=e.space)?s:t,r=e.phase||0,this.addContent("["+o(t)+" "+o(n)+"] "+o(r)+" d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(t,e){return this.addContent(o(t)+" "+o(e)+" m")},lineTo:function(t,e){return this.addContent(o(t)+" "+o(e)+" l")},bezierCurveTo:function(t,e,r,n,i,s){return this.addContent(o(t)+" "+o(e)+" "+o(r)+" "+o(n)+" "+o(i)+" "+o(s)+" c")},quadraticCurveTo:function(t,e,r,n){return this.addContent(o(t)+" "+o(e)+" "+o(r)+" "+o(n)+" v")},rect:function(t,e,r,n){return this.addContent(o(t)+" "+o(e)+" "+o(r)+" "+o(n)+" re")},roundedRect:function(t,e,r,i,o){var s;return null==o&&(o=0),o=Math.min(o,.5*r,.5*i),s=o*(1-n),this.moveTo(t+o,e),this.lineTo(t+r-o,e),this.bezierCurveTo(t+r-s,e,t+r,e+s,t+r,e+o),this.lineTo(t+r,e+i-o),this.bezierCurveTo(t+r,e+i-s,t+r-s,e+i,t+r-o,e+i),this.lineTo(t+o,e+i),this.bezierCurveTo(t+s,e+i,t,e+i-s,t,e+i-o),this.lineTo(t,e+o),this.bezierCurveTo(t,e+s,t+s,e,t+o,e),this.closePath()},ellipse:function(t,e,r,i){var o,s,a,l,u,h;return null==i&&(i=r),t-=r,e-=i,o=r*n,s=i*n,a=t+2*r,u=e+2*i,l=t+r,h=e+i,this.moveTo(t,h),this.bezierCurveTo(t,h-s,l-o,e,l,e),this.bezierCurveTo(l+o,e,a,h-s,a,h),this.bezierCurveTo(a,h+s,l+o,u,l,u),this.bezierCurveTo(l-o,u,t,h+s,t,h),this.closePath()},circle:function(t,e,r){return this.ellipse(t,e,r)},arc:function(t,e,r,i,o,s){var a,l,u,h,c,f,d,p,g,_,m,v,y,b,w,x;for(null==s&&(s=!1),l=2*Math.PI,a=.5*Math.PI,_=o-i,Math.abs(_)>l?_=l:0!==_&&s!==_<0&&(_=(s?-1:1)*l+_),y=(w=_/(b=Math.ceil(Math.abs(_)/a)))/a*n*r,g=i,m=-Math.sin(g)*y,v=Math.cos(g)*y,u=t+Math.cos(g)*r,h=e+Math.sin(g)*r,this.moveTo(u,h),x=0;0<=b?x<b:x>b;0<=b?++x:--x)c=u+m,f=h+v,g+=w,u=t+Math.cos(g)*r,h=e+Math.sin(g)*r,d=u-(m=-Math.sin(g)*y),p=h-(v=Math.cos(g)*y),this.bezierCurveTo(c,f,d,p,u,h);return this},polygon:function(){var t,e,r,n;for(e=1<=arguments.length?s.call(arguments,0):[],this.moveTo.apply(this,e.shift()),r=0,n=e.length;r<n;r++)t=e[r],this.lineTo.apply(this,t);return this.closePath()},path:function(t){return i.apply(this,t),this},_windingRule:function(t){return/even-?odd/.test(t)?"*":""},fill:function(t,e){return/(even-?odd)|(non-?zero)/.test(t)&&(e=t,t=null),t&&this.fillColor(t),this.addContent("f"+this._windingRule(e))},stroke:function(t){return t&&this.strokeColor(t),this.addContent("S")},fillAndStroke:function(t,e,r){var n;return null==e&&(e=t),(n=/(even-?odd)|(non-?zero)/).test(t)&&(r=t,t=null),n.test(e)&&(r=e,e=t),t&&(this.fillColor(t),this.strokeColor(e)),this.addContent("B"+this._windingRule(r))},clip:function(t){return this.addContent("W"+this._windingRule(t)+" n")},transform:function(t,e,r,n,i,s){var a,l,u,h,c,f,d,p,g;return a=this._ctm,l=a[0],u=a[1],h=a[2],c=a[3],f=a[4],d=a[5],a[0]=l*t+h*e,a[1]=u*t+c*e,a[2]=l*r+h*n,a[3]=u*r+c*n,a[4]=l*i+h*s+f,a[5]=u*i+c*s+d,g=function(){var a,l,u,h;for(h=[],a=0,l=(u=[t,e,r,n,i,s]).length;a<l;a++)p=u[a],h.push(o(p));return h}().join(" "),this.addContent(g+" cm")},translate:function(t,e){return this.transform(1,0,0,1,t,e)},rotate:function(t,e){var r,n,i,o,s,a,l;return null==e&&(e={}),n=t*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=s=0,null!=e.origin&&(a=(o=(l=e.origin)[0])*i+(s=l[1])*r,o-=o*r-s*i,s-=a),this.transform(r,i,-i,r,o,s)},scale:function(t,e,r){var n,i,o;return null==e&&(e=t),null==r&&(r={}),"object"==typeof e&&(r=e,e=t),n=i=0,null!=r.origin&&(n=(o=r.origin)[0],i=o[1],n-=t*n,i-=e*i),this.transform(t,0,0,e,n,i)}}},{"../object":18,"../path":20}],18:[function(t,e,r){(function(r){var n,i;n=function(){function t(){}var e,n,o,s;return o=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},n=/[\n\r\t\b\f\(\)\\]/g,e={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},s=function(t){var e,r,n,i,o;if(1&(n=t.length))throw new Error("Buffer length must be even");for(r=i=0,o=n-1;i<o;r=i+=2)e=t[r],t[r]=t[r+1],t[r+1]=e;return t},t.convert=function(a){var l,u,h,c,f,d,p,g,_;if("string"==typeof a)return"/"+a;if(a instanceof String){for(h=!1,u=g=0,_=(d=a).length;g<_;u=g+=1)if(d.charCodeAt(u)>127){h=!0;break}return h&&(d=s(new r("\ufeff"+d,"utf16le")).toString("binary")),"("+(d=d.replace(n,function(t){return e[t]}))+")"}if(r.isBuffer(a))return"<"+a.toString("hex")+">";if(a instanceof i)return a.toString();if(a instanceof Date)return"(D:"+o(a.getUTCFullYear(),4)+o(a.getUTCMonth()+1,2)+o(a.getUTCDate(),2)+o(a.getUTCHours(),2)+o(a.getUTCMinutes(),2)+o(a.getUTCSeconds(),2)+"Z)";if(Array.isArray(a))return"["+function(){var e,r,n;for(n=[],e=0,r=a.length;e<r;e++)l=a[e],n.push(t.convert(l));return n}().join(" ")+"]";if("[object Object]"==={}.toString.call(a)){f=["<<"];for(c in a)p=a[c],f.push("/"+c+" "+t.convert(p));return f.push(">>"),f.join("\n")}return"number"==typeof a?t.number(a):""+a},t.number=function(t){if(t>-1e21&&t<1e21)return Math.round(1e6*t)/1e6;throw new Error("unsupported number: "+t)},t}(),e.localExports=n,i=t("./reference")}).call(this,t("buffer").Buffer)},{"./reference":21,buffer:28}],19:[function(t,e,r){var n;n=function(){function t(t,n){var i;this.document=t,null==n&&(n={}),this.size=n.size||"letter",this.layout=n.layout||"portrait","number"==typeof n.margin?this.margins={top:n.margin,left:n.margin,bottom:n.margin,right:n.margin}:(this.margins=n.margins||e,this.margins={top:this.margins.top,left:this.margins.left,bottom:this.margins.bottom,right:this.margins.right}),i=Array.isArray(this.size)?this.size:r[this.size.toUpperCase()],this.width=i["portrait"===this.layout?0:1],this.height=i["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),Object.defineProperties(this,{fonts:{get:function(t){return function(){var e;return null!=(e=t.resources.data).Font?e.Font:e.Font={}}}(this)},xobjects:{get:function(t){return function(){var e;return null!=(e=t.resources.data).XObject?e.XObject:e.XObject={}}}(this)},ext_gstates:{get:function(t){return function(){var e;return null!=(e=t.resources.data).ExtGState?e.ExtGState:e.ExtGState={}}}(this)},patterns:{get:function(t){return function(){var e;return null!=(e=t.resources.data).Pattern?e.Pattern:e.Pattern={}}}(this)},annotations:{get:function(t){return function(){var e;return null!=(e=t.dictionary.data).Annots?e.Annots:e.Annots=[]}}(this)}}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources})}var e,r;return t.prototype.maxY=function(){return this.height-this.margins.bottom},t.prototype.write=function(t){return this.content.write(t)},t.prototype.end=function(){return this.dictionary.end(),this.resources.end(),this.content.end()},e={top:72,left:72,bottom:72,right:72},r={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},t}(),e.localExports=n},{}],20:[function(t,e,r){var n;n=function(){function t(){}var e,r,n,i,o,s,a,l,u,h,c,f,d;return t.apply=function(t,r){var n;return n=s(r),e(n,t)},o={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},s=function(t){var e,r,n,i,s,a,l,u,h;for(l=[],e=[],i="",s=!1,a=0,u=0,h=t.length;u<h;u++)if(r=t[u],null!=o[r])a=o[r],n&&(i.length>0&&(e[e.length]=+i),l[l.length]={cmd:n,args:e},e=[],i="",s=!1),n=r;else if(" "===r||","===r||"-"===r&&i.length>0&&"e"!==i[i.length-1]||"."===r&&s){if(0===i.length)continue;e.length===a?(l[l.length]={cmd:n,args:e},e=[+i],"M"===n&&(n="L"),"m"===n&&(n="l")):e[e.length]=+i,s="."===r,i="-"===r||"."===r?r:""}else i+=r,"."===r&&(s=!0);return i.length>0&&(e.length===a?(l[l.length]={cmd:n,args:e},e=[+i],"M"===n&&(n="L"),"m"===n&&(n="l")):e[e.length]=+i),l[l.length]={cmd:n,args:e},l},n=i=a=l=f=d=0,e=function(t,e){var r,o,s,h,c;for(n=i=a=l=f=d=0,o=s=0,h=t.length;s<h;o=++s)r=t[o],"function"==typeof u[c=r.cmd]&&u[c](e,r.args);return n=i=a=l=0},u={M:function(t,e){return n=e[0],i=e[1],a=l=null,f=n,d=i,t.moveTo(n,i)},m:function(t,e){return n+=e[0],i+=e[1],a=l=null,f=n,d=i,t.moveTo(n,i)},C:function(t,e){return n=e[4],i=e[5],a=e[2],l=e[3],t.bezierCurveTo.apply(t,e)},c:function(t,e){return t.bezierCurveTo(e[0]+n,e[1]+i,e[2]+n,e[3]+i,e[4]+n,e[5]+i),a=n+e[2],l=i+e[3],n+=e[4],i+=e[5]},S:function(t,e){return null===a&&(a=n,l=i),t.bezierCurveTo(n-(a-n),i-(l-i),e[0],e[1],e[2],e[3]),a=e[0],l=e[1],n=e[2],i=e[3]},s:function(t,e){return null===a&&(a=n,l=i),t.bezierCurveTo(n-(a-n),i-(l-i),n+e[0],i+e[1],n+e[2],i+e[3]),a=n+e[0],l=i+e[1],n+=e[2],i+=e[3]},Q:function(t,e){return a=e[0],l=e[1],n=e[2],i=e[3],t.quadraticCurveTo(e[0],e[1],n,i)},q:function(t,e){return t.quadraticCurveTo(e[0]+n,e[1]+i,e[2]+n,e[3]+i),a=n+e[0],l=i+e[1],n+=e[2],i+=e[3]},T:function(t,e){return null===a?(a=n,l=i):(a=n-(a-n),l=i-(l-i)),t.quadraticCurveTo(a,l,e[0],e[1]),a=n-(a-n),l=i-(l-i),n=e[0],i=e[1]},t:function(t,e){return null===a?(a=n,l=i):(a=n-(a-n),l=i-(l-i)),t.quadraticCurveTo(a,l,n+e[0],i+e[1]),n+=e[0],i+=e[1]},A:function(t,e){return c(t,n,i,e),n=e[5],i=e[6]},a:function(t,e){return e[5]+=n,e[6]+=i,c(t,n,i,e),n=e[5],i=e[6]},L:function(t,e){return n=e[0],i=e[1],a=l=null,t.lineTo(n,i)},l:function(t,e){return n+=e[0],i+=e[1],a=l=null,t.lineTo(n,i)},H:function(t,e){return n=e[0],a=l=null,t.lineTo(n,i)},h:function(t,e){return n+=e[0],a=l=null,t.lineTo(n,i)},V:function(t,e){return i=e[0],a=l=null,t.lineTo(n,i)},v:function(t,e){return i+=e[0],a=l=null,t.lineTo(n,i)},Z:function(t){return t.closePath(),n=f,i=d},z:function(t){return t.closePath(),n=f,i=d}},c=function(t,e,n,i){var o,s,a,l,u,c,f,d,p,g,_,m,v;for(c=i[0],f=i[1],u=i[2],l=i[3],g=i[4],s=i[5],a=i[6],v=[],_=0,m=(p=r(s,a,c,f,l,g,u,e,n)).length;_<m;_++)d=p[_],o=h.apply(null,d),v.push(t.bezierCurveTo.apply(t,o));return v},r=function(t,e,r,n,i,o,s,u,h){var c,f,d,p,g,_,m,v,y,b,w,x,S,C,E,A,k,P,j,I,L,T,B,N;for(S=s*(Math.PI/180),x=Math.sin(S),g=Math.cos(S),r=Math.abs(r),n=Math.abs(n),(m=(a=g*(u-t)*.5+x*(h-e)*.5)*a/(r*r)+(l=g*(h-e)*.5-x*(u-t)*.5)*l/(n*n))>1&&(r*=m=Math.sqrt(m),n*=m),(w=1/(((j=(c=g/r)*t+(f=x/r)*e)-(P=c*u+f*h))*(j-P)+((T=(d=-x/n)*t+(p=g/n)*e)-(L=d*u+p*h))*(T-L))-.25)<0&&(w=0),b=Math.sqrt(w),o===i&&(b=-b),I=.5*(P+j)-b*(T-L),B=.5*(L+T)+b*(j-P),C=Math.atan2(L-B,P-I),(k=Math.atan2(T-B,j-I)-C)<0&&1===o?k+=2*Math.PI:k>0&&0===o&&(k-=2*Math.PI),y=Math.ceil(Math.abs(k/(.5*Math.PI+.001))),v=[],_=N=0;0<=y?N<y:N>y;_=0<=y?++N:--N)E=C+_*k/y,A=C+(_+1)*k/y,v[_]=[I,B,E,A,r,n,x,g];return v},h=function(t,e,r,n,i,o,s,a){var l,u,h,c,f,d,p,g,_,m,v,y;return l=a*i,u=-s*o,h=s*i,c=a*o,d=.5*(n-r),f=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),p=t+Math.cos(r)-f*Math.sin(r),m=e+Math.sin(r)+f*Math.cos(r),_=t+Math.cos(n),y=e+Math.sin(n),g=_+f*Math.sin(n),v=y-f*Math.cos(n),[l*p+u*m,h*p+c*m,l*g+u*v,h*g+c*v,l*_+u*y,h*_+c*y]},t}(),e.localExports=n},{}],21:[function(t,e,r){(function(r){var n,i,o,s=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty,l=function(t,e){function r(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};o=t("zlib"),i=function(t){function e(t,r,n){this.document=t,this.id=r,this.data=null!=n?n:{},this.finalize=s(this.finalize,this),e.__super__.constructor.call(this,{decodeStrings:!1}),this.gen=0,this.deflate=null,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.chunks=[]}return l(e,t),e.prototype.initDeflate=function(){return this.data.Filter="FlateDecode",this.deflate=o.createDeflate(),this.deflate.on("data",function(t){return function(e){return t.chunks.push(e),t.data.Length+=e.length}}(this)),this.deflate.on("end",this.finalize)},e.prototype._write=function(t,e,n){var i;return r.isBuffer(t)||(t=new r(t+"\n","binary")),this.uncompressedLength+=t.length,null==(i=this.data).Length&&(i.Length=0),this.compress?(this.deflate||this.initDeflate(),this.deflate.write(t)):(this.chunks.push(t),this.data.Length+=t.length),n()},e.prototype.end=function(t){return e.__super__.end.apply(this,arguments),this.deflate?this.deflate.end():this.finalize()},e.prototype.finalize=function(){var t,e,r,i;if(this.offset=this.document._offset,this.document._write(this.id+" "+this.gen+" obj"),this.document._write(n.convert(this.data)),this.chunks.length){for(this.document._write("stream"),e=0,r=(i=this.chunks).length;e<r;e++)t=i[e],this.document._write(t);this.chunks.length=0,this.document._write("\nendstream")}return this.document._write("endobj"),this.document._refEnd(this)},e.prototype.toString=function(){return this.id+" "+this.gen+" R"},e}(t("stream").Writable),e.localExports=i,n=t("./object")}).call(this,t("buffer").Buffer)},{"./object":18,buffer:28,stream:204,zlib:25}],22:[function(t,e,r){function n(t,e){return d.isUndefined(e)?""+e:!d.isNumber(e)||!isNaN(e)&&isFinite(e)?d.isFunction(e)||d.isRegExp(e)?e.toString():e:e.toString()}function i(t,e){return d.isString(t)?t.length<e?t:t.slice(0,e):t}function o(t){return i(JSON.stringify(t.actual,n),128)+" "+t.operator+" "+i(JSON.stringify(t.expected,n),128)}function s(t,e,r,n,i){throw new _.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function a(t,e){t||s(t,!0,e,"==",_.ok)}function l(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return d.isDate(t)&&d.isDate(e)?t.getTime()===e.getTime():d.isRegExp(t)&&d.isRegExp(e)?t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase:d.isObject(t)||d.isObject(e)?h(t,e):t==e}function u(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(d.isNullOrUndefined(t)||d.isNullOrUndefined(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=p.call(t),e=p.call(e),l(t,e));try{var r,n,i=m(t),o=m(e)}catch(t){return!1}if(i.length!=o.length)return!1;for(i.sort(),o.sort(),n=i.length-1;n>=0;n--)if(i[n]!=o[n])return!1;for(n=i.length-1;n>=0;n--)if(r=i[n],!l(t[r],e[r]))return!1;return!0}function c(t,e){return!(!t||!e)&&("[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e||!0===e.call({},t))}function f(t,e,r,n){var i;d.isString(r)&&(n=r,r=null);try{e()}catch(t){i=t}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&s(i,r,"Missing expected exception"+n),!t&&c(i,r)&&s(i,r,"Got unwanted exception"+n),t&&i&&r&&!c(i,r)||!t&&i)throw i}var d=t("util/"),p=Array.prototype.slice,g=Object.prototype.hasOwnProperty,_=e.localExports=a;_.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var e=t.stackStartFunction||s;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=e.name,a=n.indexOf("\n"+i);if(a>=0){var l=n.indexOf("\n",a+1);n=n.substring(l+1)}this.stack=n}}},d.inherits(_.AssertionError,Error),_.fail=s,_.ok=a,_.equal=function(t,e,r){t!=e&&s(t,e,r,"==",_.equal)},_.notEqual=function(t,e,r){t==e&&s(t,e,r,"!=",_.notEqual)},_.deepEqual=function(t,e,r){l(t,e)||s(t,e,r,"deepEqual",_.deepEqual)},_.notDeepEqual=function(t,e,r){l(t,e)&&s(t,e,r,"notDeepEqual",_.notDeepEqual)},_.strictEqual=function(t,e,r){t!==e&&s(t,e,r,"===",_.strictEqual)},_.notStrictEqual=function(t,e,r){t===e&&s(t,e,r,"!==",_.notStrictEqual)},_.throws=function(t,e,r){f.apply(this,[!0].concat(p.call(arguments)))},_.doesNotThrow=function(t,e){f.apply(this,[!1].concat(p.call(arguments)))},_.ifError=function(t){if(t)throw t};var m=Object.keys||function(t){var e=[];for(var r in t)g.call(t,r)&&e.push(r);return e}},{"util/":214}],23:[function(t,e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){function e(t){var e=t.charCodeAt(0);return e===i||e===u?62:e===o||e===h?63:e<s?-1:e<s+10?e-s+26+26:e<l+26?e-l:e<a+26?e-a+26:void 0}var r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),o="/".charCodeAt(0),s="0".charCodeAt(0),a="a".charCodeAt(0),l="A".charCodeAt(0),u="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=function(t){function n(t){u[c++]=t}var i,o,s,a,l,u;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=t.length;l="="===t.charAt(h-2)?2:"="===t.charAt(h-1)?1:0,u=new r(3*t.length/4-l),s=l>0?t.length-4:t.length;var c=0;for(i=0,o=0;i<s;i+=4,o+=3)n((16711680&(a=e(t.charAt(i))<<18|e(t.charAt(i+1))<<12|e(t.charAt(i+2))<<6|e(t.charAt(i+3))))>>16),n((65280&a)>>8),n(255&a);return 2===l?n(255&(a=e(t.charAt(i))<<2|e(t.charAt(i+1))>>4)):1===l&&(n((a=e(t.charAt(i))<<10|e(t.charAt(i+1))<<4|e(t.charAt(i+2))>>2)>>8&255),n(255&a)),u},t.fromByteArray=function(t){function e(t){return n.charAt(t)}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;r<o;r+=3)a+=function(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}(i=(t[r]<<16)+(t[r+1]<<8)+t[r+2]);switch(s){case 1:a+=e((i=t[t.length-1])>>2),a+=e(i<<4&63),a+="==";break;case 2:a+=e((i=(t[t.length-2]<<8)+t[t.length-1])>>10),a+=e(i>>4&63),a+=e(i<<2&63),a+="="}return a}}(void 0===r?this.base64js={}:r)},{}],24:[function(t,e,r){(function(e,n){function i(t){if(t<r.DEFLATE||t>r.UNZIP)throw new TypeError("Bad argument");this.mode=t,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function o(t,e){for(var r=0;r<t.length;r++)this[e+r]=t[r]}var s=t("pako/lib/zlib/messages"),a=t("pako/lib/zlib/zstream"),l=t("pako/lib/zlib/deflate.js"),u=t("pako/lib/zlib/inflate.js"),h=t("pako/lib/zlib/constants");for(var c in h)r[c]=h[c];r.NONE=0,r.DEFLATE=1,r.INFLATE=2,r.GZIP=3,r.GUNZIP=4,r.DEFLATERAW=5,r.INFLATERAW=6,r.UNZIP=7,i.prototype.init=function(t,e,n,i,o){switch(this.windowBits=t,this.level=e,this.memLevel=n,this.strategy=i,this.mode!==r.GZIP&&this.mode!==r.GUNZIP||(this.windowBits+=16),this.mode===r.UNZIP&&(this.windowBits+=32),this.mode!==r.DEFLATERAW&&this.mode!==r.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new a,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:s=l.deflateInit2(this.strm,this.level,r.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:case r.UNZIP:var s=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}s===r.Z_OK?(this.write_in_progress=!1,this.init_done=!0):this._error(s)},i.prototype.params=function(){throw new Error("deflateParams Not supported")},i.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===r.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},i.prototype.write=function(t,r,n,i,o,s,a){this._writeCheck(),this.write_in_progress=!0;var l=this;return e.nextTick(function(){l.write_in_progress=!1;var e=l._write(t,r,n,i,o,s,a);l.callback(e[0],e[1]),l.pending_close&&l.close()}),this},i.prototype.writeSync=function(t,e,r,n,i,o,s){return this._writeCheck(),this._write(t,e,r,n,i,o,s)},i.prototype._write=function(t,e,i,s,a,h,c){if(this.write_in_progress=!0,t!==r.Z_NO_FLUSH&&t!==r.Z_PARTIAL_FLUSH&&t!==r.Z_SYNC_FLUSH&&t!==r.Z_FULL_FLUSH&&t!==r.Z_FINISH&&t!==r.Z_BLOCK)throw new Error("Invalid flush value");null==e&&(e=new n(0),s=0,i=0),a._set?a.set=a._set:a.set=o;var f=this.strm;switch(f.avail_in=s,f.input=e,f.next_in=i,f.avail_out=c,f.output=a,f.next_out=h,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:d=l.deflate(f,t);break;case r.UNZIP:case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:var d=u.inflate(f,t);break;default:throw new Error("Unknown mode "+this.mode)}return d!==r.Z_STREAM_END&&d!==r.Z_OK&&this._error(d),this.write_in_progress=!1,[f.avail_in,f.avail_out]},i.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===r.DEFLATE||this.mode===r.GZIP||this.mode===r.DEFLATERAW?l.deflateEnd(this.strm):u.inflateEnd(this.strm),this.mode=r.NONE)},i.prototype.reset=function(){switch(this.mode){case r.DEFLATE:case r.DEFLATERAW:t=l.deflateReset(this.strm);break;case r.INFLATE:case r.INFLATERAW:var t=u.inflateReset(this.strm)}t!==r.Z_OK&&this._error(t)},i.prototype._error=function(t){this.onerror(s[t]+": "+this.strm.msg,t),this.write_in_progress=!1,this.pending_close&&this.close()},r.Zlib=i}).call(this,t("v3go1D"),t("buffer").Buffer)},{buffer:28,"pako/lib/zlib/constants":192,"pako/lib/zlib/deflate.js":194,"pako/lib/zlib/inflate.js":196,"pako/lib/zlib/messages":198,"pako/lib/zlib/zstream":200,v3go1D:202}],25:[function(t,e,r){(function(e,n){function i(t,e,r){function i(){for(var e;null!==(e=t.read());)s.push(e),a+=e.length;t.once("readable",i)}function o(){var e=n.concat(s,a);s=[],r(null,e),t.close()}var s=[],a=0;t.on("error",function(e){t.removeListener("end",o),t.removeListener("readable",i),r(e)}),t.on("end",o),t.end(e),i()}function o(t,e){if("string"==typeof e&&(e=new n(e)),!n.isBuffer(e))throw new TypeError("Not a string or buffer");var r=g.Z_FINISH;return t._processChunk(e,r)}function s(t){if(!(this instanceof s))return new s(t);d.call(this,t,g.DEFLATE)}function a(t){if(!(this instanceof a))return new a(t);d.call(this,t,g.INFLATE)}function l(t){if(!(this instanceof l))return new l(t);d.call(this,t,g.GZIP)}function u(t){if(!(this instanceof u))return new u(t);d.call(this,t,g.GUNZIP)}function h(t){if(!(this instanceof h))return new h(t);d.call(this,t,g.DEFLATERAW)}function c(t){if(!(this instanceof c))return new c(t);d.call(this,t,g.INFLATERAW)}function f(t){if(!(this instanceof f))return new f(t);d.call(this,t,g.UNZIP)}function d(t,e){if(this._opts=t=t||{},this._chunkSize=t.chunkSize||r.Z_DEFAULT_CHUNK,p.call(this,t),t.flush&&t.flush!==g.Z_NO_FLUSH&&t.flush!==g.Z_PARTIAL_FLUSH&&t.flush!==g.Z_SYNC_FLUSH&&t.flush!==g.Z_FULL_FLUSH&&t.flush!==g.Z_FINISH&&t.flush!==g.Z_BLOCK)throw new Error("Invalid flush flag: "+t.flush);if(this._flushFlag=t.flush||g.Z_NO_FLUSH,t.chunkSize&&(t.chunkSize<r.Z_MIN_CHUNK||t.chunkSize>r.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<r.Z_MIN_WINDOWBITS||t.windowBits>r.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<r.Z_MIN_LEVEL||t.level>r.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<r.Z_MIN_MEMLEVEL||t.memLevel>r.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=r.Z_FILTERED&&t.strategy!=r.Z_HUFFMAN_ONLY&&t.strategy!=r.Z_RLE&&t.strategy!=r.Z_FIXED&&t.strategy!=r.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!n.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new g.Zlib(e);var i=this;this._hadError=!1,this._binding.onerror=function(t,e){i._binding=null,i._hadError=!0;var n=new Error(t);n.errno=e,n.code=r.codes[e],i.emit("error",n)};var o=r.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(o=t.level);var s=r.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(s=t.strategy),this._binding.init(t.windowBits||r.Z_DEFAULT_WINDOWBITS,o,t.memLevel||r.Z_DEFAULT_MEMLEVEL,s,t.dictionary),this._buffer=new n(this._chunkSize),this._offset=0,this._closed=!1,this._level=o,this._strategy=s,this.once("end",this.close)}var p=t("_stream_transform"),g=t("./binding"),_=t("util"),m=t("assert").ok;g.Z_MIN_WINDOWBITS=8,g.Z_MAX_WINDOWBITS=15,g.Z_DEFAULT_WINDOWBITS=15,g.Z_MIN_CHUNK=64,g.Z_MAX_CHUNK=1/0,g.Z_DEFAULT_CHUNK=16384,g.Z_MIN_MEMLEVEL=1,g.Z_MAX_MEMLEVEL=9,g.Z_DEFAULT_MEMLEVEL=8,g.Z_MIN_LEVEL=-1,g.Z_MAX_LEVEL=9,g.Z_DEFAULT_LEVEL=g.Z_DEFAULT_COMPRESSION,Object.keys(g).forEach(function(t){t.match(/^Z/)&&(r[t]=g[t])}),r.codes={Z_OK:g.Z_OK,Z_STREAM_END:g.Z_STREAM_END,Z_NEED_DICT:g.Z_NEED_DICT,Z_ERRNO:g.Z_ERRNO,Z_STREAM_ERROR:g.Z_STREAM_ERROR,Z_DATA_ERROR:g.Z_DATA_ERROR,Z_MEM_ERROR:g.Z_MEM_ERROR,Z_BUF_ERROR:g.Z_BUF_ERROR,Z_VERSION_ERROR:g.Z_VERSION_ERROR},Object.keys(r.codes).forEach(function(t){r.codes[r.codes[t]]=t}),r.Deflate=s,r.Inflate=a,r.Gzip=l,r.Gunzip=u,r.DeflateRaw=h,r.InflateRaw=c,r.Unzip=f,r.createDeflate=function(t){return new s(t)},r.createInflate=function(t){return new a(t)},r.createDeflateRaw=function(t){return new h(t)},r.createInflateRaw=function(t){return new c(t)},r.createGzip=function(t){return new l(t)},r.createGunzip=function(t){return new u(t)},r.createUnzip=function(t){return new f(t)},r.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new s(e),t,r)},r.deflateSync=function(t,e){return o(new s(e),t)},r.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new l(e),t,r)},r.gzipSync=function(t,e){return o(new l(e),t)},r.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new h(e),t,r)},r.deflateRawSync=function(t,e){return o(new h(e),t)},r.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new f(e),t,r)},r.unzipSync=function(t,e){return o(new f(e),t)},r.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new a(e),t,r)},r.inflateSync=function(t,e){return o(new a(e),t)},r.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new u(e),t,r)},r.gunzipSync=function(t,e){return o(new u(e),t)},r.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),i(new c(e),t,r)},r.inflateRawSync=function(t,e){return o(new c(e),t)},_.inherits(d,p),d.prototype.params=function(t,n,i){if(t<r.Z_MIN_LEVEL||t>r.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(n!=r.Z_FILTERED&&n!=r.Z_HUFFMAN_ONLY&&n!=r.Z_RLE&&n!=r.Z_FIXED&&n!=r.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==t||this._strategy!==n){var o=this;this.flush(g.Z_SYNC_FLUSH,function(){o._binding.params(t,n),o._hadError||(o._level=t,o._strategy=n,i&&i())})}else e.nextTick(i)},d.prototype.reset=function(){return this._binding.reset()},d.prototype._flush=function(t){this._transform(new n(0),"",t)},d.prototype.flush=function(t,r){var i=this._writableState;if(("function"==typeof t||void 0===t&&!r)&&(r=t,t=g.Z_FULL_FLUSH),i.ended)r&&e.nextTick(r);else if(i.ending)r&&this.once("end",r);else if(i.needDrain){var o=this;this.once("drain",function(){o.flush(r)})}else this._flushFlag=t,this.write(new n(0),"",r)},d.prototype.close=function(t){if(t&&e.nextTick(t),!this._closed){this._closed=!0,this._binding.close();var r=this;e.nextTick(function(){r.emit("close")})}},d.prototype._transform=function(t,e,r){var i,o=this._writableState,s=(o.ending||o.ended)&&(!t||o.length===t.length);if(null===!t&&!n.isBuffer(t))return r(new Error("invalid input"));s?i=g.Z_FINISH:(i=this._flushFlag,t.length>=o.length&&(this._flushFlag=this._opts.flush||g.Z_NO_FLUSH));this._processChunk(t,i,r)},d.prototype._processChunk=function(t,e,r){function i(h,d){if(!l._hadError){var p=s-d;if(m(p>=0,"have should not go down"),p>0){var g=l._buffer.slice(l._offset,l._offset+p);l._offset+=p,u?l.push(g):(c.push(g),f+=g.length)}if((0===d||l._offset>=l._chunkSize)&&(s=l._chunkSize,l._offset=0,l._buffer=new n(l._chunkSize)),0===d){if(a+=o-h,o=h,!u)return!0;var _=l._binding.write(e,t,a,o,l._buffer,l._offset,l._chunkSize);return _.callback=i,void(_.buffer=t)}if(!u)return!1;r()}}var o=t&&t.length,s=this._chunkSize-this._offset,a=0,l=this,u="function"==typeof r;if(!u){var h,c=[],f=0;this.on("error",function(t){h=t});do{var d=this._binding.writeSync(e,t,a,o,this._buffer,this._offset,s)}while(!this._hadError&&i(d[0],d[1]));if(this._hadError)throw h;var p=n.concat(c,f);return this.close(),p}var g=this._binding.write(e,t,a,o,this._buffer,this._offset,s);g.buffer=t,g.callback=i},_.inherits(s,d),_.inherits(a,d),_.inherits(l,d),_.inherits(u,d),_.inherits(h,d),_.inherits(c,d),_.inherits(f,d)}).call(this,t("v3go1D"),t("buffer").Buffer)},{"./binding":24,_stream_transform:208,assert:22,buffer:28,util:214,v3go1D:202}],26:[function(t,e,r){},{}],27:[function(t,e,r){function n(t){if(t&&!a.isEncoding(t))throw new Error("Unknown encoding: "+t)}function i(t){return t.toString(this.encoding)}function o(t){var e=this.charReceived=t.length%2;return this.charLength=e?2:0,e}function s(t){var e=this.charReceived=t.length%3;return this.charLength=e?3:0,e}var a=t("buffer").Buffer,l=r.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),n(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=i)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};l.prototype.write=function(t){for(var e="",r=0;this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,r,n),this.charReceived+=n-r,r=n,this.charReceived<this.charLength)return"";if(!((s=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&s<=56319)){if(this.charReceived=this.charLength=0,n==t.length)return e;t=t.slice(n,t.length);break}this.charLength+=this.surrogateSize,e=""}var i=this.detectIncompleteChar(t),o=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-i,o),this.charReceived=i,o-=i);var o=(e+=t.toString(this.encoding,0,o)).length-1,s=e.charCodeAt(o);if(s>=55296&&s<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(e.charAt(e.length-1),this.encoding),e.substring(0,o)}return e},l.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}return e},l.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}},{buffer:28}],28:[function(t,e,r){function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);var i=typeof t;if("base64"===e&&"string"===i)for(t=P(t);t.length%4!=0;)t+="=";var o;if("number"===i)o=I(t);else if("string"===i)o=n.byteLength(t,e);else{if("object"!==i)throw new Error("First argument needs to be a number, array or string.");o=I(t.length)}var s;n._useTypedArrays?s=n._augment(new Uint8Array(o)):((s=this).length=o,s._isBuffer=!0);var a;if(n._useTypedArrays&&"number"==typeof t.byteLength)s._set(t);else if(T(t))for(a=0;a<o;a++)n.isBuffer(t)?s[a]=t.readUInt8(a):s[a]=t[a];else if("string"===i)s.write(t,0,e);else if("number"===i&&!n._useTypedArrays&&!r)for(a=0;a<o;a++)s[a]=0;return s}function i(t,e,r,i){r=Number(r)||0;var o=t.length-r;i?(i=Number(i))>o&&(i=o):i=o;var s=e.length;G(s%2==0,"Invalid hex string"),i>s/2&&(i=s/2);for(var a=0;a<i;a++){var l=parseInt(e.substr(2*a,2),16);G(!isNaN(l),"Invalid hex string"),t[r+a]=l}return n._charsWritten=2*a,a}function o(t,e,r,i){return n._charsWritten=z(N(e),t,r,i)}function s(t,e,r,i){return n._charsWritten=z(O(e),t,r,i)}function a(t,e,r,n){return s(t,e,r,n)}function l(t,e,r,i){return n._charsWritten=z(D(e),t,r,i)}function u(t,e,r,i){return n._charsWritten=z(F(e),t,r,i)}function h(t,e,r){return 0===e&&r===t.length?q.fromByteArray(t):q.fromByteArray(t.slice(e,r))}function c(t,e,r){var n="",i="";r=Math.min(t.length,r);for(var o=e;o<r;o++)t[o]<=127?(n+=R(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);return n+R(i)}function f(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;i++)n+=String.fromCharCode(t[i]);return n}function d(t,e,r){return f(t,e,r)}function p(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;o++)i+=B(t[o]);return i}function g(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function _(t,e,r,n){n||(G("boolean"==typeof r,"missing or invalid endian"),G(void 0!==e&&null!==e,"missing offset"),G(e+1<t.length,"Trying to read beyond buffer length"));var i=t.length;if(!(e>=i)){var o;return r?(o=t[e],e+1<i&&(o|=t[e+1]<<8)):(o=t[e]<<8,e+1<i&&(o|=t[e+1])),o}}function m(t,e,r,n){n||(G("boolean"==typeof r,"missing or invalid endian"),G(void 0!==e&&null!==e,"missing offset"),G(e+3<t.length,"Trying to read beyond buffer length"));var i=t.length;if(!(e>=i)){var o;return r?(e+2<i&&(o=t[e+2]<<16),e+1<i&&(o|=t[e+1]<<8),o|=t[e],e+3<i&&(o+=t[e+3]<<24>>>0)):(e+1<i&&(o=t[e+1]<<16),e+2<i&&(o|=t[e+2]<<8),e+3<i&&(o|=t[e+3]),o+=t[e]<<24>>>0),o}}function v(t,e,r,n){if(n||(G("boolean"==typeof r,"missing or invalid endian"),G(void 0!==e&&null!==e,"missing offset"),G(e+1<t.length,"Trying to read beyond buffer length")),!(e>=t.length)){var i=_(t,e,r,!0);return 32768&i?-1*(65535-i+1):i}}function y(t,e,r,n){if(n||(G("boolean"==typeof r,"missing or invalid endian"),G(void 0!==e&&null!==e,"missing offset"),G(e+3<t.length,"Trying to read beyond buffer length")),!(e>=t.length)){var i=m(t,e,r,!0);return 2147483648&i?-1*(4294967295-i+1):i}}function b(t,e,r,n){return n||(G("boolean"==typeof r,"missing or invalid endian"),G(e+3<t.length,"Trying to read beyond buffer length")),Z.read(t,e,r,23,4)}function w(t,e,r,n){return n||(G("boolean"==typeof r,"missing or invalid endian"),G(e+7<t.length,"Trying to read beyond buffer length")),Z.read(t,e,r,52,8)}function x(t,e,r,n,i){i||(G(void 0!==e&&null!==e,"missing value"),G("boolean"==typeof n,"missing or invalid endian"),G(void 0!==r&&null!==r,"missing offset"),G(r+1<t.length,"trying to write beyond buffer length"),M(e,65535));var o=t.length;if(!(r>=o))for(var s=0,a=Math.min(o-r,2);s<a;s++)t[r+s]=(e&255<<8*(n?s:1-s))>>>8*(n?s:1-s)}function S(t,e,r,n,i){i||(G(void 0!==e&&null!==e,"missing value"),G("boolean"==typeof n,"missing or invalid endian"),G(void 0!==r&&null!==r,"missing offset"),G(r+3<t.length,"trying to write beyond buffer length"),M(e,4294967295));var o=t.length;if(!(r>=o))for(var s=0,a=Math.min(o-r,4);s<a;s++)t[r+s]=e>>>8*(n?s:3-s)&255}function C(t,e,r,n,i){i||(G(void 0!==e&&null!==e,"missing value"),G("boolean"==typeof n,"missing or invalid endian"),G(void 0!==r&&null!==r,"missing offset"),G(r+1<t.length,"Trying to write beyond buffer length"),U(e,32767,-32768)),r>=t.length||(e>=0?x(t,e,r,n,i):x(t,65535+e+1,r,n,i))}function E(t,e,r,n,i){i||(G(void 0!==e&&null!==e,"missing value"),G("boolean"==typeof n,"missing or invalid endian"),G(void 0!==r&&null!==r,"missing offset"),G(r+3<t.length,"Trying to write beyond buffer length"),U(e,2147483647,-2147483648)),r>=t.length||(e>=0?S(t,e,r,n,i):S(t,4294967295+e+1,r,n,i))}function A(t,e,r,n,i){i||(G(void 0!==e&&null!==e,"missing value"),G("boolean"==typeof n,"missing or invalid endian"),G(void 0!==r&&null!==r,"missing offset"),G(r+3<t.length,"Trying to write beyond buffer length"),H(e,3.4028234663852886e38,-3.4028234663852886e38)),r>=t.length||Z.write(t,e,r,n,23,4)}function k(t,e,r,n,i){i||(G(void 0!==e&&null!==e,"missing value"),G("boolean"==typeof n,"missing or invalid endian"),G(void 0!==r&&null!==r,"missing offset"),G(r+7<t.length,"Trying to write beyond buffer length"),H(e,1.7976931348623157e308,-1.7976931348623157e308)),r>=t.length||Z.write(t,e,r,n,52,8)}function P(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function j(t,e,r){return"number"!=typeof t?r:(t=~~t)>=e?e:t>=0?t:(t+=e)>=0?t:0}function I(t){return(t=~~Math.ceil(+t))<0?0:t}function L(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function T(t){return L(t)||n.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n<=127)e.push(t.charCodeAt(r));else{var i=r;n>=55296&&n<=57343&&r++;for(var o=encodeURIComponent(t.slice(i,r+1)).substr(1).split("%"),s=0;s<o.length;s++)e.push(parseInt(o[s],16))}}return e}function O(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e}function F(t){for(var e,r,n,i=[],o=0;o<t.length;o++)r=(e=t.charCodeAt(o))>>8,n=e%256,i.push(n),i.push(r);return i}function D(t){return q.toByteArray(t)}function z(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);i++)e[i+r]=t[i];return i}function R(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function M(t,e){G("number"==typeof t,"cannot write a non-number as a number"),G(t>=0,"specified a negative value for writing an unsigned value"),G(t<=e,"value is larger than maximum value for type"),G(Math.floor(t)===t,"value has a fractional component")}function U(t,e,r){G("number"==typeof t,"cannot write a non-number as a number"),G(t<=e,"value larger than maximum allowed value"),G(t>=r,"value smaller than minimum allowed value"),G(Math.floor(t)===t,"value has a fractional component")}function H(t,e,r){G("number"==typeof t,"cannot write a non-number as a number"),G(t<=e,"value larger than maximum allowed value"),G(t>=r,"value smaller than minimum allowed value")}function G(t,e){if(!t)throw new Error(e||"Failed assertion")}var q=t("base64-js"),Z=t("ieee754");r.Buffer=n,r.SlowBuffer=n,r.INSPECT_MAX_BYTES=50,n.poolSize=8192,n._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),n.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},n.byteLength=function(t,e){var r;switch(t+="",e||"utf8"){case"hex":r=t.length/2;break;case"utf8":case"utf-8":r=N(t).length;break;case"ascii":case"binary":case"raw":r=t.length;break;case"base64":r=D(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*t.length;break;default:throw new Error("Unknown encoding")}return r},n.concat=function(t,e){if(G(L(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new n(0);if(1===t.length)return t[0];var r;if("number"!=typeof e)for(e=0,r=0;r<t.length;r++)e+=t[r].length;var i=new n(e),o=0;for(r=0;r<t.length;r++){var s=t[r];s.copy(i,o),o+=s.length}return i},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var h=n;n=e,e=r,r=h}e=Number(e)||0;var c=this.length-e;r?(r=Number(r))>c&&(r=c):r=c;var f;switch(n=String(n||"utf8").toLowerCase()){case"hex":f=i(this,t,e,r);break;case"utf8":case"utf-8":f=o(this,t,e,r);break;case"ascii":f=s(this,t,e,r);break;case"binary":f=a(this,t,e,r);break;case"base64":f=l(this,t,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":f=u(this,t,e,r);break;default:throw new Error("Unknown encoding")}return f},n.prototype.toString=function(t,e,r){var n=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(r=void 0!==r?Number(r):r=n.length)===e)return"";var i;switch(t){case"hex":i=p(n,e,r);break;case"utf8":case"utf-8":i=c(n,e,r);break;case"ascii":i=f(n,e,r);break;case"binary":i=d(n,e,r);break;case"base64":i=h(n,e,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=g(n,e,r);break;default:throw new Error("Unknown encoding")}return i},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},n.prototype.copy=function(t,e,r,i){var o=this;if(r||(r=0),i||0===i||(i=this.length),e||(e=0),i!==r&&0!==t.length&&0!==o.length){G(i>=r,"sourceEnd < sourceStart"),G(e>=0&&e<t.length,"targetStart out of bounds"),G(r>=0&&r<o.length,"sourceStart out of bounds"),G(i>=0&&i<=o.length,"sourceEnd out of bounds"),i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var s=i-r;if(s<100||!n._useTypedArrays)for(var a=0;a<s;a++)t[a+e]=this[a+r];else t._set(this.subarray(r,r+s),e)}},n.prototype.slice=function(t,e){var r=this.length;if(t=j(t,r,0),e=j(e,r,r),n._useTypedArrays)return n._augment(this.subarray(t,e));for(var i=e-t,o=new n(i,void 0,!0),s=0;s<i;s++)o[s]=this[s+t];return o},n.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},n.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},n.prototype.readUInt8=function(t,e){if(e||(G(void 0!==t&&null!==t,"missing offset"),G(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},n.prototype.readUInt16LE=function(t,e){return _(this,t,!0,e)},n.prototype.readUInt16BE=function(t,e){return _(this,t,!1,e)},n.prototype.readUInt32LE=function(t,e){return m(this,t,!0,e)},n.prototype.readUInt32BE=function(t,e){return m(this,t,!1,e)},n.prototype.readInt8=function(t,e){if(e||(G(void 0!==t&&null!==t,"missing offset"),G(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},n.prototype.readInt16LE=function(t,e){return v(this,t,!0,e)},n.prototype.readInt16BE=function(t,e){return v(this,t,!1,e)},n.prototype.readInt32LE=function(t,e){return y(this,t,!0,e)},n.prototype.readInt32BE=function(t,e){return y(this,t,!1,e)},n.prototype.readFloatLE=function(t,e){return b(this,t,!0,e)},n.prototype.readFloatBE=function(t,e){return b(this,t,!1,e)},n.prototype.readDoubleLE=function(t,e){return w(this,t,!0,e)},n.prototype.readDoubleBE=function(t,e){return w(this,t,!1,e)},n.prototype.writeUInt8=function(t,e,r){r||(G(void 0!==t&&null!==t,"missing value"),G(void 0!==e&&null!==e,"missing offset"),G(e<this.length,"trying to write beyond buffer length"),M(t,255)),e>=this.length||(this[e]=t)},n.prototype.writeUInt16LE=function(t,e,r){x(this,t,e,!0,r)},n.prototype.writeUInt16BE=function(t,e,r){x(this,t,e,!1,r)},n.prototype.writeUInt32LE=function(t,e,r){S(this,t,e,!0,r)},n.prototype.writeUInt32BE=function(t,e,r){S(this,t,e,!1,r)},n.prototype.writeInt8=function(t,e,r){r||(G(void 0!==t&&null!==t,"missing value"),G(void 0!==e&&null!==e,"missing offset"),G(e<this.length,"Trying to write beyond buffer length"),U(t,127,-128)),e>=this.length||(t>=0?this.writeUInt8(t,e,r):this.writeUInt8(255+t+1,e,r))},n.prototype.writeInt16LE=function(t,e,r){C(this,t,e,!0,r)},n.prototype.writeInt16BE=function(t,e,r){C(this,t,e,!1,r)},n.prototype.writeInt32LE=function(t,e,r){E(this,t,e,!0,r)},n.prototype.writeInt32BE=function(t,e,r){E(this,t,e,!1,r)},n.prototype.writeFloatLE=function(t,e,r){A(this,t,e,!0,r)},n.prototype.writeFloatBE=function(t,e,r){A(this,t,e,!1,r)},n.prototype.writeDoubleLE=function(t,e,r){k(this,t,e,!0,r)},n.prototype.writeDoubleBE=function(t,e,r){k(this,t,e,!1,r)},n.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),G("number"==typeof t&&!isNaN(t),"value is not a number"),G(r>=e,"end < start"),r!==e&&0!==this.length){G(e>=0&&e<this.length,"start out of bounds"),G(r>=0&&r<=this.length,"end out of bounds");for(var n=e;n<r;n++)this[n]=t}},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;n<e;n++)if(t[n]=B(this[n]),n===r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},n.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(n._useTypedArrays)return new n(this).buffer;for(var t=new Uint8Array(this.length),e=0,r=t.length;e<r;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var W=n.prototype;n._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=W.get,t.set=W.set,t.write=W.write,t.toString=W.toString,t.toLocaleString=W.toString,t.toJSON=W.toJSON,t.copy=W.copy,t.slice=W.slice,t.readUInt8=W.readUInt8,t.readUInt16LE=W.readUInt16LE,t.readUInt16BE=W.readUInt16BE,t.readUInt32LE=W.readUInt32LE,t.readUInt32BE=W.readUInt32BE,t.readInt8=W.readInt8,t.readInt16LE=W.readInt16LE,t.readInt16BE=W.readInt16BE,t.readInt32LE=W.readInt32LE,t.readInt32BE=W.readInt32BE,t.readFloatLE=W.readFloatLE,t.readFloatBE=W.readFloatBE,t.readDoubleLE=W.readDoubleLE,t.readDoubleBE=W.readDoubleBE,t.writeUInt8=W.writeUInt8,t.writeUInt16LE=W.writeUInt16LE,t.writeUInt16BE=W.writeUInt16BE,t.writeUInt32LE=W.writeUInt32LE,t.writeUInt32BE=W.writeUInt32BE,t.writeInt8=W.writeInt8,t.writeInt16LE=W.writeInt16LE,t.writeInt16BE=W.writeInt16BE,t.writeInt32LE=W.writeInt32LE,t.writeInt32BE=W.writeInt32BE,t.writeFloatLE=W.writeFloatLE,t.writeFloatBE=W.writeFloatBE,t.writeDoubleLE=W.writeDoubleLE,t.writeDoubleBE=W.writeDoubleBE,t.fill=W.fill,t.inspect=W.inspect,t.toArrayBuffer=W.toArrayBuffer,t}},{"base64-js":23,ieee754:185}],29:[function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}e.localExports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,o,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[t],a(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),l=1;l<n;l++)o[l-1]=arguments[l];r.apply(this,o)}else if(s(r)){for(n=arguments.length,o=new Array(n-1),l=1;l<n;l++)o[l-1]=arguments[l];for(n=(u=r.slice()).length,l=0;l<n;l++)u[l].apply(this,o)}return!0},n.prototype.addListener=function(t,e){if(!i(e))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned){var r;(r=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,o,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],o=r.length,n=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(r)){for(a=o;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){n=a;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.listenerCount=function(t,e){return t._events&&t._events[e]?i(t._events[e])?1:t._events[e].length:0}},{}],30:[function(t,e,r){(function(r,n){function i(t){return t&&"object"==typeof t&&"default"in t?t.default:t}function o(t,e,r){if(r.get){var n=r.get;r.get=function(){var t=n.call(this);return w(this,e,{value:t}),t}}else if("function"==typeof r.value){var i=r.value;return{get:function(){function t(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e.length>0?e[0]:"value";if(r.has(o))return r.get(o);var s=i.apply(this,e);return r.set(o,s),s}var r=new C;return w(this,e,{value:t}),t}}}}function s(t,e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return 1===t&&K[n]?K[n]:X[t][e]}function a(t,e){for(var r=0,n=t.length-1;r<=n;){var i=r+n>>1,o=e(t[i]);if(o<0)n=i-1;else{if(!(o>0))return i;r=i+1}}return-1}function l(t,e){for(var r=[];t<e;)r.push(t++);return r}function u(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function h(t){for(var e=t.length,r=0;r<e;){var n=t.charCodeAt(r++);if(55296<=n&&n<=56319&&r<e){var i=t.charCodeAt(r);56320<=i&&i<=57343&&(r++,n=((1023&n)<<10)+(1023&i)+65536)}var o=P.getScript(n);if("Common"!==o&&"Inherited"!==o&&"Unknown"!==o)return gt[o]}return gt.Unknown}function c(t){for(var e=0;e<t.length;e++){var r=t[e],n=P.getScript(r);if("Common"!==n&&"Inherited"!==n&&"Unknown"!==n)return gt[n]}return gt.Unknown}function f(t){return St[t]?"rtl":"ltr"}function d(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function p(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var g=i(t("restructure")),_=i(t("babel-runtime/core-js/object/get-own-property-descriptor")),m=i(t("babel-runtime/core-js/get-iterator")),v=i(t("babel-runtime/core-js/object/freeze")),y=i(t("babel-runtime/core-js/object/keys")),b=i(t("babel-runtime/helpers/typeof")),w=i(t("babel-runtime/core-js/object/define-property")),x=i(t("babel-runtime/helpers/classCallCheck")),S=i(t("babel-runtime/helpers/createClass")),C=i(t("babel-runtime/core-js/map")),E=i(t("babel-runtime/core-js/string/from-code-point")),A=i(t("babel-runtime/core-js/array/from")),k=i(t("babel-runtime/core-js/set")),P=i(t("unicode-properties")),j=i(t("babel-runtime/helpers/possibleConstructorReturn")),I=i(t("babel-runtime/helpers/inherits")),L=i(t("clone")),T={};T.logErrors=!1;var B=[];T.registerFormat=function(t){B.push(t)},T.create=function(t,e){for(var r=0;r<B.length;r++){var n=B[r];if(n.probe(t)){var i=new n(new g.DecodeStream(t));return e?i.getFont(e):i}}throw new Error("Unknown font format")};var N=new g.Struct({firstCode:g.uint16,entryCount:g.uint16,idDelta:g.int16,idRangeOffset:g.uint16}),O=new g.Struct({startCharCode:g.uint32,endCharCode:g.uint32,glyphID:g.uint32}),F=new g.Struct({startUnicodeValue:g.uint24,additionalCount:g.uint8}),D=new g.Struct({unicodeValue:g.uint24,glyphID:g.uint16}),z=new g.Array(F,g.uint32),R=new g.Array(D,g.uint32),M=new g.Struct({varSelector:g.uint24,defaultUVS:new g.Pointer(g.uint32,z,{type:"parent"}),nonDefaultUVS:new g.Pointer(g.uint32,R,{type:"parent"})}),U=new g.VersionedStruct(g.uint16,{0:{length:g.uint16,language:g.uint16,codeMap:new g.LazyArray(g.uint8,256)},2:{length:g.uint16,language:g.uint16,subHeaderKeys:new g.Array(g.uint16,256),subHeaderCount:function(t){return Math.max.apply(Math,t.subHeaderKeys)},subHeaders:new g.LazyArray(N,"subHeaderCount"),glyphIndexArray:new g.LazyArray(g.uint16,"subHeaderCount")},4:{length:g.uint16,language:g.uint16,segCountX2:g.uint16,segCount:function(t){return t.segCountX2>>1},searchRange:g.uint16,entrySelector:g.uint16,rangeShift:g.uint16,endCode:new g.LazyArray(g.uint16,"segCount"),reservedPad:new g.Reserved(g.uint16),startCode:new g.LazyArray(g.uint16,"segCount"),idDelta:new g.LazyArray(g.int16,"segCount"),idRangeOffset:new g.LazyArray(g.uint16,"segCount"),glyphIndexArray:new g.LazyArray(g.uint16,function(t){return(t.length-t._currentOffset)/2})},6:{length:g.uint16,language:g.uint16,firstCode:g.uint16,entryCount:g.uint16,glyphIndices:new g.LazyArray(g.uint16,"entryCount")},8:{reserved:new g.Reserved(g.uint16),length:g.uint32,language:g.uint16,is32:new g.LazyArray(g.uint8,8192),nGroups:g.uint32,groups:new g.LazyArray(O,"nGroups")},10:{reserved:new g.Reserved(g.uint16),length:g.uint32,language:g.uint32,firstCode:g.uint32,entryCount:g.uint32,glyphIndices:new g.LazyArray(g.uint16,"numChars")},12:{reserved:new g.Reserved(g.uint16),length:g.uint32,language:g.uint32,nGroups:g.uint32,groups:new g.LazyArray(O,"nGroups")},13:{reserved:new g.Reserved(g.uint16),length:g.uint32,language:g.uint32,nGroups:g.uint32,groups:new g.LazyArray(O,"nGroups")},14:{length:g.uint32,numRecords:g.uint32,varSelectors:new g.LazyArray(M,"numRecords")}}),H=new g.Struct({platformID:g.uint16,encodingID:g.uint16,table:new g.Pointer(g.uint32,U,{type:"parent",lazy:!0})}),G=new g.Struct({version:g.uint16,numSubtables:g.uint16,tables:new g.Array(H,"numSubtables")}),q=new g.Struct({version:g.int32,revision:g.int32,checkSumAdjustment:g.uint32,magicNumber:g.uint32,flags:g.uint16,unitsPerEm:g.uint16,created:new g.Array(g.int32,2),modified:new g.Array(g.int32,2),xMin:g.int16,yMin:g.int16,xMax:g.int16,yMax:g.int16,macStyle:new g.Bitfield(g.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:g.uint16,fontDirectionHint:g.int16,indexToLocFormat:g.int16,glyphDataFormat:g.int16}),Z=new g.Struct({version:g.int32,ascent:g.int16,descent:g.int16,lineGap:g.int16,advanceWidthMax:g.uint16,minLeftSideBearing:g.int16,minRightSideBearing:g.int16,xMaxExtent:g.int16,caretSlopeRise:g.int16,caretSlopeRun:g.int16,caretOffset:g.int16,reserved:new g.Reserved(g.int16,4),metricDataFormat:g.int16,numberOfMetrics:g.uint16}),W=new g.Struct({advance:g.uint16,bearing:g.int16}),V=new g.Struct({metrics:new g.LazyArray(W,function(t){return t.parent.hhea.numberOfMetrics}),bearings:new g.LazyArray(g.int16,function(t){return t.parent.maxp.numGlyphs-t.parent.hhea.numberOfMetrics})}),Y=new g.Struct({version:g.int32,numGlyphs:g.uint16,maxPoints:g.uint16,maxContours:g.uint16,maxComponentPoints:g.uint16,maxComponentContours:g.uint16,maxZones:g.uint16,maxTwilightPoints:g.uint16,maxStorage:g.uint16,maxFunctionDefs:g.uint16,maxInstructionDefs:g.uint16,maxStackElements:g.uint16,maxSizeOfInstructions:g.uint16,maxComponentElements:g.uint16,maxComponentDepth:g.uint16}),X=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],K={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},J=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],Q=new g.Struct({platformID:g.uint16,encodingID:g.uint16,languageID:g.uint16,nameID:g.uint16,length:g.uint16,string:new g.Pointer(g.uint16,new g.String("length",function(t){return s(t.platformID,t.encodingID,t.languageID)}),{type:"parent",relativeTo:"parent.stringOffset",allowNull:!1})}),$=new g.Struct({length:g.uint16,tag:new g.Pointer(g.uint16,new g.String("length","utf16be"),{type:"parent",relativeTo:"stringOffset"})}),tt=new g.VersionedStruct(g.uint16,{0:{count:g.uint16,stringOffset:g.uint16,records:new g.Array(Q,"count")},1:{count:g.uint16,stringOffset:g.uint16,records:new g.Array(Q,"count"),langTagCount:g.uint16,langTags:new g.Array($,"langTagCount")}}),et=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];tt.process=function(t){for(var e={},r=this.records,n=Array.isArray(r),i=0,r=n?r:m(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var s=o,a=J[s.platformID][s.languageID];null==a&&null!=this.langTags&&s.languageID>=32768&&(a=this.langTags[s.languageID-32768].tag),null==a&&(a=s.platformID+"-"+s.languageID);var l=s.nameID>=256?"fontFeatures":et[s.nameID]||s.nameID;null==e[l]&&(e[l]={});var u=e[l];s.nameID>=256&&(u=u[s.nameID]||(u[s.nameID]={})),"string"!=typeof s.string&&"string"==typeof u[a]||(u[a]=s.string)}this.records=e},tt.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var t=[];for(var e in this.records){var r=this.records[e];"fontFeatures"!==e&&(t.push({platformID:3,encodingID:1,languageID:1033,nameID:et.indexOf(e),length:n.byteLength(r.en,"utf16le"),string:r.en}),"postscriptName"===e&&t.push({platformID:1,encodingID:0,languageID:0,nameID:et.indexOf(e),length:r.en.length,string:r.en}))}this.records=t,this.count=t.length,this.stringOffset=tt.size(this,null,!1)}};var rt=new g.VersionedStruct(g.uint16,{header:{xAvgCharWidth:g.int16,usWeightClass:g.uint16,usWidthClass:g.uint16,fsType:new g.Bitfield(g.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:g.int16,ySubscriptYSize:g.int16,ySubscriptXOffset:g.int16,ySubscriptYOffset:g.int16,ySuperscriptXSize:g.int16,ySuperscriptYSize:g.int16,ySuperscriptXOffset:g.int16,ySuperscriptYOffset:g.int16,yStrikeoutSize:g.int16,yStrikeoutPosition:g.int16,sFamilyClass:g.int16,panose:new g.Array(g.uint8,10),ulCharRange:new g.Array(g.uint32,4),vendorID:new g.String(4),fsSelection:new g.Bitfield(g.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:g.uint16,usLastCharIndex:g.uint16},0:{},1:{typoAscender:g.int16,typoDescender:g.int16,typoLineGap:g.int16,winAscent:g.uint16,winDescent:g.uint16,codePageRange:new g.Array(g.uint32,2)},2:{typoAscender:g.int16,typoDescender:g.int16,typoLineGap:g.int16,winAscent:g.uint16,winDescent:g.uint16,codePageRange:new g.Array(g.uint32,2),xHeight:g.int16,capHeight:g.int16,defaultChar:g.uint16,breakChar:g.uint16,maxContent:g.uint16},5:{typoAscender:g.int16,typoDescender:g.int16,typoLineGap:g.int16,winAscent:g.uint16,winDescent:g.uint16,codePageRange:new g.Array(g.uint32,2),xHeight:g.int16,capHeight:g.int16,defaultChar:g.uint16,breakChar:g.uint16,maxContent:g.uint16,usLowerOpticalPointSize:g.uint16,usUpperOpticalPointSize:g.uint16}}),nt=rt.versions;nt[3]=nt[4]=nt[2];var it=new g.VersionedStruct(g.fixed32,{header:{italicAngle:g.fixed32,underlinePosition:g.int16,underlineThickness:g.int16,isFixedPitch:g.uint32,minMemType42:g.uint32,maxMemType42:g.uint32,minMemType1:g.uint32,maxMemType1:g.uint32},1:{},2:{numberOfGlyphs:g.uint16,glyphNameIndex:new g.Array(g.uint16,"numberOfGlyphs"),names:new g.Array(new g.String(g.uint8))},2.5:{numberOfGlyphs:g.uint16,offsets:new g.Array(g.uint8,"numberOfGlyphs")},3:{},4:{map:new g.Array(g.uint32,function(t){return t.parent.maxp.numGlyphs})}}),ot=new g.VersionedStruct("head.indexToLocFormat",{0:{offsets:new g.Array(g.uint16)},1:{offsets:new g.Array(g.uint32)}});ot.process=function(){if(0===this.version)for(var t=0;t<this.offsets.length;t++)this.offsets[t]<<=1},ot.preEncode=function(){if(null==this.version&&(this.version=this.offsets[this.offsets.length-1]>65535?1:0,0===this.version))for(var t=0;t<this.offsets.length;t++)this.offsets[t]>>>=1};var st=new g.Array(new g.Buffer),at={};at.cmap=G,at.head=q,at.hhea=Z,at.hmtx=V,at.maxp=Y,at.name=tt,at["OS/2"]=rt,at.post=it,at.loca=ot,at.glyf=st;var lt=new g.Struct({tag:new g.String(4),checkSum:g.uint32,offset:new g.Pointer(g.uint32,"void",{type:"global"}),length:g.uint32}),ut=new g.Struct({tag:new g.String(4),numTables:g.uint16,searchRange:g.uint16,entrySelector:g.uint16,rangeShift:g.uint16,tables:new g.Array(lt,"numTables")});ut.process=function(){for(var t={},e=this.tables,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i;t[o.tag]=o}this.tables=t},ut.preEncode=function(t){var e=[];for(var r in this.tables){var n=this.tables[r];n&&e.push({tag:r,checkSum:0,offset:new g.VoidPointer(at[r],n),length:at[r].size(n)})}this.tag="true",this.numTables=e.length,this.tables=e,this.searchRange=16*Math.floor(Math.log(this.numTables)/Math.LN2),this.entrySelector=Math.floor(this.searchRange/Math.LN2),this.rangeShift=16*this.numTables-this.searchRange};var ht;try{var ct=window.iconv}catch(t){}var ft=(ht=function(){function t(e){if(x(this,t),this.encoding=null,this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap&&ct)for(var r=e.tables,n=Array.isArray(r),i=0,r=n?r:m(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var a=o,l=s(a.platformID,a.encodingID,a.table.language-1);ct.encodingExists(l)&&(this.cmap=a.table,this.encoding=l)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(e,[[0,5]]),this.uvs&&14!==this.uvs.version&&(this.uvs=null)}return t.prototype.findSubtable=function(t,e){for(var r=e,n=Array.isArray(r),i=0,r=n?r:m(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}for(var s=o,a=s[0],l=s[1],u=t.tables,h=Array.isArray(u),c=0,u=h?u:m(u);;){var f;if(h){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var d=f;if(d.platformID===a&&d.encodingID===l)return d.table}}return null},t.prototype.lookup=function(t,e){if(this.encoding){var r=ct.encode(E(t),this.encoding);t=0;for(var n=0;n<r.length;n++)t=t<<8|r[n]}else if(e){var i=this.getVariationSelector(t,e);if(i)return i}var o=this.cmap;switch(o.version){case 0:return o.codeMap.get(t)||0;case 4:for(var s=0,a=o.segCount-1;s<=a;){var l=s+a>>1;if(t<o.startCode.get(l))a=l-1;else{if(!(t>o.endCode.get(l))){var u=o.idRangeOffset.get(l),h=void 0;if(0===u)h=t+o.idDelta.get(l);else{var c=u/2+(t-o.startCode.get(l))-(o.segCount-l);0!==(h=o.glyphIndexArray.get(c)||0)&&(h+=o.idDelta.get(l))}return 65535&h}s=l+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return o.glyphIndices.get(t-o.firstCode)||0;case 12:case 13:for(var f=0,d=o.nGroups-1;f<=d;){var p=f+d>>1,g=o.groups.get(p);if(t<g.startCharCode)d=p-1;else{if(!(t>g.endCharCode))return 12===o.version?g.glyphID+(t-g.startCharCode):g.glyphID;f=p+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+o.version)}},t.prototype.getVariationSelector=function(t,e){if(!this.uvs)return 0;var r=this.uvs.varSelectors.toArray(),n=a(r,function(t){return e-t.varSelector}),i=r[n];return-1!==n&&i.defaultUVS&&(n=a(i.defaultUVS,function(e){return t<e.startUnicodeValue?-1:t>e.startUnicodeValue+e.additionalCount?1:0})),-1!==n&&i.nonDefaultUVS&&-1!==(n=a(i.nonDefaultUVS,function(e){return t-e.unicodeValue}))?i.nonDefaultUVS[n].glyphID:0},t.prototype.getCharacterSet=function(){var t=this.cmap;switch(t.version){case 0:return l(0,t.codeMap.length);case 4:for(var e=[],r=t.endCode.toArray(),n=0;n<r.length;n++){var i=r[n]+1,o=t.startCode.get(n);e.push.apply(e,l(o,i))}return e;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return l(t.firstCode,t.firstCode+t.glyphIndices.length);case 12:case 13:for(var s=[],a=t.groups.toArray(),u=Array.isArray(a),h=0,a=u?a:m(a);;){var c;if(u){if(h>=a.length)break;c=a[h++]}else{if((h=a.next()).done)break;c=h.value}var f=c;s.push.apply(s,l(f.startCharCode,f.endCharCode+1))}return s;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+t.version)}},t.prototype.codePointsForGlyph=function(t){var e=this.cmap;switch(e.version){case 0:for(var r=[],n=0;n<256;n++)e.codeMap.get(n)===t&&r.push(n);return r;case 4:for(var i=[],o=0;o<e.segCount;o++)for(var s=e.endCode.get(o),a=e.startCode.get(o),u=e.idRangeOffset.get(o),h=e.idDelta.get(o),c=a;c<=s;c++){var f=0;if(0===u)f=c+h;else{var d=u/2+(c-a)-(e.segCount-o);0!==(f=e.glyphIndexArray.get(d)||0)&&(f+=h)}f===t&&i.push(c)}return i;case 12:for(var p=[],g=e.groups.toArray(),_=Array.isArray(g),v=0,g=_?g:m(g);;){var y;if(_){if(v>=g.length)break;y=g[v++]}else{if((v=g.next()).done)break;y=v.value}var b=y;t>=b.glyphID&&t<=b.glyphID+(b.endCharCode-b.startCharCode)&&p.push(b.startCharCode+(t-b.glyphID))}return p;case 13:for(var w=[],x=e.groups.toArray(),S=Array.isArray(x),C=0,x=S?x:m(x);;){var E;if(S){if(C>=x.length)break;E=x[C++]}else{if((C=x.next()).done)break;E=C.value}var A=E;t===A.glyphID&&w.push.apply(w,l(A.startCharCode,A.endCharCode+1))}return w;default:throw new Error("Unknown cmap format "+e.version)}},t}(),u(ht.prototype,"getCharacterSet",[o],_(ht.prototype,"getCharacterSet"),ht.prototype),u(ht.prototype,"codePointsForGlyph",[o],_(ht.prototype,"codePointsForGlyph"),ht.prototype),ht),dt=function(){function t(e){x(this,t),this.font=e}return t.prototype.positionGlyphs=function(t,e){for(var r=0,n=0,i=0;i<t.length;i++)t[i].isMark?n=i:(r!==n&&this.positionCluster(t,e,r,n),r=n=i);return r!==n&&this.positionCluster(t,e,r,n),e},t.prototype.positionCluster=function(t,e,r,n){var i=t[r],o=i.cbox.copy();i.codePoints.length>1&&(o.minX+=(i.codePoints.length-1)*o.width/i.codePoints.length);for(var s=-e[r].xAdvance,a=0,l=this.font.unitsPerEm/16,u=r+1;u<=n;u++){var h=t[u],c=h.cbox,f=e[u],d=this.getCombiningClass(h.codePoints[0]);if("Not_Reordered"!==d){switch(f.xOffset=f.yOffset=0,d){case"Double_Above":case"Double_Below":f.xOffset+=o.minX-c.width/2-c.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":f.xOffset+=o.minX-c.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":f.xOffset+=o.maxX-c.width-c.minX;break;default:f.xOffset+=o.minX+(o.width-c.width)/2-c.minX}switch(d){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==d&&"Attached_Below"!==d||(o.minY+=l),f.yOffset=-o.minY-c.maxY,o.minY+=c.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==d&&"Attached_Above_Right"!==d||(o.maxY+=l),f.yOffset=o.maxY-c.minY,o.maxY+=c.height}f.xAdvance=f.yAdvance=0,f.xOffset+=s,f.yOffset+=a}else s-=f.xAdvance,a-=f.yAdvance}},t.prototype.getCombiningClass=function(t){var e=P.getCombiningClass(t);if(3584==(-256&t))if("Not_Reordered"===e)switch(t){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===t)return"Below_Right";switch(e){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return e},t}(),pt=function(){function t(e,r,n,i){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1/0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1/0;x(this,t),this.minX=o,this.minY=s,this.maxX=a,this.maxY=l}return t.prototype.addPoint=function(t,e){Math.abs(t)!==1/0&&(t<this.minX&&(this.minX=t),t>this.maxX&&(this.maxX=t)),Math.abs(e)!==1/0&&(e<this.minY&&(this.minY=e),e>this.maxY&&(this.maxY=e))},t.prototype.copy=function(){return new t(this.minX,this.minY,this.maxX,this.maxY)},S(t,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),t}(),gt={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi  ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},_t={};for(var mt in gt){var vt=gt[mt];if(Array.isArray(vt))for(var yt=vt,bt=Array.isArray(yt),wt=0,yt=bt?yt:m(yt);;){var xt;if(bt){if(wt>=yt.length)break;xt=yt[wt++]}else{if((wt=yt.next()).done)break;xt=wt.value}_t[xt]=mt}else _t[vt]=mt}for(var St={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0},Ct=function(){function t(e,r,n,i,o){if(x(this,t),this.glyphs=e,this.positions=null,this.script=n,this.language=i||null,this.direction=o||f(n),this.features={},Array.isArray(r))for(var s=r,a=Array.isArray(s),l=0,s=a?s:m(s);;){var u;if(a){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var h=u;this.features[h]=!0}else"object"===(void 0===r?"undefined":b(r))&&(this.features=r)}return S(t,[{key:"advanceWidth",get:function(){for(var t=0,e=this.positions,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}t+=i.xAdvance}return t}},{key:"advanceHeight",get:function(){for(var t=0,e=this.positions,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}t+=i.yAdvance}return t}},{key:"bbox",get:function(){for(var t=new pt,e=0,r=0,n=0;n<this.glyphs.length;n++){var i=this.glyphs[n],o=this.positions[n],s=i.bbox;t.addPoint(s.minX+e+o.xOffset,s.minY+r+o.yOffset),t.addPoint(s.maxX+e+o.xOffset,s.maxY+r+o.yOffset),e+=o.xAdvance,r+=o.yAdvance}return t}}]),t}(),Et=function t(e){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;x(this,t),this.xAdvance=r,this.yAdvance=n,this.xOffset=i,this.yOffset=o},At=function(){function t(e){x(this,t),this.font=e,this.unicodeLayoutEngine=null,this.kernProcessor=null}return t.prototype.layout=function(t,e,r,n,i){if("string"==typeof e&&(i=n,n=r,r=e,e=[]),"string"==typeof t){null==r&&(r=h(t));d=this.font.glyphsForString(t)}else{if(null==r){for(var o=[],s=t,a=Array.isArray(s),l=0,s=a?s:m(s);;){var u;if(a){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var f=u;o.push.apply(o,f.codePoints)}r=c(o)}var d=t}var p=new Ct(d,e,r,n,i);return 0===d.length?(p.positions=[],p):(this.engine&&this.engine.setup&&this.engine.setup(p),this.substitute(p),this.position(p),this.hideDefaultIgnorables(p.glyphs,p.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),p)},t.prototype.substitute=function(t){this.engine&&this.engine.substitute&&this.engine.substitute(t)},t.prototype.position=function(t){t.positions=t.glyphs.map(function(t){return new Et(t.advanceWidth)});var e=null;this.engine&&this.engine.position&&(e=this.engine.position(t)),e||this.engine&&!this.engine.fallbackPosition||(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new dt(this.font)),this.unicodeLayoutEngine.positionGlyphs(t.glyphs,t.positions))},t.prototype.hideDefaultIgnorables=function(t,e){for(var r=this.font.glyphForCodePoint(32),n=0;n<t.length;n++)this.isDefaultIgnorable(t[n].codePoints[0])&&(t[n]=r,e[n].xAdvance=0,e[n].yAdvance=0)},t.prototype.isDefaultIgnorable=function(t){var e=t>>16;if(0===e)switch(t>>8){case 0:return 173===t;case 3:return 847===t;case 6:return 1564===t;case 23:return 6068<=t&&t<=6069;case 24:return 6155<=t&&t<=6158;case 32:return 8203<=t&&t<=8207||8234<=t&&t<=8238||8288<=t&&t<=8303;case 254:return 65024<=t&&t<=65039||65279===t;case 255:return 65520<=t&&t<=65528;default:return!1}else switch(e){case 1:return 113824<=t&&t<=113827||119155<=t&&t<=119162;case 14:return 917504<=t&&t<=921599;default:return!1}},t.prototype.getAvailableFeatures=function(t,e){var r=[];return this.engine&&r.push.apply(r,this.engine.getAvailableFeatures(t,e)),this.font.kern&&-1===r.indexOf("kern")&&r.push("kern"),r},t.prototype.stringsForGlyph=function(t){for(var e=new k,r=this.font._cmapProcessor.codePointsForGlyph(t),n=Array.isArray(r),i=0,r=n?r:m(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var s=o;e.add(E(s))}if(this.engine&&this.engine.stringsForGlyph)for(var a=this.engine.stringsForGlyph(t),l=Array.isArray(a),u=0,a=l?a:m(a);;){var h;if(l){if(u>=a.length)break;h=a[u++]}else{if((u=a.next()).done)break;h=u.value}var c=h;e.add(c)}return A(e)},t}(),kt={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Pt=function(){function t(){x(this,t),this.commands=[],this._bbox=null,this._cbox=null}return t.prototype.toFunction=function(){var t=this.commands.map(function(t){return"  ctx."+t.command+"("+t.args.join(", ")+");"});return new Function("ctx",t.join("\n"))},t.prototype.toSVG=function(){return this.commands.map(function(t){var e=t.args.map(function(t){return Math.round(100*t)/100});return""+kt[t.command]+e.join(" ")}).join("")},t.prototype.mapPoints=function(e){for(var r=new t,n=this.commands,i=Array.isArray(n),o=0,n=i?n:m(n);;){var s;if(i){if(o>=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}for(var a=s,l=[],u=0;u<a.args.length;u+=2){var h=e(a.args[u],a.args[u+1]),c=h[0],f=h[1];l.push(c,f)}r[a.command].apply(r,l)}return r},t.prototype.transform=function(t,e,r,n,i,o){return this.mapPoints(function(s,a){return s=t*s+r*a+i,a=e*s+n*a+o,[s,a]})},t.prototype.translate=function(t,e){return this.transform(1,0,0,1,t,e)},t.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t);return this.transform(e,r,-r,e,0,0)},t.prototype.scale=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.transform(t,0,0,e,0,0)},S(t,[{key:"cbox",get:function(){if(!this._cbox){for(var t=new pt,e=this.commands,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}for(var o=i,s=0;s<o.args.length;s+=2)t.addPoint(o.args[s],o.args[s+1])}this._cbox=v(t)}return this._cbox}},{key:"bbox",get:function(){if(this._bbox)return this._bbox;for(var t=new pt,e=0,r=0,n=function(t){return Math.pow(1-t,3)*C[P]+3*Math.pow(1-t,2)*t*E[P]+3*(1-t)*Math.pow(t,2)*A[P]+Math.pow(t,3)*k[P]},i=this.commands,o=Array.isArray(i),s=0,i=o?i:m(i);;){var a;if(o){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var l=a;switch(l.command){case"moveTo":case"lineTo":var u=l.args,h=u[0],c=u[1];t.addPoint(h,c),e=h,r=c;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===l.command)var f=l.args,d=f[0],p=f[1],g=e+2/3*(d-e),_=r+2/3*(p-r),y=(x=f[2])+2/3*(d-x),b=(S=f[3])+2/3*(p-S);else var w=l.args,g=w[0],_=w[1],y=w[2],b=w[3],x=w[4],S=w[5];t.addPoint(x,S);for(var C=[e,r],E=[g,_],A=[y,b],k=[x,S],P=0;P<=1;P++){var j=6*C[P]-12*E[P]+6*A[P],I=-3*C[P]+9*E[P]-9*A[P]+3*k[P];if(l=3*E[P]-3*C[P],0!==I){var L=Math.pow(j,2)-4*l*I;if(!(L<0)){var T=(-j+Math.sqrt(L))/(2*I);0<T&&T<1&&(0===P?t.addPoint(n(T),t.maxY):1===P&&t.addPoint(t.maxX,n(T)));var B=(-j-Math.sqrt(L))/(2*I);0<B&&B<1&&(0===P?t.addPoint(n(B),t.maxY):1===P&&t.addPoint(t.maxX,n(B)))}}else{if(0===j)continue;var N=-l/j;0<N&&N<1&&(0===P?t.addPoint(n(N),t.maxY):1===P&&t.addPoint(t.maxX,n(N)))}}e=x,r=S}}return this._bbox=v(t)}}]),t}(),jt=["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"],It=0;It<jt.length;It++)!function(){var t=jt[It];Pt.prototype[t]=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._bbox=this._cbox=null,this.commands.push({command:t,args:r}),this}}();var Lt,Tt,Bt=[".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"],Nt=(Lt=function(){function t(e,r,n){x(this,t),this.id=e,this.codePoints=r,this._font=n,this.isMark=this.codePoints.length>0&&this.codePoints.every(P.isMark),this.isLigature=this.codePoints.length>1}return t.prototype._getPath=function(){return new Pt},t.prototype._getCBox=function(){return this.path.cbox},t.prototype._getBBox=function(){return this.path.bbox},t.prototype._getTableMetrics=function(t){if(this.id<t.metrics.length)return t.metrics.get(this.id);var e=t.metrics.get(t.metrics.length-1);return{advance:e?e.advance:0,bearing:t.bearings.get(this.id-t.metrics.length)||0}},t.prototype._getMetrics=function(t){if(this._metrics)return this._metrics;var e=this._getTableMetrics(this._font.hmtx),r=e.advance,n=e.bearing;if(this._font.vmtx)var i=this._getTableMetrics(this._font.vmtx),o=i.advance,s=i.bearing;else{var a=void 0;if(void 0!==t&&null!==t||(t=this.cbox),(a=this._font["OS/2"])&&a.version>0)var o=Math.abs(a.typoAscender-a.typoDescender),s=a.typoAscender-t.maxY;else var l=this._font.hhea,o=Math.abs(l.ascent-l.descent),s=l.ascent-t.maxY}return this._font._variationProcessor&&this._font.HVAR&&(r+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:r,advanceHeight:o,leftBearing:n,topBearing:s}},t.prototype.getScaledPath=function(t){var e=1/this._font.unitsPerEm*t;return this.path.scale(e)},t.prototype._getName=function(){var t=this._font.post;if(!t)return null;switch(t.version){case 1:return Bt[this.id];case 2:var e=t.glyphNameIndex[this.id];return e<Bt.length?Bt[e]:t.names[e-Bt.length];case 2.5:return Bt[this.id+t.offsets[this.id]];case 4:return String.fromCharCode(t.map[this.id])}},t.prototype.render=function(t,e){t.save();var r=1/this._font.head.unitsPerEm*e;t.scale(r,r),this.path.toFunction()(t),t.fill(),t.restore()},S(t,[{key:"cbox",get:function(){return this._getCBox()}},{key:"bbox",get:function(){return this._getBBox()}},{key:"path",get:function(){return this._getPath()}},{key:"advanceWidth",get:function(){return this._getMetrics().advanceWidth}},{key:"advanceHeight",get:function(){return this._getMetrics().advanceHeight}},{key:"ligatureCaretPositions",get:function(){}},{key:"name",get:function(){return this._getName()}}]),t}(),d(Lt.prototype,"cbox",[o],_(Lt.prototype,"cbox"),Lt.prototype),d(Lt.prototype,"bbox",[o],_(Lt.prototype,"bbox"),Lt.prototype),d(Lt.prototype,"path",[o],_(Lt.prototype,"path"),Lt.prototype),d(Lt.prototype,"advanceWidth",[o],_(Lt.prototype,"advanceWidth"),Lt.prototype),d(Lt.prototype,"advanceHeight",[o],_(Lt.prototype,"advanceHeight"),Lt.prototype),d(Lt.prototype,"name",[o],_(Lt.prototype,"name"),Lt.prototype),Lt),Ot=new g.Struct({numberOfContours:g.int16,xMin:g.int16,yMin:g.int16,xMax:g.int16,yMax:g.int16}),Ft=function(){function t(e,r,n,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;x(this,t),this.onCurve=e,this.endContour=r,this.x=o,this.y=s}return t.prototype.copy=function(){return new t(this.onCurve,this.endContour,this.x,this.y)},t}(),Dt=function t(e,r,n){x(this,t),this.glyphID=e,this.dx=r,this.dy=n,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0},zt=function(t){function e(){return x(this,e),j(this,t.apply(this,arguments))}return I(e,t),e.prototype._getCBox=function(t){if(this._font._variationProcessor&&!t)return this.path.cbox;var e=this._font._getTableStream("glyf");e.pos+=this._font.loca.offsets[this.id];var r=Ot.decode(e),n=new pt(r.xMin,r.yMin,r.xMax,r.yMax);return v(n)},e.prototype._parseGlyphCoord=function(t,e,r,n){if(r){i=t.readUInt8();n||(i=-i),i+=e}else if(n)i=e;else var i=e+t.readInt16BE();return i},e.prototype._decode=function(){var t=this._font.loca.offsets[this.id];if(t===this._font.loca.offsets[this.id+1])return null;var e=this._font._getTableStream("glyf");e.pos+=t;var r=e.pos,n=Ot.decode(e);return n.numberOfContours>0?this._decodeSimple(n,e):n.numberOfContours<0&&this._decodeComposite(n,e,r),n},e.prototype._decodeSimple=function(t,e){t.points=[];var r=new g.Array(g.uint16,t.numberOfContours).decode(e);t.instructions=new g.Array(g.uint8,g.uint16).decode(e);for(var n=[],i=r[r.length-1]+1;n.length<i;){a=e.readUInt8();if(n.push(a),8&a)for(var o=e.readUInt8(),s=0;s<o;s++)n.push(a)}for(h=0;h<n.length;h++){var a=n[h],l=new Ft(!!(1&a),r.indexOf(h)>=0,0,0);t.points.push(l)}for(var u=0,h=0;h<n.length;h++){a=n[h];t.points[h].x=u=this._parseGlyphCoord(e,u,2&a,16&a)}for(var c=0,h=0;h<n.length;h++){a=n[h];t.points[h].y=c=this._parseGlyphCoord(e,c,4&a,32&a)}if(this._font._variationProcessor){var f=t.points.slice();f.push.apply(f,this._getPhantomPoints(t)),this._font._variationProcessor.transformPoints(this.id,f),t.phantomPoints=f.slice(-4)}},e.prototype._decodeComposite=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t.components=[];for(var n=!1,i=32;32&i;){i=e.readUInt16BE();var o=e.pos-r,s=e.readUInt16BE();if(n||(n=0!=(256&i)),1&i)var a=e.readInt16BE(),l=e.readInt16BE();else var a=e.readInt8(),l=e.readInt8();(c=new Dt(s,a,l)).pos=o,8&i?c.scaleX=c.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824:64&i?(c.scaleX=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,c.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824):128&i&&(c.scaleX=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,c.scale01=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,c.scale10=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,c.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824),t.components.push(c)}if(this._font._variationProcessor){for(var u=[],h=0;h<t.components.length;h++){var c=t.components[h];u.push(new Ft(!0,!0,c.dx,c.dy))}u.push.apply(u,this._getPhantomPoints(t)),this._font._variationProcessor.transformPoints(this.id,u),t.phantomPoints=u.splice(-4,4);for(var f=0;f<u.length;f++){var d=u[f];t.components[f].dx=d.x,t.components[f].dy=d.y}}return n},e.prototype._getPhantomPoints=function(t){var e=this._getCBox(!0);null==this._metrics&&(this._metrics=Nt.prototype._getMetrics.call(this,e));var r=this._metrics,n=r.advanceWidth,i=r.advanceHeight,o=r.leftBearing,s=r.topBearing;return[new Ft(!1,!0,t.xMin-o,0),new Ft(!1,!0,t.xMin-o+n,0),new Ft(!1,!0,0,t.yMax+s),new Ft(!1,!0,0,t.yMax+s+i)]},e.prototype._getContours=function(){var t=this._decode();if(!t)return[];var e=[];if(t.numberOfContours<0)for(var r=t.components,n=Array.isArray(r),i=0,r=n?r:m(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}for(var s=o,a=this._font.getGlyph(s.glyphID)._getContours(),l=0;l<a.length;l++)for(var u=a[l],h=0;h<u.length;h++){var c=u[h],f=c.x*s.scaleX+c.y*s.scale01+s.dx,d=c.y*s.scaleY+c.x*s.scale10+s.dy;e.push(new Ft(c.onCurve,c.endContour,f,d))}}else e=t.points||[];t.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=t.phantomPoints[1].x-t.phantomPoints[0].x,this._metrics.advanceHeight=t.phantomPoints[3].y-t.phantomPoints[2].y,this._metrics.leftBearing=t.xMin-t.phantomPoints[0].x,this._metrics.topBearing=t.phantomPoints[2].y-t.yMax);for(var p=[],g=[],_=0;_<e.length;_++){var v=e[_];g.push(v),v.endContour&&(p.push(g),g=[])}return p},e.prototype._getMetrics=function(){if(this._metrics)return this._metrics;var e=this._getCBox(!0);return t.prototype._getMetrics.call(this,e),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics},e.prototype._getPath=function(){for(var t=this._getContours(),e=new Pt,r=0;r<t.length;r++){var n=t[r],i=n[0],o=n[n.length-1],s=0;if(i.onCurve){f=null;s=1}else f=i=o.onCurve?o:new Ft(!1,!1,(i.x+o.x)/2,(i.y+o.y)/2);e.moveTo(i.x,i.y);for(var a=s;a<n.length;a++){var l=n[a],u=0===a?i:n[a-1];if(u.onCurve&&l.onCurve)e.lineTo(l.x,l.y);else if(u.onCurve&&!l.onCurve)f=l;else if(u.onCurve||l.onCurve){if(u.onCurve||!l.onCurve)throw new Error("Unknown TTF path state");e.quadraticCurveTo(f.x,f.y,l.x,l.y);f=null}else{var h=(u.x+l.x)/2,c=(u.y+l.y)/2;e.quadraticCurveTo(u.x,u.y,h,c);var f=l}}f&&e.quadraticCurveTo(f.x,f.y,i.x,i.y),e.closePath()}return e},e}(Nt),Rt=function(){function t(e){x(this,t),this.font=e,this.glyphs=[],this.mapping={},this.includeGlyph(0)}return t.prototype.includeGlyph=function(t){return"object"===(void 0===t?"undefined":b(t))&&(t=t.id),null==this.mapping[t]&&(this.glyphs.push(t),this.mapping[t]=this.glyphs.length-1),this.mapping[t]},t.prototype.encodeStream=function(){var t=this,e=new g.EncodeStream;return r.nextTick(function(){return t.encode(e),e.end()}),e},t}(),Mt=function(){function t(){x(this,t)}return t.size=function(t){return t>=0&&t<=255?1:2},t.encode=function(t,e){e>=0&&e<=255?t.writeUInt8(e):t.writeInt16BE(e)},t}(),Ut=new g.Struct({numberOfContours:g.int16,xMin:g.int16,yMin:g.int16,xMax:g.int16,yMax:g.int16,endPtsOfContours:new g.Array(g.uint16,"numberOfContours"),instructions:new g.Array(g.uint8,g.uint16),flags:new g.Array(g.uint8,0),xPoints:new g.Array(Mt,0),yPoints:new g.Array(Mt,0)}),Ht=function(){function t(){x(this,t)}return t.prototype.encodeSimple=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=[],i=[],o=[],s=0,a=0,l=0,u=0,h=0,c=0;c<t.commands.length;c++){for(var f=t.commands[c],d=0;d<f.args.length;d+=2){var p=f.args[d],_=f.args[d+1],m=0;if("quadraticCurveTo"===f.command&&2===d){var v=t.commands[c+1];if(v&&"quadraticCurveTo"===v.command){var y=(a+v.args[0])/2,b=(l+v.args[1])/2;if(p===y&&_===b)continue}}"quadraticCurveTo"===f.command&&0===d||(m|=1),m=this._encodePoint(p,a,n,m,2,16),(m=this._encodePoint(_,l,i,m,4,32))===u&&s<255?(o[o.length-1]|=8,s++):(s>0&&(o.push(s),s=0),o.push(m),u=m),a=p,l=_,h++}"closePath"===f.command&&r.push(h-1)}t.commands.length>1&&"closePath"!==t.commands[t.commands.length-1].command&&r.push(h-1);var w=t.bbox,x={numberOfContours:r.length,xMin:w.minX,yMin:w.minY,xMax:w.maxX,yMax:w.maxY,endPtsOfContours:r,instructions:e,flags:o,xPoints:n,yPoints:i},S=Ut.size(x),C=4-S%4,E=new g.EncodeStream(S+C);return Ut.encode(E,x),0!==C&&E.fill(0,C),E.buffer},t.prototype._encodePoint=function(t,e,r,n,i,o){var s=t-e;return t===e?n|=o:(-255<=s&&s<=255&&(n|=i,s<0?s=-s:n|=o),r.push(s)),n},t}(),Gt=function(t){function e(r){x(this,e);var n=j(this,t.call(this,r));return n.glyphEncoder=new Ht,n}return I(e,t),e.prototype._addGlyph=function(t){var e=this.font.getGlyph(t),r=e._decode(),i=this.font.loca.offsets[t],o=this.font.loca.offsets[t+1],s=this.font._getTableStream("glyf");s.pos+=i;var a=s.readBuffer(o-i);if(r&&r.numberOfContours<0){a=new n(a);for(var l=r.components,u=Array.isArray(l),h=0,l=u?l:m(l);;){var c;if(u){if(h>=l.length)break;c=l[h++]}else{if((h=l.next()).done)break;c=h.value}var f=c;t=this.includeGlyph(f.glyphID),a.writeUInt16BE(t,f.pos)}}else r&&this.font._variationProcessor&&(a=this.glyphEncoder.encodeSimple(e.path,r.instructions));return this.glyf.push(a),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:e.advanceWidth,bearing:e._getMetrics().leftBearing}),this.offset+=a.length,this.glyf.length-1},e.prototype.encode=function(t){this.glyf=[],this.offset=0,this.loca={offsets:[]},this.hmtx={metrics:[],bearings:[]};for(var e=0;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);var r=L(this.font.maxp);r.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset),at.loca.preEncode.call(this.loca);var n=L(this.font.head);n.indexToLocFormat=this.loca.version;var i=L(this.font.hhea);i.numberOfMetrics=this.hmtx.metrics.length,ut.encode(t,{tables:{head:n,hhea:i,loca:this.loca,maxp:r,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})},e}(Rt),qt=(Tt=function(){function t(e,r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;x(this,t),this.stream=e,this.variationCoords=n,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(var i in this.directory.tables){var o=this.directory.tables[i];at[i]&&o.length>0&&w(this,i,{get:this._getTable.bind(this,o)})}}return t.probe=function(t){var e=t.toString("ascii",0,4);return"true"===e||"OTTO"===e||e===String.fromCharCode(0,1,0,0)},t.prototype._getTable=function(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch(e){T.logErrors&&(console.error("Error decoding table "+t.tag),console.error(e.stack))}return this._tables[t.tag]},t.prototype._getTableStream=function(t){var e=this.directory.tables[t];return e?(this.stream.pos=e.offset,this.stream):null},t.prototype._decodeDirectory=function(){return this.directory=ut.decode(this.stream,{_startOffset:0})},t.prototype._decodeTable=function(t){var e=this.stream.pos,r=this._getTableStream(t.tag),n=at[t.tag].decode(r,this,t.length);return this.stream.pos=e,n},t.prototype.getName=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",r=this.name.records[t];return r?r[e]:null},t.prototype.hasGlyphForCodePoint=function(t){return!!this._cmapProcessor.lookup(t)},t.prototype.glyphForCodePoint=function(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])},t.prototype.glyphsForString=function(t){for(var e=[],r=t.length,n=0,i=-1,o=-1;n<=r;){var s=0,a=0;if(n<r){if(55296<=(s=t.charCodeAt(n++))&&s<=56319&&n<r){var l=t.charCodeAt(n);56320<=l&&l<=57343&&(n++,s=((1023&s)<<10)+(1023&l)+65536)}a=65024<=s&&s<=65039||917760<=s&&s<=917999?1:0}else n++;0===o&&1===a?e.push(this.getGlyph(this._cmapProcessor.lookup(i,s),[i,s])):0===o&&0===a&&e.push(this.glyphForCodePoint(i)),i=s,o=a}return e},t.prototype.layout=function(t,e,r,n,i){return this._layoutEngine.layout(t,e,r,n,i)},t.prototype.stringsForGlyph=function(t){return this._layoutEngine.stringsForGlyph(t)},t.prototype.getAvailableFeatures=function(t,e){return this._layoutEngine.getAvailableFeatures(t,e)},t.prototype._getBaseGlyph=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this._glyphs[t]||(this.directory.tables.glyf?this._glyphs[t]=new zt(t,e,this):this.directory.tables["CFF "]||this.directory.tables.CFF2),this._glyphs[t]||null},t.prototype.getGlyph=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this._glyphs[t]||this._getBaseGlyph(t,e),this._glyphs[t]||null},t.prototype.createSubset=function(){return new Gt(this)},t.prototype.getVariation=function(e){if(!this.directory.tables.fvar||!(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if("string"==typeof e&&(e=this.namedVariations[e]),"object"!==(void 0===e?"undefined":b(e)))throw new Error("Variation settings must be either a variation name or settings object.");var r=this.fvar.axis.map(function(t,r){var n=t.axisTag.trim();return n in e?Math.max(t.minValue,Math.min(t.maxValue,e[n])):t.defaultValue}),n=new g.DecodeStream(this.stream.buffer);n.pos=this._directoryPos;var i=new t(n,r);return i._tables=this._tables,i},t.prototype.getFont=function(t){return this.getVariation(t)},S(t,[{key:"postscriptName",get:function(){var t=this.name.records.postscriptName;return t?t[y(t)[0]]:null}},{key:"fullName",get:function(){return this.getName("fullName")}},{key:"familyName",get:function(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function(){return this.getName("fontSubfamily")}},{key:"copyright",get:function(){return this.getName("copyright")}},{key:"version",get:function(){return this.getName("version")}},{key:"ascent",get:function(){return this.hhea.ascent}},{key:"descent",get:function(){return this.hhea.descent}},{key:"lineGap",get:function(){return this.hhea.lineGap}},{key:"underlinePosition",get:function(){return this.post.underlinePosition}},{key:"underlineThickness",get:function(){return this.post.underlineThickness}},{key:"italicAngle",get:function(){return this.post.italicAngle}},{key:"capHeight",get:function(){var t=this["OS/2"];return t?t.capHeight:this.ascent}},{key:"xHeight",get:function(){var t=this["OS/2"];return t?t.xHeight:0}},{key:"numGlyphs",get:function(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function(){return this.head.unitsPerEm}},{key:"bbox",get:function(){return v(new pt(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function(){return new ft(this.cmap)}},{key:"characterSet",get:function(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function(){return new At(this)}},{key:"availableFeatures",get:function(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function(){var t={};if(!this.fvar)return t;for(var e=this.fvar.axis,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i;t[o.axisTag.trim()]={name:o.name.en,min:o.minValue,default:o.defaultValue,max:o.maxValue}}return t}},{key:"namedVariations",get:function(){var t={};if(!this.fvar)return t;for(var e=this.fvar.instance,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}for(var o=i,s={},a=0;a<this.fvar.axis.length;a++)s[this.fvar.axis[a].axisTag.trim()]=o.coord[a];t[o.name.en]=s}return t}},{key:"_variationProcessor",get:function(){if(!this.fvar)return null;var t=this.variationCoords;if(!t&&!this.CFF2)return null;t||(t=this.fvar.axis.map(function(t){return t.defaultValue}))}}]),t}(),p(Tt.prototype,"bbox",[o],_(Tt.prototype,"bbox"),Tt.prototype),p(Tt.prototype,"_cmapProcessor",[o],_(Tt.prototype,"_cmapProcessor"),Tt.prototype),p(Tt.prototype,"characterSet",[o],_(Tt.prototype,"characterSet"),Tt.prototype),p(Tt.prototype,"_layoutEngine",[o],_(Tt.prototype,"_layoutEngine"),Tt.prototype),p(Tt.prototype,"variationAxes",[o],_(Tt.prototype,"variationAxes"),Tt.prototype),p(Tt.prototype,"namedVariations",[o],_(Tt.prototype,"namedVariations"),Tt.prototype),p(Tt.prototype,"_variationProcessor",[o],_(Tt.prototype,"_variationProcessor"),Tt.prototype),Tt),Zt=new g.VersionedStruct(g.uint32,{65536:{numFonts:g.uint32,offsets:new g.Array(g.uint32,"numFonts")},131072:{numFonts:g.uint32,offsets:new g.Array(g.uint32,"numFonts"),dsigTag:g.uint32,dsigLength:g.uint32,dsigOffset:g.uint32}}),Wt=function(){function t(e){if(x(this,t),this.stream=e,"ttcf"!==e.readString(4))throw new Error("Not a TrueType collection");this.header=Zt.decode(e)}return t.probe=function(t){return"ttcf"===t.toString("ascii",0,4)},t.prototype.getFont=function(t){for(var e=this.header.offsets,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i,s=new g.DecodeStream(this.stream.buffer);s.pos=o;var a=new qt(s);if(a.postscriptName===t)return a}return null},S(t,[{key:"fonts",get:function(){for(var t=[],e=this.header.offsets,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i,s=new g.DecodeStream(this.stream.buffer);s.pos=o,t.push(new qt(s))}return t}}]),t}(),Vt=new g.String(g.uint8),Yt=(new g.Struct({len:g.uint32,buf:new g.Buffer("len")}),new g.Struct({id:g.uint16,nameOffset:g.int16,attr:g.uint8,dataOffset:g.uint24,handle:g.uint32})),Xt=new g.Struct({name:new g.String(4),maxTypeIndex:g.uint16,refList:new g.Pointer(g.uint16,new g.Array(Yt,function(t){return t.maxTypeIndex+1}),{type:"parent"})}),Kt=new g.Struct({length:g.uint16,types:new g.Array(Xt,function(t){return t.length+1})}),Jt=new g.Struct({reserved:new g.Reserved(g.uint8,24),typeList:new g.Pointer(g.uint16,Kt),nameListOffset:new g.Pointer(g.uint16,"void")}),Qt=new g.Struct({dataOffset:g.uint32,map:new g.Pointer(g.uint32,Jt),dataLength:g.uint32,mapLength:g.uint32}),$t=function(){function t(e){x(this,t),this.stream=e,this.header=Qt.decode(this.stream);for(var r=this.header.map.typeList.types,n=Array.isArray(r),i=0,r=n?r:m(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}for(var s=o,a=s.refList,l=Array.isArray(a),u=0,a=l?a:m(a);;){var h;if(l){if(u>=a.length)break;h=a[u++]}else{if((u=a.next()).done)break;h=u.value}var c=h;c.nameOffset>=0?(this.stream.pos=c.nameOffset+this.header.map.nameListOffset,c.name=Vt.decode(this.stream)):c.name=null}"sfnt"===s.name&&(this.sfnt=s)}}return t.probe=function(t){var e=new g.DecodeStream(t);try{var r=Qt.decode(e)}catch(t){return!1}for(var n=r.map.typeList.types,i=Array.isArray(n),o=0,n=i?n:m(n);;){var s;if(i){if(o>=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}if("sfnt"===s.name)return!0}return!1},t.prototype.getFont=function(t){if(!this.sfnt)return null;for(var e=this.sfnt.refList,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i,s=this.header.dataOffset+o.dataOffset+4,a=new g.DecodeStream(this.stream.buffer.slice(s)),l=new qt(a);if(l.postscriptName===t)return l}return null},S(t,[{key:"fonts",get:function(){for(var t=[],e=this.sfnt.refList,r=Array.isArray(e),n=0,e=r?e:m(e);;){var i;if(r){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var o=i,s=this.header.dataOffset+o.dataOffset+4,a=new g.DecodeStream(this.stream.buffer.slice(s));t.push(new qt(a))}return t}}]),t}();T.registerFormat(qt),T.registerFormat(Wt),T.registerFormat($t),e.localExports=T}).call(this,t("v3go1D"),t("buffer").Buffer)},{"babel-runtime/core-js/array/from":31,"babel-runtime/core-js/get-iterator":32,"babel-runtime/core-js/map":33,"babel-runtime/core-js/object/define-property":35,"babel-runtime/core-js/object/freeze":36,"babel-runtime/core-js/object/get-own-property-descriptor":37,"babel-runtime/core-js/object/keys":38,"babel-runtime/core-js/set":40,"babel-runtime/core-js/string/from-code-point":41,"babel-runtime/helpers/classCallCheck":44,"babel-runtime/helpers/createClass":45,"babel-runtime/helpers/inherits":46,"babel-runtime/helpers/possibleConstructorReturn":47,"babel-runtime/helpers/typeof":48,buffer:28,clone:49,restructure:164,"unicode-properties":183,v3go1D:202}],31:[function(t,e,r){e.localExports={default:t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":50}],32:[function(t,e,r){e.localExports={default:t("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":51}],33:[function(t,e,r){e.localExports={default:t("core-js/library/fn/map"),__esModule:!0}},{"core-js/library/fn/map":52}],34:[function(t,e,r){e.localExports={default:t("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":53}],35:[function(t,e,r){e.localExports={default:t("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":54}],36:[function(t,e,r){e.localExports={default:t("core-js/library/fn/object/freeze"),__esModule:!0}},{"core-js/library/fn/object/freeze":55}],37:[function(t,e,r){e.localExports={default:t("core-js/library/fn/object/get-own-property-descriptor"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-descriptor":56}],38:[function(t,e,r){e.localExports={default:t("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":57}],39:[function(t,e,r){e.localExports={default:t("core-js/library/fn/object/set-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/set-prototype-of":58}],40:[function(t,e,r){e.localExports={default:t("core-js/library/fn/set"),__esModule:!0}},{"core-js/library/fn/set":59}],41:[function(t,e,r){e.localExports={default:t("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":60}],42:[function(t,e,r){e.localExports={default:t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":61}],43:[function(t,e,r){e.localExports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":62}],44:[function(t,e,r){r.__esModule=!0,r.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},{}],45:[function(t,e,r){r.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(t("../core-js/object/define-property"));r.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),n.default(t,i.key,i)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},{"../core-js/object/define-property":35}],46:[function(t,e,r){function n(t){return t&&t.__esModule?t:{default:t}}r.__esModule=!0;var i=n(t("../core-js/object/set-prototype-of")),o=n(t("../core-js/object/create")),s=n(t("../helpers/typeof"));r.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":s.default(e)));t.prototype=o.default(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?i.default(t,e):t.__proto__=e)}},{"../core-js/object/create":34,"../core-js/object/set-prototype-of":39,"../helpers/typeof":48}],47:[function(t,e,r){r.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(t("../helpers/typeof"));r.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":n.default(e))&&"function"!=typeof e?t:e}},{"../helpers/typeof":48}],48:[function(t,e,r){function n(t){return t&&t.__esModule?t:{default:t}}r.__esModule=!0;var i=n(t("../core-js/symbol/iterator")),o=n(t("../core-js/symbol")),s="function"==typeof o.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};r.default="function"==typeof o.default&&"symbol"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":s(t)}},{"../core-js/symbol":42,"../core-js/symbol/iterator":43}],49:[function(t,e,r){(function(t){var r=function(){function e(r,i,o,s){function a(r,o){if(null===r)return null;if(0==o)return r;var c,f;if("object"!=typeof r)return r;if(e.__isArray(r))c=[];else if(e.__isRegExp(r))c=new RegExp(r.source,n(r)),r.lastIndex&&(c.lastIndex=r.lastIndex);else if(e.__isDate(r))c=new Date(r.getTime());else{if(h&&t.isBuffer(r))return c=t.allocUnsafe?t.allocUnsafe(r.length):new t(r.length),r.copy(c),c;void 0===s?(f=Object.getPrototypeOf(r),c=Object.create(f)):(c=Object.create(s),f=s)}if(i){var d=l.indexOf(r);if(-1!=d)return u[d];l.push(r),u.push(c)}for(var p in r){var g;f&&(g=Object.getOwnPropertyDescriptor(f,p)),g&&null==g.set||(c[p]=a(r[p],o-1))}return c}"object"==typeof i&&(o=i.depth,s=i.prototype,i.filter,i=i.circular);var l=[],u=[],h=void 0!==t;return void 0===i&&(i=!0),void 0===o&&(o=1/0),a(r,o)}function r(t){return Object.prototype.toString.call(t)}function n(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=r,e.__isDate=function(t){return"object"==typeof t&&"[object Date]"===r(t)},e.__isArray=function(t){return"object"==typeof t&&"[object Array]"===r(t)},e.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===r(t)},e.__getRegExpFlags=n,e}();"object"==typeof e&&e.localExports&&(e.localExports=r)}).call(this,t("buffer").Buffer)},{buffer:28}],50:[function(t,e,r){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),e.localExports=t("../../modules/_core").Array.from},{"../../modules/_core":77,"../../modules/es6.array.from":141,"../../modules/es6.string.iterator":153}],51:[function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.localExports=t("../modules/core.get-iterator")},{"../modules/core.get-iterator":140,"../modules/es6.string.iterator":153,"../modules/web.dom.iterable":163}],52:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.map"),t("../modules/es7.map.to-json"),t("../modules/es7.map.of"),t("../modules/es7.map.from"),e.localExports=t("../modules/_core").Map},{"../modules/_core":77,"../modules/es6.map":143,"../modules/es6.object.to-string":150,"../modules/es6.string.iterator":153,"../modules/es7.map.from":155,"../modules/es7.map.of":156,"../modules/es7.map.to-json":157,"../modules/web.dom.iterable":163}],53:[function(t,e,r){t("../../modules/es6.object.create");var n=t("../../modules/_core").Object;e.localExports=function(t,e){return n.create(t,e)}},{"../../modules/_core":77,"../../modules/es6.object.create":144}],54:[function(t,e,r){t("../../modules/es6.object.define-property");var n=t("../../modules/_core").Object;e.localExports=function(t,e,r){return n.defineProperty(t,e,r)}},{"../../modules/_core":77,"../../modules/es6.object.define-property":145}],55:[function(t,e,r){t("../../modules/es6.object.freeze"),e.localExports=t("../../modules/_core").Object.freeze},{"../../modules/_core":77,"../../modules/es6.object.freeze":146}],56:[function(t,e,r){t("../../modules/es6.object.get-own-property-descriptor");var n=t("../../modules/_core").Object;e.localExports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},{"../../modules/_core":77,"../../modules/es6.object.get-own-property-descriptor":147}],57:[function(t,e,r){t("../../modules/es6.object.keys"),e.localExports=t("../../modules/_core").Object.keys},{"../../modules/_core":77,"../../modules/es6.object.keys":148}],58:[function(t,e,r){t("../../modules/es6.object.set-prototype-of"),e.localExports=t("../../modules/_core").Object.setPrototypeOf},{"../../modules/_core":77,"../../modules/es6.object.set-prototype-of":149}],59:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.set"),t("../modules/es7.set.to-json"),t("../modules/es7.set.of"),t("../modules/es7.set.from"),e.localExports=t("../modules/_core").Set},{"../modules/_core":77,"../modules/es6.object.to-string":150,"../modules/es6.set":151,"../modules/es6.string.iterator":153,"../modules/es7.set.from":158,"../modules/es7.set.of":159,"../modules/es7.set.to-json":160,"../modules/web.dom.iterable":163}],60:[function(t,e,r){t("../../modules/es6.string.from-code-point"),e.localExports=t("../../modules/_core").String.fromCodePoint},{"../../modules/_core":77,"../../modules/es6.string.from-code-point":152}],61:[function(t,e,r){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),e.localExports=t("../../modules/_core").Symbol},{"../../modules/_core":77,"../../modules/es6.object.to-string":150,"../../modules/es6.symbol":154,"../../modules/es7.symbol.async-iterator":161,"../../modules/es7.symbol.observable":162}],62:[function(t,e,r){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),e.localExports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":137,"../../modules/es6.string.iterator":153,"../../modules/web.dom.iterable":163}],63:[function(t,e,r){e.localExports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],64:[function(t,e,r){e.localExports=function(){}},{}],65:[function(t,e,r){e.localExports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],66:[function(t,e,r){var n=t("./_is-object");e.localExports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":96}],67:[function(t,e,r){var n=t("./_for-of");e.localExports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},{"./_for-of":87}],68:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_to-length"),o=t("./_to-absolute-index");e.localExports=function(t){return function(e,r,s){var a,l=n(e),u=i(l.length),h=o(s,u);if(t&&r!=r){for(;u>h;)if((a=l[h++])!=a)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===r)return t||h||0;return!t&&-1}}},{"./_to-absolute-index":128,"./_to-iobject":130,"./_to-length":131}],69:[function(t,e,r){var n=t("./_ctx"),i=t("./_iobject"),o=t("./_to-object"),s=t("./_to-length"),a=t("./_array-species-create");e.localExports=function(t,e){var r=1==t,l=2==t,u=3==t,h=4==t,c=6==t,f=5==t||c,d=e||a;return function(e,a,p){for(var g,_,m=o(e),v=i(m),y=n(a,p,3),b=s(v.length),w=0,x=r?d(e,b):l?d(e,0):void 0;b>w;w++)if((f||w in v)&&(g=v[w],_=y(g,w,m),t))if(r)x[w]=_;else if(_)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(h)return!1;return c?-1:u||h?h:x}}},{"./_array-species-create":71,"./_ctx":79,"./_iobject":93,"./_to-length":131,"./_to-object":132}],70:[function(t,e,r){var n=t("./_is-object"),i=t("./_is-array"),o=t("./_wks")("species");e.localExports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":95,"./_is-object":96,"./_wks":138}],71:[function(t,e,r){var n=t("./_array-species-constructor");e.localExports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":70}],72:[function(t,e,r){var n=t("./_cof"),i=t("./_wks")("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};e.localExports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},{"./_cof":73,"./_wks":138}],73:[function(t,e,r){var n={}.toString;e.localExports=function(t){return n.call(t).slice(8,-1)}},{}],74:[function(t,e,r){var n=t("./_object-dp").f,i=t("./_object-create"),o=t("./_redefine-all"),s=t("./_ctx"),a=t("./_an-instance"),l=t("./_for-of"),u=t("./_iter-define"),h=t("./_iter-step"),c=t("./_set-species"),f=t("./_descriptors"),d=t("./_meta").fastKey,p=t("./_validate-collection"),g=f?"_s":"size",_=function(t,e){var r,n=d(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};e.localExports={getConstructor:function(t,e,r,u){var h=t(function(t,n){a(t,h,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=n&&l(n,r,t[u],t)});return o(h.prototype,{clear:function(){for(var t=p(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var r=p(this,e),n=_(r,t);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[g]--}return!!n},forEach:function(t){p(this,e);for(var r,n=s(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!_(p(this,e),t)}}),f&&n(h.prototype,"size",{get:function(){return p(this,e)[g]}}),h},def:function(t,e,r){var n,i,o=_(t,e);return o?o.v=r:(t._l=o={i:i=d(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:_,setStrong:function(t,e,r){u(t,e,function(t,r){this._t=p(t,e),this._k=r,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?h(0,r.k):"values"==e?h(0,r.v):h(0,[r.k,r.v]):(t._t=void 0,h(1))},r?"entries":"values",!r,!0),c(e)}}},{"./_an-instance":65,"./_ctx":79,"./_descriptors":81,"./_for-of":87,"./_iter-define":99,"./_iter-step":101,"./_meta":104,"./_object-create":105,"./_object-dp":106,"./_redefine-all":118,"./_set-species":123,"./_validate-collection":135}],75:[function(t,e,r){var n=t("./_classof"),i=t("./_array-from-iterable");e.localExports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},{"./_array-from-iterable":67,"./_classof":72}],76:[function(t,e,r){var n=t("./_global"),i=t("./_export"),o=t("./_meta"),s=t("./_fails"),a=t("./_hide"),l=t("./_redefine-all"),u=t("./_for-of"),h=t("./_an-instance"),c=t("./_is-object"),f=t("./_set-to-string-tag"),d=t("./_object-dp").f,p=t("./_array-methods")(0),g=t("./_descriptors");e.localExports=function(t,e,r,_,m,v){var y=n[t],b=y,w=m?"set":"add",x=b&&b.prototype,S={};return g&&"function"==typeof b&&(v||x.forEach&&!s(function(){(new b).entries().next()}))?(b=e(function(e,r){h(e,b,t,"_c"),e._c=new y,void 0!=r&&u(r,m,e[w],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!v||"clear"!=t)&&a(b.prototype,t,function(r,n){if(h(this,b,t),!e&&v&&!c(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i})}),v||d(b.prototype,"size",{get:function(){return this._c.size}})):(b=_.getConstructor(e,t,m,w),l(b.prototype,r),o.NEED=!0),f(b,t),S[t]=b,i(i.G+i.W+i.F,S),v||_.setStrong(b,t,m),b}},{"./_an-instance":65,"./_array-methods":69,"./_descriptors":81,"./_export":85,"./_fails":86,"./_for-of":87,"./_global":88,"./_hide":90,"./_is-object":96,"./_meta":104,"./_object-dp":106,"./_redefine-all":118,"./_set-to-string-tag":124}],77:[function(t,e,r){var n,i=e.localExports={version:"2.5.5"};"number"==typeof n&&(n=i)},{}],78:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.localExports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},{"./_object-dp":106,"./_property-desc":117}],79:[function(t,e,r){var n=t("./_a-function");e.localExports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":63}],80:[function(t,e,r){e.localExports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},{}],81:[function(t,e,r){e.localExports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":86}],82:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,o=n(i)&&n(i.createElement);e.localExports=function(t){return o?i.createElement(t):{}}},{"./_global":88,"./_is-object":96}],83:[function(t,e,r){e.localExports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],84:[function(t,e,r){var n=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie");e.localExports=function(t){var e=n(t),r=i.f;if(r)for(var s,a=r(t),l=o.f,u=0;a.length>u;)l.call(t,s=a[u++])&&e.push(s);return e}},{"./_object-gops":111,"./_object-keys":114,"./_object-pie":115}],85:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_ctx"),s=t("./_hide"),a=t("./_has"),l=function(t,e,r){var u,h,c,f=t&l.F,d=t&l.G,p=t&l.S,g=t&l.P,_=t&l.B,m=t&l.W,v=d?i:i[e]||(i[e]={}),y=v.prototype,b=d?n:p?n[e]:(n[e]||{}).prototype;d&&(r=e);for(u in r)(h=!f&&b&&void 0!==b[u])&&a(v,u)||(c=h?b[u]:r[u],v[u]=d&&"function"!=typeof b[u]?r[u]:_&&h?o(c,n):m&&b[u]==c?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[u]=c,t&l.R&&y&&!y[u]&&s(y,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.localExports=l},{"./_core":77,"./_ctx":79,"./_global":88,"./_has":89,"./_hide":90}],86:[function(t,e,r){e.localExports=function(t){try{return!!t()}catch(t){return!0}}},{}],87:[function(t,e,r){var n=t("./_ctx"),i=t("./_iter-call"),o=t("./_is-array-iter"),s=t("./_an-object"),a=t("./_to-length"),l=t("./core.get-iterator-method"),u={},h={};(r=e.localExports=function(t,e,r,c,f){var d,p,g,_,m=f?function(){return t}:l(t),v=n(r,c,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>y;y++)if((_=e?v(s(p=t[y])[0],p[1]):v(t[y]))===u||_===h)return _}else for(g=m.call(t);!(p=g.next()).done;)if((_=i(g,v,p.value,e))===u||_===h)return _}).BREAK=u,r.RETURN=h},{"./_an-object":66,"./_ctx":79,"./_is-array-iter":94,"./_iter-call":97,"./_to-length":131,"./core.get-iterator-method":139}],88:[function(t,e,r){var n,i=e.localExports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof n&&(n=i)},{}],89:[function(t,e,r){var n={}.hasOwnProperty;e.localExports=function(t,e){return n.call(t,e)}},{}],90:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.localExports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":81,"./_object-dp":106,"./_property-desc":117}],91:[function(t,e,r){var n=t("./_global").document;e.localExports=n&&n.documentElement},{"./_global":88}],92:[function(t,e,r){e.localExports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":81,"./_dom-create":82,"./_fails":86}],93:[function(t,e,r){var n=t("./_cof");e.localExports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":73}],94:[function(t,e,r){var n=t("./_iterators"),i=t("./_wks")("iterator"),o=Array.prototype;e.localExports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},{"./_iterators":102,"./_wks":138}],95:[function(t,e,r){var n=t("./_cof");e.localExports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":73}],96:[function(t,e,r){e.localExports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],97:[function(t,e,r){var n=t("./_an-object");e.localExports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},{"./_an-object":66}],98:[function(t,e,r){var n=t("./_object-create"),i=t("./_property-desc"),o=t("./_set-to-string-tag"),s={};t("./_hide")(s,t("./_wks")("iterator"),function(){return this}),e.localExports=function(t,e,r){t.prototype=n(s,{next:i(1,r)}),o(t,e+" Iterator")}},{"./_hide":90,"./_object-create":105,"./_property-desc":117,"./_set-to-string-tag":124,"./_wks":138}],99:[function(t,e,r){var n=t("./_library"),i=t("./_export"),o=t("./_redefine"),s=t("./_hide"),a=t("./_iterators"),l=t("./_iter-create"),u=t("./_set-to-string-tag"),h=t("./_object-gpo"),c=t("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.localExports=function(t,e,r,p,g,_,m){l(r,e,p);var v,y,b,w=function(t){if(!f&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",S="values"==g,C=!1,E=t.prototype,A=E[c]||E["@@iterator"]||g&&E[g],k=A||w(g),P=g?S?w("entries"):k:void 0,j="Array"==e?E.entries||A:A;if(j&&(b=h(j.call(new t)))!==Object.prototype&&b.next&&(u(b,x,!0),n||"function"==typeof b[c]||s(b,c,d)),S&&A&&"values"!==A.name&&(C=!0,k=function(){return A.call(this)}),n&&!m||!f&&!C&&E[c]||s(E,c,k),a[e]=k,a[x]=d,g)if(v={values:S?k:w("values"),keys:_?k:w("keys"),entries:P},m)for(y in v)y in E||o(E,y,v[y]);else i(i.P+i.F*(f||C),e,v);return v}},{"./_export":85,"./_hide":90,"./_iter-create":98,"./_iterators":102,"./_library":103,"./_object-gpo":112,"./_redefine":119,"./_set-to-string-tag":124,"./_wks":138}],100:[function(t,e,r){var n=t("./_wks")("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}e.localExports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},t(o)}catch(t){}return r}},{"./_wks":138}],101:[function(t,e,r){e.localExports=function(t,e){return{value:e,done:!!t}}},{}],102:[function(t,e,r){e.localExports={}},{}],103:[function(t,e,r){e.localExports=!0},{}],104:[function(t,e,r){var n=t("./_uid")("meta"),i=t("./_is-object"),o=t("./_has"),s=t("./_object-dp").f,a=0,l=Object.isExtensible||function(){return!0},u=!t("./_fails")(function(){return l(Object.preventExtensions({}))}),h=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},c=e.localExports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},onFreeze:function(t){return u&&c.NEED&&l(t)&&!o(t,n)&&h(t),t}}},{"./_fails":86,"./_has":89,"./_is-object":96,"./_object-dp":106,"./_uid":134}],105:[function(t,e,r){var n=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),s=t("./_shared-key")("IE_PROTO"),a=function(){},l=function(){var e,r=t("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;n--;)delete l.prototype[o[n]];return l()};e.localExports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[s]=t):r=l(),void 0===e?r:i(r,e)}},{"./_an-object":66,"./_dom-create":82,"./_enum-bug-keys":83,"./_html":91,"./_object-dps":107,"./_shared-key":125}],106:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":66,"./_descriptors":81,"./_ie8-dom-define":92,"./_to-primitive":133}],107:[function(t,e,r){var n=t("./_object-dp"),i=t("./_an-object"),o=t("./_object-keys");e.localExports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var r,s=o(e),a=s.length,l=0;a>l;)n.f(t,r=s[l++],e[r]);return t}},{"./_an-object":66,"./_descriptors":81,"./_object-dp":106,"./_object-keys":114}],108:[function(t,e,r){var n=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),s=t("./_to-primitive"),a=t("./_has"),l=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?u:function(t,e){if(t=o(t),e=s(e,!0),l)try{return u(t,e)}catch(t){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},{"./_descriptors":81,"./_has":89,"./_ie8-dom-define":92,"./_object-pie":115,"./_property-desc":117,"./_to-iobject":130,"./_to-primitive":133}],109:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_object-gopn").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return s.slice()}};e.localExports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(n(t))}},{"./_object-gopn":110,"./_to-iobject":130}],110:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":83,"./_object-keys-internal":113}],111:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],112:[function(t,e,r){var n=t("./_has"),i=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),s=Object.prototype;e.localExports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},{"./_has":89,"./_shared-key":125,"./_to-object":132}],113:[function(t,e,r){var n=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),s=t("./_shared-key")("IE_PROTO");e.localExports=function(t,e){var r,a=i(t),l=0,u=[];for(r in a)r!=s&&n(a,r)&&u.push(r);for(;e.length>l;)n(a,r=e[l++])&&(~o(u,r)||u.push(r));return u}},{"./_array-includes":68,"./_has":89,"./_shared-key":125,"./_to-iobject":130}],114:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.localExports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":83,"./_object-keys-internal":113}],115:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],116:[function(t,e,r){var n=t("./_export"),i=t("./_core"),o=t("./_fails");e.localExports=function(t,e){var r=(i.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},{"./_core":77,"./_export":85,"./_fails":86}],117:[function(t,e,r){e.localExports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],118:[function(t,e,r){var n=t("./_hide");e.localExports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},{"./_hide":90}],119:[function(t,e,r){e.localExports=t("./_hide")},{"./_hide":90}],120:[function(t,e,r){var n=t("./_export"),i=t("./_a-function"),o=t("./_ctx"),s=t("./_for-of");e.localExports=function(t){n(n.S,t,{from:function(t){var e,r,n,a,l=arguments[1];return i(this),(e=void 0!==l)&&i(l),void 0==t?new this:(r=[],e?(n=0,a=o(l,arguments[2],2),s(t,!1,function(t){r.push(a(t,n++))})):s(t,!1,r.push,r),new this(r))}})}},{"./_a-function":63,"./_ctx":79,"./_export":85,"./_for-of":87}],121:[function(t,e,r){var n=t("./_export");e.localExports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},{"./_export":85}],122:[function(t,e,r){var n=t("./_is-object"),i=t("./_an-object"),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.localExports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function(t,e){return o(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":66,"./_ctx":79,"./_is-object":96,"./_object-gopd":108}],123:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_object-dp"),s=t("./_descriptors"),a=t("./_wks")("species");e.localExports=function(t){var e="function"==typeof i[t]?i[t]:n[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},{"./_core":77,"./_descriptors":81,"./_global":88,"./_object-dp":106,"./_wks":138}],124:[function(t,e,r){var n=t("./_object-dp").f,i=t("./_has"),o=t("./_wks")("toStringTag");e.localExports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},{"./_has":89,"./_object-dp":106,"./_wks":138}],125:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.localExports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":126,"./_uid":134}],126:[function(t,e,r){var n=t("./_global"),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.localExports=function(t){return i[t]||(i[t]={})}},{"./_global":88}],127:[function(t,e,r){var n=t("./_to-integer"),i=t("./_defined");e.localExports=function(t){return function(e,r){var o,s,a=String(i(e)),l=n(r),u=a.length;return l<0||l>=u?t?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536}}},{"./_defined":80,"./_to-integer":129}],128:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.localExports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":129}],129:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.localExports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},{}],130:[function(t,e,r){var n=t("./_iobject"),i=t("./_defined");e.localExports=function(t){return n(i(t))}},{"./_defined":80,"./_iobject":93}],131:[function(t,e,r){var n=t("./_to-integer"),i=Math.min;e.localExports=function(t){return t>0?i(n(t),9007199254740991):0}},{"./_to-integer":129}],132:[function(t,e,r){var n=t("./_defined");e.localExports=function(t){return Object(n(t))}},{"./_defined":80}],133:[function(t,e,r){var n=t("./_is-object");e.localExports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":96}],134:[function(t,e,r){var n=0,i=Math.random();e.localExports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],135:[function(t,e,r){var n=t("./_is-object");e.localExports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{"./_is-object":96}],136:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_library"),s=t("./_wks-ext"),a=t("./_object-dp").f;e.localExports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},{"./_core":77,"./_global":88,"./_library":103,"./_object-dp":106,"./_wks-ext":137}],137:[function(t,e,r){r.f=t("./_wks")},{"./_wks":138}],138:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,s="function"==typeof o;(e.localExports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=n},{"./_global":88,"./_shared":126,"./_uid":134}],139:[function(t,e,r){var n=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.localExports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},{"./_classof":72,"./_core":77,"./_iterators":102,"./_wks":138}],140:[function(t,e,r){var n=t("./_an-object"),i=t("./core.get-iterator-method");e.localExports=t("./_core").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},{"./_an-object":66,"./_core":77,"./core.get-iterator-method":139}],141:[function(t,e,r){var n=t("./_ctx"),i=t("./_export"),o=t("./_to-object"),s=t("./_iter-call"),a=t("./_is-array-iter"),l=t("./_to-length"),u=t("./_create-property"),h=t("./core.get-iterator-method");i(i.S+i.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,c,f=o(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g,m=0,v=h(f);if(_&&(g=n(g,p>2?arguments[2]:void 0,2)),void 0==v||d==Array&&a(v))for(r=new d(e=l(f.length));e>m;m++)u(r,m,_?g(f[m],m):f[m]);else for(c=v.call(f),r=new d;!(i=c.next()).done;m++)u(r,m,_?s(c,g,[i.value,m],!0):i.value);return r.length=m,r}})},{"./_create-property":78,"./_ctx":79,"./_export":85,"./_is-array-iter":94,"./_iter-call":97,"./_iter-detect":100,"./_to-length":131,"./_to-object":132,"./core.get-iterator-method":139}],142:[function(t,e,r){var n=t("./_add-to-unscopables"),i=t("./_iter-step"),o=t("./_iterators"),s=t("./_to-iobject");e.localExports=t("./_iter-define")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":64,"./_iter-define":99,"./_iter-step":101,"./_iterators":102,"./_to-iobject":130}],143:[function(t,e,r){var n=t("./_collection-strong"),i=t("./_validate-collection");e.localExports=t("./_collection")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},{"./_collection":76,"./_collection-strong":74,"./_validate-collection":135}],144:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{create:t("./_object-create")})},{"./_export":85,"./_object-create":105}],145:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":81,"./_export":85,"./_object-dp":106}],146:[function(t,e,r){var n=t("./_is-object"),i=t("./_meta").onFreeze;t("./_object-sap")("freeze",function(t){return function(e){return t&&n(e)?t(i(e)):e}})},{"./_is-object":96,"./_meta":104,"./_object-sap":116}],147:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_object-gopd").f;t("./_object-sap")("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},{"./_object-gopd":108,"./_object-sap":116,"./_to-iobject":130}],148:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(n(t))}})},{"./_object-keys":114,"./_object-sap":116,"./_to-object":132}],149:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":85,"./_set-proto":122}],150:[function(t,e,r){e.localExports=t(26)},{}],151:[function(t,e,r){var n=t("./_collection-strong"),i=t("./_validate-collection");e.localExports=t("./_collection")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},{"./_collection":76,"./_collection-strong":74,"./_validate-collection":135}],152:[function(t,e,r){var n=t("./_export"),i=t("./_to-absolute-index"),o=String.fromCharCode,s=String.fromCodePoint;n(n.S+n.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,s=0;n>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},{"./_export":85,"./_to-absolute-index":128}],153:[function(t,e,r){var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":99,"./_string-at":127}],154:[function(t,e,r){var n=t("./_global"),i=t("./_has"),o=t("./_descriptors"),s=t("./_export"),a=t("./_redefine"),l=t("./_meta").KEY,u=t("./_fails"),h=t("./_shared"),c=t("./_set-to-string-tag"),f=t("./_uid"),d=t("./_wks"),p=t("./_wks-ext"),g=t("./_wks-define"),_=t("./_enum-keys"),m=t("./_is-array"),v=t("./_an-object"),y=t("./_is-object"),b=t("./_to-iobject"),w=t("./_to-primitive"),x=t("./_property-desc"),S=t("./_object-create"),C=t("./_object-gopn-ext"),E=t("./_object-gopd"),A=t("./_object-dp"),k=t("./_object-keys"),P=E.f,j=A.f,I=C.f,L=n.Symbol,T=n.JSON,B=T&&T.stringify,N=d("_hidden"),O=d("toPrimitive"),F={}.propertyIsEnumerable,D=h("symbol-registry"),z=h("symbols"),R=h("op-symbols"),M=Object.prototype,U="function"==typeof L,H=n.QObject,G=!H||!H.prototype||!H.prototype.findChild,q=o&&u(function(){return 7!=S(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=P(M,e);n&&delete M[e],j(t,e,r),n&&t!==M&&j(M,e,n)}:j,Z=function(t){var e=z[t]=S(L.prototype);return e._k=t,e},W=U&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},V=function(t,e,r){return t===M&&V(R,e,r),v(t),e=w(e,!0),v(r),i(z,e)?(r.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),r=S(r,{enumerable:x(0,!1)})):(i(t,N)||j(t,N,x(1,{})),t[N][e]=!0),q(t,e,r)):j(t,e,r)},Y=function(t,e){v(t);for(var r,n=_(e=b(e)),i=0,o=n.length;o>i;)V(t,r=n[i++],e[r]);return t},X=function(t){var e=F.call(this,t=w(t,!0));return!(this===M&&i(z,t)&&!i(R,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,N)&&this[N][t])||e)},K=function(t,e){if(t=b(t),e=w(e,!0),t!==M||!i(z,e)||i(R,e)){var r=P(t,e);return!r||!i(z,e)||i(t,N)&&t[N][e]||(r.enumerable=!0),r}},J=function(t){for(var e,r=I(b(t)),n=[],o=0;r.length>o;)i(z,e=r[o++])||e==N||e==l||n.push(e);return n},Q=function(t){for(var e,r=t===M,n=I(r?R:b(t)),o=[],s=0;n.length>s;)!i(z,e=n[s++])||r&&!i(M,e)||o.push(z[e]);return o};U||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(r){this===M&&e.call(R,r),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),q(this,t,x(1,r))};return o&&G&&q(M,t,{configurable:!0,set:e}),Z(t)}).prototype,"toString",function(){return this._k}),E.f=K,A.f=V,t("./_object-gopn").f=C.f=J,t("./_object-pie").f=X,t("./_object-gops").f=Q,o&&!t("./_library")&&a(M,"propertyIsEnumerable",X,!0),p.f=function(t){return Z(d(t))}),s(s.G+s.W+s.F*!U,{Symbol:L});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)d($[tt++]);for(var et=k(d.store),rt=0;et.length>rt;)g(et[rt++]);s(s.S+s.F*!U,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=L(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!U,"Object",{create:function(t,e){return void 0===e?S(t):Y(S(t),e)},defineProperty:V,defineProperties:Y,getOwnPropertyDescriptor:K,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),T&&s(s.S+s.F*(!U||u(function(){var t=L();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(y(e)||void 0!==t)&&!W(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!W(e))return e}),n[1]=e,B.apply(T,n)}}),L.prototype[O]||t("./_hide")(L.prototype,O,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},{"./_an-object":66,"./_descriptors":81,"./_enum-keys":84,"./_export":85,"./_fails":86,"./_global":88,"./_has":89,"./_hide":90,"./_is-array":95,"./_is-object":96,"./_library":103,"./_meta":104,"./_object-create":105,"./_object-dp":106,"./_object-gopd":108,"./_object-gopn":110,"./_object-gopn-ext":109,"./_object-gops":111,"./_object-keys":114,"./_object-pie":115,"./_property-desc":117,"./_redefine":119,"./_set-to-string-tag":124,"./_shared":126,"./_to-iobject":130,"./_to-primitive":133,"./_uid":134,"./_wks":138,"./_wks-define":136,"./_wks-ext":137}],155:[function(t,e,r){t("./_set-collection-from")("Map")},{"./_set-collection-from":120}],156:[function(t,e,r){t("./_set-collection-of")("Map")},{"./_set-collection-of":121}],157:[function(t,e,r){var n=t("./_export");n(n.P+n.R,"Map",{toJSON:t("./_collection-to-json")("Map")})},{"./_collection-to-json":75,"./_export":85}],158:[function(t,e,r){t("./_set-collection-from")("Set")},{"./_set-collection-from":120}],159:[function(t,e,r){t("./_set-collection-of")("Set")},{"./_set-collection-of":121}],160:[function(t,e,r){var n=t("./_export");n(n.P+n.R,"Set",{toJSON:t("./_collection-to-json")("Set")})},{"./_collection-to-json":75,"./_export":85}],161:[function(t,e,r){t("./_wks-define")("asyncIterator")},{"./_wks-define":136}],162:[function(t,e,r){t("./_wks-define")("observable")},{"./_wks-define":136}],163:[function(t,e,r){t("./es6.array.iterator");for(var n=t("./_global"),i=t("./_hide"),o=t("./_iterators"),s=t("./_wks")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var u=a[l],h=n[u],c=h&&h.prototype;c&&!c[s]&&i(c,s,u),o[u]=o.Array}},{"./_global":88,"./_hide":90,"./_iterators":102,"./_wks":138,"./es6.array.iterator":142}],164:[function(t,e,r){(function(){var e,n,i,o;r.EncodeStream=t("./src/EncodeStream"),r.DecodeStream=t("./src/DecodeStream"),r.Array=t("./src/Array"),r.LazyArray=t("./src/LazyArray"),r.Bitfield=t("./src/Bitfield"),r.Boolean=t("./src/Boolean"),r.Buffer=t("./src/Buffer"),r.Enum=t("./src/Enum"),r.Optional=t("./src/Optional"),r.Reserved=t("./src/Reserved"),r.String=t("./src/String"),r.Struct=t("./src/Struct"),r.VersionedStruct=t("./src/VersionedStruct"),i=t("./src/Number");for(e in i)n=i[e],r[e]=n;o=t("./src/Pointer");for(e in o)n=o[e],r[e]=n}).call(this)},{"./src/Array":165,"./src/Bitfield":166,"./src/Boolean":167,"./src/Buffer":168,"./src/DecodeStream":169,"./src/EncodeStream":170,"./src/Enum":171,"./src/LazyArray":172,"./src/Number":173,"./src/Optional":174,"./src/Pointer":175,"./src/Reserved":176,"./src/String":177,"./src/Struct":178,"./src/VersionedStruct":179}],165:[function(t,e,r){(function(){var r,n,i;n=t("./Number").Number,i=t("./utils"),r=function(){function t(t,e,r){this.type=t,this.length=e,this.lengthType=null!=r?r:"count"}return t.prototype.decode=function(t,e){var r,o,s,a,l,u;if(s=t.pos,a=[],r=e,null!=this.length&&(o=i.resolveLength(this.length,t,e)),this.length instanceof n&&(Object.defineProperties(a,{parent:{value:e},_startOffset:{value:s},_currentOffset:{value:0,writable:!0},_length:{value:o}}),r=a),null==o||"bytes"===this.lengthType)for(l=null!=o?t.pos+o:(null!=e?e._length:void 0)?e._startOffset+e._length:t.length;t.pos<l;)a.push(this.type.decode(t,r));else for(u=0;u<o;u+=1)a.push(this.type.decode(t,r));return a},t.prototype.size=function(t,e){var r,o,s,a;if(!t)return this.type.size(null,e)*i.resolveLength(this.length,null,e);for(o=0,this.length instanceof n&&(o+=this.length.size(),e={parent:e}),s=0,a=t.length;s<a;s++)r=t[s],o+=this.type.size(r,e);return o},t.prototype.encode=function(t,e,r){var i,o,s,a,l,u;for(i=r,this.length instanceof n&&((i={pointers:[],startOffset:t.pos,parent:r}).pointerOffset=t.pos+this.size(e,i),this.length.encode(t,e.length)),l=0,u=e.length;l<u;l++)s=e[l],this.type.encode(t,s,i);if(this.length instanceof n)for(o=0;o<i.pointers.length;)(a=i.pointers[o++]).type.encode(t,a.val)},t}(),e.localExports=r}).call(this)},{"./Number":173,"./utils":180}],166:[function(t,e,r){(function(){var t;t=function(){function t(t,e){this.type=t,this.flags=null!=e?e:[]}return t.prototype.decode=function(t){var e,r,n,i,o,s,a;for(i=this.type.decode(t),n={},r=o=0,s=(a=this.flags).length;o<s;r=++o)null!=(e=a[r])&&(n[e]=!!(i&1<<r));return n},t.prototype.size=function(){return this.type.size()},t.prototype.encode=function(t,e){var r,n,i,o,s,a;for(i=0,n=o=0,s=(a=this.flags).length;o<s;n=++o)null!=(r=a[n])&&e[r]&&(i|=1<<n);return this.type.encode(t,i)},t}(),e.localExports=t}).call(this)},{}],167:[function(t,e,r){(function(){var t;t=function(){function t(t){this.type=t}return t.prototype.decode=function(t,e){return!!this.type.decode(t,e)},t.prototype.size=function(t,e){return this.type.size(t,e)},t.prototype.encode=function(t,e,r){return this.type.encode(t,+e,r)},t}(),e.localExports=t}).call(this)},{}],168:[function(t,e,r){(function(){var r,n,i;i=t("./utils"),n=t("./Number").Number,r=function(){function t(t){this.length=t}return t.prototype.decode=function(t,e){var r;return r=i.resolveLength(this.length,t,e),t.readBuffer(r)},t.prototype.size=function(t,e){return t?t.length:i.resolveLength(this.length,null,e)},t.prototype.encode=function(t,e,r){return this.length instanceof n&&this.length.encode(t,e.length),t.writeBuffer(e)},t}(),e.localExports=r}).call(this)},{"./Number":173,"./utils":180}],169:[function(t,e,r){(function(t){(function(){var r,n;try{n=window.iconv}catch(t){}r=function(){function e(t){this.buffer=t,this.pos=0,this.length=this.buffer.length}var r;e.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(r in t.prototype)"read"===r.slice(0,4)&&function(t){var r;r=e.TYPES[t.replace(/read|[BL]E/g,"")],e.prototype[t]=function(){var e;return e=this.buffer[t](this.pos),this.pos+=r,e}}(r);return e.prototype.readString=function(e,r){var i,o,s,a,l;switch(null==r&&(r="ascii"),r){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.buffer.toString(r,this.pos,this.pos+=e);case"utf16be":for(s=a=0,l=(i=new t(this.readBuffer(e))).length-1;a<l;s=a+=2)o=i[s],i[s]=i[s+1],i[s+1]=o;return i.toString("utf16le");default:if(i=this.readBuffer(e),n)try{return n.decode(i,r)}catch(t){}return i}},e.prototype.readBuffer=function(t){return this.buffer.slice(this.pos,this.pos+=t)},e.prototype.readUInt24BE=function(){return(this.readUInt16BE()<<8)+this.readUInt8()},e.prototype.readUInt24LE=function(){return this.readUInt16LE()+(this.readUInt8()<<16)},e.prototype.readInt24BE=function(){return(this.readInt16BE()<<8)+this.readUInt8()},e.prototype.readInt24LE=function(){return this.readUInt16LE()+(this.readInt8()<<16)},e}(),e.localExports=r}).call(this)}).call(this,t("buffer").Buffer)},{buffer:28}],170:[function(t,e,r){(function(r){(function(){var n,i,o,s,a={}.hasOwnProperty,l=function(t,e){function r(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};s=t("stream"),n=t("./DecodeStream");try{o=window.iconv}catch(t){}i=function(t){function e(t){null==t&&(t=65536),e.__super__.constructor.apply(this,arguments),this.buffer=new r(t),this.bufferOffset=0,this.pos=0}var i;l(e,t);for(i in r.prototype)"write"===i.slice(0,5)&&function(t){var r;r=+n.TYPES[t.replace(/write|[BL]E/g,"")],e.prototype[t]=function(e){return this.ensure(r),this.buffer[t](e,this.bufferOffset),this.bufferOffset+=r,this.pos+=r}}(i);return e.prototype._read=function(){},e.prototype.ensure=function(t){if(this.bufferOffset+t>this.buffer.length)return this.flush()},e.prototype.flush=function(){if(this.bufferOffset>0)return this.push(new r(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},e.prototype.writeBuffer=function(t){return this.flush(),this.push(t),this.pos+=t.length},e.prototype.writeString=function(t,e){var n,i,s,a,l;switch(null==e&&(e="ascii"),e){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(new r(t,e));case"utf16be":for(s=a=0,l=(n=new r(t,"utf16le")).length-1;a<l;s=a+=2)i=n[s],n[s]=n[s+1],n[s+1]=i;return this.writeBuffer(n);default:if(o)return this.writeBuffer(o.encode(t,e));throw new Error("Install iconv-lite to enable additional string encodings.")}},e.prototype.writeUInt24BE=function(t){return this.ensure(3),this.buffer[this.bufferOffset++]=t>>>16&255,this.buffer[this.bufferOffset++]=t>>>8&255,this.buffer[this.bufferOffset++]=255&t,this.pos+=3},e.prototype.writeUInt24LE=function(t){return this.ensure(3),this.buffer[this.bufferOffset++]=255&t,this.buffer[this.bufferOffset++]=t>>>8&255,this.buffer[this.bufferOffset++]=t>>>16&255,this.pos+=3},e.prototype.writeInt24BE=function(t){return t>=0?this.writeUInt24BE(t):this.writeUInt24BE(t+16777215+1)},e.prototype.writeInt24LE=function(t){return t>=0?this.writeUInt24LE(t):this.writeUInt24LE(t+16777215+1)},e.prototype.fill=function(t,e){var n;return e<this.buffer.length?(this.ensure(e),this.buffer.fill(t,this.bufferOffset,this.bufferOffset+e),this.bufferOffset+=e,this.pos+=e):((n=new r(e)).fill(t),this.writeBuffer(n))},e.prototype.end=function(){return this.flush(),this.push(null)},e}(s.Readable),e.localExports=i}).call(this)}).call(this,t("buffer").Buffer)},{"./DecodeStream":169,buffer:28,stream:204}],171:[function(t,e,r){(function(){var t;t=function(){function t(t,e){this.type=t,this.options=null!=e?e:[]}return t.prototype.decode=function(t){var e;return e=this.type.decode(t),this.options[e]||e},t.prototype.size=function(){return this.type.size()},t.prototype.encode=function(t,e){var r;if(-1===(r=this.options.indexOf(e)))throw new Error("Unknown option in enum: "+e);return this.type.encode(t,r)},t}(),e.localExports=t}).call(this)},{}],172:[function(t,e,r){(function(){var r,n,i,o,s,a,l={}.hasOwnProperty,u=function(t,e){function r(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};r=t("./Array"),o=t("./Number").Number,a=t("./utils"),s=t("util").inspect,i=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,r),e.prototype.decode=function(t,e){var r,i,s;return i=t.pos,r=a.resolveLength(this.length,t,e),this.length instanceof o&&(e={parent:e,_startOffset:i,_currentOffset:0,_length:r}),s=new n(this.type,r,t,e),t.pos+=r*this.type.size(null,e),s},e.prototype.size=function(t,r){return t instanceof n&&(t=t.toArray()),e.__super__.size.call(this,t,r)},e.prototype.encode=function(t,r,i){return r instanceof n&&(r=r.toArray()),e.__super__.encode.call(this,t,r,i)},e}(),n=function(){function t(t,e,r,n){this.type=t,this.length=e,this.stream=r,this.ctx=n,this.base=this.stream.pos,this.items=[]}return t.prototype.get=function(t){var e;if(!(t<0||t>=this.length))return null==this.items[t]&&(e=this.stream.pos,this.stream.pos=this.base+this.type.size(null,this.ctx)*t,this.items[t]=this.type.decode(this.stream,this.ctx),this.stream.pos=e),this.items[t]},t.prototype.toArray=function(){var t,e,r,n;for(n=[],t=e=0,r=this.length;e<r;t=e+=1)n.push(this.get(t));return n},t.prototype.inspect=function(){return s(this.toArray())},t}(),e.localExports=i}).call(this)},{"./Array":165,"./Number":173,"./utils":180,util:214}],173:[function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty,s=function(t,e){function r(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};e=t("./DecodeStream"),i=function(){function t(t,e){this.type=t,this.endian=null!=e?e:"BE",this.fn=this.type,"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}return t.prototype.size=function(){return e.TYPES[this.type]},t.prototype.decode=function(t){return t["read"+this.fn]()},t.prototype.encode=function(t,e){return t["write"+this.fn](e)},t}(),r.Number=i,r.uint8=new i("UInt8"),r.uint16be=r.uint16=new i("UInt16","BE"),r.uint16le=new i("UInt16","LE"),r.uint24be=r.uint24=new i("UInt24","BE"),r.uint24le=new i("UInt24","LE"),r.uint32be=r.uint32=new i("UInt32","BE"),r.uint32le=new i("UInt32","LE"),r.int8=new i("Int8"),r.int16be=r.int16=new i("Int16","BE"),r.int16le=new i("Int16","LE"),r.int24be=r.int24=new i("Int24","BE"),r.int24le=new i("Int24","LE"),r.int32be=r.int32=new i("Int32","BE"),r.int32le=new i("Int32","LE"),r.floatbe=r.float=new i("Float","BE"),r.floatle=new i("Float","LE"),r.doublebe=r.double=new i("Double","BE"),r.doublele=new i("Double","LE"),n=function(t){function e(t,r,n){null==n&&(n=t>>1),e.__super__.constructor.call(this,"Int"+t,r),this._point=1<<n}return s(e,i),e.prototype.decode=function(t){return e.__super__.decode.call(this,t)/this._point},e.prototype.encode=function(t,r){return e.__super__.encode.call(this,t,r*this._point|0)},e}(),r.Fixed=n,r.fixed16be=r.fixed16=new n(16,"BE"),r.fixed16le=new n(16,"LE"),r.fixed32be=r.fixed32=new n(32,"BE"),r.fixed32le=new n(32,"LE")}).call(this)},{"./DecodeStream":169}],174:[function(t,e,r){(function(){var t;t=function(){function t(t,e){this.type=t,this.condition=null==e||e}return t.prototype.decode=function(t,e){var r;if("function"==typeof(r=this.condition)&&(r=r.call(e,e)),r)return this.type.decode(t,e)},t.prototype.size=function(t,e){var r;return"function"==typeof(r=this.condition)&&(r=r.call(e,e)),r?this.type.size(t,e):0},t.prototype.encode=function(t,e,r){var n;if("function"==typeof(n=this.condition)&&(n=n.call(r,r)),n)return this.type.encode(t,e,r)},t}(),e.localExports=t}).call(this)},{}],175:[function(t,e,r){(function(){var e,n,i;i=t("./utils"),e=function(){function t(t,e,r){var n,i,o,s;this.offsetType=t,this.type=e,this.options=null!=r?r:{},"void"===this.type&&(this.type=null),null==(n=this.options).type&&(n.type="local"),null==(i=this.options).allowNull&&(i.allowNull=!0),null==(o=this.options).nullValue&&(o.nullValue=0),null==(s=this.options).lazy&&(s.lazy=!1),this.options.relativeTo&&(this.relativeToGetter=new Function("ctx","return ctx."+this.options.relativeTo))}return t.prototype.decode=function(t,e){var r,n,o,s,a,l;return(o=this.offsetType.decode(t,e))===this.options.nullValue&&this.options.allowNull?null:(a=function(){switch(this.options.type){case"local":return e._startOffset;case"immediate":return t.pos-this.offsetType.size();case"parent":return e.parent._startOffset;default:for(r=e;r.parent;)r=r.parent;return r._startOffset||0}}.call(this),this.options.relativeTo&&(a+=this.relativeToGetter(e)),s=o+a,null!=this.type?(l=null,n=function(r){return function(){var n;return null!=l?l:(n=t.pos,t.pos=s,l=r.type.decode(t,e),t.pos=n,l)}}(this),this.options.lazy?new i.PropertyDescriptor({get:n}):n()):s)},t.prototype.size=function(t,e){var r,i;switch(r=e,this.options.type){case"local":case"immediate":break;case"parent":e=e.parent;break;default:for(;e.parent;)e=e.parent}if(null==(i=this.type)){if(!(t instanceof n))throw new Error("Must be a VoidPointer");i=t.type,t=t.value}return t&&e&&(e.pointerSize+=i.size(t,r)),this.offsetType.size()},t.prototype.encode=function(t,e,r){var i,o,s;i=r;if(null!=e){switch(this.options.type){case"local":o=r.startOffset;break;case"immediate":o=t.pos+this.offsetType.size(e,i);break;case"parent":o=(r=r.parent).startOffset;break;default:for(o=0;r.parent;)r=r.parent}if(this.options.relativeTo&&(o+=this.relativeToGetter(i.val)),this.offsetType.encode(t,r.pointerOffset-o),null==(s=this.type)){if(!(e instanceof n))throw new Error("Must be a VoidPointer");s=e.type,e=e.value}return r.pointers.push({type:s,val:e,parent:i}),r.pointerOffset+=s.size(e,i)}this.offsetType.encode(t,this.options.nullValue)},t}(),n=function(){return function(t,e){this.type=t,this.value=e}}(),r.Pointer=e,r.VoidPointer=n}).call(this)},{"./utils":180}],176:[function(t,e,r){(function(){var r,n;n=t("./utils"),r=function(){function t(t,e){this.type=t,this.count=null!=e?e:1}return t.prototype.decode=function(t,e){t.pos+=this.size(null,e)},t.prototype.size=function(t,e){var r;return r=n.resolveLength(this.count,null,e),this.type.size()*r},t.prototype.encode=function(t,e,r){return t.fill(0,this.size(e,r))},t}(),e.localExports=r}).call(this)},{"./utils":180}],177:[function(t,e,r){(function(r){(function(){var n,i,o;n=t("./Number").Number,o=t("./utils"),i=function(){function t(t,e){this.length=t,this.encoding=null!=e?e:"ascii"}return t.prototype.decode=function(t,e){var r,n,i,s,a;return i=function(){if(null!=this.length)return o.resolveLength(this.length,t,e);for(r=t.buffer,i=t.length,s=t.pos;s<i&&0!==r[s];)++s;return s-t.pos}.call(this),"function"==typeof(n=this.encoding)&&(n=n.call(e,e)||"ascii"),a=t.readString(i,n),null==this.length&&t.pos<t.length&&t.pos++,a},t.prototype.size=function(t,e){var i,s;return t?("function"==typeof(i=this.encoding)&&(i=i.call(null!=e?e.val:void 0,null!=e?e.val:void 0)||"ascii"),"utf16be"===i&&(i="utf16le"),s=r.byteLength(t,i),this.length instanceof n&&(s+=this.length.size()),null==this.length&&s++,s):o.resolveLength(this.length,null,e)},t.prototype.encode=function(t,e,i){var o;if("function"==typeof(o=this.encoding)&&(o=o.call(null!=i?i.val:void 0,null!=i?i.val:void 0)||"ascii"),this.length instanceof n&&this.length.encode(t,r.byteLength(e,o)),t.writeString(e,o),null==this.length)return t.writeUInt8(0)},t}(),e.localExports=i}).call(this)}).call(this,t("buffer").Buffer)},{"./Number":173,"./utils":180,buffer:28}],178:[function(t,e,r){(function(){var r,n;n=t("./utils"),r=function(){function t(t){this.fields=null!=t?t:{}}return t.prototype.decode=function(t,e,r){var n,i;return null==r&&(r=0),n=this._setup(t,e,r),this._parseFields(t,n,this.fields),null!=(i=this.process)&&i.call(n,t),n},t.prototype._setup=function(t,e,r){var n;return n={},Object.defineProperties(n,{parent:{value:e},_startOffset:{value:t.pos},_currentOffset:{value:0,writable:!0},_length:{value:r}}),n},t.prototype._parseFields=function(t,e,r){var i,o,s;for(i in r)void 0!==(s="function"==typeof(o=r[i])?o.call(e,e):o.decode(t,e))&&(s instanceof n.PropertyDescriptor?Object.defineProperty(e,i,s):e[i]=s),e._currentOffset=t.pos-e._startOffset},t.prototype.size=function(t,e,r){var n,i,o,s,a;null==t&&(t={}),null==r&&(r=!0),n={parent:e,val:t,pointerSize:0},o=0,a=this.fields;for(i in a)null!=(s=a[i]).size&&(o+=s.size(t[i],n));return r&&(o+=n.pointerSize),o},t.prototype.encode=function(t,e,r){var n,i,o,s,a,l,u;null!=(l=this.preEncode)&&l.call(e,t),(n={pointers:[],startOffset:t.pos,parent:r,val:e,pointerSize:0}).pointerOffset=t.pos+this.size(e,n,!1),u=this.fields;for(o in u)null!=(a=u[o]).encode&&a.encode(t,e[o],n);for(i=0;i<n.pointers.length;)(s=n.pointers[i++]).type.encode(t,s.val,s.parent)},t}(),e.localExports=r}).call(this)},{"./utils":180}],179:[function(t,e,r){(function(){var r,n,i={}.hasOwnProperty,o=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};r=t("./Struct"),n=function(t){function e(t,e){this.type=t,this.versions=null!=e?e:{},"string"==typeof this.type&&(this.versionGetter=new Function("parent","return parent."+this.type),this.versionSetter=new Function("parent","version","return parent."+this.type+" = version"))}return o(e,r),e.prototype.decode=function(t,r,n){var i,o,s;if(null==n&&(n=0),o=this._setup(t,r,n),"string"==typeof this.type?o.version=this.versionGetter(r):o.version=this.type.decode(t),this.versions.header&&this._parseFields(t,o,this.versions.header),null==(i=this.versions[o.version]))throw new Error("Unknown version "+o.version);return i instanceof e?i.decode(t,r):(this._parseFields(t,o,i),null!=(s=this.process)&&s.call(o,t),o)},e.prototype.size=function(t,e,r){var n,i,o,s,a,l;if(null==r&&(r=!0),!t)throw new Error("Not a fixed size");if(n={parent:e,val:t,pointerSize:0},s=0,"string"!=typeof this.type&&(s+=this.type.size(t.version,n)),this.versions.header){l=this.versions.header;for(o in l)null!=(a=l[o]).size&&(s+=a.size(t[o],n))}if(null==(i=this.versions[t.version]))throw new Error("Unknown version "+t.version);for(o in i)null!=(a=i[o]).size&&(s+=a.size(t[o],n));return r&&(s+=n.pointerSize),s},e.prototype.encode=function(t,e,r){var n,i,o,s,a,l,u,h;if(null!=(u=this.preEncode)&&u.call(e,t),n={pointers:[],startOffset:t.pos,parent:r,val:e,pointerSize:0},n.pointerOffset=t.pos+this.size(e,n,!1),"string"!=typeof this.type&&this.type.encode(t,e.version),this.versions.header){h=this.versions.header;for(s in h)null!=(l=h[s]).encode&&l.encode(t,e[s],n)}i=this.versions[e.version];for(s in i)null!=(l=i[s]).encode&&l.encode(t,e[s],n);for(o=0;o<n.pointers.length;)(a=n.pointers[o++]).type.encode(t,a.val,a.parent)},e}(),e.localExports=n}).call(this)},{"./Struct":178}],180:[function(t,e,r){(function(){var e,n;e=t("./Number").Number,r.resolveLength=function(t,r,n){var i;if("number"==typeof t?i=t:"function"==typeof t?i=t.call(n,n):n&&"string"==typeof t?i=n[t]:r&&t instanceof e&&(i=t.decode(r)),isNaN(i))throw new Error("Not a fixed size");return i},n=function(){return function(t){var e,r;null==t&&(t={}),this.enumerable=!0,this.configurable=!0;for(e in t)r=t[e],this[e]=r}}(),r.PropertyDescriptor=n}).call(this)},{"./Number":173}],181:[function(t,e,r){function n(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(t,e){this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new n,this.dtree=new n}function o(t,e,r,n){var i,o;for(i=0;i<r;++i)t[i]=0;for(i=0;i<30-r;++i)t[i+r]=i/r|0;for(o=n,i=0;i<30;++i)e[i]=o,o+=1<<t[i]}function s(t,e,r,n){var i,o;for(i=0;i<16;++i)t.table[i]=0;for(i=0;i<n;++i)t.table[e[r+i]]++;for(t.table[0]=0,o=0,i=0;i<16;++i)C[i]=o,o+=t.table[i];for(i=0;i<n;++i)e[r+i]&&(t.trans[C[e[r+i]]++]=i)}function a(t){t.bitcount--||(t.tag=t.source[t.sourceIndex++],t.bitcount=7);var e=1&t.tag;return t.tag>>>=1,e}function l(t,e,r){if(!e)return r;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var n=t.tag&65535>>>16-e;return t.tag>>>=e,t.bitcount-=e,n+r}function u(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var r=0,n=0,i=0,o=t.tag;do{n=2*n+(1&o),o>>>=1,++i,r+=e.table[i],n-=e.table[i]}while(n>=0);return t.tag=o,t.bitcount-=i,e.trans[r+n]}function h(t,e,r){var n,i,o,a,h,c;for(n=l(t,5,257),i=l(t,5,1),o=l(t,4,4),a=0;a<19;++a)S[a]=0;for(a=0;a<o;++a){var f=l(t,3,0);S[w[a]]=f}for(s(x,S,0,19),h=0;h<n+i;){var d=u(t,x);switch(d){case 16:var p=S[h-1];for(c=l(t,2,3);c;--c)S[h++]=p;break;case 17:for(c=l(t,3,3);c;--c)S[h++]=0;break;case 18:for(c=l(t,7,11);c;--c)S[h++]=0;break;default:S[h++]=d}}s(e,S,0,n),s(r,S,n,i)}function c(t,e,r){for(;;){var n=u(t,e);if(256===n)return d;if(n<256)t.dest[t.destLen++]=n;else{var i,o,s,a;for(i=l(t,m[n-=257],v[n]),o=u(t,r),a=s=t.destLen-l(t,y[o],b[o]);a<s+i;++a)t.dest[t.destLen++]=t.dest[a]}}}function f(t){for(var e,r,n;t.bitcount>8;)t.sourceIndex--,t.bitcount-=8;if(e=t.source[t.sourceIndex+1],e=256*e+t.source[t.sourceIndex],r=t.source[t.sourceIndex+3],r=256*r+t.source[t.sourceIndex+2],e!==(65535&~r))return p;for(t.sourceIndex+=4,n=e;n;--n)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,d}var d=0,p=-3,g=new n,_=new n,m=new Uint8Array(30),v=new Uint16Array(30),y=new Uint8Array(30),b=new Uint16Array(30),w=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),x=new n,S=new Uint8Array(320),C=new Uint16Array(16);!function(t,e){var r;for(r=0;r<7;++r)t.table[r]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,r=0;r<24;++r)t.trans[r]=256+r;for(r=0;r<144;++r)t.trans[24+r]=r;for(r=0;r<8;++r)t.trans[168+r]=280+r;for(r=0;r<112;++r)t.trans[176+r]=144+r;for(r=0;r<5;++r)e.table[r]=0;for(e.table[5]=32,r=0;r<32;++r)e.trans[r]=r}(g,_),o(m,v,4,3),o(y,b,2,1),m[28]=0,v[28]=258,e.localExports=function(t,e){var r,n,o=new i(t,e);do{switch(r=a(o),l(o,2,0)){case 0:n=f(o);break;case 1:n=c(o,g,_);break;case 2:h(o,o.ltree,o.dtree),n=c(o,o.ltree,o.dtree);break;default:n=p}if(n!==d)throw new Error("Data error")}while(!r);return o.destLen<o.dest.length?"function"==typeof o.dest.slice?o.dest.slice(0,o.destLen):o.dest.subarray(0,o.destLen):o.dest}},{}],182:[function(t,e,r){e.localExports={categories:["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],combiningClasses:["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],scripts:["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Tirhuta","Siddham","Modi","Takri","Ahom","Warang_Citi","Pau_Cin_Hau","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Miao","Duployan","SignWriting","Mende_Kikakui"],eaw:["N","Na","A","W","H","F"]}},{}],183:[function(t,e,r){(function(e){var n,i,o,s,a,l,u,h,c,f,d,p,g,_,m,v;p=t("unicode-trie"),_=t("./data.json"),v=new p(e(" ","base64")),m=Math.log2||function(t){return Math.log(t)/Math.LN2},n=(g=function(t){return m(t)+1|0})(_.categories.length-1),s=g(_.combiningClasses.length-1),c=g(_.scripts.length-1),u=g(_.eaw.length-1),o=s+c+u+10,l=c+u+10,d=u+10,i=(1<<n)-1,a=(1<<s)-1,f=(1<<c)-1,h=(1<<u)-1,r.getCategory=function(t){var e;return e=v.get(t),_.categories[e>>o&i]},r.getCombiningClass=function(t){var e;return e=v.get(t),_.combiningClasses[e>>l&a]},r.getScript=function(t){var e;return e=v.get(t),_.scripts[e>>d&f]},r.getEastAsianWidth=function(t){var e;return e=v.get(t),_.eaw[e>>10&h]},r.getNumericValue=function(t){var e,r,n,i,o;if(o=v.get(t),0===(n=1023&o))return null;if(n<=50)return n-1;if(n<480)return i=(n>>4)-12,e=1+(15&n),i/e;if(n<768){for(o=(n>>5)-14,r=2+(31&n);r>0;)o*=10,r--;return o}for(o=(n>>2)-191,r=1+(3&n);r>0;)o*=60,r--;return o},r.isAlphabetic=function(t){var e;return"Lu"===(e=r.getCategory(t))||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Nl"===e},r.isDigit=function(t){return"Nd"===r.getCategory(t)},r.isPunctuation=function(t){var e;return"Pc"===(e=r.getCategory(t))||"Pd"===e||"Pe"===e||"Pf"===e||"Pi"===e||"Po"===e||"Ps"===e},r.isLowerCase=function(t){return"Ll"===r.getCategory(t)},r.isUpperCase=function(t){return"Lu"===r.getCategory(t)},r.isTitleCase=function(t){return"Lt"===r.getCategory(t)},r.isWhiteSpace=function(t){var e;return"Zs"===(e=r.getCategory(t))||"Zl"===e||"Zp"===e},r.isBaseForm=function(t){var e;return"Nd"===(e=r.getCategory(t))||"No"===e||"Nl"===e||"Lu"===e||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Me"===e||"Mc"===e},r.isMark=function(t){var e;return"Mn"===(e=r.getCategory(t))||"Me"===e||"Mc"===e}}).call(this,t("buffer").Buffer)},{"./data.json":182,buffer:28,"unicode-trie":184}],184:[function(t,e,r){var n,i;i=t("tiny-inflate"),n=function(){function t(t){var e,r,n;(e="function"==typeof t.readUInt32BE&&"function"==typeof t.slice)||t instanceof Uint8Array?(e?(this.highStart=t.readUInt32BE(0),this.errorValue=t.readUInt32BE(4),r=t.readUInt32BE(8),t=t.slice(12)):(n=new DataView(t.buffer),this.highStart=n.getUint32(0),this.errorValue=n.getUint32(4),r=n.getUint32(8),t=t.subarray(12)),t=i(t,new Uint8Array(r)),t=i(t,new Uint8Array(r)),this.data=new Uint32Array(t.buffer)):(this.data=t.data,this.highStart=t.highStart,this.errorValue=t.errorValue)}return 11,5,6,32,64,63,2,32,31,2048,32,2080,2080,32,2112,4,t.prototype.get=function(t){var e;return t<0||t>1114111?this.errorValue:t<55296||t>56319&&t<=65535?(e=(this.data[t>>5]<<2)+(31&t),this.data[e]):t<=65535?(e=(this.data[2048+(t-55296>>5)]<<2)+(31&t),this.data[e]):t<this.highStart?(e=this.data[2080+(t>>11)],e=this.data[e+(t>>5&63)],e=(e<<2)+(31&t),this.data[e]):this.data[this.data.length-4]},t}(),e.localExports=n},{"tiny-inflate":181}],185:[function(t,e,r){r.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,h=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=a;h>0;o=256*o+t[e+c],c+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=u}return(d?-1:1)*s*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var s,a,l,u=8*o-i-1,h=(1<<u)-1,c=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+c>=1?f/l:f*Math.pow(2,1-c))*l>=2&&(s++,l/=2),s+c>=h?(a=0,s=h):s+c>=1?(a=(e*l-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+d]=255&s,d+=p,s/=256,u-=8);t[r+d-p]|=128*g}},{}],186:[function(t,e,r){"function"==typeof Object.create?e.localExports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.localExports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],187:[function(t,e,r){(function(){r.OP=0,r.CL=1,r.CP=2,r.QU=3,r.GL=4,r.NS=5,r.EX=6,r.SY=7,r.IS=8,r.PR=9,r.PO=10,r.NU=11,r.AL=12,r.HL=13,r.ID=14,r.IN=15,r.HY=16,r.BA=17,r.BB=18,r.B2=19,r.ZW=20,r.CM=21,r.WJ=22,r.H2=23,r.H3=24,r.JL=25,r.JV=26,r.JT=27,r.RI=28,r.AI=29,r.BK=30,r.CB=31,r.CJ=32,r.CR=33,r.LF=34,r.NL=35,r.SA=36,r.SG=37,r.SP=38,r.XX=39}).call(this)},{}],188:[function(t,e,r){(function(){var r,n,i,o,s,a,l,u,h,c,f,d,p,g,_,m,v,y,b,w,x,S,C,E,A,k,P;b=t("unicode-trie"),S=t("base64-js"),k=t("./classes"),o=k.BK,h=k.CR,d=k.LF,g=k.NL,s=k.CB,i=k.BA,y=k.SP,w=k.WJ,y=k.SP,o=k.BK,d=k.LF,g=k.NL,r=k.AI,n=k.AL,m=k.SA,v=k.SG,x=k.XX,l=k.CJ,k.ID,_=k.NS,k.characterClasses,P=t("./pairs"),c=P.DI_BRK,f=P.IN_BRK,a=P.CI_BRK,u=P.CP_BRK,P.PR_BRK,A=P.pairTable,E=S.toByteArray(" "),C=new b(E),p=function(){function t(t){this.string=t,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null}var e,p,b;return t.prototype.nextCodePoint=function(){var t,e;return t=this.string.charCodeAt(this.pos++),e=this.string.charCodeAt(this.pos),55296<=t&&t<=56319&&56320<=e&&e<=57343?(this.pos++,1024*(t-55296)+(e-56320)+65536):t},p=function(t){switch(t){case r:return n;case m:case v:case x:return n;case l:return _;default:return t}},b=function(t){switch(t){case d:case g:return o;case s:return i;case y:return w;default:return t}},t.prototype.nextCharClass=function(t){return null==t&&(t=!1),p(C.get(this.nextCodePoint()))},e=function(){return function(t,e){this.position=t,this.required=null!=e&&e}}(),t.prototype.nextBreak=function(){var t,r,n;for(null==this.curClass&&(this.curClass=b(this.nextCharClass()));this.pos<this.string.length;){if(this.lastPos=this.pos,r=this.nextClass,this.nextClass=this.nextCharClass(),this.curClass===o||this.curClass===h&&this.nextClass!==d)return this.curClass=b(p(this.nextClass)),new e(this.lastPos,!0);if(null==(t=function(){switch(this.nextClass){case y:return this.curClass;case o:case d:case g:return o;case h:return h;case s:return i}}.call(this))){switch(n=!1,A[this.curClass][this.nextClass]){case c:n=!0;break;case f:n=r===y;break;case a:if(!(n=r===y))continue;break;case u:if(r!==y)continue}if(this.curClass=this.nextClass,n)return new e(this.lastPos)}else if(this.curClass=t,this.nextClass===s)return new e(this.lastPos)}if(this.pos>=this.string.length)return this.lastPos<this.string.length?(this.lastPos=this.string.length,new e(this.string.length)):null},t}(),e.localExports=p}).call(this)},{"./classes":187,"./pairs":189,"base64-js":23,"unicode-trie":211}],189:[function(t,e,r){(function(){r.DI_BRK=0,r.IN_BRK=1,r.CI_BRK=2,r.CP_BRK=3,r.PR_BRK=4,r.pairTable=[[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[4,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,0,1,1,0,0,4,2,4,1,1,1,1,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,0,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,4,4,2,4,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,1,1,1,1,0,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,1]]}).call(this)},{}],190:[function(t,e,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,s;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(s=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],s.set(o,i),i+=o.length;return s}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],191:[function(t,e,r){e.localExports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},{}],192:[function(t,e,r){e.localExports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],193:[function(t,e,r){var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.localExports=function(t,e,r,i){var o=n,s=i+r;t^=-1;for(var a=i;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}},{}],194:[function(t,e,r){function n(t,e){return t.msg=P[e],e}function i(t){return(t<<1)-(t>4?9:0)}function o(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(C.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function a(t,e){E._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function u(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function h(t,e,r,n){var i=t.avail_in;return i>n&&(i=n),0===i?0:(t.avail_in-=i,C.arraySet(e,t.input,t.next_in,i,r),1===t.state.wrap?t.adler=A(t.adler,e,i,r):2===t.state.wrap&&(t.adler=k(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i)}function c(t,e){var r,n,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-nt?t.strstart-(t.w_size-nt):0,u=t.window,h=t.w_mask,c=t.prev,f=t.strstart+rt,d=u[o+s-1],p=u[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(r=e,u[r+s]===p&&u[r+s-1]===d&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<f);if(n=rt-(f-o),o=f-rt,n>s){if(t.match_start=e,s=n,n>=a)break;d=u[o+s-1],p=u[o+s]}}}while((e=c[e&h])>l&&0!=--i);return s<=t.lookahead?s:t.lookahead}function f(t){var e,r,n,i,o,s=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-nt)){C.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--r);e=r=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--r);i+=s}if(0===t.strm.avail_in)break;if(r=h(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=r,t.lookahead+t.insert>=et)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+et-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<et)););}while(t.lookahead<nt&&0!==t.strm.avail_in)}function d(t,e){for(var r,n;;){if(t.lookahead<nt){if(f(t),t.lookahead<nt&&e===j)return ft;if(0===t.lookahead)break}if(r=0,t.lookahead>=et&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-nt&&(t.match_length=c(t,r)),t.match_length>=et)if(n=E._tr_tally(t,t.strstart-t.match_start,t.match_length-et),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=et){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(a(t,!1),0===t.strm.avail_out))return ft}return t.insert=t.strstart<et-1?t.strstart:et-1,e===T?(a(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?ft:dt}function p(t,e){for(var r,n,i;;){if(t.lookahead<nt){if(f(t),t.lookahead<nt&&e===j)return ft;if(0===t.lookahead)break}if(r=0,t.lookahead>=et&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=et-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-nt&&(t.match_length=c(t,r),t.match_length<=5&&(t.strategy===M||t.match_length===et&&t.strstart-t.match_start>4096)&&(t.match_length=et-1)),t.prev_length>=et&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-et,n=E._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-et),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=et-1,t.strstart++,n&&(a(t,!1),0===t.strm.avail_out))return ft}else if(t.match_available){if((n=E._tr_tally(t,0,t.window[t.strstart-1]))&&a(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return ft}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=E._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<et-1?t.strstart:et-1,e===T?(a(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?ft:dt}function g(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=rt){if(f(t),t.lookahead<=rt&&e===j)return ft;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=et&&t.strstart>0&&(i=t.strstart-1,(n=s[i])===s[++i]&&n===s[++i]&&n===s[++i])){o=t.strstart+rt;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=rt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=et?(r=E._tr_tally(t,1,t.match_length-et),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(a(t,!1),0===t.strm.avail_out))return ft}return t.insert=0,e===T?(a(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?ft:dt}function _(t,e){for(var r;;){if(0===t.lookahead&&(f(t),0===t.lookahead)){if(e===j)return ft;break}if(t.match_length=0,r=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(a(t,!1),0===t.strm.avail_out))return ft}return t.insert=0,e===T?(a(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?ft:dt}function m(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function v(t){t.window_size=2*t.w_size,o(t.head),t.max_lazy_match=S[t.level].max_lazy,t.good_match=S[t.level].good_length,t.nice_match=S[t.level].nice_length,t.max_chain_length=S[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=et-1,t.match_available=0,t.ins_h=0}function y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=W,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new C.Buf16(2*$),this.dyn_dtree=new C.Buf16(2*(2*J+1)),this.bl_tree=new C.Buf16(2*(2*Q+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new C.Buf16(tt+1),this.heap=new C.Buf16(2*K+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new C.Buf16(2*K+1),o(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function b(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=Z,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ot:ht,t.adler=2===e.wrap?0:1,e.last_flush=j,E._tr_init(e),N):n(t,F)}function w(t){var e=b(t);return e===N&&v(t.state),e}function x(t,e,r,i,o,s){if(!t)return F;var a=1;if(e===R&&(e=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),o<1||o>V||r!==W||i<8||i>15||e<0||e>9||s<0||s>G)return n(t,F);8===i&&(i=9);var l=new y;return t.state=l,l.strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+et-1)/et),l.window=new C.Buf8(2*l.w_size),l.head=new C.Buf16(l.hash_size),l.prev=new C.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new C.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=r,w(t)}var S,C=t("../utils/common"),E=t("./trees"),A=t("./adler32"),k=t("./crc32"),P=t("./messages"),j=0,I=1,L=3,T=4,B=5,N=0,O=1,F=-2,D=-3,z=-5,R=-1,M=1,U=2,H=3,G=4,q=0,Z=2,W=8,V=9,Y=15,X=8,K=286,J=30,Q=19,$=2*K+1,tt=15,et=3,rt=258,nt=rt+et+1,it=32,ot=42,st=69,at=73,lt=91,ut=103,ht=113,ct=666,ft=1,dt=2,pt=3,gt=4,_t=3;S=[new m(0,0,0,0,function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(f(t),0===t.lookahead&&e===j)return ft;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,a(t,!1),0===t.strm.avail_out))return ft;if(t.strstart-t.block_start>=t.w_size-nt&&(a(t,!1),0===t.strm.avail_out))return ft}return t.insert=0,e===T?(a(t,!0),0===t.strm.avail_out?pt:gt):(t.strstart>t.block_start&&(a(t,!1),t.strm.avail_out),ft)}),new m(4,4,8,4,d),new m(4,5,16,8,d),new m(4,6,32,32,d),new m(4,4,16,16,p),new m(8,16,32,32,p),new m(8,16,128,128,p),new m(8,32,128,256,p),new m(32,128,258,1024,p),new m(32,258,258,4096,p)],r.deflateInit=function(t,e){return x(t,e,W,Y,X,q)},r.deflateInit2=x,r.deflateReset=w,r.deflateResetKeep=b,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?F:(t.state.gzhead=e,N):F},r.deflate=function(t,e){var r,a,h,c;if(!t||!t.state||e>B||e<0)return t?n(t,F):F;if(a=t.state,!t.output||!t.input&&0!==t.avail_in||a.status===ct&&e!==T)return n(t,0===t.avail_out?z:F);if(a.strm=t,r=a.last_flush,a.last_flush=e,a.status===ot)if(2===a.wrap)t.adler=0,l(a,31),l(a,139),l(a,8),a.gzhead?(l(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),l(a,255&a.gzhead.time),l(a,a.gzhead.time>>8&255),l(a,a.gzhead.time>>16&255),l(a,a.gzhead.time>>24&255),l(a,9===a.level?2:a.strategy>=U||a.level<2?4:0),l(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(l(a,255&a.gzhead.extra.length),l(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=k(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=st):(l(a,0),l(a,0),l(a,0),l(a,0),l(a,0),l(a,9===a.level?2:a.strategy>=U||a.level<2?4:0),l(a,_t),a.status=ht);else{var f=W+(a.w_bits-8<<4)<<8;f|=(a.strategy>=U||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(f|=it),f+=31-f%31,a.status=ht,u(a,f),0!==a.strstart&&(u(a,t.adler>>>16),u(a,65535&t.adler)),t.adler=1}if(a.status===st)if(a.gzhead.extra){for(h=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>h&&(t.adler=k(t.adler,a.pending_buf,a.pending-h,h)),s(t),h=a.pending,a.pending!==a.pending_buf_size));)l(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>h&&(t.adler=k(t.adler,a.pending_buf,a.pending-h,h)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=at)}else a.status=at;if(a.status===at)if(a.gzhead.name){h=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>h&&(t.adler=k(t.adler,a.pending_buf,a.pending-h,h)),s(t),h=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,l(a,c)}while(0!==c);a.gzhead.hcrc&&a.pending>h&&(t.adler=k(t.adler,a.pending_buf,a.pending-h,h)),0===c&&(a.gzindex=0,a.status=lt)}else a.status=lt;if(a.status===lt)if(a.gzhead.comment){h=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>h&&(t.adler=k(t.adler,a.pending_buf,a.pending-h,h)),s(t),h=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,l(a,c)}while(0!==c);a.gzhead.hcrc&&a.pending>h&&(t.adler=k(t.adler,a.pending_buf,a.pending-h,h)),0===c&&(a.status=ut)}else a.status=ut;if(a.status===ut&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&s(t),a.pending+2<=a.pending_buf_size&&(l(a,255&t.adler),l(a,t.adler>>8&255),t.adler=0,a.status=ht)):a.status=ht),0!==a.pending){if(s(t),0===t.avail_out)return a.last_flush=-1,N}else if(0===t.avail_in&&i(e)<=i(r)&&e!==T)return n(t,z);if(a.status===ct&&0!==t.avail_in)return n(t,z);if(0!==t.avail_in||0!==a.lookahead||e!==j&&a.status!==ct){var d=a.strategy===U?_(a,e):a.strategy===H?g(a,e):S[a.level].func(a,e);if(d!==pt&&d!==gt||(a.status=ct),d===ft||d===pt)return 0===t.avail_out&&(a.last_flush=-1),N;if(d===dt&&(e===I?E._tr_align(a):e!==B&&(E._tr_stored_block(a,0,0,!1),e===L&&(o(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),s(t),0===t.avail_out))return a.last_flush=-1,N}return e!==T?N:a.wrap<=0?O:(2===a.wrap?(l(a,255&t.adler),l(a,t.adler>>8&255),l(a,t.adler>>16&255),l(a,t.adler>>24&255),l(a,255&t.total_in),l(a,t.total_in>>8&255),l(a,t.total_in>>16&255),l(a,t.total_in>>24&255)):(u(a,t.adler>>>16),u(a,65535&t.adler)),s(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?N:O)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==ot&&e!==st&&e!==at&&e!==lt&&e!==ut&&e!==ht&&e!==ct?n(t,F):(t.state=null,e===ht?n(t,D):N):F},r.deflateSetDictionary=function(t,e){var r,n,i,s,a,l,u,h,c=e.length;if(!t||!t.state)return F;if(r=t.state,2===(s=r.wrap)||1===s&&r.status!==ot||r.lookahead)return F;for(1===s&&(t.adler=A(t.adler,e,c,0)),r.wrap=0,c>=r.w_size&&(0===s&&(o(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new C.Buf8(r.w_size),C.arraySet(h,e,c-r.w_size,r.w_size,0),e=h,c=r.w_size),a=t.avail_in,l=t.next_in,u=t.input,t.avail_in=c,t.next_in=0,t.input=e,f(r);r.lookahead>=et;){n=r.strstart,i=r.lookahead-(et-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+et-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=et-1,f(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=et-1,r.match_available=0,t.next_in=l,t.input=u,t.avail_in=a,r.wrap=s,N},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":190,"./adler32":191,"./crc32":193,"./messages":198,"./trees":199}],195:[function(t,e,r){e.localExports=function(t,e){var r,n,i,o,s,a,l,u,h,c,f,d,p,g,_,m,v,y,b,w,x,S,C,E,A;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),o=t.next_out,A=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=r.dmax,u=r.wsize,h=r.whave,c=r.wnext,f=r.window,d=r.hold,p=r.bits,g=r.lencode,_=r.distcode,m=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),y=g[d&m];e:for(;;){if(b=y>>>24,d>>>=b,p-=b,0===(b=y>>>16&255))A[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=g[(65535&y)+(d&(1<<b)-1)];continue e}if(32&b){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&y,(b&=15)&&(p<b&&(d+=E[n++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),y=_[d&v];r:for(;;){if(b=y>>>24,d>>>=b,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=_[(65535&y)+(d&(1<<b)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&y,b&=15,p<b&&(d+=E[n++]<<p,(p+=8)<b&&(d+=E[n++]<<p,p+=8)),(x+=d&(1<<b)-1)>l){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=b,p-=b,b=o-s,x>b){if((b=x-b)>h&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(S=0,C=f,0===c){if(S+=u-b,b<w){w-=b;do{A[o++]=f[S++]}while(--b);S=o-x,C=A}}else if(c<b){if(S+=u+c-b,(b-=c)<w){w-=b;do{A[o++]=f[S++]}while(--b);if(S=0,c<w){w-=b=c;do{A[o++]=f[S++]}while(--b);S=o-x,C=A}}}else if(S+=c-b,b<w){w-=b;do{A[o++]=f[S++]}while(--b);S=o-x,C=A}for(;w>2;)A[o++]=C[S++],A[o++]=C[S++],A[o++]=C[S++],w-=3;w&&(A[o++]=C[S++],w>1&&(A[o++]=C[S++]))}else{S=o-x;do{A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],w-=3}while(w>2);w&&(A[o++]=A[S++],w>1&&(A[o++]=A[S++]))}break}}break}}while(n<i&&o<a);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},{}],196:[function(t,e,r){function n(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=T,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new d.Buf32(ht),e.distcode=e.distdyn=new d.Buf32(ct),e.sane=1,e.back=-1,C):k}function s(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,o(t)):k}function a(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?k:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,s(t))):k}function l(t,e){var r,n;return t?(n=new i,t.state=n,n.window=null,(r=a(t,e))!==C&&(t.state=null),r):k}function u(t){if(dt){var e;for(c=new d.Buf32(512),f=new d.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(m(y,t.lens,0,288,c,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;m(b,t.lens,0,32,f,0,t.work,{bits:5}),dt=!1}t.lencode=c,t.lenbits=9,t.distcode=f,t.distbits=5}function h(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new d.Buf8(o.wsize)),n>=o.wsize?(d.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),d.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(d.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var c,f,d=t("../utils/common"),p=t("./adler32"),g=t("./crc32"),_=t("./inffast"),m=t("./inftrees"),v=0,y=1,b=2,w=4,x=5,S=6,C=0,E=1,A=2,k=-2,P=-3,j=-4,I=-5,L=8,T=1,B=2,N=3,O=4,F=5,D=6,z=7,R=8,M=9,U=10,H=11,G=12,q=13,Z=14,W=15,V=16,Y=17,X=18,K=19,J=20,Q=21,$=22,tt=23,et=24,rt=25,nt=26,it=27,ot=28,st=29,at=30,lt=31,ut=32,ht=852,ct=592,ft=15,dt=!0;r.inflateReset=s,r.inflateReset2=a,r.inflateResetKeep=o,r.inflateInit=function(t){return l(t,ft)},r.inflateInit2=l,r.inflate=function(t,e){var r,i,o,s,a,l,c,f,ht,ct,ft,dt,pt,gt,_t,mt,vt,yt,bt,wt,xt,St,Ct,Et,At=0,kt=new d.Buf8(4),Pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return k;(r=t.state).mode===G&&(r.mode=q),a=t.next_out,o=t.output,c=t.avail_out,s=t.next_in,i=t.input,l=t.avail_in,f=r.hold,ht=r.bits,ct=l,ft=c,St=C;t:for(;;)switch(r.mode){case T:if(0===r.wrap){r.mode=q;break}for(;ht<16;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(2&r.wrap&&35615===f){r.check=0,kt[0]=255&f,kt[1]=f>>>8&255,r.check=g(r.check,kt,2,0),f=0,ht=0,r.mode=B;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",r.mode=at;break}if((15&f)!==L){t.msg="unknown compression method",r.mode=at;break}if(f>>>=4,ht-=4,xt=8+(15&f),0===r.wbits)r.wbits=xt;else if(xt>r.wbits){t.msg="invalid window size",r.mode=at;break}r.dmax=1<<xt,t.adler=r.check=1,r.mode=512&f?U:G,f=0,ht=0;break;case B:for(;ht<16;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(r.flags=f,(255&r.flags)!==L){t.msg="unknown compression method",r.mode=at;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=at;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&(kt[0]=255&f,kt[1]=f>>>8&255,r.check=g(r.check,kt,2,0)),f=0,ht=0,r.mode=N;case N:for(;ht<32;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}r.head&&(r.head.time=f),512&r.flags&&(kt[0]=255&f,kt[1]=f>>>8&255,kt[2]=f>>>16&255,kt[3]=f>>>24&255,r.check=g(r.check,kt,4,0)),f=0,ht=0,r.mode=O;case O:for(;ht<16;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&(kt[0]=255&f,kt[1]=f>>>8&255,r.check=g(r.check,kt,2,0)),f=0,ht=0,r.mode=F;case F:if(1024&r.flags){for(;ht<16;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&(kt[0]=255&f,kt[1]=f>>>8&255,r.check=g(r.check,kt,2,0)),f=0,ht=0}else r.head&&(r.head.extra=null);r.mode=D;case D:if(1024&r.flags&&((dt=r.length)>l&&(dt=l),dt&&(r.head&&(xt=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),d.arraySet(r.head.extra,i,s,dt,xt)),512&r.flags&&(r.check=g(r.check,i,dt,s)),l-=dt,s+=dt,r.length-=dt),r.length))break t;r.length=0,r.mode=z;case z:if(2048&r.flags){if(0===l)break t;dt=0;do{xt=i[s+dt++],r.head&&xt&&r.length<65536&&(r.head.name+=String.fromCharCode(xt))}while(xt&&dt<l);if(512&r.flags&&(r.check=g(r.check,i,dt,s)),l-=dt,s+=dt,xt)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=R;case R:if(4096&r.flags){if(0===l)break t;dt=0;do{xt=i[s+dt++],r.head&&xt&&r.length<65536&&(r.head.comment+=String.fromCharCode(xt))}while(xt&&dt<l);if(512&r.flags&&(r.check=g(r.check,i,dt,s)),l-=dt,s+=dt,xt)break t}else r.head&&(r.head.comment=null);r.mode=M;case M:if(512&r.flags){for(;ht<16;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(f!==(65535&r.check)){t.msg="header crc mismatch",r.mode=at;break}f=0,ht=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=G;break;case U:for(;ht<32;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}t.adler=r.check=n(f),f=0,ht=0,r.mode=H;case H:if(0===r.havedict)return t.next_out=a,t.avail_out=c,t.next_in=s,t.avail_in=l,r.hold=f,r.bits=ht,A;t.adler=r.check=1,r.mode=G;case G:if(e===x||e===S)break t;case q:if(r.last){f>>>=7&ht,ht-=7&ht,r.mode=it;break}for(;ht<3;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}switch(r.last=1&f,f>>>=1,ht-=1,3&f){case 0:r.mode=Z;break;case 1:if(u(r),r.mode=J,e===S){f>>>=2,ht-=2;break t}break;case 2:r.mode=Y;break;case 3:t.msg="invalid block type",r.mode=at}f>>>=2,ht-=2;break;case Z:for(f>>>=7&ht,ht-=7&ht;ht<32;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if((65535&f)!=(f>>>16^65535)){t.msg="invalid stored block lengths",r.mode=at;break}if(r.length=65535&f,f=0,ht=0,r.mode=W,e===S)break t;case W:r.mode=V;case V:if(dt=r.length){if(dt>l&&(dt=l),dt>c&&(dt=c),0===dt)break t;d.arraySet(o,i,s,dt,a),l-=dt,s+=dt,c-=dt,a+=dt,r.length-=dt;break}r.mode=G;break;case Y:for(;ht<14;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(r.nlen=257+(31&f),f>>>=5,ht-=5,r.ndist=1+(31&f),f>>>=5,ht-=5,r.ncode=4+(15&f),f>>>=4,ht-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=at;break}r.have=0,r.mode=X;case X:for(;r.have<r.ncode;){for(;ht<3;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}r.lens[Pt[r.have++]]=7&f,f>>>=3,ht-=3}for(;r.have<19;)r.lens[Pt[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Ct={bits:r.lenbits},St=m(v,r.lens,0,19,r.lencode,0,r.work,Ct),r.lenbits=Ct.bits,St){t.msg="invalid code lengths set",r.mode=at;break}r.have=0,r.mode=K;case K:for(;r.have<r.nlen+r.ndist;){for(;At=r.lencode[f&(1<<r.lenbits)-1],_t=At>>>24,mt=At>>>16&255,vt=65535&At,!(_t<=ht);){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(vt<16)f>>>=_t,ht-=_t,r.lens[r.have++]=vt;else{if(16===vt){for(Et=_t+2;ht<Et;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(f>>>=_t,ht-=_t,0===r.have){t.msg="invalid bit length repeat",r.mode=at;break}xt=r.lens[r.have-1],dt=3+(3&f),f>>>=2,ht-=2}else if(17===vt){for(Et=_t+3;ht<Et;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}ht-=_t,xt=0,dt=3+(7&(f>>>=_t)),f>>>=3,ht-=3}else{for(Et=_t+7;ht<Et;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}ht-=_t,xt=0,dt=11+(127&(f>>>=_t)),f>>>=7,ht-=7}if(r.have+dt>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=at;break}for(;dt--;)r.lens[r.have++]=xt}}if(r.mode===at)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=at;break}if(r.lenbits=9,Ct={bits:r.lenbits},St=m(y,r.lens,0,r.nlen,r.lencode,0,r.work,Ct),r.lenbits=Ct.bits,St){t.msg="invalid literal/lengths set",r.mode=at;break}if(r.distbits=6,r.distcode=r.distdyn,Ct={bits:r.distbits},St=m(b,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Ct),r.distbits=Ct.bits,St){t.msg="invalid distances set",r.mode=at;break}if(r.mode=J,e===S)break t;case J:r.mode=Q;case Q:if(l>=6&&c>=258){t.next_out=a,t.avail_out=c,t.next_in=s,t.avail_in=l,r.hold=f,r.bits=ht,_(t,ft),a=t.next_out,o=t.output,c=t.avail_out,s=t.next_in,i=t.input,l=t.avail_in,f=r.hold,ht=r.bits,r.mode===G&&(r.back=-1);break}for(r.back=0;At=r.lencode[f&(1<<r.lenbits)-1],_t=At>>>24,mt=At>>>16&255,vt=65535&At,!(_t<=ht);){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(mt&&0==(240&mt)){for(yt=_t,bt=mt,wt=vt;At=r.lencode[wt+((f&(1<<yt+bt)-1)>>yt)],_t=At>>>24,mt=At>>>16&255,vt=65535&At,!(yt+_t<=ht);){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}f>>>=yt,ht-=yt,r.back+=yt}if(f>>>=_t,ht-=_t,r.back+=_t,r.length=vt,0===mt){r.mode=nt;break}if(32&mt){r.back=-1,r.mode=G;break}if(64&mt){t.msg="invalid literal/length code",r.mode=at;break}r.extra=15&mt,r.mode=$;case $:if(r.extra){for(Et=r.extra;ht<Et;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,ht-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=tt;case tt:for(;At=r.distcode[f&(1<<r.distbits)-1],_t=At>>>24,mt=At>>>16&255,vt=65535&At,!(_t<=ht);){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(0==(240&mt)){for(yt=_t,bt=mt,wt=vt;At=r.distcode[wt+((f&(1<<yt+bt)-1)>>yt)],_t=At>>>24,mt=At>>>16&255,vt=65535&At,!(yt+_t<=ht);){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}f>>>=yt,ht-=yt,r.back+=yt}if(f>>>=_t,ht-=_t,r.back+=_t,64&mt){t.msg="invalid distance code",r.mode=at;break}r.offset=vt,r.extra=15&mt,r.mode=et;case et:if(r.extra){for(Et=r.extra;ht<Et;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,ht-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=at;break}r.mode=rt;case rt:if(0===c)break t;if(dt=ft-c,r.offset>dt){if((dt=r.offset-dt)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=at;break}dt>r.wnext?(dt-=r.wnext,pt=r.wsize-dt):pt=r.wnext-dt,dt>r.length&&(dt=r.length),gt=r.window}else gt=o,pt=a-r.offset,dt=r.length;dt>c&&(dt=c),c-=dt,r.length-=dt;do{o[a++]=gt[pt++]}while(--dt);0===r.length&&(r.mode=Q);break;case nt:if(0===c)break t;o[a++]=r.length,c--,r.mode=Q;break;case it:if(r.wrap){for(;ht<32;){if(0===l)break t;l--,f|=i[s++]<<ht,ht+=8}if(ft-=c,t.total_out+=ft,r.total+=ft,ft&&(t.adler=r.check=r.flags?g(r.check,o,ft,a-ft):p(r.check,o,ft,a-ft)),ft=c,(r.flags?f:n(f))!==r.check){t.msg="incorrect data check",r.mode=at;break}f=0,ht=0}r.mode=ot;case ot:if(r.wrap&&r.flags){for(;ht<32;){if(0===l)break t;l--,f+=i[s++]<<ht,ht+=8}if(f!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=at;break}f=0,ht=0}r.mode=st;case st:St=E;break t;case at:St=P;break t;case lt:return j;case ut:default:return k}return t.next_out=a,t.avail_out=c,t.next_in=s,t.avail_in=l,r.hold=f,r.bits=ht,(r.wsize||ft!==t.avail_out&&r.mode<at&&(r.mode<it||e!==w))&&h(t,t.output,t.next_out,ft-t.avail_out)?(r.mode=lt,j):(ct-=t.avail_in,ft-=t.avail_out,t.total_in+=ct,t.total_out+=ft,r.total+=ft,r.wrap&&ft&&(t.adler=r.check=r.flags?g(r.check,o,ft,t.next_out-ft):p(r.check,o,ft,t.next_out-ft)),t.data_type=r.bits+(r.last?64:0)+(r.mode===G?128:0)+(r.mode===J||r.mode===W?256:0),(0===ct&&0===ft||e===w)&&St===C&&(St=I),St)},r.inflateEnd=function(t){if(!t||!t.state)return k;var e=t.state;return e.window&&(e.window=null),t.state=null,C},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?k:(r.head=e,e.done=!1,C):k},r.inflateSetDictionary=function(t,e){var r,n,i=e.length;return t&&t.state?0!==(r=t.state).wrap&&r.mode!==H?k:r.mode===H&&(n=1,(n=p(n,e,i,0))!==r.check)?P:h(t,e,i,i)?(r.mode=lt,j):(r.havedict=1,C):k},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":190,"./adler32":191,"./crc32":193,"./inffast":195,"./inftrees":197}],197:[function(t,e,r){var n=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.localExports=function(t,e,r,l,u,h,c,f){var d,p,g,_,m,v,y,b,w,x=f.bits,S=0,C=0,E=0,A=0,k=0,P=0,j=0,I=0,L=0,T=0,B=null,N=0,O=new n.Buf16(16),F=new n.Buf16(16),D=null,z=0;for(S=0;S<=15;S++)O[S]=0;for(C=0;C<l;C++)O[e[r+C]]++;for(k=x,A=15;A>=1&&0===O[A];A--);if(k>A&&(k=A),0===A)return u[h++]=20971520,u[h++]=20971520,f.bits=1,0;for(E=1;E<A&&0===O[E];E++);for(k<E&&(k=E),I=1,S=1;S<=15;S++)if(I<<=1,(I-=O[S])<0)return-1;if(I>0&&(0===t||1!==A))return-1;for(F[1]=0,S=1;S<15;S++)F[S+1]=F[S]+O[S];for(C=0;C<l;C++)0!==e[r+C]&&(c[F[e[r+C]]++]=C);if(0===t?(B=D=c,v=19):1===t?(B=i,N-=257,D=o,z-=257,v=256):(B=s,D=a,v=-1),T=0,C=0,S=E,m=h,P=k,j=0,g=-1,L=1<<k,_=L-1,1===t&&L>852||2===t&&L>592)return 1;for(;;){0,y=S-j,c[C]<v?(b=0,w=c[C]):c[C]>v?(b=D[z+c[C]],w=B[N+c[C]]):(b=96,w=0),d=1<<S-j,E=p=1<<P;do{u[m+(T>>j)+(p-=d)]=y<<24|b<<16|w|0}while(0!==p);for(d=1<<S-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,C++,0==--O[S]){if(S===A)break;S=e[r+c[C]]}if(S>k&&(T&_)!==g){for(0===j&&(j=k),m+=E,I=1<<(P=S-j);P+j<A&&!((I-=O[P+j])<=0);)P++,I<<=1;if(L+=1<<P,1===t&&L>852||2===t&&L>592)return 1;u[g=T&_]=k<<24|P<<16|m-h|0}}return 0!==T&&(u[m+T]=S-j<<24|64<<16|0),f.bits=k,0}},{"../utils/common":190}],198:[function(t,e,r){e.localExports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],199:[function(t,e,r){function n(t){for(var e=t.length;--e>=0;)t[e]=0}function i(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function o(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function s(t){return t<256?et[t]:et[256+(t>>>7)]}function a(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function l(t,e,r){t.bi_valid>G-r?(t.bi_buf|=e<<t.bi_valid&65535,a(t,t.bi_buf),t.bi_buf=e>>G-t.bi_valid,t.bi_valid+=r-G):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function u(t,e,r){l(t,r[2*e],r[2*e+1])}function h(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function c(t){16===t.bi_valid?(a(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function f(t,e){var r,n,i,o,s,a,l=e.dyn_tree,u=e.max_code,h=e.stat_desc.static_tree,c=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=H;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<U;r++)(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,g++),l[2*n+1]=o,n>u||(t.bl_count[o]++,s=0,n>=d&&(s=f[n-d]),a=l[2*n],t.opt_len+=a*(o+s),c&&(t.static_len+=a*(h[2*n+1]+s)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>u||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}function d(t,e,r){var n,i,o=new Array(H+1),s=0;for(n=1;n<=H;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=h(o[a]++,a))}}function p(){var t,e,r,n,o,s=new Array(H+1);for(r=0,n=0;n<F-1;n++)for(nt[n]=r,t=0;t<1<<X[n];t++)rt[r++]=n;for(rt[r-1]=n,o=0,n=0;n<16;n++)for(it[n]=o,t=0;t<1<<K[n];t++)et[o++]=n;for(o>>=7;n<R;n++)for(it[n]=o<<7,t=0;t<1<<K[n]-7;t++)et[256+o++]=n;for(e=0;e<=H;e++)s[e]=0;for(t=0;t<=143;)$[2*t+1]=8,t++,s[8]++;for(;t<=255;)$[2*t+1]=9,t++,s[9]++;for(;t<=279;)$[2*t+1]=7,t++,s[7]++;for(;t<=287;)$[2*t+1]=8,t++,s[8]++;for(d($,z+1,s),t=0;t<R;t++)tt[2*t+1]=5,tt[2*t]=h(t,5);ot=new i($,X,D+1,z,H),st=new i(tt,K,0,R,H),at=new i(new Array(0),J,0,M,q)}function g(t){var e;for(e=0;e<z;e++)t.dyn_ltree[2*e]=0;for(e=0;e<R;e++)t.dyn_dtree[2*e]=0;for(e=0;e<M;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*Z]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function _(t){t.bi_valid>8?a(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function m(t,e,r,n){_(t),n&&(a(t,r),a(t,~r)),P.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}function v(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function y(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&v(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!v(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function b(t,e,r){var n,i,o,a,h=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*h]<<8|t.pending_buf[t.d_buf+2*h+1],i=t.pending_buf[t.l_buf+h],h++,0===n?u(t,i,e):(u(t,(o=rt[i])+D+1,e),0!==(a=X[o])&&l(t,i-=nt[o],a),u(t,o=s(--n),r),0!==(a=K[o])&&l(t,n-=it[o],a))}while(h<t.last_lit);u(t,Z,e)}function w(t,e){var r,n,i,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=U,r=0;r<l;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,a&&(t.static_len-=s[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;r>=1;r--)y(t,o,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],y(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,y(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],f(t,e),d(o,u,t.bl_count)}function x(t,e,r){var n,i,o=-1,s=e[1],a=0,l=7,u=4;for(0===s&&(l=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=e[2*(n+1)+1],++a<l&&i===s||(a<u?t.bl_tree[2*i]+=a:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*W]++):a<=10?t.bl_tree[2*V]++:t.bl_tree[2*Y]++,a=0,o=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4))}function S(t,e,r){var n,i,o=-1,s=e[1],a=0,h=7,c=4;for(0===s&&(h=138,c=3),n=0;n<=r;n++)if(i=s,s=e[2*(n+1)+1],!(++a<h&&i===s)){if(a<c)do{u(t,i,t.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(u(t,i,t.bl_tree),a--),u(t,W,t.bl_tree),l(t,a-3,2)):a<=10?(u(t,V,t.bl_tree),l(t,a-3,3)):(u(t,Y,t.bl_tree),l(t,a-11,7));a=0,o=i,0===s?(h=138,c=3):i===s?(h=6,c=3):(h=7,c=4)}}function C(t){var e;for(x(t,t.dyn_ltree,t.l_desc.max_code),x(t,t.dyn_dtree,t.d_desc.max_code),w(t,t.bl_desc),e=M-1;e>=3&&0===t.bl_tree[2*Q[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function E(t,e,r,n){var i;for(l(t,e-257,5),l(t,r-1,5),l(t,n-4,4),i=0;i<n;i++)l(t,t.bl_tree[2*Q[i]+1],3);S(t,t.dyn_ltree,e-1),S(t,t.dyn_dtree,r-1)}function A(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return I;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return L;for(e=32;e<D;e++)if(0!==t.dyn_ltree[2*e])return L;return I}function k(t,e,r,n){l(t,(B<<1)+(n?1:0),3),m(t,e,r,!0)}var P=t("../utils/common"),j=4,I=0,L=1,T=2,B=0,N=1,O=2,F=29,D=256,z=D+1+F,R=30,M=19,U=2*z+1,H=15,G=16,q=7,Z=256,W=16,V=17,Y=18,X=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],K=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],J=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(z+2));n($);var tt=new Array(2*R);n(tt);var et=new Array(512);n(et);var rt=new Array(256);n(rt);var nt=new Array(F);n(nt);var it=new Array(R);n(it);var ot,st,at,lt=!1;r._tr_init=function(t){lt||(p(),lt=!0),t.l_desc=new o(t.dyn_ltree,ot),t.d_desc=new o(t.dyn_dtree,st),t.bl_desc=new o(t.bl_tree,at),t.bi_buf=0,t.bi_valid=0,g(t)},r._tr_stored_block=k,r._tr_flush_block=function(t,e,r,n){var i,o,s=0;t.level>0?(t.strm.data_type===T&&(t.strm.data_type=A(t)),w(t,t.l_desc),w(t,t.d_desc),s=C(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?k(t,e,r,n):t.strategy===j||o===i?(l(t,(N<<1)+(n?1:0),3),b(t,$,tt)):(l(t,(O<<1)+(n?1:0),3),E(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),b(t,t.dyn_ltree,t.dyn_dtree)),g(t),n&&_(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(rt[r]+D+1)]++,t.dyn_dtree[2*s(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){l(t,N<<1,3),u(t,Z,$),c(t)}},{"../utils/common":190}],200:[function(t,e,r){e.localExports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],201:[function(t,e,r){(function(r){(function(){var n,i;n=t("fs"),i=t("zlib"),e.localExports=function(){function t(t){var e,n,i,o,s,a,l,u,h,c;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){switch(e=this.readUInt32(),function(){var t,e;for(e=[],i=t=0;t<4;i=++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(e);break;case"IDAT":for(i=u=0;u<e;i=u+=1)this.imgData.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(e),(a=255-this.transparency.indexed.length)>0)for(i=h=0;0<=a?h<a:h>a;i=0<=a?++h:--h)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":o=(l=this.read(e)).indexOf(0),s=String.fromCharCode.apply(String,l.slice(0,o)),this.text[s]=String.fromCharCode.apply(String,l.slice(o+1));break;case"IEND":return this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(c=this.colorType)||6===c,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new r(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return t.decode=function(e,r){return n.readFile(e,function(e,n){return new t(n).decode(function(t){return r(t)})})},t.load=function(e){var r;return r=n.readFileSync(e),new t(r)},t.prototype.read=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(this.data[this.pos++]);return r},t.prototype.readUInt32=function(){var t,e,r,n;return t=this.data[this.pos++]<<24,e=this.data[this.pos++]<<16,r=this.data[this.pos++]<<8,n=this.data[this.pos++],t|e|r|n},t.prototype.readUInt16=function(){var t,e;return t=this.data[this.pos++]<<8,e=this.data[this.pos++],t|e},t.prototype.decodePixels=function(t){var e=this;return i.inflate(this.imgData,function(n,i){var o,s,a,l,u,h,c,f,d,p,g,_,m,v,y,b,w,x,S,C,E,A,k;if(n)throw n;for(b=(_=e.pixelBitlength/8)*e.width,m=new r(b*e.height),h=i.length,y=0,v=0,s=0;v<h;){switch(i[v++]){case 0:for(l=S=0;S<b;l=S+=1)m[s++]=i[v++];break;case 1:for(l=C=0;C<b;l=C+=1)o=i[v++],u=l<_?0:m[s-_],m[s++]=(o+u)%256;break;case 2:for(l=E=0;E<b;l=E+=1)o=i[v++],a=(l-l%_)/_,w=y&&m[(y-1)*b+a*_+l%_],m[s++]=(w+o)%256;break;case 3:for(l=A=0;A<b;l=A+=1)o=i[v++],a=(l-l%_)/_,u=l<_?0:m[s-_],w=y&&m[(y-1)*b+a*_+l%_],m[s++]=(o+Math.floor((u+w)/2))%256;break;case 4:for(l=k=0;k<b;l=k+=1)o=i[v++],a=(l-l%_)/_,u=l<_?0:m[s-_],0===y?w=x=0:(w=m[(y-1)*b+a*_+l%_],x=a&&m[(y-1)*b+(a-1)*_+l%_]),c=u+w-x,f=Math.abs(c-u),p=Math.abs(c-w),g=Math.abs(c-x),d=f<=p&&f<=g?u:p<=g?w:x,m[s++]=(o+d)%256;break;default:throw new Error("Invalid filter algorithm: "+i[v-1])}y++}return t(m)})},t.prototype.decodePalette=function(){var t,e,n,i,o,s,a,l,u;for(n=this.palette,s=this.transparency.indexed||[],o=new r(s.length+n.length),i=0,n.length,t=0,e=a=0,l=n.length;a<l;e=a+=3)o[i++]=n[e],o[i++]=n[e+1],o[i++]=n[e+2],o[i++]=null!=(u=s[t++])?u:255;return o},t.prototype.copyToImageData=function(t,e){var r,n,i,o,s,a,l,u,h,c,f;if(n=this.colors,h=null,r=this.hasAlphaChannel,this.palette.length&&(h=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),i=(null!=t?t.data:void 0)||t,u=i.length,s=h||e,o=a=0,1===n)for(;o<u;)l=h?4*e[o/4]:a,c=s[l++],i[o++]=c,i[o++]=c,i[o++]=c,i[o++]=r?s[l++]:255,a=l;else for(;o<u;)l=h?4*e[o/4]:a,i[o++]=s[l++],i[o++]=s[l++],i[o++]=s[l++],i[o++]=r?s[l++]:255,a=l},t.prototype.decode=function(t){var e,n=this;return e=new r(this.width*this.height*4),this.decodePixels(function(r){return n.copyToImageData(e,r),t(e)})},t}()}).call(this)}).call(this,t("buffer").Buffer)},{buffer:28,fs:26,zlib:25}],202:[function(t,e,r){function n(){}var i=e.localExports={};i.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),r.length>0&&r.shift()())},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=n,i.addListener=n,i.once=n,i.off=n,i.removeListener=n,i.removeAllListeners=n,i.emit=n,i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")}},{}],203:[function(t,e,r){function n(t){if(!(this instanceof n))return new n(t);a.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){if(!this.allowHalfOpen&&!this._writableState.ended){var t=this;s(function(){t.end()})}}e.localExports=n;var o=t("inherits"),s=t("process/browser.js").nextTick,a=t("./readable.js"),l=t("./writable.js");o(n,a),n.prototype.write=l.prototype.write,n.prototype.end=l.prototype.end,n.prototype._write=l.prototype._write},{"./readable.js":207,"./writable.js":209,inherits:186,"process/browser.js":205}],204:[function(t,e,r){function n(){i.call(this)}e.localExports=n;var i=t("events").EventEmitter;t("inherits")(n,i),n.Readable=t("./readable.js"),n.Writable=t("./writable.js"),n.Duplex=t("./duplex.js"),n.Transform=t("./transform.js"),n.PassThrough=t("./passthrough.js"),n.Stream=n,n.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function o(){h||(h=!0,t.end())}function s(){h||(h=!0,"function"==typeof t.destroy&&t.destroy())}function a(t){if(l(),0===i.listenerCount(this,"error"))throw t}function l(){u.removeListener("data",r),t.removeListener("drain",n),u.removeListener("end",o),u.removeListener("close",s),u.removeListener("error",a),t.removeListener("error",a),u.removeListener("end",l),u.removeListener("close",l),t.removeListener("close",l)}var u=this;u.on("data",r),t.on("drain",n),t._isStdio||e&&!1===e.end||(u.on("end",o),u.on("close",s));var h=!1;return u.on("error",a),t.on("error",a),u.on("end",l),u.on("close",l),t.on("close",l),t.emit("pipe",u),t}},{"./duplex.js":203,"./passthrough.js":206,"./readable.js":207,"./transform.js":208,"./writable.js":209,events:29,inherits:186}],205:[function(t,e,r){var n=e.localExports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),r.length>0&&r.shift()())},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")}},{}],206:[function(t,e,r){function n(t){if(!(this instanceof n))return new n(t);i.call(this,t)}e.localExports=n;var i=t("./transform.js");t("inherits")(n,i),n.prototype._transform=function(t,e,r){r(null,t)}},{"./transform.js":208,inherits:186}],207:[function(t,e,r){(function(r){function n(e,r){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(S||(S=t("string_decoder").StringDecoder),this.decoder=new S(e.encoding),this.encoding=e.encoding)}function i(t){if(!(this instanceof i))return new i(t);this._readableState=new n(t,this),this.readable=!0,E.call(this)}function o(t,e,r,n,i){var o=u(e,r);if(o)t.emit("error",o);else if(null===r||void 0===r)e.reading=!1,e.ended||h(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){var a=new Error("stream.unshift() after end event");t.emit("error",a)}else!e.decoder||i||n||(r=e.decoder.write(r)),e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):(e.reading=!1,e.buffer.push(r)),e.needReadable&&c(t),d(t,e);else i||(e.reading=!1);return s(e)}function s(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function a(t){if(t>=P)t=P;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}function l(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:isNaN(t)||null===t?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:t<=0?0:(t>e.highWaterMark&&(e.highWaterMark=a(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function u(t,e){var r=null;return A.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||r||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(t,e){if(e.decoder&&!e.ended){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.length>0?c(t):b(t)}function c(t,e){var r=t._readableState;r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,r.sync?k(function(){f(t)}):f(t))}function f(t){t.emit("readable")}function d(t,e){e.readingMore||(e.readingMore=!0,k(function(){p(t,e)}))}function p(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function g(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&_(t)}}function _(t){function e(t,e,i){!1===t.write(r)&&n.awaitDrain++}var r,n=t._readableState;for(n.awaitDrain=0;n.pipesCount&&null!==(r=t.read());)if(1===n.pipesCount?e(n.pipes):w(n.pipes,e),t.emit("data",r),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(C.listenerCount(t,"data")>0&&v(t));n.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,_(this))}function v(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=e||!1,n=!1;t.readable=!0,t.pipe=E.prototype.pipe,t.on=t.addListener=E.prototype.on,t.on("readable",function(){n=!0;for(var e;!r&&null!==(e=t.read());)t.emit("data",e);null===e&&(n=!1,t._readableState.needReadable=!0)}),t.pause=function(){r=!0,this.emit("pause")},t.resume=function(){r=!1,n?k(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var r,n=e.buffer,i=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!t||t>=i)r=o?n.join(""):A.concat(n,i),n.length=0;else if(t<n[0].length)r=(h=n[0]).slice(0,t),n[0]=h.slice(t);else if(t===n[0].length)r=n.shift();else{r=o?"":new A(t);for(var a=0,l=0,u=n.length;l<u&&a<t;l++){var h=n[0],c=Math.min(t-a,h.length);o?r+=h.slice(0,c):h.copy(r,a,0,c),c<h.length?n[0]=h.slice(c):n.shift(),a+=c}}return r}function b(t){var e=t._readableState;if(e.length>0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,k(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}function x(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}e.localExports=i,i.ReadableState=n;var S,C=t("events").EventEmitter,E=t("./index.js"),A=t("buffer").Buffer,k=t("process/browser.js").nextTick;t("inherits")(i,E),i.prototype.push=function(t,e){var r=this._readableState;return"string"!=typeof t||r.objectMode||(e=e||r.defaultEncoding)!==r.encoding&&(t=new A(t,e),e=""),o(this,r,t,e,!1)},i.prototype.unshift=function(t){return o(this,this._readableState,t,"",!0)},i.prototype.setEncoding=function(e){S||(S=t("string_decoder").StringDecoder),this._readableState.decoder=new S(e),this._readableState.encoding=e};var P=8388608;i.prototype.read=function(t){var e=this._readableState;e.calledRead=!0;var r=t;if(("number"!=typeof t||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c(this),null;if(0===(t=l(t,e))&&e.ended)return 0===e.length&&b(this),null;var n=e.needReadable;e.length-t<=e.highWaterMark&&(n=!0),(e.ended||e.reading)&&(n=!1),n&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),n&&!e.reading&&(t=l(r,e));var i;return null===(i=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&b(this),i},i.prototype._read=function(t){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(t,e){function n(t){t===h&&o()}function i(){t.end()}function o(){t.removeListener("close",a),t.removeListener("finish",l),t.removeListener("drain",d),t.removeListener("error",s),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",o),t._writableState&&!t._writableState.needDrain||d()}function s(e){u(),0===p&&0===C.listenerCount(t,"error")&&t.emit("error",e)}function a(){t.removeListener("finish",l),u()}function l(){t.removeListener("close",a),u()}function u(){h.unpipe(t)}var h=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=t;break;case 1:c.pipes=[c.pipes,t];break;default:c.pipes.push(t)}c.pipesCount+=1;var f=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?i:o;c.endEmitted?k(f):h.once("end",f),t.on("unpipe",n);var d=g(h);t.on("drain",d);var p=C.listenerCount(t,"error");return t.once("error",s),t.once("close",a),t.once("finish",l),t.emit("pipe",h),c.flowing||(this.on("readable",m),c.flowing=!0,k(function(){_(h)})),t},i.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",m),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",m),e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=x(e.pipes,t))?this:(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},i.prototype.on=function(t,e){var r=E.prototype.on.call(this,t,e);if("data"!==t||this._readableState.flowing||v(this),"readable"===t&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&c(this):this.read(0))}return r},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){v(this),this.read(0),this.emit("resume")},i.prototype.pause=function(){v(this,!0),this.emit("pause")},i.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;t.on("end",function(){if(e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){e.decoder&&(i=e.decoder.write(i)),i&&(e.objectMode||i.length)&&(n.push(i)||(r=!0,t.pause()))});for(var i in t)"function"==typeof t[i]&&void 0===this[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return w(["error","close","destroy","pause","resume"],function(e){t.on(e,function(t){return n.emit.apply(n,e,t)})}),n._read=function(e){r&&(r=!1,t.resume())},n},i._fromList=y}).call(this,t("v3go1D"))},{"./index.js":204,buffer:28,events:29,inherits:186,"process/browser.js":205,string_decoder:27,v3go1D:202}],208:[function(t,e,r){function n(t,e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&t.push(r),i&&i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t);this._transformState=new n(t,this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(t){s(e,t)}):s(e)})}function s(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=(t._readableState,t._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return t.push(null)}e.localExports=o;var a=t("./duplex.js");t("inherits")(o,a),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},{"./duplex.js":203,inherits:186}],209:[function(t,e,r){function n(t,e,r){this.chunk=t,this.encoding=e,this.callback=r}function i(t,e){var r=(t=t||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!t.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){d(e,t)},this.writecb=null,this.writelen=0,this.buffer=[]}function o(t){if(!(this instanceof o||this instanceof S.Duplex))return new o(t);this._writableState=new i(t,this),this.writable=!0,S.call(this)}function s(t,e,r){var n=new Error("write after end");t.emit("error",n),C(function(){r(n)})}function a(t,e,r,n){var i=!0;if(!E.isBuffer(r)&&"string"!=typeof r&&null!==r&&void 0!==r&&!e.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");t.emit("error",o),C(function(){n(o)}),i=!1}return i}function l(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=new E(e,r)),e}function u(t,e,r,i,o){r=l(e,r,i);var s=e.objectMode?1:r.length;e.length+=s;var a=e.length<e.highWaterMark;return e.needDrain=!a,e.writing?e.buffer.push(new n(r,i,o)):h(t,e,s,r,i,o),a}function h(t,e,r,n,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,t._write(n,i,e.onwrite),e.sync=!1}function c(t,e,r,n,i){r?C(function(){i(n)}):i(n),t.emit("error",n)}function f(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function d(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(f(r),e)c(t,r,n,e,i);else{var o=m(t,r);o||r.bufferProcessing||!r.buffer.length||_(t,r),n?C(function(){p(t,r,o,i)}):p(t,r,o,i)}}function p(t,e,r,n){r||g(t,e),n(),r&&v(t,e)}function g(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function _(t,e){e.bufferProcessing=!0;for(var r=0;r<e.buffer.length;r++){var n=e.buffer[r],i=n.chunk,o=n.encoding,s=n.callback;if(h(t,e,e.objectMode?1:i.length,i,o,s),e.writing){r++;break}}e.bufferProcessing=!1,r<e.buffer.length?e.buffer=e.buffer.slice(r):e.buffer.length=0}function m(t,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function v(t,e){var r=m(t,e);return r&&(e.finished=!0,t.emit("finish")),r}function y(t,e,r){e.ending=!0,v(t,e),r&&(e.finished?C(r):t.once("finish",r)),e.ended=!0}e.localExports=o,o.WritableState=i;var b="undefined"!=typeof Uint8Array?function(t){return t instanceof Uint8Array}:function(t){return t&&t.constructor&&"Uint8Array"===t.constructor.name},w="undefined"!=typeof ArrayBuffer?function(t){return t instanceof ArrayBuffer}:function(t){return t&&t.constructor&&"ArrayBuffer"===t.constructor.name},x=t("inherits"),S=t("./index.js"),C=t("process/browser.js").nextTick,E=t("buffer").Buffer;x(o,S),o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},o.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),!E.isBuffer(t)&&b(t)&&(t=new E(t)),w(t)&&"undefined"!=typeof Uint8Array&&(t=new E(new Uint8Array(t))),E.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=function(){}),n.ended?s(this,0,r):a(this,n,t,r)&&(i=u(this,n,t,e,r)),i},o.prototype._write=function(t,e,r){r(new Error("not implemented"))},o.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),void 0!==t&&null!==t&&this.write(t,e),n.ending||n.finished||y(this,n,r)}},{"./index.js":204,buffer:28,inherits:186,"process/browser.js":205}],210:[function(t,e,r){e.localExports=t(181)},{}],211:[function(t,e,r){e.localExports=t(184)},{"tiny-inflate":210}],212:[function(t,e,r){e.localExports=t(186)},{}],213:[function(t,e,r){e.localExports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],214:[function(t,e,r){(function(e,n){function i(t,e){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(e)?n.showHidden=e:e&&r._extend(n,e),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),l(n,t,n.depth)}function o(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function s(t,e){return t}function a(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function l(t,e,n){if(t.customInspect&&e&&C(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=l(t,i,n)),i}var o=u(t,e);if(o)return o;var s=Object.keys(e),g=a(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),S(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(e);if(0===s.length){if(C(e)){var _=e.name?": "+e.name:"";return t.stylize("[Function"+_+"]","special")}if(b(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(x(e))return t.stylize(Date.prototype.toString.call(e),"date");if(S(e))return h(e)}var m="",y=!1,w=["{","}"];if(p(e)&&(y=!0,w=["[","]"]),C(e)&&(m=" [Function"+(e.name?": "+e.name:"")+"]"),b(e)&&(m=" "+RegExp.prototype.toString.call(e)),x(e)&&(m=" "+Date.prototype.toUTCString.call(e)),S(e)&&(m=" "+h(e)),0===s.length&&(!y||0==e.length))return w[0]+m+w[1];if(n<0)return b(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var E;return E=y?c(t,e,n,g,s):s.map(function(r){return f(t,e,n,g,r,y)}),t.seen.pop(),d(E,m,w)}function u(t,e){if(y(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)P(e,String(s))?o.push(f(t,e,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(t,e,r,n,i,!0))}),o}function f(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),P(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=_(r)?l(t,u.value,null):l(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return"   "+t}).join("\n")):a=t.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function d(t,e,r){var n=0;return t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function p(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function _(t){return null===t}function m(t){return"number"==typeof t}function v(t){return"string"==typeof t}function y(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===E(t)}function w(t){return"object"==typeof t&&null!==t}function x(t){return w(t)&&"[object Date]"===E(t)}function S(t){return w(t)&&("[object Error]"===E(t)||t instanceof Error)}function C(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}function k(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var j=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(i(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,o=n.length,s=String(t).replace(j,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<o;a=n[++r])_(a)||!w(a)?s+=" "+a:s+=" "+i(a);return s},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var I,L={};r.debuglog=function(t){if(y(I)&&(I=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!L[t])if(new RegExp("\\b"+t+"\\b","i").test(I)){var n=e.pid;L[t]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",t,n,e)}}else L[t]=function(){};return L[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=p,r.isBoolean=g,r.isNull=_,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=y,r.isRegExp=b,r.isObject=w,r.isDate=x,r.isError=S,r.isFunction=C,r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",k(),r.format.apply(r,arguments))},r.inherits=t("inherits"),r._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t("v3go1D"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":213,inherits:212,v3go1D:202}]},{},[2])(2)});var PdfLineCapStyle;!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Square=2]="Square"}(PdfLineCapStyle=exports.PdfLineCapStyle||(exports.PdfLineCapStyle={}));var PdfLineJoinStyle;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(PdfLineJoinStyle=exports.PdfLineJoinStyle||(exports.PdfLineJoinStyle={}));var PdfFillRule;!function(t){t[t.NonZero=0]="NonZero",t[t.EvenOdd=1]="EvenOdd"}(PdfFillRule=exports.PdfFillRule||(exports.PdfFillRule={}));var PdfPageOrientation;!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(PdfPageOrientation=exports.PdfPageOrientation||(exports.PdfPageOrientation={}));var PdfImageHorizontalAlign;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(PdfImageHorizontalAlign=exports.PdfImageHorizontalAlign||(exports.PdfImageHorizontalAlign={}));var PdfImageVerticalAlign;!function(t){t[t.Top=0]="Top",t[t.Center=1]="Center",t[t.Bottom=2]="Bottom"}(PdfImageVerticalAlign=exports.PdfImageVerticalAlign||(exports.PdfImageVerticalAlign={}));var PdfTextHorizontalAlign;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(PdfTextHorizontalAlign=exports.PdfTextHorizontalAlign||(exports.PdfTextHorizontalAlign={}));var _PdfTextBaseline;!function(t){t[t.Top=0]="Top",t[t.Alphabetic=1]="Alphabetic"}(_PdfTextBaseline=exports._PdfTextBaseline||(exports._PdfTextBaseline={}));var PdfPageSize;!function(t){t[t.A0=0]="A0",t[t.A1=1]="A1",t[t.A2=2]="A2",t[t.A3=3]="A3",t[t.A4=4]="A4",t[t.A5=5]="A5",t[t.A6=6]="A6",t[t.A7=7]="A7",t[t.A8=8]="A8",t[t.A9=9]="A9",t[t.A10=10]="A10",t[t.B0=11]="B0",t[t.B1=12]="B1",t[t.B2=13]="B2",t[t.B3=14]="B3",t[t.B4=15]="B4",t[t.B5=16]="B5",t[t.B6=17]="B6",t[t.B7=18]="B7",t[t.B8=19]="B8",t[t.B9=20]="B9",t[t.B10=21]="B10",t[t.C0=22]="C0",t[t.C1=23]="C1",t[t.C2=24]="C2",t[t.C3=25]="C3",t[t.C4=26]="C4",t[t.C5=27]="C5",t[t.C6=28]="C6",t[t.C7=29]="C7",t[t.C8=30]="C8",t[t.C9=31]="C9",t[t.C10=32]="C10",t[t.RA0=33]="RA0",t[t.RA1=34]="RA1",t[t.RA2=35]="RA2",t[t.RA3=36]="RA3",t[t.RA4=37]="RA4",t[t.SRA0=38]="SRA0",t[t.SRA1=39]="SRA1",t[t.SRA2=40]="SRA2",t[t.SRA3=41]="SRA3",t[t.SRA4=42]="SRA4",t[t.Executive=43]="Executive",t[t.Folio=44]="Folio",t[t.Legal=45]="Legal",t[t.Letter=46]="Letter",t[t.Tabloid=47]="Tabloid"}(PdfPageSize=exports.PdfPageSize||(exports.PdfPageSize={})),exports._Errors={InvalidArg:t=>'Invalid argument: "'+t+'".',InvalidFormat:t=>'"'+t+'" is not in the correct format.',ValueCannotBeEmpty:t=>'Value cannot be empty: "'+t+'".',PathStarted:"This method can not be used until the current path is finished.",BufferPagesMustBeEnabled:"The bufferPages property must be enabled to render headers and footers.",AbstractMethod:"This is an abstract method, it should not be called.",FontNameMustBeSet:"The font name must be set.",FontSourceMustBeStringArrayBuffer:"The font source must be of type string or ArrayBuffer.",FontSourceMustBeString:"The font source must be of type string.",FontSourceMustBeArrayBuffer:"The font source must be of type ArrayBuffer.",EmptyUrl:"URL can not be empty.",UndefinedMimeType:"MIME-type must be set.",InvalidImageDataUri:"Invalid Data URI. It should be base64 encoded string that represents JPG or PNG image.",InvalidImageFormat:"Invalid image format. Only JPG and PNG formats are supported."},exports._IE="undefined"!=typeof window&&"ActiveXObject"in window;var _FontSizePt={"xx-small":7,"x-small":7.5,small:10,medium:12,large:13.5,"x-large":18,"xx-large":24};exports.saveBlob=saveBlob,exports.ptToPx=ptToPx,exports.pxToPt=pxToPt,exports._asColor=_asColor,exports._asPdfPen=_asPdfPen,exports._asPdfBrush=_asPdfBrush,exports._asPdfFont=_asPdfFont,exports._asPt=_asPt,exports._formatMacros=_formatMacros,exports._compare=_compare,exports._shallowCopy=_shallowCopy,exports._toTitleCase=_toTitleCase;class PdfDashPattern{constructor(t=null,e=t,r=0){this.dash=t,this.gap=e,this.phase=r}get dash(){return this._dash}set dash(t){this._dash=wjcCore.asNumber(t,!0,!0)}get gap(){return this._gap}set gap(t){this._gap=wjcCore.asNumber(t,!0,!0)}get phase(){return this._phase}set phase(t){this._phase=wjcCore.asNumber(t,!1,!0)}clone(){return new PdfDashPattern(this._dash,this._gap,this._phase)}equals(t){return t instanceof PdfDashPattern&&this._dash===t.dash&&this._gap===t.gap&&this._phase===t.phase}}exports.PdfDashPattern=PdfDashPattern;class PdfBrush{clone(){throw exports._Errors.AbstractMethod}equals(t){throw exports._Errors.AbstractMethod}_getBrushObject(t){throw exports._Errors.AbstractMethod}}exports.PdfBrush=PdfBrush;class PdfGradientStop{constructor(t,e,r){this.offset=t||0,this.color=e||wjcCore.Color.fromRgba(0,0,0),this.opacity=null==r?1:r}get offset(){return this._offset}set offset(t){this._offset=wjcCore.clamp(wjcCore.asNumber(t,!1,!0),0,1)}get color(){return this._color}set color(t){this._color=_asColor(t)}get opacity(){return this._opacity}set opacity(t){this._opacity=wjcCore.clamp(wjcCore.asNumber(t,!1,!0),0,1)}clone(){return new PdfGradientStop(this.offset,this.color,this.opacity)}equals(t){return t instanceof PdfGradientStop&&this._offset===t._offset&&this._color.equals(t._color)&&this._opacity===t._opacity}}exports.PdfGradientStop=PdfGradientStop;class PdfGradientBrush extends PdfBrush{constructor(t,e){super(),this.stops=t||[],this.opacity=null==e?1:e}get opacity(){return this._opacity}set opacity(t){this._opacity=wjcCore.clamp(wjcCore.asNumber(t,!1,!0),0,1)}get stops(){return this._stops}set stops(t){wjcCore.assert(wjcCore.isArray(t),exports._Errors.InvalidArg("value")),this._stops=this._cloneStopsArray(t)}equals(t){return t instanceof PdfGradientBrush&&this._opacity===t.opacity&&_compare(this._stops,t._stops)}_cloneStopsArray(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];wjcCore.assert(n instanceof PdfGradientStop,exports._Errors.InvalidArg("stops["+r+"]")),e.push(t[r].clone())}return e}}exports.PdfGradientBrush=PdfGradientBrush;class PdfLinearGradientBrush extends PdfGradientBrush{constructor(t,e,r,n,i,o){super(i,o),this.x1=t,this.y1=e,this.x2=r,this.y2=n}get x1(){return this._x1}set x1(t){this._x1=wjcCore.asNumber(t,!1,!0)}get y1(){return this._y1}set y1(t){this._y1=wjcCore.asNumber(t,!1,!0)}get x2(){return this._x2}set x2(t){this._x2=wjcCore.asNumber(t,!1,!0)}get y2(){return this._y2}set y2(t){this._y2=wjcCore.asNumber(t,!1,!0)}clone(){return new PdfLinearGradientBrush(this._x1,this._y1,this._x2,this._y2,this.stops,this.opacity)}equals(t){return t instanceof PdfLinearGradientBrush&&this._x1===t._x1&&this._y1===t._y1&&this._x2===t._x2&&this._y2===t._y2&&super.equals(t)}_getBrushObject(t){for(var e=t.document._document.linearGradient(this._x1+t._offset.x,this._y1+t._offset.y,this._x2+t._offset.x,this._y2+t._offset.y),r=this.stops,n=0;n<r.length;n++){var i=r[n];i&&e.stop(i.offset,[i.color.r,i.color.g,i.color.b],i.color.a)}return e}}exports.PdfLinearGradientBrush=PdfLinearGradientBrush;class PdfRadialGradientBrush extends PdfGradientBrush{constructor(t,e,r,n,i,o,s,a){super(s,a),this.x1=t,this.y1=e,this.r1=r,this.x2=n,this.y2=i,this.r2=o}get x1(){return this._x1}set x1(t){this._x1=wjcCore.asNumber(t,!1,!0)}get y1(){return this._y1}set y1(t){this._y1=wjcCore.asNumber(t,!1,!0)}set r1(t){this._r1=wjcCore.asNumber(t,!1,!0)}get r1(){return this._r1}get x2(){return this._x2}set x2(t){this._x2=wjcCore.asNumber(t,!1,!0)}get y2(){return this._y2}set y2(t){this._y2=wjcCore.asNumber(t,!1,!0)}get r2(){return this._r2}set r2(t){this._r2=wjcCore.asNumber(t,!1,!0)}clone(){return new PdfRadialGradientBrush(this._x1,this._y1,this._r1,this._x2,this._y2,this._r2,this.stops,this.opacity)}equals(t){return t instanceof PdfRadialGradientBrush&&this._x1===t._x1&&this._y1===t._y1&&this._r1===t._r1&&this._x2===t._x2&&this._y2===t._y2&&this._r2===t._r2&&super.equals(t)}_getBrushObject(t){for(var e=t.document._document.radialGradient(this._x1+t._offset.x,this._y2+t._offset.y,this._r1,this._x2+t._offset.x,this._y2+t._offset.y,this._r2),r=this.stops,n=0;n<r.length;n++){var i=r[n];i&&e.stop(i.offset,[i.color.r,i.color.g,i.color.b],i.color.a)}return e}}exports.PdfRadialGradientBrush=PdfRadialGradientBrush;class PdfSolidBrush extends PdfBrush{constructor(t){super(),this.color=t||wjcCore.Color.fromRgba(0,0,0)}get color(){return this._color}set color(t){this._color=_asColor(t)}clone(){return new PdfSolidBrush(this._color)}equals(t){return t instanceof PdfSolidBrush&&this._color.equals(t._color)}_getBrushObject(t){return this._color}}exports.PdfSolidBrush=PdfSolidBrush;class PdfPen{constructor(t,e,r,n,i,o){if(null==t&&(t=wjcCore.Color.fromRgba(0,0,0)),null==e&&(e=1),null==r&&(r=new PdfDashPattern(null,null,0)),null==n&&(n=PdfLineCapStyle.Butt),null==i&&(i=PdfLineJoinStyle.Miter),null==o&&(o=10),!wjcCore.isObject(t)||t instanceof wjcCore.Color||t instanceof PdfBrush)t instanceof PdfBrush?this.brush=t:this.color=t,this.width=e,this.cap=n,this.join=i,this.miterLimit=o,this.dashPattern=r;else{var s=t;this.color=s.color,this.brush=s.brush,this.width=null!=s.width?s.width:e,this.cap=null!=s.cap?s.cap:n,this.join=null!=s.join?s.join:i,this.miterLimit=null!=s.miterLimit?s.miterLimit:o,this.dashPattern=s.dashPattern||r}this._color=this._color||wjcCore.Color.fromRgba(0,0,0)}get color(){return this._color}set color(t){this._color=_asColor(t)}get brush(){return this._brush}set brush(t){t=_asPdfBrush(t,!0),this._brush=t?t.clone():null}get width(){return this._width}set width(t){this._width=wjcCore.asNumber(t,!1,!0)}get cap(){return this._cap}set cap(t){this._cap=wjcCore.asEnum(t,PdfLineCapStyle)}get join(){return this._join}set join(t){this._join=wjcCore.asEnum(t,PdfLineJoinStyle)}get miterLimit(){return this._miterLimit}set miterLimit(t){this._miterLimit=wjcCore.asNumber(t,!1,!0)}get dashPattern(){return this._dashPattern}set dashPattern(t){wjcCore.assert(t instanceof PdfDashPattern,exports._Errors.InvalidArg("value")),this._dashPattern=t.clone()}clone(){var t=new PdfPen(this._color,this._width,this._dashPattern,this._cap,this._join,this._miterLimit);return t.brush=this._brush,t}equals(t){return t instanceof PdfPen&&this._color.equals(t._color)&&(this._brush?this._brush.equals(t._brush):this._brush===t._brush)&&this._width===t._width&&this._cap===t._cap&&this._join===t._join&&this._miterLimit===t._miterLimit&&this._dashPattern.equals(t._dashPattern)}}exports.PdfPen=PdfPen;class PdfFont{constructor(t="times",e=10,r="normal",n="normal"){this.family=t,this.size=e,this.style=r,this.weight=n}get family(){return this._family}set family(t){this._family=wjcCore.asString(t,!1)}get size(){return this._size}set size(t){this._size=wjcCore.asNumber(t,!1,!0)}get style(){return this._style}set style(t){(t=wjcCore.asString(t,!1))&&wjcCore.assert(!!PdfFont._KNOWN_STYLES[(t||"").toLowerCase()],exports._Errors.InvalidArg("value")),this._style=t}get weight(){return this._weight}set weight(t){(t=wjcCore.asString(t,!1))&&wjcCore.assert(!!PdfFont._KNOWN_WEIGHTS[(t||"").toLowerCase()],exports._Errors.InvalidArg("value")),this._weight=t}clone(){return new PdfFont(this.family,this.size,this.style,this.weight)}equals(t){return t instanceof PdfFont&&this._family===t._family&&this._size===t._size&&this._style===t._style&&this._weight===t._weight}}PdfFont._DEF_NATIVE_NAME="Times-Roman",PdfFont._DEF_FAMILY_NAME="times",PdfFont._KNOWN_WEIGHTS={normal:1,bold:1,100:1,200:1,300:1,400:1,500:1,600:1,700:1,800:1,900:1},PdfFont._KNOWN_STYLES={normal:1,italic:1,oblique:1},PdfFont._DEF_PDFKIT_FONT=new PdfFont("helvetica",12),PdfFont._DEF_FONT=new PdfFont,exports.PdfFont=PdfFont;class _OrderedDictionary{constructor(t){if(this._values=[],this._keys={},t)for(var e=0;e<t.length;e++){var r=t[e];this._keys[r.key]=e,this._values.push({key:r.key,value:r.value})}}hasKey(t){var e=this._keys[t];return void 0!==e?this._values[e].value:null}add(t,e){return this.hasKey(t)?null:(this._keys[t]=this._values.length,this._values.push({key:t,value:e}),e)}each(t){if(t)for(var e=0;e<this._values.length;e++){var r=this._values[e];if(!1===t(r.key,r.value))break}}eachReverse(t){if(t)for(var e=this._values.length-1;e>=0;e--){var r=this._values[e];if(!1===t(r.key,r.value))break}}}class _PdfFontRegistrar{constructor(t){this._fonts=new _OrderedDictionary([{key:"zapfdingbats",value:{attributes:{fantasy:!0},normal:{400:"ZapfDingbats"}}},{key:"symbol",value:{attributes:{serif:!0},normal:{400:"Symbol"}}},{key:"courier",value:{attributes:{serif:!0,monospace:!0},normal:{400:"Courier",700:"Courier-Bold"},oblique:{400:"Courier-Oblique",700:"Courier-BoldOblique"}}},{key:"helvetica",value:{attributes:{sansSerif:!0},normal:{400:"Helvetica",700:"Helvetica-Bold"},oblique:{400:"Helvetica-Oblique",700:"Helvetica-BoldOblique"}}},{key:"times",value:{attributes:{serif:!0},normal:{400:"Times-Roman",700:"Times-Bold"},italic:{400:"Times-Italic",700:"Times-BoldItalic"}}}]),this._weightNameToNum={normal:400,bold:700},this._findFontCache={},this._internalFontNames={},this._doc=t,this._fonts.each((t,e)=>{var r=t=>{for(var e in t)this._internalFontNames[t[e]]=1};r(e.normal)||r(e.italic)||r(e.oblique)})}registerFont(t){wjcCore.assert(!!t,exports._Errors.ValueCannotBeEmpty("font")),wjcCore.asString(t.name),wjcCore.assert(t.source instanceof ArrayBuffer,exports._Errors.FontSourceMustBeArrayBuffer),t=_shallowCopy(t);var e=this._normalizeFontSelector(t.name,t.style,t.weight),r=this._fonts.hasKey(e.name);r||(r=this._fonts.add(e.name,{attributes:t}));var n=r[e.style];n||(n=r[e.style]={});var i=this._makeInternalName(e);return n[e.weight]||(this._doc.registerFont(i,t.source,t.family),this._findFontCache={},n[e.weight]=i,this._internalFontNames[i]=1),i}findFont(t,e,r){var n=this._normalizeFontSelector(t,e,r),i=this._makeInternalName(n);if(this._findFontCache[i])return this._findFontCache[i];n.name+=","+PdfFont._DEF_FAMILY_NAME;for(var o=0,s=n.name.split(",");o<s.length;o++){var a=this._findFont(s[o].replace(/["']/g,"").trim(),n.style,n.weight);if(a)return this._findFontCache[i]=a}return this._findFontCache[i]=this._internalFontNames[t]?t:PdfFont._DEF_NATIVE_NAME}_normalizeFontSelector(t,e,r){return{name:(t||"").toLowerCase(),style:(e||PdfFont._DEF_FONT.style).toLowerCase(),weight:parseInt(this._weightNameToNum[r]||r)||parseInt(this._weightNameToNum[PdfFont._DEF_FONT.weight])}}_findFont(t,e,r){var n,i=[];switch(e){case"italic":i=["italic","oblique","normal"];break;case"oblique":i=["oblique","italic","normal"];break;default:i=["normal","oblique","italic"]}switch(t){case"cursive":case"fantasy":case"monospace":case"serif":case"sans-serif":this._fonts.eachReverse((e,o)=>{var s="sans-serif"===t?"sansSerif":t;if(o.attributes[s])for(var a=0;a<i.length;a++)if(n=this._findFontWeightFallback(e,i[a],r))return!1});break;default:if(this._fonts.hasKey(t))for(var o=0;o<i.length&&!n;o++)n=this._findFontWeightFallback(t,i[o],r)}return n}_findFontWeightFallback(t,e,r,n){var i=this._fonts.hasKey(t);if(i&&i[e]){var o=i[e];if(o[r])return o[r];if(!n){n=[];for(var s in o)n.push(parseFloat(s));n.sort((t,e)=>t-e)}if(r>500){for(var a=0,l=0;l<n.length;l++){if((h=n[l])>r)return o[h];a=h}if(a)return o[a]}else{if(!(r<400))return 400==r?o[500]?o[500]:this._findFontWeightFallback(t,e,300,n):o[400]?o[400]:this._findFontWeightFallback(t,e,300,n);for(var u=0,l=n.length-1;l>=0;l--){var h=n[l];if(h<r)return o[h];u=h}if(u)return o[u]}}return null}_makeInternalName(t){return t.name+"-"+t.style+"-"+t.weight}}exports._PdfFontRegistrar=_PdfFontRegistrar;class PdfPageArea{constructor(){this._ctxProps={xo:0,yo:0,lineGap:0}}get x(){this._switchCtx();var t=this._pdfdoc._document.x-this._offset.x;return this._saveCtx(),t}set x(t){t=wjcCore.asNumber(t),this._switchCtx(),this._pdfdoc._document.x=t+this._offset.x,this._saveCtx()}get y(){this._switchCtx();var t=this._pdfdoc._document.y-this._offset.y;return this._saveCtx(),t}set y(t){t=wjcCore.asNumber(t),this._switchCtx(),this._pdfdoc._document.y=t+this._offset.y,this._saveCtx()}get lineGap(){return this._ctxProps.lineGap}set lineGap(t){this._ctxProps.lineGap=t=wjcCore.asNumber(t,!1,!0),this._pdfdoc&&this._pdfdoc._document&&(this._switchCtx(),this._pdfdoc._document.lineGap(t),this._saveCtx())}get height(){var t=this._pdfdoc._document.page;return Math.max(0,t.height-t.margins.top-t.margins.bottom)}get width(){var t=this._pdfdoc._document.page;return Math.max(t.width-t.margins.left-t.margins.right)}get paths(){return this._graphics}get document(){return this._pdfdoc}drawText(t,e,r,n){if(this._assertPathStarted(),t=wjcCore.asString(t)){n=n||{};var i,o=this._pdfdoc,s=o._document,a=n.stroke&&n.fill?2:n.stroke?1:0;!n.strike&&!n.underline||n.stroke||(a=2),this._switchCtx();try{this._drawingText=!0,1&a||o._toggleBrush(_asPdfBrush(n.brush)),3&a&&o._togglePen(_asPdfPen(n.pen)),o._toggleFont(_asPdfFont(n.font));var l=this._textOptionsToNative(n),u=n._baseline===_PdfTextBaseline.Alphabetic?s.currentFontAscender():0;null==e?(s.y-=u,i=s.textAndMeasure(t,null,null,l)):i=s.textAndMeasure(t,wjcCore.asNumber(e)+this._offset.x,wjcCore.asNumber(r)+this._offset.y-u,l)}finally{this._drawingText=!1,this._saveCtx()}return{charCount:i.charCount||0,size:new wjcCore.Size(i.width||0,i.height||0)}}}drawImage(t,e,r,n){if(this._assertPathStarted(),!t)return this;wjcCore.isString(t)&&(t=_PdfImageHelper.getDataUri(t)),this._switchCtx();try{var i={};if(n){switch(wjcCore.asEnum(n.align,PdfImageHorizontalAlign,!0)){case PdfImageHorizontalAlign.Center:i.align="center";break;case PdfImageHorizontalAlign.Right:i.align="right";break;default:i.align="left"}switch(wjcCore.asEnum(n.vAlign,PdfImageVerticalAlign,!0)){case PdfImageVerticalAlign.Center:i.valign="center";break;case PdfImageVerticalAlign.Bottom:i.valign="bottom";break;default:i.valign="top"}var o=wjcCore.asNumber(n.width,!0,!0),s=wjcCore.asNumber(n.height,!0,!0);o&&s&&wjcCore.asBoolean(n.stretchProportionally,!0)?i.fit=[o,s]:(i.width=o,i.height=s)}null==e?this._pdfdoc._document.image(t,i):this._pdfdoc._document.image(t,wjcCore.asNumber(e)+this._offset.x,wjcCore.asNumber(r)+this._offset.y,i)}finally{this._saveCtx()}return this}drawSvg(t,e,r,n){if(n=n||{},this._assertPathStarted(),!(t=wjcCore.asString(t)))return this;var i;if(t.indexOf("data:image/svg")>=0)i=(t=>decodeURIComponent(Array.prototype.map.call(atob(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join("")))(t.substring(t.indexOf(",")+1));else{var o;if(i=_XhrHelper.text(t,t=>o=t.statusText),o)throw o}if(!i)return this;var s,a,l=new _SvgRenderer(i,this,wjcCore.asFunction(n.urlResolver)),u=null==r,e=null!=e?e:this.x,r=null!=r?r:this.y,h=this.y,c=this.x,f=wjcCore.asNumber(n.width,!0,!0),d=wjcCore.asNumber(n.height,!0,!0),p=l.root.width.hasVal?l.root.width.val:void 0,g=l.root.height.hasVal?l.root.height.val:void 0;if((f||d)&&p&&g)if(s=f/p,a=d/g,f&&d){if(n.stretchProportionally){var _=Math.min(s,a);if(s===_)switch(wjcCore.asEnum(n.vAlign,PdfImageVerticalAlign,!0)){case PdfImageVerticalAlign.Center:r+=d/2-g*s/2;break;case PdfImageVerticalAlign.Bottom:r+=d-g*s}if(a===_)switch(wjcCore.asEnum(n.align,PdfImageHorizontalAlign,!0)){case PdfImageHorizontalAlign.Center:e+=f/2-p*a/2;break;case PdfImageHorizontalAlign.Right:e+=f-p*a}s=a=_}}else n.width?a=s:s=a;s=s||1,a=a||1,this._switchCtx(),this._pdfdoc.saveState();try{this.translate(e,r),this.scale(s,a),l.render()}finally{this._pdfdoc.restoreState(),this._saveCtx()}if(this.x=c,this.y=h,u){var m=null!=d?d:null!=g?g*a:void 0;this.y+=m||0}return this}lineHeight(t){var e=this._pdfdoc;e._toggleFont(_asPdfFont(t)),this._switchCtx();var r=e._document.currentLineHeight();return this._saveCtx(),r}measureText(t,e,r){var n={};if(t=wjcCore.asString(t)){var i=this._pdfdoc;i._toggleFont(_asPdfFont(e)),this._switchCtx();try{n=i._document.textAndMeasure(t,null,null,this._textOptionsToNative(r),!0)}finally{this._saveCtx()}}return{charCount:n.charCount||0,size:new wjcCore.Size(n.width||0,n.height||0)}}moveDown(t=1,e){if(t=wjcCore.asNumber(t,!1,!0)){var r=this._pdfdoc;r._toggleFont(_asPdfFont(e)),this._switchCtx();try{r._document.moveDown(t)}finally{this._saveCtx()}}return this}moveUp(t=1,e){if(t=wjcCore.asNumber(t,!1,!0)){var r=this._pdfdoc;r._toggleFont(_asPdfFont(e)),this._switchCtx();try{r._document.moveUp(t)}finally{this._saveCtx()}}return this}openImage(t){return(t=wjcCore.asString(t))?(t=_PdfImageHelper.getDataUri(t),this._pdfdoc._document.openImage(t)):null}scale(t,e=t,r){this._assertPathStarted(),r=r||new wjcCore.Point(0,0);var n=wjcCore.asNumber(r.x)+this._offset.x,i=wjcCore.asNumber(r.y)+this._offset.y;return t=wjcCore.asNumber(t,!1),e=wjcCore.asNumber(e,!1),this._pdfdoc._document.scale(t,e,{origin:[n,i]}),this}translate(t,e){return this._assertPathStarted(),t=wjcCore.asNumber(t),e=wjcCore.asNumber(e),this._pdfdoc._document.translate(t,e),this}transform(t,e,r,n,i,o){this._assertPathStarted(),t=wjcCore.asNumber(t),e=wjcCore.asNumber(e),r=wjcCore.asNumber(r),n=wjcCore.asNumber(n),i=wjcCore.asNumber(i),o=wjcCore.asNumber(o);var s=this._offset.x,a=this._offset.y;return this._pdfdoc._document.transform(t,e,r,n,i-t*s+s-r*a,o-e*s-n*a+a),this}rotate(t,e){this._assertPathStarted(),e=e||new wjcCore.Point(0,0);var r=wjcCore.asNumber(e.x)+this._offset.x,n=wjcCore.asNumber(e.y)+this._offset.y;return t=wjcCore.asNumber(t),this._pdfdoc._document.rotate(t,{origin:[r,n]}),this}_assertPathStarted(){wjcCore.assert(!this.paths._hasPathBuffer(),exports._Errors.PathStarted)}_initialize(t,e,r){this._pdfdoc=t,this._offset=new wjcCore.Point(e,r),this._ctxProps={xo:e,yo:r,lineGap:this._ctxProps.lineGap},this._graphics=new PdfPaths(this._pdfdoc,this._offset)}_isDrawingText(){return this._drawingText}_switchCtx(){this._pdfdoc._switchTextFlowCtx(this._ctxProps)}_saveCtx(){this._ctxProps=this._pdfdoc._getTextFlowCtxState()}_textOptionsToNative(t){var e=_shallowCopy(t=t||{});return null!=t.align&&(e.align=(PdfTextHorizontalAlign[wjcCore.asEnum(t.align,PdfTextHorizontalAlign)]||"").toLowerCase()),e}}exports.PdfPageArea=PdfPageArea;class PdfRunningTitleDeclarativeContent{constructor(t,e,r){this.text=t||"",this.font=e||new PdfFont,this.brush=r||new PdfSolidBrush}get font(){return this._font}set font(t){t=_asPdfFont(t,!0),this._font=t?t.clone():t}get text(){return this._text}set text(t){this._text=wjcCore.asString(t)}get brush(){return this._brush}set brush(t){t=_asPdfBrush(t),this._brush=t?t.clone():t}clone(){return new PdfRunningTitleDeclarativeContent(this.text,this.font,this.brush)}equals(t){return t instanceof PdfRunningTitleDeclarativeContent&&this._text===t.text&&(this._brush?this._brush.equals(t._brush):this._brush===t._brush)&&(this._font?this._font.equals(t._font):this._font===t._font)}}exports.PdfRunningTitleDeclarativeContent=PdfRunningTitleDeclarativeContent;class PdfRunningTitle extends PdfPageArea{constructor(t){super(),this._height=24,this._declarative=new PdfRunningTitleDeclarativeContent,this._heightChanged=new wjcCore.Event,wjcCore.copy(this,t)}get declarative(){return this._declarative}set declarative(t){null!=t&&(wjcCore.assert(t instanceof PdfRunningTitleDeclarativeContent,exports._Errors.InvalidArg("value")),t=t.clone()),this._declarative=t}get height(){return this._height}set height(t){t!==this._height&&(this._height=wjcCore.asNumber(t,!1,!0),this._heightChanged.raise(this,wjcCore.EventArgs.empty))}drawText(t,e,r,n){return n=n||{},n.height=1/0,super.drawText(t,e,r,n)}}exports.PdfRunningTitle=PdfRunningTitle;class _PdfImageHelper{static getDataUri(t){if(wjcCore.assert(!!(t=wjcCore.asString(t)),exports._Errors.EmptyUrl),_PdfImageHelper.DATAURI_CACHE[t])return _PdfImageHelper.DATAURI_CACHE[t];var e="";if(0===t.indexOf("data:")){if(!t.match(/^data:image\/(png|jpeg|jpg);base64,/))throw exports._Errors.InvalidImageDataUri;e=t}else{var r,n=_XhrHelper.arrayBuffer(t,t=>r=t.statusText);if(r)throw r;try{var i=new Uint16Array(n,0,2);if(55551!==i[0]&&(20617!==i[0]||18254!==i[1]))throw"";var o=_PdfImageHelper._toBase64(n);e="data:"+(55551===i[0]?"image/jpeg":"image/png")+";base64,"+o}catch(t){throw exports._Errors.InvalidImageFormat}}return _PdfImageHelper.DATAURI_CACHE[t]=e}static _toBase64(t){for(var e="",r=new Uint8Array(t),n=0;n<r.byteLength;n++)e+=String.fromCharCode(r[n]);return window.btoa(e)}}_PdfImageHelper.DATAURI_CACHE={},exports._PdfImageHelper=_PdfImageHelper;class PdfPaths{constructor(t,e){this._pathBuffer=[],this._doc=t,this._offset=e}moveTo(t,e){return this._pathBuffer.push({func:this._doc._document.moveTo,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y]}),this}lineTo(t,e){return this._pathBuffer.push({func:this._doc._document.lineTo,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y]}),this}quadraticCurveTo(t,e,r,n){return this._pathBuffer.push({func:this._doc._document.quadraticCurveTo,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y,wjcCore.asNumber(r)+this._offset.x,wjcCore.asNumber(n)+this._offset.y]}),this}bezierCurveTo(t,e,r,n,i,o){return this._pathBuffer.push({func:this._doc._document.bezierCurveTo,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y,wjcCore.asNumber(r)+this._offset.x,wjcCore.asNumber(n)+this._offset.y,wjcCore.asNumber(i)+this._offset.x,wjcCore.asNumber(o)+this._offset.y]}),this}svgPath(t){if(t){var e=_PdfSvgPathHelper.offset(wjcCore.asString(t),this._offset);this._pathBuffer.push({func:this._doc._document.path,params:[wjcCore.asString(e)]})}return this}closePath(){return this._writePathBuffer(),this._doc._document.closePath(),this}rect(t,e,r,n){return this._pathBuffer.push({func:this._doc._document.rect,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y,wjcCore.asNumber(r,!1,!0),wjcCore.asNumber(n,!1,!0)]}),this}roundedRect(t,e,r,n,i=0){return this._pathBuffer.push({func:this._doc._document.roundedRect,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y,wjcCore.asNumber(r,!1,!0),wjcCore.asNumber(n,!1,!0),wjcCore.asNumber(i,!1,!0)]}),this}ellipse(t,e,r,n=r){return this._pathBuffer.push({func:this._doc._document.ellipse,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y,wjcCore.asNumber(r,!1,!0),wjcCore.asNumber(n,!1,!0)]}),this}circle(t,e,r){return this._pathBuffer.push({func:this._doc._document.circle,params:[wjcCore.asNumber(t)+this._offset.x,wjcCore.asNumber(e)+this._offset.y,wjcCore.asNumber(r,!1,!0)]}),this}polygon(t){if(t)for(var e=0;e<t.length;e++){var r=t[e];r[0]=r[0]+this._offset.x,r[1]=r[1]+this._offset.y}return this._pathBuffer.push({func:this._doc._document.polygon,params:t}),this}clip(t=PdfFillRule.NonZero){return this._writePathBuffer(),this._doc._document.clip(t===PdfFillRule.EvenOdd?"even-odd":"non-zero"),this}fill(t,e){return this._doc._toggleBrush(_asPdfBrush(t)),this._writePathBuffer(),this._doc._document.fill(e===PdfFillRule.EvenOdd?"even-odd":"non-zero"),this}fillAndStroke(t,e,r){return this._doc._toggleBrush(_asPdfBrush(t)),this._doc._togglePen(_asPdfPen(e)),this._writePathBuffer(),this._doc._document.fillAndStroke(r===PdfFillRule.EvenOdd?"even-odd":"non-zero"),this}stroke(t){return this._doc._togglePen(_asPdfPen(t)),this._writePathBuffer(),this._doc._document.stroke(),this}_hasPathBuffer(){return this._pathBuffer.length>0}_writePathBuffer(){for(var t=this._doc._document,e=0;e<this._pathBuffer.length;e++){var r=this._pathBuffer[e];r.func.apply(t,r.params)}this._pathBuffer=[]}}exports.PdfPaths=PdfPaths;class _PdfSvgPathHelper{static offset(t,e){return this._processPath(t,(t,r,n,i)=>t=this._updateOffset(t,e,r,n,i))}static scale(t,e){return this._processPath(t,(t,r,n,i)=>{if("a"===r||"A"===r){var o=i%7;if(o>=2&&o<=4)return t}return t*e})}static _processPath(t,e){for(var r,n=this._getTokenizer(t),i="",o="",s=-1,a=-1;r=n();){if(1===r.length&&/[a-zA-Z]/.test(r))a++,i=r,s=-1;else{s++;var l=e(parseFloat(r),i,a,s);r=wjcCore.toFixed(l,7,!1)+""}o+=r+" "}return o}static _getTokenizer(t){var e=t.length,r=0;return()=>{if(r>=e)return"";for(;r<e&&(/\s/.test(t[r])||","==t[r]);)r++;for(var n=r,i=!1,o=!1,s=!1;r<e;){var a=t[r];if("-"===a||"+"===a){if((s||o||i)&&(!(r>1)||"e"!==t[r-1]&&"E"!==t[r-1]))break;s=!0}else if("."===a){if(o)break;o=!0}else{if(!/[0-9eE]/.test(a))break;i=!0}r++}return r!=n?t.substr(n,r-n):t.substr(r++,1)}}static _updateOffset(t,e,r,n,i){var o=0;switch(r){case"m":0===n&&(0===i?o=-1:1===i&&(o=1));break;case"L":case"M":case"C":case"S":case"Q":case"T":o=i%2==0?-1:1;break;case"A":i%7==5?o=-1:i%7==6&&(o=1);break;case"H":o=-1;break;case"V":o=1}return o?-1===o?t+e.x:t+e.y:t}}exports._PdfSvgPathHelper=_PdfSvgPathHelper;var _XhrOverrideMimeTypeSupported=!!(new XMLHttpRequest).overrideMimeType;class _XhrHelper{static arrayBufferAsync(t,e,r){var n={method:"GET",responseType:"arraybuffer",async:!0};this._getData(t,n,e,r)}static arrayBuffer(t,e){var r,n={method:"GET",async:!1};return exports._IE||!_XhrOverrideMimeTypeSupported?(n.responseType="arraybuffer",this._getData(t,n,(t,e)=>{r=e},e)):(n.overrideMimeType="text/plain; charset=x-user-defined",this._getData(t,n,(t,e)=>{r=new ArrayBuffer(e.length);for(var n=new Uint8Array(r),i=0,o=e.length;i<o;i++)n[i]=255&e.charCodeAt(i)},e)),r}static text(t,e){var r={method:"GET",async:!1},n="";return this._getData(t,r,(t,e)=>n=e,e),n}static _getData(t,e,r,n){var i=new XMLHttpRequest;if(e=e||{},i.open(e.method,t,e.async,e.user,e.password),i.addEventListener("load",()=>{if(4===i.readyState){var t=i.status;t>=200&&t<300||304===t?r&&r(i,i.response):n&&n(i)}}),e.headers)for(var o in e.headers)i.setRequestHeader(o,e.headers[o]);e.responseType&&(i.responseType=e.responseType),e.overrideMimeType&&i.overrideMimeType&&i.overrideMimeType(e.overrideMimeType),i.send(e.data)}}exports._XhrHelper=_XhrHelper;class PdfDocumentEndedEventArgs extends wjcCore.EventArgs{constructor(t){super(),this._chunks=t}get blob(){return this._blob||(this._blob=new Blob(this._chunks,{type:"application/pdf"})),this._blob}get chunks(){return this._chunks}}exports.PdfDocumentEndedEventArgs=PdfDocumentEndedEventArgs;class PdfDocument extends PdfPageArea{constructor(t){super(),this._docInitialized=!1,this._compress=!0,this._bufferPages=!0,this._chunks=[],this._pageIndex=-1,this._graphicsStack=[],this._currentGS={},this.info={author:void 0,creationDate:void 0,keywords:void 0,modDate:void 0,subject:void 0,title:void 0},this.pageSettings={layout:PdfPageOrientation.Portrait,size:PdfPageSize.Letter,margins:{top:72,left:72,bottom:72,right:72},_copy:function(t,e){if("size"===t)return this.size=e,!0}},this.ended=new wjcCore.Event,this.pageAdded=new wjcCore.Event,this._runtimeProperties=["pageIndex","x","y"],wjcCore.copy(this,t);var e=t=>{this._doc=t,this._fontReg=new _PdfFontRegistrar(this._doc)},r=()=>{this.setPen(this._currentGS[this._pageIndex].pen),this.setBrush(this._currentGS[this._pageIndex].brush),this._curFont=PdfFont._DEF_PDFKIT_FONT,this.setFont(new PdfFont)},n=!1,i={compress:this._compress,bufferPages:this._bufferPages,pageAdding:this._ehOnPageAdding=((t,r)=>{this._docInitialized||(n=!0,e(t)),this._onPageAdding(t,r)}),pageAdded:this._ehOnPageAdded=(t=>{var e=this._isDrawingText()?this._currentGS[this._pageIndex].brush:new PdfSolidBrush;this._currentGS[++this._pageIndex]={pen:new PdfPen,brush:e},this._docInitialized||r(),this._onPageAdded(t)})};this._doc=new PDFDocument(i),n||(e(this._doc),r()),this._doc.on("data",this._ehOnDocData=(t=>{this._onDocData(t)})).on("ending",this._ehOnDocEnding=(()=>{this._onDocEnding()})).on("end",this._ehOnDocEnded=(()=>{this._onDocEnded()})),this._docInitialized=!0}get compress(){return this._compress}get bufferPages(){return this._bufferPages}get header(){return this._header||(this._header=new PdfRunningTitle({_heightChanged:()=>{this._docInitialized&&this._resetAreasOffset(this._doc)}})),this._header}get footer(){return this._footer||(this._footer=new PdfRunningTitle({_heightChanged:()=>{this._docInitialized&&this._resetAreasOffset(this._doc)}})),this._footer}get pageIndex(){return this._pageIndex}set pageIndex(t){t=wjcCore.asNumber(t,!1,!0),this._pageIndex!==t&&(this._doc.switchToPage(t),this._pageIndex=t)}onEnded(t){this.ended&&this.ended.raise(this,t)}onPageAdded(t){this.pageAdded&&this.pageAdded.raise(this,t)}dispose(){this._doc&&(this._doc.removeListener("data",this._ehOnDocData).removeListener("ending",this._ehOnDocEnding).removeListener("end",this._ehOnDocEnded).removeListener("pageAdding",this._ehOnPageAdding).removeListener("pageAdded",this._ehOnPageAdded),this._doc=null,this._chunks=null)}get currentPageSettings(){var t=this._doc.page;return{layout:"landscape"===t.layout?PdfPageOrientation.Landscape:PdfPageOrientation.Portrait,size:wjcCore.isArray(t.size)?new wjcCore.Size(t.size[0],t.size[1]):PdfPageSize[t.size.match(/\d+/)?t.size:_toTitleCase(t.size)],margins:{left:t.margins.left,right:t.margins.right,top:t.margins.top-this.header.height,bottom:t.margins.bottom-this.footer.height}}}addPage(t){var e=this._pageSettingsToNative(t||this.pageSettings);return this._doc.addPage(e),this}bufferedPageRange(){return this._doc.bufferedPageRange()}end(){this._doc.end()}setBrush(t){return this._assertAreasPathStarted(),this._setCurBrush(this._defBrush=_asPdfBrush(t,!1).clone()),this}setPen(t){return this._assertAreasPathStarted(),this._setCurPen(this._defPen=_asPdfPen(t,!1).clone()),this}setFont(t){return this._setCurFont(this._defFont=_asPdfFont(t,!1).clone()),this}_getFont(){return this._curFont}registerFont(t){wjcCore.assert(!!t,exports._Errors.ValueCannotBeEmpty("font"));var e;if(wjcCore.isString(t.source)){var r;if(e=_XhrHelper.arrayBuffer(t.source,t=>r=t.statusText),r)throw r}else{if(!(t.source instanceof ArrayBuffer))throw exports._Errors.FontSourceMustBeStringArrayBuffer;e=t.source}return t=_shallowCopy(t),t.source=e,this._fontReg.registerFont(t),this}registerFontAsync(t,e){wjcCore.assert("string"==typeof t.source,exports._Errors.FontSourceMustBeString),wjcCore.asFunction(e,!1),_XhrHelper.arrayBufferAsync(t.source,(r,n)=>{var i=_shallowCopy(t);i.source=n,this._fontReg.registerFont(i),e(t)})}saveState(){return this._assertAreasPathStarted(),this._graphicsStack.push(this._currentGS[this._pageIndex].pen.clone(),this._defPen.clone(),this._currentGS[this._pageIndex].brush.clone(),this._defBrush.clone()),this.document._document.save(),this}restoreState(){return this._assertAreasPathStarted(),this._graphicsStack.length&&(this._defBrush=this._graphicsStack.pop(),this._currentGS[this._pageIndex].brush=this._graphicsStack.pop(),this._defPen=this._graphicsStack.pop(),this._currentGS[this._pageIndex].pen=this._graphicsStack.pop()),this.document._document.restore(),this}_copy(t,e){return"compress"===t?(this._compress=wjcCore.asBoolean(e),!0):"bufferPages"===t?(this._bufferPages=wjcCore.asBoolean(e),!0):this._runtimeProperties.indexOf(t)>=0}get _document(){return this._doc}_switchTextFlowCtx(t){this._doc.x=t.xo,this._doc.y=t.yo,this._doc.lineGap(t.lineGap)}_getTextFlowCtxState(){return{xo:this._doc.x,yo:this._doc.y,lineGap:this._doc.currentLineGap()}}_toggleBrush(t){t?this._setCurBrush(t):this._setCurBrush(this._defBrush)}_togglePen(t){t?this._setCurPen(t):this._setCurPen(this._defPen)}_toggleFont(t){t?this._setCurFont(t):this._setCurFont(this._defFont)}_onDocData(t){this._chunks.push(t)}_onDocEnding(){if(this._processHeadersFooters(),this.info){var t;(t=this.info.author)&&(this._doc.info.Author=t),(t=this.info.creationDate)&&(this._doc.info.CreationDate=t),(t=this.info.keywords)&&(this._doc.info.Keywords=t),(t=this.info.modDate)&&(this._doc.info.ModDate=t),(t=this.info.subject)&&(this._doc.info.Subject=t),(t=this.info.title)&&(this._doc.info.Title=t)}}_onDocEnded(){if(exports._IE&&this._chunks.length&&!this._chunks[0].buffer)for(var t=0;t<this._chunks.length;t++){for(var e=this._chunks[t],r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e[n];this._chunks[t]=r.buffer}this.onEnded(new PdfDocumentEndedEventArgs(this._chunks)),this._chunks=[]}_onPageAdding(t,e){if(this.pageSettings){var r=this._pageSettingsToNative(this.pageSettings);e.layout=t.options.layout=r.layout,e.margins=t.options.margins=r.margins,e.size=t.options.size=r.size}}_onPageAdded(t){t.page.originalMargins=_shallowCopy(t.page.margins),this._resetAreasOffset(t),this.onPageAdded(wjcCore.EventArgs.empty)}_assertAreasPathStarted(){this._docInitialized&&(this._assertPathStarted(),this.header._assertPathStarted(),this.footer._assertPathStarted())}_pageSettingsToNative(t){var e={};if(t){var r=wjcCore.asEnum(t.layout,PdfPageOrientation,!0);null!=r&&(e.layout=(PdfPageOrientation[r]||"").toLowerCase());var n=t.margins;n&&(e.margins={left:wjcCore.asNumber(n.left,!1,!0),right:wjcCore.asNumber(n.right,!1,!0),top:wjcCore.asNumber(n.top,!1,!0),bottom:wjcCore.asNumber(n.bottom,!1,!0)});var i=t.size;null!=i&&(i instanceof wjcCore.Size?e.size=[wjcCore.asNumber(i.width,!1,!0),wjcCore.asNumber(i.height,!1,!0)]:(i=wjcCore.asEnum(i,PdfPageSize),e.size=(PdfPageSize[i]||"").toUpperCase()))}return e}_processHeadersFooters(){var t=this.header,e=this.footer;if(t.height>0||e.height>0){var r=this._doc;wjcCore.assert(r.options.bufferPages,exports._Errors.BufferPagesMustBeEnabled);for(var n=r.bufferedPageRange(),i=n.start;i<n.count;i++){var o={Page:i+1,Pages:n.count};this.pageIndex=i,this._renderHeaderFooter(t,o,!0),this._renderHeaderFooter(e,o,!1)}}}_renderHeaderFooter(t,e,r){if(t.height>0&&t.declarative&&t.declarative.text){var n=_formatMacros(t.declarative.text,e).split("\t");n.length>0&&n[0]&&this._renderHeaderFooterPart(t,n[0],PdfTextHorizontalAlign.Left,r),n.length>1&&n[1]&&this._renderHeaderFooterPart(t,n[1],PdfTextHorizontalAlign.Center,r),n.length>2&&n[2]&&this._renderHeaderFooterPart(t,n[2],PdfTextHorizontalAlign.Right,r)}}_renderHeaderFooterPart(t,e,r,n){var i={font:t.declarative.font,brush:t.declarative.brush,width:t.width,height:t.height,align:r};if(n)this.header.drawText(e,0,0,i);else{i.includeLastLineExternalLeading=!1;var o=this.footer.measureText(e,i.font,i);this.footer.drawText(e,0,this.footer.height-o.size.height,i)}}_setCurBrush(t){this._currentGS[this.pageIndex].brush.equals(t)||(this._setNativeDocBrush(t,!1),this._currentGS[this.pageIndex].brush=t.clone())}_setCurFont(t){if(!this._curFont.equals(t)){var e=this._fontReg.findFont(t.family,t.style,t.weight);this._doc.font(e,t.size||PdfFont._DEF_FONT.size),this._curFont=t.clone()}}_setCurPen(t){var e=this._doc,r=this._currentGS[this.pageIndex].pen;!t.brush||r.brush&&r.brush.equals(t.brush)?(r.brush&&!t.brush||!r.brush&&!r.color.equals(t.color))&&e.strokeColor([t.color.r,t.color.g,t.color.b],t.color.a):this._setNativeDocBrush(t.brush,!0),r.width!==t.width&&e.lineWidth(t.width),r.miterLimit!==t.miterLimit&&e.miterLimit(t.miterLimit),r.cap!==t.cap&&e.lineCap(t.cap),r.join!==t.join&&e.lineJoin(t.join),r.dashPattern.equals(t.dashPattern)||(null!=t.dashPattern.dash?e.dash(t.dashPattern.dash,{space:t.dashPattern.gap,phase:t.dashPattern.phase}):null!=r.dashPattern.dash&&e.undash()),this._currentGS[this.pageIndex].pen=t.clone()}_setNativeDocBrush(t,e){var r=this._doc,n=t._getBrushObject(this),i=1;n instanceof wjcCore.Color?(i=n.a,n=[n.r,n.g,n.b]):t instanceof PdfGradientBrush&&(i=t.opacity),e?r.strokeColor(n,i):r.fillColor(n,i)}_resetAreasOffset(t){t.page.margins.top=t.page.originalMargins.top+this.header.height,t.y=t.page.margins.top,t.page.margins.bottom=t.page.originalMargins.bottom+this.footer.height,this._header._initialize(this,t.page.margins.left,t.page.originalMargins.top),this._initialize(this,t.page.margins.left,t.page.margins.top),this._footer._initialize(this,t.page.margins.left,t.page.height-t.page.margins.bottom)}}exports.PdfDocument=PdfDocument,exports._compressSpaces=_compressSpaces,exports._resolveUrlIfRelative=_resolveUrlIfRelative;class _SvgCssRule{constructor(t,e){this.selector=t,this.declarations={},this._fillDeclarations(e)}_fillDeclarations(t){t&&t.split(";").forEach(t=>{if(t){var e=t.split(":");if(2===e.length){var r=e[0].trim().toLowerCase(),n=e[1].trim();if(r&&n){var i=/!important$/i.test(n);i&&(n=n.replace(/!important$/i,"").trim()),n&&(this.declarations[r]={value:n,important:i})}}}})}}exports._SvgCssRule=_SvgCssRule;class _SvgCssHelper{static matchesSelector(t,e){var r=!1;try{r=(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}catch(t){}return r}static getSpecificity(t){var e=0,r=0,n=0,i=e=>{var r=(t.match(e)||[]).length;return r&&(t=t.replace(e,"")),r};return t=t.replace(/:not\(([^\)]*)\)/g,(t,e)=>" "+e+" "),r+=i(/(\[[^\]]+\])/g),e+=i(/(#[^\s\+>~\.\[:]+)/g),r+=i(/(\.[^\s\+>~\.\[:]+)/g),n+=i(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi),r+=i(/(:[\w-]+\([^\)]*\))/gi),r+=i(/(:[^\s\+>~\.\[:]+)/g),t=t.replace(/[\*\s\+>~]/g," "),t=t.replace(/[#\.]/g," "),n+=i(/([^\s\+>~\.\[:]+)/g),e<<16|r<<8|n}static getComputedStyle(t,e){var r={},n=[];if(t.className)for(var n=[],i=0,o=Object.keys(e);i<o.length;i++){var s=o[i];this.matchesSelector(t,s)&&n.push(e[s])}n.sort((t,e)=>this.getSpecificity(t.selector)-this.getSpecificity(e.selector));var a=t.getAttribute("style");a&&n.push(new _SvgCssRule("_inline_",_compressSpaces(a)));for(i=0;i<n.length;i++)for(var l=n[i],u=0,o=Object.keys(l.declarations);u<o.length;u++){var h=o[u],c=l.declarations[h];null!=r[h]&&!c.important&&r[h].important||(r[h]=c)}for(var f={},i=0,o=Object.keys(r);i<o.length;i++)f[h=o[i]]=r[h].value;return f}static registerFontFace(t,e,r){var n=e.declarations;n["font-family"]&&n.src&&n.src.value.split(",").every(e=>{if(e.match(/format\(\s*['"]?truetype['"]?\s*\)/i)){var i=e.match(/url\(\s*['"]?([^'"\)]+)['"]?\s*\)/i);if(i){var o=i[1].trim(),s=!1;if(o=_resolveUrlIfRelative(o,r)){var a={name:n["font-family"].value,source:o,weight:n["font-weight"]?n["font-weight"].value.toLowerCase():"normal",style:n["font-style"]?n["font-style"].value.toLowerCase():"normal"};try{t.registerFont(a),s=!0}catch(t){}}return!s}}return!0})}}exports._SvgCssHelper=_SvgCssHelper;var _SvgNumConversion;!function(t){t[t.Default=1]="Default",t[t.None=2]="None",t[t.Px=3]="Px"}(_SvgNumConversion=exports._SvgNumConversion||(exports._SvgNumConversion={}));var _SvgLengthContext;!function(t){t[t.Width=1]="Width",t[t.Height=2]="Height",t[t.Other=3]="Other"}(_SvgLengthContext=exports._SvgLengthContext||(exports._SvgLengthContext={}));var _SvgAttrType;!function(t){t[t.Number=1]="Number",t[t.String=2]="String"}(_SvgAttrType=exports._SvgAttrType||(exports._SvgAttrType={}));class _SvgAttr{constructor(t,e,r,n,i=_SvgNumConversion.Default,o=_SvgLengthContext.Other,s=!1){wjcCore.assert(!!t,exports._Errors.ValueCannotBeEmpty("owner")),wjcCore.assert(!!e,exports._Errors.ValueCannotBeEmpty("propName")),this._owner=t,this._propName=e,this._propType=r,this._defValue=n,this._inheritable=s,this._nc=i,this._pCtx=o,this._searchValue=!0}static parseValue(t,e,r,n,i){if(null==t)return t;if(e&_SvgAttrType.Number){var o,s;if("number"==typeof t)o=t;else{var a=t.match(/^([\+-]?[\d\.]+)(em|ex|px|pt|pc|cm|mm|in|%)?$/);a&&(o=parseFloat(a[1]),s=a[2])}if(null!=o&&o===o){if(i!==_SvgNumConversion.Default){if(s)throw exports._Errors.InvalidFormat(t);if(i===_SvgNumConversion.None)return o}switch(s){case"mm":return 72*o/25.4;case"cm":return 72*o/2.54;case"in":return 72*o;case"pt":return o;case"pc":return 12*o;case"%":switch(n){case _SvgLengthContext.Height:o*=r.height/100;break;case _SvgLengthContext.Width:o*=r.width/100;break;case _SvgLengthContext.Other:o*=Math.sqrt(r.width*r.width+r.height*r.height)/Math.sqrt(2)/100}return o;case"px":default:return.75*o}}}if(e&_SvgAttrType.String)return t+"";throw exports._Errors.InvalidFormat(t)}get hasVal(){return null!=this._val}get val(){if(null!=this._val)return this._val;var t=wjcCore.isFunction(this._defValue)?this._defValue.call(this,this._owner.ctx):this._defValue;return this._parse(t)}set val(t){this._searchValue=!1,this._value=t}get _val(){if(this._searchValue){this._searchValue=!1;for(var t,e=this._owner;e&&(t=e.attr(this._propName),this._inheritable&&(null==t||"inherit"==t));e=e.parent);this._value="inherit"===t?void 0:this._parse(t)}return this._value}reset(){this._value=void 0,this._searchValue=!0}_parse(t,e){return t=_SvgAttr.parseValue(t,this._propType,this._owner.viewport,this._pCtx,e||this._nc)}}exports._SvgAttr=_SvgAttr;class _SvgNumAttr extends _SvgAttr{constructor(t,e,r,n=_SvgNumConversion.Default,i=_SvgLengthContext.Other,o){super(t,e,_SvgAttrType.Number,r,n,i,o)}}exports._SvgNumAttr=_SvgNumAttr;class _SvgStrAttr extends _SvgAttr{constructor(t,e,r,n){super(t,e,_SvgAttrType.String,r,void 0,void 0,n)}}exports._SvgStrAttr=_SvgStrAttr;class _SvgColorAttr extends _SvgAttr{constructor(t,e,r,n=!0){super(t,e,_SvgAttrType.String,r,_SvgNumConversion.None,_SvgLengthContext.Other,n)}asHref(){var t=this.val.match(/url\((.+)\)/);return t?t[1]:null}_parse(t){if(""!==t&&"null"!==t&&"undefined"!==t)return super._parse(t)}}exports._SvgColorAttr=_SvgColorAttr;class _SvgDashArrayAttr extends _SvgAttr{constructor(t){super(t,"stroke-dasharray",_SvgAttrType.Number,void 0,_SvgNumConversion.Px,_SvgLengthContext.Other,!0)}_parse(t){var e,r=(t||"").trim().split(/[\s,]+/);if(r.length){e=[];try{for(var n=0;n<r.length;n++)r[n]&&e.push(super._parse(r[n]))}catch(t){return}return e.length?e:void 0}return e}}exports._SvgDashArrayAttr=_SvgDashArrayAttr;class _SvgFillRuleAttr extends _SvgAttr{constructor(t,e){super(t,e,_SvgAttrType.String,PdfFillRule.NonZero,void 0,void 0,!0)}_parse(t){if(wjcCore.isNumber(t))return t;var e=(t||"").match(/(nonzero|evenodd)/i);return e?"nonzero"===e[1]?PdfFillRule.NonZero:PdfFillRule.EvenOdd:void 0}}exports._SvgFillRuleAttr=_SvgFillRuleAttr;class _SvgHRefAttr extends _SvgStrAttr{constructor(t,e){super(t,e)}_parse(t){var e=(t=(t||"").trim()).match(/url\((.+)\)/);return e&&(t=e[1].trim()),t=t.replace(/["']/g,"")}}exports._SvgHRefAttr=_SvgHRefAttr;class _SvgIdRefAttr extends _SvgHRefAttr{_parse(t){if((t=super._parse(t))&&"#"===t[0])return t.substring(1)}}exports._SvgIdRefAttr=_SvgIdRefAttr;class _SvgPointsArrayAttr extends _SvgAttr{constructor(t,e){super(t,e,_SvgAttrType.Number,void 0,_SvgNumConversion.Px)}_parse(t){var e,r=(t||"").trim().split(/[\s,]+/),n=2*Math.floor(r.length/2);if(n){e=[];try{for(var i=0;i<n-1;i+=2)e.push(new wjcCore.Point(super._parse(r[i]),super._parse(r[i+1])))}catch(t){return}}return e}}exports._SvgPointsArrayAttr=_SvgPointsArrayAttr;class _SvgTransformAttr extends _SvgAttr{constructor(t){super(t,"transform",_SvgAttrType.Number,void 0,_SvgNumConversion.None)}apply(t){var e=t.ctx.area;this.hasVal&&this.val.forEach(t=>{t(e)})}_parse(t){var e=[],r=(t||"").match(/((matrix|translate|scale|rotate|skewX|skewY)\([^\)]+\))+/g);if(r)for(var n=0;n<r.length;n++){var i=r[n].match(/(\w+)\(([^\)]+)\)/),o=[];try{i[2].trim().split(/[\s,]+/).forEach(t=>{t&&o.push(super._parse(t,_SvgNumConversion.None))})}catch(t){return}if(o.length)switch(i[1]){case"matrix":e.push(((t,e,r,n,i,o)=>s=>{s.transform(t,e,r,n,i,o)})(o[0],o[1],o[2],o[3],super._parse(o[4],_SvgNumConversion.Px),super._parse(o[5],_SvgNumConversion.Px)));break;case"translate":e.push(((t,e)=>r=>{r.translate(t,e)})(super._parse(o[0],_SvgNumConversion.Px),super._parse(o[1]||0,_SvgNumConversion.Px)));break;case"scale":e.push(((t,e)=>r=>{r.scale(t,e)})(o[0],o[1]));break;case"rotate":e.push(((t,e)=>r=>{r.rotate(t,e)})(o[0],new wjcCore.Point(super._parse(o[1]||0,_SvgNumConversion.Px),super._parse(o[2]||0,_SvgNumConversion.Px))));break;case"skewX":e.push((t=>e=>{e.transform(1,0,t,1,0,0)})(Math.tan(o[0]*Math.PI/180)));break;case"skewY":e.push((t=>e=>{e.transform(1,t,0,1,0,0)})(Math.tan(o[0]*Math.PI/180)))}}return e.length?e:void 0}}exports._SvgTransformAttr=_SvgTransformAttr;class _SvgTextDecorationAttr extends _SvgAttr{constructor(t){super(t,"text-decoration",_SvgAttrType.String,void 0,_SvgNumConversion.None)}_parse(t){var e,r=(t||"").trim().toLowerCase().split(/[\s,]+/);if(r.length){e=[];for(var n=0;n<r.length;n++)/line-through|overline|underline/.test(r[n])&&e.push(r[n])}return e&&e.length?e:void 0}}exports._SvgTextDecorationAttr=_SvgTextDecorationAttr;class _SvgViewboxAttr extends _SvgAttr{constructor(t){super(t,"viewBox",_SvgAttrType.Number,void 0,_SvgNumConversion.Px)}_parse(t){var e,r=(t||"").trim().split(/[\s,]+/);return 4===r.length&&(e={minX:super._parse(r[0]),minY:super._parse(r[1]),width:super._parse(r[2]),height:super._parse(r[3])}),e}}exports._SvgViewboxAttr=_SvgViewboxAttr;class _SvgPreserveAspectRatioAttr extends _SvgAttr{constructor(t){super(t,"preserveAspectRatio",_SvgAttrType.Number,"xMidYMid meet")}_parse(t){var e;if("string"==typeof t){var r=t.replace(/^defer\s+/,"").trim().split(/\s+/);e={align:r[0],meet:!("slice"===r[1])}}else e=t;return e}}exports._SvgPreserveAspectRatioAttr=_SvgPreserveAspectRatioAttr;class _SvgScaleAttributes{constructor(t){this._owner=t,this.aspect=new _SvgPreserveAspectRatioAttr(this._owner),this.viewBox=new _SvgViewboxAttr(this._owner)}apply(t){var e=t.ctx.area,r=t.viewport,n=this.viewBox.val;if(r&&n){if(n.width&&n.height){var i=this.aspect.val,o=r.width/n.width,s=r.height/n.height,a=Math.min(o,s),l=Math.max(o,s),u=n.width*(i.meet?a:l),h=n.height*(i.meet?a:l);if("none"===i.align)e.scale(o,s);else{var c=i.meet?a:l,f=0,d=0;i.align.match(/^xMid/)&&c===s?f=r.width/2-u/2:i.align.match(/^xMax/)&&c===s&&(f=r.width-u),i.align.match(/YMid$/)&&c===o?d=r.height/2-h/2:i.align.match(/YMax$/)&&c===o&&(d=r.height-h),(f||d)&&e.translate(f,d),i.meet?e.scale(a,a):e.scale(l,l),(n.minX||n.minY)&&e.translate(-n.minX,-n.minY)}}return new wjcCore.Size(n.width,n.height)}return r}}exports._SvgScaleAttributes=_SvgScaleAttributes;class _SvgStrokeAttributes{constructor(t){this._owner=t,this.color=new _SvgColorAttr(this._owner,"stroke","none"),this.dashArray=new _SvgDashArrayAttr(this._owner),this.dashOffset=new _SvgNumAttr(this._owner,"stroke-dashoffset",0,_SvgNumConversion.Default,_SvgLengthContext.Other,!0),this.lineCap=new _SvgStrAttr(this._owner,"stroke-linecap","butt",!0),this.lineJoin=new _SvgStrAttr(this._owner,"stroke-linejoin","miter",!0),this.miterLimit=new _SvgNumAttr(this._owner,"stroke-miterlimit",4,_SvgNumConversion.None,_SvgLengthContext.Other,!0),this.opacity=new _SvgNumAttr(this._owner,"stroke-opacity",1,_SvgNumConversion.None,_SvgLengthContext.Other,!0),this.width=new _SvgNumAttr(this._owner,"stroke-width",1,_SvgNumConversion.Default,_SvgLengthContext.Other,!0)}toPen(t){var e=new wjcCore.Color(this.color.val);this.opacity.hasVal&&(e.a=this.opacity.val);var r=new PdfPen(e,this.width.val);if(this.dashArray.hasVal){var n=this.dashArray.val;n.length&&(r.dashPattern=new PdfDashPattern(n[0],n.length>1?n[1]:void 0,this.dashOffset.val))}switch(this.lineCap.val){case"butt":r.cap=PdfLineCapStyle.Butt;break;case"round":r.cap=PdfLineCapStyle.Round;break;case"square":r.cap=PdfLineCapStyle.Square}switch(this.lineJoin.val){case"miter":r.join=PdfLineJoinStyle.Miter;break;case"round":r.join=PdfLineJoinStyle.Round;break;case"bevel":r.join=PdfLineJoinStyle.Bevel}return r.miterLimit=this.miterLimit.val,r}}exports._SvgStrokeAttributes=_SvgStrokeAttributes;class _SvgFillAttributes{constructor(t){this._owner=t,this.color=new _SvgColorAttr(this._owner,"fill","black"),this.opacity=new _SvgNumAttr(this._owner,"fill-opacity",1,_SvgNumConversion.None,void 0,!0),this.rule=new _SvgFillRuleAttr(this._owner,"fill-rule")}toBrush(t){let e,r=this.color.asHref();if(r&&t){var n=t.ctx.getElement(r);if(n instanceof _SvgLinearGradientElementImpl)return n.toBrush(t)}return e=new wjcCore.Color(this.color.val),this.opacity.hasVal&&(e.a=this.opacity.val),new PdfSolidBrush(e)}}exports._SvgFillAttributes=_SvgFillAttributes;class _SvgFontAttributes{constructor(t){this._owner=t,this.family=new _SvgStrAttr(this._owner,"font-family",t=>{var e=t.area.document._getFont();return e?e.family:void 0},!0),this.size=new _SvgAttr(this._owner,"font-size",_SvgAttrType.Number|_SvgAttrType.String,"medium",void 0,_SvgLengthContext.Other,!0),this.style=new _SvgStrAttr(this._owner,"font-style","normal",!0),this.weight=new _SvgStrAttr(this._owner,"font-weight","normal",!0)}toFont(){var t=_asPt(this.size.val);return new PdfFont(this.family.val,t,this.style.val,this.weight.val)}}exports._SvgFontAttributes=_SvgFontAttributes;class _SvgStyleAttributes{constructor(t){this._owner=t,this.clipRule=new _SvgFillRuleAttr(this._owner,"clip-rule"),this.fill=new _SvgFillAttributes(this._owner),this.font=new _SvgFontAttributes(this._owner),this.stroke=new _SvgStrokeAttributes(this._owner)}apply(t,e,r){var n=t.ctx.area;t.renderMode===_SvgRenderMode.Clip||(e&&r&&"none"!==this.fill.color.val&&"none"!==this.stroke.color.val?n.paths.fillAndStroke(this.fill.toBrush(t),this.stroke.toPen(t),this.fill.rule.val):e&&"none"!==this.fill.color.val?n.paths.fill(this.fill.toBrush(t),this.fill.rule.val):r&&"none"!==this.stroke.color.val?n.paths.stroke(this.stroke.toPen(t)):n.paths.stroke(wjcCore.Color.fromRgba(0,0,0,0)))}}exports._SvgStyleAttributes=_SvgStyleAttributes;var _SvgRenderMode;!function(t){t[t.Render=0]="Render",t[t.Ignore=1]="Ignore",t[t.Clip=2]="Clip"}(_SvgRenderMode=exports._SvgRenderMode||(exports._SvgRenderMode={}));class _SvgElementBase{constructor(t,e,r=_SvgRenderMode.Render){this._children=[],this._attributes={},this._defRenderMode=r,this._ctx=t}get children(){return this._children}get ctx(){return this._ctx}get parent(){return this._parent}set parent(t){this._parent=t}get style(){return this._style||(this._style=new _SvgStyleAttributes(this)),this._style}get viewport(){return this._viewport}set viewport(t){this._viewport=t.clone()}attr(t,e){return t=t.toLowerCase(),arguments.length>1&&(this._attributes[t]=e),this._attributes[t]}appendNode(t){t&&t!==this&&t.parent!==this&&(t.remove(),this.children.push(t),t.parent=this)}copyAttributesFrom(t,e){if(t){var r=t._attributes,n=this._attributes;for(var i in r)r.hasOwnProperty(i)&&null==n[i]&&(!e||e.indexOf(i)<0)&&(n[i]=r[i])}}clone(){var t=new(Function.prototype.bind.call(this.constructor,null,this.ctx,null));return t.copyAttributesFrom(this),this._children.forEach(e=>{t.appendNode(e.clone())}),t}remove(){var t=this.parent;if(t){for(var e=0;e<t.children.length;e++)if(t.children[e]===this){t.children.splice(e,1);break}this.parent=null}}clearAttr(t){delete this._attributes[t.toLowerCase()]}render(t,e){this._viewport=t.clone(),(this._curRenderMode=e||this._defRenderMode)!==_SvgRenderMode.Ignore&&this._render()}get renderMode(){return this._curRenderMode}_render(){this._renderContent()}_renderContent(){for(var t=0;t<this._children.length;t++)this._children[t].render(this.viewport,this.renderMode)}}exports._SvgElementBase=_SvgElementBase;class _SvgClippableElementBase extends _SvgElementBase{constructor(t,e,r=_SvgRenderMode.Render){super(t,e,r),this._clipPath=new _SvgIdRefAttr(this,"clip-path")}_render(){var t,e=this.ctx.area;if(this._clipPath.val){var r=this.ctx.getElement(this._clipPath.val);(t=!!(r&&r instanceof _SvgClipPathElementImpl))&&(e.document.saveState(),r.render(this.viewport,_SvgRenderMode.Clip),e.paths.clip(this.style.clipRule.val))}super._render(),t&&e.document.restoreState()}}exports._SvgClippableElementBase=_SvgClippableElementBase;class _SvgTransformableElementBase extends _SvgClippableElementBase{constructor(t,e){super(t,e),this._transform=new _SvgTransformAttr(this)}_render(){var t=this._transform.hasVal&&this.renderMode!==_SvgRenderMode.Clip;t&&(this.ctx.area.document.saveState(),this._transform.apply(this)),super._render(),t&&this.ctx.area.document.restoreState()}}exports._SvgTransformableElementBase=_SvgTransformableElementBase;class _SvgShapeElementBase extends _SvgTransformableElementBase{constructor(){super(...arguments),this._fill=!0,this._stroke=!0}_renderContent(){this._draw(),this.style.apply(this,this._fill,this._stroke)}_draw(){wjcCore.assert(!1,exports._Errors.AbstractMethod)}}exports._SvgShapeElementBase=_SvgShapeElementBase;class _SvgCircleElementImpl extends _SvgShapeElementBase{_draw(){var t=new _SvgNumAttr(this,"r",0).val;if(t>0){var e=new _SvgNumAttr(this,"cx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,r=new _SvgNumAttr(this,"cy",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.circle(e,r,t)}}}exports._SvgCircleElementImpl=_SvgCircleElementImpl;class _SvgEllipseElementImpl extends _SvgShapeElementBase{_draw(){var t=new _SvgNumAttr(this,"rx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,e=new _SvgNumAttr(this,"ry",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;if(t>0&&e>0){var r=new _SvgNumAttr(this,"cx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"cy",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.ellipse(r,n,t,e)}}}exports._SvgEllipseElementImpl=_SvgEllipseElementImpl;class _SvgLineElementImpl extends _SvgShapeElementBase{constructor(t,e){super(t,e),this._fill=!1}_draw(){var t=new _SvgNumAttr(this,"x1",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,e=new _SvgNumAttr(this,"y1",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,r=new _SvgNumAttr(this,"x2",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"y2",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.moveTo(t,e).lineTo(r,n)}}exports._SvgLineElementImpl=_SvgLineElementImpl;class _SvgPathElementImpl extends _SvgShapeElementBase{constructor(t,e){super(t,e),this._d=new _SvgStrAttr(this,"d")}_renderContent(){var t=this.ctx.area;if(this.renderMode===_SvgRenderMode.Clip){if(this._d.hasVal){var e=_PdfSvgPathHelper.scale(this._d.val,.75);this.attr("d",e),this._d.reset()}super._renderContent()}else t.document.saveState(),t.scale(.75),super._renderContent(),t.document.restoreState()}_draw(){this._d.hasVal&&this.ctx.area.paths.svgPath(this._d.val)}}exports._SvgPathElementImpl=_SvgPathElementImpl;class _SvgPolylineElementImpl extends _SvgShapeElementBase{_draw(){var t=new _SvgPointsArrayAttr(this,"points");if(t.hasVal){var e=t.val,r=this.ctx.area;if(e.length>1){for(var n=0;n<e.length;n++)0==n?r.paths.moveTo(e[n].x,e[n].y):r.paths.lineTo(e[n].x,e[n].y);return!0}}return!1}}exports._SvgPolylineElementImpl=_SvgPolylineElementImpl;class _SvgPolygonElementImpl extends _SvgPolylineElementImpl{_draw(){return!!super._draw()&&(this.ctx.area.paths.closePath(),!0)}}exports._SvgPolygonElementImpl=_SvgPolygonElementImpl;class _SvgRectElementImpl extends _SvgShapeElementBase{_draw(){var t=new _SvgNumAttr(this,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,e=new _SvgNumAttr(this,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;if(t>0&&e>0){var r=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,i=Math.max(new _SvgNumAttr(this,"rx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,0),o=Math.max(new _SvgNumAttr(this,"ry",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,0),s=this.ctx.area.paths;i||o?(i=Math.min(i||o,t/2),o=Math.min(o||i,e/2),s.moveTo(r+i,n),s.lineTo(r+t-i,n),s.quadraticCurveTo(r+t,n,r+t,n+o),s.lineTo(r+t,n+e-o),s.quadraticCurveTo(r+t,n+e,r+t-i,n+e),s.lineTo(r+i,n+e),s.quadraticCurveTo(r,n+e,r,n+e-o),s.lineTo(r,n+o),s.quadraticCurveTo(r,n,r+i,n)):s.rect(r,n,t,e)}}}exports._SvgRectElementImpl=_SvgRectElementImpl;class _SvgClipPathElementImpl extends _SvgElementBase{constructor(t,e){super(t,e,_SvgRenderMode.Ignore)}}exports._SvgClipPathElementImpl=_SvgClipPathElementImpl;class _SvgDefsElementImpl extends _SvgClippableElementBase{constructor(t,e){super(t,e,_SvgRenderMode.Ignore)}}exports._SvgDefsElementImpl=_SvgDefsElementImpl;class _SvgGElementImpl extends _SvgTransformableElementBase{}exports._SvgGElementImpl=_SvgGElementImpl;class _SvgLinearGradientElementImpl extends _SvgElementBase{constructor(t,e){super(t,e,_SvgRenderMode.Ignore),this._x1=new _SvgStrAttr(this,"x1","0%"),this._x2=new _SvgStrAttr(this,"x2","100%"),this._y1=new _SvgStrAttr(this,"y1","0%"),this._y2=new _SvgStrAttr(this,"y2","0%"),this._gradientUnits=new _SvgStrAttr(this,"gradientUnits","objectBoundingBox")}toBrush(t){for(var e=new wjcCore.Rect(new _SvgNumAttr(t,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,new _SvgNumAttr(t,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,new _SvgNumAttr(t,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,new _SvgNumAttr(t,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val),r="objectBoundingBox"===this._gradientUnits.val?new wjcCore.Size(e.width,e.height):t.viewport.clone(),n=_SvgNumAttr.parseValue(this._x1.val,_SvgAttrType.Number,r,_SvgLengthContext.Width,_SvgNumConversion.Default),i=_SvgNumAttr.parseValue(this._x2.val,_SvgAttrType.Number,r,_SvgLengthContext.Width,_SvgNumConversion.Default),o=_SvgNumAttr.parseValue(this._y1.val,_SvgAttrType.Number,r,_SvgLengthContext.Height,_SvgNumConversion.Default),s=_SvgNumAttr.parseValue(this._y2.val,_SvgAttrType.Number,r,_SvgLengthContext.Height,_SvgNumConversion.Default),a=[],l=0;l<this.children.length;l++)if(this.children[l]instanceof _SvgStopElementImpl){var u=this.children[l];a.push(new PdfGradientStop(_SvgNumAttr.parseValue(u.offset.val,_SvgAttrType.Number,r,_SvgLengthContext.Other,_SvgNumConversion.Default),u.color.val,u.opacity.val))}return new PdfLinearGradientBrush(e.left+n,e.top+o,e.left+i,e.top+s,a)}}exports._SvgLinearGradientElementImpl=_SvgLinearGradientElementImpl;class _SvgStopElementImpl extends _SvgElementBase{constructor(t,e){super(t,e,_SvgRenderMode.Ignore),this.color=new _SvgColorAttr(this,"stop-color","black"),this.opacity=new _SvgNumAttr(this,"stop-opacity",1,_SvgNumConversion.None,void 0,!0),this.offset=new _SvgStrAttr(this,"offset","0")}}exports._SvgStopElementImpl=_SvgStopElementImpl;class _SvgImageElementImpl extends _SvgTransformableElementBase{constructor(t,e){super(t,e),this._x=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._y=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._width=new _SvgNumAttr(this,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._height=new _SvgNumAttr(this,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._href=new _SvgHRefAttr(this,"xlink:href"),this._par=new _SvgPreserveAspectRatioAttr(this)}_renderContent(){var t=this._width.val,e=this._height.val;if(t>0&&e>0&&this._href.hasVal){var r=_resolveUrlIfRelative(this._href.val,this.ctx.urlResolver);if(r){this.ctx.area.document.saveState(),(this._x.val||this._y.val)&&this.ctx.area.translate(this._x.val,this._y.val),this.viewport=new wjcCore.Size(t,e);try{this._href.val.match(/\.svg$/i)?this._renderSvgImage(r):this._renderRasterImage(r)}catch(t){}this.ctx.area.document.restoreState()}}}_renderSvgImage(t){var e,r=_XhrHelper.text(t,t=>e=t.statusText);if(e)throw e;var n=new _SvgRenderer(r,this.ctx.area),i=n.root;this.attr("viewBox",i.attr("viewBox")),i.clearAttr("viewBox"),i.clearAttr("x"),i.clearAttr("y"),i.clearAttr("width"),i.clearAttr("height"),i.clearAttr("preserveAspectRatio"),i.clearAttr("clip"),i.clearAttr("overflow"),this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();var o=new _SvgScaleAttributes(this);n.render(o.apply(this))}_renderRasterImage(t){var e=this.ctx.area.openImage(_PdfImageHelper.getDataUri(t)),r=this._par.val,n=this.viewport.width,i=this.viewport.height,o={width:n,height:i,align:PdfImageHorizontalAlign.Left,vAlign:PdfImageVerticalAlign.Top};if("none"===r.align)o.stretchProportionally=!1;else if(o.stretchProportionally=!0,r.meet)r.align.match(/^xMid/)?o.align=PdfImageHorizontalAlign.Center:r.align.match(/^xMax/)&&(o.align=PdfImageHorizontalAlign.Right),r.align.match(/YMid$/)?o.vAlign=PdfImageVerticalAlign.Center:r.align.match(/YMax$/)&&(o.vAlign=PdfImageVerticalAlign.Bottom);else{let t=pxToPt(e.width),s=pxToPt(e.height),a=n/t,l=i/s;a>l?(o.width=t*a,o.height=s*a):(o.width=t*l,o.height=s*l);let u=0,h=0;r.align.match(/^xMid/)?u=-o.width/2+n/2:r.align.match(/^xMax/)&&(u=-o.width+n),r.align.match(/YMid$/)?h=-o.height/2+i/2:r.align.match(/YMax$/)&&(h=-o.height+i),this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip(),(u||h)&&this.ctx.area.translate(u,h)}this.ctx.area.drawImage(e,0,0,o)}}exports._SvgImageElementImpl=_SvgImageElementImpl;class _SvgStyleElementImpl extends _SvgElementBase{constructor(t,e){if(super(t,e,_SvgRenderMode.Ignore),e&&(!e.type||"text/css"===e.type)){for(var r="",n=0;n<e.childNodes.length;n++)r+=e.childNodes[n].textContent;var i=(r=(r=_compressSpaces(r)).replace(/\/\*([^*]|\*+[^*/])*\*+\//gm,"")).match(/[^{}]*{[^}]*}/g);if(i)for(n=0;n<i.length;n++){var o=i[n].match(/([^{}]*){([^}]*)}/);if(o){var s=o[1].trim().split(","),a=o[2].trim();s.length&&a&&s.forEach(t=>{(t=t.trim())&&this.ctx.registerCssRule(new _SvgCssRule(t,a))})}}}}}exports._SvgStyleElementImpl=_SvgStyleElementImpl;class _SvgSvgElementImpl extends _SvgClippableElementBase{constructor(t,e){super(t,e),this._x=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._y=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._width=new _SvgNumAttr(this,"width","100%",_SvgNumConversion.Default,_SvgLengthContext.Width),this._height=new _SvgNumAttr(this,"height","100%",_SvgNumConversion.Default,_SvgLengthContext.Height),this._scale=new _SvgScaleAttributes(this),this._overflow=new _SvgStrAttr(this,"overflow","hidden")}get width(){return this._width}get height(){return this._height}_render(){var t=this.ctx.area;t.document.saveState();var e=this._width.val,r=this._height.val,n=this._x.val,i=this._y.val;this.parent&&(n||i)&&t.translate(n,i),this.viewport=new wjcCore.Size(e,r),"visible"!==this._overflow.val&&t.paths.rect(0,0,e,r).clip(),this.viewport=this._scale.apply(this),this.viewport.width>0&&this.viewport.height>0&&super._render(),t.document.restoreState()}}exports._SvgSvgElementImpl=_SvgSvgElementImpl;class _SvgSymbolElementImpl extends _SvgClippableElementBase{constructor(t,e){super(t,e,_SvgRenderMode.Ignore)}}exports._SvgSymbolElementImpl=_SvgSymbolElementImpl;class _SvgUseElementImpl extends _SvgElementBase{constructor(t,e){super(t,e),this._xlink=new _SvgIdRefAttr(this,"xlink:href")}_render(){var t,e;if(this._xlink.hasVal&&(t=this.ctx.getElement(this._xlink.val))){var r=new _SvgGElementImpl(this.ctx,null);if(r.parent=this.parent,r.copyAttributesFrom(this,["x","y","width","height","xlink:href"]),null!=this.attr("x")||null!=this.attr("y")){var n=wjcCore.format("translate({x},{y})",{x:this.attr("x")||0,y:this.attr("y")||0});r.attr("transform",(e=r.attr("transform"))?e+" "+n:n)}if(t instanceof _SvgSymbolElementImpl){var i=new _SvgSvgElementImpl(this.ctx,null);i.copyAttributesFrom(t);for(var o=0;o<t.children.length;o++)i.appendNode(t.children[o].clone());r.appendNode(i),i.attr("width",this.attr("width")||"100%"),i.attr("height",this.attr("height")||"100%")}else t=t.clone(),r.appendNode(t),t instanceof _SvgSvgElementImpl&&(null!=(e=this.attr("width"))&&t.attr("width",e),null!=(e=this.attr("height"))&&t.attr("height",e));r.render(this.viewport,this.renderMode)}}}exports._SvgUseElementImpl=_SvgUseElementImpl;class _SvgTextElementImpl extends _SvgTransformableElementBase{constructor(t,e){super(t,e),this._x=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._y=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._dx=new _SvgNumAttr(this,"dx",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._dy=new _SvgNumAttr(this,"dy",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._textDecoration=new _SvgTextDecorationAttr(this)}_render(){this.renderMode===_SvgRenderMode.Render&&super._render()}_renderContent(){this._prepareNodes();for(var t=this._x.val+this._dx.val,e=this._y.val+this._dy.val,r=(n,i)=>{if(n._x.hasVal&&(t=n._x.val),n._y.hasVal&&(e=n._y.val),t+=n._dx.val,e+=n._dy.val,n._text)n._cx=t,n._cy=e,n._setDecorators(i),n.render(this.viewport,this.renderMode),t+=this.ctx.area.measureText(n._text,n.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size.width;else for(var o=0;o<n.children.length;o++){var s=i.slice();s.push({decoration:n._textDecoration,style:n.style}),r(n.children[o],s)}},n=0;n<this.children.length;n++)r(this.children[n],[{decoration:this._textDecoration,style:this.style}])}_prepareNodes(){var t=e=>{for(var r=0;r<e.children.length;r++){var n=e.children[r];!n._text&&t(n)&&n.remove()}return 0===e.children.length},e=[],r=t=>{for(var n=0;n<t.children.length;n++){var i=t.children[n];i._text?e.push(i):r(i)}};t(this),r(this);for(var n=0;n<e.length;n++){var i=e.length;" "===e[n]._text&&(0===n||n===i-1||n<i-1&&" "===e[n+1]._text)&&(e[n].remove(),e.splice(n,1),n--)}}}exports._SvgTextElementImpl=_SvgTextElementImpl;class _SvgTspanElementImpl extends _SvgClippableElementBase{constructor(t,e,r){super(t,e),this._textDecoration=new _SvgTextDecorationAttr(this),this._text=wjcCore.asString(r),this._x=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._y=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._dx=new _SvgNumAttr(this,"dx",0,_SvgNumConversion.Default,_SvgLengthContext.Width),this._dy=new _SvgNumAttr(this,"dy",0,_SvgNumConversion.Default,_SvgLengthContext.Height),this._textDecoration=new _SvgTextDecorationAttr(this)}clone(){var t=super.clone();return t._text=this._text,t}_setDecorators(t){this._decorators=t}_renderContent(){if(this._text){var t={font:this.style.font.toFont(),width:1/0,height:1/0,lineBreak:!1,fill:"none"!==this.style.fill.color.val,stroke:"none"!==this.style.stroke.color.val,_baseline:_PdfTextBaseline.Alphabetic};this._decorate(),(t.fill||t.stroke)&&(t.fill&&(t.brush=this.style.fill.toBrush(this)),t.stroke&&(t.pen=this.style.stroke.toPen(this)),this.ctx.area.drawText(this._text,this._cx,this._cy,t))}}_decorate(){var t=this.ctx.area,e=!1;this._decorators.push({decoration:this._textDecoration,style:this.style});for(var r=0;r<this._decorators.length&&!e;r++)e=null!=this._decorators[r].decoration.val;if(e){t.document.saveState();for(var n,i=t.document._document,o=t.measureText(this._text,this.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size,s=Math.max(i.currentFontSize()/20,.1),a=i.currentFontAscender(),l=this._cx;n=this._decorators.shift();){var u=n.decoration.val;if(u){for(var h=0;h<u.length;h++){var c=this._cy-a;switch(u[h]){case"line-through":c=c+o.height/2-s/2;break;case"overline":c-=i.currentFontBBox().ury-i.currentFontAscender();break;case"underline":c=c+o.height-1.5*s}t.paths.rect(l,c,o.width,s)}n.style.apply(this,!0,!0)}}t.document.restoreState()}}}exports._SvgTspanElementImpl=_SvgTspanElementImpl;class _SvgRenderer{constructor(t,e,r){this._elementsById={},this._registeredCssRules={},wjcCore.assert(null!=e,exports._Errors.ValueCannotBeEmpty("svgString")),this._doc=e.document;var n=this._parse(t);n&&(this._svg=new _SvgSvgElementImpl({area:e,urlResolver:r,getElement:this._getElementById.bind(this),registerCssRule:t=>{this._registerCssRule(t,r)}},null),this._copyAttributes(n,this._svg),this._buildTree(n,this._svg),this._svg.viewport=new wjcCore.Size(e.width,e.height))}get root(){return this._svg}render(t){this._svg&&this._svg.render(t||this._svg.viewport)}_parse(t){if(t){var e=new DOMParser;return e.async=!1,e.parseFromString(t,"text/xml").getElementsByTagName("svg")[0]}}_buildTree(t,e,r){for(var n=0;t.childNodes&&n<t.childNodes.length;n++){var i=t.childNodes.item(n),o=i.nodeName;if(1===i.nodeType){var s=this._getClassName(o);if(wjcSelf[s]){var a=new wjcSelf[s](e.ctx,i);this._copyAttributes(i,a),e.appendNode(a);var l;(l=i.getAttribute("id"))&&(this._elementsById[l]=a),this._buildTree(i,a,"text"===o||r&&"tspan"===o)}}else if(3===i.nodeType&&r){var u=i.textContent.trim();if(u){0!=n&&1===t.childNodes[n-1].nodeType&&i.textContent.match(/^\s/)&&e.appendNode(new _SvgTspanElementImpl(e.ctx,null," "));var h=_compressSpaces(i.textContent);e.appendNode(new _SvgTspanElementImpl(e.ctx,null,h))}u&&!i.textContent.match(/\s$/)||e.appendNode(new _SvgTspanElementImpl(e.ctx,null," "))}}}_getClassName(t){return"_Svg"+t.charAt(0).toUpperCase()+t.substring(1)+"ElementImpl"}_copyAttributes(t,e){for(i=0;i<t.attributes.length;i++){var r=t.attributes.item(i);e.attr(r.name,r.value)}for(var n=_SvgCssHelper.getComputedStyle(t,this._registeredCssRules),i=0,o=Object.keys(n);i<o.length;i++){var s=o[i];e.attr(s,n[s])}}_getElementById(t){return t=(t||"").replace("#",""),this._elementsById[t]}_registerCssRule(t,e){"@"!==t.selector[0]?this._registeredCssRules[t.selector]=t:"@font-face"===t.selector&&_SvgCssHelper.registerFontFace(this._doc,t,e)}}exports._SvgRenderer=_SvgRenderer;