@mescius/wijmo.pdf 5.20261.45-nightly.d20251218.t163151 → 5.20261.45-nightly.d20260105.t163143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +1562 -1563
- package/index.js +2 -2
- package/package.json +2 -2
package/es2015-commonjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
3
|
+
* Wijmo Library 5.20261.45-nightly.d20260105.t163143
|
|
4
4
|
* https://developer.mescius.com/wijmo
|
|
5
5
|
*
|
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
"use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(n[i]=e[i]);n.default=e;return n};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_1=require("@mescius/wijmo"),selfModule=__importStar(require("@mescius/wijmo.pdf"));!function(e){if("object"==typeof localExports&&"undefined"!=typeof localModule)localModule.localExports=e();else if("function"==typeof localDefine&&localDefine.amd)localDefine([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PDFDocument=e()}}((function(){return function r(e,n,i){function o(d,p){if(!n[d]){if(!e[d]){var _="function"==typeof localRequire&&localRequire;if(!p&&_)return _(d,!0);if(u)return u(d,!0);var y=new Error("Cannot find module '"+d+"'");throw y.code="MODULE_NOT_FOUND",y}var b=n[d]={localExports:{}};e[d][0].call(b.localExports,(function(n){return o(e[d][1][n]||n)}),b,b.localExports,r,e,n,i)}return n[d].localExports}for(var u="function"==typeof localRequire&&localRequire,d=0;d<i.length;d++)o(i[d]);return o}({1:[function(e,n,i){(function(i){(function(){var u=e("restructure"),d=e("@babel/runtime-corejs2/core-js/object/define-property"),p=e("@babel/runtime-corejs2/core-js/object/keys"),_=e("@babel/runtime-corejs2/core-js/object/freeze"),y=e("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor"),b=e("@babel/runtime-corejs2/core-js/map"),w=e("@babel/runtime-corejs2/core-js/array/is-array"),x=e("@babel/runtime-corejs2/core-js/string/from-code-point"),P=e("@babel/runtime-corejs2/core-js/set"),E=e("@babel/runtime-corejs2/core-js/array/from"),k=e("unicode-properties"),B=e("clone"),j=e("@babel/runtime-corejs2/core-js/promise"),I={logErrors:!1},O=[];I.registerFormat=function(e){O.push(e)};I.create=function(e,n){for(var i=0;i<O.length;i++){var d=O[i];if(d.probe(e)){var p=new d(new u.DecodeStream(e));return n?p.getFont(n):p}}throw new Error("Unknown font format")};I.defaultLanguage="en";I.setDefaultLanguage=function(e){void 0===e&&(e="en");I.defaultLanguage=e};function _defineProperties(e,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1;u.configurable=!0;"value"in u&&(u.writable=!0);Object.defineProperty(e,u.key,u)}}function _createClass(e,n,i){n&&_defineProperties(e.prototype,n);i&&_defineProperties(e,i);return e}function _inheritsLoose(e,n){e.prototype=Object.create(n.prototype);e.prototype.constructor=e;_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,n){e.__proto__=n;return e})(e,n)}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,u=new Array(n);i<n;i++)u[i]=e[i];return u}function _createForOfIteratorHelperLoose(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);return"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _applyDecoratedDescriptor(e,n,i,u,d){var p={};Object.keys(u).forEach((function(e){p[e]=u[e]}));p.enumerable=!!p.enumerable;p.configurable=!!p.configurable;("value"in p||p.initializer)&&(p.writable=!0);p=i.slice().reverse().reduce((function(i,u){return u(e,n,i)||i}),p);if(d&&void 0!==p.initializer){p.value=p.initializer?p.initializer.call(d):void 0;p.initializer=void 0}if(void 0===p.initializer){Object.defineProperty(e,n,p);p=null}return p}function cache(e,n,i){if(i.get){var u=i.get;i.get=function(){var e=u.call(this);d(this,n,{value:e});return e}}else if("function"==typeof i.value){var p=i.value;return{get:function get(){var e=new b;function memoized(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var d=i.length>0?i[0]:"value";if(e.has(d))return e.get(d);var _=p.apply(this,i);e.set(d,_);return _}d(this,n,{value:memoized});return memoized}}}}var D=new u.Struct({firstCode:u.uint16,entryCount:u.uint16,idDelta:u.int16,idRangeOffset:u.uint16}),R=new u.Struct({startCharCode:u.uint32,endCharCode:u.uint32,glyphID:u.uint32}),N=new u.Struct({startUnicodeValue:u.uint24,additionalCount:u.uint8}),U=new u.Struct({unicodeValue:u.uint24,glyphID:u.uint16}),G=new u.Array(N,u.uint32),W=new u.Array(U,u.uint32),X=new u.Struct({varSelector:u.uint24,defaultUVS:new u.Pointer(u.uint32,G,{type:"parent"}),nonDefaultUVS:new u.Pointer(u.uint32,W,{type:"parent"})}),K=new u.VersionedStruct(u.uint16,{0:{length:u.uint16,language:u.uint16,codeMap:new u.LazyArray(u.uint8,256)},2:{length:u.uint16,language:u.uint16,subHeaderKeys:new u.Array(u.uint16,256),subHeaderCount:function subHeaderCount(e){return Math.max.apply(Math,e.subHeaderKeys)},subHeaders:new u.LazyArray(D,"subHeaderCount"),glyphIndexArray:new u.LazyArray(u.uint16,"subHeaderCount")},4:{length:u.uint16,language:u.uint16,segCountX2:u.uint16,segCount:function segCount(e){return e.segCountX2>>1},searchRange:u.uint16,entrySelector:u.uint16,rangeShift:u.uint16,endCode:new u.LazyArray(u.uint16,"segCount"),reservedPad:new u.Reserved(u.uint16),startCode:new u.LazyArray(u.uint16,"segCount"),idDelta:new u.LazyArray(u.int16,"segCount"),idRangeOffset:new u.LazyArray(u.uint16,"segCount"),glyphIndexArray:new u.LazyArray(u.uint16,(function(e){return(e.length-e._currentOffset)/2}))},6:{length:u.uint16,language:u.uint16,firstCode:u.uint16,entryCount:u.uint16,glyphIndices:new u.LazyArray(u.uint16,"entryCount")},8:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint16,is32:new u.LazyArray(u.uint8,8192),nGroups:u.uint32,groups:new u.LazyArray(R,"nGroups")},10:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint32,firstCode:u.uint32,entryCount:u.uint32,glyphIndices:new u.LazyArray(u.uint16,"numChars")},12:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint32,nGroups:u.uint32,groups:new u.LazyArray(R,"nGroups")},13:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint32,nGroups:u.uint32,groups:new u.LazyArray(R,"nGroups")},14:{length:u.uint32,numRecords:u.uint32,varSelectors:new u.LazyArray(X,"numRecords")}}),Y=new u.Struct({platformID:u.uint16,encodingID:u.uint16,table:new u.Pointer(u.uint32,K,{type:"parent",lazy:!0})}),J=new u.Struct({version:u.uint16,numSubtables:u.uint16,tables:new u.Array(Y,"numSubtables")}),$=new u.Struct({version:u.int32,revision:u.int32,checkSumAdjustment:u.uint32,magicNumber:u.uint32,flags:u.uint16,unitsPerEm:u.uint16,created:new u.Array(u.int32,2),modified:new u.Array(u.int32,2),xMin:u.int16,yMin:u.int16,xMax:u.int16,yMax:u.int16,macStyle:new u.Bitfield(u.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:u.uint16,fontDirectionHint:u.int16,indexToLocFormat:u.int16,glyphDataFormat:u.int16}),ee=new u.Struct({version:u.int32,ascent:u.int16,descent:u.int16,lineGap:u.int16,advanceWidthMax:u.uint16,minLeftSideBearing:u.int16,minRightSideBearing:u.int16,xMaxExtent:u.int16,caretSlopeRise:u.int16,caretSlopeRun:u.int16,caretOffset:u.int16,reserved:new u.Reserved(u.int16,4),metricDataFormat:u.int16,numberOfMetrics:u.uint16}),te=new u.Struct({advance:u.uint16,bearing:u.int16}),re=new u.Struct({metrics:new u.LazyArray(te,(function(e){return e.parent.hhea.numberOfMetrics})),bearings:new u.LazyArray(u.int16,(function(e){return e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics}))}),ne=new u.Struct({version:u.int32,numGlyphs:u.uint16,maxPoints:u.uint16,maxContours:u.uint16,maxComponentPoints:u.uint16,maxComponentContours:u.uint16,maxZones:u.uint16,maxTwilightPoints:u.uint16,maxStorage:u.uint16,maxFunctionDefs:u.uint16,maxInstructionDefs:u.uint16,maxStackElements:u.uint16,maxSizeOfInstructions:u.uint16,maxComponentElements:u.uint16,maxComponentDepth:u.uint16});function getEncoding(e,n,i){void 0===i&&(i=0);return 1===e&&oe[i]?oe[i]:ie[e][n]}var ie=[["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"]],oe={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"},ae=[[],{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"}],se=new u.Struct({platformID:u.uint16,encodingID:u.uint16,languageID:u.uint16,nameID:u.uint16,length:u.uint16,string:new u.Pointer(u.uint16,new u.String("length",(function(e){return getEncoding(e.platformID,e.encodingID,e.languageID)})),{type:"parent",relativeTo:function relativeTo(e){return e.parent.stringOffset},allowNull:!1})}),le=new u.Struct({length:u.uint16,tag:new u.Pointer(u.uint16,new u.String("length","utf16be"),{type:"parent",relativeTo:function relativeTo(e){return e.stringOffset}})}),ue=new u.VersionedStruct(u.uint16,{0:{count:u.uint16,stringOffset:u.uint16,records:new u.Array(se,"count")},1:{count:u.uint16,stringOffset:u.uint16,records:new u.Array(se,"count"),langTagCount:u.uint16,langTags:new u.Array(le,"langTagCount")}}),ce=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];ue.process=function(e){for(var n,i={},u=_createForOfIteratorHelperLoose(this.records);!(n=u()).done;){var d=n.value,p=ae[d.platformID][d.languageID];null==p&&null!=this.langTags&&d.languageID>=32768&&(p=this.langTags[d.languageID-32768].tag);null==p&&(p=d.platformID+"-"+d.languageID);var _=d.nameID>=256?"fontFeatures":ce[d.nameID]||d.nameID;null==i[_]&&(i[_]={});var y=i[_];d.nameID>=256&&(y=y[d.nameID]||(y[d.nameID]={}));"string"!=typeof d.string&&"string"==typeof y[p]||(y[p]=d.string)}this.records=i};ue.preEncode=function(){if(!w(this.records)){this.version=0;var e=[];for(var n in this.records){var u=this.records[n];if("fontFeatures"!==n){e.push({platformID:3,encodingID:1,languageID:1033,nameID:ce.indexOf(n),length:i.byteLength(u.en,"utf16le"),string:u.en});"postscriptName"===n&&e.push({platformID:1,encodingID:0,languageID:0,nameID:ce.indexOf(n),length:u.en.length,string:u.en})}}this.records=e;this.count=e.length;this.stringOffset=ue.size(this,null,!1)}};var fe=new u.VersionedStruct(u.uint16,{header:{xAvgCharWidth:u.int16,usWeightClass:u.uint16,usWidthClass:u.uint16,fsType:new u.Bitfield(u.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:u.int16,ySubscriptYSize:u.int16,ySubscriptXOffset:u.int16,ySubscriptYOffset:u.int16,ySuperscriptXSize:u.int16,ySuperscriptYSize:u.int16,ySuperscriptXOffset:u.int16,ySuperscriptYOffset:u.int16,yStrikeoutSize:u.int16,yStrikeoutPosition:u.int16,sFamilyClass:u.int16,panose:new u.Array(u.uint8,10),ulCharRange:new u.Array(u.uint32,4),vendorID:new u.String(4),fsSelection:new u.Bitfield(u.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:u.uint16,usLastCharIndex:u.uint16},0:{},1:{typoAscender:u.int16,typoDescender:u.int16,typoLineGap:u.int16,winAscent:u.uint16,winDescent:u.uint16,codePageRange:new u.Array(u.uint32,2)},2:{typoAscender:u.int16,typoDescender:u.int16,typoLineGap:u.int16,winAscent:u.uint16,winDescent:u.uint16,codePageRange:new u.Array(u.uint32,2),xHeight:u.int16,capHeight:u.int16,defaultChar:u.uint16,breakChar:u.uint16,maxContent:u.uint16},5:{typoAscender:u.int16,typoDescender:u.int16,typoLineGap:u.int16,winAscent:u.uint16,winDescent:u.uint16,codePageRange:new u.Array(u.uint32,2),xHeight:u.int16,capHeight:u.int16,defaultChar:u.uint16,breakChar:u.uint16,maxContent:u.uint16,usLowerOpticalPointSize:u.uint16,usUpperOpticalPointSize:u.uint16}}),he=fe.versions;he[3]=he[4]=he[2];var de=new u.VersionedStruct(u.fixed32,{header:{italicAngle:u.fixed32,underlinePosition:u.int16,underlineThickness:u.int16,isFixedPitch:u.uint32,minMemType42:u.uint32,maxMemType42:u.uint32,minMemType1:u.uint32,maxMemType1:u.uint32},1:{},2:{numberOfGlyphs:u.uint16,glyphNameIndex:new u.Array(u.uint16,"numberOfGlyphs"),names:new u.Array(new u.String(u.uint8))},2.5:{numberOfGlyphs:u.uint16,offsets:new u.Array(u.uint8,"numberOfGlyphs")},3:{},4:{map:new u.Array(u.uint32,(function(e){return e.parent.maxp.numGlyphs}))}}),pe=new u.Struct({controlValues:new u.Array(u.int16)}),ge=new u.Struct({instructions:new u.Array(u.uint8)}),_e=new u.VersionedStruct("head.indexToLocFormat",{0:{offsets:new u.Array(u.uint16)},1:{offsets:new u.Array(u.uint32)}});_e.process=function(){if(0===this.version)for(var e=0;e<this.offsets.length;e++)this.offsets[e]<<=1};_e.preEncode=function(){if(0===this.version)for(var e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1};var me=new u.Struct({controlValueProgram:new u.Array(u.uint8)}),ve=new u.Array(new u.Buffer),ye={};ye.cmap=J;ye.head=$;ye.hhea=ee;ye.hmtx=re;ye.maxp=ne;ye.name=ue;ye["OS/2"]=fe;ye.post=de;ye.fpgm=ge;ye.loca=_e;ye.prep=me;ye["cvt "]=pe;ye.glyf=ve;var be,we=new u.Struct({tag:new u.String(4),checkSum:u.uint32,offset:new u.Pointer(u.uint32,"void",{type:"global"}),length:u.uint32}),Se=new u.Struct({tag:new u.String(4),numTables:u.uint16,searchRange:u.uint16,entrySelector:u.uint16,rangeShift:u.uint16,tables:new u.Array(we,"numTables")});Se.process=function(){for(var e,n={},i=_createForOfIteratorHelperLoose(this.tables);!(e=i()).done;){var u=e.value;n[u.tag]=u}this.tables=n};Se.preEncode=function(e){var n=[];for(var i in this.tables){var d=this.tables[i];d&&n.push({tag:i,checkSum:0,offset:new u.VoidPointer(ye[i],d),length:ye[i].size(d)})}this.tag="true";this.numTables=n.length;this.tables=n;var p=Math.floor(Math.log(this.numTables)/Math.LN2),_=Math.pow(2,p);this.searchRange=16*_;this.entrySelector=Math.log(_)/Math.LN2;this.rangeShift=16*this.numTables-this.searchRange};function binarySearch(e,n){for(var i=0,u=e.length-1;i<=u;){var d=i+u>>1,p=n(e[d]);if(p<0)u=d-1;else{if(!(p>0))return d;i=d+1}}return-1}function range(e,n){for(var i=[];e<n;)i.push(e++);return i}try{var xe=e("iconv-lite")}catch(e){}var Ce=(_applyDecoratedDescriptor((be=function(){function CmapProcessor(e){this.encoding=null;this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]);if(!this.cmap&&xe)for(var n,i=_createForOfIteratorHelperLoose(e.tables);!(n=i()).done;){var u=n.value,d=getEncoding(u.platformID,u.encodingID,u.table.language-1);if(xe.encodingExists(d)){this.cmap=u.table;this.encoding=d}}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)}var e=CmapProcessor.prototype;e.findSubtable=function findSubtable(e,n){for(var i,u=_createForOfIteratorHelperLoose(n);!(i=u()).done;)for(var d,p=i.value,_=p[0],y=p[1],b=_createForOfIteratorHelperLoose(e.tables);!(d=b()).done;){var w=d.value;if(w.platformID===_&&w.encodingID===y)return w.table}return null};e.lookup=function lookup(e,n){if(this.encoding){var i=xe.encode(x(e),this.encoding);e=0;for(var u=0;u<i.length;u++)e=e<<8|i[u]}else if(n){var d=this.getVariationSelector(e,n);if(d)return d}var p=this.cmap;switch(p.version){case 0:return p.codeMap.get(e)||0;case 4:for(var _=0,y=p.segCount-1;_<=y;){var b=_+y>>1;if(e<p.startCode.get(b))y=b-1;else{if(!(e>p.endCode.get(b))){var w=p.idRangeOffset.get(b),P=void 0;if(0===w)P=e+p.idDelta.get(b);else{var E=w/2+(e-p.startCode.get(b))-(p.segCount-b);0!==(P=p.glyphIndexArray.get(E)||0)&&(P+=p.idDelta.get(b))}return 65535&P}_=b+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return p.glyphIndices.get(e-p.firstCode)||0;case 12:case 13:for(var k=0,B=p.nGroups-1;k<=B;){var j=k+B>>1,I=p.groups.get(j);if(e<I.startCharCode)B=j-1;else{if(!(e>I.endCharCode))return 12===p.version?I.glyphID+(e-I.startCharCode):I.glyphID;k=j+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+p.version)}};e.getVariationSelector=function getVariationSelector(e,n){if(!this.uvs)return 0;var i=this.uvs.varSelectors.toArray(),u=binarySearch(i,(function(e){return n-e.varSelector})),d=i[u];-1!==u&&d.defaultUVS&&(u=binarySearch(d.defaultUVS,(function(n){return e<n.startUnicodeValue?-1:e>n.startUnicodeValue+n.additionalCount?1:0})));return-1!==u&&d.nonDefaultUVS&&-1!==(u=binarySearch(d.nonDefaultUVS,(function(n){return e-n.unicodeValue})))?d.nonDefaultUVS[u].glyphID:0};e.getCharacterSet=function getCharacterSet(){var e=this.cmap;switch(e.version){case 0:return range(0,e.codeMap.length);case 4:for(var n=[],i=e.endCode.toArray(),u=0;u<i.length;u++){var d=i[u]+1,p=e.startCode.get(u);n.push.apply(n,range(p,d))}return n;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return range(e.firstCode,e.firstCode+e.glyphIndices.length);case 12:case 13:for(var _,y=[],b=_createForOfIteratorHelperLoose(e.groups.toArray());!(_=b()).done;){var w=_.value;y.push.apply(y,range(w.startCharCode,w.endCharCode+1))}return y;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+e.version)}};e.codePointsForGlyph=function codePointsForGlyph(e){var n=this.cmap;switch(n.version){case 0:for(var i=[],u=0;u<256;u++)n.codeMap.get(u)===e&&i.push(u);return i;case 4:for(var d=[],p=0;p<n.segCount;p++)for(var _=n.endCode.get(p),y=n.startCode.get(p),b=n.idRangeOffset.get(p),w=n.idDelta.get(p),x=y;x<=_;x++){var P=0;if(0===b)P=x+w;else{var E=b/2+(x-y)-(n.segCount-p);0!==(P=n.glyphIndexArray.get(E)||0)&&(P+=w)}P===e&&d.push(x)}return d;case 12:for(var k,B=[],j=_createForOfIteratorHelperLoose(n.groups.toArray());!(k=j()).done;){var I=k.value;e>=I.glyphID&&e<=I.glyphID+(I.endCharCode-I.startCharCode)&&B.push(I.startCharCode+(e-I.glyphID))}return B;case 13:for(var O,D=[],R=_createForOfIteratorHelperLoose(n.groups.toArray());!(O=R()).done;){var N=O.value;e===N.glyphID&&D.push.apply(D,range(N.startCharCode,N.endCharCode+1))}return D;default:throw new Error("Unknown cmap format "+n.version)}};return CmapProcessor}()).prototype,"getCharacterSet",[cache],y(be.prototype,"getCharacterSet"),be.prototype),_applyDecoratedDescriptor(be.prototype,"codePointsForGlyph",[cache],y(be.prototype,"codePointsForGlyph"),be.prototype),be),Pe=function(){function UnicodeLayoutEngine(e){this.font=e}var e=UnicodeLayoutEngine.prototype;e.positionGlyphs=function positionGlyphs(e,n){for(var i=0,u=0,d=0;d<e.length;d++){if(e[d].isMark)u=d;else{i!==u&&this.positionCluster(e,n,i,u);i=u=d}}i!==u&&this.positionCluster(e,n,i,u);return n};e.positionCluster=function positionCluster(e,n,i,u){var d=e[i],p=d.cbox.copy();d.codePoints.length>1&&(p.minX+=(d.codePoints.length-1)*p.width/d.codePoints.length);for(var _=-n[i].xAdvance,y=0,b=this.font.unitsPerEm/16,w=i+1;w<=u;w++){var x=e[w],P=x.cbox,E=n[w],k=this.getCombiningClass(x.codePoints[0]);if("Not_Reordered"!==k){E.xOffset=E.yOffset=0;switch(k){case"Double_Above":case"Double_Below":E.xOffset+=p.minX-P.width/2-P.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":E.xOffset+=p.minX-P.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":E.xOffset+=p.maxX-P.width-P.minX;break;default:E.xOffset+=p.minX+(p.width-P.width)/2-P.minX}switch(k){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==k&&"Attached_Below"!==k||(p.minY+=b);E.yOffset=-p.minY-P.maxY;p.minY+=P.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==k&&"Attached_Above_Right"!==k||(p.maxY+=b);E.yOffset=p.maxY-P.minY;p.maxY+=P.height}E.xAdvance=E.yAdvance=0;E.xOffset+=_;E.yOffset+=y}else{_-=E.xAdvance;y-=E.yAdvance}}};e.getCombiningClass=function getCombiningClass(e){var n=k.getCombiningClass(e);if(3584==(-256&e))if("Not_Reordered"===n)switch(e){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===e)return"Below_Right";switch(n){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 n};return UnicodeLayoutEngine}(),Ee=function(){function BBox(e,n,i,u){void 0===e&&(e=1/0);void 0===n&&(n=1/0);void 0===i&&(i=-1/0);void 0===u&&(u=-1/0);this.minX=e;this.minY=n;this.maxX=i;this.maxY=u}var e=BBox.prototype;e.addPoint=function addPoint(e,n){if(Math.abs(e)!==1/0){e<this.minX&&(this.minX=e);e>this.maxX&&(this.maxX=e)}if(Math.abs(n)!==1/0){n<this.minY&&(this.minY=n);n>this.maxY&&(this.maxY=n)}};e.copy=function copy(){return new BBox(this.minX,this.minY,this.maxX,this.maxY)};_createClass(BBox,[{key:"width",get:function get(){return this.maxX-this.minX}},{key:"height",get:function get(){return this.maxY-this.minY}}]);return BBox}(),ke={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"};for(var Te in ke){var Ae=ke[Te];if(w(Ae))for(var Be,je=_createForOfIteratorHelperLoose(Ae);!(Be=je()).done;)Be.value}var Le={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};for(var Ie=function(){function GlyphRun(e,n,i,u,d){this.glyphs=e;this.positions=null;this.script=i;this.language=u||null;this.direction=d||function direction(e){return Le[e]?"rtl":"ltr"}(i);this.features={};if(w(n))for(var p,_=_createForOfIteratorHelperLoose(n);!(p=_()).done;){var y=p.value;this.features[y]=!0}else"object"==typeof n&&(this.features=n)}_createClass(GlyphRun,[{key:"advanceWidth",get:function get(){for(var e,n=0,i=_createForOfIteratorHelperLoose(this.positions);!(e=i()).done;){n+=e.value.xAdvance}return n}},{key:"advanceHeight",get:function get(){for(var e,n=0,i=_createForOfIteratorHelperLoose(this.positions);!(e=i()).done;){n+=e.value.yAdvance}return n}},{key:"bbox",get:function get(){for(var e=new Ee,n=0,i=0,u=0;u<this.glyphs.length;u++){var d=this.glyphs[u],p=this.positions[u],_=d.bbox;e.addPoint(_.minX+n+p.xOffset,_.minY+i+p.yOffset);e.addPoint(_.maxX+n+p.xOffset,_.maxY+i+p.yOffset);n+=p.xAdvance;i+=p.yAdvance}return e}}]);return GlyphRun}(),Oe=function GlyphPosition(e,n,i,u){void 0===e&&(e=0);void 0===n&&(n=0);void 0===i&&(i=0);void 0===u&&(u=0);this.xAdvance=e;this.yAdvance=n;this.xOffset=i;this.yOffset=u},Fe=function(){function LayoutEngine(e){this.font=e;this.unicodeLayoutEngine=null;this.kernProcessor=null}var e=LayoutEngine.prototype;e.layout=function layout(e,n,i,u,d){if("string"==typeof n){d=u;u=i;i=n;n=[]}if("string"==typeof e){null==i&&(i=function forString(e){for(var n=e.length,i=0;i<n;){var u=e.charCodeAt(i++);if(55296<=u&&u<=56319&&i<n){var d=e.charCodeAt(i);if(56320<=d&&d<=57343){i++;u=((1023&u)<<10)+(1023&d)+65536}}var p=k.getScript(u);if("Common"!==p&&"Inherited"!==p&&"Unknown"!==p)return ke[p]}return ke.Unknown}(e));var p=this.font.glyphsForString(e)}else{if(null==i){for(var _,y=[],b=_createForOfIteratorHelperLoose(e);!(_=b()).done;){var w=_.value;y.push.apply(y,w.codePoints)}i=function forCodePoints(e){for(var n=0;n<e.length;n++){var i=e[n],u=k.getScript(i);if("Common"!==u&&"Inherited"!==u&&"Unknown"!==u)return ke[u]}return ke.Unknown}(y)}p=e}var x=new Ie(p,n,i,u,d);if(0===p.length){x.positions=[];return x}this.engine&&this.engine.setup&&this.engine.setup(x);this.substitute(x);this.position(x);this.hideDefaultIgnorables(x.glyphs,x.positions);this.engine&&this.engine.cleanup&&this.engine.cleanup();return x};e.substitute=function substitute(e){this.engine&&this.engine.substitute&&this.engine.substitute(e)};e.position=function position(e){e.positions=e.glyphs.map((function(e){return new Oe(e.advanceWidth)}));var n=null;this.engine&&this.engine.position&&(n=this.engine.position(e));if(!n&&(!this.engine||this.engine.fallbackPosition)){this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new Pe(this.font));this.unicodeLayoutEngine.positionGlyphs(e.glyphs,e.positions)}};e.hideDefaultIgnorables=function hideDefaultIgnorables(e,n){for(var i=this.font.glyphForCodePoint(32),u=0;u<e.length;u++)if(this.isDefaultIgnorable(e[u].codePoints[0])){e[u]=i;n[u].xAdvance=0;n[u].yAdvance=0}};e.isDefaultIgnorable=function isDefaultIgnorable(e){var n=e>>16;if(0===n)switch(e>>8){case 0:return 173===e;case 3:return 847===e;case 6:return 1564===e;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||65279===e;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(n){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}};e.getAvailableFeatures=function getAvailableFeatures(e,n){var i=[];this.engine&&i.push.apply(i,this.engine.getAvailableFeatures(e,n));this.font.kern&&-1===i.indexOf("kern")&&i.push("kern");return i};e.stringsForGlyph=function stringsForGlyph(e){for(var n,i=new P,u=_createForOfIteratorHelperLoose(this.font._cmapProcessor.codePointsForGlyph(e));!(n=u()).done;){var d=n.value;i.add(x(d))}if(this.engine&&this.engine.stringsForGlyph)for(var p,_=_createForOfIteratorHelperLoose(this.engine.stringsForGlyph(e));!(p=_()).done;){var y=p.value;i.add(y)}return E(i)};return LayoutEngine}(),De={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Re=function(){function Path(){this.commands=[];this._bbox=null;this._cbox=null}var e=Path.prototype;e.toFunction=function toFunction(){var e=this;return function(n){e.commands.forEach((function(e){return n[e.command].apply(n,e.args)}))}};e.toSVG=function toSVG(){return this.commands.map((function(e){var n=e.args.map((function(e){return Math.round(100*e)/100}));return""+De[e.command]+n.join(" ")})).join("")};e.mapPoints=function mapPoints(e){for(var n,i=new Path,u=_createForOfIteratorHelperLoose(this.commands);!(n=u()).done;){for(var d=n.value,p=[],_=0;_<d.args.length;_+=2){var y=e(d.args[_],d.args[_+1]),b=y[0],w=y[1];p.push(b,w)}i[d.command].apply(i,p)}return i};e.transform=function transform(e,n,i,u,d,p){return this.mapPoints((function(_,y){return[_=e*_+i*y+d,y=n*_+u*y+p]}))};e.translate=function translate(e,n){return this.transform(1,0,0,1,e,n)};e.rotate=function rotate(e){var n=Math.cos(e),i=Math.sin(e);return this.transform(n,i,-i,n,0,0)};e.scale=function scale(e,n){void 0===n&&(n=e);return this.transform(e,0,0,n,0,0)};_createClass(Path,[{key:"cbox",get:function get(){if(!this._cbox){for(var e,n=new Ee,i=_createForOfIteratorHelperLoose(this.commands);!(e=i()).done;)for(var u=e.value,d=0;d<u.args.length;d+=2)n.addPoint(u.args[d],u.args[d+1]);this._cbox=_(n)}return this._cbox}},{key:"bbox",get:function get(){if(this._bbox)return this._bbox;for(var e,n=new Ee,i=0,u=0,d=function f(e){return Math.pow(1-e,3)*U[K]+3*Math.pow(1-e,2)*e*G[K]+3*(1-e)*Math.pow(e,2)*W[K]+Math.pow(e,3)*X[K]},p=_createForOfIteratorHelperLoose(this.commands);!(e=p()).done;){var y=e.value;switch(y.command){case"moveTo":case"lineTo":var b=y.args,w=b[0],x=b[1];n.addPoint(w,x);i=w;u=x;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===y.command)var P=y.args,E=P[0],k=P[1],B=i+2/3*(E-i),j=u+2/3*(k-u),I=(R=P[2])+2/3*(E-R),O=(N=P[3])+2/3*(k-N);else var D=y.args,R=(B=D[0],j=D[1],I=D[2],O=D[3],D[4]),N=D[5];n.addPoint(R,N);for(var U=[i,u],G=[B,j],W=[I,O],X=[R,N],K=0;K<=1;K++){var Y=6*U[K]-12*G[K]+6*W[K],J=-3*U[K]+9*G[K]-9*W[K]+3*X[K];y=3*G[K]-3*U[K];if(0!==J){var $=Math.pow(Y,2)-4*y*J;if(!($<0)){var ee=(-Y+Math.sqrt($))/(2*J);0<ee&&ee<1&&(0===K?n.addPoint(d(ee),n.maxY):1===K&&n.addPoint(n.maxX,d(ee)));var te=(-Y-Math.sqrt($))/(2*J);0<te&&te<1&&(0===K?n.addPoint(d(te),n.maxY):1===K&&n.addPoint(n.maxX,d(te)))}}else{if(0===Y)continue;var re=-y/Y;0<re&&re<1&&(0===K?n.addPoint(d(re),n.maxY):1===K&&n.addPoint(n.maxX,d(re)))}}i=R;u=N}}return this._bbox=_(n)}}]);return Path}(),Ne=function _loop(){var e=Me[ze];Re.prototype[e]=function(){this._bbox=this._cbox=null;for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];this.commands.push({command:e,args:i});return this}},ze=0,Me=["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"];ze<Me.length;ze++)Ne();var Ue,He,Ge=[".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"],qe=(_applyDecoratedDescriptor((Ue=function(){function Glyph(e,n,i){this.id=e;this.codePoints=n;this._font=i;this.isMark=this.codePoints.length>0&&this.codePoints.every(k.isMark);this.isLigature=this.codePoints.length>1}var e=Glyph.prototype;e._getPath=function _getPath(){return new Re};e._getCBox=function _getCBox(){return this.path.cbox};e._getBBox=function _getBBox(){return this.path.bbox};e._getTableMetrics=function _getTableMetrics(e){if(this.id<e.metrics.length)return e.metrics.get(this.id);var n=e.metrics.get(e.metrics.length-1);return{advance:n?n.advance:0,bearing:e.bearings.get(this.id-e.metrics.length)||0}};e._getMetrics=function _getMetrics(e){if(this._metrics)return this._metrics;var n=this._getTableMetrics(this._font.hmtx),i=n.advance,u=n.bearing;if(this._font.vmtx)var d=this._getTableMetrics(this._font.vmtx),p=d.advance,_=d.bearing;else{var y;null==e&&(e=this.cbox);if((y=this._font["OS/2"])&&y.version>0)p=Math.abs(y.typoAscender-y.typoDescender),_=y.typoAscender-e.maxY;else{var b=this._font.hhea;p=Math.abs(b.ascent-b.descent),_=b.ascent-e.maxY}}this._font._variationProcessor&&this._font.HVAR&&(i+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR));return this._metrics={advanceWidth:i,advanceHeight:p,leftBearing:u,topBearing:_}};e.getScaledPath=function getScaledPath(e){var n=1/this._font.unitsPerEm*e;return this.path.scale(n)};e._getName=function _getName(){var e=this._font.post;if(!e)return null;switch(e.version){case 1:return Ge[this.id];case 2:var n=e.glyphNameIndex[this.id];return n<Ge.length?Ge[n]:e.names[n-Ge.length];case 2.5:return Ge[this.id+e.offsets[this.id]];case 4:return String.fromCharCode(e.map[this.id])}};e.render=function render(e,n){e.save();var i=1/this._font.head.unitsPerEm*n;e.scale(i,i);this.path.toFunction()(e);e.fill();e.restore()};_createClass(Glyph,[{key:"cbox",get:function get(){return this._getCBox()}},{key:"bbox",get:function get(){return this._getBBox()}},{key:"path",get:function get(){return this._getPath()}},{key:"advanceWidth",get:function get(){return this._getMetrics().advanceWidth}},{key:"advanceHeight",get:function get(){return this._getMetrics().advanceHeight}},{key:"ligatureCaretPositions",get:function get(){}},{key:"name",get:function get(){return this._getName()}}]);return Glyph}()).prototype,"cbox",[cache],y(Ue.prototype,"cbox"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"bbox",[cache],y(Ue.prototype,"bbox"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"path",[cache],y(Ue.prototype,"path"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"advanceWidth",[cache],y(Ue.prototype,"advanceWidth"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"advanceHeight",[cache],y(Ue.prototype,"advanceHeight"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"name",[cache],y(Ue.prototype,"name"),Ue.prototype),Ue),We=new u.Struct({numberOfContours:u.int16,xMin:u.int16,yMin:u.int16,xMax:u.int16,yMax:u.int16}),Ve=function(){function Point(e,n,i,u){void 0===i&&(i=0);void 0===u&&(u=0);this.onCurve=e;this.endContour=n;this.x=i;this.y=u}Point.prototype.copy=function copy(){return new Point(this.onCurve,this.endContour,this.x,this.y)};return Point}(),Ze=function Component(e,n,i){this.glyphID=e;this.dx=n;this.dy=i;this.pos=0;this.scaleX=this.scaleY=1;this.scale01=this.scale10=0},Xe=function(e){_inheritsLoose(TTFGlyph,e);function TTFGlyph(n,i,u){return e.apply(this,arguments)||this}var n=TTFGlyph.prototype;n._getCBox=function _getCBox(e){if(this._font._variationProcessor&&!e)return this.path.cbox;var n=this._font._getTableStream("glyf");n.pos+=this._font.loca.offsets[this.id];var i=We.decode(n),u=new Ee(i.xMin,i.yMin,i.xMax,i.yMax);return _(u)};n._parseGlyphCoord=function _parseGlyphCoord(e,n,i,u){if(i){var d=e.readUInt8();u||(d=-d);d+=n}else if(u)d=n;else d=n+e.readInt16BE();return d};n._decode=function _decode(){var e=this._font.loca.offsets[this.id];if(e===this._font.loca.offsets[this.id+1])return null;var n=this._font._getTableStream("glyf");n.pos+=e;var i=n.pos,u=We.decode(n);u.numberOfContours>0?this._decodeSimple(u,n):u.numberOfContours<0&&this._decodeComposite(u,n,i);return u};n._decodeSimple=function _decodeSimple(e,n){e.points=[];var i=new u.Array(u.uint16,e.numberOfContours).decode(n);e.instructions=new u.Array(u.uint8,u.uint16).decode(n);for(var d=[],p=i[i.length-1]+1;d.length<p;){var _=n.readUInt8();d.push(_);if(8&_)for(var y=n.readUInt8(),b=0;b<y;b++)d.push(_)}for(var w=0;w<d.length;w++){_=d[w];var x=new Ve(!!(1&_),i.indexOf(w)>=0,0,0);e.points.push(x)}var P=0;for(w=0;w<d.length;w++){_=d[w];e.points[w].x=P=this._parseGlyphCoord(n,P,2&_,16&_)}var E=0;for(w=0;w<d.length;w++){_=d[w];e.points[w].y=E=this._parseGlyphCoord(n,E,4&_,32&_)}if(this._font._variationProcessor){var k=e.points.slice();k.push.apply(k,this._getPhantomPoints(e));this._font._variationProcessor.transformPoints(this.id,k);e.phantomPoints=k.slice(-4)}};n._decodeComposite=function _decodeComposite(e,n,i){void 0===i&&(i=0);e.components=[];for(var u=!1,d=32;32&d;){d=n.readUInt16BE();var p=n.pos-i,_=n.readUInt16BE();u||(u=0!=(256&d));if(1&d)var y=n.readInt16BE(),b=n.readInt16BE();else y=n.readInt8(),b=n.readInt8();(P=new Ze(_,y,b)).pos=p;if(8&d)P.scaleX=P.scaleY=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;else if(64&d){P.scaleX=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scaleY=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824}else if(128&d){P.scaleX=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scale01=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scale10=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scaleY=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824}e.components.push(P)}if(this._font._variationProcessor){for(var w=[],x=0;x<e.components.length;x++){var P=e.components[x];w.push(new Ve(!0,!0,P.dx,P.dy))}w.push.apply(w,this._getPhantomPoints(e));this._font._variationProcessor.transformPoints(this.id,w);e.phantomPoints=w.splice(-4,4);for(var E=0;E<w.length;E++){var k=w[E];e.components[E].dx=k.x;e.components[E].dy=k.y}}return u};n._getPhantomPoints=function _getPhantomPoints(e){var n=this._getCBox(!0);null==this._metrics&&(this._metrics=qe.prototype._getMetrics.call(this,n));var i=this._metrics,u=i.advanceWidth,d=i.advanceHeight,p=i.leftBearing,_=i.topBearing;return[new Ve(!1,!0,e.xMin-p,0),new Ve(!1,!0,e.xMin-p+u,0),new Ve(!1,!0,0,e.yMax+_),new Ve(!1,!0,0,e.yMax+_+d)]};n._getContours=function _getContours(){var e=this._decode();if(!e)return[];var n=[];if(e.numberOfContours<0)for(var i,u=_createForOfIteratorHelperLoose(e.components);!(i=u()).done;)for(var d=i.value,p=this._font.getGlyph(d.glyphID)._getContours(),_=0;_<p.length;_++)for(var y=p[_],b=0;b<y.length;b++){var w=y[b],x=w.x*d.scaleX+w.y*d.scale01+d.dx,P=w.y*d.scaleY+w.x*d.scale10+d.dy;n.push(new Ve(w.onCurve,w.endContour,x,P))}else n=e.points||[];if(e.phantomPoints&&!this._font.directory.tables.HVAR){this._metrics.advanceWidth=e.phantomPoints[1].x-e.phantomPoints[0].x;this._metrics.advanceHeight=e.phantomPoints[3].y-e.phantomPoints[2].y;this._metrics.leftBearing=e.xMin-e.phantomPoints[0].x;this._metrics.topBearing=e.phantomPoints[2].y-e.yMax}for(var E=[],k=[],B=0;B<n.length;B++){var j=n[B];k.push(j);if(j.endContour){E.push(k);k=[]}}return E};n._getMetrics=function _getMetrics(){if(this._metrics)return this._metrics;var n=this._getCBox(!0);e.prototype._getMetrics.call(this,n);this._font._variationProcessor&&!this._font.HVAR&&this.path;return this._metrics};n._getPath=function _getPath(){for(var e=this._getContours(),n=new Re,i=0;i<e.length;i++){var u=e[i],d=u[0],p=u[u.length-1],_=0;if(d.onCurve){var y=null;_=1}else y=d=p.onCurve?p:new Ve(!1,!1,(d.x+p.x)/2,(d.y+p.y)/2);n.moveTo(d.x,d.y);for(var b=_;b<u.length;b++){var w=u[b],x=0===b?d:u[b-1];if(x.onCurve&&w.onCurve)n.lineTo(w.x,w.y);else if(x.onCurve&&!w.onCurve)y=w;else if(x.onCurve||w.onCurve){if(x.onCurve||!w.onCurve)throw new Error("Unknown TTF path state");n.quadraticCurveTo(y.x,y.y,w.x,w.y);y=null}else{var P=(x.x+w.x)/2,E=(x.y+w.y)/2;n.quadraticCurveTo(x.x,x.y,P,E);var y=w}}y&&n.quadraticCurveTo(y.x,y.y,d.x,d.y);n.closePath()}return n};return TTFGlyph}(qe),Ke=j.resolve(),Ye=function(){function Subset(e){this.font=e;this.glyphs=[];this.mapping={};this.includeGlyph(0)}var e=Subset.prototype;e.includeGlyph=function includeGlyph(e){"object"==typeof e&&(e=e.id);if(null==this.mapping[e]){this.glyphs.push(e);this.mapping[e]=this.glyphs.length-1}return this.mapping[e]};e.encodeStream=function encodeStream(){var e=this,n=new u.EncodeStream;Ke.then((function(){e.encode(n);return n.end()}));return n};return Subset}(),Je=function(){function Point(){}Point.size=function size(e){return e>=0&&e<=255?1:2};Point.encode=function encode(e,n){n>=0&&n<=255?e.writeUInt8(n):e.writeInt16BE(n)};return Point}(),Qe=new u.Struct({numberOfContours:u.int16,xMin:u.int16,yMin:u.int16,xMax:u.int16,yMax:u.int16,endPtsOfContours:new u.Array(u.uint16,"numberOfContours"),instructions:new u.Array(u.uint8,u.uint16),flags:new u.Array(u.uint8,0),xPoints:new u.Array(Je,0),yPoints:new u.Array(Je,0)}),$e=function(){function TTFGlyphEncoder(){}var e=TTFGlyphEncoder.prototype;e.encodeSimple=function encodeSimple(e,n){void 0===n&&(n=[]);for(var i=[],d=[],p=[],_=[],y=0,b=0,w=0,x=0,P=0,E=0;E<e.commands.length;E++){for(var k=e.commands[E],B=0;B<k.args.length;B+=2){var j=k.args[B],I=k.args[B+1],O=0;if("quadraticCurveTo"===k.command&&2===B){var D=e.commands[E+1];if(D&&"quadraticCurveTo"===D.command){var R=(b+D.args[0])/2,N=(w+D.args[1])/2;if(j===R&&I===N)continue}}"quadraticCurveTo"===k.command&&0===B||(O|=1);O=this._encodePoint(j,b,d,O,2,16);if((O=this._encodePoint(I,w,p,O,4,32))===x&&y<255){_[_.length-1]|=8;y++}else{if(y>0){_.push(y);y=0}_.push(O);x=O}b=j;w=I;P++}"closePath"===k.command&&i.push(P-1)}e.commands.length>1&&"closePath"!==e.commands[e.commands.length-1].command&&i.push(P-1);var U=e.bbox,G={numberOfContours:i.length,xMin:U.minX,yMin:U.minY,xMax:U.maxX,yMax:U.maxY,endPtsOfContours:i,instructions:n,flags:_,xPoints:d,yPoints:p},W=Qe.size(G),X=4-W%4,K=new u.EncodeStream(W+X);Qe.encode(K,G);0!==X&&K.fill(0,X);return K.buffer};e._encodePoint=function _encodePoint(e,n,i,u,d,p){var _=e-n;if(e===n)u|=p;else{if(-255<=_&&_<=255){u|=d;_<0?_=-_:u|=p}i.push(_)}return u};return TTFGlyphEncoder}(),et=function(e){_inheritsLoose(TTFSubset,e);function TTFSubset(n){var i;(i=e.call(this,n)||this).glyphEncoder=new $e;return i}var n=TTFSubset.prototype;n._addGlyph=function _addGlyph(e){var n=this.font.getGlyph(e),u=n._decode(),d=this.font.loca.offsets[e],p=this.font.loca.offsets[e+1],_=this.font._getTableStream("glyf");_.pos+=d;var y=_.readBuffer(p-d);if(u&&u.numberOfContours<0){y=new i(y);for(var b,w=_createForOfIteratorHelperLoose(u.components);!(b=w()).done;){var x=b.value;e=this.includeGlyph(x.glyphID);y.writeUInt16BE(e,x.pos)}}else u&&this.font._variationProcessor&&(y=this.glyphEncoder.encodeSimple(n.path,u.instructions));this.glyf.push(y);this.loca.offsets.push(this.offset);this.hmtx.metrics.push({advance:n.advanceWidth,bearing:n._getMetrics().leftBearing});this.offset+=y.length;return this.glyf.length-1};n.encode=function encode(e){this.glyf=[];this.offset=0;this.loca={offsets:[],version:this.font.loca.version};this.hmtx={metrics:[],bearings:[]};for(var n=0;n<this.glyphs.length;)this._addGlyph(this.glyphs[n++]);var i=B(this.font.maxp);i.numGlyphs=this.glyf.length;this.loca.offsets.push(this.offset);var u=B(this.font.head);u.indexToLocFormat=this.loca.version;var d=B(this.font.hhea);d.numberOfMetrics=this.hmtx.metrics.length;Se.encode(e,{tables:{head:u,hhea:d,loca:this.loca,maxp:i,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})};return TTFSubset}(Ye),tt=(_applyDecoratedDescriptor((He=function(){TTFFont.probe=function probe(e){var n=e.toString("ascii",0,4);return"true"===n||"OTTO"===n||n===String.fromCharCode(0,1,0,0)};function TTFFont(e,n){void 0===n&&(n=null);this.defaultLanguage=null;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 u=this.directory.tables[i];ye[i]&&u.length>0&&d(this,i,{get:this._getTable.bind(this,u)})}}var e=TTFFont.prototype;e.setDefaultLanguage=function setDefaultLanguage(e){void 0===e&&(e=null);this.defaultLanguage=e};e._getTable=function _getTable(e){if(!(e.tag in this._tables))try{this._tables[e.tag]=this._decodeTable(e)}catch(n){if(I.logErrors){console.error("Error decoding table "+e.tag);console.error(n.stack)}}return this._tables[e.tag]};e._getTableStream=function _getTableStream(e){var n=this.directory.tables[e];if(n){this.stream.pos=n.offset;return this.stream}return null};e._decodeDirectory=function _decodeDirectory(){return this.directory=Se.decode(this.stream,{_startOffset:0})};e._decodeTable=function _decodeTable(e){var n=this.stream.pos,i=this._getTableStream(e.tag),u=ye[e.tag].decode(i,this,e.length);this.stream.pos=n;return u};e.getName=function getName(e,n){void 0===n&&(n=this.defaultLanguage||I.defaultLanguage);var i=this.name&&this.name.records[e];return i&&(i[n]||i[this.defaultLanguage]||i[I.defaultLanguage]||i.en||i[p(i)[0]])||null};e.hasGlyphForCodePoint=function hasGlyphForCodePoint(e){return!!this._cmapProcessor.lookup(e)};e.glyphForCodePoint=function glyphForCodePoint(e){return this.getGlyph(this._cmapProcessor.lookup(e),[e])};e.glyphsForString=function glyphsForString(e){for(var n=[],i=e.length,u=0,d=-1,p=-1;u<=i;){var _=0,y=0;if(u<i){if(55296<=(_=e.charCodeAt(u++))&&_<=56319&&u<i){var b=e.charCodeAt(u);if(56320<=b&&b<=57343){u++;_=((1023&_)<<10)+(1023&b)+65536}}y=65024<=_&&_<=65039||917760<=_&&_<=917999?1:0}else u++;0===p&&1===y?n.push(this.getGlyph(this._cmapProcessor.lookup(d,_),[d,_])):0===p&&0===y&&n.push(this.glyphForCodePoint(d));d=_;p=y}return n};e.layout=function layout(e,n,i,u,d){return this._layoutEngine.layout(e,n,i,u,d)};e.stringsForGlyph=function stringsForGlyph(e){return this._layoutEngine.stringsForGlyph(e)};e.getAvailableFeatures=function getAvailableFeatures(e,n){return this._layoutEngine.getAvailableFeatures(e,n)};e._getBaseGlyph=function _getBaseGlyph(e,n){void 0===n&&(n=[]);this._glyphs[e]||this.directory.tables.glyf&&(this._glyphs[e]=new Xe(e,n,this));return this._glyphs[e]||null};e.getGlyph=function getGlyph(e,n){void 0===n&&(n=[]);this._glyphs[e]||this._getBaseGlyph(e,n);return this._glyphs[e]||null};e.createSubset=function createSubset(){return new et(this)};e.getVariation=function getVariation(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.");"string"==typeof e&&(e=this.namedVariations[e]);if("object"!=typeof e)throw new Error("Variation settings must be either a variation name or settings object.");var n=this.fvar.axis.map((function(n,i){var u=n.axisTag.trim();return u in e?Math.max(n.minValue,Math.min(n.maxValue,e[u])):n.defaultValue})),i=new u.DecodeStream(this.stream.buffer);i.pos=this._directoryPos;var d=new TTFFont(i,n);d._tables=this._tables;return d};e.getFont=function getFont(e){return this.getVariation(e)};_createClass(TTFFont,[{key:"postscriptName",get:function get(){return this.getName("postscriptName")}},{key:"fullName",get:function get(){return this.getName("fullName")}},{key:"familyName",get:function get(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function get(){return this.getName("fontSubfamily")}},{key:"copyright",get:function get(){return this.getName("copyright")}},{key:"version",get:function get(){return this.getName("version")}},{key:"ascent",get:function get(){return this.hhea.ascent}},{key:"descent",get:function get(){return this.hhea.descent}},{key:"lineGap",get:function get(){return this.hhea.lineGap}},{key:"underlinePosition",get:function get(){return this.post.underlinePosition}},{key:"underlineThickness",get:function get(){return this.post.underlineThickness}},{key:"italicAngle",get:function get(){return this.post.italicAngle}},{key:"capHeight",get:function get(){var e=this["OS/2"];return e?e.capHeight:this.ascent}},{key:"xHeight",get:function get(){var e=this["OS/2"];return e?e.xHeight:0}},{key:"numGlyphs",get:function get(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function get(){return this.head.unitsPerEm}},{key:"bbox",get:function get(){return _(new Ee(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function get(){return new Ce(this.cmap)}},{key:"characterSet",get:function get(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function get(){return new Fe(this)}},{key:"availableFeatures",get:function get(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function get(){var e={};if(!this.fvar)return e;for(var n,i=_createForOfIteratorHelperLoose(this.fvar.axis);!(n=i()).done;){var u=n.value;e[u.axisTag.trim()]={name:u.name.en,min:u.minValue,default:u.defaultValue,max:u.maxValue}}return e}},{key:"namedVariations",get:function get(){var e={};if(!this.fvar)return e;for(var n,i=_createForOfIteratorHelperLoose(this.fvar.instance);!(n=i()).done;){for(var u=n.value,d={},p=0;p<this.fvar.axis.length;p++){d[this.fvar.axis[p].axisTag.trim()]=u.coord[p]}e[u.name.en]=d}return e}},{key:"_variationProcessor",get:function get(){return null}}]);return TTFFont}()).prototype,"bbox",[cache],y(He.prototype,"bbox"),He.prototype),_applyDecoratedDescriptor(He.prototype,"_cmapProcessor",[cache],y(He.prototype,"_cmapProcessor"),He.prototype),_applyDecoratedDescriptor(He.prototype,"characterSet",[cache],y(He.prototype,"characterSet"),He.prototype),_applyDecoratedDescriptor(He.prototype,"_layoutEngine",[cache],y(He.prototype,"_layoutEngine"),He.prototype),_applyDecoratedDescriptor(He.prototype,"variationAxes",[cache],y(He.prototype,"variationAxes"),He.prototype),_applyDecoratedDescriptor(He.prototype,"namedVariations",[cache],y(He.prototype,"namedVariations"),He.prototype),_applyDecoratedDescriptor(He.prototype,"_variationProcessor",[cache],y(He.prototype,"_variationProcessor"),He.prototype),He),rt=new u.VersionedStruct(u.uint32,{65536:{numFonts:u.uint32,offsets:new u.Array(u.uint32,"numFonts")},131072:{numFonts:u.uint32,offsets:new u.Array(u.uint32,"numFonts"),dsigTag:u.uint32,dsigLength:u.uint32,dsigOffset:u.uint32}}),nt=function(){TrueTypeCollection.probe=function probe(e){return"ttcf"===e.toString("ascii",0,4)};function TrueTypeCollection(e){this.stream=e;if("ttcf"!==e.readString(4))throw new Error("Not a TrueType collection");this.header=rt.decode(e)}TrueTypeCollection.prototype.getFont=function getFont(e){for(var n,i=_createForOfIteratorHelperLoose(this.header.offsets);!(n=i()).done;){var d=n.value,p=new u.DecodeStream(this.stream.buffer);p.pos=d;var _=new tt(p);if(_.postscriptName===e)return _}return null};_createClass(TrueTypeCollection,[{key:"fonts",get:function get(){for(var e,n=[],i=_createForOfIteratorHelperLoose(this.header.offsets);!(e=i()).done;){var d=e.value,p=new u.DecodeStream(this.stream.buffer);p.pos=d;n.push(new tt(p))}return n}}]);return TrueTypeCollection}(),it=new u.String(u.uint8),ot=(new u.Struct({len:u.uint32,buf:new u.Buffer("len")}),new u.Struct({id:u.uint16,nameOffset:u.int16,attr:u.uint8,dataOffset:u.uint24,handle:u.uint32})),at=new u.Struct({name:new u.String(4),maxTypeIndex:u.uint16,refList:new u.Pointer(u.uint16,new u.Array(ot,(function(e){return e.maxTypeIndex+1})),{type:"parent"})}),st=new u.Struct({length:u.uint16,types:new u.Array(at,(function(e){return e.length+1}))}),lt=new u.Struct({reserved:new u.Reserved(u.uint8,24),typeList:new u.Pointer(u.uint16,st),nameListOffset:new u.Pointer(u.uint16,"void")}),ut=new u.Struct({dataOffset:u.uint32,map:new u.Pointer(u.uint32,lt),dataLength:u.uint32,mapLength:u.uint32}),ct=function(){DFont.probe=function probe(e){var n=new u.DecodeStream(e);try{var i=ut.decode(n)}catch(e){return!1}for(var d,p=_createForOfIteratorHelperLoose(i.map.typeList.types);!(d=p()).done;){if("sfnt"===d.value.name)return!0}return!1};function DFont(e){this.stream=e;this.header=ut.decode(this.stream);for(var n,i=_createForOfIteratorHelperLoose(this.header.map.typeList.types);!(n=i()).done;){for(var u,d=n.value,p=_createForOfIteratorHelperLoose(d.refList);!(u=p()).done;){var _=u.value;if(_.nameOffset>=0){this.stream.pos=_.nameOffset+this.header.map.nameListOffset;_.name=it.decode(this.stream)}else _.name=null}"sfnt"===d.name&&(this.sfnt=d)}}DFont.prototype.getFont=function getFont(e){if(!this.sfnt)return null;for(var n,i=_createForOfIteratorHelperLoose(this.sfnt.refList);!(n=i()).done;){var d=n.value,p=this.header.dataOffset+d.dataOffset+4,_=new u.DecodeStream(this.stream.buffer.slice(p)),y=new tt(_);if(y.postscriptName===e)return y}return null};_createClass(DFont,[{key:"fonts",get:function get(){for(var e,n=[],i=_createForOfIteratorHelperLoose(this.sfnt.refList);!(e=i()).done;){var d=e.value,p=this.header.dataOffset+d.dataOffset+4,_=new u.DecodeStream(this.stream.buffer.slice(p));n.push(new tt(_))}return n}}]);return DFont}();I.registerFormat(tt);I.registerFormat(nt);I.registerFormat(ct);n.localExports=I}).call(this)}).call(this,e("buffer").Buffer)},{"@babel/runtime-corejs2/core-js/array/from":2,"@babel/runtime-corejs2/core-js/array/is-array":3,"@babel/runtime-corejs2/core-js/map":4,"@babel/runtime-corejs2/core-js/object/define-property":5,"@babel/runtime-corejs2/core-js/object/freeze":6,"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor":7,"@babel/runtime-corejs2/core-js/object/keys":8,"@babel/runtime-corejs2/core-js/promise":9,"@babel/runtime-corejs2/core-js/set":10,"@babel/runtime-corejs2/core-js/string/from-code-point":11,buffer:152,clone:123,"iconv-lite":151,restructure:250,"unicode-properties":125}],2:[function(e,n,i){n.localExports=e("core-js/library/fn/array/from")},{"core-js/library/fn/array/from":12}],3:[function(e,n,i){n.localExports=e("core-js/library/fn/array/is-array")},{"core-js/library/fn/array/is-array":13}],4:[function(e,n,i){n.localExports=e("core-js/library/fn/map")},{"core-js/library/fn/map":14}],5:[function(e,n,i){n.localExports=e("core-js/library/fn/object/define-property")},{"core-js/library/fn/object/define-property":15}],6:[function(e,n,i){n.localExports=e("core-js/library/fn/object/freeze")},{"core-js/library/fn/object/freeze":16}],7:[function(e,n,i){n.localExports=e("core-js/library/fn/object/get-own-property-descriptor")},{"core-js/library/fn/object/get-own-property-descriptor":17}],8:[function(e,n,i){n.localExports=e("core-js/library/fn/object/keys")},{"core-js/library/fn/object/keys":18}],9:[function(e,n,i){n.localExports=e("core-js/library/fn/promise")},{"core-js/library/fn/promise":19}],10:[function(e,n,i){n.localExports=e("core-js/library/fn/set")},{"core-js/library/fn/set":20}],11:[function(e,n,i){n.localExports=e("core-js/library/fn/string/from-code-point")},{"core-js/library/fn/string/from-code-point":21}],12:[function(e,n,i){e("../../modules/es6.string.iterator");e("../../modules/es6.array.from");n.localExports=e("../../modules/_core").Array.from},{"../../modules/_core":36,"../../modules/es6.array.from":100,"../../modules/es6.string.iterator":112}],13:[function(e,n,i){e("../../modules/es6.array.is-array");n.localExports=e("../../modules/_core").Array.isArray},{"../../modules/_core":36,"../../modules/es6.array.is-array":101}],14:[function(e,n,i){e("../modules/es6.object.to-string");e("../modules/es6.string.iterator");e("../modules/web.dom.iterable");e("../modules/es6.map");e("../modules/es7.map.to-json");e("../modules/es7.map.of");e("../modules/es7.map.from");n.localExports=e("../modules/_core").Map},{"../modules/_core":36,"../modules/es6.map":103,"../modules/es6.object.to-string":108,"../modules/es6.string.iterator":112,"../modules/es7.map.from":113,"../modules/es7.map.of":114,"../modules/es7.map.to-json":115,"../modules/web.dom.iterable":121}],15:[function(e,n,i){e("../../modules/es6.object.define-property");var u=e("../../modules/_core").Object;n.localExports=function defineProperty(e,n,i){return u.defineProperty(e,n,i)}},{"../../modules/_core":36,"../../modules/es6.object.define-property":104}],16:[function(e,n,i){e("../../modules/es6.object.freeze");n.localExports=e("../../modules/_core").Object.freeze},{"../../modules/_core":36,"../../modules/es6.object.freeze":105}],17:[function(e,n,i){e("../../modules/es6.object.get-own-property-descriptor");var u=e("../../modules/_core").Object;n.localExports=function getOwnPropertyDescriptor(e,n){return u.getOwnPropertyDescriptor(e,n)}},{"../../modules/_core":36,"../../modules/es6.object.get-own-property-descriptor":106}],18:[function(e,n,i){e("../../modules/es6.object.keys");n.localExports=e("../../modules/_core").Object.keys},{"../../modules/_core":36,"../../modules/es6.object.keys":107}],19:[function(e,n,i){e("../modules/es6.object.to-string");e("../modules/es6.string.iterator");e("../modules/web.dom.iterable");e("../modules/es6.promise");e("../modules/es7.promise.finally");e("../modules/es7.promise.try");n.localExports=e("../modules/_core").Promise},{"../modules/_core":36,"../modules/es6.object.to-string":108,"../modules/es6.promise":109,"../modules/es6.string.iterator":112,"../modules/es7.promise.finally":116,"../modules/es7.promise.try":117,"../modules/web.dom.iterable":121}],20:[function(e,n,i){e("../modules/es6.object.to-string");e("../modules/es6.string.iterator");e("../modules/web.dom.iterable");e("../modules/es6.set");e("../modules/es7.set.to-json");e("../modules/es7.set.of");e("../modules/es7.set.from");n.localExports=e("../modules/_core").Set},{"../modules/_core":36,"../modules/es6.object.to-string":108,"../modules/es6.set":110,"../modules/es6.string.iterator":112,"../modules/es7.set.from":118,"../modules/es7.set.of":119,"../modules/es7.set.to-json":120,"../modules/web.dom.iterable":121}],21:[function(e,n,i){e("../../modules/es6.string.from-code-point");n.localExports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":36,"../../modules/es6.string.from-code-point":111}],22:[function(e,n,i){n.localExports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],23:[function(e,n,i){n.localExports=function(){}},{}],24:[function(e,n,i){n.localExports=function(e,n,i,u){if(!(e instanceof n)||void 0!==u&&u in e)throw TypeError(i+": incorrect invocation!");return e}},{}],25:[function(e,n,i){var u=e("./_is-object");n.localExports=function(e){if(!u(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":55}],26:[function(e,n,i){var u=e("./_for-of");n.localExports=function(e,n){var i=[];u(e,!1,i.push,i,n);return i}},{"./_for-of":45}],27:[function(e,n,i){var u=e("./_to-iobject"),d=e("./_to-length"),p=e("./_to-absolute-index");n.localExports=function(e){return function(n,i,_){var y,b=u(n),w=d(b.length),x=p(_,w);if(e&&i!=i){for(;w>x;)if((y=b[x++])!=y)return!0}else for(;w>x;x++)if((e||x in b)&&b[x]===i)return e||x||0;return!e&&-1}}},{"./_to-absolute-index":89,"./_to-iobject":91,"./_to-length":92}],28:[function(e,n,i){var u=e("./_ctx"),d=e("./_iobject"),p=e("./_to-object"),_=e("./_to-length"),y=e("./_array-species-create");n.localExports=function(e,n){var i=1==e,b=2==e,w=3==e,x=4==e,P=6==e,E=5==e||P,k=n||y;return function(n,y,B){for(var j,I,O=p(n),D=d(O),R=u(y,B,3),N=_(D.length),U=0,G=i?k(n,N):b?k(n,0):void 0;N>U;U++)if(E||U in D){I=R(j=D[U],U,O);if(e)if(i)G[U]=I;else if(I)switch(e){case 3:return!0;case 5:return j;case 6:return U;case 2:G.push(j)}else if(x)return!1}return P?-1:w||x?x:G}}},{"./_array-species-create":30,"./_ctx":38,"./_iobject":52,"./_to-length":92,"./_to-object":93}],29:[function(e,n,i){var u=e("./_is-object"),d=e("./_is-array"),p=e("./_wks")("species");n.localExports=function(e){var n;if(d(e)){"function"!=typeof(n=e.constructor)||n!==Array&&!d(n.prototype)||(n=void 0);u(n)&&null===(n=n[p])&&(n=void 0)}return void 0===n?Array:n}},{"./_is-array":54,"./_is-object":55,"./_wks":98}],30:[function(e,n,i){var u=e("./_array-species-constructor");n.localExports=function(e,n){return new(u(e))(n)}},{"./_array-species-constructor":29}],31:[function(e,n,i){var u=e("./_cof"),d=e("./_wks")("toStringTag"),p="Arguments"==u(function(){return arguments}());n.localExports=function(e){var n,i,_;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function tryGet(e,n){try{return e[n]}catch(e){}}(n=Object(e),d))?i:p?u(n):"Object"==(_=u(n))&&"function"==typeof n.callee?"Arguments":_}},{"./_cof":32,"./_wks":98}],32:[function(e,n,i){var u={}.toString;n.localExports=function(e){return u.call(e).slice(8,-1)}},{}],33:[function(e,n,i){var u=e("./_object-dp").f,d=e("./_object-create"),p=e("./_redefine-all"),_=e("./_ctx"),y=e("./_an-instance"),b=e("./_for-of"),w=e("./_iter-define"),x=e("./_iter-step"),P=e("./_set-species"),E=e("./_descriptors"),k=e("./_meta").fastKey,B=e("./_validate-collection"),j=E?"_s":"size",I=function getEntry(e,n){var i,u=k(n);if("F"!==u)return e._i[u];for(i=e._f;i;i=i.n)if(i.k==n)return i};n.localExports={getConstructor:function getConstructor(e,n,i,w){var x=e((function(e,u){y(e,x,n,"_i");e._t=n;e._i=d(null);e._f=void 0;e._l=void 0;e[j]=0;null!=u&&b(u,i,e[w],e)}));p(x.prototype,{clear:function clear(){for(var e=B(this,n),i=e._i,u=e._f;u;u=u.n){u.r=!0;u.p&&(u.p=u.p.n=void 0);delete i[u.i]}e._f=e._l=void 0;e[j]=0},delete:function _delete(e){var i=B(this,n),u=I(i,e);if(u){var d=u.n,p=u.p;delete i._i[u.i];u.r=!0;p&&(p.n=d);d&&(d.p=p);i._f==u&&(i._f=d);i._l==u&&(i._l=p);i[j]--}return!!u},forEach:function forEach(e){B(this,n);for(var i,u=_(e,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;){u(i.v,i.k,this);for(;i&&i.r;)i=i.p}},has:function has(e){return!!I(B(this,n),e)}});E&&u(x.prototype,"size",{get:function get(){return B(this,n)[j]}});return x},def:function def(e,n,i){var u,d,p=I(e,n);if(p)p.v=i;else{e._l=p={i:d=k(n,!0),k:n,v:i,p:u=e._l,n:void 0,r:!1};e._f||(e._f=p);u&&(u.n=p);e[j]++;"F"!==d&&(e._i[d]=p)}return e},getEntry:I,setStrong:function setStrong(e,n,i){w(e,n,(function(e,i){this._t=B(e,n);this._k=i;this._l=void 0}),(function(){for(var e=this._k,n=this._l;n&&n.r;)n=n.p;if(!this._t||!(this._l=n=n?n.n:this._t._f)){this._t=void 0;return x(1)}return x(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v])}),i?"entries":"values",!i,!0);P(n)}}},{"./_an-instance":24,"./_ctx":38,"./_descriptors":40,"./_for-of":45,"./_iter-define":58,"./_iter-step":60,"./_meta":63,"./_object-create":66,"./_object-dp":67,"./_redefine-all":78,"./_set-species":82,"./_validate-collection":97}],34:[function(e,n,i){var u=e("./_classof"),d=e("./_array-from-iterable");n.localExports=function(e){return function toJSON(){if(u(this)!=e)throw TypeError(e+"#toJSON isn't generic");return d(this)}}},{"./_array-from-iterable":26,"./_classof":31}],35:[function(e,n,i){var u=e("./_global"),d=e("./_export"),p=e("./_meta"),_=e("./_fails"),y=e("./_hide"),b=e("./_redefine-all"),w=e("./_for-of"),x=e("./_an-instance"),P=e("./_is-object"),E=e("./_set-to-string-tag"),k=e("./_object-dp").f,B=e("./_array-methods")(0),j=e("./_descriptors");n.localExports=function(e,n,i,I,O,D){var R=u[e],N=R,U=O?"set":"add",G=N&&N.prototype,W={};if(j&&"function"==typeof N&&(D||G.forEach&&!_((function(){(new N).entries().next()})))){N=n((function(n,i){x(n,N,e,"_c");n._c=new R;null!=i&&w(i,O,n[U],n)}));B("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var n="add"==e||"set"==e;!(e in G)||D&&"clear"==e||y(N.prototype,e,(function(i,u){x(this,N,e);if(!n&&D&&!P(i))return"get"==e&&void 0;var d=this._c[e](0===i?0:i,u);return n?this:d}))}));D||k(N.prototype,"size",{get:function get(){return this._c.size}})}else{N=I.getConstructor(n,e,O,U);b(N.prototype,i);p.NEED=!0}E(N,e);W[e]=N;d(d.G+d.W+d.F,W);D||I.setStrong(N,e,O);return N}},{"./_an-instance":24,"./_array-methods":28,"./_descriptors":40,"./_export":43,"./_fails":44,"./_for-of":45,"./_global":46,"./_hide":48,"./_is-object":55,"./_meta":63,"./_object-dp":67,"./_redefine-all":78,"./_set-to-string-tag":83}],36:[function(e,n,i){var u=n.localExports={version:"2.6.12"};"number"==typeof __e&&(__e=u)},{}],37:[function(e,n,i){var u=e("./_object-dp"),d=e("./_property-desc");n.localExports=function(e,n,i){n in e?u.f(e,n,d(0,i)):e[n]=i}},{"./_object-dp":67,"./_property-desc":77}],38:[function(e,n,i){var u=e("./_a-function");n.localExports=function(e,n,i){u(e);if(void 0===n)return e;switch(i){case 1:return function(i){return e.call(n,i)};case 2:return function(i,u){return e.call(n,i,u)};case 3:return function(i,u,d){return e.call(n,i,u,d)}}return function(){return e.apply(n,arguments)}}},{"./_a-function":22}],39:[function(e,n,i){n.localExports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],40:[function(e,n,i){n.localExports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function get(){return 7}}).a}))},{"./_fails":44}],41:[function(e,n,i){var u=e("./_is-object"),d=e("./_global").document,p=u(d)&&u(d.createElement);n.localExports=function(e){return p?d.createElement(e):{}}},{"./_global":46,"./_is-object":55}],42:[function(e,n,i){n.localExports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],43:[function(e,n,i){var u=e("./_global"),d=e("./_core"),p=e("./_ctx"),_=e("./_hide"),y=e("./_has"),b=function $export(e,n,i){var b,w,x,P=e&$export.F,E=e&$export.G,k=e&$export.S,B=e&$export.P,j=e&$export.B,I=e&$export.W,O=E?d:d[n]||(d[n]={}),D=O.prototype,R=E?u:k?u[n]:(u[n]||{}).prototype;E&&(i=n);for(b in i)if(!(w=!P&&R&&void 0!==R[b])||!y(O,b)){x=w?R[b]:i[b];O[b]=E&&"function"!=typeof R[b]?i[b]:j&&w?p(x,u):I&&R[b]==x?function(e){var n=function F(n,i,u){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,u)}return e.apply(this,arguments)};n.prototype=e.prototype;return n}(x):B&&"function"==typeof x?p(Function.call,x):x;if(B){(O.virtual||(O.virtual={}))[b]=x;e&$export.R&&D&&!D[b]&&_(D,b,x)}}};b.F=1;b.G=2;b.S=4;b.P=8;b.B=16;b.W=32;b.U=64;b.R=128;n.localExports=b},{"./_core":36,"./_ctx":38,"./_global":46,"./_has":47,"./_hide":48}],44:[function(e,n,i){n.localExports=function(e){try{return!!e()}catch(e){return!0}}},{}],45:[function(e,n,i){var u=e("./_ctx"),d=e("./_iter-call"),p=e("./_is-array-iter"),_=e("./_an-object"),y=e("./_to-length"),b=e("./core.get-iterator-method"),w={},x={};(i=n.localExports=function(e,n,i,P,E){var k,B,j,I,O=E?function(){return e}:b(e),D=u(i,P,n?2:1),R=0;if("function"!=typeof O)throw TypeError(e+" is not iterable!");if(p(O)){for(k=y(e.length);k>R;R++)if((I=n?D(_(B=e[R])[0],B[1]):D(e[R]))===w||I===x)return I}else for(j=O.call(e);!(B=j.next()).done;)if((I=d(j,D,B.value,n))===w||I===x)return I}).BREAK=w;i.RETURN=x},{"./_an-object":25,"./_ctx":38,"./_is-array-iter":53,"./_iter-call":56,"./_to-length":92,"./core.get-iterator-method":99}],46:[function(e,n,i){var u=n.localExports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=u)},{}],47:[function(e,n,i){var u={}.hasOwnProperty;n.localExports=function(e,n){return u.call(e,n)}},{}],48:[function(e,n,i){var u=e("./_object-dp"),d=e("./_property-desc");n.localExports=e("./_descriptors")?function(e,n,i){return u.f(e,n,d(1,i))}:function(e,n,i){e[n]=i;return e}},{"./_descriptors":40,"./_object-dp":67,"./_property-desc":77}],49:[function(e,n,i){var u=e("./_global").document;n.localExports=u&&u.documentElement},{"./_global":46}],50:[function(e,n,i){n.localExports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function get(){return 7}}).a}))},{"./_descriptors":40,"./_dom-create":41,"./_fails":44}],51:[function(e,n,i){n.localExports=function(e,n,i){var u=void 0===i;switch(n.length){case 0:return u?e():e.call(i);case 1:return u?e(n[0]):e.call(i,n[0]);case 2:return u?e(n[0],n[1]):e.call(i,n[0],n[1]);case 3:return u?e(n[0],n[1],n[2]):e.call(i,n[0],n[1],n[2]);case 4:return u?e(n[0],n[1],n[2],n[3]):e.call(i,n[0],n[1],n[2],n[3])}return e.apply(i,n)}},{}],52:[function(e,n,i){var u=e("./_cof");n.localExports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==u(e)?e.split(""):Object(e)}},{"./_cof":32}],53:[function(e,n,i){var u=e("./_iterators"),d=e("./_wks")("iterator"),p=Array.prototype;n.localExports=function(e){return void 0!==e&&(u.Array===e||p[d]===e)}},{"./_iterators":61,"./_wks":98}],54:[function(e,n,i){var u=e("./_cof");n.localExports=Array.isArray||function isArray(e){return"Array"==u(e)}},{"./_cof":32}],55:[function(e,n,i){n.localExports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],56:[function(e,n,i){var u=e("./_an-object");n.localExports=function(e,n,i,d){try{return d?n(u(i)[0],i[1]):n(i)}catch(n){var p=e.return;void 0!==p&&u(p.call(e));throw n}}},{"./_an-object":25}],57:[function(e,n,i){var u=e("./_object-create"),d=e("./_property-desc"),p=e("./_set-to-string-tag"),_={};e("./_hide")(_,e("./_wks")("iterator"),(function(){return this}));n.localExports=function(e,n,i){e.prototype=u(_,{next:d(1,i)});p(e,n+" Iterator")}},{"./_hide":48,"./_object-create":66,"./_property-desc":77,"./_set-to-string-tag":83,"./_wks":98}],58:[function(e,n,i){var u=e("./_library"),d=e("./_export"),p=e("./_redefine"),_=e("./_hide"),y=e("./_iterators"),b=e("./_iter-create"),w=e("./_set-to-string-tag"),x=e("./_object-gpo"),P=e("./_wks")("iterator"),E=!([].keys&&"next"in[].keys()),k=function returnThis(){return this};n.localExports=function(e,n,i,B,j,I,O){b(i,n,B);var D,R,N,U=function getMethod(e){if(!E&&e in K)return K[e];switch(e){case"keys":return function keys(){return new i(this,e)};case"values":return function values(){return new i(this,e)}}return function entries(){return new i(this,e)}},G=n+" Iterator",W="values"==j,X=!1,K=e.prototype,Y=K[P]||K["@@iterator"]||j&&K[j],J=Y||U(j),$=j?W?U("entries"):J:void 0,ee="Array"==n&&K.entries||Y;if(ee&&(N=x(ee.call(new e)))!==Object.prototype&&N.next){w(N,G,!0);u||"function"==typeof N[P]||_(N,P,k)}if(W&&Y&&"values"!==Y.name){X=!0;J=function values(){return Y.call(this)}}u&&!O||!E&&!X&&K[P]||_(K,P,J);y[n]=J;y[G]=k;if(j){D={values:W?J:U("values"),keys:I?J:U("keys"),entries:$};if(O)for(R in D)R in K||p(K,R,D[R]);else d(d.P+d.F*(E||X),n,D)}return D}},{"./_export":43,"./_hide":48,"./_iter-create":57,"./_iterators":61,"./_library":62,"./_object-gpo":70,"./_redefine":79,"./_set-to-string-tag":83,"./_wks":98}],59:[function(e,n,i){var u=e("./_wks")("iterator"),d=!1;try{var p=[7][u]();p.return=function(){d=!0};Array.from(p,(function(){throw 2}))}catch(e){}n.localExports=function(e,n){if(!n&&!d)return!1;var i=!1;try{var p=[7],_=p[u]();_.next=function(){return{done:i=!0}};p[u]=function(){return _};e(p)}catch(e){}return i}},{"./_wks":98}],60:[function(e,n,i){n.localExports=function(e,n){return{value:n,done:!!e}}},{}],61:[function(e,n,i){n.localExports={}},{}],62:[function(e,n,i){n.localExports=!0},{}],63:[function(e,n,i){var u=e("./_uid")("meta"),d=e("./_is-object"),p=e("./_has"),_=e("./_object-dp").f,y=0,b=Object.isExtensible||function(){return!0},w=!e("./_fails")((function(){return b(Object.preventExtensions({}))})),x=function setMeta(e){_(e,u,{value:{i:"O"+ ++y,w:{}}})},P=n.localExports={KEY:u,NEED:!1,fastKey:function fastKey(e,n){if(!d(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!p(e,u)){if(!b(e))return"F";if(!n)return"E";x(e)}return e[u].i},getWeak:function getWeak(e,n){if(!p(e,u)){if(!b(e))return!0;if(!n)return!1;x(e)}return e[u].w},onFreeze:function onFreeze(e){w&&P.NEED&&b(e)&&!p(e,u)&&x(e);return e}}},{"./_fails":44,"./_has":47,"./_is-object":55,"./_object-dp":67,"./_uid":95}],64:[function(e,n,i){var u=e("./_global"),d=e("./_task").set,p=u.MutationObserver||u.WebKitMutationObserver,_=u.process,y=u.Promise,b="process"==e("./_cof")(_);n.localExports=function(){var e,n,i,w=function flush(){var u,d;b&&(u=_.domain)&&u.exit();for(;e;){d=e.fn;e=e.next;try{d()}catch(u){e?i():n=void 0;throw u}}n=void 0;u&&u.enter()};if(b)i=function notify(){_.nextTick(w)};else if(!p||u.navigator&&u.navigator.standalone)if(y&&y.resolve){var x=y.resolve(void 0);i=function notify(){x.then(w)}}else i=function notify(){d.call(u,w)};else{var P=!0,E=document.createTextNode("");new p(w).observe(E,{characterData:!0});i=function notify(){E.data=P=!P}}return function(u){var d={fn:u,next:void 0};n&&(n.next=d);if(!e){e=d;i()}n=d}}},{"./_cof":32,"./_global":46,"./_task":88}],65:[function(e,n,i){var u=e("./_a-function");function PromiseCapability(e){var n,i;this.promise=new e((function(e,u){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e;i=u}));this.resolve=u(n);this.reject=u(i)}n.localExports.f=function(e){return new PromiseCapability(e)}},{"./_a-function":22}],66:[function(e,n,i){var u=e("./_an-object"),d=e("./_object-dps"),p=e("./_enum-bug-keys"),_=e("./_shared-key")("IE_PROTO"),y=function Empty(){},b=function createDict(){var n,i=e("./_dom-create")("iframe"),u=p.length;i.style.display="none";e("./_html").appendChild(i);i.src="javascript:";(n=i.contentWindow.document).open();n.write("<script>document.F=Object<\/script>");n.close();b=n.F;for(;u--;)delete b.prototype[p[u]];return b()};n.localExports=Object.create||function create(e,n){var i;if(null!==e){y.prototype=u(e);i=new y;y.prototype=null;i[_]=e}else i=b();return void 0===n?i:d(i,n)}},{"./_an-object":25,"./_dom-create":41,"./_enum-bug-keys":42,"./_html":49,"./_object-dps":68,"./_shared-key":84}],67:[function(e,n,i){var u=e("./_an-object"),d=e("./_ie8-dom-define"),p=e("./_to-primitive"),_=Object.defineProperty;i.f=e("./_descriptors")?Object.defineProperty:function defineProperty(e,n,i){u(e);n=p(n,!0);u(i);if(d)try{return _(e,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");"value"in i&&(e[n]=i.value);return e}},{"./_an-object":25,"./_descriptors":40,"./_ie8-dom-define":50,"./_to-primitive":94}],68:[function(e,n,i){var u=e("./_object-dp"),d=e("./_an-object"),p=e("./_object-keys");n.localExports=e("./_descriptors")?Object.defineProperties:function defineProperties(e,n){d(e);for(var i,_=p(n),y=_.length,b=0;y>b;)u.f(e,i=_[b++],n[i]);return e}},{"./_an-object":25,"./_descriptors":40,"./_object-dp":67,"./_object-keys":72}],69:[function(e,n,i){var u=e("./_object-pie"),d=e("./_property-desc"),p=e("./_to-iobject"),_=e("./_to-primitive"),y=e("./_has"),b=e("./_ie8-dom-define"),w=Object.getOwnPropertyDescriptor;i.f=e("./_descriptors")?w:function getOwnPropertyDescriptor(e,n){e=p(e);n=_(n,!0);if(b)try{return w(e,n)}catch(e){}if(y(e,n))return d(!u.f.call(e,n),e[n])}},{"./_descriptors":40,"./_has":47,"./_ie8-dom-define":50,"./_object-pie":73,"./_property-desc":77,"./_to-iobject":91,"./_to-primitive":94}],70:[function(e,n,i){var u=e("./_has"),d=e("./_to-object"),p=e("./_shared-key")("IE_PROTO"),_=Object.prototype;n.localExports=Object.getPrototypeOf||function(e){e=d(e);return u(e,p)?e[p]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?_:null}},{"./_has":47,"./_shared-key":84,"./_to-object":93}],71:[function(e,n,i){var u=e("./_has"),d=e("./_to-iobject"),p=e("./_array-includes")(!1),_=e("./_shared-key")("IE_PROTO");n.localExports=function(e,n){var i,y=d(e),b=0,w=[];for(i in y)i!=_&&u(y,i)&&w.push(i);for(;n.length>b;)u(y,i=n[b++])&&(~p(w,i)||w.push(i));return w}},{"./_array-includes":27,"./_has":47,"./_shared-key":84,"./_to-iobject":91}],72:[function(e,n,i){var u=e("./_object-keys-internal"),d=e("./_enum-bug-keys");n.localExports=Object.keys||function keys(e){return u(e,d)}},{"./_enum-bug-keys":42,"./_object-keys-internal":71}],73:[function(e,n,i){i.f={}.propertyIsEnumerable},{}],74:[function(e,n,i){var u=e("./_export"),d=e("./_core"),p=e("./_fails");n.localExports=function(e,n){var i=(d.Object||{})[e]||Object[e],_={};_[e]=n(i);u(u.S+u.F*p((function(){i(1)})),"Object",_)}},{"./_core":36,"./_export":43,"./_fails":44}],75:[function(e,n,i){n.localExports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],76:[function(e,n,i){var u=e("./_an-object"),d=e("./_is-object"),p=e("./_new-promise-capability");n.localExports=function(e,n){u(e);if(d(n)&&n.constructor===e)return n;var i=p.f(e);(0,i.resolve)(n);return i.promise}},{"./_an-object":25,"./_is-object":55,"./_new-promise-capability":65}],77:[function(e,n,i){n.localExports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},{}],78:[function(e,n,i){var u=e("./_hide");n.localExports=function(e,n,i){for(var d in n)i&&e[d]?e[d]=n[d]:u(e,d,n[d]);return e}},{"./_hide":48}],79:[function(e,n,i){n.localExports=e("./_hide")},{"./_hide":48}],80:[function(e,n,i){var u=e("./_export"),d=e("./_a-function"),p=e("./_ctx"),_=e("./_for-of");n.localExports=function(e){u(u.S,e,{from:function from(e){var n,i,u,y,b=arguments[1];d(this);(n=void 0!==b)&&d(b);if(null==e)return new this;i=[];if(n){u=0;y=p(b,arguments[2],2);_(e,!1,(function(e){i.push(y(e,u++))}))}else _(e,!1,i.push,i);return new this(i)}})}},{"./_a-function":22,"./_ctx":38,"./_export":43,"./_for-of":45}],81:[function(e,n,i){var u=e("./_export");n.localExports=function(e){u(u.S,e,{of:function of(){for(var e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return new this(n)}})}},{"./_export":43}],82:[function(e,n,i){var u=e("./_global"),d=e("./_core"),p=e("./_object-dp"),_=e("./_descriptors"),y=e("./_wks")("species");n.localExports=function(e){var n="function"==typeof d[e]?d[e]:u[e];_&&n&&!n[y]&&p.f(n,y,{configurable:!0,get:function get(){return this}})}},{"./_core":36,"./_descriptors":40,"./_global":46,"./_object-dp":67,"./_wks":98}],83:[function(e,n,i){var u=e("./_object-dp").f,d=e("./_has"),p=e("./_wks")("toStringTag");n.localExports=function(e,n,i){e&&!d(e=i?e:e.prototype,p)&&u(e,p,{configurable:!0,value:n})}},{"./_has":47,"./_object-dp":67,"./_wks":98}],84:[function(e,n,i){var u=e("./_shared")("keys"),d=e("./_uid");n.localExports=function(e){return u[e]||(u[e]=d(e))}},{"./_shared":85,"./_uid":95}],85:[function(e,n,i){var u=e("./_core"),d=e("./_global"),p=d["__core-js_shared__"]||(d["__core-js_shared__"]={});(n.localExports=function(e,n){return p[e]||(p[e]=void 0!==n?n:{})})("versions",[]).push({version:u.version,mode:e("./_library")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":36,"./_global":46,"./_library":62}],86:[function(e,n,i){var u=e("./_an-object"),d=e("./_a-function"),p=e("./_wks")("species");n.localExports=function(e,n){var i,_=u(e).constructor;return void 0===_||null==(i=u(_)[p])?n:d(i)}},{"./_a-function":22,"./_an-object":25,"./_wks":98}],87:[function(e,n,i){var u=e("./_to-integer"),d=e("./_defined");n.localExports=function(e){return function(n,i){var p,_,y=String(d(n)),b=u(i),w=y.length;return b<0||b>=w?e?"":void 0:(p=y.charCodeAt(b))<55296||p>56319||b+1===w||(_=y.charCodeAt(b+1))<56320||_>57343?e?y.charAt(b):p:e?y.slice(b,b+2):_-56320+(p-55296<<10)+65536}}},{"./_defined":39,"./_to-integer":90}],88:[function(e,n,i){var u,d,p,_=e("./_ctx"),y=e("./_invoke"),b=e("./_html"),w=e("./_dom-create"),x=e("./_global"),P=x.process,E=x.setImmediate,k=x.clearImmediate,B=x.MessageChannel,j=x.Dispatch,I=0,O={},D=function run(){var e=+this;if(O.hasOwnProperty(e)){var n=O[e];delete O[e];n()}},R=function listener(e){D.call(e.data)};if(!E||!k){E=function setImmediate(e){for(var n=[],i=1;arguments.length>i;)n.push(arguments[i++]);O[++I]=function(){y("function"==typeof e?e:Function(e),n)};u(I);return I};k=function clearImmediate(e){delete O[e]};if("process"==e("./_cof")(P))u=function defer(e){P.nextTick(_(D,e,1))};else if(j&&j.now)u=function defer(e){j.now(_(D,e,1))};else if(B){p=(d=new B).port2;d.port1.onmessage=R;u=_(p.postMessage,p,1)}else if(x.addEventListener&&"function"==typeof postMessage&&!x.importScripts){u=function defer(e){x.postMessage(e+"","*")};x.addEventListener("message",R,!1)}else u="onreadystatechange"in w("script")?function defer(e){b.appendChild(w("script")).onreadystatechange=function(){b.removeChild(this);D.call(e)}}:function defer(e){setTimeout(_(D,e,1),0)}}n.localExports={set:E,clear:k}},{"./_cof":32,"./_ctx":38,"./_dom-create":41,"./_global":46,"./_html":49,"./_invoke":51}],89:[function(e,n,i){var u=e("./_to-integer"),d=Math.max,p=Math.min;n.localExports=function(e,n){return(e=u(e))<0?d(e+n,0):p(e,n)}},{"./_to-integer":90}],90:[function(e,n,i){var u=Math.ceil,d=Math.floor;n.localExports=function(e){return isNaN(e=+e)?0:(e>0?d:u)(e)}},{}],91:[function(e,n,i){var u=e("./_iobject"),d=e("./_defined");n.localExports=function(e){return u(d(e))}},{"./_defined":39,"./_iobject":52}],92:[function(e,n,i){var u=e("./_to-integer"),d=Math.min;n.localExports=function(e){return e>0?d(u(e),9007199254740991):0}},{"./_to-integer":90}],93:[function(e,n,i){var u=e("./_defined");n.localExports=function(e){return Object(u(e))}},{"./_defined":39}],94:[function(e,n,i){var u=e("./_is-object");n.localExports=function(e,n){if(!u(e))return e;var i,d;if(n&&"function"==typeof(i=e.toString)&&!u(d=i.call(e)))return d;if("function"==typeof(i=e.valueOf)&&!u(d=i.call(e)))return d;if(!n&&"function"==typeof(i=e.toString)&&!u(d=i.call(e)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":55}],95:[function(e,n,i){var u=0,d=Math.random();n.localExports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++u+d).toString(36))}},{}],96:[function(e,n,i){var u=e("./_global").navigator;n.localExports=u&&u.userAgent||""},{"./_global":46}],97:[function(e,n,i){var u=e("./_is-object");n.localExports=function(e,n){if(!u(e)||e._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return e}},{"./_is-object":55}],98:[function(e,n,i){var u=e("./_shared")("wks"),d=e("./_uid"),p=e("./_global").Symbol,_="function"==typeof p;(n.localExports=function(e){return u[e]||(u[e]=_&&p[e]||(_?p:d)("Symbol."+e))}).store=u},{"./_global":46,"./_shared":85,"./_uid":95}],99:[function(e,n,i){var u=e("./_classof"),d=e("./_wks")("iterator"),p=e("./_iterators");n.localExports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[d]||e["@@iterator"]||p[u(e)]}},{"./_classof":31,"./_core":36,"./_iterators":61,"./_wks":98}],100:[function(e,n,i){var u=e("./_ctx"),d=e("./_export"),p=e("./_to-object"),_=e("./_iter-call"),y=e("./_is-array-iter"),b=e("./_to-length"),w=e("./_create-property"),x=e("./core.get-iterator-method");d(d.S+d.F*!e("./_iter-detect")((function(e){})),"Array",{from:function from(e){var n,i,d,P,E=p(e),k="function"==typeof this?this:Array,B=arguments.length,j=B>1?arguments[1]:void 0,I=void 0!==j,O=0,D=x(E);I&&(j=u(j,B>2?arguments[2]:void 0,2));if(null==D||k==Array&&y(D))for(i=new k(n=b(E.length));n>O;O++)w(i,O,I?j(E[O],O):E[O]);else for(P=D.call(E),i=new k;!(d=P.next()).done;O++)w(i,O,I?_(P,j,[d.value,O],!0):d.value);i.length=O;return i}})},{"./_create-property":37,"./_ctx":38,"./_export":43,"./_is-array-iter":53,"./_iter-call":56,"./_iter-detect":59,"./_to-length":92,"./_to-object":93,"./core.get-iterator-method":99}],101:[function(e,n,i){var u=e("./_export");u(u.S,"Array",{isArray:e("./_is-array")})},{"./_export":43,"./_is-array":54}],102:[function(e,n,i){var u=e("./_add-to-unscopables"),d=e("./_iter-step"),p=e("./_iterators"),_=e("./_to-iobject");n.localExports=e("./_iter-define")(Array,"Array",(function(e,n){this._t=_(e);this._i=0;this._k=n}),(function(){var e=this._t,n=this._k,i=this._i++;if(!e||i>=e.length){this._t=void 0;return d(1)}return d(0,"keys"==n?i:"values"==n?e[i]:[i,e[i]])}),"values");p.Arguments=p.Array;u("keys");u("values");u("entries")},{"./_add-to-unscopables":23,"./_iter-define":58,"./_iter-step":60,"./_iterators":61,"./_to-iobject":91}],103:[function(e,n,i){var u=e("./_collection-strong"),d=e("./_validate-collection");n.localExports=e("./_collection")("Map",(function(e){return function Map(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function get(e){var n=u.getEntry(d(this,"Map"),e);return n&&n.v},set:function set(e,n){return u.def(d(this,"Map"),0===e?0:e,n)}},u,!0)},{"./_collection":35,"./_collection-strong":33,"./_validate-collection":97}],104:[function(e,n,i){var u=e("./_export");u(u.S+u.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":40,"./_export":43,"./_object-dp":67}],105:[function(e,n,i){var u=e("./_is-object"),d=e("./_meta").onFreeze;e("./_object-sap")("freeze",(function(e){return function freeze(n){return e&&u(n)?e(d(n)):n}}))},{"./_is-object":55,"./_meta":63,"./_object-sap":74}],106:[function(e,n,i){var u=e("./_to-iobject"),d=e("./_object-gopd").f;e("./_object-sap")("getOwnPropertyDescriptor",(function(){return function getOwnPropertyDescriptor(e,n){return d(u(e),n)}}))},{"./_object-gopd":69,"./_object-sap":74,"./_to-iobject":91}],107:[function(e,n,i){var u=e("./_to-object"),d=e("./_object-keys");e("./_object-sap")("keys",(function(){return function keys(e){return d(u(e))}}))},{"./_object-keys":72,"./_object-sap":74,"./_to-object":93}],108:[function(e,n,i){},{}],109:[function(e,n,i){var u,d,p,_,y=e("./_library"),b=e("./_global"),w=e("./_ctx"),x=e("./_classof"),P=e("./_export"),E=e("./_is-object"),k=e("./_a-function"),B=e("./_an-instance"),j=e("./_for-of"),I=e("./_species-constructor"),O=e("./_task").set,D=e("./_microtask")(),R=e("./_new-promise-capability"),N=e("./_perform"),U=e("./_user-agent"),G=e("./_promise-resolve"),W=b.TypeError,X=b.process,K=X&&X.versions,Y=K&&K.v8||"",J=b.Promise,$="process"==x(X),ee=function empty(){},te=d=R.f,re=!!function(){try{var n=J.resolve(1),i=(n.constructor={})[e("./_wks")("species")]=function(e){e(ee,ee)};return($||"function"==typeof PromiseRejectionEvent)&&n.then(ee)instanceof i&&0!==Y.indexOf("6.6")&&-1===U.indexOf("Chrome/66")}catch(e){}}(),ne=function isThenable(e){var n;return!(!E(e)||"function"!=typeof(n=e.then))&&n},ie=function notify(e,n){if(!e._n){e._n=!0;var i=e._c;D((function(){for(var u=e._v,d=1==e._s,p=0,_=function run(n){var i,p,_,y=d?n.ok:n.fail,b=n.resolve,w=n.reject,x=n.domain;try{if(y){if(!d){2==e._h&&se(e);e._h=1}if(!0===y)i=u;else{x&&x.enter();i=y(u);if(x){x.exit();_=!0}}i===n.promise?w(W("Promise-chain cycle")):(p=ne(i))?p.call(i,b,w):b(i)}else w(u)}catch(e){x&&!_&&x.exit();w(e)}};i.length>p;)_(i[p++]);e._c=[];e._n=!1;n&&!e._h&&oe(e)}))}},oe=function onUnhandled(e){O.call(b,(function(){var n,i,u,d=e._v,p=ae(e);if(p){n=N((function(){$?X.emit("unhandledRejection",d,e):(i=b.onunhandledrejection)?i({promise:e,reason:d}):(u=b.console)&&u.error&&u.error("Unhandled promise rejection",d)}));e._h=$||ae(e)?2:1}e._a=void 0;if(p&&n.e)throw n.v}))},ae=function isUnhandled(e){return 1!==e._h&&0===(e._a||e._c).length},se=function onHandleUnhandled(e){O.call(b,(function(){var n;$?X.emit("rejectionHandled",e):(n=b.onrejectionhandled)&&n({promise:e,reason:e._v})}))},le=function $reject(e){var n=this;if(!n._d){n._d=!0;(n=n._w||n)._v=e;n._s=2;n._a||(n._a=n._c.slice());ie(n,!0)}},ue=function $resolve(e){var n,i=this;if(!i._d){i._d=!0;i=i._w||i;try{if(i===e)throw W("Promise can't be resolved itself");if(n=ne(e))D((function(){var u={_w:i,_d:!1};try{n.call(e,w($resolve,u,1),w(le,u,1))}catch(e){le.call(u,e)}}));else{i._v=e;i._s=1;ie(i,!1)}}catch(e){le.call({_w:i,_d:!1},e)}}};if(!re){J=function Promise(e){B(this,J,"Promise","_h");k(e);u.call(this);try{e(w(ue,this,1),w(le,this,1))}catch(e){le.call(this,e)}};(u=function Promise(e){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1}).prototype=e("./_redefine-all")(J.prototype,{then:function then(e,n){var i=te(I(this,J));i.ok="function"!=typeof e||e;i.fail="function"==typeof n&&n;i.domain=$?X.domain:void 0;this._c.push(i);this._a&&this._a.push(i);this._s&&ie(this,!1);return i.promise},catch:function _catch(e){return this.then(void 0,e)}});p=function OwnPromiseCapability(){var e=new u;this.promise=e;this.resolve=w(ue,e,1);this.reject=w(le,e,1)};R.f=te=function newPromiseCapability(e){return e===J||e===_?new p(e):d(e)}}P(P.G+P.W+P.F*!re,{Promise:J});e("./_set-to-string-tag")(J,"Promise");e("./_set-species")("Promise");_=e("./_core").Promise;P(P.S+P.F*!re,"Promise",{reject:function reject(e){var n=te(this);(0,n.reject)(e);return n.promise}});P(P.S+P.F*(y||!re),"Promise",{resolve:function resolve(e){return G(y&&this===_?J:this,e)}});P(P.S+P.F*!(re&&e("./_iter-detect")((function(e){J.all(e).catch(ee)}))),"Promise",{all:function all(e){var n=this,i=te(n),u=i.resolve,d=i.reject,p=N((function(){var i=[],p=0,_=1;j(e,!1,(function(e){var y=p++,b=!1;i.push(void 0);_++;n.resolve(e).then((function(e){if(!b){b=!0;i[y]=e;--_||u(i)}}),d)}));--_||u(i)}));p.e&&d(p.v);return i.promise},race:function race(e){var n=this,i=te(n),u=i.reject,d=N((function(){j(e,!1,(function(e){n.resolve(e).then(i.resolve,u)}))}));d.e&&u(d.v);return i.promise}})},{"./_a-function":22,"./_an-instance":24,"./_classof":31,"./_core":36,"./_ctx":38,"./_export":43,"./_for-of":45,"./_global":46,"./_is-object":55,"./_iter-detect":59,"./_library":62,"./_microtask":64,"./_new-promise-capability":65,"./_perform":75,"./_promise-resolve":76,"./_redefine-all":78,"./_set-species":82,"./_set-to-string-tag":83,"./_species-constructor":86,"./_task":88,"./_user-agent":96,"./_wks":98}],110:[function(e,n,i){var u=e("./_collection-strong"),d=e("./_validate-collection");n.localExports=e("./_collection")("Set",(function(e){return function Set(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function add(e){return u.def(d(this,"Set"),e=0===e?0:e,e)}},u)},{"./_collection":35,"./_collection-strong":33,"./_validate-collection":97}],111:[function(e,n,i){var u=e("./_export"),d=e("./_to-absolute-index"),p=String.fromCharCode,_=String.fromCodePoint;u(u.S+u.F*(!!_&&1!=_.length),"String",{fromCodePoint:function fromCodePoint(e){for(var n,i=[],u=arguments.length,_=0;u>_;){n=+arguments[_++];if(d(n,1114111)!==n)throw RangeError(n+" is not a valid code point");i.push(n<65536?p(n):p(55296+((n-=65536)>>10),n%1024+56320))}return i.join("")}})},{"./_export":43,"./_to-absolute-index":89}],112:[function(e,n,i){var u=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e);this._i=0}),(function(){var e,n=this._t,i=this._i;if(i>=n.length)return{value:void 0,done:!0};e=u(n,i);this._i+=e.length;return{value:e,done:!1}}))},{"./_iter-define":58,"./_string-at":87}],113:[function(e,n,i){e("./_set-collection-from")("Map")},{"./_set-collection-from":80}],114:[function(e,n,i){e("./_set-collection-of")("Map")},{"./_set-collection-of":81}],115:[function(e,n,i){var u=e("./_export");u(u.P+u.R,"Map",{toJSON:e("./_collection-to-json")("Map")})},{"./_collection-to-json":34,"./_export":43}],116:[function(e,n,i){var u=e("./_export"),d=e("./_core"),p=e("./_global"),_=e("./_species-constructor"),y=e("./_promise-resolve");u(u.P+u.R,"Promise",{finally:function _finally(e){var n=_(this,d.Promise||p.Promise),i="function"==typeof e;return this.then(i?function(i){return y(n,e()).then((function(){return i}))}:e,i?function(i){return y(n,e()).then((function(){throw i}))}:e)}})},{"./_core":36,"./_export":43,"./_global":46,"./_promise-resolve":76,"./_species-constructor":86}],117:[function(e,n,i){var u=e("./_export"),d=e("./_new-promise-capability"),p=e("./_perform");u(u.S,"Promise",{try:function _try(e){var n=d.f(this),i=p(e);(i.e?n.reject:n.resolve)(i.v);return n.promise}})},{"./_export":43,"./_new-promise-capability":65,"./_perform":75}],118:[function(e,n,i){e("./_set-collection-from")("Set")},{"./_set-collection-from":80}],119:[function(e,n,i){e("./_set-collection-of")("Set")},{"./_set-collection-of":81}],120:[function(e,n,i){var u=e("./_export");u(u.P+u.R,"Set",{toJSON:e("./_collection-to-json")("Set")})},{"./_collection-to-json":34,"./_export":43}],121:[function(e,n,i){e("./es6.array.iterator");for(var u=e("./_global"),d=e("./_hide"),p=e("./_iterators"),_=e("./_wks")("toStringTag"),y="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(","),b=0;b<y.length;b++){var w=y[b],x=u[w],P=x&&x.prototype;P&&!P[_]&&d(P,_,w);p[w]=p.Array}},{"./_global":46,"./_hide":48,"./_iterators":61,"./_wks":98,"./es6.array.iterator":102}],122:[function(e,n,i){i.byteLength=function byteLength(e){var n=getLens(e),i=n[0],u=n[1];return 3*(i+u)/4-u};i.toByteArray=function toByteArray(e){var n,i,u=getLens(e),_=u[0],y=u[1],b=new p(function _byteLength(e,n,i){return 3*(n+i)/4-i}(0,_,y)),w=0,x=y>0?_-4:_;for(i=0;i<x;i+=4){n=d[e.charCodeAt(i)]<<18|d[e.charCodeAt(i+1)]<<12|d[e.charCodeAt(i+2)]<<6|d[e.charCodeAt(i+3)];b[w++]=n>>16&255;b[w++]=n>>8&255;b[w++]=255&n}if(2===y){n=d[e.charCodeAt(i)]<<2|d[e.charCodeAt(i+1)]>>4;b[w++]=255&n}if(1===y){n=d[e.charCodeAt(i)]<<10|d[e.charCodeAt(i+1)]<<4|d[e.charCodeAt(i+2)]>>2;b[w++]=n>>8&255;b[w++]=255&n}return b};i.fromByteArray=function fromByteArray(e){for(var n,i=e.length,d=i%3,p=[],_=0,y=i-d;_<y;_+=16383)p.push(encodeChunk(e,_,_+16383>y?y:_+16383));if(1===d){n=e[i-1];p.push(u[n>>2]+u[n<<4&63]+"==")}else if(2===d){n=(e[i-2]<<8)+e[i-1];p.push(u[n>>10]+u[n>>4&63]+u[n<<2&63]+"=")}return p.join("")};for(var u=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=_.length;y<b;++y){u[y]=_[y];d[_.charCodeAt(y)]=y}d["-".charCodeAt(0)]=62;d["_".charCodeAt(0)]=63;function getLens(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=n);return[i,i===n?0:4-i%4]}function encodeChunk(e,n,i){for(var d,p,_=[],y=n;y<i;y+=3){d=(e[y]<<16&16711680)+(e[y+1]<<8&65280)+(255&e[y+2]);_.push(u[(p=d)>>18&63]+u[p>>12&63]+u[p>>6&63]+u[63&p])}return _.join("")}},{}],123:[function(e,n,i){(function(e){(function(){var i=function(){function clone(n,i,u,d){if("object"==typeof i){u=i.depth;d=i.prototype;i.filter;i=i.circular}var p=[],_=[],y=void 0!==e;void 0===i&&(i=!0);void 0===u&&(u=1/0);return function _clone(n,u){if(null===n)return null;if(0==u)return n;var b,w;if("object"!=typeof n)return n;if(clone.__isArray(n))b=[];else if(clone.__isRegExp(n)){b=new RegExp(n.source,__getRegExpFlags(n));n.lastIndex&&(b.lastIndex=n.lastIndex)}else if(clone.__isDate(n))b=new Date(n.getTime());else{if(y&&e.isBuffer(n)){b=e.allocUnsafe?e.allocUnsafe(n.length):new e(n.length);n.copy(b);return b}if(void 0===d){w=Object.getPrototypeOf(n);b=Object.create(w)}else{b=Object.create(d);w=d}}if(i){var x=p.indexOf(n);if(-1!=x)return _[x];p.push(n);_.push(b)}for(var P in n){var E;w&&(E=Object.getOwnPropertyDescriptor(w,P));E&&null==E.set||(b[P]=_clone(n[P],u-1))}return b}(n,u)}clone.clonePrototype=function clonePrototype(e){if(null===e)return null;var n=function c(){};n.prototype=e;return new n};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;clone.__isDate=function __isDate(e){return"object"==typeof e&&"[object Date]"===__objToStr(e)};clone.__isArray=function __isArray(e){return"object"==typeof e&&"[object Array]"===__objToStr(e)};clone.__isRegExp=function __isRegExp(e){return"object"==typeof e&&"[object RegExp]"===__objToStr(e)};function __getRegExpFlags(e){var n="";e.global&&(n+="g");e.ignoreCase&&(n+="i");e.multiline&&(n+="m");return n}clone.__getRegExpFlags=__getRegExpFlags;return clone}();"object"==typeof n&&n.localExports&&(n.localExports=i)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:152}],124:[function(e,n,i){function Tree(){this.table=new Uint16Array(16);this.trans=new Uint16Array(288)}function Data(e,n){this.source=e;this.sourceIndex=0;this.tag=0;this.bitcount=0;this.dest=n;this.destLen=0;this.ltree=new Tree;this.dtree=new Tree}var u=new Tree,d=new Tree,p=new Uint8Array(30),_=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 Tree,P=new Uint8Array(320);function tinf_build_bits_base(e,n,i,u){var d,p;for(d=0;d<i;++d)e[d]=0;for(d=0;d<30-i;++d)e[d+i]=d/i|0;for(p=u,d=0;d<30;++d){n[d]=p;p+=1<<e[d]}}var E=new Uint16Array(16);function tinf_build_tree(e,n,i,u){var d,p;for(d=0;d<16;++d)e.table[d]=0;for(d=0;d<u;++d)e.table[n[i+d]]++;e.table[0]=0;for(p=0,d=0;d<16;++d){E[d]=p;p+=e.table[d]}for(d=0;d<u;++d)n[i+d]&&(e.trans[E[n[i+d]]++]=d)}function tinf_getbit(e){if(!e.bitcount--){e.tag=e.source[e.sourceIndex++];e.bitcount=7}var n=1&e.tag;e.tag>>>=1;return n}function tinf_read_bits(e,n,i){if(!n)return i;for(;e.bitcount<24;){e.tag|=e.source[e.sourceIndex++]<<e.bitcount;e.bitcount+=8}var u=e.tag&65535>>>16-n;e.tag>>>=n;e.bitcount-=n;return u+i}function tinf_decode_symbol(e,n){for(;e.bitcount<24;){e.tag|=e.source[e.sourceIndex++]<<e.bitcount;e.bitcount+=8}var i=0,u=0,d=0,p=e.tag;do{u=2*u+(1&p);p>>>=1;++d;i+=n.table[d];u-=n.table[d]}while(u>=0);e.tag=p;e.bitcount-=d;return n.trans[i+u]}function tinf_decode_trees(e,n,i){var u,d,p,_,y,b;u=tinf_read_bits(e,5,257);d=tinf_read_bits(e,5,1);p=tinf_read_bits(e,4,4);for(_=0;_<19;++_)P[_]=0;for(_=0;_<p;++_){var E=tinf_read_bits(e,3,0);P[w[_]]=E}tinf_build_tree(x,P,0,19);for(y=0;y<u+d;){var k=tinf_decode_symbol(e,x);switch(k){case 16:var B=P[y-1];for(b=tinf_read_bits(e,2,3);b;--b)P[y++]=B;break;case 17:for(b=tinf_read_bits(e,3,3);b;--b)P[y++]=0;break;case 18:for(b=tinf_read_bits(e,7,11);b;--b)P[y++]=0;break;default:P[y++]=k}}tinf_build_tree(n,P,0,u);tinf_build_tree(i,P,u,d)}function tinf_inflate_block_data(e,n,i){for(;;){var u=tinf_decode_symbol(e,n);if(256===u)return 0;if(u<256)e.dest[e.destLen++]=u;else{var d,w,x,P;d=tinf_read_bits(e,p[u-=257],_[u]);w=tinf_decode_symbol(e,i);for(P=x=e.destLen-tinf_read_bits(e,y[w],b[w]);P<x+d;++P)e.dest[e.destLen++]=e.dest[P]}}}function tinf_inflate_uncompressed_block(e){for(var n,i;e.bitcount>8;){e.sourceIndex--;e.bitcount-=8}if((n=256*(n=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;e.sourceIndex+=4;for(i=n;i;--i)e.dest[e.destLen++]=e.source[e.sourceIndex++];e.bitcount=0;return 0}!function tinf_build_fixed_trees(e,n){var i;for(i=0;i<7;++i)e.table[i]=0;e.table[7]=24;e.table[8]=152;e.table[9]=112;for(i=0;i<24;++i)e.trans[i]=256+i;for(i=0;i<144;++i)e.trans[24+i]=i;for(i=0;i<8;++i)e.trans[168+i]=280+i;for(i=0;i<112;++i)e.trans[176+i]=144+i;for(i=0;i<5;++i)n.table[i]=0;n.table[5]=32;for(i=0;i<32;++i)n.trans[i]=i}(u,d);tinf_build_bits_base(p,_,4,3);tinf_build_bits_base(y,b,2,1);p[28]=0;_[28]=258;n.localExports=function tinf_uncompress(e,n){var i,p,_=new Data(e,n);do{i=tinf_getbit(_);switch(tinf_read_bits(_,2,0)){case 0:p=tinf_inflate_uncompressed_block(_);break;case 1:p=tinf_inflate_block_data(_,u,d);break;case 2:tinf_decode_trees(_,_.ltree,_.dtree);p=tinf_inflate_block_data(_,_.ltree,_.dtree);break;default:p=-3}if(0!==p)throw new Error("Data error")}while(!i);return _.destLen<_.dest.length?"function"==typeof _.dest.slice?_.dest.slice(0,_.destLen):_.dest.subarray(0,_.destLen):_.dest}},{}],125:[function(e,n,i){var u=e("unicode-trie"),d=e("base64-js"),p={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","Osage","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","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],eaw:["N","Na","A","W","H","F"]},_="AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbOuQcJw/63sDp68wB9iwP5AO+mBpV0R5VDDeyQUFCel1G+4KHBgEVFS0YK+m2sXLWLuGTlkVAd97WwKKdacjWElRCuDRauf33l/yVcDF6sVPKeTes99FC1NpNWcpieGSV/IbO8PCTy5pbUR1U8lxzf4T+y6fZMxOz3LshkQLeeDSd0WmUrQgajmbktrxsb2AZ0ACw2Vgni+gV/m+KvCRWLg08Clx7uhql+v9XySGcjjOHlsp8vBw/e8HS7dtiqF6T/XcSXuaMW66GF1g4q9YyBadHqy3Y5jin1c7yZos6BBr6dsomSHxiUHanYtcYQwnMMZhRhOnaYJeyJzaRuukyCUh48+e/BUvk/aEfDp8ag+jD64BHxNnQ5v/E7WRk7eLjGV13I3oqy45YNONi/1op1oDr7rPjkhPsTXgUpQtGDPlIs55KhQaic9kSGs/UrZ2QKQOflB8MTEQxRF9pullToWO7Eplan6mcMRFnUu2441yxi23x+KqKlr7RWWsi9ZXMWlr8vfP3llk1m2PRj0yudccxBuoa7VfIgRmnFPGX6Pm1WIfMm/Rm4n/xTn8IGqA0GWuqgu48pEUO0U9nN+ZdIvFpPb7VDPphIfRZxznlHeVFebkd9l+raXy9BpTMcIUIvBfgHEb6ndGo8VUkxpief14KjzFOcaANfgvFpvyY8lE8lE4raHizLpluPzMks1hx/e1Hok5yV0p7qQH7GaYeMzzZTFvRpv6k6iaJ4yNqzBvN8J7B430h2wFm1IBPcqbou33G7/NWPgopl4Mllla6e24L3TOTVNkza2zv3QKuDWTeDpClCEYgTQ+5vEBSQZs/rMF50+sm4jofTgWLqgX1x3TkrDEVaRqfY/xZizFZ3Y8/DFEFD31VSfBQ5raEB6nHnZh6ddehtclQJ8fBrldyIh99LNnV32HzKEej04hk6SYjdauCa4aYW0ru/QxvQRGzLKOAQszf3ixJypTW3WWL6BLSF2EMCMIw7OUvWBC6A/gDc2D1jvBapMCc7ztx6jYczwTKsRLL6dMNXb83HS8kdD0pTMMj161zbVHkU0mhSHo9SlBDDXdN6hDvRGizmohtIyR3ot8tF5iUG4GLNcXeGvBudSFrHu+bVZb9jirNVG+rQPI51A7Hu8/b0UeaIaZ4UgDO68PkYx3PE2HWpKapJ764Kxt5TFYpywMy4DLQqVRy11I7SOLhxUFmqiEK52NaijWArIfCg6qG8q5eSiwRCJb1R7GDJG74TrYgx/lVq7w9++Kh929xSJEaoSse5fUOQg9nMAnIZv+7fwVRcNv3gOHI46Vb5jYUC66PYHO6lS+TOmvEQjuYmx4RkffYGxqZIp/DPWNHAixbRBc+XKE3JEOgs4jIwu/dSAwhydruOGF39co91aTs85JJ3Z/LpXoF43hUwJsb/M1Chzdn8HX8vLXnqWUKvRhNLpfAF4PTFqva1sBQG0J+59HyYfmQ3oa4/sxZdapVLlo/fooxSXi/dOEQWIWq8E0FkttEyTFXR2aNMPINMIzZwCNEheYTVltsdaLkMyKoEUluPNAYCM2IG3br0DLy0fVNWKHtbSKbBjfiw7Lu06gQFalC7RC9BwRMSpLYDUo9pDtDfzwUiPJKLJ2LGcSphWBadOI/iJjNqUHV7ucG8yC6+iNM9QYElqBR7ECFXrcTgWQ3eG/tCWacT9bxIkfmxPmi3vOd36KxihAJA73vWNJ+Y9oapXNscVSVqS5g15xOWND/WuUCcA9YAAg6WFbjHamrblZ5c0L6Zx1X58ZittGcfDKU697QRSqW/g+RofNRyvrWMrBn44cPvkRe2HdTu/Cq01C5/riWPHZyXPKHuSDDdW8c1XPgd6ogvLh20qEIu8c19sqr4ufyHrwh37ZN5MkvY1dsGmEz9pUBTxWrvvhNyODyX2Q1k/fbX/T/vbHNcBrmjgDtvBdtZrVtiIg5iXQuzO/DEMvRX8Mi1zymSlt92BGILeKItjoShJXE/H7xwnf0Iewb8BFieJ9MflEBCQYEDm8eZniiEPfGoaYiiEdhQxHQNr2AuRdmbL9mcl18Kumh+HEZLp6z+j35ML9zTbUwahUZCyQQOgQrGfdfQtaR/OYJ/9dYXb2TWZFMijfCA8Nov4sa5FFDUe1T68h4q08WDE7JbbDiej4utRMR9ontevxlXv6LuJTXt1YEv8bDzEt683PuSsIN0afvu0rcBu9AbXZbkOG3K3AhtqQ28N23lXm7S3Yn6KXmAhBhz+GeorJJ4XxO/b3vZk2LXp42+QvsVxGSNVpfSctIFMTR1bD9t70i6sfNF3WKz/uKDEDCpzzztwhL45lsw89H2IpWN10sXHRlhDse9KCdpP5qNNpU84cTY+aiqswqR8XZ9ea0KbVRwRuOGQU3csAtV2fSbnq47U6es6rKlWLWhg3s/B9C9g+oTyp6RtIldR51OOkP5/6nSy6itUVPcMNOp4M/hDdKOz3uK6srbdxOrc2cJgr1Sg02oBxxSky6V7JaG+ziNwlfqnjnvh2/uq1lKfbp+qpwq/D/5OI5gkFl5CejKGxfc2YVJfGqc4E0x5e9PHK2ukbHNI7/RZV6LNe65apbTGjoCaQls0txPPbmQbCQn+/upCoXRZy9yzorWJvZ0KWcbXlBxU/d5I4ERUTxMuVWhSMmF677LNN7NnLwsmKawXkCgbrpcluOl0WChR1qhtSrxGXHu251dEItYhYX3snvn1gS2uXuzdTxCJjZtjsip0iT2sDC0qMS7Bk9su2NyXjFK5/f5ZoWwofg3DtTyjaFqspnOOTSh8xK/CKUFS57guVEkw9xoQuRCwwEO9Lu9z2vYxSa9NFV8DvSxv2C4WYLYF8Nrc4DzWkzNsk81JJOlZ/LYJrGCoj4MmZpnf3AXmzxT4rtl9jsqljEyedz468SGKdBiQzyz/qWKEhFg45ZczlZZ3KGL3l6sn+3TTa3zMVMhPa1obGp/z+fvY0QXTrJTf1XAT3EtQdUfYYlmWZyvPZ/6rWwU7UOQei7pVE0osgN94Iy+T1+omE6z4Rh2O20FjgBeK2y1mcoFiMDOJvuZPn5Moy9fmFH3wyfKvn4+TwfLvt/lHTTVnvrtoUWRBiQXhiNM8nE6ZoWeux/Z0b2unRcdUzdDpmL7CAgd1ToRXwgmHTZOgiGtVT+xr1QH9ObebRTT4NzL+XSpLuuWp62GqQvJVTPoZOeJCb6gIwd9XHMftQ+Kc08IKKdKQANSJ1a2gve3JdRhO0+tNiYzWAZfd7isoeBu67W7xuK8WX7nhJURld98Inb0t/dWOSau/kDvV4DJo/cImw9AO2Gvq0F2n0M7yIZKL8amMbjYld+qFls7hq8Acvq97K2PrCaomuUiesu7qNanGupEl6J/iem8lyr/NMnsTr6o41PO0yhQh3hPFN0wJP7S830je9iTBLzUNgYH+gUZpROo3rN2qgCI+6GewpX8w8CH+ro6QrWiStqmcMzVa3vEel+3/dDxMp0rDv1Q6wTMS3K64zTT6RWzK1y643im25Ja7X2ePCV2mTswd/4jshZPo4bLnerqIosq/hy2bKUAmVn9n4oun1+a0DIZ56UhVwmZHdUNpLa8gmPvxS1eNvCF1T0wo1wKPdCJi0qOrWz7oYRTzgTtkzEzZn308XSLwUog4OWGKJzCn/3FfF9iA32dZHSv30pRCM3KBY9WZoRhtdK/ChHk6DEQBsfV6tN2o1Cn0mLtPBfnkS+qy1L2xfFe9TQPtDE1Be44RTl82E9hPT2rS2+93LFbzhQQO3C/hD2jRFH3BWWbasAfuMhRJFcTri73eE835y016s22DjoFJ862WvLj69fu2TgSF3RHia9D5DSitlQAXYCnbdqjPkR287Lh6dCHDapos+eFDvcZPP2edPmTFxznJE/EBLoQQ0Qmn9EkZOyJmHxMbvKYb8o21ZHmv5YLqgsEPk9gWZwYQY9wLqGXuax/8QlV5qDaPbq9pLPT1yp+zOWKmraEy1OUJI7zdEcEmvBpbdwLrDCgEb2xX8S/nxZgjK4bRi+pbOmbh8bEeoPvU/L9ndx9kntlDALbdAvp0O8ZC3zSUnFg4cePsw7jxewWvL7HRSBLUn6J7vTH9uld5N76JFPgBCdXGF221oEJk++XfRwXplLSyrVO7HFWBEs99nTazKveW3HpbD4dH/YmdAl+lwbSt8BQWyTG7jAsACI7bPPUU9hI9XUHWqQOuezHzUjnx5Qqs6T1qNHfTTHleDtmqK7flA9a0gz2nycIpz1FHBuWxKNtUeTdqP29Fb3tv+tl5JyBqXoR+vCsdzZwZUhf6Lu8bvkB9yQP4x7GGegB0ym0Lpl03Q7e+C0cDsm9GSDepCDji7nUslLyYyluPfvLyKaDSX4xpR+nVYQjQQn5F8KbY1gbIVLiK1J3mW90zTyR1bqApX2BlWh7KG8LAY9/S9nWC0XXh9pZZo6xuir12T43rkaGfQssbQyIslA7uJnSHOV22NhlNtUo0czxPAsXhh8tIQYaTM4l/yAlZlydTcXhlG22Gs/n3BxKBd/3ZjYwg3NaUurVXhNB+afVnFfNr9TbC9ksNdvwpNfeHanyJ8M6GrIVfLlYAPv0ILe4dn0Z+BJSbJkN7eZY/c6+6ttDYcIDeUKIDXqUSE42Xdh5nRbuaObozjht0HJ5H1e+em+NJi/+8kQlyjCbJpPckwThZeIF9/u7lrVIKNeJLCN/TpPAeXxvd31/CUDWHK9MuP1V1TJgngzi4V0qzS3SW3Qy5UiGHqg02wQa5tsEl9s/X9nNMosgLlUgZSfCBj1DiypLfhr9/r0nR0XY2tmhDOcUS4E7cqa4EJBhzqvpbZa35Q5Iz5EqmhYiOGDAYk606Tv74+KGfPjKVuP15rIzgW0I7/niOu9el/sn2bRye0gV+GrePDRDMHjwO1lEdeXH8N+UTO3IoN18kpI3tPxz+fY+n2MGMSGFHAx/83tKeJOl+2i+f1O9v6FfEDBbqrw+lpM8Anav7zHNr7hE78nXUtPNodMbCnITWA7Ma/IHlZ50F9hWge/wzOvSbtqFVFtkS8Of2nssjZwbSFdU+VO8z6tCEc9UA9ACxT5zIUeSrkBB/v1krOpm7bVMrGxEKfI6LcnpB4D8bvn2hDKGqKrJaVAJuDaBEY3F7eXyqnFWlOoFV/8ZLspZiZd7orXLhd4mhHQgbuKbHjJWUzrnm0Dxw/LJLzXCkh7slMxKo8uxZIWZfdKHlfI7uj3LP6ARAuWdF7ZmZ7daOKqKGbz5LxOggTgS39oEioYmrqkCeUDvbxkBYKeHhcLmMN8dMF01ZMb32IpL/cH8R7VHQSI5I0YfL14g9d7P/6cjB1JXXxbozEDbsrPdmL8ph7QW10jio+v7YsqHKQ6xrBbOVtxU0/nFfzUGZwIBLwyUvg49ii+54nv9FyECBpURnQK4Ox6N7lw5fsjdd5l/2SwBcAHMJoyjO1Pifye2dagaOwCVMqdJWAo77pvBe0zdJcTWu5fdzPNfV2p1pc7/JKQ8zhKkwsOELUDhXygPJ5oR8Vpk2lsCen3D3QOQp2zdrSZHjVBstDF/wWO98rrkQ6/7zt/Drip7OHIug1lomNdmRaHRrjmqeodn22sesQQPgzimPOMqC60a5+i/UYh51uZm+ijWkkaI2xjrBO2558DZNZMiuDQlaVAvBy2wLn/bR3FrNzfnO/9oDztYqxZrr7JMIhqmrochbqmQnKowxW29bpqTaJu7kW1VotC72QkYX8OoDDdMDwV1kJRk3mufgJBzf+iwFRJ7XWQwO5ujVglgFgHtycWiMLx5N+6XU+TulLabWjOzoao03fniUW0xvIJNPbk7CQlFZd/RCOPvgQbLjh5ITE8NVJeKt3HGr6JTnFdIzcVOlEtwqbIIX0IM7saC+4N5047MTJ9+Wn11EhyEPIlwsHE5utCeXRjQzlrR+R1Cf/qDzcNbqLXdk3J7gQ39VUrrEkS/VMWjjg+t2oYrqB0tUZClcUF6+LBC3EQ7KnGIwm/qjZX4GKPtjTX1zQKV6nPAb2t/Rza5IqKRf8i2DFEhV/YSifX0YwsiF6TQnp48Gr65TFq0zUe6LGjiY7fq0LSGKL1VnC6ESI2yxvt3XqBx53B3gSlGFeJcPbUbonW1E9E9m4NfuwPh+t5QjRxX34lvBPVxwQd7aeTd+r9dw5CiP1pt8wMZoMdni7GapYdo6KPgeQKcmlFfq4UYhvV0IBgeiR3RnTMBaqDqpZrTRyLdsp4l0IXZTdErfH0sN3dqBG5vRIx3VgCYcHmmkqJ8Hyu3s9K9uBD1d8cZUEx3qYcF5vsqeRpF1GOg8emeWM2OmBlWPdZ6qAXwm3nENFyh+kvXk132PfWAlN0kb7yh4fz2T7VWUY/hEXX5DvxGABC03XRpyOG8t/u3Gh5tZdpsSV9AWaxJN7zwhVglgII1gV28tUViyqn4UMdIh5t+Ea2zo7PO48oba0TwQbiSZOH4YhD578kPF3reuaP7LujPMsjHmaDuId9XEaZBCJhbXJbRg5VCk3KJpryH/+8S3wdhR47pdFcmpZG2p0Bpjp/VbvalgIZMllYX5L31aMPdt1J7r/7wbixt0Mnz2ZvNGTARHPVD+2O1D8SGpWXlVnP2ekgon55YiinADDynyaXtZDXueVqbuTi8z8cHHK325pgqM+mWZwzHeEreMvhZopAScXM14SJHpGwZyRljMlDvcMm9FZ/1e9+r/puOnpXOtc9Iu2fmgBfEP9cGW1Fzb1rGlfJ08pACtq1ZW18bf2cevebzVeHbaA50G9qoUp39JWdPHbYkPCRXjt4gzlq3Cxge28Mky8MoS/+On72kc+ZI2xBtgJytpAQHQ1zrEddMIVyR5urX6yBNu8v5lKC8eLdGKTJtbgIZ3ZyTzSfWmx9f+cvcJe8yM39K/djkp2aUTE/9m2Lj5jg7b8vdRAer7DO3SyLNHs1CAm5x5iAdh2yGJYivArZbCBNY88Tw+w+C1Tbt7wK3zl2rzTHo/D8/gb3c3mYrnEIEipYqPUcdWjnTsSw471O3EUN7Gtg4NOAs9PJrxm03VuZKa5xwXAYCjt7Gs01Km6T2DhOYUMoFcCSu7Hk1p3yP1eG+M3v3Q5luAze6WwBnZIYO0TCucPWK+UJ36KoJ8Y+vpavhLO8g5ed704IjlQdfemrMu//EvPYXTQSGIPPfiagJS9nMqP5IvkxN9pvuJz7h8carPXTKMq8jnTeL0STan6dnLTAqwIswcIwWDR2KwbGddAVN8SYWRB7kfBfBRkSXzvHlIF8D6jo64kUzYk5o/n8oLjKqat0rdXvQ86MkwQGMnnlcasqPPT2+mVtUGb32KuH6cyZQenrRG11TArcAl27+nvOMBDe++EKHf4YdyGf7mznzOz33cFFGEcv329p4qG2hoaQ8ULiMyVz6ENcxhoqGnFIdupcn7GICQWuw3yO3W8S33mzCcMYJ8ywc7U7rmaQf/W5K63Gr4bVTpXOyOp4tbaPyIaatBNpXqlmQUTSZXjxPr19+73PSaT+QnI35YsWn6WpfJjRtK8vlJZoTSgjaRU39AGCkWOZtifJrnefCrqwTKDFmuWUCukEsYcRrMzCoit28wYpP7kSVjMD8WJYQiNc2blMjuqYegmf6SsfC1jqz8XzghMlOX+gn/MKZmgljszrmehEa4V98VreJDxYvHr3j7IeJB9/sBZV41BWT/AZAjuC5XorlIPnZgBAniBEhanp0/0+qZmEWDpu8ige1hUPIyTo6T6gDEcFhWSoduNh8YSu65KgMOGBw7VlNYzNIgwHtq9KP2yyTVysqX5v12sf7D+vQUdR2dRDvCV40rIInXSLWT/yrC6ExOQxBJwIDbeZcl3z1yR5Rj3l8IGpxspapnvBL+fwupA3b6fkFceID9wgiM1ILB0cHVdvo/R4xg8yqKXT8efl0GnGX1/27FUYeUW2L/GNRGGWVGp3i91oaJkb4rybENHre9a2P5viz/yqk8ngWUUS+Kv+fu+9BLFnfLiLXOFcIeBJLhnayCiuDRSqcx0Qu68gVsGYc6EHD500Fkt+gpDj6gvr884n8wZ5o6q7xtL5wA0beXQnffWYkZrs2NGIRgQbsc5NB302SVx+R4ROvmgZaR8wBcji128BMfJ9kcvJ4DC+bQ57kRmv5yxgU4ngZfn0/JNZ8JBwxjTqS+s9kjJFG1unGUGLwMiIuXUD9EFhNIJuyCEAmVZSIGKH4G6v1gRR1LyzQKH2ZqiI1DnHMoDEZspbDjTeaFIAbSvjSq3A+n46y9hhVM8wIpnARSXyzmOD96d9UXvFroSPgGw1dq2vdEqDq9fJN1EbL2WulNmHkFDvxSO9ZT/RX/Bw2gA/BrF90XrJACereVfbV/YXaKfp77Nmx5NjEIUlxojsy7iN7nBHSZigfsbFyVOX1ZTeCCxvqnRSExP4lk5ZeYlRu9caaa743TWNdchRIhEWwadsBIe245C8clpaZ4zrPsk+OwXzxWCvRRumyNSLW5KWaSJyJU95cwheK76gr7228spZ3hmTtLyrfM2QRFqZFMR8/Q6yWfVgwTdfX2Ry4w3+eAO/5VT5nFb5NlzXPvBEAWrNZ6Q3jbH0RF4vcbp+fDngf/ywpoyNQtjrfvcq93AVb1RDWRghvyqgI2BkMr1rwYi8gizZ0G9GmPpMeqPerAQ0dJbzx+KAFM4IBq6iSLpZHUroeyfd9o5o+4fR2EtsZBoJORQEA4SW0CmeXSnblx2e9QkCHIodyqV6+g5ETEpZsLqnd/Na60EKPX/tQpPEcO+COIBPcQdszDzSiHGyQFPly/7KciUh1u+mFfxTCHGv9nn2WqndGgeGjQ/kr02qmTBX7Hc1qiEvgiSz1Tz/sy7Es29wvn6FrDGPP7asXlhOaiHxOctPvTptFA1kHFUk8bME7SsTSnGbFbUrssxrq70LhoSh5OwvQna+w84XdXhZb2sloJ4ZsCg3j+PrjJL08/JBi5zGd6ud/ZxhmcGKLOXPcNunQq5ESW92iJvfsuRrNYtawWwSmNhPYoFj2QqWNF0ffLpGt/ad24RJ8vkb5sXkpyKXmvFG5Vcdzf/44k3PBL/ojJ52+kWGzOArnyp5f969oV3J2c4Li27Nkova9VwRNVKqN0V+gV+mTHitgkXV30aWd3A1RSildEleiNPA+5cp+3+T7X+xfHiRZXQ1s4FA9TxIcnveQs9JSZ5r5qNmgqlW4zMtZ6rYNvgmyVcywKtu8ZxnSbS5vXlBV+NXdIfi3+xzrnJ0TkFL+Un8v1PWOC2PPFCjVPq7qTH7mOpzOYj/b4h0ceT+eHgr97Jqhb1ziVfeANzfN8bFUhPKBi7hJBCukQnB0aGjFTYLJPXL26lQ2b80xrOD5cFWgA8hz3St0e69kwNnD3+nX3gy12FjrjO+ddRvvvfyV3SWbXcxqNHfmsb9u1TV+wHTb9B07/L2sB8WUHJ9eeNomDyysEWZ0deqEhH/oWI2oiEh526gvAK1Nx2kIhNvkYR+tPYHEa9j+nd1VBpQP1uzSjIDO+fDDB7uy029rRjDC5Sk6aKczyz1D5uA9Lu+Rrrapl8JXNL3VRllNQH2K1ZFxOpX8LprttfqQ56MbPM0IttUheXWD/mROOeFqGUbL+kUOVlXLTFX/525g4faLEFO4qWWdmOXMNvVjpIVTWt650HfQjX9oT3Dg5Au6+v1/Ci78La6ZOngYCFPT1AUwxQuZ0yt5xKdNXLaDTISMTeCj16XTryhM36K2mfGRIgot71voWs8tTpL/f1rvcwv3LSDf+/G8THCT7NpfHWcW+lsF/ol8q9Bi6MezNTqp0rpp/kJRiVfNrX/w27cRRTu8RIIqtUblBMkxy4jwAVqCjUJkiPBj2cAoVloG8B2/N5deLdMhDb7xs5nhd3dubJhuj8WbaFRyu1L678DHhhA+rMimNo4C1kGpp0tD/qnCfCFHejpf0LJX43OTr578PY0tnIIrlWyNYyuR/ie6j2xNb1OV6u0dOX/1Dtcd7+ya9W+rY2LmnyQMtk8SMLTon8RAdwOaN2tNg5zVnDKlmVeOxPV2vhHIo9QEPV7jc3f+zVDquiNg1OaHX3cZXJDRY5MJpo+VanAcmqp4oasYLG+wrXUL5vJU0kqk2hGEskhP+Jjigrz1l6QnEwp6n8PMVeJp70Ii6ppeaK9GhF6fJE00ceLyxv08tKiPat4QdxZFgSbQknnEiCLD8Qc1rjazVKM3r3gXnnMeONgdz/yFV1q+haaN+wnF3Fn4uYCI9XsKOuVwDD0LsCO/f0gj5cmxCFcr7sclIcefWjvore+3aSU474cyqDVxH7w1RX3CHsaqsMRX17ZLgjsDXws3kLm2XJdM3Ku383UXqaHqsywzPhx7NFir0Fqjym/w6cxD2U9ypa3dx7Z12w/fi3Jps8sqJ8f8Ah8aZAvkHXvIRyrsxK7rrFaNNdNvjI8+3Emri195DCNa858anj2Qdny6Czshkn4N2+1m+k5S8sunX3Ja7I+JutRzg1mc2e9Yc0Zv9PZn1SwhxIdU9sXwZRTd/J5FoUm0e+PYREeHg3oc2YYzGf2xfJxXExt4pT3RfDRHvMXLUmoXOy63xv5pLuhOEax0dRgSywZ/GH+YBXFgCeTU0hZ8SPEFsn8punp1Kurd1KgXxUZ+la3R5+4ePGR4ZF5UQtOa83+Vj8zh80dfzbhxWCeoJnQ4dkZJM4drzknZOOKx2n3WrvJnzFIS8p0xeic+M3ZRVXIp10tV2DyYKwRxLzulPwzHcLlYTxl4PF7v8l106Azr+6wBFejbq/3P72C/0j78cepY9990/d4eAurn2lqdGKLU8FffnMw7cY7pVeXJRMU73Oxwi2g2vh/+4gX8dvbjfojn/eLVhhYl8GthwCQ50KcZq4z2JeW5eeOnJWFQEnVxDoG459TaC4zXybECEoJ0V5q1tXrQbDMtUxeTV6Pdt1/zJuc7TJoV/9YZFWxUtCf6Ou3Vd/vR/vG0138hJQrHkNeoep5dLe+6umcSquKvMaFpm3EZHDBOvCi0XYyIFHMgX7Cqp3JVXlxJFwQfHSaIUEbI2u1lBVUdlNw4Qa9UsLPEK94Qiln3pyKxQVCeNlx8yd7EegVNQBkFLabKvnietYVB4IPZ1fSor82arbgYec8aSdFMaIluYTYuNx32SxfrjKUdPGq+UNp5YpydoEG3xVLixtmHO9zXxKAnHnPuH2fPGrjx0GcuCDEU+yXUtXh6nfUL+cykws1gJ5vkfYFaFBr9PdCXvVf35OJQxzUMmWjv0W6uGJK11uAGDqSpOwCf6rouSIjPVgw57cJCOQ4b9tkI/Y5WNon9Swe72aZryKo8d+HyHBEdWJKrkary0LIGczA4Irq353Wc0Zga3om7UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B",y=Math.log2||function(e){return Math.log(e)/Math.LN2},b=function bits(e){return y(e)+1|0},w=function buildUnicodeProperties(e,n){var i=b(e.categories.length-1),u=b(e.combiningClasses.length-1),d=b(e.scripts.length-1),p=b(e.eaw.length-1),_=u+d+p+10,y=d+p+10,w=p+10,x=(1<<i)-1,P=(1<<u)-1,E=(1<<d)-1,k=(1<<p)-1,B=function getCategory(i){var u=n.get(i);return e.categories[u>>_&x]};return{getCategory:B,getCombiningClass:function getCombiningClass(i){var u=n.get(i);return e.combiningClasses[u>>y&P]},getScript:function getScript(i){var u=n.get(i);return e.scripts[u>>w&E]},getEastAsianWidth:function getEastAsianWidth(i){var u=n.get(i);return e.eaw[u>>10&k]},getNumericValue:function getNumericValue(e){var i=n.get(e),u=1023&i;if(0===u)return null;if(u<=50)return u-1;if(u<480){return((u>>4)-12)/(1+(15&u))}if(u<768){i=(u>>5)-14;for(var d=2+(31&u);d>0;){i*=10;d--}return i}i=(u>>2)-191;for(var p=1+(3&u);p>0;){i*=60;p--}return i},isAlphabetic:function isAlphabetic(e){var n=B(e);return"Lu"===n||"Ll"===n||"Lt"===n||"Lm"===n||"Lo"===n||"Nl"===n},isDigit:function isDigit(e){return"Nd"===B(e)},isPunctuation:function isPunctuation(e){var n=B(e);return"Pc"===n||"Pd"===n||"Pe"===n||"Pf"===n||"Pi"===n||"Po"===n||"Ps"===n},isLowerCase:function isLowerCase(e){return"Ll"===B(e)},isUpperCase:function isUpperCase(e){return"Lu"===B(e)},isTitleCase:function isTitleCase(e){return"Lt"===B(e)},isWhiteSpace:function isWhiteSpace(e){var n=B(e);return"Zs"===n||"Zl"===n||"Zp"===n},isBaseForm:function isBaseForm(e){var n=B(e);return"Nd"===n||"No"===n||"Nl"===n||"Lu"===n||"Ll"===n||"Lt"===n||"Lm"===n||"Lo"===n||"Me"===n||"Mc"===n},isMark:function isMark(e){var n=B(e);return"Mn"===n||"Me"===n||"Mc"===n}}}(p,new u(d.toByteArray(_)));n.localExports=w},{"base64-js":122,"unicode-trie":126}],126:[function(e,n,i){var u=e("tiny-inflate"),d=e("./swap").swap32LE,p=function(){function UnicodeTrie(e){var n="function"==typeof e.readUInt32BE&&"function"==typeof e.slice;if(n||e instanceof Uint8Array){var i;if(n){this.highStart=e.readUInt32LE(0);this.errorValue=e.readUInt32LE(4);i=e.readUInt32LE(8);e=e.slice(12)}else{var p=new DataView(e.buffer);this.highStart=p.getUint32(0,!0);this.errorValue=p.getUint32(4,!0);i=p.getUint32(8,!0);e=e.subarray(12)}e=u(e,new Uint8Array(i));e=u(e,new Uint8Array(i));d(e);this.data=new Uint32Array(e.buffer)}else{var _=e;this.data=_.data;this.highStart=_.highStart;this.errorValue=_.errorValue}}UnicodeTrie.prototype.get=function get(e){var n;if(e<0||e>1114111)return this.errorValue;if(e<55296||e>56319&&e<=65535){n=(this.data[e>>5]<<2)+(31&e);return this.data[n]}if(e<=65535){n=(this.data[2048+(e-55296>>5)]<<2)+(31&e);return this.data[n]}if(e<this.highStart){n=this.data[2080+(e>>11)];n=((n=this.data[n+(e>>5&63)])<<2)+(31&e);return this.data[n]}return this.data[this.data.length-4]};return UnicodeTrie}();n.localExports=p},{"./swap":127,"tiny-inflate":124}],127:[function(e,n,i){var u=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],d=function swap(e,n,i){var u=e[n];e[n]=e[i];e[i]=u};n.localExports={swap32LE:function swap32LE(e){u&&function swap32(e){for(var n=e.length,i=0;i<n;i+=4){d(e,i,i+3);d(e,i+1,i+2)}}(e)}}},{}],128:[function(e,n,i){i.byteLength=function byteLength(e){var n=getLens(e),i=n[0],u=n[1];return 3*(i+u)/4-u};i.toByteArray=function toByteArray(e){var n,i,u=getLens(e),_=u[0],y=u[1],b=new p(function _byteLength(e,n,i){return 3*(n+i)/4-i}(0,_,y)),w=0,x=y>0?_-4:_;for(i=0;i<x;i+=4){n=d[e.charCodeAt(i)]<<18|d[e.charCodeAt(i+1)]<<12|d[e.charCodeAt(i+2)]<<6|d[e.charCodeAt(i+3)];b[w++]=n>>16&255;b[w++]=n>>8&255;b[w++]=255&n}if(2===y){n=d[e.charCodeAt(i)]<<2|d[e.charCodeAt(i+1)]>>4;b[w++]=255&n}if(1===y){n=d[e.charCodeAt(i)]<<10|d[e.charCodeAt(i+1)]<<4|d[e.charCodeAt(i+2)]>>2;b[w++]=n>>8&255;b[w++]=255&n}return b};i.fromByteArray=function fromByteArray(e){for(var n,i=e.length,d=i%3,p=[],_=0,y=i-d;_<y;_+=16383)p.push(encodeChunk(e,_,_+16383>y?y:_+16383));if(1===d){n=e[i-1];p.push(u[n>>2]+u[n<<4&63]+"==")}else if(2===d){n=(e[i-2]<<8)+e[i-1];p.push(u[n>>10]+u[n>>4&63]+u[n<<2&63]+"=")}return p.join("")};for(var u=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=_.length;y<b;++y){u[y]=_[y];d[_.charCodeAt(y)]=y}d["-".charCodeAt(0)]=62;d["_".charCodeAt(0)]=63;function getLens(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=n);return[i,i===n?0:4-i%4]}function encodeChunk(e,n,i){for(var d,p,_=[],y=n;y<i;y+=3){d=(e[y]<<16&16711680)+(e[y+1]<<8&65280)+(255&e[y+2]);_.push(u[(p=d)>>18&63]+u[p>>12&63]+u[p>>6&63]+u[63&p])}return _.join("")}},{}],129:[function(e,n,i){arguments[4][124][0].apply(i,arguments)},{dup:124}],130:[function(e,n,i){arguments[4][126][0].apply(i,arguments)},{"./swap":131,dup:126,"tiny-inflate":129}],131:[function(e,n,i){arguments[4][127][0].apply(i,arguments)},{dup:127}],132:[function(e,n,i){i.OP=0;i.CL=1;i.CP=2;i.QU=3;i.GL=4;i.NS=5;i.EX=6;i.SY=7;i.IS=8;i.PR=9;i.PO=10;i.NU=11;i.AL=12;i.HL=13;i.ID=14;i.IN=15;i.HY=16;i.BA=17;i.BB=18;i.B2=19;i.ZW=20;i.CM=21;i.WJ=22;i.H2=23;i.H3=24;i.JL=25;i.JV=26;i.JT=27;i.RI=28;i.EB=29;i.EM=30;i.ZWJ=31;i.CB=32;i.AI=33;i.BK=34;i.CJ=35;i.CR=36;i.LF=37;i.NL=38;i.SA=39;i.SG=40;i.SP=41;i.XX=42},{}],133:[function(e,n,i){var u=e("unicode-trie"),d=e("base64-js"),p=e("./classes"),_=p.BK,y=p.CR,b=p.LF,w=p.NL,x=p.SG,P=p.WJ,E=p.SP,k=p.ZWJ,B=p.BA,j=p.HY,I=p.NS,O=p.AI,D=p.AL,R=p.CJ,N=p.HL,U=p.RI,G=p.SA,W=p.XX,X=e("./pairs"),K=X.DI_BRK,Y=X.IN_BRK,J=X.CI_BRK,$=X.CP_BRK,ee=(X.PR_BRK,X.pairTable),te=new u(d.toByteArray("AAgOAAAAAABA2gAAAZ8OYPHtnQ2s1lUdx8/l3vvc+zz3uVzvhQuR4I23CMqRqdkbM42lqRlM1iSohrQaVjMmrZjmRIWEphOITWUtlbXhmI2GLowxC+cge6GcxrImw5oQtmmgWdpm37PnnD3nHs77y///gM/dPjv/8z9vv/M7v/P6//+f+71OQtaCu8AWsBc8BX4HngN/AX8LcI+DE+BNMKaLkB4w0GVPNxFxRgzxZiLsXHAhmAc+Ba4EC8FiId2XcP1V8E3wbXATuB3cBjaATeB+8BB4GDzC0lIew/Ve8BT4Lfg9+BN4AbwEjoFXwX8A6Ub9QBUMgkndjfCpcGd3N8Kp/4NwPwI+CS4FV4CFYDG4A+HL4K4AK1n81XDXsPTrwUZwH3iwuyHjdrg7wW7wC7APPNLZ8D8NDjL/IbiHWZqjcF8BJ8FbLPxpFr+z0nB7Kk09UAYqTSYypoARhhjXxCzEnSvFp3q+yCMPFy4W8rsM11eCa8ASsLzSrO/XcX0juEkq/3b4bxBsYS38d4EtQlrKVpZum3B/B653gT2Vht1TaPu+DncfjQeeAc+ztEeYewzuq+ANQZa3cd3do68nzz9GV3XkPx5MBjPAB8AF4BNgPrgcLADXgiVgObieybSSuavhrgHrwUZwH3iAhW2H+1PwmKYejwv3n8D1fokDwvUfwLPgr+Dv4GVwErwFOnsJ6QPjwNlgOng/OB98vJfZBdzLwGeZfxHcJb3+OlvO0lwPd6VH+tUBZd0qpblT8K9lNnYP7t0LHuht9Oftve48DH4GHge/Ar8GfwR/ZtdHLOn/IVz/y6PcNm3axMHHgbLlaNOmTZs2bdq0aXN68XoLyKDif72jz0N0dFQbZ3n0ulJtnKXxsLFVe/oJiHMOizcT7qSuxnnNubi+kOU9D+58cFW1cR74ObAI10tZuq/A/UZ19PkQZRXu3dKlL/tmKi9YC9aB74M7wXqwoR3WDmuHtcPaYcnDNoJ7wdZq48y0TLZVy6Xs+rdp08rErmN3oI/tAj+vhj+n24O0TyrS78e9g+AQeAG8JMU5Dv8J8CYYUyOkBgZqDbkmwh2plT/+rBrb4DVwwQDW0Qa2g2Ng8lmnhi2V7v0Q/mdBfRBr98HGve/CfRT8E/QOEXI5OFJt6OHL4MfgMOjsI+Q8QHoIuaav4Re5DWzuMLMPcV5keVCm1Qm5DjwIjoCp/YQs67fncyazqr+pnzZt2rR5p/Fov3nun4X5aG5NH35e7dQ1Cw/7KMIukdLOh/8qdu98zfkafS/rxsTvZZm4WlO/RYZ6U5bSubob86oi3gp2b6UlDxurFfpVYcpjjUKGdbXGu2Cv4fpuXG9h/h/B/QnYwfy74O4BTzA/PXvcX2ueKx6sjZbhEG3frsY6hr47eBTuK+ANjZ08hzzfFuT7N+jp09dxAX2Ps6/pp/Enwj/Sx+wV7lwWTs9AL9LkxdNf3KfW2SbDuemnkeZq8HnwBXAdy2MF3JWa/HTQ+qxGmlvBWrChb7R8tKxNLM/7hbrZeMggx3aE7fSUMze7W0yeMvgl08EBgy5+owl7xtEuchJa7+cTtj19L/FFQRd033qc5X8C7n8LsjNSV9/vqTfem6zXmzKOr9v38ZNZ/Blw5zjEF6HvWZZtG7628yHU8WP18so3cSnkugIsULTxtZp2b1W+CHmXJZCZ2vQKZtvfgvudevMd8dOBWwy2Ruu3DuF3B+hpc4E2nNr2t9ZHh28roC47mI53JupHu7vsZdrGz92QZW+98R3Ak8w9wMbgg55jMeUQ0hwGR8HLQvqTtM+AMdiT1fqb94dwPQmMgGlgNgubC/fDQrx5uL6E+T8DdyG7FvWxWNjvzWTplrF7X2PuDXDPEfKl52Q394+uwx3w/0DKf3G/vy7OJDbTtukKH4O29pc/FsQyTOwMgplgGmOGQxpXZgMsAUlnYwlGsPwjNXZN79G/MUIYmo2cxVx6JNLnSC+jLlCR/LkhrA5jCixTLp+2ZQfzD5P235x3OKo++V7N/Rx0sXagfb4qQO1zKoNf8zFikDRtmqfjcYektCKdkp+QvP1taub8W738VoPbh2gD3O+qM9mmxDRDlrRFUFS/PR3oCkyjI0SG0HaU1yq2ti3b7nJCdUHHfD5n8ftVop/DWp1Bod2GFdcV5trm7/4WIrR9awLyOt1Hp6LOKqT49X0ZY7Pr/qcmXMsy5axzhdjrbtOPHK6Ky+O46iN1u54JNiWPr2cSPnqok/D9VBn2l1Mncho6NvM+Le4hxX1bEbLq5Jfv6+IVaeut2MeKOkvw6XM55kdf+y6j76Wsuy0vX/kGGUWOa3J/KbN/pGoflz43rLhn01HovMPX26q8+f2qojzVOFp2+6TA1C42GWLWAap+6WovKh0U3R6x+k4tR0h/qBJ7+xc1HxXV/0NsWra5Mvq9Ts5UejfpwDZO5NoH8HHYdc11OvR/1zbJ3f9Nbeh6ni/KXPQzgCLHItO4FKN/37HHZXzMqesUenctL7f9u+StWyeKbRbSZ1OTcj7w7RO+441oB742P6tFkOWqRuZX99Aj35e2um587UKlkyEJ8V6XcD3I/BUFXSyd/EzENh6l3vfLz724S/86BDdmLZNqbTjocN80FpfFHNLsH7Fzi2hburUNfz4eMy7q5I3th67l69JPKpl3l8zZJVPG+kFep5n6UW7KLLvo8ulfBxk9fvjKahv3QnHdF+Xan8jzj2rtU0T5ZezP5P1FmWtlrvtuwc9tT1z/hq7/crUfXwdy+Yek+7KN8fk8h/wxa7uU5Nwnuu4f65Kft0fsuiV2L+drv6Y9XS5M+uVxytz7DXvoL5bU41/s3kleQ5n6YOx+YZCEzf2xsqvq4Ju2qH7hWs9U+/1U46NtPsk5Pst25fMehE7m1OcpuXDtS7b2km0sxfhh6lvD0nXZfZHC11o6m+J0Sf7xTPYRoR5yvHFk9LconaT53WSnwi/GpQwI0Pz4N56qdqDl1iyIMtBy2L8k1Oqml8nWIcQ1xTfZq2i3uvlhgiKtzzwn273LN1a8fuL3QvI3RC7pQ/cDYn+sGqhZwn3T1hLlLZJ6jI/Zz3J7l9uwRtzaRUzn8+6sq93k+P7PVLbqOzrVd5gmdOX5pnPVi9y+OcrzkSm0Liq55HuqcO7K393a2lalC7kOJt2ZbMjFHkLa2lZuiv5g0o3Jn8J+UuXvqrNY3cXK5ctAAhnon/icMlTWsQyfMnPodKxETF4x86oO3/kjJ/XANLJd5JDLpw+lKCtUBldd+uSj8rvel/OIrZ+r3l3T5Ojfpnrb9Mbz4eFjFeVMIWnGk5A66nSYQpcx7a6yOa4/VZwUMhelf1u9i0a2eRty31TZ9FRNfFV/kMPEfqfTk0oOVT4qeaYYylWh0tUUiaJsRPR3aqBh/LmYLD/96whwc8zDofbOZSqyj7jqqYwyfd0y9VZk2UXZSiq7ljGdo8rPwOUz3Apxex5hw/W9Gd2zDN0YZcN07i+eUxOpnuIYKPrpn6lPyPnzdzxU5+IqPY1j6M7SiaIMXZ3EdLH7Qd+5PTWyPPz3FDuEON3Cta2diJTWFq9buBbT2dCdheviqu7zZzOyPqaza5ubm6LKsZXvUm9b2HRy6jPUbgneJq2m/1T1V9nfdKK2Q9EefZgeiU0ntvVijnbQ6caG7/OvmDk41XyuW1/4vm+QWgZxzhNx1a8sk+97EDn0maI812ejofDvVfh+0WVNF/KMOOZ9IJfyY9+RMenHxX5s5eV4zz73s3xaRhnf8Mjtrau/yzuMofbG05f5PZXr/JHzvQ7f8VPO21f/ru3qqgdVPjH1t/Xx2PrLTATvKpCiy/Ndf6b8Vk/Ou4zv9WQZ3lcyOdcadU2b0t/CHSZ+v5vbar/JGws/s/DtDzn2Gz7w9Wmq9VkvaZ7V8N825mtTwu4PGOofW75qn8fLdXXldKY9ZIfgUvn5Xl18fmMrxwZ/n1S1Zy3D1nnZE5jL6ynLqtJhh+T67PHlfX7FM49YSKDsucrnuu2QrrmeUp3pFIHpjCs3Yn+itluVwvm7orb+5jrGi+PVe0jjXKyM/qySzXR2U9bcKq7Hc9Xbp+3K0oOsE5f9YFnycVsqo9w5UvlFnDOF2pvLM0VXW3Bpe105pjVZEfbkqhNbP7DJH7uf9+mPOW0q1u5c1ts5zjx1xLZLUWN3aDv7PhfJ2efK6B++upP7tO938qLthp4XprAV6orfw4bYqPx+icrOfNtPlCv0vDakTXXv4/D2cSnT1H+K7N9F95/UY4BoP7HnLqL8Jtt2rXOsPD5rAtf5UNcvRTv2aX9ux+JYYSsz9/qGlsl//5C/tyD/hqZtzRqyfhPLl+P6tF9s/eXfHnXBR76U809IX7Dps4h1mInY33FylV/+fbNBEvb7TTHjUqqxPHZ8pHkMCXnlaludvRetrxA9qsJV66dBT136tl9RNiGP2eJ4l+rd5lB7CXnPzHd8iF1bcfi7WalslOebam1kwkWftv6Sqj1M9pCzP9jmy5zjT+7xTkeNnPobR6ns1ofYsyeeRyudvciIfx0Ccjz5Ho9PNPFzy6yT07d9TP9/nJeTo31S6S10/Eo1h8boXjd++8gVqz+fNYgKHpZ6/i+i78eer6vmYptOYwiRUf6GJ9befSnznYYU8sd+r5NbP7n7iGnMUJ2FF21frmOa65iXon+m7sMh43jO/Iu0Nd95Ize5bEel11zzhE8binFVZ8kxfde3XkWNH642aatDSrtOIbfLuBFzHuDzm6Ku8vi2v09+KvsNrT//K8smOTWL35eQ36QR1yepf+cmdX71DPLmWMtOLghV2VM091OgaoMiy9DdF3+bSqUHVXjRnKNAlk8lr40UsvmU5yOPSj45rmtdphjy9LEtlasrS5c2tA+Yxu7YNnSdI3LmnatuNrt1ab/Q/F3LTEHRegwpx9TXi/qdQPG3s0z/FyK1TfiOu75lprar1HrPXX5q+VPJl6u/pqyfi+2EriV87N1njVDEuky11ojpa6b1S5FrthhCz3Ryn/H8Hw==")),re=function mapClass(e){switch(e){case O:return D;case G:case x:case W:return D;case R:return I;default:return e}},ne=function mapFirst(e){switch(e){case b:case w:return _;case E:return P;default:return e}},ie=function Break(e,n){void 0===n&&(n=!1);this.position=e;this.required=n},oe=function(){function LineBreaker(e){this.string=e;this.pos=0;this.lastPos=0;this.curClass=null;this.nextClass=null;this.LB8a=!1;this.LB21a=!1;this.LB30a=0}var e=LineBreaker.prototype;e.nextCodePoint=function nextCodePoint(){var e=this.string.charCodeAt(this.pos++),n=this.string.charCodeAt(this.pos);if(55296<=e&&e<=56319&&56320<=n&&n<=57343){this.pos++;return 1024*(e-55296)+(n-56320)+65536}return e};e.nextCharClass=function nextCharClass(){return re(te.get(this.nextCodePoint()))};e.getSimpleBreak=function getSimpleBreak(){switch(this.nextClass){case E:return!1;case _:case b:case w:this.curClass=_;return!1;case y:this.curClass=y;return!1}return null};e.getPairTableBreak=function getPairTableBreak(e){var n=!1;switch(ee[this.curClass][this.nextClass]){case K:n=!0;break;case Y:n=e===E;break;case J:if(!(n=e===E))return n=!1;break;case $:if(e!==E)return n}this.LB8a&&(n=!1);if(!this.LB21a||this.curClass!==j&&this.curClass!==B)this.LB21a=this.curClass===N;else{n=!1;this.LB21a=!1}if(this.curClass===U){this.LB30a++;if(2==this.LB30a&&this.nextClass===U){n=!0;this.LB30a=0}}else this.LB30a=0;this.curClass=this.nextClass;return n};e.nextBreak=function nextBreak(){if(null==this.curClass){var e=this.nextCharClass();this.curClass=ne(e);this.nextClass=e;this.LB8a=e===k;this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;var n=this.nextClass;this.nextClass=this.nextCharClass();if(this.curClass===_||this.curClass===y&&this.nextClass!==b){this.curClass=ne(re(this.nextClass));return new ie(this.lastPos,!0)}var i=this.getSimpleBreak();null===i&&(i=this.getPairTableBreak(n));this.LB8a=this.nextClass===k;if(i)return new ie(this.lastPos)}if(this.pos>=this.string.length){if(this.lastPos<this.string.length){this.lastPos=this.string.length;return new ie(this.string.length)}return null}};return LineBreaker}();n.localExports=oe},{"./classes":132,"./pairs":134,"base64-js":128,"unicode-trie":130}],134:[function(e,n,i){i.DI_BRK=0;i.IN_BRK=1;i.CI_BRK=2;i.CP_BRK=3;i.PR_BRK=4;i.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,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,0,1,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,0,0,1,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,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,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,0,1,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,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,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,0,0,1,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,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,0,0,1,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,0,0,1,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,0,0,1,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,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,0,0,0,0,0,0,0,0,1,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,0,1,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,0,1,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,0,0,1,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,1,1,1,0],[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,1,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,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,0,0,1,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,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,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,0,0,0,0,1,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,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,0,0,0,1,1,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,0,0,0,0,1,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,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,0,0,0,0,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,0,0,0,0,1,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,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]]},{}],135:[function(e,n,i){(function(i){(function(){var u=e("@babel/runtime-corejs2/core-js/object/assign"),d=e("stream"),p=e("@babel/runtime-corejs2/core-js/array/is-array"),_=e("@babel/runtime-corejs2/core-js/object/keys"),y=e("zlib"),b=e("@babel/runtime-corejs2/core-js/parse-int"),w=e("@babel/runtime-corejs2/core-js/number/is-finite"),x=e("@babel/runtime-corejs2/core-js/json/stringify"),P=e("fontkit"),E=e("@babel/runtime-corejs2/core-js/object/create"),k=e("events"),B=e("linebreak"),j=e("png-js");function _defineProperties(e,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1;u.configurable=!0;"value"in u&&(u.writable=!0);Object.defineProperty(e,u.key,u)}}function _extends(e,n,i){return(_extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(e[u]=i[u])}return e}).apply(this,arguments)}function _inheritsLoose(e,n){e.prototype=Object.create(n.prototype);e.prototype.constructor=e;_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,n){e.__proto__=n;return e})(e,n)}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,u=new Array(n);i<n;i++)u[i]=e[i];return u}function _createForOfIteratorHelperLoose(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);return"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var I,O,D,R,N,U,G=function(){function PDFAbstractReference(){}PDFAbstractReference.prototype.toString=function toString(){throw new Error("Must be implemented by subclasses")};return PDFAbstractReference}(),W=function(){function PDFTree(e){void 0===e&&(e={});this._items={};this.limits="boolean"!=typeof e.limits||e.limits}var e=PDFTree.prototype;e.add=function add(e,n){return this._items[e]=n};e.get=function get(e){return this._items[e]};e.toString=function toString(){var e=this,n=_(this._items).sort((function(n,i){return e._compareKeys(n,i)})),i=["<<"];if(this.limits&&n.length>1){var u=n[0],d=n[n.length-1];i.push(" /Limits "+J.convert([this._dataForKey(u),this._dataForKey(d)]))}i.push(" /"+this._keysName()+" [");for(var p,y=_createForOfIteratorHelperLoose(n);!(p=y()).done;){var b=p.value;i.push(" "+J.convert(this._dataForKey(b))+" "+J.convert(this._items[b]))}i.push("]");i.push(">>");return i.join("\n")};e._compareKeys=function _compareKeys(){throw new Error("Must be implemented by subclasses")};e._keysName=function _keysName(){throw new Error("Must be implemented by subclasses")};e._dataForKey=function _dataForKey(){throw new Error("Must be implemented by subclasses")};return PDFTree}(),X=function pad(e,n){return(Array(n+1).join("0")+e).slice(-n)},K=/[\n\r\t\b\f()\\]/g,Y={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},J=function(){function PDFObject(){}PDFObject.convert=function convert(e,n){void 0===n&&(n=null);if("string"==typeof e)return"/"+e;if(e instanceof String){for(var u,d=e,_=!1,y=0,b=d.length;y<b;y++)if(d.charCodeAt(y)>127){_=!0;break}u=_?function swapBytes(e){var n=e.length;if(1&n)throw new Error("Buffer length must be even");for(var i=0,u=n-1;i<u;i+=2){var d=e[i];e[i]=e[i+1];e[i+1]=d}return e}(i.from("\ufeff"+d,"utf16le")):i.from(d.valueOf(),"ascii");return"("+(d=(d=n?n(u).toString("binary"):u.toString("binary")).replace(K,(function(e){return Y[e]})))+")"}if(i.isBuffer(e))return"<"+e.toString("hex")+">";if(e instanceof G||e instanceof W)return e.toString();if(e instanceof Date){var w="D:"+X(e.getUTCFullYear(),4)+X(e.getUTCMonth()+1,2)+X(e.getUTCDate(),2)+X(e.getUTCHours(),2)+X(e.getUTCMinutes(),2)+X(e.getUTCSeconds(),2)+"Z";n&&(w=(w=n(i.from(w,"ascii")).toString("binary")).replace(K,(function(e){return Y[e]})));return"("+w+")"}if(p(e)){return"["+e.map((function(e){return PDFObject.convert(e,n)})).join(" ")+"]"}if("[object Object]"==={}.toString.call(e)){var x=["<<"];for(var P in e){var E=e[P];x.push("/"+P+" "+PDFObject.convert(E,n))}x.push(">>");return x.join("\n")}return"number"==typeof e?PDFObject.number(e):""+e};PDFObject.number=function number(e){if(e>-1e21&&e<1e21)return Math.round(1e6*e)/1e6;throw new Error("unsupported number: "+e)};return PDFObject}(),$=function(e){_inheritsLoose(PDFReference,e);function PDFReference(n,i,u){var d;void 0===u&&(u={});(d=e.call(this)||this).document=n;d.id=i;d.data=u;d.gen=0;d.compress=d.document.compress&&!d.data.Filter;d.uncompressedLength=0;d.buffer=[];return d}var n=PDFReference.prototype;n.write=function write(e){i.isBuffer(e)||(e=i.from(e+"\n","binary"));this.uncompressedLength+=e.length;null==this.data.Length&&(this.data.Length=0);this.buffer.push(e);this.data.Length+=e.length;if(this.compress)return this.data.Filter="FlateDecode"};n.end=function end(e){e&&this.write(e);return this.finalize()};n.finalize=function finalize(){this.offset=this.document._offset;var e=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;if(this.buffer.length){this.buffer=i.concat(this.buffer);this.compress&&(this.buffer=y.deflateSync(this.buffer));e&&(this.buffer=e(this.buffer));this.data.Length=this.buffer.length}this.document._write(this.id+" "+this.gen+" obj");this.document._write(J.convert(this.data,e));if(this.buffer.length){this.document._write("stream");this.document._write(this.buffer);this.buffer=[];this.document._write("\nendstream")}this.document._write("endobj");this.document._refEnd(this)};n.toString=function toString(){return this.id+" "+this.gen+" R"};return PDFReference}(G),ee={top:72,left:72,bottom:72,right:72},te={"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]},re=function(){function PDFPage(e,n){void 0===n&&(n={});this.document=e;this.size=n.size||"letter";this.layout=n.layout||"portrait";if("number"==typeof n.margin)this.margins={top:n.margin,left:n.margin,bottom:n.margin,right:n.margin};else{this.margins=n.margins||ee;this.margins={top:this.margins.top,left:this.margins.left,bottom:this.margins.bottom,right:this.margins.right}}var i=p(this.size)?this.size:te[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"]});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,Tabs:"S"});this.markings=[]}var e=PDFPage.prototype;e.maxY=function maxY(){return this.height-this.margins.bottom};e.write=function write(e){return this.content.write(e)};e.end=function end(){this.dictionary.end();this.resources.end();return this.content.end()};!function _createClass(e,n,i){n&&_defineProperties(e.prototype,n);i&&_defineProperties(e,i);return e}(PDFPage,[{key:"fonts",get:function get(){var e=this.resources.data;return null!=e.Font?e.Font:e.Font={}}},{key:"xobjects",get:function get(){var e=this.resources.data;return null!=e.XObject?e.XObject:e.XObject={}}},{key:"ext_gstates",get:function get(){var e=this.resources.data;return null!=e.ExtGState?e.ExtGState:e.ExtGState={}}},{key:"patterns",get:function get(){var e=this.resources.data;return null!=e.Pattern?e.Pattern:e.Pattern={}}},{key:"colorSpaces",get:function get(){var e=this.resources.data;return e.ColorSpace||(e.ColorSpace={})}},{key:"annotations",get:function get(){var e=this.dictionary.data;return null!=e.Annots?e.Annots:e.Annots=[]}},{key:"structParentTreeKey",get:function get(){var e=this.dictionary.data;return null!=e.StructParents?e.StructParents:e.StructParents=this.document.createStructParentTreeNextKey()}}]);return PDFPage}(),ne=function(e){_inheritsLoose(PDFNameTree,e);function PDFNameTree(){return e.apply(this,arguments)||this}var n=PDFNameTree.prototype;n._compareKeys=function _compareKeys(e,n){return e.localeCompare(n)};n._keysName=function _keysName(){return"Names"};n._dataForKey=function _dataForKey(e){return new String(e)};return PDFNameTree}(W),ie=J.number,oe=function(){function PDFGradient(e){this.doc=e;this.stops=[];this.embedded=!1;this.transform=[1,0,0,1,0,0]}var e=PDFGradient.prototype;e.stop=function stop(e,n,i){null==i&&(i=1);n=this.doc._normalizeColor(n);if(0===this.stops.length)if(3===n.length)this._colorSpace="DeviceRGB";else if(4===n.length)this._colorSpace="DeviceCMYK";else{if(1!==n.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==n.length||"DeviceCMYK"===this._colorSpace&&4!==n.length||"DeviceGray"===this._colorSpace&&1!==n.length)throw new Error("All gradient stops must use the same color space");i=Math.max(0,Math.min(1,i));this.stops.push([e,n,i]);return this};e.setTransform=function setTransform(e,n,i,u,d,p){this.transform=[e,n,i,u,d,p];return this};e.embed=function embed(e){var n,i=this.stops.length;if(0!==i){this.embedded=!0;this.matrix=e;var u=this.stops[i-1];u[0]<1&&this.stops.push([1,u[1],u[2]]);for(var d=[],p=[],_=[],y=0;y<i-1;y++){p.push(0,1);y+2!==i&&d.push(this.stops[y+1][0]);n=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[y+0][1],C1:this.stops[y+1][1],N:1});_.push(n);n.end()}1===i?n=_[0]:(n=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:_,Bounds:d,Encode:p})).end();this.id="Sh"+ ++this.doc._gradCount;var b=this.shader(n);b.end();var w=this.doc.ref({Type:"Pattern",PatternType:2,Shading:b,Matrix:this.matrix.map(ie)});w.end();if(this.stops.some((function(e){return e[2]<1}))){var x=this.opacityGradient();x._colorSpace="DeviceGray";for(var P,E=_createForOfIteratorHelperLoose(this.stops);!(P=E()).done;){var k=P.value;x.stop(k[0],[k[2]])}x=x.embed(this.matrix);var B=[0,0,this.doc.page.width,this.doc.page.height],j=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:B,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:x}}});j.write("/Pattern cs /Sh1 scn");j.end(B.join(" ")+" re f");var I=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:j}});I.end();var O=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:B,XStep:B[2],YStep:B[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:w},ExtGState:{Gs1:I}}});O.write("/Gs1 gs /Pattern cs /Sh1 scn");O.end(B.join(" ")+" re f");this.doc.page.patterns[this.id]=O}else this.doc.page.patterns[this.id]=w;return w}};e.apply=function apply(e){var n=this.doc._ctm,i=n[0],u=n[1],d=n[2],p=n[3],_=n[4],y=n[5],b=this.transform,w=b[0],x=b[1],P=b[2],E=b[3],k=b[4],B=b[5],j=[i*w+d*x,u*w+p*x,i*P+d*E,u*P+p*E,i*k+d*B+_,u*k+p*B+y];this.embedded&&j.join(" ")===this.matrix.join(" ")||this.embed(j);this.doc._setColorSpace("Pattern",e);var I=e?"SCN":"scn";return this.doc.addContent("/"+this.id+" "+I)};return PDFGradient}(),ae={PDFGradient:oe,PDFLinearGradient:function(e){_inheritsLoose(PDFLinearGradient,e);function PDFLinearGradient(n,i,u,d,p){var _;(_=e.call(this,n)||this).x1=i;_.y1=u;_.x2=d;_.y2=p;return _}var n=PDFLinearGradient.prototype;n.shader=function shader(e){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:e,Extend:[!0,!0]})};n.opacityGradient=function opacityGradient(){return new PDFLinearGradient(this.doc,this.x1,this.y1,this.x2,this.y2)};return PDFLinearGradient}(oe),PDFRadialGradient:function(e){_inheritsLoose(PDFRadialGradient,e);function PDFRadialGradient(n,i,u,d,p,_,y){var b;(b=e.call(this,n)||this).doc=n;b.x1=i;b.y1=u;b.r1=d;b.x2=p;b.y2=_;b.r2=y;return b}var n=PDFRadialGradient.prototype;n.shader=function shader(e){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:e,Extend:[!0,!0]})};n.opacityGradient=function opacityGradient(){return new PDFRadialGradient(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)};return PDFRadialGradient}(oe)},se=ae.PDFGradient,le=ae.PDFLinearGradient,ue=ae.PDFRadialGradient,ce={initColor:function initColor(){this._opacityRegistry={};this._opacityCount=0;this._patternCount=0;return this._gradCount=0},_normalizeColor:function _normalizeColor(e){if("string"==typeof e)if("#"===e.charAt(0)){4===e.length&&(e=e.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));var n=b(e.slice(1),16);e=[n>>16,n>>8&255,255&n]}else fe[e]&&(e=fe[e]);if(p(e)){3===e.length?e=e.map((function(e){return e/255})):4===e.length&&(e=e.map((function(e){return e/100})));return e}return null},_setColor:function _setColor(e,n){if(e instanceof se){e.apply(n);return!0}return this._setColorCore(e,n)},_setColorCore:function _setColorCore(e,n){if(!(e=this._normalizeColor(e)))return!1;var i=n?"SCN":"scn",u=this._getColorSpace(e);this._setColorSpace(u,n);e=e.join(" ");this.addContent(e+" "+i);return!0},_setColorSpace:function _setColorSpace(e,n){var i=n?"CS":"cs";return this.addContent("/"+e+" "+i)},_getColorSpace:function _getColorSpace(e){return 4===e.length?"DeviceCMYK":"DeviceRGB"},fillColor:function fillColor(e,n){this._setColor(e,!1)&&this.fillOpacity(n);this._fillColor=[e,n];return this},strokeColor:function strokeColor(e,n){this._setColor(e,!0)&&this.strokeOpacity(n);return this},opacity:function opacity(e){this._doOpacity(e,e);return this},fillOpacity:function fillOpacity(e){this._doOpacity(e,null);return this},strokeOpacity:function strokeOpacity(e){this._doOpacity(null,e);return this},_doOpacity:function _doOpacity(e,n){var i,u;if(null!=e||null!=n){null!=e&&(e=Math.max(0,Math.min(1,e)));null!=n&&(n=Math.max(0,Math.min(1,n)));var d=e+"_"+n;if(this._opacityRegistry[d]){var p=this._opacityRegistry[d];i=p[0];u=p[1]}else{i={Type:"ExtGState"};null!=e&&(i.ca=e);null!=n&&(i.CA=n);(i=this.ref(i)).end();u="Gs"+ ++this._opacityCount;this._opacityRegistry[d]=[i,u]}this.page.ext_gstates[u]=i;return this.addContent("/"+u+" gs")}},linearGradient:function linearGradient(e,n,i,u){return new le(this,e,n,i,u)},radialGradient:function radialGradient(e,n,i,u,d,p){return new ue(this,e,n,i,u,d,p)}},fe={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]};I=O=D=R=N=U=0;var he={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},de={M:function M(e,n){I=n[0];O=n[1];D=R=null;N=I;U=O;return e.moveTo(I,O)},m:function m(e,n){I+=n[0];O+=n[1];D=R=null;N=I;U=O;return e.moveTo(I,O)},C:function C(e,n){I=n[4];O=n[5];D=n[2];R=n[3];return e.bezierCurveTo.apply(e,n)},c:function c(e,n){e.bezierCurveTo(n[0]+I,n[1]+O,n[2]+I,n[3]+O,n[4]+I,n[5]+O);D=I+n[2];R=O+n[3];I+=n[4];return O+=n[5]},S:function S(e,n){if(null===D){D=I;R=O}e.bezierCurveTo(I-(D-I),O-(R-O),n[0],n[1],n[2],n[3]);D=n[0];R=n[1];I=n[2];return O=n[3]},s:function s(e,n){if(null===D){D=I;R=O}e.bezierCurveTo(I-(D-I),O-(R-O),I+n[0],O+n[1],I+n[2],O+n[3]);D=I+n[0];R=O+n[1];I+=n[2];return O+=n[3]},Q:function Q(e,n){D=n[0];R=n[1];I=n[2];O=n[3];return e.quadraticCurveTo(n[0],n[1],I,O)},q:function q(e,n){e.quadraticCurveTo(n[0]+I,n[1]+O,n[2]+I,n[3]+O);D=I+n[0];R=O+n[1];I+=n[2];return O+=n[3]},T:function T(e,n){if(null===D){D=I;R=O}else{D=I-(D-I);R=O-(R-O)}e.quadraticCurveTo(D,R,n[0],n[1]);D=I-(D-I);R=O-(R-O);I=n[0];return O=n[1]},t:function t(e,n){if(null===D){D=I;R=O}else{D=I-(D-I);R=O-(R-O)}e.quadraticCurveTo(D,R,I+n[0],O+n[1]);I+=n[0];return O+=n[1]},A:function A(e,n){pe(e,I,O,n);I=n[5];return O=n[6]},a:function a(e,n){n[5]+=I;n[6]+=O;pe(e,I,O,n);I=n[5];return O=n[6]},L:function L(e,n){I=n[0];O=n[1];D=R=null;return e.lineTo(I,O)},l:function l(e,n){I+=n[0];O+=n[1];D=R=null;return e.lineTo(I,O)},H:function H(e,n){I=n[0];D=R=null;return e.lineTo(I,O)},h:function h(e,n){I+=n[0];D=R=null;return e.lineTo(I,O)},V:function V(e,n){O=n[0];D=R=null;return e.lineTo(I,O)},v:function v(e,n){O+=n[0];D=R=null;return e.lineTo(I,O)},Z:function Z(e){e.closePath();I=N;return O=U},z:function z(e){e.closePath();I=N;return O=U}},pe=function solveArc(e,n,i,u){for(var d,p=u[0],_=u[1],y=u[2],b=u[3],w=u[4],x=u[5],P=u[6],E=_createForOfIteratorHelperLoose(ge(x,P,p,_,b,w,y,n,i));!(d=E()).done;){var k=d.value,B=_e.apply(void 0,k);e.bezierCurveTo.apply(e,B)}},ge=function arcToSegments(e,n,i,u,d,p,_,y,b){var w=_*(Math.PI/180),x=Math.sin(w),P=Math.cos(w);i=Math.abs(i);u=Math.abs(u);var E=(D=P*(y-e)*.5+x*(b-n)*.5)*D/(i*i)+(R=P*(b-n)*.5-x*(y-e)*.5)*R/(u*u);if(E>1){i*=E=Math.sqrt(E);u*=E}var k=P/i,B=x/i,j=-x/u,I=P/u,O=k*y+B*b,N=j*y+I*b,U=k*e+B*n,G=j*e+I*n,W=1/((U-O)*(U-O)+(G-N)*(G-N))-.25;W<0&&(W=0);var X=Math.sqrt(W);p===d&&(X=-X);var K=.5*(O+U)-X*(G-N),Y=.5*(N+G)+X*(U-O),J=Math.atan2(N-Y,O-K),$=Math.atan2(G-Y,U-K)-J;$<0&&1===p?$+=2*Math.PI:$>0&&0===p&&($-=2*Math.PI);for(var ee=Math.ceil(Math.abs($/(.5*Math.PI+.001))),te=[],re=0;re<ee;re++){var ne=J+re*$/ee,ie=J+(re+1)*$/ee;te[re]=[K,Y,ne,ie,i,u,x,P]}return te},_e=function segmentToBezier(e,n,i,u,d,p,_,y){var b=y*d,w=-_*p,x=_*d,P=y*p,E=.5*(u-i),k=8/3*Math.sin(.5*E)*Math.sin(.5*E)/Math.sin(E),B=e+Math.cos(i)-k*Math.sin(i),j=n+Math.sin(i)+k*Math.cos(i),I=e+Math.cos(u),O=n+Math.sin(u),D=I+k*Math.sin(u),R=O-k*Math.cos(u);return[b*B+w*j,x*B+P*j,b*D+w*R,x*D+P*R,b*I+w*O,x*I+P*O]},me=function(){function SVGPath(){}SVGPath.apply=function apply(e,n){!function apply(e,n){I=O=D=R=N=U=0;for(var i=0;i<e.length;i++){var u=e[i];"function"==typeof de[u.cmd]&&de[u.cmd](n,u.args)}}(function parse(e){for(var n,i,u=[],d=[],p="",_=!1,y=0,b=_createForOfIteratorHelperLoose(e);!(i=b()).done;){var w=i.value;if(null!=he[w]){y=he[w];if(n){p.length>0&&(d[d.length]=+p);u[u.length]={cmd:n,args:d};d=[];p="";_=!1}n=w}else if(-1!==[" ",","].indexOf(w)||"-"===w&&p.length>0&&"e"!==p[p.length-1]||"."===w&&_){if(0===p.length)continue;if(d.length===y){u[u.length]={cmd:n,args:d};d=[+p];"M"===n&&(n="L");"m"===n&&(n="l")}else d[d.length]=+p;_="."===w;p=-1!==["-","."].indexOf(w)?w:""}else{p+=w;"."===w&&(_=!0)}}if(p.length>0)if(d.length===y){u[u.length]={cmd:n,args:d};d=[+p];"M"===n&&(n="L");"m"===n&&(n="l")}else d[d.length]=+p;u[u.length]={cmd:n,args:d};return u}(n),e)};return SVGPath}(),ve=J.number,ye=(Math.sqrt(2)-1)/3*4,be={initVector:function initVector(){this._ctm=[1,0,0,1,0,0];return this._ctmStack=[]},save:function save(){this._ctmStack.push(this._ctm.slice());return this.addContent("q")},restore:function restore(){this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0];return this.addContent("Q")},closePath:function closePath(){return this.addContent("h")},lineWidth:function lineWidth(e){return this.addContent(ve(e)+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function lineCap(e){"string"==typeof e&&(e=this._CAP_STYLES[e.toUpperCase()]);return this.addContent(e+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function lineJoin(e){"string"==typeof e&&(e=this._JOIN_STYLES[e.toUpperCase()]);return this.addContent(e+" j")},miterLimit:function miterLimit(e){return this.addContent(ve(e)+" M")},dash:function dash(e,n){void 0===n&&(n={});var i=e;p(e)||(e=[e,n.space||e]);if(!e.every((function(e){return w(e)&&e>0})))throw new Error("dash("+x(i)+", "+x(n)+") invalid, lengths must be numeric and greater than zero");e=e.map(ve).join(" ");return this.addContent("["+e+"] "+ve(n.phase||0)+" d")},undash:function undash(){return this.addContent("[] 0 d")},moveTo:function moveTo(e,n){return this.addContent(ve(e)+" "+ve(n)+" m")},lineTo:function lineTo(e,n){return this.addContent(ve(e)+" "+ve(n)+" l")},bezierCurveTo:function bezierCurveTo(e,n,i,u,d,p){return this.addContent(ve(e)+" "+ve(n)+" "+ve(i)+" "+ve(u)+" "+ve(d)+" "+ve(p)+" c")},quadraticCurveTo:function quadraticCurveTo(e,n,i,u){return this.addContent(ve(e)+" "+ve(n)+" "+ve(i)+" "+ve(u)+" v")},rect:function rect(e,n,i,u){return this.addContent(ve(e)+" "+ve(n)+" "+ve(i)+" "+ve(u)+" re")},roundedRect:function roundedRect(e,n,i,u,d){null==d&&(d=0);var p=(d=Math.min(d,.5*i,.5*u))*(1-ye);this.moveTo(e+d,n);this.lineTo(e+i-d,n);this.bezierCurveTo(e+i-p,n,e+i,n+p,e+i,n+d);this.lineTo(e+i,n+u-d);this.bezierCurveTo(e+i,n+u-p,e+i-p,n+u,e+i-d,n+u);this.lineTo(e+d,n+u);this.bezierCurveTo(e+p,n+u,e,n+u-p,e,n+u-d);this.lineTo(e,n+d);this.bezierCurveTo(e,n+p,e+p,n,e+d,n);return this.closePath()},ellipse:function ellipse(e,n,i,u){null==u&&(u=i);var d=i*ye,p=u*ye,_=(e-=i)+2*i,y=(n-=u)+2*u,b=e+i,w=n+u;this.moveTo(e,w);this.bezierCurveTo(e,w-p,b-d,n,b,n);this.bezierCurveTo(b+d,n,_,w-p,_,w);this.bezierCurveTo(_,w+p,b+d,y,b,y);this.bezierCurveTo(b-d,y,e,w+p,e,w);return this.closePath()},circle:function circle(e,n,i){return this.ellipse(e,n,i)},arc:function arc(e,n,i,u,d,p){null==p&&(p=!1);var _=2*Math.PI,y=.5*Math.PI,b=d-u;if(Math.abs(b)>_)b=_;else if(0!==b&&p!==b<0){b=(p?-1:1)*_+b}var w=Math.ceil(Math.abs(b)/y),x=b/w,P=x/y*ye*i,E=u,k=-Math.sin(E)*P,B=Math.cos(E)*P,j=e+Math.cos(E)*i,I=n+Math.sin(E)*i;this.moveTo(j,I);for(var O=0;O<w;O++){var D=j+k,R=I+B;E+=x;j=e+Math.cos(E)*i;I=n+Math.sin(E)*i;var N=j-(k=-Math.sin(E)*P),U=I-(B=Math.cos(E)*P);this.bezierCurveTo(D,R,N,U,j,I)}return this},polygon:function polygon(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];this.moveTo.apply(this,n.shift()||[]);for(var u=0,d=n;u<d.length;u++){var p=d[u];this.lineTo.apply(this,p||[])}return this.closePath()},path:function path(e){me.apply(this,e);return this},_windingRule:function _windingRule(e){return/even-?odd/.test(e)?"*":""},fill:function fill(e,n){if(/(even-?odd)|(non-?zero)/.test(e)){n=e;e=null}e&&this.fillColor(e);return this.addContent("f"+this._windingRule(n))},stroke:function stroke(e){e&&this.strokeColor(e);return this.addContent("S")},fillAndStroke:function fillAndStroke(e,n,i){null==n&&(n=e);var u=/(even-?odd)|(non-?zero)/;if(u.test(e)){i=e;e=null}if(u.test(n)){i=n;n=e}if(e){this.fillColor(e);this.strokeColor(n)}return this.addContent("B"+this._windingRule(i))},clip:function clip(e){return this.addContent("W"+this._windingRule(e)+" n")},transform:function transform(e,n,i,u,d,p){var _=this._ctm,y=_[0],b=_[1],w=_[2],x=_[3],P=_[4],E=_[5];_[0]=y*e+w*n;_[1]=b*e+x*n;_[2]=y*i+w*u;_[3]=b*i+x*u;_[4]=y*d+w*p+P;_[5]=b*d+x*p+E;var k=[e,n,i,u,d,p].map((function(e){return ve(e)})).join(" ");return this.addContent(k+" cm")},translate:function translate(e,n){return this.transform(1,0,0,1,e,n)},rotate:function rotate(e,n){void 0===n&&(n={});var i,u=e*Math.PI/180,d=Math.cos(u),p=Math.sin(u),_=i=0;if(null!=n.origin){var y=n.origin,b=(_=y[0])*p+(i=y[1])*d;_-=_*d-i*p;i-=b}return this.transform(d,p,-p,d,_,i)},scale:function scale(e,n,i){void 0===i&&(i={});var u;null==n&&(n=e);if("object"==typeof n){i=n;n=e}var d=u=0;if(null!=i.origin){var p=i.origin;d=p[0];u=p[1];d-=e*d;u-=n*u}return this.transform(e,0,0,n,d,u)}},we={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},Se="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(":"),xe=".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(" "),Ce=function(){function AFMFont(e){this.contents=e;this.bbox=this._parseFontBBox(e[1]);this.capHeight=e[2];this.xHeight=e[3];this.ascender=e[4];this.descender=e[5];this.glyphWidths=this._parseGlyphWidths(e[6]);this.charWidths=this._getCharWidths();this.kernPairs=this._parseKerningPairs(e[7]);this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}var e=AFMFont.prototype;e.encodeText=function encodeText(e){for(var n=[],i=0,u=e.length;i<u;i++){var d=e.charCodeAt(i);d=we[d]||d;n.push(d.toString(16))}return n};e.glyphsForString=function glyphsForString(e){for(var n=[],i=0,u=e.length;i<u;i++){var d=e.charCodeAt(i);n.push(this.characterToGlyph(d))}return n};e.characterToGlyph=function characterToGlyph(e){return xe[we[e]||e]||".notdef"};e.widthOfGlyph=function widthOfGlyph(e){return this.glyphWidths[e]||0};e.getKernPair=function getKernPair(e,n){return this.kernPairs[e+"\0"+n]||0};e.advancesForGlyphs=function advancesForGlyphs(e){for(var n=[],i=0;i<e.length;i++){var u=e[i],d=e[i+1];n.push(this.widthOfGlyph(u)+this.getKernPair(u,d))}return n};e._parseFontBBox=function _parseFontBBox(e){for(var n=e.split(":"),i=[],u=0,d=n.length;u<d;u++)i.push(b(n[u]));return i};e._getCharWidths=function _getCharWidths(){for(var e=[],n=0;n<=255;n++)e.push(this.glyphWidths[xe[n]]);return e};e._parseGlyphWidths=function _parseGlyphWidths(e){var n=e.split(","),i={};if(1==n.length)for(var u=n[0].match(/(^\d+)-(\d+):(\d+)$/),d=b(u[1]),p=b(u[2]),_=b(u[3]),y=d;y<=p;y++)i[Se[y]]=_;else for(var w=0,x=0,P=n.length;x<P;x++){var E=n[x].split(":"),k=void 0;if(1===E.length)k=b(E[0]);else{w=b(E[0]);k=b(E[1])}i[Se[w++]]=k}return i};e._parseKerningPairs=function _parseKerningPairs(e){return{}};return AFMFont}(),Pe=function(){function PDFFont(){}var e=PDFFont.prototype;e.encode=function encode(){throw new Error("Must be implemented by subclasses")};e.widthOfString=function widthOfString(){throw new Error("Must be implemented by subclasses")};e.ref=function ref(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()};e.finalize=function finalize(){if(!this.embedded&&null!=this.dictionary){this.embed();return this.embedded=!0}};e.embed=function embed(){throw new Error("Must be implemented by subclasses")};e.getAscender=function getAscender(e){return this.ascender/1e3*e};e.getBBox=function getBBox(e){return{llx:this.bbox[0]/1e3*e,lly:this.bbox[1]/1e3*e,urx:this.bbox[2]/1e3*e,ury:this.bbox[3]/1e3*e}};e.lineHeight=function lineHeight(e,n){null==n&&(n=!1);var i=n?this.lineGap:0;return(this.ascender+i-this.descender)/1e3*e};return PDFFont}(),Ee={Courier:function Courier(){return'0, "-23:-250:715:805", 562, 426, 629, -157, "0-314:600"'},"Courier-Bold":function CourierBold(){return'0, "-113:-250:749:801", 562, 439, 629, -157, "0-314:600"'},"Courier-Oblique":function CourierOblique(){return'-12, "-27:-250:849:805", 562, 426, 629, -157, "0-314:600"'},"Courier-BoldOblique":function CourierBoldOblique(){return'-12, "-57:-250:869:801", 562, 439, 629, -157, "0-314:600"'},Helvetica:function Helvetica(){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 HelveticaBold(){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 HelveticaOblique(){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 HelveticaBoldOblique(){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 TimesRoman(){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 TimesBold(){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 TimesItalic(){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 TimesBoldItalic(){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 Symbol(){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 ZapfDingbats(){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"'}},ke=function(e){_inheritsLoose(StandardFont,e);function StandardFont(n,i,u){var d;(d=e.call(this)||this).document=n;d.name=i;d.id=u;d.font=new Ce(JSON.parse("["+Ee[d.name]()+',"'+d.getKerning(d.name)+'"]'));var p=d.font;d.ascender=p.ascender;d.descender=p.descender;d.bbox=p.bbox;d.lineGap=p.lineGap;d.xHeight=p.xHeight;d.capHeight=p.capHeight;return d}var n=StandardFont.prototype;n.embed=function embed(){this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"};return this.dictionary.end()};n.encode=function encode(e){for(var n=this.font.encodeText(e),i=this.font.glyphsForString(""+e),u=this.font.advancesForGlyphs(i),d=[],p=0;p<i.length;p++){var _=i[p];d.push({xAdvance:u[p],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(_)})}return[n,d]};n.widthOfString=function widthOfString(e,n){for(var i,u=this.font.glyphsForString(""+e),d=0,p=_createForOfIteratorHelperLoose(this.font.advancesForGlyphs(u));!(i=p()).done;){d+=i.value}return d*(n/1e3)};StandardFont.isStandardFont=function isStandardFont(e){return e in Ee};n.getKerning=function getKerning(e){return""};return StandardFont}(Pe),Te=function toHex(e){return("0000"+e.toString(16)).slice(-4)},Ae=function(e){_inheritsLoose(EmbeddedFont,e);function EmbeddedFont(n,i,u){var d;(d=e.call(this)||this).document=n;d.font=i;d.id=u;d.subset=d.font.createSubset();d.unicode=[[0]];d.widths=[d.font.getGlyph(0).advanceWidth];d.name=d.font.postscriptName;d.scale=1e3/d.font.unitsPerEm;d.ascender=d.font.ascent*d.scale;d.descender=d.font.descent*d.scale;d.xHeight=d.font.xHeight*d.scale;d.capHeight=d.font.capHeight*d.scale;d.lineGap=d.font.lineGap*d.scale;d.bbox=d.font.bbox;!1!==n.options.fontLayoutCache&&(d.layoutCache=E(null));return d}var n=EmbeddedFont.prototype;n.layoutRun=function layoutRun(e,n){for(var i=this.font.layout(e,n),u=0;u<i.positions.length;u++){var d=i.positions[u];for(var p in d)d[p]*=this.scale;d.advanceWidth=i.glyphs[u].advanceWidth*this.scale}return i};n.layoutCached=function layoutCached(e){if(!this.layoutCache)return this.layoutRun(e);var n;if(n=this.layoutCache[e])return n;var i=this.layoutRun(e);this.layoutCache[e]=i;return i};n.layout=function layout(e,n,i){e=e.replace(/(\r\n|\n|\r)/gm,"");if(n)return this.layoutRun(e,n);for(var u=i?null:[],d=i?null:[],p=0,_=[" ","\t"],y=!1,b=0,w=e.length,x=0;x<=w;x++){var P=_.indexOf(e.charAt(x))>=0;if(P&&x||y||x===w&&b<x){var E=this.layoutCached(e.slice(b,x));if(!i){u=u.concat(E.glyphs);d=d.concat(E.positions)}p+=E.advanceWidth;b=x}y=P}return{glyphs:u,positions:d,advanceWidth:p}};n.encode=function encode(e,n){for(var i=this.layout(e,n),u=i.glyphs,d=i.positions,p=[],_=0;_<u.length;_++){var y=u[_],b=this.subset.includeGlyph(y.id);p.push(("0000"+b.toString(16)).slice(-4));null==this.widths[b]&&(this.widths[b]=y.advanceWidth*this.scale);null==this.unicode[b]&&(this.unicode[b]=y.codePoints)}return[p,d]};n.widthOfString=function widthOfString(e,n,i){return this.layout(e,i,!0).advanceWidth*(n/1e3)};n.embed=function embed(){var e=this,n=null!=this.subset.cff,i=this.document.ref();n&&(i.data.Subtype="CIDFontType0C");this.subset.encodeStream().on("data",(function(e){return i.write(e)})).on("end",(function(){return i.end()}));var u=((null!=this.font["OS/2"]?this.font["OS/2"].sFamilyClass:void 0)||0)>>8,d=0;this.font.post.isFixedPitch&&(d|=1);1<=u&&u<=7&&(d|=2);d|=4;10===u&&(d|=8);this.font.head.macStyle.italic&&(d|=64);var p=[1,2,3,4,5,6].map((function(n){return String.fromCharCode((e.id.charCodeAt(n)||73)+17)})).join("")+"+"+this.font.postscriptName,_=this.font.bbox,y=this.document.ref({Type:"FontDescriptor",FontName:p,Flags:d,FontBBox:[_.minX*this.scale,_.minY*this.scale,_.maxX*this.scale,_.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});n?y.data.FontFile3=i:y.data.FontFile2=i;y.end();var b={Type:"Font",Subtype:"CIDFontType0",BaseFont:p,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:y,W:[0,this.widths]};if(!n){b.Subtype="CIDFontType2";b.CIDToGIDMap="Identity"}var w=this.document.ref(b);w.end();this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:p,Encoding:"Identity-H",DescendantFonts:[w],ToUnicode:this.toUnicodeCmap()};return this.dictionary.end()};n.toUnicodeCmap=function toUnicodeCmap(){for(var e,n=this.document.ref(),i=[],u=_createForOfIteratorHelperLoose(this.unicode);!(e=u()).done;){for(var d,p=[],_=_createForOfIteratorHelperLoose(e.value);!(d=_()).done;){var y=d.value;if(y>65535){y-=65536;p.push(Te(y>>>10&1023|55296));y=56320|1023&y}p.push(Te(y))}i.push("<"+p.join(" ")+">")}n.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> <"+Te(i.length-1)+"> ["+i.join(" ")+"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend");return n};return EmbeddedFont}(Pe),Be=function(){function PDFFontFactory(){}PDFFontFactory.open=function open(e,n,u,d){var p;if("string"==typeof n&&ke.isStandardFont(n))return new ke(e,n,d);i.isBuffer(n)?p=P.create(n,u):n instanceof Uint8Array?p=P.create(i.from(n),u):n instanceof ArrayBuffer&&(p=P.create(i.from(new Uint8Array(n)),u));if(null==p)throw new Error("Not a supported font format or standard PDF font.");return new Ae(e,p,d)};return PDFFontFactory}(),je={initFonts:function initFonts(e){void 0===e&&(e="Helvetica");this._fontFamilies={};this._fontCount=0;this._fontSize=12;this._font=null;this._registeredFonts={};e&&this.font(e)},font:function font(e,n,i){var u,font;if("number"==typeof n){i=n;n=null}if("string"==typeof e&&this._registeredFonts[e]){u=e;var d=this._registeredFonts[e];e=d.src;n=d.family}else"string"!=typeof(u=n||e)&&(u=null);null!=i&&this.fontSize(i);if(font=this._fontFamilies[u]){this._font=font;return this}var p="F"+ ++this._fontCount;this._font=Be.open(this,e,n,p);if(font=this._fontFamilies[this._font.name]){this._font=font;return this}u&&(this._fontFamilies[u]=this._font);this._font.name&&(this._fontFamilies[this._font.name]=this._font);return this},fontSize:function fontSize(e){this._fontSize=e;return this},currentLineHeight:function currentLineHeight(e){null==e&&(e=!1);return this._font.lineHeight(this._fontSize,e)},currentFontAscender:function currentFontAscender(){return this._font.getAscender(this._fontSize)},currentFontBBox:function currentFontBBox(){return this._font.getBBox(this._fontSize)},currentFontSize:function currentFontSize(){return this._fontSize},registerFont:function registerFont(e,n,i){this._registeredFonts[e]={src:n,family:i};return this}},Le=function(e){_inheritsLoose(LineWrapper,e);function LineWrapper(n,i){var u;(u=e.call(this)||this).document=n;u.indent=i.indent||0;u.characterSpacing=i.characterSpacing||0;u.wordSpacing=0===i.wordSpacing;u.columns=i.columns||1;u.columnGap=null!=i.columnGap?i.columnGap:18;u.lineWidth=(i.width-u.columnGap*(u.columns-1))/u.columns;u.spaceLeft=u.lineWidth;u.startX=u.document.x;u.startY=u.document.y;u.column=1;u.ellipsis=i.ellipsis;u.continuedX=0;u.features=i.features;if(null!=i.height){u.height=i.height;u.maxY=u.startY+i.height}else u.maxY=u.document.page.maxY();u.on("firstLine",(function(e){var n=u.continuedX||u.indent;u.document.x+=n;u.lineWidth-=n;return u.once("line",(function(){u.document.x-=n;u.lineWidth+=n;e.continued&&!u.continuedX&&(u.continuedX=u.indent);if(!e.continued)return u.continuedX=0}))}));u.on("lastLine",(function(e){var n=e.align;"justify"===n&&(e.align="left");u.lastLine=!0;return u.once("line",(function(){u.document.y+=e.paragraphGap||0;e.align=n;return u.lastLine=!1}))}));return u}var n=LineWrapper.prototype;n.wordWidth=function wordWidth(e){return this.document.widthOfString(e,this)+this.characterSpacing+this.wordSpacing};n.eachWord=function eachWord(e,n){for(var i,u=new B(e),d=null,p=E(null);i=u.nextBreak();){var _,y=e.slice((null!=d?d.position:void 0)||0,i.position),b=null!=p[y]?p[y]:p[y]=this.wordWidth(y);if(b>this.lineWidth+this.continuedX)for(var w=d,x={};y.length;){var P,k;if(b>this.spaceLeft){P=Math.ceil(this.spaceLeft/(b/y.length));k=(b=this.wordWidth(y.slice(0,P)))<=this.spaceLeft&&P<y.length}else P=y.length;for(var j=b>this.spaceLeft&&P>0;j||k;)if(j)j=(b=this.wordWidth(y.slice(0,--P)))>this.spaceLeft&&P>0;else{j=(b=this.wordWidth(y.slice(0,++P)))>this.spaceLeft&&P>0;k=b<=this.spaceLeft&&P<y.length}0===P&&this.spaceLeft===this.lineWidth&&(P=1);x.required=i.required||P<y.length;_=n(y.slice(0,P),b,x,w);w={required:!1};y=y.slice(P);b=this.wordWidth(y);if(!1===_)break}else _=n(y,b,i,d);if(!1===_)break;d=i}};n.wrap=function wrap(e,n){var i=this;null!=n.indent&&(this.indent=n.indent);null!=n.characterSpacing&&(this.characterSpacing=n.characterSpacing);null!=n.wordSpacing&&(this.wordSpacing=n.wordSpacing);null!=n.ellipsis&&(this.ellipsis=n.ellipsis);var u=this.document.y+this.document.currentLineHeight(!0);(this.document.y>this.maxY||u>this.maxY)&&this.nextSection();var d="",p=0,_=0,y=0,b=this.document.y,w=function emitLine(){n.textWidth=p+i.wordSpacing*(_-1);n.wordCount=_;n.lineWidth=i.lineWidth;b=i.document.y;i.emit("line",d,n,i);return y++};this.emit("sectionStart",n,this);this.eachWord(e,(function(e,u,y,b){if(null==b||b.required){i.emit("firstLine",n,i);i.spaceLeft=i.lineWidth}if(u<=i.spaceLeft){d+=e;p+=u;_++}if(y.required||u>i.spaceLeft){var x=i.document.currentLineHeight(!0);if(null!=i.height&&i.ellipsis&&i.document.y+2*x>i.maxY&&i.column>=i.columns){!0===i.ellipsis&&(i.ellipsis="…");d=d.replace(/\s+$/,"");p=i.wordWidth(d+i.ellipsis);for(;d&&p>i.lineWidth;){d=d.slice(0,-1).replace(/\s+$/,"");p=i.wordWidth(d+i.ellipsis)}p<=i.lineWidth&&(d+=i.ellipsis);p=i.wordWidth(d)}if(y.required){if(u>i.spaceLeft){w();d=e;p=u;_=1}i.emit("lastLine",n,i)}w();if(i.maxY-(i.document.y+x)<-1e-6){if(!i.nextSection()){_=0;d="";return!1}}if(y.required){i.spaceLeft=i.lineWidth;d="";p=0;return _=0}i.spaceLeft=i.lineWidth-u;d=e;p=u;return _=1}return i.spaceLeft-=u}));if(_>0){this.emit("lastLine",n,this);w()}this.emit("sectionEnd",n,this);if(!0===n.continued){y>1&&(this.continuedX=0);this.continuedX+=n.textWidth||0;return this.document.y=b}return this.document.x=this.startX};n.nextSection=function nextSection(e){this.emit("sectionEnd",e,this);if(++this.column>this.columns){if(null!=this.height)return!1;this.document.continueOnNewPage();this.column=1;this.startY=this.document.page.margins.top;this.maxY=this.document.page.maxY();this.document.x=this.startX;if(this.document._fillColor){var n;(n=this.document).fillColor.apply(n,this.document._fillColor)}this.emit("pageBreak",e,this)}else{this.document.x+=this.lineWidth+this.columnGap;this.document.y=this.startY;this.emit("columnBreak",e,this)}this.emit("sectionStart",e,this);return!0};return LineWrapper}(k.EventEmitter),Ie=J.number,Oe={initText:function initText(){this._line=this._line.bind(this);this.x=0;this.y=0;return this._lineGap=0},currentLineGap:function currentLineGap(){return this._lineGap},lineGap:function lineGap(e){this._lineGap=e;return this},moveDown:function moveDown(e){null==e&&(e=1);this.y+=this.currentLineHeight(!0)*e+this._lineGap;return this},moveUp:function moveUp(e){null==e&&(e=1);this.y-=this.currentLineHeight(!0)*e+this._lineGap;return this},_text:function _text(e,n,i,u,d){var p=this;e=null==e?"":""+e;(u=this._initOptions(n,i,u)).wordSpacing&&(e=e.replace(/\s{2,}/g," "));var _=function addStructure(){u.structParent&&u.structParent.add(p.struct(u.structType||"P",[p.markStructureContent(u.structType||"P")]))};if(u.width){var y=this._wrapper;if(!y){(y=new Le(this,u)).on("line",d);y.on("firstLine",_)}this._wrapper=u.continued?y:null;this._textOptions=u.continued?u:null;y.wrap(e,u)}else for(var b,w=_createForOfIteratorHelperLoose(e.split("\n"));!(b=w()).done;){var x=b.value;_();d(x,u)}return this},text:function text(e,n,i,u){return this._text(e,n,i,u,this._line)},widthOfString:function widthOfString(e,n){void 0===n&&(n={});return this._font.widthOfString(e,this._fontSize,n.features)+(n.characterSpacing||0)*(e.length-1)},heightOfString:function heightOfString(e,n){var i=this,u=this.x,d=this.y;(n=this._initOptions(n)).height=1/0;var p=n.lineGap||this._lineGap||0;this._text(e,this.x,this.y,n,(function(){return i.y+=i.currentLineHeight(!0)+p}));var _=this.y-d;this.x=u;this.y=d;return _},textAndMeasure:function textAndMeasure(e,n,i,u,d){u=u||{};if(null===n){n=this.x;i=this.y}var p=this,_=this.x,y=this.y,b={width:0,height:0,charCount:0},w=u.lineGap||this._lineGap||0,x=u.columnGap||18,P=null===n?this.x:n,E=[],k=0;if(d){u.structParent=null;null===u.height&&(u.height=1/0)}this._text(e,n,i,u,(function(i,u,_){b.charCount+=i.length;p.x===n&&(b.height+=p.currentLineHeight(!0)+w);if(u.textWidth){if(p.x>P){P=p.x;E[k++]=u.lineWidth}E[k]=Math.max(E[k]||0,u.textWidth)}return d?_?p.y+=p.currentLineHeight(!0)+w:p.x+=p.widthOfString(e):p._line.apply(p,arguments)}));if(E.length){E.forEach((function(e){return b.width+=e+x}));b.width-=x}else b.width=this.x-_;!1===u.includeLastLineExternalLeading&&(b.height-=this.currentLineHeight(!0)-this.currentLineHeight(!1));b.height=Math.max(0,b.height);if(d){this.x=_;this.y=y}return b},list:function list(e,n,i,u,d){var _=this,y=(u=this._initOptions(n,i,u)).listType||"bullet",b=Math.round(this._font.ascender/1e3*this._fontSize),w=b/2,x=u.bulletRadius||b/3,P=u.textIndent||("bullet"===y?5*x:2*b),E=u.bulletIndent||("bullet"===y?8*x:2*b),k=1,B=[],j=[],I=[];!function flatten(e){for(var n=1,i=0;i<e.length;i++){var u=e[i];if(p(u)){k++;flatten(u);k--}else{B.push(u);j.push(k);"bullet"!==y&&I.push(n++)}}}(e);(d=new Le(this,u)).on("line",this._line);k=1;var O=0;d.on("firstLine",(function(){var e,n,i,p,b;if(u.structParent)if(u.structTypes){var B=u.structTypes;n=B[0];i=B[1];p=B[2]}else{n="LI";i="Lbl";p="LBody"}if(n){e=_.struct(n);u.structParent.add(e)}else u.structParent&&(e=u.structParent);if((b=j[O++])!==k){var D=E*(b-k);_.x+=D;d.lineWidth-=D;k=b}e&&(i||p)&&e.add(_.struct(i||p,[_.markStructureContent(i||p)]));switch(y){case"bullet":_.circle(_.x-P+x,_.y+w,x);_.fill();break;case"numbered":case"lettered":var R=function label(e){switch(y){case"numbered":return e+".";case"lettered":var n=String.fromCharCode((e-1)%26+65),i=Math.floor((e-1)/26+1);return Array(i+1).join(n)+"."}}(I[O-1]);_._fragment(R,_.x-P,_.y,u)}e&&i&&p&&e.add(_.struct(p,[_.markStructureContent(p)]));e&&e!==u.structParent&&e.end()}));d.on("sectionStart",(function(){var e=P+E*(k-1);_.x+=e;return d.lineWidth-=e}));d.on("sectionEnd",(function(){var e=P+E*(k-1);_.x-=e;return d.lineWidth+=e}));d.wrap(B.join("\n"),u);return this},_initOptions:function _initOptions(e,n,i){void 0===e&&(e={});void 0===i&&(i={});if("object"==typeof e){i=e;e=null}var d=u({},i);if(this._textOptions)for(var p in this._textOptions){var _=this._textOptions[p];"continued"!==p&&void 0===d[p]&&(d[p]=_)}null!=e&&(this.x=e);null!=n&&(this.y=n);if(!1!==d.lineBreak){null==d.width&&(d.width=this.page.width-this.x-this.page.margins.right);d.width=Math.max(d.width,0)}d.columns||(d.columns=0);null==d.columnGap&&(d.columnGap=18);return d},_line:function _line(e,n,i){void 0===n&&(n={});this._fragment(e,this.x,this.y,n);var u=n.lineGap||this._lineGap||0;return i?this.y+=this.currentLineHeight(!0)+u:this.x+=this.widthOfString(e)},_fragment:function _fragment(e,n,i,u){var d,p,_,y,b,w,x=this;if(0!==(e=(""+e).replace(/\n|\r/g,"")).length){var P=u.align||"left",E=u.wordSpacing||0,k=u.characterSpacing||0;if(u.width)switch(P){case"right":b=this.widthOfString(e.replace(/\s+$/,""),u);n+=u.lineWidth-b;break;case"center":n+=u.lineWidth/2-u.textWidth/2;break;case"justify":w=e.trim().split(/\s+/);b=this.widthOfString(e.replace(/\s+/g,""),u);var B=this.widthOfString(" ")+k;E=Math.max(0,(u.lineWidth-b)/Math.max(1,w.length-1)-B)}if("number"==typeof u.baseline)d=-u.baseline;else{switch(u.baseline){case"svg-middle":d=.5*this._font.xHeight;break;case"middle":case"svg-central":d=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":d=this._font.descender;break;case"alphabetic":d=0;break;case"mathematical":d=.5*this._font.ascender;break;case"hanging":d=.8*this._font.ascender;break;case"top":d=this._font.ascender;break;default:d=this._font.ascender}d=d/1e3*this._fontSize}var j=u.textWidth+E*(u.wordCount-1)+k*(e.length-1);null!=u.link&&this.link(n,i,j,this.currentLineHeight(),u.link);null!=u.goTo&&this.goTo(n,i,j,this.currentLineHeight(),u.goTo);null!=u.destination&&this.addNamedDestination(u.destination,"XYZ",n,i,null);if(u.underline){this.save();u.stroke||this.strokeColor.apply(this,this._fillColor||[]);var I=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(I);var O=i+this.currentLineHeight()-I;this.moveTo(n,O);this.lineTo(n+j,O);this.stroke();this.restore()}if(u.strike){this.save();u.stroke||this.strokeColor.apply(this,this._fillColor||[]);var D=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(D);var R=i+this.currentLineHeight()/2;this.moveTo(n,R);this.lineTo(n+j,R);this.stroke();this.restore()}this.save();if(u.oblique){var N;N="number"==typeof u.oblique?-Math.tan(u.oblique*Math.PI/180):-.25;this.transform(1,0,0,1,n,i);this.transform(1,0,N,1,-N*d,0);this.transform(1,0,0,1,-n,-i)}this.transform(1,0,0,-1,0,this.page.height);i=this.page.height-i-d;null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref());this.addContent("BT");this.addContent("1 0 0 1 "+Ie(n)+" "+Ie(i)+" Tm");this.addContent("/"+this._font.id+" "+Ie(this._fontSize)+" Tf");var U=u.fill&&u.stroke?2:u.stroke?1:0;U&&this.addContent(U+" Tr");k&&this.addContent(Ie(k)+" Tc");if(E){w=e.trim().split(/\s+/);E+=this.widthOfString(" ")+k;E*=1e3/this._fontSize;p=[];y=[];for(var G,W=_createForOfIteratorHelperLoose(w);!(G=W()).done;){var X=G.value,K=this._font.encode(X,u.features),Y=K[0],J=K[1];p=p.concat(Y);var $={},ee=(y=y.concat(J))[y.length-1];for(var te in ee){var re=ee[te];$[te]=re}$.xAdvance+=E;y[y.length-1]=$}}else{var ne=this._font.encode(e,u.features);p=ne[0];y=ne[1]}var ie=this._fontSize/1e3,oe=[],ae=0,se=!1,le=function addSegment(e){if(ae<e){var n=p.slice(ae,e).join(""),i=y[e-1].xAdvance-y[e-1].advanceWidth;oe.push("<"+n+"> "+Ie(-i))}return ae=e},ue=function flush(e){le(e);if(oe.length>0){x.addContent("["+oe.join(" ")+"] TJ");return oe.length=0}};for(_=0;_<y.length;_++){var ce=y[_];if(ce.xOffset||ce.yOffset){ue(_);this.addContent("1 0 0 1 "+Ie(n+ce.xOffset*ie)+" "+Ie(i+ce.yOffset*ie)+" Tm");ue(_+1);se=!0}else{if(se){this.addContent("1 0 0 1 "+Ie(n)+" "+Ie(i)+" Tm");se=!1}ce.xAdvance-ce.advanceWidth!=0&&le(_+1)}n+=ce.xAdvance*ie}ue(_);this.addContent("ET");return this.restore()}}},Fe=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],De={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"},Re=function(){function JPEG(e,n){var i;this.data=e;this.label=n;if(65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(var u=2;u<this.data.length;){i=this.data.readUInt16BE(u);u+=2;if(-1!==Fe.indexOf(i))break;u+=this.data.readUInt16BE(u)}if(-1===Fe.indexOf(i))throw"Invalid JPEG.";u+=2;this.bits=this.data[u++];this.height=this.data.readUInt16BE(u);u+=2;this.width=this.data.readUInt16BE(u);u+=2;var d=this.data[u++];this.colorSpace=De[d];this.obj=null}JPEG.prototype.embed=function embed(e){if(!this.obj){this.obj=e.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);return this.data=null}};return JPEG}(),Ne=function(){function PNGImage(e,n){this.label=n;this.image=new j(e);this.width=this.image.width;this.height=this.image.height;this.imgData=this.image.imgData;this.obj=null}var e=PNGImage.prototype;e.embed=function embed(e){var n=!1;this.document=e;if(!this.obj){var u=this.image.hasAlphaChannel,d=1===this.image.interlaceMethod;this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:u?8:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"});if(!u){var p=this.document.ref({Predictor:d?1:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width});this.obj.data.DecodeParms=p;p.end()}if(0===this.image.palette.length)this.obj.data.ColorSpace=this.image.colorSpace;else{var _=this.document.ref();_.end(i.from(this.image.palette));this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,_]}if(null!=this.image.transparency.grayscale){var y=this.image.transparency.grayscale;this.obj.data.Mask=[y,y]}else if(this.image.transparency.rgb){for(var b,w=[],x=_createForOfIteratorHelperLoose(this.image.transparency.rgb);!(b=x()).done;){var P=b.value;w.push(P,P)}this.obj.data.Mask=w}else{if(this.image.transparency.indexed){n=!0;return this.loadIndexedAlphaChannel()}if(u){n=!0;return this.splitAlphaChannel()}}if(d&&!n)return this.decodeData();this.finalize()}};e.finalize=function finalize(){if(this.alphaChannel){var e=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});e.end(this.alphaChannel);this.obj.data.SMask=e}this.obj.end(this.imgData);this.image=null;return this.imgData=null};e.splitAlphaChannel=function splitAlphaChannel(){var e=this;return this.image.decodePixels((function(n){for(var u,d,p=e.image.colors,_=e.width*e.height,b=i.alloc(_*p),w=i.alloc(_),x=d=u=0,P=n.length,E=16===e.image.bits?1:0;x<P;){for(var k=0;k<p;k++){b[d++]=n[x++];x+=E}w[u++]=n[x++];x+=E}e.imgData=y.deflateSync(b);e.alphaChannel=y.deflateSync(w);return e.finalize()}))};e.loadIndexedAlphaChannel=function loadIndexedAlphaChannel(){var e=this,n=this.image.transparency.indexed;return this.image.decodePixels((function(u){for(var d=i.alloc(e.width*e.height),p=0,_=0,b=u.length;_<b;_++)d[p++]=n[u[_]];e.alphaChannel=y.deflateSync(d);return e.finalize()}))};e.decodeData=function decodeData(){var e=this;this.image.decodePixels((function(n){e.imgData=y.deflateSync(n);e.finalize()}))};return PNGImage}(),ze=function(){function PDFImage(){}PDFImage.open=function open(e,n){var u;if(i.isBuffer(e))u=e;else if(e instanceof ArrayBuffer)u=i.from(new Uint8Array(e));else{var d;if(d=/^data:.+;base64,(.*)$/.exec(e))u=i.from(d[1],"base64");else if(!u)return}if(255===u[0]&&216===u[1])return new Re(u,n);if(137===u[0]&&"PNG"===u.toString("ascii",1,4))return new Ne(u,n);throw new Error("Unknown image format.")};return PDFImage}(),Me={initImages:function initImages(){this._imageRegistry={};return this._imageCount=0},image:function image(e,n,i,u){void 0===u&&(u={});var d,p,image,_,y,b;if("object"==typeof n){u=n;n=null}n=null!=(y=null!=n?n:u.x)?y:this.x;i=null!=(b=null!=i?i:u.y)?b:this.y;"string"==typeof e&&(image=this._imageRegistry[e]);image||(image=e.width&&e.height?e:this.openImage(e));image.obj||image.embed(this);null==this.page.xobjects[image.label]&&(this.page.xobjects[image.label]=image.obj);var w=.75*image.width,x=.75*image.height,P=u.width||w,E=u.height||x;if(u.width&&!u.height){var k=P/w;P=w*k;E=x*k}else if(u.height&&!u.width){var B=E/x;P=w*B;E=x*B}else if(u.scale){P=w*u.scale;E=x*u.scale}else if(u.fit){var j=u.fit;if((_=w/x)>(p=j[0])/(d=j[1])){P=p;E=p/_}else{E=d;P=d*_}}else if(u.cover){var I=u.cover;if((_=w/x)>(p=I[0])/(d=I[1])){E=d;P=d*_}else{P=p;E=p/_}}if(u.fit||u.cover){"center"===u.align?n=n+p/2-P/2:"right"===u.align&&(n=n+p-P);"center"===u.valign?i=i+d/2-E/2:"bottom"===u.valign&&(i=i+d-E)}null!=u.link&&this.link(n,i,P,E,u.link);null!=u.goTo&&this.goTo(n,i,P,E,u.goTo);null!=u.destination&&this.addNamedDestination(u.destination,"XYZ",n,i,null);this.y===i&&(this.y+=E);this.save();this.transform(P,0,0,-E,n,i+E);this.addContent("/"+image.label+" Do");this.restore();return this},openImage:function openImage(e){var n;"string"==typeof e&&(n=this._imageRegistry[e]);if(!n){n=ze.open(e,"I"+ ++this._imageCount);"string"==typeof e&&(this._imageRegistry[e]=n)}return n}},Ue={annotate:function annotate(e,n,i,u,d){d.Type="Annot";d.Rect=this._convertRect(e,n,i,u);d.Border=[0,0,0];"Link"===d.Subtype&&void 0===d.F&&(d.F=4);"Link"!==d.Subtype&&null==d.C&&(d.C=this._normalizeColor(d.color||[0,0,0]));delete d.color;"string"==typeof d.Dest&&(d.Dest=new String(d.Dest));for(var p in d){var _=d[p];d[p[0].toUpperCase()+p.slice(1)]=_}var y=this.ref(d);this.page.annotations.push(y);y.end();return this},note:function note(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="Text";p.Contents=new String(d);p.Name="Comment";null==p.color&&(p.color=[243,223,92]);return this.annotate(e,n,i,u,p)},goTo:function goTo(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="Link";p.A=this.ref({S:"GoTo",D:new String(d)});p.A.end();return this.annotate(e,n,i,u,p)},link:function link(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="Link";if("number"==typeof d){var _=this._root.data.Pages.data;if(!(d>=0&&d<_.Kids.length))throw new Error("The document has no page "+d);p.A=this.ref({S:"GoTo",D:[_.Kids[d],"XYZ",null,null,null]});p.A.end()}else{p.A=this.ref({S:"URI",URI:new String(d)});p.A.end()}return this.annotate(e,n,i,u,p)},_markup:function _markup(e,n,i,u,d){void 0===d&&(d={});var p=this._convertRect(e,n,i,u),_=p[0],y=p[1],b=p[2],w=p[3];d.QuadPoints=[_,w,b,w,_,y,b,y];d.Contents=new String;return this.annotate(e,n,i,u,d)},highlight:function highlight(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Highlight";null==d.color&&(d.color=[241,238,148]);return this._markup(e,n,i,u,d)},underline:function underline(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Underline";return this._markup(e,n,i,u,d)},strike:function strike(e,n,i,u,d){void 0===d&&(d={});d.Subtype="StrikeOut";return this._markup(e,n,i,u,d)},lineAnnotation:function lineAnnotation(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Line";d.Contents=new String;d.L=[e,this.page.height-n,i,this.page.height-u];return this.annotate(e,n,i,u,d)},rectAnnotation:function rectAnnotation(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Square";d.Contents=new String;return this.annotate(e,n,i,u,d)},ellipseAnnotation:function ellipseAnnotation(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Circle";d.Contents=new String;return this.annotate(e,n,i,u,d)},textAnnotation:function textAnnotation(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="FreeText";p.Contents=new String(d);p.DA=new String;return this.annotate(e,n,i,u,p)},_convertRect:function _convertRect(e,n,i,u){var d=n;n+=u;var p=e+i,_=this._ctm,y=_[0],b=_[1],w=_[2],x=_[3],P=_[4],E=_[5];return[e=y*e+w*n+P,n=b*e+x*n+E,p=y*p+w*d+P,d=b*p+x*d+E]}},He=function(){function PDFOutline(e,n,i,u,d){void 0===d&&(d={expanded:!1});this.document=e;this.options=d;this.outlineData={};null!==u&&(this.outlineData.Dest=[u.dictionary,"Fit"]);null!==n&&(this.outlineData.Parent=n);null!==i&&(this.outlineData.Title=new String(i));this.dictionary=this.document.ref(this.outlineData);this.children=[]}var e=PDFOutline.prototype;e.addItem=function addItem(e,n){void 0===n&&(n={expanded:!1});var i=new PDFOutline(this.document,this.dictionary,e,this.document.page,n);this.children.push(i);return i};e.endOutline=function endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var e=this.children[0],n=this.children[this.children.length-1];this.outlineData.First=e.dictionary;this.outlineData.Last=n.dictionary;for(var i=0,u=this.children.length;i<u;i++){var d=this.children[i];i>0&&(d.outlineData.Prev=this.children[i-1].dictionary);i<this.children.length-1&&(d.outlineData.Next=this.children[i+1].dictionary);d.endOutline()}}return this.dictionary.end()};return PDFOutline}(),Ge={initOutline:function initOutline(){return this.outline=new He(this,null,null,null)},endOutline:function endOutline(){this.outline.endOutline();if(this.outline.children.length>0){this._root.data.Outlines=this.outline.dictionary;return this._root.data.PageMode="UseOutlines"}}},qe=function(){function PDFStructureContent(e,n){this.refs=[{pageRef:e,mcid:n}]}PDFStructureContent.prototype.push=function push(e){var n=this;e.refs.forEach((function(e){return n.refs.push(e)}))};return PDFStructureContent}(),We=function(){function PDFStructureElement(e,n,i,u){var d=this;void 0===i&&(i={});void 0===u&&(u=null);this.document=e;this._attached=!1;this._ended=!1;this._flushed=!1;this.dictionary=e.ref({S:n});var _=this.dictionary.data;if(p(i)||this._isValidChild(i)){u=i;i={}}void 0!==i.title&&(_.T=new String(i.title));void 0!==i.lang&&(_.Lang=new String(i.lang));void 0!==i.alt&&(_.Alt=new String(i.alt));void 0!==i.expanded&&(_.E=new String(i.expanded));void 0!==i.actual&&(_.ActualText=new String(i.actual));this._children=[];if(u){p(u)||(u=[u]);u.forEach((function(e){return d.add(e)}));this.end()}}var e=PDFStructureElement.prototype;e.add=function add(e){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(e))throw new Error("Invalid structure element child");if(e instanceof PDFStructureElement){e.setParent(this.dictionary);this._attached&&e.setAttached()}e instanceof qe&&this._addContentToParentTree(e);"function"==typeof e&&this._attached&&(e=this._contentForClosure(e));this._children.push(e);return this};e._addContentToParentTree=function _addContentToParentTree(e){var n=this;e.refs.forEach((function(e){var i=e.pageRef,u=e.mcid;n.document.getStructParentTree().get(i.data.StructParents)[u]=n.dictionary}))};e.setParent=function setParent(e){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=e;this._flush()};e.setAttached=function setAttached(){var e=this;if(!this._attached){this._children.forEach((function(n,i){n instanceof PDFStructureElement&&n.setAttached();"function"==typeof n&&(e._children[i]=e._contentForClosure(n))}));this._attached=!0;this._flush()}};e.end=function end(){if(!this._ended){this._children.filter((function(e){return e instanceof PDFStructureElement})).forEach((function(e){return e.end()}));this._ended=!0;this._flush()}};e._isValidChild=function _isValidChild(e){return e instanceof PDFStructureElement||e instanceof qe||"function"==typeof e};e._contentForClosure=function _contentForClosure(e){var n=this.document.markStructureContent(this.dictionary.data.S);e();this.document.endMarkedContent();this._addContentToParentTree(n);return n};e._isFlushable=function _isFlushable(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every((function(e){return"function"!=typeof e&&(!(e instanceof PDFStructureElement)||e._isFlushable())}))};e._flush=function _flush(){var e=this;if(!this._flushed&&this._isFlushable()){this.dictionary.data.K=[];this._children.forEach((function(n){return e._flushChild(n)}));this.dictionary.end();this._children=[];this.dictionary.data.K=null;this._flushed=!0}};e._flushChild=function _flushChild(e){var n=this;e instanceof PDFStructureElement&&this.dictionary.data.K.push(e.dictionary);e instanceof qe&&e.refs.forEach((function(e){var i=e.pageRef,u=e.mcid;n.dictionary.data.Pg||(n.dictionary.data.Pg=i);n.dictionary.data.Pg===i?n.dictionary.data.K.push(u):n.dictionary.data.K.push({Type:"MCR",Pg:i,MCID:u})}))};return PDFStructureElement}(),Ve=function(e){_inheritsLoose(PDFNumberTree,e);function PDFNumberTree(){return e.apply(this,arguments)||this}var n=PDFNumberTree.prototype;n._compareKeys=function _compareKeys(e,n){return b(e)-b(n)};n._keysName=function _keysName(){return"Nums"};n._dataForKey=function _dataForKey(e){return b(e)};return PDFNumberTree}(W),Ze={initMarkings:function initMarkings(e){this.structChildren=[];if(e.tagged){this.getMarkInfoDictionary().data.Marked=!0;this.getStructTreeRoot()}},markContent:function markContent(e,n){void 0===n&&(n=null);if("Artifact"===e||n&&n.mcid){var i=0;this.page.markings.forEach((function(e){(i||e.structContent||"Artifact"===e.tag)&&i++}));for(;i--;)this.endMarkedContent()}if(!n){this.page.markings.push({tag:e});this.addContent("/"+e+" BMC");return this}this.page.markings.push({tag:e,options:n});var u={};void 0!==n.mcid&&(u.MCID=n.mcid);if("Artifact"===e){"string"==typeof n.type&&(u.Type=n.type);p(n.bbox)&&(u.BBox=[n.bbox[0],this.page.height-n.bbox[3],n.bbox[2],this.page.height-n.bbox[1]]);p(n.attached)&&n.attached.every((function(e){return"string"==typeof e}))&&(u.Attached=n.attached)}if("Span"===e){n.lang&&(u.Lang=new String(n.lang));n.alt&&(u.Alt=new String(n.alt));n.expanded&&(u.E=new String(n.expanded));n.actual&&(u.ActualText=new String(n.actual))}this.addContent("/"+e+" "+J.convert(u)+" BDC");return this},markStructureContent:function markStructureContent(e,n){void 0===n&&(n={});var i=this.getStructParentTree().get(this.page.structParentTreeKey),u=i.length;i.push(null);this.markContent(e,_extends({},n,{mcid:u}));var d=new qe(this.page.dictionary,u);this.page.markings.slice(-1)[0].structContent=d;return d},endMarkedContent:function endMarkedContent(){this.page.markings.pop();this.addContent("EMC");return this},struct:function struct(e,n,i){void 0===n&&(n={});void 0===i&&(i=null);return new We(this,e,n,i)},addStructure:function addStructure(e){var n=this.getStructTreeRoot();e.setParent(n);e.setAttached();this.structChildren.push(e);n.data.K||(n.data.K=[]);n.data.K.push(e.dictionary);return this},initPageMarkings:function initPageMarkings(e){var n=this;e.forEach((function(e){if(e.structContent){var i=e.structContent,u=n.markStructureContent(e.tag,e.options);i.push(u);n.page.markings.slice(-1)[0].structContent=i}else n.markContent(e.tag,e.options)}))},endPageMarkings:function endPageMarkings(e){var n=e.markings;n.forEach((function(){return e.write("EMC")}));e.markings=[];return n},getMarkInfoDictionary:function getMarkInfoDictionary(){this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({}));return this._root.data.MarkInfo},getStructTreeRoot:function getStructTreeRoot(){this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Ve,ParentTreeNextKey:0}));return this._root.data.StructTreeRoot},getStructParentTree:function getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function createStructParentTreeNextKey(){this.getMarkInfoDictionary();var e=this.getStructTreeRoot(),n=e.data.ParentTreeNextKey++;e.data.ParentTree.add(n,[]);return n},endMarkings:function endMarkings(){var e=this._root.data.StructTreeRoot;if(e){e.end();this.structChildren.forEach((function(e){return e.end()}))}this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},Xe=function(e){_inheritsLoose(PDFDocument,e);function PDFDocument(n){var i;void 0===n&&(n={});(i=e.call(this,n)||this).options=n;switch(n.pdfVersion){case"1.4":i.version=1.4;break;case"1.5":i.version=1.5;break;case"1.6":i.version=1.6;break;case"1.7":case"1.7ext3":i.version=1.7;break;default:i.version=1.3}i.compress=null==i.options.compress||i.options.compress;i._pageBuffer=[];i._pageBufferStart=0;i._offsets=[];i._waiting=0;i._ended=!1;i._offset=0;var u=i.ref({Type:"Pages",Count:0,Kids:[]}),d=i.ref({Dests:new ne});i._root=i.ref({Type:"Catalog",Pages:u,Names:d});i.options.lang&&(i._root.data.Lang=new String(i.options.lang));i.page=null;i.initColor();i.initVector();i.initFonts(n.font);i.initText();i.initImages();i.initOutline();i.initMarkings(n);i.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date};if(i.options.info)for(var p in i.options.info){var _=i.options.info[p];i.info[p]=_}i.options.displayTitle&&(i._root.data.ViewerPreferences=i.ref({DisplayDocTitle:!0}));var y=n.security;i._id=y&&y.generateFileID(i.info);i._security=y&&y.create(function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i),n);i._write("%PDF-"+i.version);i._write("%ÿÿÿÿ");i.options.pageAdding&&i.on("pageAdding",i.options.pageAdding);i.options.pageAdded&&i.on("pageAdded",i.options.pageAdded);!1!==i.options.autoFirstPage&&i.addPage();return i}var n=PDFDocument.prototype;n.addPage=function addPage(e){null==e&&(e=this.options);this.emit("pageAdding",this,e);this.options.bufferPages||this.flushPages();this.page=new re(this,e);this._pageBuffer.push(this.page);var n=this._root.data.Pages.data;n.Kids.push(this.page.dictionary);n.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);return this};n.continueOnNewPage=function continueOnNewPage(e){var n=this.endPageMarkings(this.page);this.addPage(e);this.initPageMarkings(n);return this};n.bufferedPageRange=function bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}};n.switchToPage=function switchToPage(e){var n;if(!(n=this._pageBuffer[e-this._pageBufferStart]))throw new Error("switchToPage("+e+") out of bounds, current buffer covers pages "+this._pageBufferStart+" to "+(this._pageBufferStart+this._pageBuffer.length-1));return this.page=n};n.flushPages=function flushPages(){var e=this._pageBuffer;this._pageBuffer=[];this._pageBufferStart+=e.length;for(var n,i=_createForOfIteratorHelperLoose(e);!(n=i()).done;){var u=n.value;this.endPageMarkings(u);u.end()}};n.addNamedDestination=function addNamedDestination(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];0===i.length&&(i=["XYZ",null,null,null]);"XYZ"===i[0]&&null!==i[2]&&(i[2]=this.page.height-i[2]);i.unshift(this.page.dictionary);this._root.data.Names.data.Dests.add(e,i)};n.addNamedJavaScript=function addNamedJavaScript(e,n){this._root.data.Names.data.JavaScript||(this._root.data.Names.data.JavaScript=new ne);var i={JS:new String(n),S:"JavaScript"};this._root.data.Names.data.JavaScript.add(e,i)};n.ref=function ref(e){var ref=new $(this,this._offsets.length+1,e);this._offsets.push(null);this._waiting++;return ref};n._read=function _read(){};n._write=function _write(e){i.isBuffer(e)||(e=i.from(e+"\n","binary"));this.push(e);return this._offset+=e.length};n.addContent=function addContent(e){this.page.write(e);return this};n._refEnd=function _refEnd(e){this._offsets[e.id-1]=e.offset;if(0==--this._waiting&&this._ended){this._finalize();return this._ended=!1}};n.end=function end(){this.emit("ending");this.flushPages();this._info=this.ref();for(var e in this.info){var n=this.info[e];"string"==typeof n&&(n=new String(n));var i=this.ref(n);i.end();this._info.data[e]=i}this._info.end();for(var u in this._fontFamilies){this._fontFamilies[u].finalize()}this.endOutline();this.endMarkings();this._root.end();this._root.data.Pages.end();this._root.data.Names.end();this._root.data.ViewerPreferences&&this._root.data.ViewerPreferences.end();this._security&&this._security.end();return 0===this._waiting?this._finalize():this._ended=!0};n._finalize=function _finalize(){var e=this._offset;this._write("xref");this._write("0 "+(this._offsets.length+1));this._write("0000000000 65535 f ");for(var n,i=_createForOfIteratorHelperLoose(this._offsets);!(n=i()).done;){var u=n.value;u=("0000000000"+u).slice(-10);this._write(u+" 00000 n ")}var d={Size:this._offsets.length+1,Root:this._root,Info:this._info};this._id&&(d.ID=[this._id,this._id]);this._security&&(d.Encrypt=this._security.dictionary);this._write("trailer");this._write(J.convert(d));this._write("startxref");this._write(""+e);this._write("%%EOF");return this.push(null)};n.toString=function toString(){return"[object PDFDocument]"};return PDFDocument}(d.Readable),Ke=function mixin(e){u(Xe.prototype,e)};Ke(ce);Ke(be);Ke(je);Ke(Oe);Ke(Me);Ke(Ue);Ke(Ge);Ke(Ze);Xe.LineWrapper=Le;n.localExports=Xe}).call(this)}).call(this,e("buffer").Buffer)},{"@babel/runtime-corejs2/core-js/array/is-array":136,"@babel/runtime-corejs2/core-js/json/stringify":137,"@babel/runtime-corejs2/core-js/number/is-finite":138,"@babel/runtime-corejs2/core-js/object/assign":139,"@babel/runtime-corejs2/core-js/object/create":140,"@babel/runtime-corejs2/core-js/object/keys":141,"@babel/runtime-corejs2/core-js/parse-int":142,buffer:152,events:210,fontkit:1,linebreak:133,"png-js":226,stream:243,zlib:150}],136:[function(e,n,i){arguments[4][3][0].apply(i,arguments)},{"core-js/library/fn/array/is-array":153,dup:3}],137:[function(e,n,i){n.localExports=e("core-js/library/fn/json/stringify")},{"core-js/library/fn/json/stringify":154}],138:[function(e,n,i){n.localExports=e("core-js/library/fn/number/is-finite")},{"core-js/library/fn/number/is-finite":155}],139:[function(e,n,i){n.localExports=e("core-js/library/fn/object/assign")},{"core-js/library/fn/object/assign":156}],140:[function(e,n,i){n.localExports=e("core-js/library/fn/object/create")},{"core-js/library/fn/object/create":157}],141:[function(e,n,i){arguments[4][8][0].apply(i,arguments)},{"core-js/library/fn/object/keys":158,dup:8}],142:[function(e,n,i){n.localExports=e("core-js/library/fn/parse-int")},{"core-js/library/fn/parse-int":159}],143:[function(e,n,i){(function(i){(function(){var u=e("object-assign");function compare(e,n){if(e===n)return 0;for(var i=e.length,u=n.length,d=0,p=Math.min(i,u);d<p;++d)if(e[d]!==n[d]){i=e[d];u=n[d];break}return i<u?-1:u<i?1:0}function isBuffer(e){return i.Buffer&&"function"==typeof i.Buffer.isBuffer?i.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var d=e("util/"),p=Object.prototype.hasOwnProperty,_=Array.prototype.slice,y="foo"===function foo(){}.name;function pToString(e){return Object.prototype.toString.call(e)}function isView(e){return!isBuffer(e)&&("function"==typeof i.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var b=n.localExports=ok,w=/\s*function\s+([^\(\s]*)\s*/;function getName(e){if(d.isFunction(e)){if(y)return e.name;var n=e.toString().match(w);return n&&n[1]}}b.AssertionError=function AssertionError(e){this.name="AssertionError";this.actual=e.actual;this.expected=e.expected;this.operator=e.operator;if(e.message){this.message=e.message;this.generatedMessage=!1}else{this.message=function getMessage(e){return truncate(inspect(e.actual),128)+" "+e.operator+" "+truncate(inspect(e.expected),128)}(this);this.generatedMessage=!0}var n=e.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var i=new Error;if(i.stack){var u=i.stack,d=getName(n),p=u.indexOf("\n"+d);if(p>=0){var _=u.indexOf("\n",p+1);u=u.substring(_+1)}this.stack=u}}};d.inherits(b.AssertionError,Error);function truncate(e,n){return"string"==typeof e?e.length<n?e:e.slice(0,n):e}function inspect(e){if(y||!d.isFunction(e))return d.inspect(e);var n=getName(e);return"[Function"+(n?": "+n:"")+"]"}function fail(e,n,i,u,d){throw new b.AssertionError({message:i,actual:e,expected:n,operator:u,stackStartFunction:d})}b.fail=fail;function ok(e,n){e||fail(e,!0,n,"==",b.ok)}b.ok=ok;b.equal=function equal(e,n,i){e!=n&&fail(e,n,i,"==",b.equal)};b.notEqual=function notEqual(e,n,i){e==n&&fail(e,n,i,"!=",b.notEqual)};b.deepEqual=function deepEqual(e,n,i){_deepEqual(e,n,!1)||fail(e,n,i,"deepEqual",b.deepEqual)};b.deepStrictEqual=function deepStrictEqual(e,n,i){_deepEqual(e,n,!0)||fail(e,n,i,"deepStrictEqual",b.deepStrictEqual)};function _deepEqual(e,n,i,u){if(e===n)return!0;if(isBuffer(e)&&isBuffer(n))return 0===compare(e,n);if(d.isDate(e)&&d.isDate(n))return e.getTime()===n.getTime();if(d.isRegExp(e)&&d.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(isView(e)&&isView(n)&&pToString(e)===pToString(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===compare(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(isBuffer(e)!==isBuffer(n))return!1;var p=(u=u||{actual:[],expected:[]}).actual.indexOf(e);if(-1!==p&&p===u.expected.indexOf(n))return!0;u.actual.push(e);u.expected.push(n);return function objEquiv(e,n,i,u){if(null==e||null==n)return!1;if(d.isPrimitive(e)||d.isPrimitive(n))return e===n;if(i&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(n))return!1;var p=isArguments(e),y=isArguments(n);if(p&&!y||!p&&y)return!1;if(p){e=_.call(e);n=_.call(n);return _deepEqual(e,n,i)}var b,w,P=x(e),E=x(n);if(P.length!==E.length)return!1;P.sort();E.sort();for(w=P.length-1;w>=0;w--)if(P[w]!==E[w])return!1;for(w=P.length-1;w>=0;w--){b=P[w];if(!_deepEqual(e[b],n[b],i,u))return!1}return!0}(e,n,i,u)}return i?e===n:e==n}function isArguments(e){return"[object Arguments]"==Object.prototype.toString.call(e)}b.notDeepEqual=function notDeepEqual(e,n,i){_deepEqual(e,n,!1)&&fail(e,n,i,"notDeepEqual",b.notDeepEqual)};b.notDeepStrictEqual=function notDeepStrictEqual(e,n,i){_deepEqual(e,n,!0)&&fail(e,n,i,"notDeepStrictEqual",notDeepStrictEqual)};b.strictEqual=function strictEqual(e,n,i){e!==n&&fail(e,n,i,"===",b.strictEqual)};b.notStrictEqual=function notStrictEqual(e,n,i){e===n&&fail(e,n,i,"!==",b.notStrictEqual)};function expectedException(e,n){if(!e||!n)return!1;if("[object RegExp]"==Object.prototype.toString.call(n))return n.test(e);try{if(e instanceof n)return!0}catch(e){}return!Error.isPrototypeOf(n)&&!0===n.call({},e)}function _throws(e,n,i,u){var p;if("function"!=typeof n)throw new TypeError('"block" argument must be a function');if("string"==typeof i){u=i;i=null}p=function _tryBlock(e){var n;try{e()}catch(e){n=e}return n}(n);u=(i&&i.name?" ("+i.name+").":".")+(u?" "+u:".");e&&!p&&fail(p,i,"Missing expected exception"+u);var _="string"==typeof u,y=!e&&p&&!i;(!e&&d.isError(p)&&_&&expectedException(p,i)||y)&&fail(p,i,"Got unwanted exception"+u);if(e&&p&&i&&!expectedException(p,i)||!e&&p)throw p}b.throws=function(e,n,i){_throws(!0,e,n,i)};b.doesNotThrow=function(e,n,i){_throws(!1,e,n,i)};b.ifError=function(e){if(e)throw e};b.strict=u((function strict(e,n){e||fail(e,!0,n,"==",strict)}),b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual});b.strict.strict=b.strict;var x=Object.keys||function(e){var n=[];for(var i in e)p.call(e,i)&&n.push(i);return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":214,"util/":146}],144:[function(e,n,i){"function"==typeof Object.create?n.localExports=function inherits(e,n){e.super_=n;e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:n.localExports=function inherits(e,n){e.super_=n;var i=function TempCtor(){};i.prototype=n.prototype;e.prototype=new i;e.prototype.constructor=e}},{}],145:[function(e,n,i){n.localExports=function isBuffer(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],146:[function(e,n,i){(function(n,u){(function(){var d=/%[sdj%]/g;i.format=function(e){if(!isString(e)){for(var n=[],i=0;i<arguments.length;i++)n.push(inspect(arguments[i]));return n.join(" ")}i=1;for(var u=arguments,p=u.length,_=String(e).replace(d,(function(e){if("%%"===e)return"%";if(i>=p)return e;switch(e){case"%s":return String(u[i++]);case"%d":return Number(u[i++]);case"%j":try{return JSON.stringify(u[i++])}catch(e){return"[Circular]"}default:return e}})),y=u[i];i<p;y=u[++i])isNull(y)||!isObject(y)?_+=" "+y:_+=" "+inspect(y);return _};i.deprecate=function(e,d){if(isUndefined(u.process))return function(){return i.deprecate(e,d).apply(this,arguments)};if(!0===n.noDeprecation)return e;var p=!1;return function deprecated(){if(!p){if(n.throwDeprecation)throw new Error(d);n.traceDeprecation?console.trace(d):console.error(d);p=!0}return e.apply(this,arguments)}};var p,_={};i.debuglog=function(e){isUndefined(p)&&(p=n.env.NODE_DEBUG||"");e=e.toUpperCase();if(!_[e])if(new RegExp("\\b"+e+"\\b","i").test(p)){var u=n.pid;_[e]=function(){var n=i.format.apply(i,arguments);console.error("%s %d: %s",e,u,n)}}else _[e]=function(){};return _[e]};function inspect(e,n){var u={seen:[],stylize:stylizeNoColor};arguments.length>=3&&(u.depth=arguments[2]);arguments.length>=4&&(u.colors=arguments[3]);isBoolean(n)?u.showHidden=n:n&&i._extend(u,n);isUndefined(u.showHidden)&&(u.showHidden=!1);isUndefined(u.depth)&&(u.depth=2);isUndefined(u.colors)&&(u.colors=!1);isUndefined(u.customInspect)&&(u.customInspect=!0);u.colors&&(u.stylize=stylizeWithColor);return formatValue(u,e,u.depth)}i.inspect=inspect;inspect.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]};inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(e,n){var i=inspect.styles[n];return i?"["+inspect.colors[i][0]+"m"+e+"["+inspect.colors[i][1]+"m":e}function stylizeNoColor(e,n){return e}function formatValue(e,n,u){if(e.customInspect&&n&&isFunction(n.inspect)&&n.inspect!==i.inspect&&(!n.constructor||n.constructor.prototype!==n)){var d=n.inspect(u,e);isString(d)||(d=formatValue(e,d,u));return d}var p=function formatPrimitive(e,n){if(isUndefined(n))return e.stylize("undefined","undefined");if(isString(n)){var i="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(isNumber(n))return e.stylize(""+n,"number");if(isBoolean(n))return e.stylize(""+n,"boolean");if(isNull(n))return e.stylize("null","null")}(e,n);if(p)return p;var _=Object.keys(n),y=function arrayToHash(e){var n={};e.forEach((function(e,i){n[e]=!0}));return n}(_);e.showHidden&&(_=Object.getOwnPropertyNames(n));if(isError(n)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return formatError(n);if(0===_.length){if(isFunction(n)){var b=n.name?": "+n.name:"";return e.stylize("[Function"+b+"]","special")}if(isRegExp(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(isDate(n))return e.stylize(Date.prototype.toString.call(n),"date");if(isError(n))return formatError(n)}var w,x="",P=!1,E=["{","}"];if(isArray(n)){P=!0;E=["[","]"]}if(isFunction(n)){x=" [Function"+(n.name?": "+n.name:"")+"]"}isRegExp(n)&&(x=" "+RegExp.prototype.toString.call(n));isDate(n)&&(x=" "+Date.prototype.toUTCString.call(n));isError(n)&&(x=" "+formatError(n));if(0===_.length&&(!P||0==n.length))return E[0]+x+E[1];if(u<0)return isRegExp(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);w=P?function formatArray(e,n,i,u,d){for(var p=[],_=0,y=n.length;_<y;++_)hasOwnProperty(n,String(_))?p.push(formatProperty(e,n,i,u,String(_),!0)):p.push("");d.forEach((function(d){d.match(/^\d+$/)||p.push(formatProperty(e,n,i,u,d,!0))}));return p}(e,n,u,y,_):_.map((function(i){return formatProperty(e,n,u,y,i,P)}));e.seen.pop();return function reduceToSingleString(e,n,i){if(e.reduce((function(e,n){return e+n.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return i[0]+(""===n?"":n+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+n+" "+e.join(", ")+" "+i[1]}(w,x,E)}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatProperty(e,n,i,u,d,p){var _,y,b;(b=Object.getOwnPropertyDescriptor(n,d)||{value:n[d]}).get?y=b.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):b.set&&(y=e.stylize("[Setter]","special"));hasOwnProperty(u,d)||(_="["+d+"]");y||(e.seen.indexOf(b.value)<0?(y=isNull(i)?formatValue(e,b.value,null):formatValue(e,b.value,i-1)).indexOf("\n")>-1&&(y=p?y.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+y.split("\n").map((function(e){return" "+e})).join("\n")):y=e.stylize("[Circular]","special"));if(isUndefined(_)){if(p&&d.match(/^\d+$/))return y;if((_=JSON.stringify(""+d)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){_=_.substr(1,_.length-2);_=e.stylize(_,"name")}else{_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");_=e.stylize(_,"string")}}return _+": "+y}function isArray(e){return Array.isArray(e)}i.isArray=isArray;function isBoolean(e){return"boolean"==typeof e}i.isBoolean=isBoolean;function isNull(e){return null===e}i.isNull=isNull;i.isNullOrUndefined=function isNullOrUndefined(e){return null==e};function isNumber(e){return"number"==typeof e}i.isNumber=isNumber;function isString(e){return"string"==typeof e}i.isString=isString;i.isSymbol=function isSymbol(e){return"symbol"==typeof e};function isUndefined(e){return void 0===e}i.isUndefined=isUndefined;function isRegExp(e){return isObject(e)&&"[object RegExp]"===objectToString(e)}i.isRegExp=isRegExp;function isObject(e){return"object"==typeof e&&null!==e}i.isObject=isObject;function isDate(e){return isObject(e)&&"[object Date]"===objectToString(e)}i.isDate=isDate;function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}i.isError=isError;function isFunction(e){return"function"==typeof e}i.isFunction=isFunction;i.isPrimitive=function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e};i.isBuffer=e("./support/isBuffer");function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return e<10?"0"+e.toString(10):e.toString(10)}var y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var e=new Date,n=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),y[e.getMonth()],n].join(" ")}i.log=function(){console.log("%s - %s",timestamp(),i.format.apply(i,arguments))};i.inherits=e("inherits");i._extend=function(e,n){if(!n||!isObject(n))return e;for(var i=Object.keys(n),u=i.length;u--;)e[i[u]]=n[i[u]];return e};function hasOwnProperty(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":145,_process:228,inherits:144}],147:[function(e,n,i){arguments[4][122][0].apply(i,arguments)},{dup:122}],148:[function(e,n,i){arguments[4][108][0].apply(i,arguments)},{dup:108}],149:[function(e,n,i){(function(n,u){(function(){var d=e("pako/lib/zlib/messages"),p=e("pako/lib/zlib/zstream"),_=e("pako/lib/zlib/deflate.js"),y=e("pako/lib/zlib/inflate.js"),b=e("pako/lib/zlib/constants");for(var w in b)i[w]=b[w];i.NONE=0;i.DEFLATE=1;i.INFLATE=2;i.GZIP=3;i.GUNZIP=4;i.DEFLATERAW=5;i.INFLATERAW=6;i.UNZIP=7;function Zlib(e){if(e<i.DEFLATE||e>i.UNZIP)throw new TypeError("Bad argument");this.mode=e;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}Zlib.prototype.init=function(e,n,u,d,b){this.windowBits=e;this.level=n;this.memLevel=u;this.strategy=d;this.mode!==i.GZIP&&this.mode!==i.GUNZIP||(this.windowBits+=16);this.mode===i.UNZIP&&(this.windowBits+=32);this.mode!==i.DEFLATERAW&&this.mode!==i.INFLATERAW||(this.windowBits=-this.windowBits);this.strm=new p;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:var w=_.deflateInit2(this.strm,this.level,i.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:case i.UNZIP:w=y.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}if(w===i.Z_OK){this.write_in_progress=!1;this.init_done=!0}else this._error(w)};Zlib.prototype.params=function(){throw new Error("deflateParams Not supported")};Zlib.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===i.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")};Zlib.prototype.write=function(e,i,u,d,p,_,y){this._writeCheck();this.write_in_progress=!0;var b=this;n.nextTick((function(){b.write_in_progress=!1;var n=b._write(e,i,u,d,p,_,y);b.callback(n[0],n[1]);b.pending_close&&b.close()}));return this};function bufferSet(e,n){for(var i=0;i<e.length;i++)this[n+i]=e[i]}Zlib.prototype.writeSync=function(e,n,i,u,d,p,_){this._writeCheck();return this._write(e,n,i,u,d,p,_)};Zlib.prototype._write=function(e,n,d,p,b,w,x){this.write_in_progress=!0;if(e!==i.Z_NO_FLUSH&&e!==i.Z_PARTIAL_FLUSH&&e!==i.Z_SYNC_FLUSH&&e!==i.Z_FULL_FLUSH&&e!==i.Z_FINISH&&e!==i.Z_BLOCK)throw new Error("Invalid flush value");if(null==n){n=new u(0);p=0;d=0}b._set?b.set=b._set:b.set=bufferSet;var P=this.strm;P.avail_in=p;P.input=n;P.next_in=d;P.avail_out=x;P.output=b;P.next_out=w;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:var E=_.deflate(P,e);break;case i.UNZIP:case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:E=y.inflate(P,e);break;default:throw new Error("Unknown mode "+this.mode)}E!==i.Z_STREAM_END&&E!==i.Z_OK&&this._error(E);this.write_in_progress=!1;return[P.avail_in,P.avail_out]};Zlib.prototype.close=function(){if(this.write_in_progress)this.pending_close=!0;else{this.pending_close=!1;this.mode===i.DEFLATE||this.mode===i.GZIP||this.mode===i.DEFLATERAW?_.deflateEnd(this.strm):y.inflateEnd(this.strm);this.mode=i.NONE}};Zlib.prototype.reset=function(){switch(this.mode){case i.DEFLATE:case i.DEFLATERAW:var e=_.deflateReset(this.strm);break;case i.INFLATE:case i.INFLATERAW:e=y.inflateReset(this.strm)}e!==i.Z_OK&&this._error(e)};Zlib.prototype._error=function(e){this.onerror(d[e]+": "+this.strm.msg,e);this.write_in_progress=!1;this.pending_close&&this.close()};i.Zlib=Zlib}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:228,buffer:152,"pako/lib/zlib/constants":217,"pako/lib/zlib/deflate.js":219,"pako/lib/zlib/inflate.js":221,"pako/lib/zlib/messages":223,"pako/lib/zlib/zstream":225}],150:[function(e,n,i){(function(n,u){(function(){var d=e("_stream_transform"),p=e("./binding"),_=e("util"),y=e("assert").ok;p.Z_MIN_WINDOWBITS=8;p.Z_MAX_WINDOWBITS=15;p.Z_DEFAULT_WINDOWBITS=15;p.Z_MIN_CHUNK=64;p.Z_MAX_CHUNK=1/0;p.Z_DEFAULT_CHUNK=16384;p.Z_MIN_MEMLEVEL=1;p.Z_MAX_MEMLEVEL=9;p.Z_DEFAULT_MEMLEVEL=8;p.Z_MIN_LEVEL=-1;p.Z_MAX_LEVEL=9;p.Z_DEFAULT_LEVEL=p.Z_DEFAULT_COMPRESSION;Object.keys(p).forEach((function(e){e.match(/^Z/)&&(i[e]=p[e])}));i.codes={Z_OK:p.Z_OK,Z_STREAM_END:p.Z_STREAM_END,Z_NEED_DICT:p.Z_NEED_DICT,Z_ERRNO:p.Z_ERRNO,Z_STREAM_ERROR:p.Z_STREAM_ERROR,Z_DATA_ERROR:p.Z_DATA_ERROR,Z_MEM_ERROR:p.Z_MEM_ERROR,Z_BUF_ERROR:p.Z_BUF_ERROR,Z_VERSION_ERROR:p.Z_VERSION_ERROR};Object.keys(i.codes).forEach((function(e){i.codes[i.codes[e]]=e}));i.Deflate=Deflate;i.Inflate=Inflate;i.Gzip=Gzip;i.Gunzip=Gunzip;i.DeflateRaw=DeflateRaw;i.InflateRaw=InflateRaw;i.Unzip=Unzip;i.createDeflate=function(e){return new Deflate(e)};i.createInflate=function(e){return new Inflate(e)};i.createDeflateRaw=function(e){return new DeflateRaw(e)};i.createInflateRaw=function(e){return new InflateRaw(e)};i.createGzip=function(e){return new Gzip(e)};i.createGunzip=function(e){return new Gunzip(e)};i.createUnzip=function(e){return new Unzip(e)};i.deflate=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Deflate(n),e,i)};i.deflateSync=function(e,n){return zlibBufferSync(new Deflate(n),e)};i.gzip=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Gzip(n),e,i)};i.gzipSync=function(e,n){return zlibBufferSync(new Gzip(n),e)};i.deflateRaw=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new DeflateRaw(n),e,i)};i.deflateRawSync=function(e,n){return zlibBufferSync(new DeflateRaw(n),e)};i.unzip=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Unzip(n),e,i)};i.unzipSync=function(e,n){return zlibBufferSync(new Unzip(n),e)};i.inflate=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Inflate(n),e,i)};i.inflateSync=function(e,n){return zlibBufferSync(new Inflate(n),e)};i.gunzip=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Gunzip(n),e,i)};i.gunzipSync=function(e,n){return zlibBufferSync(new Gunzip(n),e)};i.inflateRaw=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new InflateRaw(n),e,i)};i.inflateRawSync=function(e,n){return zlibBufferSync(new InflateRaw(n),e)};function zlibBuffer(e,n,i){var d=[],p=0;e.on("error",(function onError(n){e.removeListener("end",onEnd);e.removeListener("readable",flow);i(n)}));e.on("end",onEnd);e.end(n);flow();function flow(){for(var n;null!==(n=e.read());){d.push(n);p+=n.length}e.once("readable",flow)}function onEnd(){var n=u.concat(d,p);d=[];i(null,n);e.close()}}function zlibBufferSync(e,n){"string"==typeof n&&(n=new u(n));if(!u.isBuffer(n))throw new TypeError("Not a string or buffer");var i=p.Z_FINISH;return e._processChunk(n,i)}function Deflate(e){if(!(this instanceof Deflate))return new Deflate(e);Zlib.call(this,e,p.DEFLATE)}function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);Zlib.call(this,e,p.INFLATE)}function Gzip(e){if(!(this instanceof Gzip))return new Gzip(e);Zlib.call(this,e,p.GZIP)}function Gunzip(e){if(!(this instanceof Gunzip))return new Gunzip(e);Zlib.call(this,e,p.GUNZIP)}function DeflateRaw(e){if(!(this instanceof DeflateRaw))return new DeflateRaw(e);Zlib.call(this,e,p.DEFLATERAW)}function InflateRaw(e){if(!(this instanceof InflateRaw))return new InflateRaw(e);Zlib.call(this,e,p.INFLATERAW)}function Unzip(e){if(!(this instanceof Unzip))return new Unzip(e);Zlib.call(this,e,p.UNZIP)}function Zlib(e,n){this._opts=e=e||{};this._chunkSize=e.chunkSize||i.Z_DEFAULT_CHUNK;d.call(this,e);if(e.flush&&e.flush!==p.Z_NO_FLUSH&&e.flush!==p.Z_PARTIAL_FLUSH&&e.flush!==p.Z_SYNC_FLUSH&&e.flush!==p.Z_FULL_FLUSH&&e.flush!==p.Z_FINISH&&e.flush!==p.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);this._flushFlag=e.flush||p.Z_NO_FLUSH;if(e.chunkSize&&(e.chunkSize<i.Z_MIN_CHUNK||e.chunkSize>i.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<i.Z_MIN_WINDOWBITS||e.windowBits>i.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<i.Z_MIN_LEVEL||e.level>i.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<i.Z_MIN_MEMLEVEL||e.memLevel>i.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=i.Z_FILTERED&&e.strategy!=i.Z_HUFFMAN_ONLY&&e.strategy!=i.Z_RLE&&e.strategy!=i.Z_FIXED&&e.strategy!=i.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!u.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new p.Zlib(n);var _=this;this._hadError=!1;this._binding.onerror=function(e,n){_._binding=null;_._hadError=!0;var u=new Error(e);u.errno=n;u.code=i.codes[n];_.emit("error",u)};var y=i.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(y=e.level);var b=i.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(b=e.strategy);this._binding.init(e.windowBits||i.Z_DEFAULT_WINDOWBITS,y,e.memLevel||i.Z_DEFAULT_MEMLEVEL,b,e.dictionary);this._buffer=new u(this._chunkSize);this._offset=0;this._closed=!1;this._level=y;this._strategy=b;this.once("end",this.close)}_.inherits(Zlib,d);Zlib.prototype.params=function(e,u,d){if(e<i.Z_MIN_LEVEL||e>i.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(u!=i.Z_FILTERED&&u!=i.Z_HUFFMAN_ONLY&&u!=i.Z_RLE&&u!=i.Z_FIXED&&u!=i.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+u);if(this._level!==e||this._strategy!==u){var _=this;this.flush(p.Z_SYNC_FLUSH,(function(){_._binding.params(e,u);if(!_._hadError){_._level=e;_._strategy=u;d&&d()}}))}else n.nextTick(d)};Zlib.prototype.reset=function(){return this._binding.reset()};Zlib.prototype._flush=function(e){this._transform(new u(0),"",e)};Zlib.prototype.flush=function(e,i){var d=this._writableState;if("function"==typeof e||void 0===e&&!i){i=e;e=p.Z_FULL_FLUSH}if(d.ended)i&&n.nextTick(i);else if(d.ending)i&&this.once("end",i);else if(d.needDrain){var _=this;this.once("drain",(function(){_.flush(i)}))}else{this._flushFlag=e;this.write(new u(0),"",i)}};Zlib.prototype.close=function(e){e&&n.nextTick(e);if(!this._closed){this._closed=!0;this._binding.close();var i=this;n.nextTick((function(){i.emit("close")}))}};Zlib.prototype._transform=function(e,n,i){var d,_=this._writableState,y=(_.ending||_.ended)&&(!e||_.length===e.length);if(null===!e&&!u.isBuffer(e))return i(new Error("invalid input"));if(y)d=p.Z_FINISH;else{d=this._flushFlag;e.length>=_.length&&(this._flushFlag=this._opts.flush||p.Z_NO_FLUSH)}this._processChunk(e,d,i)};Zlib.prototype._processChunk=function(e,n,i){var d=e&&e.length,p=this._chunkSize-this._offset,_=0,b=this,w="function"==typeof i;if(!w){var x,P=[],E=0;this.on("error",(function(e){x=e}));do{var k=this._binding.writeSync(n,e,_,d,this._buffer,this._offset,p)}while(!this._hadError&&callback(k[0],k[1]));if(this._hadError)throw x;var B=u.concat(P,E);this.close();return B}var j=this._binding.write(n,e,_,d,this._buffer,this._offset,p);j.buffer=e;j.callback=callback;function callback(x,k){if(!b._hadError){var B=p-k;y(B>=0,"have should not go down");if(B>0){var j=b._buffer.slice(b._offset,b._offset+B);b._offset+=B;if(w)b.push(j);else{P.push(j);E+=j.length}}if(0===k||b._offset>=b._chunkSize){p=b._chunkSize;b._offset=0;b._buffer=new u(b._chunkSize)}if(0!==k){if(!w)return!1;i()}else{_+=d-x;d=x;if(!w)return!0;var I=b._binding.write(n,e,_,d,b._buffer,b._offset,b._chunkSize);I.callback=callback;I.buffer=e}}}};_.inherits(Deflate,Zlib);_.inherits(Inflate,Zlib);_.inherits(Gzip,Zlib);_.inherits(Gunzip,Zlib);_.inherits(DeflateRaw,Zlib);_.inherits(InflateRaw,Zlib);_.inherits(Unzip,Zlib)}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./binding":149,_process:228,_stream_transform:240,assert:143,buffer:152,util:249}],151:[function(e,n,i){arguments[4][108][0].apply(i,arguments)},{dup:108}],152:[function(e,n,i){(function(n,u){(function(){var u=e("base64-js"),d=e("ieee754"),p=e("isarray");i.Buffer=Buffer;i.SlowBuffer=function SlowBuffer(e){+e!=e&&(e=0);return Buffer.alloc(+e)};i.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42}};return 42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}();i.kMaxLength=kMaxLength();function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,n){if(kMaxLength()<n)throw new RangeError("Invalid typed array length");if(Buffer.TYPED_ARRAY_SUPPORT)(e=new Uint8Array(n)).__proto__=Buffer.prototype;else{null===e&&(e=new Buffer(n));e.length=n}return e}function Buffer(e,n,i){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(e,n,i);if("number"==typeof e){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,e)}return from(this,e,n,i)}Buffer.poolSize=8192;Buffer._augment=function(e){e.__proto__=Buffer.prototype;return e};function from(e,n,i,u){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function fromArrayBuffer(e,n,i,u){n.byteLength;if(i<0||n.byteLength<i)throw new RangeError("'offset' is out of bounds");if(n.byteLength<i+(u||0))throw new RangeError("'length' is out of bounds");n=void 0===i&&void 0===u?new Uint8Array(n):void 0===u?new Uint8Array(n,i):new Uint8Array(n,i,u);Buffer.TYPED_ARRAY_SUPPORT?(e=n).__proto__=Buffer.prototype:e=fromArrayLike(e,n);return e}(e,n,i,u):"string"==typeof n?function fromString(e,n,i){"string"==typeof i&&""!==i||(i="utf8");if(!Buffer.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var u=0|byteLength(n,i),d=(e=createBuffer(e,u)).write(n,i);d!==u&&(e=e.slice(0,d));return e}(e,n,i):function fromObject(e,n){if(Buffer.isBuffer(n)){var i=0|checked(n.length);if(0===(e=createBuffer(e,i)).length)return e;n.copy(e,0,0,i);return e}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function isnan(e){return e!=e}(n.length)?createBuffer(e,0):fromArrayLike(e,n);if("Buffer"===n.type&&p(n.data))return fromArrayLike(e,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,n)}Buffer.from=function(e,n,i){return from(null,e,n,i)};if(Buffer.TYPED_ARRAY_SUPPORT){Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})}function assertSize(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}Buffer.alloc=function(e,n,i){return function alloc(e,n,i,u){assertSize(n);return n<=0?createBuffer(e,n):void 0!==i?"string"==typeof u?createBuffer(e,n).fill(i,u):createBuffer(e,n).fill(i):createBuffer(e,n)}(null,e,n,i)};function allocUnsafe(e,n){assertSize(n);e=createBuffer(e,n<0?0:0|checked(n));if(!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;i<n;++i)e[i]=0;return e}Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)};Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)};function fromArrayLike(e,n){var i=n.length<0?0:0|checked(n.length);e=createBuffer(e,i);for(var u=0;u<i;u+=1)e[u]=255&n[u];return e}function checked(e){if(e>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)};Buffer.compare=function compare(e,n){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var i=e.length,u=n.length,d=0,p=Math.min(i,u);d<p;++d)if(e[d]!==n[d]){i=e[d];u=n[d];break}return i<u?-1:u<i?1:0};Buffer.isEncoding=function isEncoding(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Buffer.concat=function concat(e,n){if(!p(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var i;if(void 0===n){n=0;for(i=0;i<e.length;++i)n+=e[i].length}var u=Buffer.allocUnsafe(n),d=0;for(i=0;i<e.length;++i){var _=e[i];if(!Buffer.isBuffer(_))throw new TypeError('"list" argument must be an Array of Buffers');_.copy(u,d);d+=_.length}return u};function byteLength(e,n){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var u=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(e).length;default:if(u)return utf8ToBytes(e).length;n=(""+n).toLowerCase();u=!0}}Buffer.byteLength=byteLength;function slowToString(e,n,i){var u=!1;(void 0===n||n<0)&&(n=0);if(n>this.length)return"";(void 0===i||i>this.length)&&(i=this.length);if(i<=0)return"";if((i>>>=0)<=(n>>>=0))return"";e||(e="utf8");for(;;)switch(e){case"hex":return hexSlice(this,n,i);case"utf8":case"utf-8":return utf8Slice(this,n,i);case"ascii":return asciiSlice(this,n,i);case"latin1":case"binary":return latin1Slice(this,n,i);case"base64":return base64Slice(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,n,i);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();u=!0}}Buffer.prototype._isBuffer=!0;function swap(e,n,i){var u=e[n];e[n]=e[i];e[i]=u}Buffer.prototype.swap16=function swap16(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)swap(this,n,n+1);return this};Buffer.prototype.swap32=function swap32(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4){swap(this,n,n+3);swap(this,n+1,n+2)}return this};Buffer.prototype.swap64=function swap64(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8){swap(this,n,n+7);swap(this,n+1,n+6);swap(this,n+2,n+5);swap(this,n+3,n+4)}return this};Buffer.prototype.toString=function toString(){var e=0|this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)};Buffer.prototype.equals=function equals(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)};Buffer.prototype.inspect=function inspect(){var e="",n=i.INSPECT_MAX_BYTES;if(this.length>0){e=this.toString("hex",0,n).match(/.{2}/g).join(" ");this.length>n&&(e+=" ... ")}return"<Buffer "+e+">"};Buffer.prototype.compare=function compare(e,n,i,u,d){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");void 0===n&&(n=0);void 0===i&&(i=e?e.length:0);void 0===u&&(u=0);void 0===d&&(d=this.length);if(n<0||i>e.length||u<0||d>this.length)throw new RangeError("out of range index");if(u>=d&&n>=i)return 0;if(u>=d)return-1;if(n>=i)return 1;if(this===e)return 0;for(var p=(d>>>=0)-(u>>>=0),_=(i>>>=0)-(n>>>=0),y=Math.min(p,_),b=this.slice(u,d),w=e.slice(n,i),x=0;x<y;++x)if(b[x]!==w[x]){p=b[x];_=w[x];break}return p<_?-1:_<p?1:0};function bidirectionalIndexOf(e,n,i,u,d){if(0===e.length)return-1;if("string"==typeof i){u=i;i=0}else i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648);i=+i;isNaN(i)&&(i=d?0:e.length-1);i<0&&(i=e.length+i);if(i>=e.length){if(d)return-1;i=e.length-1}else if(i<0){if(!d)return-1;i=0}"string"==typeof n&&(n=Buffer.from(n,u));if(Buffer.isBuffer(n))return 0===n.length?-1:arrayIndexOf(e,n,i,u,d);if("number"==typeof n){n&=255;return Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?d?Uint8Array.prototype.indexOf.call(e,n,i):Uint8Array.prototype.lastIndexOf.call(e,n,i):arrayIndexOf(e,[n],i,u,d)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,n,i,u,d){var p,_=1,y=e.length,b=n.length;if(void 0!==u&&("ucs2"===(u=String(u).toLowerCase())||"ucs-2"===u||"utf16le"===u||"utf-16le"===u)){if(e.length<2||n.length<2)return-1;_=2;y/=2;b/=2;i/=2}function read(e,n){return 1===_?e[n]:e.readUInt16BE(n*_)}if(d){var w=-1;for(p=i;p<y;p++)if(read(e,p)===read(n,-1===w?0:p-w)){-1===w&&(w=p);if(p-w+1===b)return w*_}else{-1!==w&&(p-=p-w);w=-1}}else{i+b>y&&(i=y-b);for(p=i;p>=0;p--){for(var x=!0,P=0;P<b;P++)if(read(e,p+P)!==read(n,P)){x=!1;break}if(x)return p}}return-1}Buffer.prototype.includes=function includes(e,n,i){return-1!==this.indexOf(e,n,i)};Buffer.prototype.indexOf=function indexOf(e,n,i){return bidirectionalIndexOf(this,e,n,i,!0)};Buffer.prototype.lastIndexOf=function lastIndexOf(e,n,i){return bidirectionalIndexOf(this,e,n,i,!1)};function hexWrite(e,n,i,u){i=Number(i)||0;var d=e.length-i;u?(u=Number(u))>d&&(u=d):u=d;var p=n.length;if(p%2!=0)throw new TypeError("Invalid hex string");u>p/2&&(u=p/2);for(var _=0;_<u;++_){var y=parseInt(n.substr(2*_,2),16);if(isNaN(y))return _;e[i+_]=y}return _}function utf8Write(e,n,i,u){return blitBuffer(utf8ToBytes(n,e.length-i),e,i,u)}function asciiWrite(e,n,i,u){return blitBuffer(function asciiToBytes(e){for(var n=[],i=0;i<e.length;++i)n.push(255&e.charCodeAt(i));return n}(n),e,i,u)}function latin1Write(e,n,i,u){return asciiWrite(e,n,i,u)}function base64Write(e,n,i,u){return blitBuffer(base64ToBytes(n),e,i,u)}function ucs2Write(e,n,i,u){return blitBuffer(function utf16leToBytes(e,n){for(var i,u,d,p=[],_=0;_<e.length&&!((n-=2)<0);++_){i=e.charCodeAt(_);u=i>>8;d=i%256;p.push(d);p.push(u)}return p}(n,e.length-i),e,i,u)}Buffer.prototype.write=function write(e,n,i,u){if(void 0===n){u="utf8";i=this.length;n=0}else if(void 0===i&&"string"==typeof n){u=n;i=this.length;n=0}else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0;if(isFinite(i)){i|=0;void 0===u&&(u="utf8")}else{u=i;i=void 0}}var d=this.length-n;(void 0===i||i>d)&&(i=d);if(e.length>0&&(i<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var p=!1;;)switch(u){case"hex":return hexWrite(this,e,n,i);case"utf8":case"utf-8":return utf8Write(this,e,n,i);case"ascii":return asciiWrite(this,e,n,i);case"latin1":case"binary":return latin1Write(this,e,n,i);case"base64":return base64Write(this,e,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,n,i);default:if(p)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase();p=!0}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(e,n,i){return 0===n&&i===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(n,i))}function utf8Slice(e,n,i){i=Math.min(e.length,i);for(var u=[],d=n;d<i;){var p=e[d],_=null,y=p>239?4:p>223?3:p>191?2:1;if(d+y<=i){var b,w,x,P;switch(y){case 1:p<128&&(_=p);break;case 2:128==(192&(b=e[d+1]))&&(P=(31&p)<<6|63&b)>127&&(_=P);break;case 3:b=e[d+1];w=e[d+2];128==(192&b)&&128==(192&w)&&(P=(15&p)<<12|(63&b)<<6|63&w)>2047&&(P<55296||P>57343)&&(_=P);break;case 4:b=e[d+1];w=e[d+2];x=e[d+3];128==(192&b)&&128==(192&w)&&128==(192&x)&&(P=(15&p)<<18|(63&b)<<12|(63&w)<<6|63&x)>65535&&P<1114112&&(_=P)}}if(null===_){_=65533;y=1}else if(_>65535){_-=65536;u.push(_>>>10&1023|55296);_=56320|1023&_}u.push(_);d+=y}return function decodeCodePointsArray(e){var n=e.length;if(n<=4096)return String.fromCharCode.apply(String,e);var i="",u=0;for(;u<n;)i+=String.fromCharCode.apply(String,e.slice(u,u+=4096));return i}(u)}function asciiSlice(e,n,i){var u="";i=Math.min(e.length,i);for(var d=n;d<i;++d)u+=String.fromCharCode(127&e[d]);return u}function latin1Slice(e,n,i){var u="";i=Math.min(e.length,i);for(var d=n;d<i;++d)u+=String.fromCharCode(e[d]);return u}function hexSlice(e,n,i){var u=e.length;(!n||n<0)&&(n=0);(!i||i<0||i>u)&&(i=u);for(var d="",p=n;p<i;++p)d+=toHex(e[p]);return d}function utf16leSlice(e,n,i){for(var u=e.slice(n,i),d="",p=0;p<u.length;p+=2)d+=String.fromCharCode(u[p]+256*u[p+1]);return d}Buffer.prototype.slice=function slice(e,n){var i,u=this.length;(e=~~e)<0?(e+=u)<0&&(e=0):e>u&&(e=u);(n=void 0===n?u:~~n)<0?(n+=u)<0&&(n=0):n>u&&(n=u);n<e&&(n=e);if(Buffer.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,n)).__proto__=Buffer.prototype;else{var d=n-e;i=new Buffer(d,void 0);for(var p=0;p<d;++p)i[p]=this[p+e]}return i};function checkOffset(e,n,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>i)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=this[e],d=1,p=0;++p<n&&(d*=256);)u+=this[e+p]*d;return u};Buffer.prototype.readUIntBE=function readUIntBE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=this[e+--n],d=1;n>0&&(d*=256);)u+=this[e+--n]*d;return u};Buffer.prototype.readUInt8=function readUInt8(e,n){n||checkOffset(e,1,this.length);return this[e]};Buffer.prototype.readUInt16LE=function readUInt16LE(e,n){n||checkOffset(e,2,this.length);return this[e]|this[e+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(e,n){n||checkOffset(e,2,this.length);return this[e]<<8|this[e+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(e,n){n||checkOffset(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]};Buffer.prototype.readUInt32BE=function readUInt32BE(e,n){n||checkOffset(e,4,this.length);return 16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Buffer.prototype.readIntLE=function readIntLE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=this[e],d=1,p=0;++p<n&&(d*=256);)u+=this[e+p]*d;u>=(d*=128)&&(u-=Math.pow(2,8*n));return u};Buffer.prototype.readIntBE=function readIntBE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=n,d=1,p=this[e+--u];u>0&&(d*=256);)p+=this[e+--u]*d;p>=(d*=128)&&(p-=Math.pow(2,8*n));return p};Buffer.prototype.readInt8=function readInt8(e,n){n||checkOffset(e,1,this.length);return 128&this[e]?-1*(255-this[e]+1):this[e]};Buffer.prototype.readInt16LE=function readInt16LE(e,n){n||checkOffset(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i};Buffer.prototype.readInt16BE=function readInt16BE(e,n){n||checkOffset(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i};Buffer.prototype.readInt32LE=function readInt32LE(e,n){n||checkOffset(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(e,n){n||checkOffset(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Buffer.prototype.readFloatLE=function readFloatLE(e,n){n||checkOffset(e,4,this.length);return d.read(this,e,!0,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(e,n){n||checkOffset(e,4,this.length);return d.read(this,e,!1,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(e,n){n||checkOffset(e,8,this.length);return d.read(this,e,!0,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(e,n){n||checkOffset(e,8,this.length);return d.read(this,e,!1,52,8)};function checkInt(e,n,i,u,d,p){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>d||n<p)throw new RangeError('"value" argument is out of bounds');if(i+u>e.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(e,n,i,u){e=+e;n|=0;i|=0;if(!u){checkInt(this,e,n,i,Math.pow(2,8*i)-1,0)}var d=1,p=0;this[n]=255&e;for(;++p<i&&(d*=256);)this[n+p]=e/d&255;return n+i};Buffer.prototype.writeUIntBE=function writeUIntBE(e,n,i,u){e=+e;n|=0;i|=0;if(!u){checkInt(this,e,n,i,Math.pow(2,8*i)-1,0)}var d=i-1,p=1;this[n+d]=255&e;for(;--d>=0&&(p*=256);)this[n+d]=e/p&255;return n+i};Buffer.prototype.writeUInt8=function writeUInt8(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,1,255,0);Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e));this[n]=255&e;return n+1};function objectWriteUInt16(e,n,i,u){n<0&&(n=65535+n+1);for(var d=0,p=Math.min(e.length-i,2);d<p;++d)e[i+d]=(n&255<<8*(u?d:1-d))>>>8*(u?d:1-d)}Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=255&e;this[n+1]=e>>>8}else objectWriteUInt16(this,e,n,!0);return n+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>8;this[n+1]=255&e}else objectWriteUInt16(this,e,n,!1);return n+2};function objectWriteUInt32(e,n,i,u){n<0&&(n=4294967295+n+1);for(var d=0,p=Math.min(e.length-i,4);d<p;++d)e[i+d]=n>>>8*(u?d:3-d)&255}Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n+3]=e>>>24;this[n+2]=e>>>16;this[n+1]=e>>>8;this[n]=255&e}else objectWriteUInt32(this,e,n,!0);return n+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>24;this[n+1]=e>>>16;this[n+2]=e>>>8;this[n+3]=255&e}else objectWriteUInt32(this,e,n,!1);return n+4};Buffer.prototype.writeIntLE=function writeIntLE(e,n,i,u){e=+e;n|=0;if(!u){var d=Math.pow(2,8*i-1);checkInt(this,e,n,i,d-1,-d)}var p=0,_=1,y=0;this[n]=255&e;for(;++p<i&&(_*=256);){e<0&&0===y&&0!==this[n+p-1]&&(y=1);this[n+p]=(e/_>>0)-y&255}return n+i};Buffer.prototype.writeIntBE=function writeIntBE(e,n,i,u){e=+e;n|=0;if(!u){var d=Math.pow(2,8*i-1);checkInt(this,e,n,i,d-1,-d)}var p=i-1,_=1,y=0;this[n+p]=255&e;for(;--p>=0&&(_*=256);){e<0&&0===y&&0!==this[n+p+1]&&(y=1);this[n+p]=(e/_>>0)-y&255}return n+i};Buffer.prototype.writeInt8=function writeInt8(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,1,127,-128);Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e));e<0&&(e=255+e+1);this[n]=255&e;return n+1};Buffer.prototype.writeInt16LE=function writeInt16LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=255&e;this[n+1]=e>>>8}else objectWriteUInt16(this,e,n,!0);return n+2};Buffer.prototype.writeInt16BE=function writeInt16BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>8;this[n+1]=255&e}else objectWriteUInt16(this,e,n,!1);return n+2};Buffer.prototype.writeInt32LE=function writeInt32LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=255&e;this[n+1]=e>>>8;this[n+2]=e>>>16;this[n+3]=e>>>24}else objectWriteUInt32(this,e,n,!0);return n+4};Buffer.prototype.writeInt32BE=function writeInt32BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,2147483647,-2147483648);e<0&&(e=4294967295+e+1);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>24;this[n+1]=e>>>16;this[n+2]=e>>>8;this[n+3]=255&e}else objectWriteUInt32(this,e,n,!1);return n+4};function checkIEEE754(e,n,i,u,d,p){if(i+u>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function writeFloat(e,n,i,u,p){p||checkIEEE754(e,0,i,4);d.write(e,n,i,u,23,4);return i+4}Buffer.prototype.writeFloatLE=function writeFloatLE(e,n,i){return writeFloat(this,e,n,!0,i)};Buffer.prototype.writeFloatBE=function writeFloatBE(e,n,i){return writeFloat(this,e,n,!1,i)};function writeDouble(e,n,i,u,p){p||checkIEEE754(e,0,i,8);d.write(e,n,i,u,52,8);return i+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,n,i){return writeDouble(this,e,n,!0,i)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,n,i){return writeDouble(this,e,n,!1,i)};Buffer.prototype.copy=function copy(e,n,i,u){i||(i=0);u||0===u||(u=this.length);n>=e.length&&(n=e.length);n||(n=0);u>0&&u<i&&(u=i);if(u===i)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length);e.length-n<u-i&&(u=e.length-n+i);var d,p=u-i;if(this===e&&i<n&&n<u)for(d=p-1;d>=0;--d)e[d+n]=this[d+i];else if(p<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(d=0;d<p;++d)e[d+n]=this[d+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+p),n);return p};Buffer.prototype.fill=function fill(e,n,i,u){if("string"==typeof e){if("string"==typeof n){u=n;n=0;i=this.length}else if("string"==typeof i){u=i;i=this.length}if(1===e.length){var d=e.charCodeAt(0);d<256&&(e=d)}if(void 0!==u&&"string"!=typeof u)throw new TypeError("encoding must be a string");if("string"==typeof u&&!Buffer.isEncoding(u))throw new TypeError("Unknown encoding: "+u)}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<i)throw new RangeError("Out of range index");if(i<=n)return this;n>>>=0;i=void 0===i?this.length:i>>>0;e||(e=0);var p;if("number"==typeof e)for(p=n;p<i;++p)this[p]=e;else{var _=Buffer.isBuffer(e)?e:utf8ToBytes(new Buffer(e,u).toString()),y=_.length;for(p=0;p<i-n;++p)this[p+n]=_[p%y]}return this};var _=/[^+\/0-9A-Za-z-_]/g;function toHex(e){return e<16?"0"+e.toString(16):e.toString(16)}function utf8ToBytes(e,n){n=n||1/0;for(var i,u=e.length,d=null,p=[],_=0;_<u;++_){if((i=e.charCodeAt(_))>55295&&i<57344){if(!d){if(i>56319){(n-=3)>-1&&p.push(239,191,189);continue}if(_+1===u){(n-=3)>-1&&p.push(239,191,189);continue}d=i;continue}if(i<56320){(n-=3)>-1&&p.push(239,191,189);d=i;continue}i=65536+(d-55296<<10|i-56320)}else d&&(n-=3)>-1&&p.push(239,191,189);d=null;if(i<128){if((n-=1)<0)break;p.push(i)}else if(i<2048){if((n-=2)<0)break;p.push(i>>6|192,63&i|128)}else if(i<65536){if((n-=3)<0)break;p.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;p.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return p}function base64ToBytes(e){return u.toByteArray(function base64clean(e){if((e=function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,n,i,u){for(var d=0;d<u&&!(d+i>=n.length||d>=e.length);++d)n[d+i]=e[d];return d}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"base64-js":147,buffer:152,ieee754:211,isarray:213}],153:[function(e,n,i){arguments[4][13][0].apply(i,arguments)},{"../../modules/_core":164,"../../modules/es6.array.is-array":203,dup:13}],154:[function(e,n,i){var u=e("../../modules/_core"),d=u.JSON||(u.JSON={stringify:JSON.stringify});n.localExports=function stringify(e){return d.stringify.apply(d,arguments)}},{"../../modules/_core":164}],155:[function(e,n,i){e("../../modules/es6.number.is-finite");n.localExports=e("../../modules/_core").Number.isFinite},{"../../modules/_core":164,"../../modules/es6.number.is-finite":204}],156:[function(e,n,i){e("../../modules/es6.object.assign");n.localExports=e("../../modules/_core").Object.assign},{"../../modules/_core":164,"../../modules/es6.object.assign":205}],157:[function(e,n,i){e("../../modules/es6.object.create");var u=e("../../modules/_core").Object;n.localExports=function create(e,n){return u.create(e,n)}},{"../../modules/_core":164,"../../modules/es6.object.create":206}],158:[function(e,n,i){arguments[4][18][0].apply(i,arguments)},{"../../modules/_core":164,"../../modules/es6.object.keys":207,dup:18}],159:[function(e,n,i){e("../modules/es6.parse-int");n.localExports=e("../modules/_core").parseInt},{"../modules/_core":164,"../modules/es6.parse-int":208}],160:[function(e,n,i){arguments[4][22][0].apply(i,arguments)},{dup:22}],161:[function(e,n,i){arguments[4][25][0].apply(i,arguments)},{"./_is-object":179,dup:25}],162:[function(e,n,i){arguments[4][27][0].apply(i,arguments)},{"./_to-absolute-index":196,"./_to-iobject":198,"./_to-length":199,dup:27}],163:[function(e,n,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],164:[function(e,n,i){arguments[4][36][0].apply(i,arguments)},{dup:36}],165:[function(e,n,i){arguments[4][38][0].apply(i,arguments)},{"./_a-function":160,dup:38}],166:[function(e,n,i){arguments[4][39][0].apply(i,arguments)},{dup:39}],167:[function(e,n,i){arguments[4][40][0].apply(i,arguments)},{"./_fails":171,dup:40}],168:[function(e,n,i){arguments[4][41][0].apply(i,arguments)},{"./_global":172,"./_is-object":179,dup:41}],169:[function(e,n,i){arguments[4][42][0].apply(i,arguments)},{dup:42}],170:[function(e,n,i){arguments[4][43][0].apply(i,arguments)},{"./_core":164,"./_ctx":165,"./_global":172,"./_has":173,"./_hide":174,dup:43}],171:[function(e,n,i){arguments[4][44][0].apply(i,arguments)},{dup:44}],172:[function(e,n,i){arguments[4][46][0].apply(i,arguments)},{dup:46}],173:[function(e,n,i){arguments[4][47][0].apply(i,arguments)},{dup:47}],174:[function(e,n,i){arguments[4][48][0].apply(i,arguments)},{"./_descriptors":167,"./_object-dp":183,"./_property-desc":191,dup:48}],175:[function(e,n,i){arguments[4][49][0].apply(i,arguments)},{"./_global":172,dup:49}],176:[function(e,n,i){arguments[4][50][0].apply(i,arguments)},{"./_descriptors":167,"./_dom-create":168,"./_fails":171,dup:50}],177:[function(e,n,i){arguments[4][52][0].apply(i,arguments)},{"./_cof":163,dup:52}],178:[function(e,n,i){arguments[4][54][0].apply(i,arguments)},{"./_cof":163,dup:54}],179:[function(e,n,i){arguments[4][55][0].apply(i,arguments)},{dup:55}],180:[function(e,n,i){arguments[4][62][0].apply(i,arguments)},{dup:62}],181:[function(e,n,i){var u=e("./_descriptors"),d=e("./_object-keys"),p=e("./_object-gops"),_=e("./_object-pie"),y=e("./_to-object"),b=e("./_iobject"),w=Object.assign;n.localExports=!w||e("./_fails")((function(){var e={},n={},i=Symbol(),u="abcdefghijklmnopqrst";e[i]=7;u.split("").forEach((function(e){n[e]=e}));return 7!=w({},e)[i]||Object.keys(w({},n)).join("")!=u}))?function assign(e,n){for(var i=y(e),w=arguments.length,x=1,P=p.f,E=_.f;w>x;)for(var k,B=b(arguments[x++]),j=P?d(B).concat(P(B)):d(B),I=j.length,O=0;I>O;){k=j[O++];u&&!E.call(B,k)||(i[k]=B[k])}return i}:w},{"./_descriptors":167,"./_fails":171,"./_iobject":177,"./_object-gops":185,"./_object-keys":187,"./_object-pie":188,"./_to-object":200}],182:[function(e,n,i){arguments[4][66][0].apply(i,arguments)},{"./_an-object":161,"./_dom-create":168,"./_enum-bug-keys":169,"./_html":175,"./_object-dps":184,"./_shared-key":192,dup:66}],183:[function(e,n,i){arguments[4][67][0].apply(i,arguments)},{"./_an-object":161,"./_descriptors":167,"./_ie8-dom-define":176,"./_to-primitive":201,dup:67}],184:[function(e,n,i){arguments[4][68][0].apply(i,arguments)},{"./_an-object":161,"./_descriptors":167,"./_object-dp":183,"./_object-keys":187,dup:68}],185:[function(e,n,i){i.f=Object.getOwnPropertySymbols},{}],186:[function(e,n,i){arguments[4][71][0].apply(i,arguments)},{"./_array-includes":162,"./_has":173,"./_shared-key":192,"./_to-iobject":198,dup:71}],187:[function(e,n,i){arguments[4][72][0].apply(i,arguments)},{"./_enum-bug-keys":169,"./_object-keys-internal":186,dup:72}],188:[function(e,n,i){arguments[4][73][0].apply(i,arguments)},{dup:73}],189:[function(e,n,i){arguments[4][74][0].apply(i,arguments)},{"./_core":164,"./_export":170,"./_fails":171,dup:74}],190:[function(e,n,i){var u=e("./_global").parseInt,d=e("./_string-trim").trim,p=e("./_string-ws"),_=/^[-+]?0[xX]/;n.localExports=8!==u(p+"08")||22!==u(p+"0x16")?function parseInt(e,n){var i=d(String(e),3);return u(i,n>>>0||(_.test(i)?16:10))}:u},{"./_global":172,"./_string-trim":194,"./_string-ws":195}],191:[function(e,n,i){arguments[4][77][0].apply(i,arguments)},{dup:77}],192:[function(e,n,i){arguments[4][84][0].apply(i,arguments)},{"./_shared":193,"./_uid":202,dup:84}],193:[function(e,n,i){arguments[4][85][0].apply(i,arguments)},{"./_core":164,"./_global":172,"./_library":180,dup:85}],194:[function(e,n,i){var u=e("./_export"),d=e("./_defined"),p=e("./_fails"),_=e("./_string-ws"),y="["+_+"]",b=RegExp("^"+y+y+"*"),w=RegExp(y+y+"*$"),x=function exporter(e,n,i){var d={},y=p((function(){return!!_[e]()||"
"!="
"[e]()})),b=d[e]=y?n(P):_[e];i&&(d[i]=b);u(u.P+u.F*y,"String",d)},P=x.trim=function(e,n){e=String(d(e));1&n&&(e=e.replace(b,""));2&n&&(e=e.replace(w,""));return e};n.localExports=x},{"./_defined":166,"./_export":170,"./_fails":171,"./_string-ws":195}],195:[function(e,n,i){n.localExports="\t\n\v\f\r \u2028\u2029\ufeff"},{}],196:[function(e,n,i){arguments[4][89][0].apply(i,arguments)},{"./_to-integer":197,dup:89}],197:[function(e,n,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],198:[function(e,n,i){arguments[4][91][0].apply(i,arguments)},{"./_defined":166,"./_iobject":177,dup:91}],199:[function(e,n,i){arguments[4][92][0].apply(i,arguments)},{"./_to-integer":197,dup:92}],200:[function(e,n,i){arguments[4][93][0].apply(i,arguments)},{"./_defined":166,dup:93}],201:[function(e,n,i){arguments[4][94][0].apply(i,arguments)},{"./_is-object":179,dup:94}],202:[function(e,n,i){arguments[4][95][0].apply(i,arguments)},{dup:95}],203:[function(e,n,i){arguments[4][101][0].apply(i,arguments)},{"./_export":170,"./_is-array":178,dup:101}],204:[function(e,n,i){var u=e("./_export"),d=e("./_global").isFinite;u(u.S,"Number",{isFinite:function isFinite(e){return"number"==typeof e&&d(e)}})},{"./_export":170,"./_global":172}],205:[function(e,n,i){var u=e("./_export");u(u.S+u.F,"Object",{assign:e("./_object-assign")})},{"./_export":170,"./_object-assign":181}],206:[function(e,n,i){var u=e("./_export");u(u.S,"Object",{create:e("./_object-create")})},{"./_export":170,"./_object-create":182}],207:[function(e,n,i){arguments[4][107][0].apply(i,arguments)},{"./_object-keys":187,"./_object-sap":189,"./_to-object":200,dup:107}],208:[function(e,n,i){var u=e("./_export"),d=e("./_parse-int");u(u.G+u.F*(parseInt!=d),{parseInt:d})},{"./_export":170,"./_parse-int":190}],209:[function(e,n,i){i.isArray=function isArray(e){return Array.isArray?Array.isArray(e):"[object Array]"===objectToString(e)};i.isBoolean=function isBoolean(e){return"boolean"==typeof e};i.isNull=function isNull(e){return null===e};i.isNullOrUndefined=function isNullOrUndefined(e){return null==e};i.isNumber=function isNumber(e){return"number"==typeof e};i.isString=function isString(e){return"string"==typeof e};i.isSymbol=function isSymbol(e){return"symbol"==typeof e};i.isUndefined=function isUndefined(e){return void 0===e};i.isRegExp=function isRegExp(e){return"[object RegExp]"===objectToString(e)};i.isObject=function isObject(e){return"object"==typeof e&&null!==e};i.isDate=function isDate(e){return"[object Date]"===objectToString(e)};i.isError=function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error};i.isFunction=function isFunction(e){return"function"==typeof e};i.isPrimitive=function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e};i.isBuffer=e("buffer").Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},{buffer:152}],210:[function(e,n,i){function EventEmitter(){this._events=this._events||{};this._maxListeners=this._maxListeners||void 0}n.localExports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._maxListeners=void 0;EventEmitter.defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(e){if(!function isNumber(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");this._maxListeners=e;return this};EventEmitter.prototype.emit=function(e){var n,i,u,d,p,_;this._events||(this._events={});if("error"===e&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var y=new Error('Uncaught, unspecified "error" event. ('+n+")");y.context=n;throw y}if(isUndefined(i=this._events[e]))return!1;if(isFunction(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1);i.apply(this,d)}else if(isObject(i)){d=Array.prototype.slice.call(arguments,1);u=(_=i.slice()).length;for(p=0;p<u;p++)_[p].apply(this,d)}return!0};EventEmitter.prototype.addListener=function(e,n){var i;if(!isFunction(n))throw TypeError("listener must be a function");this._events||(this._events={});this._events.newListener&&this.emit("newListener",e,isFunction(n.listener)?n.listener:n);this._events[e]?isObject(this._events[e])?this._events[e].push(n):this._events[e]=[this._events[e],n]:this._events[e]=n;if(isObject(this._events[e])&&!this._events[e].warned&&(i=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i){this._events[e].warned=!0;console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length);"function"==typeof console.trace&&console.trace()}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(e,n){if(!isFunction(n))throw TypeError("listener must be a function");var i=!1;function g(){this.removeListener(e,g);if(!i){i=!0;n.apply(this,arguments)}}g.listener=n;this.on(e,g);return this};EventEmitter.prototype.removeListener=function(e,n){var i,u,d,p;if(!isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;d=(i=this._events[e]).length;u=-1;if(i===n||isFunction(i.listener)&&i.listener===n){delete this._events[e];this._events.removeListener&&this.emit("removeListener",e,n)}else if(isObject(i)){for(p=d;p-- >0;)if(i[p]===n||i[p].listener&&i[p].listener===n){u=p;break}if(u<0)return this;if(1===i.length){i.length=0;delete this._events[e]}else i.splice(u,1);this._events.removeListener&&this.emit("removeListener",e,n)}return this};EventEmitter.prototype.removeAllListeners=function(e){var n,i;if(!this._events)return this;if(!this._events.removeListener){0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this}if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);this.removeAllListeners("removeListener");this._events={};return this}if(isFunction(i=this._events[e]))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);delete this._events[e];return this};EventEmitter.prototype.listeners=function(e){return this._events&&this._events[e]?isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]};EventEmitter.prototype.listenerCount=function(e){if(this._events){var n=this._events[e];if(isFunction(n))return 1;if(n)return n.length}return 0};EventEmitter.listenerCount=function(e,n){return e.listenerCount(n)};function isFunction(e){return"function"==typeof e}function isObject(e){return"object"==typeof e&&null!==e}function isUndefined(e){return void 0===e}},{}],211:[function(e,n,i){i.read=function(e,n,i,u,d){var p,_,y=8*d-u-1,b=(1<<y)-1,w=b>>1,x=-7,P=i?d-1:0,E=i?-1:1,k=e[n+P];P+=E;p=k&(1<<-x)-1;k>>=-x;x+=y;for(;x>0;p=256*p+e[n+P],P+=E,x-=8);_=p&(1<<-x)-1;p>>=-x;x+=u;for(;x>0;_=256*_+e[n+P],P+=E,x-=8);if(0===p)p=1-w;else{if(p===b)return _?NaN:1/0*(k?-1:1);_+=Math.pow(2,u);p-=w}return(k?-1:1)*_*Math.pow(2,p-u)};i.write=function(e,n,i,u,d,p){var _,y,b,w=8*p-d-1,x=(1<<w)-1,P=x>>1,E=23===d?Math.pow(2,-24)-Math.pow(2,-77):0,k=u?0:p-1,B=u?1:-1,j=n<0||0===n&&1/n<0?1:0;n=Math.abs(n);if(isNaN(n)||n===1/0){y=isNaN(n)?1:0;_=x}else{_=Math.floor(Math.log(n)/Math.LN2);if(n*(b=Math.pow(2,-_))<1){_--;b*=2}if((n+=_+P>=1?E/b:E*Math.pow(2,1-P))*b>=2){_++;b/=2}if(_+P>=x){y=0;_=x}else if(_+P>=1){y=(n*b-1)*Math.pow(2,d);_+=P}else{y=n*Math.pow(2,P-1)*Math.pow(2,d);_=0}}for(;d>=8;e[i+k]=255&y,k+=B,y/=256,d-=8);_=_<<d|y;w+=d;for(;w>0;e[i+k]=255&_,k+=B,_/=256,w-=8);e[i+k-B]|=128*j}},{}],212:[function(e,n,i){"function"==typeof Object.create?n.localExports=function inherits(e,n){if(n){e.super_=n;e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}}:n.localExports=function inherits(e,n){if(n){e.super_=n;var i=function TempCtor(){};i.prototype=n.prototype;e.prototype=new i;e.prototype.constructor=e}}},{}],213:[function(e,n,i){var u={}.toString;n.localExports=Array.isArray||function(e){return"[object Array]"==u.call(e)}},{}],214:[function(e,n,i){var u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}n.localExports=function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");e[5]="de";if("5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},i=0;i<10;i++)n["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var u={};"abcdefghijklmnopqrst".split("").forEach((function(e){u[e]=e}));return"abcdefghijklmnopqrst"===Object.keys(Object.assign({},u)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,_,y=toObject(e),b=1;b<arguments.length;b++){i=Object(arguments[b]);for(var w in i)d.call(i,w)&&(y[w]=i[w]);if(u){_=u(i);for(var x=0;x<_.length;x++)p.call(i,_[x])&&(y[_[x]]=i[_[x]])}}return y}},{}],215:[function(e,n,i){var u="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var u in i)i.hasOwnProperty(u)&&(e[u]=i[u])}}return e};i.shrinkBuf=function(e,n){if(e.length===n)return e;if(e.subarray)return e.subarray(0,n);e.length=n;return e};var d={arraySet:function arraySet(e,n,i,u,d){if(n.subarray&&e.subarray)e.set(n.subarray(i,i+u),d);else for(var p=0;p<u;p++)e[d+p]=n[i+p]},flattenChunks:function flattenChunks(e){var n,i,u,d,p,_;u=0;for(n=0,i=e.length;n<i;n++)u+=e[n].length;_=new Uint8Array(u);d=0;for(n=0,i=e.length;n<i;n++){p=e[n];_.set(p,d);d+=p.length}return _}},p={arraySet:function arraySet(e,n,i,u,d){for(var p=0;p<u;p++)e[d+p]=n[i+p]},flattenChunks:function flattenChunks(e){return[].concat.apply([],e)}};i.setTyped=function(e){if(e){i.Buf8=Uint8Array;i.Buf16=Uint16Array;i.Buf32=Int32Array;i.assign(i,d)}else{i.Buf8=Array;i.Buf16=Array;i.Buf32=Array;i.assign(i,p)}};i.setTyped(u)},{}],216:[function(e,n,i){n.localExports=function adler32(e,n,i,u){for(var d=65535&e|0,p=e>>>16&65535|0,_=0;0!==i;){i-=_=i>2e3?2e3:i;do{p=p+(d=d+n[u++]|0)|0}while(--_);d%=65521;p%=65521}return d|p<<16|0}},{}],217:[function(e,n,i){n.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}},{}],218:[function(e,n,i){var u=function makeTable(){for(var e,n=[],i=0;i<256;i++){e=i;for(var u=0;u<8;u++)e=1&e?3988292384^e>>>1:e>>>1;n[i]=e}return n}();n.localExports=function crc32(e,n,i,d){var p=u,_=d+i;e^=-1;for(var y=d;y<_;y++)e=e>>>8^p[255&(e^n[y])];return-1^e}},{}],219:[function(e,n,i){var u,d=e("../utils/common"),p=e("./trees"),_=e("./adler32"),y=e("./crc32"),b=e("./messages");function err(e,n){e.msg=b[n];return n}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){for(var n=e.length;--n>=0;)e[n]=0}function flush_pending(e){var n=e.state,i=n.pending;i>e.avail_out&&(i=e.avail_out);if(0!==i){d.arraySet(e.output,n.pending_buf,n.pending_out,i,e.next_out);e.next_out+=i;n.pending_out+=i;e.total_out+=i;e.avail_out-=i;n.pending-=i;0===n.pending&&(n.pending_out=0)}}function flush_block_only(e,n){p._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n);e.block_start=e.strstart;flush_pending(e.strm)}function put_byte(e,n){e.pending_buf[e.pending++]=n}function putShortMSB(e,n){e.pending_buf[e.pending++]=n>>>8&255;e.pending_buf[e.pending++]=255&n}function read_buf(e,n,i,u){var p=e.avail_in;p>u&&(p=u);if(0===p)return 0;e.avail_in-=p;d.arraySet(n,e.input,e.next_in,p,i);1===e.state.wrap?e.adler=_(e.adler,n,p,i):2===e.state.wrap&&(e.adler=y(e.adler,n,p,i));e.next_in+=p;e.total_in+=p;return p}function longest_match(e,n){var i,u,d=e.max_chain_length,p=e.strstart,_=e.prev_length,y=e.nice_match,b=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,w=e.window,x=e.w_mask,P=e.prev,E=e.strstart+258,k=w[p+_-1],B=w[p+_];e.prev_length>=e.good_match&&(d>>=2);y>e.lookahead&&(y=e.lookahead);do{if(w[(i=n)+_]===B&&w[i+_-1]===k&&w[i]===w[p]&&w[++i]===w[p+1]){p+=2;i++;do{}while(w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&p<E);u=258-(E-p);p=E-258;if(u>_){e.match_start=n;_=u;if(u>=y)break;k=w[p+_-1];B=w[p+_]}}}while((n=P[n&x])>b&&0!=--d);return _<=e.lookahead?_:e.lookahead}function fill_window(e){var n,i,u,p,_,y=e.w_size;do{p=e.window_size-e.lookahead-e.strstart;if(e.strstart>=y+(y-262)){d.arraySet(e.window,e.window,y,y,0);e.match_start-=y;e.strstart-=y;e.block_start-=y;n=i=e.hash_size;do{u=e.head[--n];e.head[n]=u>=y?u-y:0}while(--i);n=i=y;do{u=e.prev[--n];e.prev[n]=u>=y?u-y:0}while(--i);p+=y}if(0===e.strm.avail_in)break;i=read_buf(e.strm,e.window,e.strstart+e.lookahead,p);e.lookahead+=i;if(e.lookahead+e.insert>=3){_=e.strstart-e.insert;e.ins_h=e.window[_];e.ins_h=(e.ins_h<<e.hash_shift^e.window[_+1])&e.hash_mask;for(;e.insert;){e.ins_h=(e.ins_h<<e.hash_shift^e.window[_+3-1])&e.hash_mask;e.prev[_&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=_;_++;e.insert--;if(e.lookahead+e.insert<3)break}}}while(e.lookahead<262&&0!==e.strm.avail_in)}function deflate_fast(e,n){for(var i,u;;){if(e.lookahead<262){fill_window(e);if(e.lookahead<262&&0===n)return 1;if(0===e.lookahead)break}i=0;if(e.lookahead>=3){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}0!==i&&e.strstart-i<=e.w_size-262&&(e.match_length=longest_match(e,i));if(e.match_length>=3){u=p._tr_tally(e,e.strstart-e.match_start,e.match_length-3);e.lookahead-=e.match_length;if(e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++;e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else{e.strstart+=e.match_length;e.match_length=0;e.ins_h=e.window[e.strstart];e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}}else{u=p._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(u){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=e.strstart<2?e.strstart:2;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}function deflate_slow(e,n){for(var i,u,d;;){if(e.lookahead<262){fill_window(e);if(e.lookahead<262&&0===n)return 1;if(0===e.lookahead)break}i=0;if(e.lookahead>=3){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}e.prev_length=e.match_length;e.prev_match=e.match_start;e.match_length=2;if(0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-262){e.match_length=longest_match(e,i);e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)}if(e.prev_length>=3&&e.match_length<=e.prev_length){d=e.strstart+e.lookahead-3;u=p._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3);e.lookahead-=e.prev_length-1;e.prev_length-=2;do{if(++e.strstart<=d){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}}while(0!=--e.prev_length);e.match_available=0;e.match_length=2;e.strstart++;if(u){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}else if(e.match_available){(u=p._tr_tally(e,0,e.window[e.strstart-1]))&&flush_block_only(e,!1);e.strstart++;e.lookahead--;if(0===e.strm.avail_out)return 1}else{e.match_available=1;e.strstart++;e.lookahead--}}if(e.match_available){u=p._tr_tally(e,0,e.window[e.strstart-1]);e.match_available=0}e.insert=e.strstart<2?e.strstart:2;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}function Config(e,n,i,u,d){this.good_length=e;this.max_lazy=n;this.nice_length=i;this.max_chain=u;this.func=d}u=[new Config(0,0,0,0,(function deflate_stored(e,n){var i=65535;i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);for(;;){if(e.lookahead<=1){fill_window(e);if(0===e.lookahead&&0===n)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead;e.lookahead=0;var u=e.block_start+i;if(0===e.strstart||e.strstart>=u){e.lookahead=e.strstart-u;e.strstart=u;flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}if(e.strstart-e.block_start>=e.w_size-262){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=0;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.strstart>e.block_start){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 1})),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];function DeflateState(){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=8;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 d.Buf16(1146);this.dyn_dtree=new d.Buf16(122);this.bl_tree=new d.Buf16(78);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new d.Buf16(16);this.heap=new d.Buf16(573);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new d.Buf16(573);zero(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 deflateResetKeep(e){var n;if(!e||!e.state)return err(e,-2);e.total_in=e.total_out=0;e.data_type=2;(n=e.state).pending=0;n.pending_out=0;n.wrap<0&&(n.wrap=-n.wrap);n.status=n.wrap?42:113;e.adler=2===n.wrap?0:1;n.last_flush=0;p._tr_init(n);return 0}function deflateReset(e){var n=deflateResetKeep(e);0===n&&function lm_init(e){e.window_size=2*e.w_size;zero(e.head);e.max_lazy_match=u[e.level].max_lazy;e.good_match=u[e.level].good_length;e.nice_match=u[e.level].nice_length;e.max_chain_length=u[e.level].max_chain;e.strstart=0;e.block_start=0;e.lookahead=0;e.insert=0;e.match_length=e.prev_length=2;e.match_available=0;e.ins_h=0}(e.state);return n}function deflateInit2(e,n,i,u,p,_){if(!e)return-2;var y=1;-1===n&&(n=6);if(u<0){y=0;u=-u}else if(u>15){y=2;u-=16}if(p<1||p>9||8!==i||u<8||u>15||n<0||n>9||_<0||_>4)return err(e,-2);8===u&&(u=9);var b=new DeflateState;e.state=b;b.strm=e;b.wrap=y;b.gzhead=null;b.w_bits=u;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=p+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new d.Buf8(2*b.w_size);b.head=new d.Buf16(b.hash_size);b.prev=new d.Buf16(b.w_size);b.lit_bufsize=1<<p+6;b.pending_buf_size=4*b.lit_bufsize;b.pending_buf=new d.Buf8(b.pending_buf_size);b.d_buf=1*b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=n;b.strategy=_;b.method=i;return deflateReset(e)}i.deflateInit=function deflateInit(e,n){return deflateInit2(e,n,8,15,8,0)};i.deflateInit2=deflateInit2;i.deflateReset=deflateReset;i.deflateResetKeep=deflateResetKeep;i.deflateSetHeader=function deflateSetHeader(e,n){if(!e||!e.state)return-2;if(2!==e.state.wrap)return-2;e.state.gzhead=n;return 0};i.deflate=function deflate(e,n){var i,d,_,b;if(!e||!e.state||n>5||n<0)return e?err(e,-2):-2;d=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===d.status&&4!==n)return err(e,0===e.avail_out?-5:-2);d.strm=e;i=d.last_flush;d.last_flush=n;if(42===d.status)if(2===d.wrap){e.adler=0;put_byte(d,31);put_byte(d,139);put_byte(d,8);if(d.gzhead){put_byte(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0));put_byte(d,255&d.gzhead.time);put_byte(d,d.gzhead.time>>8&255);put_byte(d,d.gzhead.time>>16&255);put_byte(d,d.gzhead.time>>24&255);put_byte(d,9===d.level?2:d.strategy>=2||d.level<2?4:0);put_byte(d,255&d.gzhead.os);if(d.gzhead.extra&&d.gzhead.extra.length){put_byte(d,255&d.gzhead.extra.length);put_byte(d,d.gzhead.extra.length>>8&255)}d.gzhead.hcrc&&(e.adler=y(e.adler,d.pending_buf,d.pending,0));d.gzindex=0;d.status=69}else{put_byte(d,0);put_byte(d,0);put_byte(d,0);put_byte(d,0);put_byte(d,0);put_byte(d,9===d.level?2:d.strategy>=2||d.level<2?4:0);put_byte(d,3);d.status=113}}else{var w=8+(d.w_bits-8<<4)<<8;w|=(d.strategy>=2||d.level<2?0:d.level<6?1:6===d.level?2:3)<<6;0!==d.strstart&&(w|=32);w+=31-w%31;d.status=113;putShortMSB(d,w);if(0!==d.strstart){putShortMSB(d,e.adler>>>16);putShortMSB(d,65535&e.adler)}e.adler=1}if(69===d.status)if(d.gzhead.extra){_=d.pending;for(;d.gzindex<(65535&d.gzhead.extra.length);){if(d.pending===d.pending_buf_size){d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));flush_pending(e);_=d.pending;if(d.pending===d.pending_buf_size)break}put_byte(d,255&d.gzhead.extra[d.gzindex]);d.gzindex++}d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));if(d.gzindex===d.gzhead.extra.length){d.gzindex=0;d.status=73}}else d.status=73;if(73===d.status)if(d.gzhead.name){_=d.pending;do{if(d.pending===d.pending_buf_size){d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));flush_pending(e);_=d.pending;if(d.pending===d.pending_buf_size){b=1;break}}b=d.gzindex<d.gzhead.name.length?255&d.gzhead.name.charCodeAt(d.gzindex++):0;put_byte(d,b)}while(0!==b);d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));if(0===b){d.gzindex=0;d.status=91}}else d.status=91;if(91===d.status)if(d.gzhead.comment){_=d.pending;do{if(d.pending===d.pending_buf_size){d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));flush_pending(e);_=d.pending;if(d.pending===d.pending_buf_size){b=1;break}}b=d.gzindex<d.gzhead.comment.length?255&d.gzhead.comment.charCodeAt(d.gzindex++):0;put_byte(d,b)}while(0!==b);d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));0===b&&(d.status=103)}else d.status=103;if(103===d.status)if(d.gzhead.hcrc){d.pending+2>d.pending_buf_size&&flush_pending(e);if(d.pending+2<=d.pending_buf_size){put_byte(d,255&e.adler);put_byte(d,e.adler>>8&255);e.adler=0;d.status=113}}else d.status=113;if(0!==d.pending){flush_pending(e);if(0===e.avail_out){d.last_flush=-1;return 0}}else if(0===e.avail_in&&rank(n)<=rank(i)&&4!==n)return err(e,-5);if(666===d.status&&0!==e.avail_in)return err(e,-5);if(0!==e.avail_in||0!==d.lookahead||0!==n&&666!==d.status){var x=2===d.strategy?function deflate_huff(e,n){for(var i;;){if(0===e.lookahead){fill_window(e);if(0===e.lookahead){if(0===n)return 1;break}}e.match_length=0;i=p._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(i){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=0;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}(d,n):3===d.strategy?function deflate_rle(e,n){for(var i,u,d,_,y=e.window;;){if(e.lookahead<=258){fill_window(e);if(e.lookahead<=258&&0===n)return 1;if(0===e.lookahead)break}e.match_length=0;if(e.lookahead>=3&&e.strstart>0&&(u=y[d=e.strstart-1])===y[++d]&&u===y[++d]&&u===y[++d]){_=e.strstart+258;do{}while(u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&d<_);e.match_length=258-(_-d);e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3){i=p._tr_tally(e,1,e.match_length-3);e.lookahead-=e.match_length;e.strstart+=e.match_length;e.match_length=0}else{i=p._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(i){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=0;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}(d,n):u[d.level].func(d,n);3!==x&&4!==x||(d.status=666);if(1===x||3===x){0===e.avail_out&&(d.last_flush=-1);return 0}if(2===x){if(1===n)p._tr_align(d);else if(5!==n){p._tr_stored_block(d,0,0,!1);if(3===n){zero(d.head);if(0===d.lookahead){d.strstart=0;d.block_start=0;d.insert=0}}}flush_pending(e);if(0===e.avail_out){d.last_flush=-1;return 0}}}if(4!==n)return 0;if(d.wrap<=0)return 1;if(2===d.wrap){put_byte(d,255&e.adler);put_byte(d,e.adler>>8&255);put_byte(d,e.adler>>16&255);put_byte(d,e.adler>>24&255);put_byte(d,255&e.total_in);put_byte(d,e.total_in>>8&255);put_byte(d,e.total_in>>16&255);put_byte(d,e.total_in>>24&255)}else{putShortMSB(d,e.adler>>>16);putShortMSB(d,65535&e.adler)}flush_pending(e);d.wrap>0&&(d.wrap=-d.wrap);return 0!==d.pending?0:1};i.deflateEnd=function deflateEnd(e){var n;if(!e||!e.state)return-2;if(42!==(n=e.state.status)&&69!==n&&73!==n&&91!==n&&103!==n&&113!==n&&666!==n)return err(e,-2);e.state=null;return 113===n?err(e,-3):0};i.deflateSetDictionary=function deflateSetDictionary(e,n){var i,u,p,y,b,w,x,P,E=n.length;if(!e||!e.state)return-2;if(2===(y=(i=e.state).wrap)||1===y&&42!==i.status||i.lookahead)return-2;1===y&&(e.adler=_(e.adler,n,E,0));i.wrap=0;if(E>=i.w_size){if(0===y){zero(i.head);i.strstart=0;i.block_start=0;i.insert=0}P=new d.Buf8(i.w_size);d.arraySet(P,n,E-i.w_size,i.w_size,0);n=P;E=i.w_size}b=e.avail_in;w=e.next_in;x=e.input;e.avail_in=E;e.next_in=0;e.input=n;fill_window(i);for(;i.lookahead>=3;){u=i.strstart;p=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[u+3-1])&i.hash_mask;i.prev[u&i.w_mask]=i.head[i.ins_h];i.head[i.ins_h]=u;u++}while(--p);i.strstart=u;i.lookahead=2;fill_window(i)}i.strstart+=i.lookahead;i.block_start=i.strstart;i.insert=i.lookahead;i.lookahead=0;i.match_length=i.prev_length=2;i.match_available=0;e.next_in=w;e.input=x;e.avail_in=b;i.wrap=y;return 0};i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":215,"./adler32":216,"./crc32":218,"./messages":223,"./trees":224}],220:[function(e,n,i){n.localExports=function inflate_fast(e,n){var i,u,d,p,_,y,b,w,x,P,E,k,B,j,I,O,D,R,N,U,G,W,X,K,Y;i=e.state;u=e.next_in;K=e.input;d=u+(e.avail_in-5);p=e.next_out;Y=e.output;_=p-(n-e.avail_out);y=p+(e.avail_out-257);b=i.dmax;w=i.wsize;x=i.whave;P=i.wnext;E=i.window;k=i.hold;B=i.bits;j=i.lencode;I=i.distcode;O=(1<<i.lenbits)-1;D=(1<<i.distbits)-1;e:do{if(B<15){k+=K[u++]<<B;B+=8;k+=K[u++]<<B;B+=8}R=j[k&O];t:for(;;){k>>>=N=R>>>24;B-=N;if(0===(N=R>>>16&255))Y[p++]=65535&R;else{if(!(16&N)){if(0==(64&N)){R=j[(65535&R)+(k&(1<<N)-1)];continue t}if(32&N){i.mode=12;break e}e.msg="invalid literal/length code";i.mode=30;break e}U=65535&R;if(N&=15){if(B<N){k+=K[u++]<<B;B+=8}U+=k&(1<<N)-1;k>>>=N;B-=N}if(B<15){k+=K[u++]<<B;B+=8;k+=K[u++]<<B;B+=8}R=I[k&D];r:for(;;){k>>>=N=R>>>24;B-=N;if(!(16&(N=R>>>16&255))){if(0==(64&N)){R=I[(65535&R)+(k&(1<<N)-1)];continue r}e.msg="invalid distance code";i.mode=30;break e}G=65535&R;if(B<(N&=15)){k+=K[u++]<<B;if((B+=8)<N){k+=K[u++]<<B;B+=8}}if((G+=k&(1<<N)-1)>b){e.msg="invalid distance too far back";i.mode=30;break e}k>>>=N;B-=N;if(G>(N=p-_)){if((N=G-N)>x&&i.sane){e.msg="invalid distance too far back";i.mode=30;break e}W=0;X=E;if(0===P){W+=w-N;if(N<U){U-=N;do{Y[p++]=E[W++]}while(--N);W=p-G;X=Y}}else if(P<N){W+=w+P-N;if((N-=P)<U){U-=N;do{Y[p++]=E[W++]}while(--N);W=0;if(P<U){U-=N=P;do{Y[p++]=E[W++]}while(--N);W=p-G;X=Y}}}else{W+=P-N;if(N<U){U-=N;do{Y[p++]=E[W++]}while(--N);W=p-G;X=Y}}for(;U>2;){Y[p++]=X[W++];Y[p++]=X[W++];Y[p++]=X[W++];U-=3}if(U){Y[p++]=X[W++];U>1&&(Y[p++]=X[W++])}}else{W=p-G;do{Y[p++]=Y[W++];Y[p++]=Y[W++];Y[p++]=Y[W++];U-=3}while(U>2);if(U){Y[p++]=Y[W++];U>1&&(Y[p++]=Y[W++])}}break}}break}}while(u<d&&p<y);u-=U=B>>3;k&=(1<<(B-=U<<3))-1;e.next_in=u;e.next_out=p;e.avail_in=u<d?d-u+5:5-(u-d);e.avail_out=p<y?y-p+257:257-(p-y);i.hold=k;i.bits=B}},{}],221:[function(e,n,i){var u=e("../utils/common"),d=e("./adler32"),p=e("./crc32"),_=e("./inffast"),y=e("./inftrees");function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function InflateState(){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 u.Buf16(320);this.work=new u.Buf16(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}function inflateResetKeep(e){var n;if(!e||!e.state)return-2;n=e.state;e.total_in=e.total_out=n.total=0;e.msg="";n.wrap&&(e.adler=1&n.wrap);n.mode=1;n.last=0;n.havedict=0;n.dmax=32768;n.head=null;n.hold=0;n.bits=0;n.lencode=n.lendyn=new u.Buf32(852);n.distcode=n.distdyn=new u.Buf32(592);n.sane=1;n.back=-1;return 0}function inflateReset(e){var n;if(!e||!e.state)return-2;(n=e.state).wsize=0;n.whave=0;n.wnext=0;return inflateResetKeep(e)}function inflateReset2(e,n){var i,u;if(!e||!e.state)return-2;u=e.state;if(n<0){i=0;n=-n}else{i=1+(n>>4);n<48&&(n&=15)}if(n&&(n<8||n>15))return-2;null!==u.window&&u.wbits!==n&&(u.window=null);u.wrap=i;u.wbits=n;return inflateReset(e)}function inflateInit2(e,n){var i,u;if(!e)return-2;u=new InflateState;e.state=u;u.window=null;0!==(i=inflateReset2(e,n))&&(e.state=null);return i}var b,w,x=!0;function fixedtables(e){if(x){var n;b=new u.Buf32(512);w=new u.Buf32(32);n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;y(1,e.lens,0,288,b,0,e.work,{bits:9});n=0;for(;n<32;)e.lens[n++]=5;y(2,e.lens,0,32,w,0,e.work,{bits:5});x=!1}e.lencode=b;e.lenbits=9;e.distcode=w;e.distbits=5}function updatewindow(e,n,i,d){var p,_=e.state;if(null===_.window){_.wsize=1<<_.wbits;_.wnext=0;_.whave=0;_.window=new u.Buf8(_.wsize)}if(d>=_.wsize){u.arraySet(_.window,n,i-_.wsize,_.wsize,0);_.wnext=0;_.whave=_.wsize}else{(p=_.wsize-_.wnext)>d&&(p=d);u.arraySet(_.window,n,i-d,p,_.wnext);if(d-=p){u.arraySet(_.window,n,i-d,d,0);_.wnext=d;_.whave=_.wsize}else{_.wnext+=p;_.wnext===_.wsize&&(_.wnext=0);_.whave<_.wsize&&(_.whave+=p)}}return 0}i.inflateReset=inflateReset;i.inflateReset2=inflateReset2;i.inflateResetKeep=inflateResetKeep;i.inflateInit=function inflateInit(e){return inflateInit2(e,15)};i.inflateInit2=inflateInit2;i.inflate=function inflate(e,n){var i,b,w,x,P,E,k,B,j,I,O,D,R,N,U,G,W,X,K,Y,J,$,ee,te,re=0,ne=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(i=e.state).mode&&(i.mode=13);P=e.next_out;w=e.output;k=e.avail_out;x=e.next_in;b=e.input;E=e.avail_in;B=i.hold;j=i.bits;I=E;O=k;$=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(2&i.wrap&&35615===B){i.check=0;ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0);B=0;j=0;i.mode=2;break}i.flags=0;i.head&&(i.head.done=!1);if(!(1&i.wrap)||(((255&B)<<8)+(B>>8))%31){e.msg="incorrect header check";i.mode=30;break}if(8!=(15&B)){e.msg="unknown compression method";i.mode=30;break}j-=4;J=8+(15&(B>>>=4));if(0===i.wbits)i.wbits=J;else if(J>i.wbits){e.msg="invalid window size";i.mode=30;break}i.dmax=1<<J;e.adler=i.check=1;i.mode=512&B?10:12;B=0;j=0;break;case 2:for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.flags=B;if(8!=(255&i.flags)){e.msg="unknown compression method";i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set";i.mode=30;break}i.head&&(i.head.text=B>>8&1);if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0)}B=0;j=0;i.mode=3;case 3:for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.head&&(i.head.time=B);if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;ne[2]=B>>>16&255;ne[3]=B>>>24&255;i.check=p(i.check,ne,4,0)}B=0;j=0;i.mode=4;case 4:for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(i.head){i.head.xflags=255&B;i.head.os=B>>8}if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0)}B=0;j=0;i.mode=5;case 5:if(1024&i.flags){for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.length=B;i.head&&(i.head.extra_len=B);if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0)}B=0;j=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags){(D=i.length)>E&&(D=E);if(D){if(i.head){J=i.head.extra_len-i.length;i.head.extra||(i.head.extra=new Array(i.head.extra_len));u.arraySet(i.head.extra,b,x,D,J)}512&i.flags&&(i.check=p(i.check,b,D,x));E-=D;x+=D;i.length-=D}if(i.length)break e}i.length=0;i.mode=7;case 7:if(2048&i.flags){if(0===E)break e;D=0;do{J=b[x+D++];i.head&&J&&i.length<65536&&(i.head.name+=String.fromCharCode(J))}while(J&&D<E);512&i.flags&&(i.check=p(i.check,b,D,x));E-=D;x+=D;if(J)break e}else i.head&&(i.head.name=null);i.length=0;i.mode=8;case 8:if(4096&i.flags){if(0===E)break e;D=0;do{J=b[x+D++];i.head&&J&&i.length<65536&&(i.head.comment+=String.fromCharCode(J))}while(J&&D<E);512&i.flags&&(i.check=p(i.check,b,D,x));E-=D;x+=D;if(J)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(B!==(65535&i.check)){e.msg="header crc mismatch";i.mode=30;break}B=0;j=0}if(i.head){i.head.hcrc=i.flags>>9&1;i.head.done=!0}e.adler=i.check=0;i.mode=12;break;case 10:for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}e.adler=i.check=zswap32(B);B=0;j=0;i.mode=11;case 11:if(0===i.havedict){e.next_out=P;e.avail_out=k;e.next_in=x;e.avail_in=E;i.hold=B;i.bits=j;return 2}e.adler=i.check=1;i.mode=12;case 12:if(5===n||6===n)break e;case 13:if(i.last){B>>>=7&j;j-=7&j;i.mode=27;break}for(;j<3;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.last=1&B;j-=1;switch(3&(B>>>=1)){case 0:i.mode=14;break;case 1:fixedtables(i);i.mode=20;if(6===n){B>>>=2;j-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type";i.mode=30}B>>>=2;j-=2;break;case 14:B>>>=7&j;j-=7&j;for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if((65535&B)!=(B>>>16^65535)){e.msg="invalid stored block lengths";i.mode=30;break}i.length=65535&B;B=0;j=0;i.mode=15;if(6===n)break e;case 15:i.mode=16;case 16:if(D=i.length){D>E&&(D=E);D>k&&(D=k);if(0===D)break e;u.arraySet(w,b,x,D,P);E-=D;x+=D;k-=D;P+=D;i.length-=D;break}i.mode=12;break;case 17:for(;j<14;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.nlen=257+(31&B);B>>>=5;j-=5;i.ndist=1+(31&B);B>>>=5;j-=5;i.ncode=4+(15&B);B>>>=4;j-=4;if(i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols";i.mode=30;break}i.have=0;i.mode=18;case 18:for(;i.have<i.ncode;){for(;j<3;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.lens[ie[i.have++]]=7&B;B>>>=3;j-=3}for(;i.have<19;)i.lens[ie[i.have++]]=0;i.lencode=i.lendyn;i.lenbits=7;ee={bits:i.lenbits};$=y(0,i.lens,0,19,i.lencode,0,i.work,ee);i.lenbits=ee.bits;if($){e.msg="invalid code lengths set";i.mode=30;break}i.have=0;i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;;){G=(re=i.lencode[B&(1<<i.lenbits)-1])>>>16&255;W=65535&re;if((U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(W<16){B>>>=U;j-=U;i.lens[i.have++]=W}else{if(16===W){te=U+2;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}B>>>=U;j-=U;if(0===i.have){e.msg="invalid bit length repeat";i.mode=30;break}J=i.lens[i.have-1];D=3+(3&B);B>>>=2;j-=2}else if(17===W){te=U+3;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}j-=U;J=0;D=3+(7&(B>>>=U));B>>>=3;j-=3}else{te=U+7;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}j-=U;J=0;D=11+(127&(B>>>=U));B>>>=7;j-=7}if(i.have+D>i.nlen+i.ndist){e.msg="invalid bit length repeat";i.mode=30;break}for(;D--;)i.lens[i.have++]=J}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block";i.mode=30;break}i.lenbits=9;ee={bits:i.lenbits};$=y(1,i.lens,0,i.nlen,i.lencode,0,i.work,ee);i.lenbits=ee.bits;if($){e.msg="invalid literal/lengths set";i.mode=30;break}i.distbits=6;i.distcode=i.distdyn;ee={bits:i.distbits};$=y(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,ee);i.distbits=ee.bits;if($){e.msg="invalid distances set";i.mode=30;break}i.mode=20;if(6===n)break e;case 20:i.mode=21;case 21:if(E>=6&&k>=258){e.next_out=P;e.avail_out=k;e.next_in=x;e.avail_in=E;i.hold=B;i.bits=j;_(e,O);P=e.next_out;w=e.output;k=e.avail_out;x=e.next_in;b=e.input;E=e.avail_in;B=i.hold;j=i.bits;12===i.mode&&(i.back=-1);break}i.back=0;for(;;){G=(re=i.lencode[B&(1<<i.lenbits)-1])>>>16&255;W=65535&re;if((U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(G&&0==(240&G)){X=U;K=G;Y=W;for(;;){G=(re=i.lencode[Y+((B&(1<<X+K)-1)>>X)])>>>16&255;W=65535&re;if(X+(U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}B>>>=X;j-=X;i.back+=X}B>>>=U;j-=U;i.back+=U;i.length=W;if(0===G){i.mode=26;break}if(32&G){i.back=-1;i.mode=12;break}if(64&G){e.msg="invalid literal/length code";i.mode=30;break}i.extra=15&G;i.mode=22;case 22:if(i.extra){te=i.extra;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.length+=B&(1<<i.extra)-1;B>>>=i.extra;j-=i.extra;i.back+=i.extra}i.was=i.length;i.mode=23;case 23:for(;;){G=(re=i.distcode[B&(1<<i.distbits)-1])>>>16&255;W=65535&re;if((U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(0==(240&G)){X=U;K=G;Y=W;for(;;){G=(re=i.distcode[Y+((B&(1<<X+K)-1)>>X)])>>>16&255;W=65535&re;if(X+(U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}B>>>=X;j-=X;i.back+=X}B>>>=U;j-=U;i.back+=U;if(64&G){e.msg="invalid distance code";i.mode=30;break}i.offset=W;i.extra=15&G;i.mode=24;case 24:if(i.extra){te=i.extra;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.offset+=B&(1<<i.extra)-1;B>>>=i.extra;j-=i.extra;i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back";i.mode=30;break}i.mode=25;case 25:if(0===k)break e;D=O-k;if(i.offset>D){if((D=i.offset-D)>i.whave&&i.sane){e.msg="invalid distance too far back";i.mode=30;break}if(D>i.wnext){D-=i.wnext;R=i.wsize-D}else R=i.wnext-D;D>i.length&&(D=i.length);N=i.window}else{N=w;R=P-i.offset;D=i.length}D>k&&(D=k);k-=D;i.length-=D;do{w[P++]=N[R++]}while(--D);0===i.length&&(i.mode=21);break;case 26:if(0===k)break e;w[P++]=i.length;k--;i.mode=21;break;case 27:if(i.wrap){for(;j<32;){if(0===E)break e;E--;B|=b[x++]<<j;j+=8}O-=k;e.total_out+=O;i.total+=O;O&&(e.adler=i.check=i.flags?p(i.check,w,O,P-O):d(i.check,w,O,P-O));O=k;if((i.flags?B:zswap32(B))!==i.check){e.msg="incorrect data check";i.mode=30;break}B=0;j=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(B!==(4294967295&i.total)){e.msg="incorrect length check";i.mode=30;break}B=0;j=0}i.mode=29;case 29:$=1;break e;case 30:$=-3;break e;case 31:return-4;case 32:default:return-2}e.next_out=P;e.avail_out=k;e.next_in=x;e.avail_in=E;i.hold=B;i.bits=j;if((i.wsize||O!==e.avail_out&&i.mode<30&&(i.mode<27||4!==n))&&updatewindow(e,e.output,e.next_out,O-e.avail_out)){i.mode=31;return-4}I-=e.avail_in;O-=e.avail_out;e.total_in+=I;e.total_out+=O;i.total+=O;i.wrap&&O&&(e.adler=i.check=i.flags?p(i.check,w,O,e.next_out-O):d(i.check,w,O,e.next_out-O));e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0);(0===I&&0===O||4===n)&&0===$&&($=-5);return $};i.inflateEnd=function inflateEnd(e){if(!e||!e.state)return-2;var n=e.state;n.window&&(n.window=null);e.state=null;return 0};i.inflateGetHeader=function inflateGetHeader(e,n){var i;if(!e||!e.state)return-2;if(0==(2&(i=e.state).wrap))return-2;i.head=n;n.done=!1;return 0};i.inflateSetDictionary=function inflateSetDictionary(e,n){var i,u=n.length;if(!e||!e.state)return-2;if(0!==(i=e.state).wrap&&11!==i.mode)return-2;if(11===i.mode&&d(1,n,u,0)!==i.check)return-3;if(updatewindow(e,n,u,u)){i.mode=31;return-4}i.havedict=1;return 0};i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":215,"./adler32":216,"./crc32":218,"./inffast":220,"./inftrees":222}],222:[function(e,n,i){var u=e("../utils/common"),d=[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],p=[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],_=[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],y=[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];n.localExports=function inflate_table(e,n,i,b,w,x,P,E){var k,B,j,I,O,D,R,N,U,G=E.bits,W=0,X=0,K=0,Y=0,J=0,$=0,ee=0,te=0,re=0,ne=0,ie=null,oe=0,ae=new u.Buf16(16),se=new u.Buf16(16),le=null,ue=0;for(W=0;W<=15;W++)ae[W]=0;for(X=0;X<b;X++)ae[n[i+X]]++;J=G;for(Y=15;Y>=1&&0===ae[Y];Y--);J>Y&&(J=Y);if(0===Y){w[x++]=20971520;w[x++]=20971520;E.bits=1;return 0}for(K=1;K<Y&&0===ae[K];K++);J<K&&(J=K);te=1;for(W=1;W<=15;W++){te<<=1;if((te-=ae[W])<0)return-1}if(te>0&&(0===e||1!==Y))return-1;se[1]=0;for(W=1;W<15;W++)se[W+1]=se[W]+ae[W];for(X=0;X<b;X++)0!==n[i+X]&&(P[se[n[i+X]]++]=X);if(0===e){ie=le=P;D=19}else if(1===e){ie=d;oe-=257;le=p;ue-=257;D=256}else{ie=_;le=y;D=-1}ne=0;X=0;W=K;O=x;$=J;ee=0;j=-1;I=(re=1<<J)-1;if(1===e&&re>852||2===e&&re>592)return 1;for(;;){R=W-ee;if(P[X]<D){N=0;U=P[X]}else if(P[X]>D){N=le[ue+P[X]];U=ie[oe+P[X]]}else{N=96;U=0}k=1<<W-ee;K=B=1<<$;do{w[O+(ne>>ee)+(B-=k)]=R<<24|N<<16|U|0}while(0!==B);k=1<<W-1;for(;ne&k;)k>>=1;if(0!==k){ne&=k-1;ne+=k}else ne=0;X++;if(0==--ae[W]){if(W===Y)break;W=n[i+P[X]]}if(W>J&&(ne&I)!==j){0===ee&&(ee=J);O+=K;te=1<<($=W-ee);for(;$+ee<Y&&!((te-=ae[$+ee])<=0);){$++;te<<=1}re+=1<<$;if(1===e&&re>852||2===e&&re>592)return 1;w[j=ne&I]=J<<24|$<<16|O-x|0}}0!==ne&&(w[O+ne]=W-ee<<24|64<<16|0);E.bits=J;return 0}},{"../utils/common":215}],223:[function(e,n,i){n.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"}},{}],224:[function(e,n,i){var u=e("../utils/common");function zero(e){for(var n=e.length;--n>=0;)e[n]=0}var d=[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],p=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],b=new Array(576);zero(b);var w=new Array(60);zero(w);var x=new Array(512);zero(x);var P=new Array(256);zero(P);var E=new Array(29);zero(E);var k,B,j,I=new Array(30);zero(I);function StaticTreeDesc(e,n,i,u,d){this.static_tree=e;this.extra_bits=n;this.extra_base=i;this.elems=u;this.max_length=d;this.has_stree=e&&e.length}function TreeDesc(e,n){this.dyn_tree=e;this.max_code=0;this.stat_desc=n}function d_code(e){return e<256?x[e]:x[256+(e>>>7)]}function put_short(e,n){e.pending_buf[e.pending++]=255&n;e.pending_buf[e.pending++]=n>>>8&255}function send_bits(e,n,i){if(e.bi_valid>16-i){e.bi_buf|=n<<e.bi_valid&65535;put_short(e,e.bi_buf);e.bi_buf=n>>16-e.bi_valid;e.bi_valid+=i-16}else{e.bi_buf|=n<<e.bi_valid&65535;e.bi_valid+=i}}function send_code(e,n,i){send_bits(e,i[2*n],i[2*n+1])}function bi_reverse(e,n){var i=0;do{i|=1&e;e>>>=1;i<<=1}while(--n>0);return i>>>1}function gen_codes(e,n,i){var u,d,p=new Array(16),_=0;for(u=1;u<=15;u++)p[u]=_=_+i[u-1]<<1;for(d=0;d<=n;d++){var y=e[2*d+1];0!==y&&(e[2*d]=bi_reverse(p[y]++,y))}}function init_block(e){var n;for(n=0;n<286;n++)e.dyn_ltree[2*n]=0;for(n=0;n<30;n++)e.dyn_dtree[2*n]=0;for(n=0;n<19;n++)e.bl_tree[2*n]=0;e.dyn_ltree[512]=1;e.opt_len=e.static_len=0;e.last_lit=e.matches=0}function bi_windup(e){e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf);e.bi_buf=0;e.bi_valid=0}function smaller(e,n,i,u){var d=2*n,p=2*i;return e[d]<e[p]||e[d]===e[p]&&u[n]<=u[i]}function pqdownheap(e,n,i){for(var u=e.heap[i],d=i<<1;d<=e.heap_len;){d<e.heap_len&&smaller(n,e.heap[d+1],e.heap[d],e.depth)&&d++;if(smaller(n,u,e.heap[d],e.depth))break;e.heap[i]=e.heap[d];i=d;d<<=1}e.heap[i]=u}function compress_block(e,n,i){var u,_,y,b,w=0;if(0!==e.last_lit)do{u=e.pending_buf[e.d_buf+2*w]<<8|e.pending_buf[e.d_buf+2*w+1];_=e.pending_buf[e.l_buf+w];w++;if(0===u)send_code(e,_,n);else{send_code(e,(y=P[_])+256+1,n);0!==(b=d[y])&&send_bits(e,_-=E[y],b);send_code(e,y=d_code(--u),i);0!==(b=p[y])&&send_bits(e,u-=I[y],b)}}while(w<e.last_lit);send_code(e,256,n)}function build_tree(e,n){var i,u,d,p=n.dyn_tree,_=n.stat_desc.static_tree,y=n.stat_desc.has_stree,b=n.stat_desc.elems,w=-1;e.heap_len=0;e.heap_max=573;for(i=0;i<b;i++)if(0!==p[2*i]){e.heap[++e.heap_len]=w=i;e.depth[i]=0}else p[2*i+1]=0;for(;e.heap_len<2;){p[2*(d=e.heap[++e.heap_len]=w<2?++w:0)]=1;e.depth[d]=0;e.opt_len--;y&&(e.static_len-=_[2*d+1])}n.max_code=w;for(i=e.heap_len>>1;i>=1;i--)pqdownheap(e,p,i);d=b;do{i=e.heap[1];e.heap[1]=e.heap[e.heap_len--];pqdownheap(e,p,1);u=e.heap[1];e.heap[--e.heap_max]=i;e.heap[--e.heap_max]=u;p[2*d]=p[2*i]+p[2*u];e.depth[d]=(e.depth[i]>=e.depth[u]?e.depth[i]:e.depth[u])+1;p[2*i+1]=p[2*u+1]=d;e.heap[1]=d++;pqdownheap(e,p,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];!function gen_bitlen(e,n){var i,u,d,p,_,y,b=n.dyn_tree,w=n.max_code,x=n.stat_desc.static_tree,P=n.stat_desc.has_stree,E=n.stat_desc.extra_bits,k=n.stat_desc.extra_base,B=n.stat_desc.max_length,j=0;for(p=0;p<=15;p++)e.bl_count[p]=0;b[2*e.heap[e.heap_max]+1]=0;for(i=e.heap_max+1;i<573;i++){if((p=b[2*b[2*(u=e.heap[i])+1]+1]+1)>B){p=B;j++}b[2*u+1]=p;if(!(u>w)){e.bl_count[p]++;_=0;u>=k&&(_=E[u-k]);y=b[2*u];e.opt_len+=y*(p+_);P&&(e.static_len+=y*(x[2*u+1]+_))}}if(0!==j){do{p=B-1;for(;0===e.bl_count[p];)p--;e.bl_count[p]--;e.bl_count[p+1]+=2;e.bl_count[B]--;j-=2}while(j>0);for(p=B;0!==p;p--){u=e.bl_count[p];for(;0!==u;)if(!((d=e.heap[--i])>w)){if(b[2*d+1]!==p){e.opt_len+=(p-b[2*d+1])*b[2*d];b[2*d+1]=p}u--}}}}(e,n);gen_codes(p,w,e.bl_count)}function scan_tree(e,n,i){var u,d,p=-1,_=n[1],y=0,b=7,w=4;if(0===_){b=138;w=3}n[2*(i+1)+1]=65535;for(u=0;u<=i;u++){d=_;_=n[2*(u+1)+1];if(!(++y<b&&d===_)){if(y<w)e.bl_tree[2*d]+=y;else if(0!==d){d!==p&&e.bl_tree[2*d]++;e.bl_tree[32]++}else y<=10?e.bl_tree[34]++:e.bl_tree[36]++;y=0;p=d;if(0===_){b=138;w=3}else if(d===_){b=6;w=3}else{b=7;w=4}}}}function send_tree(e,n,i){var u,d,p=-1,_=n[1],y=0,b=7,w=4;if(0===_){b=138;w=3}for(u=0;u<=i;u++){d=_;_=n[2*(u+1)+1];if(!(++y<b&&d===_)){if(y<w)do{send_code(e,d,e.bl_tree)}while(0!=--y);else if(0!==d){if(d!==p){send_code(e,d,e.bl_tree);y--}send_code(e,16,e.bl_tree);send_bits(e,y-3,2)}else if(y<=10){send_code(e,17,e.bl_tree);send_bits(e,y-3,3)}else{send_code(e,18,e.bl_tree);send_bits(e,y-11,7)}y=0;p=d;if(0===_){b=138;w=3}else if(d===_){b=6;w=3}else{b=7;w=4}}}}var O=!1;function _tr_stored_block(e,n,i,d){send_bits(e,0+(d?1:0),3);!function copy_block(e,n,i,d){bi_windup(e);if(d){put_short(e,i);put_short(e,~i)}u.arraySet(e.pending_buf,e.window,n,i,e.pending);e.pending+=i}(e,n,i,!0)}i._tr_init=function _tr_init(e){if(!O){!function tr_static_init(){var e,n,i,u,y,O=new Array(16);i=0;for(u=0;u<28;u++){E[u]=i;for(e=0;e<1<<d[u];e++)P[i++]=u}P[i-1]=u;y=0;for(u=0;u<16;u++){I[u]=y;for(e=0;e<1<<p[u];e++)x[y++]=u}y>>=7;for(;u<30;u++){I[u]=y<<7;for(e=0;e<1<<p[u]-7;e++)x[256+y++]=u}for(n=0;n<=15;n++)O[n]=0;e=0;for(;e<=143;){b[2*e+1]=8;e++;O[8]++}for(;e<=255;){b[2*e+1]=9;e++;O[9]++}for(;e<=279;){b[2*e+1]=7;e++;O[7]++}for(;e<=287;){b[2*e+1]=8;e++;O[8]++}gen_codes(b,287,O);for(e=0;e<30;e++){w[2*e+1]=5;w[2*e]=bi_reverse(e,5)}k=new StaticTreeDesc(b,d,257,286,15);B=new StaticTreeDesc(w,p,0,30,15);j=new StaticTreeDesc(new Array(0),_,0,19,7)}();O=!0}e.l_desc=new TreeDesc(e.dyn_ltree,k);e.d_desc=new TreeDesc(e.dyn_dtree,B);e.bl_desc=new TreeDesc(e.bl_tree,j);e.bi_buf=0;e.bi_valid=0;init_block(e)};i._tr_stored_block=_tr_stored_block;i._tr_flush_block=function _tr_flush_block(e,n,i,u){var d,p,_=0;if(e.level>0){2===e.strm.data_type&&(e.strm.data_type=function detect_data_type(e){var n,i=4093624447;for(n=0;n<=31;n++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*n])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(n=32;n<256;n++)if(0!==e.dyn_ltree[2*n])return 1;return 0}(e));build_tree(e,e.l_desc);build_tree(e,e.d_desc);_=function build_bl_tree(e){var n;scan_tree(e,e.dyn_ltree,e.l_desc.max_code);scan_tree(e,e.dyn_dtree,e.d_desc.max_code);build_tree(e,e.bl_desc);for(n=18;n>=3&&0===e.bl_tree[2*y[n]+1];n--);e.opt_len+=3*(n+1)+5+5+4;return n}(e);d=e.opt_len+3+7>>>3;(p=e.static_len+3+7>>>3)<=d&&(d=p)}else d=p=i+5;if(i+4<=d&&-1!==n)_tr_stored_block(e,n,i,u);else if(4===e.strategy||p===d){send_bits(e,2+(u?1:0),3);compress_block(e,b,w)}else{send_bits(e,4+(u?1:0),3);!function send_all_trees(e,n,i,u){var d;send_bits(e,n-257,5);send_bits(e,i-1,5);send_bits(e,u-4,4);for(d=0;d<u;d++)send_bits(e,e.bl_tree[2*y[d]+1],3);send_tree(e,e.dyn_ltree,n-1);send_tree(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,_+1);compress_block(e,e.dyn_ltree,e.dyn_dtree)}init_block(e);u&&bi_windup(e)};i._tr_tally=function _tr_tally(e,n,i){e.pending_buf[e.d_buf+2*e.last_lit]=n>>>8&255;e.pending_buf[e.d_buf+2*e.last_lit+1]=255&n;e.pending_buf[e.l_buf+e.last_lit]=255&i;e.last_lit++;if(0===n)e.dyn_ltree[2*i]++;else{e.matches++;n--;e.dyn_ltree[2*(P[i]+256+1)]++;e.dyn_dtree[2*d_code(n)]++}return e.last_lit===e.lit_bufsize-1};i._tr_align=function _tr_align(e){send_bits(e,2,3);send_code(e,256,b);!function bi_flush(e){if(16===e.bi_valid){put_short(e,e.bi_buf);e.bi_buf=0;e.bi_valid=0}else if(e.bi_valid>=8){e.pending_buf[e.pending++]=255&e.bi_buf;e.bi_buf>>=8;e.bi_valid-=8}}(e)}},{"../utils/common":215}],225:[function(e,n,i){n.localExports=function ZStream(){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}},{}],226:[function(e,n,i){(function(i){(function(){var u=e("fs"),d=e("zlib");n.localExports=function(){PNG.decode=function decode(e,n){return u.readFile(e,(function(e,i){return new PNG(i).decode((function(e){return n(e)}))}))};PNG.load=function load(e){return new PNG(u.readFileSync(e))};function PNG(e){var n;this.data=e;this.pos=8;this.palette=[];this.imgData=[];this.transparency={};this.text={};for(;;){var u=this.readUInt32(),d="";for(n=0;n<4;n++)d+=String.fromCharCode(this.data[this.pos++]);switch(d){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(u);break;case"IDAT":for(n=0;n<u;n++)this.imgData.push(this.data[this.pos++]);break;case"tRNS":this.transparency={};switch(this.colorType){case 3:this.transparency.indexed=this.read(u);var p=255-this.transparency.indexed.length;if(p>0)for(n=0;n<p;n++)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(u)[0];break;case 2:this.transparency.rgb=this.read(u)}break;case"tEXt":var _=this.read(u),y=_.indexOf(0),b=String.fromCharCode.apply(String,_.slice(0,y));this.text[b]=String.fromCharCode.apply(String,_.slice(y+1));break;case"IEND":switch(this.colorType){case 0:case 3:case 4:this.colors=1;break;case 2:case 6:this.colors=3}this.hasAlphaChannel=-1!==[4,6].indexOf(this.colorType);var w=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*w;switch(this.colors){case 1:this.colorSpace="DeviceGray";break;case 3:this.colorSpace="DeviceRGB"}this.imgData=new i(this.imgData);return;default:this.pos+=u}this.pos+=4;if(this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}var e=PNG.prototype;e.read=function read(e){for(var n=new Array(e),i=0;i<e;i++)n[i]=this.data[this.pos++];return n};e.readUInt32=function readUInt32(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]};e.readUInt16=function readUInt16(){return this.data[this.pos++]<<8|this.data[this.pos++]};e.decodePixels=function decodePixels(e){var n=this;return d.inflate(this.imgData,(function(u,d){if(u)throw u;var p=n.width,_=n.height,y=n.pixelBitlength/8,b=new i(p*_*y),w=d.length,x=0;function pass(e,n,u,P,E){void 0===E&&(E=!1);for(var k=Math.ceil((p-e)/u),B=Math.ceil((_-n)/P),j=y*k,I=E?b:new i(j*B),O=0,D=0;O<B&&x<w;){var R,N,U,G,W;switch(d[x++]){case 0:for(U=0;U<j;U++)I[D++]=d[x++];break;case 1:for(U=0;U<j;U++){R=d[x++];G=U<y?0:I[D-y];I[D++]=(R+G)%256}break;case 2:for(U=0;U<j;U++){R=d[x++];N=(U-U%y)/y;W=O&&I[(O-1)*j+N*y+U%y];I[D++]=(W+R)%256}break;case 3:for(U=0;U<j;U++){R=d[x++];N=(U-U%y)/y;G=U<y?0:I[D-y];W=O&&I[(O-1)*j+N*y+U%y];I[D++]=(R+Math.floor((G+W)/2))%256}break;case 4:for(U=0;U<j;U++){var X,K;R=d[x++];N=(U-U%y)/y;G=U<y?0:I[D-y];if(0===O)W=K=0;else{W=I[(O-1)*j+N*y+U%y];K=N&&I[(O-1)*j+(N-1)*y+U%y]}var Y=G+W-K,J=Math.abs(Y-G),$=Math.abs(Y-W),ee=Math.abs(Y-K);X=J<=$&&J<=ee?G:$<=ee?W:K;I[D++]=(R+X)%256}break;default:throw new Error("Invalid filter algorithm: "+d[x-1])}if(!E){var te=((n+O*P)*p+e)*y,re=O*j;for(U=0;U<k;U++){for(var ne=0;ne<y;ne++)b[te++]=I[re++];te+=(u-1)*y}}O++}}if(1===n.interlaceMethod){pass(0,0,8,8);pass(4,0,8,8);pass(0,4,4,8);pass(2,0,4,4);pass(0,2,2,4);pass(1,0,2,2);pass(0,1,1,2)}else pass(0,0,1,1,!0);return e(b)}))};e.decodePalette=function decodePalette(){for(var e=this.palette,n=e.length,u=this.transparency.indexed||[],d=new i(u.length+n),p=0,_=0,y=0;y<n;y+=3){var b;d[p++]=e[y];d[p++]=e[y+1];d[p++]=e[y+2];d[p++]=null!=(b=u[_++])?b:255}return d};e.copyToImageData=function copyToImageData(e,n){var i,u,d=this.colors,p=null,_=this.hasAlphaChannel;if(this.palette.length){p=this._decodedPalette||(this._decodedPalette=this.decodePalette());d=4;_=!0}var y=e.data||e,b=y.length,w=p||n,x=i=0;if(1===d)for(;x<b;){u=p?4*n[x/4]:i;var P=w[u++];y[x++]=P;y[x++]=P;y[x++]=P;y[x++]=_?w[u++]:255;i=u}else for(;x<b;){u=p?4*n[x/4]:i;y[x++]=w[u++];y[x++]=w[u++];y[x++]=w[u++];y[x++]=_?w[u++]:255;i=u}};e.decode=function decode(e){var n=this,u=new i(this.width*this.height*4);return this.decodePixels((function(i){n.copyToImageData(u,i);return e(u)}))};return PNG}()}).call(this)}).call(this,e("buffer").Buffer)},{buffer:152,fs:151,zlib:150}],227:[function(e,n,i){(function(e){(function(){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?n.localExports={nextTick:function nextTick(n,i,u,d){if("function"!=typeof n)throw new TypeError('"callback" argument must be a function');var p,_,y=arguments.length;switch(y){case 0:case 1:return e.nextTick(n);case 2:return e.nextTick((function afterTickOne(){n.call(null,i)}));case 3:return e.nextTick((function afterTickTwo(){n.call(null,i,u)}));case 4:return e.nextTick((function afterTickThree(){n.call(null,i,u,d)}));default:p=new Array(y-1);_=0;for(;_<p.length;)p[_++]=arguments[_];return e.nextTick((function afterTick(){n.apply(null,p)}))}}}:n.localExports=e}).call(this)}).call(this,e("_process"))},{_process:228}],228:[function(e,n,i){var u,d,p=n.localExports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}!function(){try{u="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){u=defaultSetTimout}try{d="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){d=defaultClearTimeout}}();function runTimeout(e){if(u===setTimeout)return setTimeout(e,0);if((u===defaultSetTimout||!u)&&setTimeout){u=setTimeout;return setTimeout(e,0)}try{return u(e,0)}catch(n){try{return u.call(null,e,0)}catch(n){return u.call(this,e,0)}}}var _,y=[],b=!1,w=-1;function cleanUpNextTick(){if(b&&_){b=!1;_.length?y=_.concat(y):w=-1;y.length&&drainQueue()}}function drainQueue(){if(!b){var e=runTimeout(cleanUpNextTick);b=!0;for(var n=y.length;n;){_=y;y=[];for(;++w<n;)_&&_[w].run();w=-1;n=y.length}_=null;b=!1;!function runClearTimeout(e){if(d===clearTimeout)return clearTimeout(e);if((d===defaultClearTimeout||!d)&&clearTimeout){d=clearTimeout;return clearTimeout(e)}try{return d(e)}catch(n){try{return d.call(null,e)}catch(n){return d.call(this,e)}}}(e)}}p.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)n[i-1]=arguments[i];y.push(new Item(e,n));1!==y.length||b||runTimeout(drainQueue)};function Item(e,n){this.fun=e;this.array=n}Item.prototype.run=function(){this.fun.apply(null,this.array)};p.title="browser";p.browser=!0;p.env={};p.argv=[];p.version="";p.versions={};function noop(){}p.on=noop;p.addListener=noop;p.once=noop;p.off=noop;p.removeListener=noop;p.removeAllListeners=noop;p.emit=noop;p.prependListener=noop;p.prependOnceListener=noop;p.listeners=function(e){return[]};p.binding=function(e){throw new Error("process.binding is not supported")};p.cwd=function(){return"/"};p.chdir=function(e){throw new Error("process.chdir is not supported")};p.umask=function(){return 0}},{}],229:[function(e,n,i){n.localExports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":230}],230:[function(e,n,i){var u=e("process-nextick-args"),d=Object.keys||function(e){var n=[];for(var i in e)n.push(i);return n};n.localExports=Duplex;var p=Object.create(e("core-util-is"));p.inherits=e("inherits");var _=e("./_stream_readable"),y=e("./_stream_writable");p.inherits(Duplex,_);for(var b=d(y.prototype),w=0;w<b.length;w++){var x=b[w];Duplex.prototype[x]||(Duplex.prototype[x]=y.prototype[x])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);_.call(this,e);y.call(this,e);e&&!1===e.readable&&(this.readable=!1);e&&!1===e.writable&&(this.writable=!1);this.allowHalfOpen=!0;e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function get(){return this._writableState.highWaterMark}});function onend(){this.allowHalfOpen||this._writableState.ended||u.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function set(e){if(void 0!==this._readableState&&void 0!==this._writableState){this._readableState.destroyed=e;this._writableState.destroyed=e}}});Duplex.prototype._destroy=function(e,n){this.push(null);this.end();u.nextTick(n,e)}},{"./_stream_readable":232,"./_stream_writable":234,"core-util-is":209,inherits:212,"process-nextick-args":227}],231:[function(e,n,i){n.localExports=PassThrough;var u=e("./_stream_transform"),d=Object.create(e("core-util-is"));d.inherits=e("inherits");d.inherits(PassThrough,u);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);u.call(this,e)}PassThrough.prototype._transform=function(e,n,i){i(null,e)}},{"./_stream_transform":233,"core-util-is":209,inherits:212}],232:[function(e,n,i){(function(i,u){(function(){var d=e("process-nextick-args");n.localExports=Readable;var p,_=e("isarray");Readable.ReadableState=ReadableState;e("events").EventEmitter;var y=function EElistenerCount(e,n){return e.listeners(n).length},b=e("./internal/streams/stream"),w=e("safe-buffer").Buffer,x=u.Uint8Array||function(){};var P=Object.create(e("core-util-is"));P.inherits=e("inherits");var E=e("util"),k=void 0;k=E&&E.debuglog?E.debuglog("stream"):function debug(){};var B,j=e("./internal/streams/BufferList"),I=e("./internal/streams/destroy");P.inherits(Readable,b);var O=["error","close","destroy","pause","resume"];function ReadableState(n,i){n=n||{};var u=i instanceof(p=p||e("./_stream_duplex"));this.objectMode=!!n.objectMode;u&&(this.objectMode=this.objectMode||!!n.readableObjectMode);var d=n.highWaterMark,_=n.readableHighWaterMark,y=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:u&&(_||0===_)?_:y;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new j;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=!1;this.endEmitted=!1;this.reading=!1;this.sync=!0;this.needReadable=!1;this.emittedReadable=!1;this.readableListening=!1;this.resumeScheduled=!1;this.destroyed=!1;this.defaultEncoding=n.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=!1;this.decoder=null;this.encoding=null;if(n.encoding){B||(B=e("string_decoder/").StringDecoder);this.decoder=new B(n.encoding);this.encoding=n.encoding}}function Readable(n){p=p||e("./_stream_duplex");if(!(this instanceof Readable))return new Readable(n);this._readableState=new ReadableState(n,this);this.readable=!0;if(n){"function"==typeof n.read&&(this._read=n.read);"function"==typeof n.destroy&&(this._destroy=n.destroy)}b.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function get(){return void 0!==this._readableState&&this._readableState.destroyed},set:function set(e){this._readableState&&(this._readableState.destroyed=e)}});Readable.prototype.destroy=I.destroy;Readable.prototype._undestroy=I.undestroy;Readable.prototype._destroy=function(e,n){this.push(null);n(e)};Readable.prototype.push=function(e,n){var i,u=this._readableState;if(u.objectMode)i=!0;else if("string"==typeof e){if((n=n||u.defaultEncoding)!==u.encoding){e=w.from(e,n);n=""}i=!0}return readableAddChunk(this,e,n,!1,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,!0,!1)};function readableAddChunk(e,n,i,u,d){var p=e._readableState;if(null===n){p.reading=!1;!function onEofChunk(e,n){if(n.ended)return;if(n.decoder){var i=n.decoder.end();if(i&&i.length){n.buffer.push(i);n.length+=n.objectMode?1:i.length}}n.ended=!0;emitReadable(e)}(e,p)}else{var _;d||(_=function chunkInvalid(e,n){var i;(function _isUint8Array(e){return w.isBuffer(e)||e instanceof x})(n)||"string"==typeof n||void 0===n||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(p,n));if(_)e.emit("error",_);else if(p.objectMode||n&&n.length>0){"string"==typeof n||p.objectMode||Object.getPrototypeOf(n)===w.prototype||(n=function _uint8ArrayToBuffer(e){return w.from(e)}(n));if(u)p.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):addChunk(e,p,n,!0);else if(p.ended)e.emit("error",new Error("stream.push() after EOF"));else{p.reading=!1;if(p.decoder&&!i){n=p.decoder.write(n);p.objectMode||0!==n.length?addChunk(e,p,n,!1):maybeReadMore(e,p)}else addChunk(e,p,n,!1)}}else u||(p.reading=!1)}return function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(p)}function addChunk(e,n,i,u){if(n.flowing&&0===n.length&&!n.sync){e.emit("data",i);e.read(0)}else{n.length+=n.objectMode?1:i.length;u?n.buffer.unshift(i):n.buffer.push(i);n.needReadable&&emitReadable(e)}maybeReadMore(e,n)}Readable.prototype.isPaused=function(){return!1===this._readableState.flowing};Readable.prototype.setEncoding=function(n){B||(B=e("string_decoder/").StringDecoder);this._readableState.decoder=new B(n);this._readableState.encoding=n;return this};function howMuchToRead(e,n){if(e<=0||0===n.length&&n.ended)return 0;if(n.objectMode)return 1;if(e!=e)return n.flowing&&n.length?n.buffer.head.data.length:n.length;e>n.highWaterMark&&(n.highWaterMark=function computeNewHighWaterMark(e){if(e>=8388608)e=8388608;else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}(e));if(e<=n.length)return e;if(!n.ended){n.needReadable=!0;return 0}return n.length}Readable.prototype.read=function(e){k("read",e);e=parseInt(e,10);var n=this._readableState,i=e;0!==e&&(n.emittedReadable=!1);if(0===e&&n.needReadable&&(n.length>=n.highWaterMark||n.ended)){k("read: emitReadable",n.length,n.ended);0===n.length&&n.ended?endReadable(this):emitReadable(this);return null}if(0===(e=howMuchToRead(e,n))&&n.ended){0===n.length&&endReadable(this);return null}var u,d=n.needReadable;k("need readable",d);(0===n.length||n.length-e<n.highWaterMark)&&k("length less than watermark",d=!0);if(n.ended||n.reading)k("reading or ended",d=!1);else if(d){k("do read");n.reading=!0;n.sync=!0;0===n.length&&(n.needReadable=!0);this._read(n.highWaterMark);n.sync=!1;n.reading||(e=howMuchToRead(i,n))}if(null===(u=e>0?fromList(e,n):null)){n.needReadable=!0;e=0}else n.length-=e;if(0===n.length){n.ended||(n.needReadable=!0);i!==e&&n.ended&&endReadable(this)}null!==u&&this.emit("data",u);return u};function emitReadable(e){var n=e._readableState;n.needReadable=!1;if(!n.emittedReadable){k("emitReadable",n.flowing);n.emittedReadable=!0;n.sync?d.nextTick(emitReadable_,e):emitReadable_(e)}}function emitReadable_(e){k("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,n){if(!n.readingMore){n.readingMore=!0;d.nextTick(maybeReadMore_,e,n)}}function maybeReadMore_(e,n){for(var i=n.length;!n.reading&&!n.flowing&&!n.ended&&n.length<n.highWaterMark;){k("maybeReadMore read 0");e.read(0);if(i===n.length)break;i=n.length}n.readingMore=!1}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,n){var u=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1;k("pipe count=%d opts=%j",p.pipesCount,n);var b=(!n||!1!==n.end)&&e!==i.stdout&&e!==i.stderr?onend:unpipe;p.endEmitted?d.nextTick(b):u.once("end",b);e.on("unpipe",onunpipe);function onunpipe(n,i){k("onunpipe");if(n===u&&i&&!1===i.hasUnpiped){i.hasUnpiped=!0;!function cleanup(){k("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",w);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);u.removeListener("end",onend);u.removeListener("end",unpipe);u.removeListener("data",ondata);x=!0;!p.awaitDrain||e._writableState&&!e._writableState.needDrain||w()}()}}function onend(){k("onend");e.end()}var w=function pipeOnDrain(e){return function(){var n=e._readableState;k("pipeOnDrain",n.awaitDrain);n.awaitDrain&&n.awaitDrain--;if(0===n.awaitDrain&&y(e,"data")){n.flowing=!0;flow(e)}}}(u);e.on("drain",w);var x=!1;var P=!1;u.on("data",ondata);function ondata(n){k("ondata");P=!1;if(!1===e.write(n)&&!P){if((1===p.pipesCount&&p.pipes===e||p.pipesCount>1&&-1!==indexOf(p.pipes,e))&&!x){k("false write response, pause",u._readableState.awaitDrain);u._readableState.awaitDrain++;P=!0}u.pause()}}function onerror(n){k("onerror",n);unpipe();e.removeListener("error",onerror);0===y(e,"error")&&e.emit("error",n)}!function prependListener(e,n,i){if("function"==typeof e.prependListener)return e.prependListener(n,i);e._events&&e._events[n]?_(e._events[n])?e._events[n].unshift(i):e._events[n]=[i,e._events[n]]:e.on(n,i)}(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){k("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){k("unpipe");u.unpipe(e)}e.emit("pipe",u);if(!p.flowing){k("pipe resume");u.resume()}return e};Readable.prototype.unpipe=function(e){var n=this._readableState,i={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount){if(e&&e!==n.pipes)return this;e||(e=n.pipes);n.pipes=null;n.pipesCount=0;n.flowing=!1;e&&e.emit("unpipe",this,i);return this}if(!e){var u=n.pipes,d=n.pipesCount;n.pipes=null;n.pipesCount=0;n.flowing=!1;for(var p=0;p<d;p++)u[p].emit("unpipe",this,i);return this}var _=indexOf(n.pipes,e);if(-1===_)return this;n.pipes.splice(_,1);n.pipesCount-=1;1===n.pipesCount&&(n.pipes=n.pipes[0]);e.emit("unpipe",this,i);return this};Readable.prototype.on=function(e,n){var i=b.prototype.on.call(this,e,n);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var u=this._readableState;if(!u.endEmitted&&!u.readableListening){u.readableListening=u.needReadable=!0;u.emittedReadable=!1;u.reading?u.length&&emitReadable(this):d.nextTick(nReadingNextTick,this)}}return i};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){k("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){k("resume");e.flowing=!0;!function resume(e,n){if(!n.resumeScheduled){n.resumeScheduled=!0;d.nextTick(resume_,e,n)}}(this,e)}return this};function resume_(e,n){if(!n.reading){k("resume read 0");e.read(0)}n.resumeScheduled=!1;n.awaitDrain=0;e.emit("resume");flow(e);n.flowing&&!n.reading&&e.read(0)}Readable.prototype.pause=function(){k("call pause flowing=%j",this._readableState.flowing);if(!1!==this._readableState.flowing){k("pause");this._readableState.flowing=!1;this.emit("pause")}return this};function flow(e){var n=e._readableState;k("flow",n.flowing);for(;n.flowing&&null!==e.read(););}Readable.prototype.wrap=function(e){var n=this,i=this._readableState,u=!1;e.on("end",(function(){k("wrapped end");if(i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&n.push(e)}n.push(null)}));e.on("data",(function(d){k("wrapped data");i.decoder&&(d=i.decoder.write(d));if((!i.objectMode||null!=d)&&(i.objectMode||d&&d.length)){if(!n.push(d)){u=!0;e.pause()}}}));for(var d in e)void 0===this[d]&&"function"==typeof e[d]&&(this[d]=function(n){return function(){return e[n].apply(e,arguments)}}(d));for(var p=0;p<O.length;p++)e.on(O[p],this.emit.bind(this,O[p]));this._read=function(n){k("wrapped _read",n);if(u){u=!1;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function get(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,n){if(0===n.length)return null;var i;if(n.objectMode)i=n.buffer.shift();else if(!e||e>=n.length){i=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.head.data:n.buffer.concat(n.length);n.buffer.clear()}else i=function fromListPartial(e,n,i){var u;if(e<n.head.data.length){u=n.head.data.slice(0,e);n.head.data=n.head.data.slice(e)}else u=e===n.head.data.length?n.shift():i?function copyFromBufferString(e,n){var i=n.head,u=1,d=i.data;e-=d.length;for(;i=i.next;){var p=i.data,_=e>p.length?p.length:e;_===p.length?d+=p:d+=p.slice(0,e);if(0===(e-=_)){if(_===p.length){++u;i.next?n.head=i.next:n.head=n.tail=null}else{n.head=i;i.data=p.slice(_)}break}++u}n.length-=u;return d}(e,n):function copyFromBuffer(e,n){var i=w.allocUnsafe(e),u=n.head,d=1;u.data.copy(i);e-=u.data.length;for(;u=u.next;){var p=u.data,_=e>p.length?p.length:e;p.copy(i,i.length-e,0,_);if(0===(e-=_)){if(_===p.length){++d;u.next?n.head=u.next:n.head=n.tail=null}else{n.head=u;u.data=p.slice(_)}break}++d}n.length-=d;return i}(e,n);return u}(e,n.buffer,n.decoder);return i}function endReadable(e){var n=e._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!n.endEmitted){n.ended=!0;d.nextTick(endReadableNT,n,e)}}function endReadableNT(e,n){if(!e.endEmitted&&0===e.length){e.endEmitted=!0;n.readable=!1;n.emit("end")}}function indexOf(e,n){for(var i=0,u=e.length;i<u;i++)if(e[i]===n)return i;return-1}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":230,"./internal/streams/BufferList":235,"./internal/streams/destroy":236,"./internal/streams/stream":237,_process:228,"core-util-is":209,events:210,inherits:212,isarray:213,"process-nextick-args":227,"safe-buffer":242,"string_decoder/":244,util:148}],233:[function(e,n,i){n.localExports=Transform;var u=e("./_stream_duplex"),d=Object.create(e("core-util-is"));d.inherits=e("inherits");d.inherits(Transform,u);function afterTransform(e,n){var i=this._transformState;i.transforming=!1;var u=i.writecb;if(!u)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null;i.writecb=null;null!=n&&this.push(n);u(e);var d=this._readableState;d.reading=!1;(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function Transform(e){if(!(this instanceof Transform))return new Transform(e);u.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=!0;this._readableState.sync=!1;if(e){"function"==typeof e.transform&&(this._transform=e.transform);"function"==typeof e.flush&&(this._flush=e.flush)}this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"==typeof this._flush?this._flush((function(n,i){done(e,n,i)})):done(this,null,null)}Transform.prototype.push=function(e,n){this._transformState.needTransform=!1;return u.prototype.push.call(this,e,n)};Transform.prototype._transform=function(e,n,i){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,n,i){var u=this._transformState;u.writecb=i;u.writechunk=e;u.writeencoding=n;if(!u.transforming){var d=this._readableState;(u.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}};Transform.prototype._read=function(e){var n=this._transformState;if(null!==n.writechunk&&n.writecb&&!n.transforming){n.transforming=!0;this._transform(n.writechunk,n.writeencoding,n.afterTransform)}else n.needTransform=!0};Transform.prototype._destroy=function(e,n){var i=this;u.prototype._destroy.call(this,e,(function(e){n(e);i.emit("close")}))};function done(e,n,i){if(n)return e.emit("error",n);null!=i&&e.push(i);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},{"./_stream_duplex":230,"core-util-is":209,inherits:212}],234:[function(e,n,i){(function(i,u,d){(function(){var p=e("process-nextick-args");n.localExports=Writable;function CorkedRequest(e){var n=this;this.next=null;this.entry=null;this.finish=function(){!function onCorkedFinish(e,n,i){var u=e.entry;e.entry=null;for(;u;){var d=u.callback;n.pendingcb--;d(i);u=u.next}n.corkedRequestsFree?n.corkedRequestsFree.next=e:n.corkedRequestsFree=e}(n,e)}}var _,y=!i.browser&&["v0.10","v0.9."].indexOf(i.version.slice(0,5))>-1?d:p.nextTick;Writable.WritableState=WritableState;var b=Object.create(e("core-util-is"));b.inherits=e("inherits");var w={deprecate:e("util-deprecate")},x=e("./internal/streams/stream"),P=e("safe-buffer").Buffer,E=u.Uint8Array||function(){};var k,B=e("./internal/streams/destroy");b.inherits(Writable,x);function nop(){}function WritableState(n,i){_=_||e("./_stream_duplex");n=n||{};var u=i instanceof _;this.objectMode=!!n.objectMode;u&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var d=n.highWaterMark,b=n.writableHighWaterMark,w=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:u&&(b||0===b)?b:w;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=!1;this.needDrain=!1;this.ending=!1;this.ended=!1;this.finished=!1;this.destroyed=!1;var x=!1===n.decodeStrings;this.decodeStrings=!x;this.defaultEncoding=n.defaultEncoding||"utf8";this.length=0;this.writing=!1;this.corked=0;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(e){!function onwrite(e,n){var i=e._writableState,u=i.sync,d=i.writecb;!function onwriteStateUpdate(e){e.writing=!1;e.writecb=null;e.length-=e.writelen;e.writelen=0}(i);if(n)!function onwriteError(e,n,i,u,d){--n.pendingcb;if(i){p.nextTick(d,u);p.nextTick(finishMaybe,e,n);e._writableState.errorEmitted=!0;e.emit("error",u)}else{d(u);e._writableState.errorEmitted=!0;e.emit("error",u);finishMaybe(e,n)}}(e,i,u,n,d);else{var _=needFinish(i);_||i.corked||i.bufferProcessing||!i.bufferedRequest||clearBuffer(e,i);u?y(afterWrite,e,i,_,d):afterWrite(e,i,_,d)}}(i,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=!1;this.errorEmitted=!1;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){for(var e=this.bufferedRequest,n=[];e;){n.push(e);e=e.next}return n};!function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:w.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();if("function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){k=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){return!!k.call(this,e)||this===Writable&&(e&&e._writableState instanceof WritableState)}})}else k=function realHasInstance(e){return e instanceof this};function Writable(n){_=_||e("./_stream_duplex");if(!(k.call(Writable,this)||this instanceof _))return new Writable(n);this._writableState=new WritableState(n,this);this.writable=!0;if(n){"function"==typeof n.write&&(this._write=n.write);"function"==typeof n.writev&&(this._writev=n.writev);"function"==typeof n.destroy&&(this._destroy=n.destroy);"function"==typeof n.final&&(this._final=n.final)}x.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};Writable.prototype.write=function(e,n,i){var u=this._writableState,d=!1,_=!u.objectMode&&function _isUint8Array(e){return P.isBuffer(e)||e instanceof E}(e);_&&!P.isBuffer(e)&&(e=function _uint8ArrayToBuffer(e){return P.from(e)}(e));if("function"==typeof n){i=n;n=null}_?n="buffer":n||(n=u.defaultEncoding);"function"!=typeof i&&(i=nop);if(u.ended)!function writeAfterEnd(e,n){var i=new Error("write after end");e.emit("error",i);p.nextTick(n,i)}(this,i);else if(_||function validChunk(e,n,i,u){var d=!0,_=!1;null===i?_=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||n.objectMode||(_=new TypeError("Invalid non-string/buffer chunk"));if(_){e.emit("error",_);p.nextTick(u,_);d=!1}return d}(this,u,e,i)){u.pendingcb++;d=function writeOrBuffer(e,n,i,u,d,p){if(!i){var _=function decodeChunk(e,n,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof n||(n=P.from(n,i));return n}(n,u,d);if(u!==_){i=!0;d="buffer";u=_}}var y=n.objectMode?1:u.length;n.length+=y;var b=n.length<n.highWaterMark;b||(n.needDrain=!0);if(n.writing||n.corked){var w=n.lastBufferedRequest;n.lastBufferedRequest={chunk:u,encoding:d,isBuf:i,callback:p,next:null};w?w.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest;n.bufferedRequestCount+=1}else doWrite(e,n,!1,y,u,d,p);return b}(this,u,_,e,n,i)}return d};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){"string"==typeof e&&(e=e.toLowerCase());if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function get(){return this._writableState.highWaterMark}});function doWrite(e,n,i,u,d,p,_){n.writelen=u;n.writecb=_;n.writing=!0;n.sync=!0;i?e._writev(d,n.onwrite):e._write(d,p,n.onwrite);n.sync=!1}function afterWrite(e,n,i,u){i||function onwriteDrain(e,n){if(0===n.length&&n.needDrain){n.needDrain=!1;e.emit("drain")}}(e,n);n.pendingcb--;u();finishMaybe(e,n)}function clearBuffer(e,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(e._writev&&i&&i.next){var u=n.bufferedRequestCount,d=new Array(u),p=n.corkedRequestsFree;p.entry=i;for(var _=0,y=!0;i;){d[_]=i;i.isBuf||(y=!1);i=i.next;_+=1}d.allBuffers=y;doWrite(e,n,!0,n.length,d,"",p.finish);n.pendingcb++;n.lastBufferedRequest=null;if(p.next){n.corkedRequestsFree=p.next;p.next=null}else n.corkedRequestsFree=new CorkedRequest(n);n.bufferedRequestCount=0}else{for(;i;){var b=i.chunk,w=i.encoding,x=i.callback;doWrite(e,n,!1,n.objectMode?1:b.length,b,w,x);i=i.next;n.bufferedRequestCount--;if(n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i;n.bufferProcessing=!1}Writable.prototype._write=function(e,n,i){i(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,n,i){var u=this._writableState;if("function"==typeof e){i=e;e=null;n=null}else if("function"==typeof n){i=n;n=null}null!=e&&this.write(e,n);if(u.corked){u.corked=1;this.uncork()}u.ending||u.finished||function endWritable(e,n,i){n.ending=!0;finishMaybe(e,n);i&&(n.finished?p.nextTick(i):e.once("finish",i));n.ended=!0;e.writable=!1}(this,u,i)};function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function callFinal(e,n){e._final((function(i){n.pendingcb--;i&&e.emit("error",i);n.prefinished=!0;e.emit("prefinish");finishMaybe(e,n)}))}function finishMaybe(e,n){var i=needFinish(n);if(i){!function prefinish(e,n){if(!n.prefinished&&!n.finalCalled)if("function"==typeof e._final){n.pendingcb++;n.finalCalled=!0;p.nextTick(callFinal,e,n)}else{n.prefinished=!0;e.emit("prefinish")}}(e,n);if(0===n.pendingcb){n.finished=!0;e.emit("finish")}}return i}Object.defineProperty(Writable.prototype,"destroyed",{get:function get(){return void 0!==this._writableState&&this._writableState.destroyed},set:function set(e){this._writableState&&(this._writableState.destroyed=e)}});Writable.prototype.destroy=B.destroy;Writable.prototype._undestroy=B.undestroy;Writable.prototype._destroy=function(e,n){this.end();n(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":230,"./internal/streams/destroy":236,"./internal/streams/stream":237,_process:228,"core-util-is":209,inherits:212,"process-nextick-args":227,"safe-buffer":242,timers:245,"util-deprecate":246}],235:[function(e,n,i){var u=e("safe-buffer").Buffer,d=e("util");n.localExports=function(){function BufferList(){!function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n;this.tail=n;++this.length};BufferList.prototype.unshift=function unshift(e){var n={data:e,next:this.head};0===this.length&&(this.tail=n);this.head=n;++this.length};BufferList.prototype.shift=function shift(){if(0!==this.length){var e=this.head.data;1===this.length?this.head=this.tail=null:this.head=this.head.next;--this.length;return e}};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(0===this.length)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=e+n.data;return i};BufferList.prototype.concat=function concat(e){if(0===this.length)return u.alloc(0);if(1===this.length)return this.head.data;for(var n,i,d,p=u.allocUnsafe(e>>>0),_=this.head,y=0;_;){n=_.data,i=p,d=y,n.copy(i,d);y+=_.data.length;_=_.next}return p};return BufferList}();d&&d.inspect&&d.inspect.custom&&(n.localExports.prototype[d.inspect.custom]=function(){var e=d.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":242,util:148}],236:[function(e,n,i){var u=e("process-nextick-args");function emitErrorNT(e,n){e.emit("error",n)}n.localExports={destroy:function destroy(e,n){var i=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;if(d||p){n?n(e):!e||this._writableState&&this._writableState.errorEmitted||u.nextTick(emitErrorNT,this,e);return this}this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(e||null,(function(e){if(!n&&e){u.nextTick(emitErrorNT,i,e);i._writableState&&(i._writableState.errorEmitted=!0)}else n&&n(e)}));return this},undestroy:function undestroy(){if(this._readableState){this._readableState.destroyed=!1;this._readableState.reading=!1;this._readableState.ended=!1;this._readableState.endEmitted=!1}if(this._writableState){this._writableState.destroyed=!1;this._writableState.ended=!1;this._writableState.ending=!1;this._writableState.finished=!1;this._writableState.errorEmitted=!1}}}},{"process-nextick-args":227}],237:[function(e,n,i){n.localExports=e("events").EventEmitter},{events:210}],238:[function(e,n,i){n.localExports=e("./readable").PassThrough},{"./readable":239}],239:[function(e,n,i){(i=n.localExports=e("./lib/_stream_readable.js")).Stream=i;i.Readable=i;i.Writable=e("./lib/_stream_writable.js");i.Duplex=e("./lib/_stream_duplex.js");i.Transform=e("./lib/_stream_transform.js");i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":230,"./lib/_stream_passthrough.js":231,"./lib/_stream_readable.js":232,"./lib/_stream_transform.js":233,"./lib/_stream_writable.js":234}],240:[function(e,n,i){n.localExports=e("./readable").Transform},{"./readable":239}],241:[function(e,n,i){n.localExports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":234}],242:[function(e,n,i){var u=e("buffer"),d=u.Buffer;function copyProps(e,n){for(var i in e)n[i]=e[i]}if(d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow)n.localExports=u;else{copyProps(u,i);i.Buffer=SafeBuffer}function SafeBuffer(e,n,i){return d(e,n,i)}copyProps(d,SafeBuffer);SafeBuffer.from=function(e,n,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return d(e,n,i)};SafeBuffer.alloc=function(e,n,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var u=d(e);void 0!==n?"string"==typeof i?u.fill(n,i):u.fill(n):u.fill(0);return u};SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return d(e)};SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return u.SlowBuffer(e)}},{buffer:152}],243:[function(e,n,i){n.localExports=Stream;var u=e("events").EventEmitter;e("inherits")(Stream,u);Stream.Readable=e("readable-stream/readable.js");Stream.Writable=e("readable-stream/writable.js");Stream.Duplex=e("readable-stream/duplex.js");Stream.Transform=e("readable-stream/transform.js");Stream.PassThrough=e("readable-stream/passthrough.js");Stream.Stream=Stream;function Stream(){u.call(this)}Stream.prototype.pipe=function(e,n){var i=this;function ondata(n){e.writable&&!1===e.write(n)&&i.pause&&i.pause()}i.on("data",ondata);function ondrain(){i.readable&&i.resume&&i.resume()}e.on("drain",ondrain);if(!(e._isStdio||n&&!1===n.end)){i.on("end",onend);i.on("close",onclose)}var d=!1;function onend(){if(!d){d=!0;e.end()}}function onclose(){if(!d){d=!0;"function"==typeof e.destroy&&e.destroy()}}function onerror(e){cleanup();if(0===u.listenerCount(this,"error"))throw e}i.on("error",onerror);e.on("error",onerror);function cleanup(){i.removeListener("data",ondata);e.removeListener("drain",ondrain);i.removeListener("end",onend);i.removeListener("close",onclose);i.removeListener("error",onerror);e.removeListener("error",onerror);i.removeListener("end",cleanup);i.removeListener("close",cleanup);e.removeListener("close",cleanup)}i.on("end",cleanup);i.on("close",cleanup);e.on("close",cleanup);e.emit("pipe",i);return e}},{events:210,inherits:212,"readable-stream/duplex.js":229,"readable-stream/passthrough.js":238,"readable-stream/readable.js":239,"readable-stream/transform.js":240,"readable-stream/writable.js":241}],244:[function(e,n,i){var u=e("safe-buffer").Buffer,d=u.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};i.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=function normalizeEncoding(e){var n=function _normalizeEncoding(e){if(!e)return"utf8";for(var n;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(n)return;e=(""+e).toLowerCase();n=!0}}(e);if("string"!=typeof n&&(u.isEncoding===d||!d(e)))throw new Error("Unknown encoding: "+e);return n||e}(e);var n;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;n=4;break;case"utf8":this.fillLast=utf8FillLast;n=4;break;case"base64":this.text=base64Text;this.end=base64End;n=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=u.allocUnsafe(n)}StringDecoder.prototype.write=function(e){if(0===e.length)return"";var n,i;if(this.lastNeed){if(void 0===(n=this.fillLast(e)))return"";i=this.lastNeed;this.lastNeed=0}else i=0;return i<e.length?n?n+this.text(e,i):this.text(e,i):n||""};StringDecoder.prototype.end=function utf8End(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+"�":n};StringDecoder.prototype.text=function utf8Text(e,n){var i=function utf8CheckIncomplete(e,n,i){var u=n.length-1;if(u<i)return 0;var d=utf8CheckByte(n[u]);if(d>=0){d>0&&(e.lastNeed=d-1);return d}if(--u<i||-2===d)return 0;if((d=utf8CheckByte(n[u]))>=0){d>0&&(e.lastNeed=d-2);return d}if(--u<i||-2===d)return 0;if((d=utf8CheckByte(n[u]))>=0){d>0&&(2===d?d=0:e.lastNeed=d-3);return d}return 0}(this,e,n);if(!this.lastNeed)return e.toString("utf8",n);this.lastTotal=i;var u=e.length-(i-this.lastNeed);e.copy(this.lastChar,0,u);return e.toString("utf8",n,u)};StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function utf8FillLast(e){var n=this.lastTotal-this.lastNeed,i=function utf8CheckExtraBytes(e,n,i){if(128!=(192&n[0])){e.lastNeed=0;return"�"}if(e.lastNeed>1&&n.length>1){if(128!=(192&n[1])){e.lastNeed=1;return"�"}if(e.lastNeed>2&&n.length>2&&128!=(192&n[2])){e.lastNeed=2;return"�"}}}(this,e);if(void 0!==i)return i;if(this.lastNeed<=e.length){e.copy(this.lastChar,n,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,n,0,e.length);this.lastNeed-=e.length}function utf16Text(e,n){if((e.length-n)%2==0){var i=e.toString("utf16le",n);if(i){var u=i.charCodeAt(i.length-1);if(u>=55296&&u<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return i.slice(0,-1)}}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",n,e.length-1)}function utf16End(e){var n=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,i)}return n}function base64Text(e,n){var i=(e.length-n)%3;if(0===i)return e.toString("base64",n);this.lastNeed=3-i;this.lastTotal=3;if(1===i)this.lastChar[0]=e[e.length-1];else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",n,e.length-i)}function base64End(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},{"safe-buffer":242}],245:[function(e,n,i){(function(n,u){(function(){var d=e("process/browser.js").nextTick,p=Function.prototype.apply,_=Array.prototype.slice,y={},b=0;i.setTimeout=function(){return new Timeout(p.call(setTimeout,window,arguments),clearTimeout)};i.setInterval=function(){return new Timeout(p.call(setInterval,window,arguments),clearInterval)};i.clearTimeout=i.clearInterval=function(e){e.close()};function Timeout(e,n){this._id=e;this._clearFn=n}Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(window,this._id)};i.enroll=function(e,n){clearTimeout(e._idleTimeoutId);e._idleTimeout=n};i.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;n>=0&&(e._idleTimeoutId=setTimeout((function onTimeout(){e._onTimeout&&e._onTimeout()}),n))};i.setImmediate="function"==typeof n?n:function(e){var n=b++,u=!(arguments.length<2)&&_.call(arguments,1);y[n]=!0;d((function onNextTick(){if(y[n]){u?e.apply(null,u):e.call(null);i.clearImmediate(n)}}));return n};i.clearImmediate="function"==typeof u?u:function(e){delete y[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":228,timers:245}],246:[function(e,n,i){(function(e){(function(){n.localExports=function deprecate(e,n){if(config("noDeprecation"))return e;var i=!1;return function deprecated(){if(!i){if(config("throwDeprecation"))throw new Error(n);config("traceDeprecation")?console.trace(n):console.warn(n);i=!0}return e.apply(this,arguments)}};function config(n){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[n];return null!=i&&"true"===String(i).toLowerCase()}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],247:[function(e,n,i){arguments[4][144][0].apply(i,arguments)},{dup:144}],248:[function(e,n,i){arguments[4][145][0].apply(i,arguments)},{dup:145}],249:[function(e,n,i){arguments[4][146][0].apply(i,arguments)},{"./support/isBuffer":248,_process:228,dup:146,inherits:247}],250:[function(e,n,i){(function(){var n,u,d,p;i.EncodeStream=e("./src/EncodeStream");i.DecodeStream=e("./src/DecodeStream");i.Array=e("./src/Array");i.LazyArray=e("./src/LazyArray");i.Bitfield=e("./src/Bitfield");i.Boolean=e("./src/Boolean");i.Buffer=e("./src/Buffer");i.Enum=e("./src/Enum");i.Optional=e("./src/Optional");i.Reserved=e("./src/Reserved");i.String=e("./src/String");i.Struct=e("./src/Struct");i.VersionedStruct=e("./src/VersionedStruct");d=e("./src/Number");for(n in d){u=d[n];i[n]=u}p=e("./src/Pointer");for(n in p){u=p[n];i[n]=u}}).call(this)},{"./src/Array":251,"./src/Bitfield":252,"./src/Boolean":253,"./src/Buffer":254,"./src/DecodeStream":255,"./src/EncodeStream":256,"./src/Enum":257,"./src/LazyArray":258,"./src/Number":259,"./src/Optional":260,"./src/Pointer":261,"./src/Reserved":262,"./src/String":263,"./src/Struct":264,"./src/VersionedStruct":265}],251:[function(e,n,i){(function(){var i,u,d;u=e("./Number").Number;d=e("./utils");i=function(){function ArrayT(e,n,i){this.type=e;this.length=n;this.lengthType=null!=i?i:"count"}ArrayT.prototype.decode=function(e,n){var i,p,_,y,b,w;_=e.pos;y=[];i=n;null!=this.length&&(p=d.resolveLength(this.length,e,n));if(this.length instanceof u){Object.defineProperties(y,{parent:{value:n},_startOffset:{value:_},_currentOffset:{value:0,writable:!0},_length:{value:p}});i=y}if(null==p||"bytes"===this.lengthType){b=null!=p?e.pos+p:(null!=n?n._length:void 0)?n._startOffset+n._length:e.length;for(;e.pos<b;)y.push(this.type.decode(e,i))}else for(w=0;w<p;w+=1)y.push(this.type.decode(e,i));return y};ArrayT.prototype.size=function(e,n){var i,p,_,y;if(!e)return this.type.size(null,n)*d.resolveLength(this.length,null,n);p=0;if(this.length instanceof u){p+=this.length.size();n={parent:n}}for(_=0,y=e.length;_<y;_++){i=e[_];p+=this.type.size(i,n)}return p};ArrayT.prototype.encode=function(e,n,i){var d,p,_,y,b,w;d=i;if(this.length instanceof u){(d={pointers:[],startOffset:e.pos,parent:i}).pointerOffset=e.pos+this.size(n,d);this.length.encode(e,n.length)}for(b=0,w=n.length;b<w;b++){_=n[b];this.type.encode(e,_,d)}if(this.length instanceof u){p=0;for(;p<d.pointers.length;)(y=d.pointers[p++]).type.encode(e,y.val)}};return ArrayT}();n.localExports=i}).call(this)},{"./Number":259,"./utils":266}],252:[function(e,n,i){(function(){var e;e=function(){function Bitfield(e,n){this.type=e;this.flags=null!=n?n:[]}Bitfield.prototype.decode=function(e){var n,i,u,d,p,_,y;d=this.type.decode(e);u={};for(i=p=0,_=(y=this.flags).length;p<_;i=++p)null!=(n=y[i])&&(u[n]=!!(d&1<<i));return u};Bitfield.prototype.size=function(){return this.type.size()};Bitfield.prototype.encode=function(e,n){var i,u,d,p,_,y;d=0;for(u=p=0,_=(y=this.flags).length;p<_;u=++p)null!=(i=y[u])&&n[i]&&(d|=1<<u);return this.type.encode(e,d)};return Bitfield}();n.localExports=e}).call(this)},{}],253:[function(e,n,i){(function(){var e;e=function(){function BooleanT(e){this.type=e}BooleanT.prototype.decode=function(e,n){return!!this.type.decode(e,n)};BooleanT.prototype.size=function(e,n){return this.type.size(e,n)};BooleanT.prototype.encode=function(e,n,i){return this.type.encode(e,+n,i)};return BooleanT}();n.localExports=e}).call(this)},{}],254:[function(e,n,i){(function(){var i,u,d;d=e("./utils");u=e("./Number").Number;i=function(){function BufferT(e){this.length=e}BufferT.prototype.decode=function(e,n){var i;i=d.resolveLength(this.length,e,n);return e.readBuffer(i)};BufferT.prototype.size=function(e,n){return e?e.length:d.resolveLength(this.length,null,n)};BufferT.prototype.encode=function(e,n,i){this.length instanceof u&&this.length.encode(e,n.length);return e.writeBuffer(n)};return BufferT}();n.localExports=i}).call(this)},{"./Number":259,"./utils":266}],255:[function(e,n,i){(function(i){(function(){(function(){var u,d;try{d=e("iconv-lite")}catch(e){}u=function(){var e;function DecodeStream(e){this.buffer=e;this.pos=0;this.length=this.buffer.length}DecodeStream.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(e in i.prototype)"read"===e.slice(0,4)&&function(e){var n;n=DecodeStream.TYPES[e.replace(/read|[BL]E/g,"")];DecodeStream.prototype[e]=function(){var i;i=this.buffer[e](this.pos);this.pos+=n;return i}}(e);DecodeStream.prototype.readString=function(e,n){var u,p,_,y,b;null==n&&(n="ascii");switch(n){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.buffer.toString(n,this.pos,this.pos+=e);case"utf16be":for(_=y=0,b=(u=new i(this.readBuffer(e))).length-1;y<b;_=y+=2){p=u[_];u[_]=u[_+1];u[_+1]=p}return u.toString("utf16le");default:u=this.readBuffer(e);if(d)try{return d.decode(u,n)}catch(e){}return u}};DecodeStream.prototype.readBuffer=function(e){return this.buffer.slice(this.pos,this.pos+=e)};DecodeStream.prototype.readUInt24BE=function(){return(this.readUInt16BE()<<8)+this.readUInt8()};DecodeStream.prototype.readUInt24LE=function(){return this.readUInt16LE()+(this.readUInt8()<<16)};DecodeStream.prototype.readInt24BE=function(){return(this.readInt16BE()<<8)+this.readUInt8()};DecodeStream.prototype.readInt24LE=function(){return this.readUInt16LE()+(this.readInt8()<<16)};return DecodeStream}();n.localExports=u}).call(this)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:152,"iconv-lite":151}],256:[function(e,n,i){(function(i){(function(){(function(){var u,d,p,_,y={}.hasOwnProperty;_=e("stream");u=e("./DecodeStream");try{p=e("iconv-lite")}catch(e){}d=function(e){var n;!function __extends(e,n){for(var i in n)y.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(EncodeStream,e);function EncodeStream(e){null==e&&(e=65536);EncodeStream.__super__.constructor.apply(this,arguments);this.buffer=new i(e);this.bufferOffset=0;this.pos=0}for(n in i.prototype)"write"===n.slice(0,5)&&function(e){var n;n=+u.TYPES[e.replace(/write|[BL]E/g,"")];EncodeStream.prototype[e]=function(i){this.ensure(n);this.buffer[e](i,this.bufferOffset);this.bufferOffset+=n;return this.pos+=n}}(n);EncodeStream.prototype._read=function(){};EncodeStream.prototype.ensure=function(e){if(this.bufferOffset+e>this.buffer.length)return this.flush()};EncodeStream.prototype.flush=function(){if(this.bufferOffset>0){this.push(new i(this.buffer.slice(0,this.bufferOffset)));return this.bufferOffset=0}};EncodeStream.prototype.writeBuffer=function(e){this.flush();this.push(e);return this.pos+=e.length};EncodeStream.prototype.writeString=function(e,n){var u,d,_,y,b;null==n&&(n="ascii");switch(n){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(new i(e,n));case"utf16be":for(_=y=0,b=(u=new i(e,"utf16le")).length-1;y<b;_=y+=2){d=u[_];u[_]=u[_+1];u[_+1]=d}return this.writeBuffer(u);default:if(p)return this.writeBuffer(p.encode(e,n));throw new Error("Install iconv-lite to enable additional string encodings.")}};EncodeStream.prototype.writeUInt24BE=function(e){this.ensure(3);this.buffer[this.bufferOffset++]=e>>>16&255;this.buffer[this.bufferOffset++]=e>>>8&255;this.buffer[this.bufferOffset++]=255&e;return this.pos+=3};EncodeStream.prototype.writeUInt24LE=function(e){this.ensure(3);this.buffer[this.bufferOffset++]=255&e;this.buffer[this.bufferOffset++]=e>>>8&255;this.buffer[this.bufferOffset++]=e>>>16&255;return this.pos+=3};EncodeStream.prototype.writeInt24BE=function(e){return e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)};EncodeStream.prototype.writeInt24LE=function(e){return e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)};EncodeStream.prototype.fill=function(e,n){var u;if(n<this.buffer.length){this.ensure(n);this.buffer.fill(e,this.bufferOffset,this.bufferOffset+n);this.bufferOffset+=n;return this.pos+=n}(u=new i(n)).fill(e);return this.writeBuffer(u)};EncodeStream.prototype.end=function(){this.flush();return this.push(null)};return EncodeStream}(_.Readable);n.localExports=d}).call(this)}).call(this)}).call(this,e("buffer").Buffer)},{"./DecodeStream":255,buffer:152,"iconv-lite":151,stream:243}],257:[function(e,n,i){(function(){var e;e=function(){function Enum(e,n){this.type=e;this.options=null!=n?n:[]}Enum.prototype.decode=function(e){var n;n=this.type.decode(e);return this.options[n]||n};Enum.prototype.size=function(){return this.type.size()};Enum.prototype.encode=function(e,n){var i;if(-1===(i=this.options.indexOf(n)))throw new Error("Unknown option in enum: "+n);return this.type.encode(e,i)};return Enum}();n.localExports=e}).call(this)},{}],258:[function(e,n,i){(function(){var i,u,d,p,_,y,b={}.hasOwnProperty;i=e("./Array");p=e("./Number").Number;y=e("./utils");_=e("util").inspect;d=function(e){!function __extends(e,n){for(var i in n)b.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(LazyArrayT,e);function LazyArrayT(){return LazyArrayT.__super__.constructor.apply(this,arguments)}LazyArrayT.prototype.decode=function(e,n){var i,d,_;d=e.pos;i=y.resolveLength(this.length,e,n);this.length instanceof p&&(n={parent:n,_startOffset:d,_currentOffset:0,_length:i});_=new u(this.type,i,e,n);e.pos+=i*this.type.size(null,n);return _};LazyArrayT.prototype.size=function(e,n){e instanceof u&&(e=e.toArray());return LazyArrayT.__super__.size.call(this,e,n)};LazyArrayT.prototype.encode=function(e,n,i){n instanceof u&&(n=n.toArray());return LazyArrayT.__super__.encode.call(this,e,n,i)};return LazyArrayT}(i);u=function(){function LazyArray(e,n,i,u){this.type=e;this.length=n;this.stream=i;this.ctx=u;this.base=this.stream.pos;this.items=[]}LazyArray.prototype.get=function(e){var n;if(!(e<0||e>=this.length)){if(null==this.items[e]){n=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*e;this.items[e]=this.type.decode(this.stream,this.ctx);this.stream.pos=n}return this.items[e]}};LazyArray.prototype.toArray=function(){var e,n,i,u;u=[];for(e=n=0,i=this.length;n<i;e=n+=1)u.push(this.get(e));return u};LazyArray.prototype.inspect=function(){return _(this.toArray())};return LazyArray}();n.localExports=d}).call(this)},{"./Array":251,"./Number":259,"./utils":266,util:249}],259:[function(e,n,i){(function(){var n,u,d,p={}.hasOwnProperty;n=e("./DecodeStream");d=function(){function NumberT(e,n){this.type=e;this.endian=null!=n?n:"BE";this.fn=this.type;"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}NumberT.prototype.size=function(){return n.TYPES[this.type]};NumberT.prototype.decode=function(e){return e["read"+this.fn]()};NumberT.prototype.encode=function(e,n){return e["write"+this.fn](n)};return NumberT}();i.Number=d;i.uint8=new d("UInt8");i.uint16be=i.uint16=new d("UInt16","BE");i.uint16le=new d("UInt16","LE");i.uint24be=i.uint24=new d("UInt24","BE");i.uint24le=new d("UInt24","LE");i.uint32be=i.uint32=new d("UInt32","BE");i.uint32le=new d("UInt32","LE");i.int8=new d("Int8");i.int16be=i.int16=new d("Int16","BE");i.int16le=new d("Int16","LE");i.int24be=i.int24=new d("Int24","BE");i.int24le=new d("Int24","LE");i.int32be=i.int32=new d("Int32","BE");i.int32le=new d("Int32","LE");i.floatbe=i.float=new d("Float","BE");i.floatle=new d("Float","LE");i.doublebe=i.double=new d("Double","BE");i.doublele=new d("Double","LE");u=function(e){!function __extends(e,n){for(var i in n)p.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(Fixed,e);function Fixed(e,n,i){null==i&&(i=e>>1);Fixed.__super__.constructor.call(this,"Int"+e,n);this._point=1<<i}Fixed.prototype.decode=function(e){return Fixed.__super__.decode.call(this,e)/this._point};Fixed.prototype.encode=function(e,n){return Fixed.__super__.encode.call(this,e,n*this._point|0)};return Fixed}(d);i.Fixed=u;i.fixed16be=i.fixed16=new u(16,"BE");i.fixed16le=new u(16,"LE");i.fixed32be=i.fixed32=new u(32,"BE");i.fixed32le=new u(32,"LE")}).call(this)},{"./DecodeStream":255}],260:[function(e,n,i){(function(){var e;e=function(){function Optional(e,n){this.type=e;this.condition=null==n||n}Optional.prototype.decode=function(e,n){var i;"function"==typeof(i=this.condition)&&(i=i.call(n,n));if(i)return this.type.decode(e,n)};Optional.prototype.size=function(e,n){var i;"function"==typeof(i=this.condition)&&(i=i.call(n,n));return i?this.type.size(e,n):0};Optional.prototype.encode=function(e,n,i){var u;"function"==typeof(u=this.condition)&&(u=u.call(i,i));if(u)return this.type.encode(e,n,i)};return Optional}();n.localExports=e}).call(this)},{}],261:[function(e,n,i){(function(){var n,u,d;d=e("./utils");n=function(){function Pointer(e,n,i){var u,d,p,_;this.offsetType=e;this.type=n;this.options=null!=i?i:{};"void"===this.type&&(this.type=null);null==(u=this.options).type&&(u.type="local");null==(d=this.options).allowNull&&(d.allowNull=!0);null==(p=this.options).nullValue&&(p.nullValue=0);null==(_=this.options).lazy&&(_.lazy=!1);if(this.options.relativeTo&&"function"!=typeof this.options.relativeTo)throw new Error("The relativeTo option must be a function.")}Pointer.prototype.decode=function(e,n){var i,u,p,_,y,b,w;if((p=this.offsetType.decode(e,n))===this.options.nullValue&&this.options.allowNull)return null;y=function(){switch(this.options.type){case"local":return n._startOffset;case"immediate":return e.pos-this.offsetType.size();case"parent":return n.parent._startOffset;default:i=n;for(;i.parent;)i=i.parent;return i._startOffset||0}}.call(this);this.options.relativeTo&&(y+=this.options.relativeTo(n));_=p+y;if(null!=this.type){b=null;u=(w=this,function(){var i;if(null!=b)return b;i=e.pos;e.pos=_;b=w.type.decode(e,n);e.pos=i;return b});return this.options.lazy?new d.PropertyDescriptor({get:u}):u()}return _};Pointer.prototype.size=function(e,n){var i,d;i=n;switch(this.options.type){case"local":case"immediate":break;case"parent":n=n.parent;break;default:for(;n.parent;)n=n.parent}if(null==(d=this.type)){if(!(e instanceof u))throw new Error("Must be a VoidPointer");d=e.type;e=e.value}e&&n&&(n.pointerSize+=d.size(e,i));return this.offsetType.size()};Pointer.prototype.encode=function(e,n,i){var d,p,_;d=i;if(null!=n){switch(this.options.type){case"local":p=i.startOffset;break;case"immediate":p=e.pos+this.offsetType.size(n,d);break;case"parent":p=(i=i.parent).startOffset;break;default:p=0;for(;i.parent;)i=i.parent}this.options.relativeTo&&(p+=this.options.relativeTo(d.val));this.offsetType.encode(e,i.pointerOffset-p);if(null==(_=this.type)){if(!(n instanceof u))throw new Error("Must be a VoidPointer");_=n.type;n=n.value}i.pointers.push({type:_,val:n,parent:d});return i.pointerOffset+=_.size(n,d)}this.offsetType.encode(e,this.options.nullValue)};return Pointer}();u=function u(e,n){this.type=e;this.value=n};i.Pointer=n;i.VoidPointer=u}).call(this)},{"./utils":266}],262:[function(e,n,i){(function(){var i,u;u=e("./utils");i=function(){function Reserved(e,n){this.type=e;this.count=null!=n?n:1}Reserved.prototype.decode=function(e,n){e.pos+=this.size(null,n)};Reserved.prototype.size=function(e,n){var i;i=u.resolveLength(this.count,null,n);return this.type.size()*i};Reserved.prototype.encode=function(e,n,i){return e.fill(0,this.size(n,i))};return Reserved}();n.localExports=i}).call(this)},{"./utils":266}],263:[function(e,n,i){(function(i){(function(){(function(){var u,d,p;u=e("./Number").Number;p=e("./utils");d=function(){function StringT(e,n){this.length=e;this.encoding=null!=n?n:"ascii"}StringT.prototype.decode=function(e,n){var i,u,d,_,y;d=function(){if(null!=this.length)return p.resolveLength(this.length,e,n);i=e.buffer,d=e.length,_=e.pos;for(;_<d&&0!==i[_];)++_;return _-e.pos}.call(this);"function"==typeof(u=this.encoding)&&(u=u.call(n,n)||"ascii");y=e.readString(d,u);null==this.length&&e.pos<e.length&&e.pos++;return y};StringT.prototype.size=function(e,n){var d,_;if(!e)return p.resolveLength(this.length,null,n);"function"==typeof(d=this.encoding)&&(d=d.call(null!=n?n.val:void 0,null!=n?n.val:void 0)||"ascii");"utf16be"===d&&(d="utf16le");_=i.byteLength(e,d);this.length instanceof u&&(_+=this.length.size());null==this.length&&_++;return _};StringT.prototype.encode=function(e,n,d){var p;"function"==typeof(p=this.encoding)&&(p=p.call(null!=d?d.val:void 0,null!=d?d.val:void 0)||"ascii");this.length instanceof u&&this.length.encode(e,i.byteLength(n,p));e.writeString(n,p);if(null==this.length)return e.writeUInt8(0)};return StringT}();n.localExports=d}).call(this)}).call(this)}).call(this,e("buffer").Buffer)},{"./Number":259,"./utils":266,buffer:152}],264:[function(e,n,i){(function(){var i,u;u=e("./utils");i=function(){function Struct(e){this.fields=null!=e?e:{}}Struct.prototype.decode=function(e,n,i){var u,d;null==i&&(i=0);u=this._setup(e,n,i);this._parseFields(e,u,this.fields);null!=(d=this.process)&&d.call(u,e);return u};Struct.prototype._setup=function(e,n,i){var u;u={};Object.defineProperties(u,{parent:{value:n},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:i}});return u};Struct.prototype._parseFields=function(e,n,i){var d,p,_;for(d in i){void 0!==(_="function"==typeof(p=i[d])?p.call(n,n):p.decode(e,n))&&(_ instanceof u.PropertyDescriptor?Object.defineProperty(n,d,_):n[d]=_);n._currentOffset=e.pos-n._startOffset}};Struct.prototype.size=function(e,n,i){var u,d,p,_,y;null==e&&(e={});null==i&&(i=!0);u={parent:n,val:e,pointerSize:0};p=0;y=this.fields;for(d in y)null!=(_=y[d]).size&&(p+=_.size(e[d],u));i&&(p+=u.pointerSize);return p};Struct.prototype.encode=function(e,n,i){var u,d,p,_,y,b,w;null!=(b=this.preEncode)&&b.call(n,e);(u={pointers:[],startOffset:e.pos,parent:i,val:n,pointerSize:0}).pointerOffset=e.pos+this.size(n,u,!1);w=this.fields;for(p in w)null!=(y=w[p]).encode&&y.encode(e,n[p],u);d=0;for(;d<u.pointers.length;)(_=u.pointers[d++]).type.encode(e,_.val,_.parent)};return Struct}();n.localExports=i}).call(this)},{"./utils":266}],265:[function(e,n,i){(function(){var i,u,d,p={}.hasOwnProperty;i=e("./Struct");d=e("./utils");u=function(e){!function __extends(e,n){for(var i in n)p.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(VersionedStruct,e);function VersionedStruct(e,n){this.type=e;this.versions=null!=n?n:{};if("string"==typeof this.type){var i=this.type.split(".");this.versionGetter=function(e){return d.resolveValueByPath(e,i)}}}VersionedStruct.prototype.decode=function(e,n,i){var u,d,p;null==i&&(i=0);d=this._setup(e,n,i);"string"==typeof this.type?d.version=this.versionGetter(n):d.version=this.type.decode(e);this.versions.header&&this._parseFields(e,d,this.versions.header);if(null==(u=this.versions[d.version]))throw new Error("Unknown version "+d.version);if(u instanceof VersionedStruct)return u.decode(e,n);this._parseFields(e,d,u);null!=(p=this.process)&&p.call(d,e);return d};VersionedStruct.prototype.size=function(e,n,i){var u,d,p,_,y,b;null==i&&(i=!0);if(!e)throw new Error("Not a fixed size");u={parent:n,val:e,pointerSize:0};_=0;"string"!=typeof this.type&&(_+=this.type.size(e.version,u));if(this.versions.header){b=this.versions.header;for(p in b)null!=(y=b[p]).size&&(_+=y.size(e[p],u))}if(null==(d=this.versions[e.version]))throw new Error("Unknown version "+e.version);for(p in d)null!=(y=d[p]).size&&(_+=y.size(e[p],u));i&&(_+=u.pointerSize);return _};VersionedStruct.prototype.encode=function(e,n,i){var u,d,p,_,y,b,w,x;null!=(w=this.preEncode)&&w.call(n,e);(u={pointers:[],startOffset:e.pos,parent:i,val:n,pointerSize:0}).pointerOffset=e.pos+this.size(n,u,!1);"string"!=typeof this.type&&this.type.encode(e,n.version);if(this.versions.header){x=this.versions.header;for(_ in x)null!=(b=x[_]).encode&&b.encode(e,n[_],u)}d=this.versions[n.version];for(_ in d)null!=(b=d[_]).encode&&b.encode(e,n[_],u);p=0;for(;p<u.pointers.length;)(y=u.pointers[p++]).type.encode(e,y.val,y.parent)};return VersionedStruct}(i);n.localExports=u}).call(this)},{"./Struct":264,"./utils":266}],266:[function(e,n,i){(function(){var n,u;n=e("./Number").Number;i.resolveLength=function(e,i,u){var d;"number"==typeof e?d=e:"function"==typeof e?d=e.call(u,u):u&&"string"==typeof e?d=u[e]:i&&e instanceof n&&(d=e.decode(i));if(isNaN(d))throw new Error("Not a fixed size");return d};i.resolveValueByPath=function(e,n){"string"==typeof n&&(n=n.split("."));for(var i=0,u=n.length;null!=e&&i<u;i++)e=e[n[i]];return e};u=function u(e){var n,i;null==e&&(e={});this.enumerable=!0;this.configurable=!0;for(n in e){i=e[n];this[n]=i}};i.PropertyDescriptor=u}).call(this)},{"./Number":259}]},{},[135])(135)}));function softPdfSecurity(){return wijmo_1._getModule("wijmo.pdf.security")}exports.softPdfSecurity=softPdfSecurity;class _PdfSvgPathHelper{static offset(e,n){return this._processPath(e,(e,i,u,d)=>e=this._updateOffset(e,n,i,u,d))}static scale(e,n){return this._processPath(e,(e,i,u,d)=>{if("a"===i||"A"===i){var p=d%7;if(p>=2&&p<=4)return e}return e*n})}static _processPath(e,n){for(var i,u=this._getTokenizer(e),d="",p="",_=-1,y=-1;i=u();){if(1===i.length&&/[a-zA-Z]/.test(i)){y++;d=i;_=-1}else{_++;var b=n(parseFloat(i),d,y,_);i=wijmo_1.toFixed(b,7,!1)+""}p+=i+" "}return p}static _getTokenizer(e){var n=e.length,i=0;return()=>{if(i>=n)return"";for(;i<n&&(/\s/.test(e[i])||","==e[i]);)i++;for(var u=i,d=!1,p=!1,_=!1;i<n;){var y=e[i];if("-"===y||"+"===y){if((_||p||d)&&(!(i>1)||"e"!==e[i-1]&&"E"!==e[i-1]))break;_=!0}else{if("."===y){if(p)break;p=!0}else{if(!/[0-9eE]/.test(y))break;d=!0}}i++}return i!=u?e.substr(u,i-u):e.substr(i++,1)}}static _updateOffset(e,n,i,u,d){var p=0;switch(i){case"m":0===u&&(0===d?p=-1:1===d&&(p=1));break;case"L":case"M":case"C":case"S":case"Q":case"T":p=d%2==0?-1:1;break;case"A":d%7==5?p=-1:d%7==6&&(p=1);break;case"H":p=-1;break;case"V":p=1}return p?-1===p?e+n.x:e+n.y:e}}exports._PdfSvgPathHelper=_PdfSvgPathHelper;const colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};class _SafeColor extends wijmo_1.Color{constructor(e){super(e)}_parse(e){return super._parse(colorNames[e.toLowerCase()]||e)}static fromString(e){let n=new _SafeColor(null);return n._parse(wijmo_1.asString(e))?n:null}}exports._SafeColor=_SafeColor;class PdfDashPattern{constructor(e=null,n=e,i=0){this.dash=e;this.gap=n;this.phase=i}get dash(){return this._dash}set dash(e){this._dash=wijmo_1.asNumber(e,!0,!0)}get gap(){return this._gap}set gap(e){this._gap=wijmo_1.asNumber(e,!0,!0)}get phase(){return this._phase}set phase(e){this._phase=wijmo_1.asNumber(e,!1,!0)}clone(){return new PdfDashPattern(this._dash,this._gap,this._phase)}equals(e){return e instanceof PdfDashPattern&&this._dash===e.dash&&this._gap===e.gap&&this._phase===e.phase}}exports.PdfDashPattern=PdfDashPattern;class PdfDocumentEndedEventArgs extends wijmo_1.EventArgs{constructor(e){super();this._chunks=e}get blob(){this._blob||(this._blob=new Blob(this._chunks,{type:"application/pdf"}));return this._blob}get chunks(){return this._chunks}}exports.PdfDocumentEndedEventArgs=PdfDocumentEndedEventArgs;var PdfLineCapStyle,PdfLineJoinStyle,PdfFillRule,PdfPageOrientation,PdfImageHorizontalAlign,PdfImageVerticalAlign,PdfTextHorizontalAlign,PdfTextBaseline,PdfPageSize,PdfPrintPermission,PdfVersion,PdfTagType,PdfArtifactType,PdfPageEdge;!function(e){e[e.Butt=0]="Butt";e[e.Round=1]="Round";e[e.Square=2]="Square"}(PdfLineCapStyle=exports.PdfLineCapStyle||(exports.PdfLineCapStyle={}));!function(e){e[e.Miter=0]="Miter";e[e.Round=1]="Round";e[e.Bevel=2]="Bevel"}(PdfLineJoinStyle=exports.PdfLineJoinStyle||(exports.PdfLineJoinStyle={}));!function(e){e[e.NonZero=0]="NonZero";e[e.EvenOdd=1]="EvenOdd"}(PdfFillRule=exports.PdfFillRule||(exports.PdfFillRule={}));!function(e){e[e.Portrait=0]="Portrait";e[e.Landscape=1]="Landscape"}(PdfPageOrientation=exports.PdfPageOrientation||(exports.PdfPageOrientation={}));!function(e){e[e.Left=0]="Left";e[e.Center=1]="Center";e[e.Right=2]="Right"}(PdfImageHorizontalAlign=exports.PdfImageHorizontalAlign||(exports.PdfImageHorizontalAlign={}));!function(e){e[e.Top=0]="Top";e[e.Center=1]="Center";e[e.Bottom=2]="Bottom"}(PdfImageVerticalAlign=exports.PdfImageVerticalAlign||(exports.PdfImageVerticalAlign={}));!function(e){e[e.Left=0]="Left";e[e.Center=1]="Center";e[e.Right=2]="Right";e[e.Justify=3]="Justify"}(PdfTextHorizontalAlign=exports.PdfTextHorizontalAlign||(exports.PdfTextHorizontalAlign={}));!function(e){e[e.Alphabetic=0]="Alphabetic";e[e.Top=1]="Top";e[e.Hanging=2]="Hanging";e[e.Middle=3]="Middle";e[e.Ideographic=4]="Ideographic";e[e.Bottom=5]="Bottom"}(PdfTextBaseline=exports.PdfTextBaseline||(exports.PdfTextBaseline={}));!function(e){e[e.A0=0]="A0";e[e.A1=1]="A1";e[e.A2=2]="A2";e[e.A3=3]="A3";e[e.A4=4]="A4";e[e.A5=5]="A5";e[e.A6=6]="A6";e[e.A7=7]="A7";e[e.A8=8]="A8";e[e.A9=9]="A9";e[e.A10=10]="A10";e[e.B0=11]="B0";e[e.B1=12]="B1";e[e.B2=13]="B2";e[e.B3=14]="B3";e[e.B4=15]="B4";e[e.B5=16]="B5";e[e.B6=17]="B6";e[e.B7=18]="B7";e[e.B8=19]="B8";e[e.B9=20]="B9";e[e.B10=21]="B10";e[e.C0=22]="C0";e[e.C1=23]="C1";e[e.C2=24]="C2";e[e.C3=25]="C3";e[e.C4=26]="C4";e[e.C5=27]="C5";e[e.C6=28]="C6";e[e.C7=29]="C7";e[e.C8=30]="C8";e[e.C9=31]="C9";e[e.C10=32]="C10";e[e.RA0=33]="RA0";e[e.RA1=34]="RA1";e[e.RA2=35]="RA2";e[e.RA3=36]="RA3";e[e.RA4=37]="RA4";e[e.SRA0=38]="SRA0";e[e.SRA1=39]="SRA1";e[e.SRA2=40]="SRA2";e[e.SRA3=41]="SRA3";e[e.SRA4=42]="SRA4";e[e.Executive=43]="Executive";e[e.Folio=44]="Folio";e[e.Legal=45]="Legal";e[e.Letter=46]="Letter";e[e.Tabloid=47]="Tabloid"}(PdfPageSize=exports.PdfPageSize||(exports.PdfPageSize={}));!function(e){e[e.NotAllowed=0]="NotAllowed";e[e.AllowLowResolution=1]="AllowLowResolution";e[e.AllowHighResolution=2]="AllowHighResolution"}(PdfPrintPermission=exports.PdfPrintPermission||(exports.PdfPrintPermission={}));!function(e){e[e.v1_3=0]="v1_3";e[e.v1_4=1]="v1_4";e[e.v1_5=2]="v1_5";e[e.v1_6=3]="v1_6";e[e.v1_7=4]="v1_7";e[e.v1_7Ext3=5]="v1_7Ext3"}(PdfVersion=exports.PdfVersion||(exports.PdfVersion={}));!function(e){e[e.Part=0]="Part";e[e.Art=1]="Art";e[e.Sect=2]="Sect";e[e.Div=3]="Div";e[e.BlockQuote=4]="BlockQuote";e[e.Caption=5]="Caption";e[e.NonStruct=6]="NonStruct";e[e.Private=7]="Private";e[e.H=8]="H";e[e.H1=9]="H1";e[e.H2=10]="H2";e[e.H3=11]="H3";e[e.H4=12]="H4";e[e.H5=13]="H5";e[e.H6=14]="H6";e[e.P=15]="P";e[e.L=16]="L";e[e.LI=17]="LI";e[e.Lbl=18]="Lbl";e[e.LBody=19]="LBody";e[e.Table=20]="Table";e[e.TR=21]="TR";e[e.TH=22]="TH";e[e.TD=23]="TD";e[e.THead=24]="THead";e[e.TBody=25]="TBody";e[e.TFoot=26]="TFoot";e[e.Span=27]="Span";e[e.Quote=28]="Quote";e[e.BibEntry=29]="BibEntry";e[e.Code=30]="Code";e[e.Ruby=31]="Ruby";e[e.RB=32]="RB";e[e.RT=33]="RT";e[e.RP=34]="RP";e[e.Warichu=35]="Warichu";e[e.WT=36]="WT";e[e.WP=37]="WP";e[e.Figure=38]="Figure";e[e.Formula=39]="Formula"}(PdfTagType=exports.PdfTagType||(exports.PdfTagType={}));!function(e){e[e.Pagination=0]="Pagination";e[e.Layout=1]="Layout"}(PdfArtifactType=exports.PdfArtifactType||(exports.PdfArtifactType={}));!function(e){e[e.Top=0]="Top";e[e.Bottom=1]="Bottom";e[e.Left=2]="Left";e[e.Right=3]="Right"}(PdfPageEdge=exports.PdfPageEdge||(exports.PdfPageEdge={}));exports._Errors={InvalidArg:e=>'Invalid argument: "'+e+'".',InvalidFormat:e=>'"'+e+'" is not in the correct format.',ValueCannotBeEmpty:e=>'Value cannot be empty: "'+e+'".',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.",SecurityRequirements:"The wijmo.pdf.security module must be added on page to use PDF encryption and permissions settings.",TaggedPdfRequirements:"Tagged PDF requires document version 1.4 or higher."};class PdfBrush{clone(){throw exports._Errors.AbstractMethod}equals(e){throw exports._Errors.AbstractMethod}_getBrushObject(e){throw exports._Errors.AbstractMethod}}exports.PdfBrush=PdfBrush;class PdfPen{constructor(e,n,i,u,d,p){null==e&&(e=wijmo_1.Color.fromRgba(0,0,0));null==n&&(n=1);null==i&&(i=new PdfDashPattern(null,null,0));null==u&&(u=PdfLineCapStyle.Butt);null==d&&(d=PdfLineJoinStyle.Miter);null==p&&(p=10);if(!wijmo_1.isObject(e)||e instanceof wijmo_1.Color||e instanceof PdfBrush){e instanceof PdfBrush?this.brush=e:this.color=e;this.width=n;this.cap=u;this.join=d;this.miterLimit=p;this.dashPattern=i}else{var _=e;this.color=_.color;this.brush=_.brush;this.width=null!=_.width?_.width:n;this.cap=null!=_.cap?_.cap:u;this.join=null!=_.join?_.join:d;this.miterLimit=null!=_.miterLimit?_.miterLimit:p;this.dashPattern=_.dashPattern||i}this._color=this._color||wijmo_1.Color.fromRgba(0,0,0)}get color(){return this._color}set color(e){this._color=_asColor(e)}get brush(){return this._brush}set brush(e){e=_asPdfBrush(e,!0);this._brush=e?e.clone():null}get width(){return this._width}set width(e){this._width=wijmo_1.asNumber(e,!1,!0)}get cap(){return this._cap}set cap(e){this._cap=wijmo_1.asEnum(e,PdfLineCapStyle)}get join(){return this._join}set join(e){this._join=wijmo_1.asEnum(e,PdfLineJoinStyle)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit=wijmo_1.asNumber(e,!1,!0)}get dashPattern(){return this._dashPattern}set dashPattern(e){wijmo_1.assert(e instanceof PdfDashPattern,exports._Errors.InvalidArg("value"));this._dashPattern=e.clone()}clone(){var e=new PdfPen(this._color,this._width,this._dashPattern,this._cap,this._join,this._miterLimit);e.brush=this._brush;return e}equals(e){return e instanceof PdfPen&&this._color.equals(e._color)&&(this._brush?this._brush.equals(e._brush):this._brush===e._brush)&&this._width===e._width&&this._cap===e._cap&&this._join===e._join&&this._miterLimit===e._miterLimit&&this._dashPattern.equals(e._dashPattern)}}exports.PdfPen=PdfPen;class PdfFont{constructor(e="times",n=10,i="normal",u="normal"){this.family=e;this.size=n;this.style=i;this.weight=u}get family(){return this._family}set family(e){this._family=wijmo_1.asString(e,!1)}get size(){return this._size}set size(e){this._size=wijmo_1.asNumber(e,!1,!0)}get style(){return this._style}set style(e){(e=wijmo_1.asString(e,!1))&&wijmo_1.assert(!!PdfFont._KNOWN_STYLES[(e||"").toLowerCase()],exports._Errors.InvalidArg("value"));this._style=e}get weight(){return this._weight}set weight(e){(e=wijmo_1.asString(e,!1))&&wijmo_1.assert(!!PdfFont._KNOWN_WEIGHTS[(e||"").toLowerCase()],exports._Errors.InvalidArg("value"));this._weight=e}clone(){return new PdfFont(this.family,this.size,this.style,this.weight)}equals(e){return e instanceof PdfFont&&this._family===e._family&&this._size===e._size&&this._style===e._style&&this._weight===e._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(e){this._values=[];this._keys={};if(e)for(var n=0;n<e.length;n++){var i=e[n];this._keys[i.key]=n;this._values.push({key:i.key,value:i.value})}}hasKey(e){var n=this._keys[e];return void 0!==n?this._values[n].value:null}add(e,n){if(!this.hasKey(e)){this._keys[e]=this._values.length;this._values.push({key:e,value:n});return n}return null}each(e){if(e)for(var n=0;n<this._values.length;n++){var i=this._values[n];if(!1===e(i.key,i.value))break}}eachReverse(e){if(e)for(var n=this._values.length-1;n>=0;n--){var i=this._values[n];if(!1===e(i.key,i.value))break}}}class _PdfFontRegistrar{constructor(e){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=e;this._fonts.each((e,n)=>{var facesIterator=e=>{for(var n in e)this._internalFontNames[e[n]]=1};facesIterator(n.normal)||facesIterator(n.italic)||facesIterator(n.oblique)})}registerFont(e){wijmo_1.assert(!!e,exports._Errors.ValueCannotBeEmpty("font"));wijmo_1.asString(e.name);wijmo_1.assert(e.source instanceof ArrayBuffer,exports._Errors.FontSourceMustBeArrayBuffer);e=Object.assign({},e);var n=this._normalizeFontSelector(e.name,e.style,e.weight),i=this._fonts.hasKey(n.name);i||(i=this._fonts.add(n.name,{attributes:e}));var u=i[n.style];u||(u=i[n.style]={});var d=this._makeInternalName(n);if(!u[n.weight]){this._doc.registerFont(d,e.source,e.family);this._findFontCache={};u[n.weight]=d;this._internalFontNames[d]=1}return d}findFont(e,n,i){var u=this._normalizeFontSelector(e,n,i),d=this._makeInternalName(u);if(this._findFontCache[d])return this._findFontCache[d];u.name+=","+PdfFont._DEF_FAMILY_NAME;for(var p=0,_=u.name.split(",");p<_.length;p++){var y=this._findFont(_[p].replace(/["']/g,"").trim(),u.style,u.weight);if(y)return this._findFontCache[d]=y}return this._findFontCache[d]=this._internalFontNames[e]?e:PdfFont._DEF_NATIVE_NAME}_normalizeFontSelector(e,n,i){return{name:(e||"").toLowerCase(),style:(n||PdfFont._DEF_FONT.style).toLowerCase(),weight:parseInt(this._weightNameToNum[i]||i)||parseInt(this._weightNameToNum[PdfFont._DEF_FONT.weight])}}_findFont(e,n,i){var u,d=[];switch(n){case"italic":d=["italic","oblique","normal"];break;case"oblique":d=["oblique","italic","normal"];break;default:d=["normal","oblique","italic"]}switch(e){case"cursive":case"fantasy":case"monospace":case"serif":case"sans-serif":this._fonts.eachReverse((n,p)=>{var _="sans-serif"===e?"sansSerif":e;if(p.attributes[_])for(var y=0;y<d.length;y++)if(u=this._findFontWeightFallback(n,d[y],i))return!1});break;default:if(this._fonts.hasKey(e))for(var p=0;p<d.length&&!u;p++)u=this._findFontWeightFallback(e,d[p],i)}return u}_findFontWeightFallback(e,n,i,u){var d=this._fonts.hasKey(e);if(d&&d[n]){var p=d[n];if(p[i])return p[i];if(!u){u=[];for(var _ in p)u.push(parseFloat(_));u.sort((e,n)=>e-n)}if(i>500){for(var y=0,b=0;b<u.length;b++){if((x=u[b])>i)return p[x];y=x}if(y)return p[y]}else{if(!(i<400))return 400==i?p[500]?p[500]:this._findFontWeightFallback(e,n,300,u):p[400]?p[400]:this._findFontWeightFallback(e,n,300,u);var w=0;for(b=u.length-1;b>=0;b--){var x;if((x=u[b])<i)return p[x];w=x}if(w)return p[w]}}return null}_makeInternalName(e){return e.name+"-"+e.style+"-"+e.weight}}exports._PdfFontRegistrar=_PdfFontRegistrar;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};function saveBlob(e,n){wijmo_1.saveFile(e,n)}exports.saveBlob=saveBlob;function ptToPx(e){return wijmo_1.asNumber(e)/.75}exports.ptToPx=ptToPx;function pxToPt(e){return.75*wijmo_1.asNumber(e)}exports.pxToPt=pxToPt;function _asColor(e,n=!0){var i;i=e?e instanceof wijmo_1.Color?n?wijmo_1.Color.fromRgba(e.r,e.g,e.b,e.a):e:_SafeColor.fromString(e):wijmo_1.Color.fromRgba(0,0,0);wijmo_1.assert(i instanceof wijmo_1.Color,exports._Errors.InvalidArg("value"));return i}exports._asColor=_asColor;function _asPdfPen(e,n=!0){(wijmo_1.isString(e)||e instanceof wijmo_1.Color)&&(e=new PdfPen(e));wijmo_1.assert(null==e&&n||e instanceof PdfPen,exports._Errors.InvalidArg("value"));return e}exports._asPdfPen=_asPdfPen;function _asPdfBrush(e,n=!0){(wijmo_1.isString(e)||e instanceof wijmo_1.Color)&&(e=new PdfSolidBrush(e));wijmo_1.assert(null==e&&n||e instanceof PdfBrush,exports._Errors.InvalidArg("value"));return e}exports._asPdfBrush=_asPdfBrush;function _asPdfFont(e,n=!0){wijmo_1.assert(null==e&&n||e instanceof PdfFont,exports._Errors.InvalidArg("value"));return e}exports._asPdfFont=_asPdfFont;function _asPt(e,n=!0,i=0){var u=!e&&0!==e;wijmo_1.assert(!u||n,exports._Errors.ValueCannotBeEmpty("value"));if(u)return i;if(wijmo_1.isNumber(e)){if(e==e)return e}else if(wijmo_1.isString(e)){if(_FontSizePt[e])return _FontSizePt[e];var d=parseFloat(e);if(d==d){if(e.match(/(px)$/i))return pxToPt(d);if(e==d||e.match(/(pt)$/i))return d}}wijmo_1.assert(!1,exports._Errors.InvalidFormat(e))}exports._asPt=_asPt;function _formatMacros(e,n){var i={},u=0;return e=(e=e.replace(/&&/g,(e,n,d)=>{i[n-2*u+u]=!0;u++;return"&"})).replace(/&\[(\S+?)\]/g,(e,u,d,p)=>{var _=n[u];return _&&!i[d]?_:e})}exports._formatMacros=_formatMacros;function _compare(e,n){if(wijmo_1.isObject(e)&&wijmo_1.isObject(n)){for(var i in e)if(!i||"_"!==i[0]){var u=e[i];if(!(u&&wijmo_1.isFunction(u.equals)?u.equals(n[i]):_compare(u,n[i])))return!1}return!0}if(wijmo_1.isArray(e)&&wijmo_1.isArray(n)){if(e.length!==n.length)return!1;for(var d=0;d<e.length;d++)if(!_compare(e[d],n[d]))return!1;return!0}return e===n}exports._compare=_compare;function _toTitleCase(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}exports._toTitleCase=_toTitleCase;var _SvgRenderMode,_SvgNumConversion,_SvgLengthContext,_SvgAttrType,_XhrOverrideMimeTypeSupported=!!(new XMLHttpRequest).overrideMimeType;class _XhrHelper{static arrayBufferAsync(e,n,i){this._getData(e,{method:"GET",responseType:"arraybuffer",async:!0},n,i)}static arrayBuffer(e,n){var i,u={method:"GET",async:!1};if(exports._IE||!_XhrOverrideMimeTypeSupported){u.responseType="arraybuffer";this._getData(e,u,(e,n)=>{i=n},n)}else{u.overrideMimeType="text/plain; charset=x-user-defined";this._getData(e,u,(e,n)=>{i=new ArrayBuffer(n.length);for(var u=new Uint8Array(i),d=0,p=n.length;d<p;d++)u[d]=255&n.charCodeAt(d)},n)}return i}static text(e,n){var i="";this._getData(e,{method:"GET",async:!1},(e,n)=>i=n,n);return i}static _getData(e,n,i,u){var d=new XMLHttpRequest;n=n||{};d.open(n.method,e,n.async,n.user,n.password);d.addEventListener("load",()=>{if(4===d.readyState){var e=d.status;e>=200&&e<300||304===e?i&&i(d,d.response):u&&u(d)}});if(n.headers)for(var p in n.headers)d.setRequestHeader(p,n.headers[p]);n.responseType&&(d.responseType=n.responseType);n.overrideMimeType&&d.overrideMimeType&&d.overrideMimeType(n.overrideMimeType);d.send(n.data)}}exports._XhrHelper=_XhrHelper;class _PdfImageHelper{static getDataUri(e){wijmo_1.assert(!!(e=wijmo_1.asString(e)),exports._Errors.EmptyUrl);if(_PdfImageHelper.DATAURI_CACHE[e])return _PdfImageHelper.DATAURI_CACHE[e];var n="";if(0===e.indexOf("data:")){if(!e.match(/^data:image\/(png|jpeg|jpg);base64,/))throw exports._Errors.InvalidImageDataUri;n=e}else{var i,u=_XhrHelper.arrayBuffer(e,e=>i=e.statusText);if(i)throw i;try{var d=new Uint16Array(u,0,2);if(55551!==d[0]&&(20617!==d[0]||18254!==d[1]))throw"";var p=_PdfImageHelper._toBase64(u);n="data:"+(55551===d[0]?"image/jpeg":"image/png")+";base64,"+p}catch(e){throw exports._Errors.InvalidImageFormat}}return _PdfImageHelper.DATAURI_CACHE[e]=n}static _toBase64(e){for(var n="",i=new Uint8Array(e),u=0;u<i.byteLength;u++)n+=String.fromCharCode(i[u]);return("undefined"!=typeof window?window:self).btoa(n)}}_PdfImageHelper.DATAURI_CACHE={};exports._PdfImageHelper=_PdfImageHelper;class PdfPageArea{constructor(){this._ctxProps={xo:0,yo:0,lineGap:0}}get x(){this._switchCtx();var e=this._ndoc.x-this._offset.x;this._saveCtx();return e}set x(e){e=wijmo_1.asNumber(e);this._switchCtx();this._ndoc.x=e+this._offset.x;this._saveCtx()}get y(){this._switchCtx();var e=this._ndoc.y-this._offset.y;this._saveCtx();return e}set y(e){e=wijmo_1.asNumber(e);this._switchCtx();this._ndoc.y=e+this._offset.y;this._saveCtx()}get lineGap(){return this._ctxProps.lineGap}set lineGap(e){this._ctxProps.lineGap=e=wijmo_1.asNumber(e,!1,!0);if(this._ndoc){this._switchCtx();this._ndoc.lineGap(e);this._saveCtx()}}get height(){var e=this._ndoc.page;return Math.max(0,e.height-e.margins.top-e.margins.bottom)}get width(){var e=this._ndoc.page;return Math.max(e.width-e.margins.left-e.margins.right)}get _heightCtm(){return this.height/-this._ndoc._ctm[3]}get _widthCtm(){return this.width/this._ndoc._ctm[0]}get paths(){return this._graphics}get document(){return this._pdfdoc}drawText(e,n,i,u){this._assertPathStarted();if(e=wijmo_1.asString(e)){u=u||{};var d,p=this._pdfdoc,_=this._ndoc,y=u.stroke&&u.fill?2:u.stroke?1:0;!u.strike&&!u.underline||u.stroke||(y=2);this._switchCtx();try{this._drawingText=!0;1&y||p._toggleBrush(_asPdfBrush(u.brush));3&y&&p._togglePen(_asPdfPen(u.pen));p._toggleFont(_asPdfFont(u.font));var b=this._textOptionsToNative(u);d=null==n?_.textAndMeasure(e,null,null,b):_.textAndMeasure(e,wijmo_1.asNumber(n)+this._offset.x,wijmo_1.asNumber(i)+this._offset.y,b)}finally{this._drawingText=!1;this._saveCtx()}return{charCount:d.charCount||0,size:new wijmo_1.Size(d.width||0,d.height||0)}}}drawImage(e,n,i,u){this._assertPathStarted();if(!e)return this;wijmo_1.isString(e)&&(e=_PdfImageHelper.getDataUri(e));this._switchCtx();try{var d={};if(u){switch(wijmo_1.asEnum(u.align,PdfImageHorizontalAlign,!0)){case PdfImageHorizontalAlign.Center:d.align="center";break;case PdfImageHorizontalAlign.Right:d.align="right";break;default:d.align="left"}switch(wijmo_1.asEnum(u.vAlign,PdfImageVerticalAlign,!0)){case PdfImageVerticalAlign.Center:d.valign="center";break;case PdfImageVerticalAlign.Bottom:d.valign="bottom";break;default:d.valign="top"}var p=wijmo_1.asNumber(u.width,!0,!0),_=wijmo_1.asNumber(u.height,!0,!0);if(p&&_&&wijmo_1.asBoolean(u.stretchProportionally,!0))d.fit=[p,_];else{d.width=p;d.height=_}}null==n?this._ndoc.image(e,d):this._ndoc.image(e,wijmo_1.asNumber(n)+this._offset.x,wijmo_1.asNumber(i)+this._offset.y,d)}finally{this._saveCtx()}return this}drawSvg(e,n,i,u){var d,p;u=u||{};this._assertPathStarted();if(!(e=wijmo_1.asString(e)))return this;if(e.indexOf("data:image/svg")>=0)d=(p=e.substring(e.indexOf(",")+1),decodeURIComponent(Array.prototype.map.call(atob(p),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")));else{var _;d=_XhrHelper.text(e,e=>_=e.statusText);if(_)throw _}if(!d)return this;var y,b,w=wijmo_1.asNumber(u.width,!0,!0),x=wijmo_1.asNumber(u.height,!0,!0),P=new _SvgRenderer(d,this,w,x,wijmo_1.asFunction(u.urlResolver)),E=null==i,k=(n=null!=n?n:this.x,i=null!=i?i:this.y,this.y),B=this.x,j=P.root.width.hasVal?P.root.width.val:void 0,I=P.root.height.hasVal?P.root.height.val:void 0;if((w||x)&&j&&I){y=w/j;b=x/I;if(w&&x){if(u.stretchProportionally){var O=Math.min(y,b);if(y===O)switch(wijmo_1.asEnum(u.vAlign,PdfImageVerticalAlign,!0)){case PdfImageVerticalAlign.Center:i+=x/2-I*y/2;break;case PdfImageVerticalAlign.Bottom:i+=x-I*y}if(b===O)switch(wijmo_1.asEnum(u.align,PdfImageHorizontalAlign,!0)){case PdfImageHorizontalAlign.Center:n+=w/2-j*b/2;break;case PdfImageHorizontalAlign.Right:n+=w-j*b}y=b=O}}else u.width?b=y:y=b}y=y||1;b=b||1;this._switchCtx();this._pdfdoc.saveState();try{this.translate(n,i);this.scale(y,b);P.render()}finally{this._pdfdoc.restoreState();this._saveCtx()}this.x=B;this.y=k;if(E){var D=null!=x?x:null!=I?I*b:void 0;this.y+=D||0}return this}lineHeight(e){this._pdfdoc._toggleFont(_asPdfFont(e));this._switchCtx();var n=this._ndoc.currentLineHeight();this._saveCtx();return n}measureText(e,n,i){var u={};if(e=wijmo_1.asString(e)){this._pdfdoc._toggleFont(_asPdfFont(n));this._switchCtx();try{u=this._ndoc.textAndMeasure(e,null,null,this._textOptionsToNative(i),!0)}finally{this._saveCtx()}}return{charCount:u.charCount||0,size:new wijmo_1.Size(u.width||0,u.height||0)}}moveDown(e=1,n){if(e=wijmo_1.asNumber(e,!1,!0)){this._pdfdoc._toggleFont(_asPdfFont(n));this._switchCtx();try{this._ndoc.moveDown(e)}finally{this._saveCtx()}}return this}moveUp(e=1,n){if(e=wijmo_1.asNumber(e,!1,!0)){this._pdfdoc._toggleFont(_asPdfFont(n));this._switchCtx();try{this._ndoc.moveUp(e)}finally{this._saveCtx()}}return this}openImage(e){if(!(e=wijmo_1.asString(e)))return null;e=_PdfImageHelper.getDataUri(e);return this._ndoc.openImage(e)}scale(e,n=e,i){this._assertPathStarted();i=i||new wijmo_1.Point(0,0);var u=wijmo_1.asNumber(i.x)+this._offset.x,d=wijmo_1.asNumber(i.y)+this._offset.y;e=wijmo_1.asNumber(e,!1);n=wijmo_1.asNumber(n,!1);this._ndoc.scale(e,n,{origin:[u,d]});return this}translate(e,n){this._assertPathStarted();e=wijmo_1.asNumber(e);n=wijmo_1.asNumber(n);this._ndoc.translate(e,n);return this}transform(e,n,i,u,d,p){this._assertPathStarted();e=wijmo_1.asNumber(e);n=wijmo_1.asNumber(n);i=wijmo_1.asNumber(i);u=wijmo_1.asNumber(u);d=wijmo_1.asNumber(d);p=wijmo_1.asNumber(p);var _=this._offset.x,y=this._offset.y;this._ndoc.transform(e,n,i,u,d-e*_+_-i*y,p-n*_-u*y+y);return this}rotate(e,n){this._assertPathStarted();n=n||new wijmo_1.Point(0,0);var i=wijmo_1.asNumber(n.x)+this._offset.x,u=wijmo_1.asNumber(n.y)+this._offset.y;e=wijmo_1.asNumber(e);this._ndoc.rotate(e,{origin:[i,u]});return this}beginTagContent(e,n){let i=PdfTagType[wijmo_1.asEnum(e,PdfTagType,!1)];return this._pdfdoc._document.markStructureContent(i,this._markedContentOptionsToNative(n))}endTagContent(){this._pdfdoc._document.endMarkedContent();return this}tagContent(e,n,i){wijmo_1.assert(wijmo_1.isFunction(n),"callback must be a function.");let u=this.beginTagContent(e,i);n();this.endTagContent();return u}beginArtifact(e){this._pdfdoc._document.markContent("Artifact",this._markedContentOptionsToNative(e));return this}endArtifact(){this._pdfdoc._document.endMarkedContent();return this}artifact(e,n){wijmo_1.assert(wijmo_1.isFunction(e),"callback must be a function.");this.beginArtifact(n);e();this.endArtifact();return this}_assertPathStarted(){wijmo_1.assert(!this.paths._hasPathBuffer(),exports._Errors.PathStarted)}_initialize(e,n,i){this._pdfdoc=e;this._ndoc=e._document;this._offset=new wijmo_1.Point(n,i);this._ctxProps={xo:n,yo:i,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()}_markedContentOptionsToNative(e){let n=Object.assign({},e),i=e;if(i){null!=i.type&&(n.type=PdfArtifactType[wijmo_1.asEnum(i.type,PdfArtifactType)]);null!=i.attached&&(n.attached=i.attached.map(e=>PdfPageEdge[wijmo_1.asEnum(e,PdfPageEdge)]));if(i.bbox){wijmo_1.assert(i.bbox instanceof wijmo_1.Rect,"Rect expected.");let e=this._offset.x+i.bbox.left,u=this._offset.y+i.bbox.top;n.bbox=[e,u,e+i.bbox.width,u+i.bbox.height]}}return n}_textOptionsToNative(e){e=e||{};var n=Object.assign({},e);null!=e.align&&(n.align=(PdfTextHorizontalAlign[wijmo_1.asEnum(e.align,PdfTextHorizontalAlign)]||"").toLowerCase());null!=e.baseline&&(n.baseline=(PdfTextBaseline[wijmo_1.asEnum(e.baseline,PdfTextBaseline)]||"").toLowerCase());return n}}exports.PdfPageArea=PdfPageArea;class PdfSolidBrush extends PdfBrush{constructor(e){super();this.color=e||wijmo_1.Color.fromRgba(0,0,0)}get color(){return this._color}set color(e){this._color=_asColor(e)}clone(){return new PdfSolidBrush(this._color)}equals(e){return e instanceof PdfSolidBrush&&this._color.equals(e._color)}_getBrushObject(e){return this._color}}exports.PdfSolidBrush=PdfSolidBrush;class PdfRunningTitleDeclarativeContent{constructor(e,n,i){this.text=e||"";this.font=n||new PdfFont;this.brush=_asPdfBrush(i)||new PdfSolidBrush}get font(){return this._font}set font(e){e=_asPdfFont(e,!0);this._font=e?e.clone():e}get text(){return this._text}set text(e){this._text=wijmo_1.asString(e)}get brush(){return this._brush}set brush(e){e=_asPdfBrush(e);this._brush=e?e.clone():e}clone(){return new PdfRunningTitleDeclarativeContent(this.text,this.font,this.brush)}equals(e){return e instanceof PdfRunningTitleDeclarativeContent&&this._text===e.text&&(this._brush?this._brush.equals(e._brush):this._brush===e._brush)&&(this._font?this._font.equals(e._font):this._font===e._font)}}exports.PdfRunningTitleDeclarativeContent=PdfRunningTitleDeclarativeContent;class PdfRunningTitle extends PdfPageArea{constructor(e){super();this._height=24;this._declarative=new PdfRunningTitleDeclarativeContent;this._heightChanged=new wijmo_1.Event;wijmo_1.copy(this,e)}get declarative(){return this._declarative}set declarative(e){if(null!=e){wijmo_1.assert(e instanceof PdfRunningTitleDeclarativeContent,exports._Errors.InvalidArg("value"));e=e.clone()}this._declarative=e}get height(){return this._height}set height(e){if(e!==this._height){this._height=wijmo_1.asNumber(e,!1,!0);this._heightChanged.raise(this,wijmo_1.EventArgs.empty)}}drawText(e,n,i,u){(u=u||{}).height=1/0;return super.drawText(e,n,i,u)}}exports.PdfRunningTitle=PdfRunningTitle;class PdfGradientStop{constructor(e,n,i){this.offset=e||0;this.color=n||wijmo_1.Color.fromRgba(0,0,0);this.opacity=null==i?1:i}get offset(){return this._offset}set offset(e){this._offset=wijmo_1.clamp(wijmo_1.asNumber(e,!1,!0),0,1)}get color(){return this._color}set color(e){this._color=_asColor(e)}get opacity(){return this._opacity}set opacity(e){this._opacity=wijmo_1.clamp(wijmo_1.asNumber(e,!1,!0),0,1)}clone(){return new PdfGradientStop(this.offset,this.color,this.opacity)}equals(e){return e instanceof PdfGradientStop&&this._offset===e._offset&&this._color.equals(e._color)&&this._opacity===e._opacity}}exports.PdfGradientStop=PdfGradientStop;class PdfGradientBrush extends PdfBrush{constructor(e,n){super();this.stops=e||[];this.opacity=null==n?1:n}get opacity(){return this._opacity}set opacity(e){this._opacity=wijmo_1.clamp(wijmo_1.asNumber(e,!1,!0),0,1)}get stops(){return this._stops}set stops(e){wijmo_1.assert(wijmo_1.isArray(e),exports._Errors.InvalidArg("value"));this._stops=this._cloneStopsArray(e)}equals(e){return e instanceof PdfGradientBrush&&this._opacity===e.opacity&&_compare(this._stops,e._stops)}_cloneStopsArray(e){for(var n=[],i=0;i<e.length;i++){var u=e[i];wijmo_1.assert(u instanceof PdfGradientStop,exports._Errors.InvalidArg("stops["+i+"]"));n.push(e[i].clone())}return n}}exports.PdfGradientBrush=PdfGradientBrush;class PdfRadialGradientBrush extends PdfGradientBrush{constructor(e,n,i,u,d,p,_,y){super(_,y);this.x1=e;this.y1=n;this.r1=i;this.x2=u;this.y2=d;this.r2=p}get x1(){return this._x1}set x1(e){this._x1=wijmo_1.asNumber(e,!1,!0)}get y1(){return this._y1}set y1(e){this._y1=wijmo_1.asNumber(e,!1,!0)}set r1(e){this._r1=wijmo_1.asNumber(e,!1,!0)}get r1(){return this._r1}get x2(){return this._x2}set x2(e){this._x2=wijmo_1.asNumber(e,!1,!0)}get y2(){return this._y2}set y2(e){this._y2=wijmo_1.asNumber(e,!1,!0)}get r2(){return this._r2}set r2(e){this._r2=wijmo_1.asNumber(e,!1,!0)}clone(){return new PdfRadialGradientBrush(this._x1,this._y1,this._r1,this._x2,this._y2,this._r2,this.stops,this.opacity)}equals(e){return e instanceof PdfRadialGradientBrush&&this._x1===e._x1&&this._y1===e._y1&&this._r1===e._r1&&this._x2===e._x2&&this._y2===e._y2&&this._r2===e._r2&&super.equals(e)}_getBrushObject(e){for(var n=e.document._document.radialGradient(this._x1+e._offset.x,this._y2+e._offset.y,this._r1,this._x2+e._offset.x,this._y2+e._offset.y,this._r2),i=this.stops,u=0;u<i.length;u++){var d=i[u];d&&n.stop(d.offset,[d.color.r,d.color.g,d.color.b],d.color.a)}return n}}exports.PdfRadialGradientBrush=PdfRadialGradientBrush;class PdfDocument extends PdfPageArea{constructor(e){super();this._docInitialized=!1;this._compress=!0;this._bufferPages=!0;this._chunks=[];this._pageIndex=-1;this._version=PdfVersion.v1_3;this._permissions={annotating:!1,contentAccessibility:!1,copying:!1,documentAssembly:!1,fillingForms:!1,modifying:!1,printing:PdfPrintPermission.NotAllowed};this._tagged=!1;this._displayTitle=!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(e,n){if("size"===e){this.size=n;return!0}}};this.ended=new wijmo_1.Event;this.pageAdded=new wijmo_1.Event;this._runtimeProperties=["pageIndex","x","y"];wijmo_1.copy(this,e);let n=softPdfSecurity();if((this._ownerPassword||this._userPassword)&&!n)throw exports._Errors.SecurityRequirements;if(this._tagged&&this._version<PdfVersion.v1_4)throw exports._Errors.TaggedPdfRequirements;var pre=e=>{this._doc=e;this._fontReg=new _PdfFontRegistrar(this._doc)},post=()=>{this.setPen(this._currentGS[this._pageIndex].pen);this.setBrush(this._currentGS[this._pageIndex].brush);this._curFont=PdfFont._DEF_PDFKIT_FONT;this.setFont(new PdfFont)},i=!1,u=this.permissions,d={compress:this._compress,bufferPages:this._bufferPages,pdfVersion:["1.3","1.4","1.5","1.6","1.7","1.7ext3"][this._version],ownerPassword:this._ownerPassword||void 0,security:n?n._PDFSecurity:null,permissions:{annotating:wijmo_1.asBoolean(u.annotating,!0),contentAccessibility:wijmo_1.asBoolean(u.contentAccessibility,!0),copying:wijmo_1.asBoolean(u.copying,!0),documentAssembly:wijmo_1.asBoolean(u.documentAssembly,!0),fillingForms:wijmo_1.asBoolean(u.fillingForms,!0),modifying:wijmo_1.asBoolean(u.modifying,!0),printing:(()=>{let e=wijmo_1.asEnum(u.printing,PdfPrintPermission,!0);return e==PdfPrintPermission.AllowHighResolution?"highResolution":e==PdfPrintPermission.AllowLowResolution?"lowResolution":void 0})()},userPassword:this._userPassword||void 0,tagged:this._tagged,displayTitle:this._displayTitle,lang:null==this._lang?void 0:wijmo_1.asString(this._lang),pageAdding:this._ehOnPageAdding=(e,n)=>{if(!this._docInitialized){i=!0;pre(e)}this._onPageAdding(e,n)},pageAdded:this._ehOnPageAdded=e=>{var n=this._isDrawingText()?this._currentGS[this._pageIndex].brush:new PdfSolidBrush;this._currentGS[++this._pageIndex]={pen:new PdfPen,brush:n};this._docInitialized||post();this._onPageAdded(e)}};this._setDocInfo(d.info={},this.info);this._doc=new PDFDocument(d);if(!i){pre(this._doc);post()}this._doc.on("data",this._ehOnDocData=e=>{this._onDocData(e)}).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 displayTitle(){return this._displayTitle}get footer(){this._footer||(this._footer=new PdfRunningTitle({_heightChanged:()=>{this._docInitialized&&this._resetAreasOffset(this._doc)}}));return this._footer}get header(){this._header||(this._header=new PdfRunningTitle({_heightChanged:()=>{this._docInitialized&&this._resetAreasOffset(this._doc)}}));return this._header}get lang(){return this._lang}get ownerPassword(){return this._ownerPassword}get pageIndex(){return this._pageIndex}set pageIndex(e){e=wijmo_1.asNumber(e,!1,!0);if(this._pageIndex!==e){this._doc.switchToPage(e);this._pageIndex=e}}get permissions(){return this._permissions}get tagged(){return this._tagged}get userPassword(){return this._userPassword}get version(){return this._version}onEnded(e){this.ended&&this.ended.raise(this,e)}onPageAdded(e){this.pageAdded&&this.pageAdded.raise(this,e)}dispose(){if(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 e=this._doc.page;return{layout:"landscape"===e.layout?PdfPageOrientation.Landscape:PdfPageOrientation.Portrait,size:wijmo_1.isArray(e.size)?new wijmo_1.Size(e.size[0],e.size[1]):PdfPageSize[e.size.match(/\d+/)?e.size:_toTitleCase(e.size)],margins:{left:e.margins.left,right:e.margins.right,top:e.margins.top-this.header.height,bottom:e.margins.bottom-this.footer.height}}}addPage(e){var n=this._pageSettingsToNative(e||this.pageSettings);this._doc.addPage(n);return this}bufferedPageRange(){return this._doc.bufferedPageRange()}end(){this._doc.end()}setBrush(e){this._assertAreasPathStarted();this._setCurBrush(this._defBrush=_asPdfBrush(e,!1).clone());return this}setPen(e){this._assertAreasPathStarted();this._setCurPen(this._defPen=_asPdfPen(e,!1).clone());return this}setFont(e){this._setCurFont(this._defFont=_asPdfFont(e,!1).clone());return this}_getFont(){return this._curFont}registerFont(e){wijmo_1.assert(!!e,exports._Errors.ValueCannotBeEmpty("font"));var n;if(wijmo_1.isString(e.source)){let i;n=_XhrHelper.arrayBuffer(e.source,e=>i=e.statusText||e.status);if(null!=i)throw i}else{if(!(e.source instanceof ArrayBuffer))throw exports._Errors.FontSourceMustBeStringArrayBuffer;n=e.source}(e=Object.assign({},e)).source=n;this._fontReg.registerFont(e);return this}registerFontAsync(e,n){wijmo_1.assert("string"==typeof e.source,exports._Errors.FontSourceMustBeString);wijmo_1.asFunction(n,!1);_XhrHelper.arrayBufferAsync(e.source,(i,u)=>{var d=Object.assign({},e);d.source=u;this._fontReg.registerFont(d);n(e)})}saveState(){this._assertAreasPathStarted();this._graphicsStack.push(this._currentGS[this._pageIndex].pen.clone(),this._defPen.clone(),this._currentGS[this._pageIndex].brush.clone(),this._defBrush.clone());this._doc.save();return this}restoreState(){this._assertAreasPathStarted();if(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._doc.restore();return this}tag(e,n,i){let u=PdfTagType[wijmo_1.asEnum(e,PdfTagType,!1)];return this._doc.struct(u,i||void 0,n)}addTag(e){this._doc.addStructure(e);return this}_copy(e,n){if("compress"===e){this._compress=wijmo_1.asBoolean(n);return!0}if("bufferPages"===e){this._bufferPages=wijmo_1.asBoolean(n);return!0}if("ownerPassword"===e){this._ownerPassword=wijmo_1.asString(n);return!0}if("userPassword"===e){this._userPassword=wijmo_1.asString(n);return!0}if("version"===e){this._version=wijmo_1.asEnum(n,PdfVersion);return!0}if("displayTitle"===e){this._displayTitle=wijmo_1.asBoolean(n);return!0}if("lang"===e){this._lang=wijmo_1.asString(n);return!0}if("tagged"===e){this._tagged=wijmo_1.asBoolean(n);return!0}return this._runtimeProperties.indexOf(e)>=0}get _document(){return this._doc}_switchTextFlowCtx(e){this._doc.x=e.xo;this._doc.y=e.yo;this._doc.lineGap(e.lineGap)}_getTextFlowCtxState(){return{xo:this._doc.x,yo:this._doc.y,lineGap:this._doc.currentLineGap()}}_toggleBrush(e){e?this._setCurBrush(e):this._setCurBrush(this._defBrush)}_togglePen(e){e?this._setCurPen(e):this._setCurPen(this._defPen)}_toggleFont(e){e?this._setCurFont(e):this._setCurFont(this._defFont)}_onDocData(e){this._chunks.push(e)}_onDocEnding(){this._processHeadersFooters();this._setDocInfo(this._doc.info,this.info)}_setDocInfo(e,n){if(n){var i;(i=n.author)&&(e.Author=i);(i=n.creationDate)&&(e.CreationDate=i);(i=n.keywords)&&(e.Keywords=i);(i=n.modDate)&&(e.ModDate=i);(i=n.subject)&&(e.Subject=i);(i=n.title)&&(e.Title=i)}}_onDocEnded(){if(exports._IE&&this._chunks.length&&!this._chunks[0].buffer)for(var e=0;e<this._chunks.length;e++){for(var n=this._chunks[e],i=new Uint8Array(n.length),u=0;u<n.length;u++)i[u]=n[u];this._chunks[e]=i.buffer}this.onEnded(new PdfDocumentEndedEventArgs(this._chunks));this._chunks=[]}_onPageAdding(e,n){if(this.pageSettings){var i=this._pageSettingsToNative(this.pageSettings);n.layout=e.options.layout=i.layout;n.margins=e.options.margins=i.margins;n.size=e.options.size=i.size}}_onPageAdded(e){e.page.originalMargins=Object.assign({},e.page.margins);this._resetAreasOffset(e);this.onPageAdded(wijmo_1.EventArgs.empty)}_assertAreasPathStarted(){if(this._docInitialized){this._assertPathStarted();this.header._assertPathStarted();this.footer._assertPathStarted()}}_pageSettingsToNative(e){var n={};if(e){var i=wijmo_1.asEnum(e.layout,PdfPageOrientation,!0);null!=i&&(n.layout=(PdfPageOrientation[i]||"").toLowerCase());var u=e.margins;u&&(n.margins={left:wijmo_1.asNumber(u.left,!1,!0),right:wijmo_1.asNumber(u.right,!1,!0),top:wijmo_1.asNumber(u.top,!1,!0),bottom:wijmo_1.asNumber(u.bottom,!1,!0)});var d=e.size;if(null!=d)if(d instanceof wijmo_1.Size)n.size=[wijmo_1.asNumber(d.width,!1,!0),wijmo_1.asNumber(d.height,!1,!0)];else{d=wijmo_1.asEnum(d,PdfPageSize);n.size=(PdfPageSize[d]||"").toUpperCase()}}return n}_processHeadersFooters(){var e=this.header,n=this.footer;if(e.height>0||n.height>0){var i=this._doc;wijmo_1.assert(i.options.bufferPages,exports._Errors.BufferPagesMustBeEnabled);for(var u=i.bufferedPageRange(),d=u.start;d<u.count;d++){var p={Page:d+1,Pages:u.count};this.pageIndex=d;this._renderHeaderFooter(e,p,!0);this._renderHeaderFooter(n,p,!1)}}}_renderHeaderFooter(e,n,i){if(e.height>0&&e.declarative&&e.declarative.text){var u=_formatMacros(e.declarative.text,n).split("\t");u.length>0&&u[0]&&this._renderHeaderFooterPart(e,u[0],PdfTextHorizontalAlign.Left,i);u.length>1&&u[1]&&this._renderHeaderFooterPart(e,u[1],PdfTextHorizontalAlign.Center,i);u.length>2&&u[2]&&this._renderHeaderFooterPart(e,u[2],PdfTextHorizontalAlign.Right,i)}}_renderHeaderFooterPart(e,n,i,u){var d={font:e.declarative.font,brush:e.declarative.brush,width:e.width,height:e.height,align:i};this._tagged&&this.beginArtifact({type:PdfArtifactType.Pagination,attached:[u?PdfPageEdge.Top:PdfPageEdge.Bottom]});if(u)this.header.drawText(n,0,0,d);else{d.includeLastLineExternalLeading=!1;var p=this.footer.measureText(n,d.font,d);this.footer.drawText(n,0,this.footer.height-p.size.height,d)}this._tagged&&this.endArtifact()}_setCurBrush(e){if(!this._currentGS[this.pageIndex].brush.equals(e)){this._setNativeDocBrush(e,!1);this._currentGS[this.pageIndex].brush=e.clone()}}_setCurFont(e){if(!this._curFont.equals(e)){var n=this._fontReg.findFont(e.family,e.style,e.weight);this._doc.font(n,e.size||PdfFont._DEF_FONT.size);this._curFont=e.clone()}}_setCurPen(e){var n=this._doc,i=this._currentGS[this.pageIndex].pen;!e.brush||i.brush&&i.brush.equals(e.brush)?(i.brush&&!e.brush||!i.brush&&!i.color.equals(e.color))&&n.strokeColor([e.color.r,e.color.g,e.color.b],e.color.a):this._setNativeDocBrush(e.brush,!0);i.width!==e.width&&n.lineWidth(e.width);i.miterLimit!==e.miterLimit&&n.miterLimit(e.miterLimit);i.cap!==e.cap&&n.lineCap(e.cap);i.join!==e.join&&n.lineJoin(e.join);i.dashPattern.equals(e.dashPattern)||(null!=e.dashPattern.dash?n.dash(e.dashPattern.dash,{space:e.dashPattern.gap,phase:e.dashPattern.phase}):null!=i.dashPattern.dash&&n.undash());this._currentGS[this.pageIndex].pen=e.clone()}_setNativeDocBrush(e,n){var i=this._doc,u=e._getBrushObject(this),d=1;if(u instanceof wijmo_1.Color){d=u.a;u=[u.r,u.g,u.b]}else e instanceof PdfGradientBrush&&(d=e.opacity);n?i.strokeColor(u,d):i.fillColor(u,d)}_resetAreasOffset(e){e.page.margins.top=e.page.originalMargins.top+this.header.height;e.y=e.page.margins.top;e.page.margins.bottom=e.page.originalMargins.bottom+this.footer.height;this._header._initialize(this,e.page.margins.left,e.page.originalMargins.top);this._initialize(this,e.page.margins.left,e.page.margins.top);this._footer._initialize(this,e.page.margins.left,e.page.height-e.page.margins.bottom)}}exports.PdfDocument=PdfDocument;class PdfPaths{constructor(e,n){this._pathBuffer=[];this._doc=e;this._ndoc=e._document;this._offset=n}moveTo(e,n){this._pathBuffer.push({func:this._ndoc.moveTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y]});return this}lineTo(e,n){this._pathBuffer.push({func:this._ndoc.lineTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y]});return this}quadraticCurveTo(e,n,i,u){this._pathBuffer.push({func:this._ndoc.quadraticCurveTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i)+this._offset.x,wijmo_1.asNumber(u)+this._offset.y]});return this}bezierCurveTo(e,n,i,u,d,p){this._pathBuffer.push({func:this._ndoc.bezierCurveTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i)+this._offset.x,wijmo_1.asNumber(u)+this._offset.y,wijmo_1.asNumber(d)+this._offset.x,wijmo_1.asNumber(p)+this._offset.y]});return this}svgPath(e){if(e){var n=_PdfSvgPathHelper.offset(wijmo_1.asString(e),this._offset);this._pathBuffer.push({func:this._ndoc.path,params:[wijmo_1.asString(n)]})}return this}closePath(){this._writePathBuffer();this._ndoc.closePath();return this}rect(e,n,i,u){this._pathBuffer.push({func:this._ndoc.rect,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0),wijmo_1.asNumber(u,!1,!0)]});return this}roundedRect(e,n,i,u,d=0){this._pathBuffer.push({func:this._ndoc.roundedRect,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0),wijmo_1.asNumber(u,!1,!0),wijmo_1.asNumber(d,!1,!0)]});return this}ellipse(e,n,i,u=i){this._pathBuffer.push({func:this._ndoc.ellipse,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0),wijmo_1.asNumber(u,!1,!0)]});return this}circle(e,n,i){this._pathBuffer.push({func:this._ndoc.circle,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0)]});return this}polygon(e){if(e)for(var n=0;n<e.length;n++){var i=e[n];i[0]=i[0]+this._offset.x;i[1]=i[1]+this._offset.y}this._pathBuffer.push({func:this._ndoc.polygon,params:e});return this}clip(e=PdfFillRule.NonZero){this._writePathBuffer();this._ndoc.clip(e===PdfFillRule.EvenOdd?"even-odd":"non-zero");return this}fill(e,n){this._doc._toggleBrush(_asPdfBrush(e));this._writePathBuffer();this._ndoc.fill(n===PdfFillRule.EvenOdd?"even-odd":"non-zero");return this}fillAndStroke(e,n,i){this._doc._toggleBrush(_asPdfBrush(e));this._doc._togglePen(_asPdfPen(n));this._writePathBuffer();this._ndoc.fillAndStroke(i===PdfFillRule.EvenOdd?"even-odd":"non-zero");return this}stroke(e){this._doc._togglePen(_asPdfPen(e));this._writePathBuffer();this._ndoc.stroke();return this}_hasPathBuffer(){return this._pathBuffer.length>0}_writePathBuffer(){for(var e=this._ndoc,n=this._pathBuffer,i=0,u=n.length;i<u;i++){var d=n[i];d.func.apply(e,d.params)}this._pathBuffer=[]}}exports.PdfPaths=PdfPaths;function _compressSpaces(e){e&&(e=e.trim().replace(/\s+/gm," "));return e}exports._compressSpaces=_compressSpaces;function _resolveUrlIfRelative(e,n){e&&n&&!/(^[a-z][a-z0-9]*:)?\/\//i.test(e)&&(e=n(e));return e}exports._resolveUrlIfRelative=_resolveUrlIfRelative;class _SvgCssRule{constructor(e,n){this.selector=e;this.declarations={};this._fillDeclarations(n)}_fillDeclarations(e){e&&e.split(";").forEach(e=>{if(e){var n=e.split(":");if(2===n.length){var i=n[0].trim().toLowerCase(),u=n[1].trim();if(i&&u){var d=/!important$/i.test(u);d&&(u=u.replace(/!important$/i,"").trim());if(u)if("font"===i){let e=this._parseFont(u);if(e){this.declarations["font-family"]={value:e.family,important:d};this.declarations["font-size"]={value:e.size,important:d};this.declarations["font-style"]={value:e.style,important:d};this.declarations["font-weight"]={value:e.weight,important:d}}}else this.declarations[i]={value:u,important:d}}}}})}_parseFont(e){if(_SvgCssRule.FontSystemVals.indexOf(e)>=0)return null;let n={},i=(e=>{let n=[],i=null,u="";for(let d of e)if(i||" "!==d&&"\t"!==d&&"\n"!==d){(i||";"!==d)&&(u+=d);i===d?i=null:'"'!==d&&"'"!==d||(i=d)}else{u&&n.push(u);u=""}u&&n.push(u);return n})(e);for(let e,u=!1;!u&&(e=i.shift());)if(!n.style&&_SvgCssRule.FontStyleVals.indexOf(e)>=0)n.style=e;else if(!n.weight&&_SvgCssRule.FontWeightVals.indexOf(e)>=0)n.weight=e;else if(u=_SvgCssRule.FontSizeVals.indexOf(e)>=0||/^\d+(%|[a-z])/.test(e)){let i=e.indexOf("/");n.size=e.substring(0,i>0?i:e.length)}i.length&&(_SvgCssRule.FontStretchVals.indexOf(i[0])>=0||/^\d+%/.test(i[0]))&&i.shift();i.length&&(n.family=i.join(" "));return n.size&&n.family?n:null}}_SvgCssRule.FontSystemVals=["caption","icon","menu","message-box","small-caption","status-bar"];_SvgCssRule.FontStyleVals=["normal","italic","oblique"];_SvgCssRule.FontWeightVals=["normal","bold","lighter","bolder","100","200","300","400","500","600","700","800","900"];_SvgCssRule.FontSizeVals=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];_SvgCssRule.FontStretchVals=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"];exports._SvgCssRule=_SvgCssRule;class _SvgCssHelper{static matchesSelector(e,n){var i=!1;try{i=(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,n)}catch(e){}return i}static getSpecificity(e){var n=0,i=0,u=0,match=n=>{var i=(e.match(n)||[]).length;i&&(e=e.replace(n,""));return i};e=e.replace(/:not\(([^\)]*)\)/g,(e,n)=>" "+n+" ");i+=match(/(\[[^\]]+\])/g);n+=match(/(#[^\s\+>~\.\[:]+)/g);i+=match(/(\.[^\s\+>~\.\[:]+)/g);u+=match(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi);i+=match(/(:[\w-]+\([^\)]*\))/gi);i+=match(/(:[^\s\+>~\.\[:]+)/g);e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ");return n<<16|i<<8|(u+=match(/([^\s\+>~\.\[:]+)/g))}static getComputedStyle(e,n){var i={},u=[];if(e.className){u=[];for(var d=0,p=Object.keys(n);d<p.length;d++){var _=p[d];this.matchesSelector(e,_)&&u.push(n[_])}}u.sort((e,n)=>this.getSpecificity(e.selector)-this.getSpecificity(n.selector));var y=e.getAttribute("style");y&&u.push(new _SvgCssRule("_inline_",_compressSpaces(y)));for(d=0;d<u.length;d++){var b=u[d],w=0;for(p=Object.keys(b.declarations);w<p.length;w++){var x=p[w],P=b.declarations[x];null!=i[x]&&!P.important&&i[x].important||(i[x]=P)}}var E={};for(d=0,p=Object.keys(i);d<p.length;d++){E[x=p[d]]=i[x].value}return E}static registerFontFace(e,n,i){var u=n.declarations;u["font-family"]&&u.src&&u.src.value.split(",").every(n=>{if(n.match(/format\(\s*['"]?truetype['"]?\s*\)/i)){var d=n.match(/url\(\s*['"]?([^'"\)]+)['"]?\s*\)/i);if(d){var p=d[1].trim(),_=!1;if(p=_resolveUrlIfRelative(p,i)){var y={name:u["font-family"].value,source:p,weight:u["font-weight"]?u["font-weight"].value.toLowerCase():"normal",style:u["font-style"]?u["font-style"].value.toLowerCase():"normal"};try{e.registerFont(y);_=!0}catch(e){}}return!_}}return!0})}}exports._SvgCssHelper=_SvgCssHelper;class _SvgRenderer{constructor(e,n,i,u,d){this._elementsById={};this._registeredCssRules={};wijmo_1.assert(null!=n,exports._Errors.ValueCannotBeEmpty("svgString"));this._doc=n.document;var p=this._parse(e);if(p){this._svg=new _SvgSvgElementImpl({area:n,urlResolver:d,getElement:this._getElementById.bind(this),registerCssRule:e=>{this._registerCssRule(e,d)}},null);this._copyAttributes(p,this._svg);this._buildTree(p,this._svg);this._svg.viewport=new wijmo_1.Size(null!=i?i:n.width,null!=u?u:n.height)}}get root(){return this._svg}dump(){this._svg&&this._svg.dump()}render(e){this._svg&&this._svg.render(e||this._svg.viewport)}_parse(e){if(e){var n=new DOMParser;n.async=!1;return n.parseFromString(e,"text/xml").getElementsByTagName("svg")[0]}}_buildTree(e,n,i){for(let d=0;e.childNodes&&d<e.childNodes.length;d++){let p=e.childNodes.item(d),_=p.nodeName;if(1===p.nodeType){var u=this._getClassName(_);if(selfModule[u]){let e=new selfModule[u](n.ctx,p);this._copyAttributes(p,e);if(n.appendNode(e)){let n;(n=p.getAttribute("id"))&&(this._elementsById[n]=e);this._buildTree(p,e,"text"===_||"tspan"===_||i)}}}else if(i&&3===p.nodeType){let e=p.textContent.trim(),i=_compressSpaces(e);p.textContent.match(/\s$/)&&(i+=" ");e?n instanceof _SvgTextElementImpl||n.children.length||p.nextSibling?n.appendNode(new _SvgTspanElementImpl(n.ctx,null,i)):n._text=i:i&&p.previousSibling&&p.nextSibling&&n.appendNode(new _SvgTspanElementImpl(n.ctx,null," "))}}}_getClassName(e){return"_Svg"+e.charAt(0).toUpperCase()+e.substring(1)+"ElementImpl"}_copyAttributes(e,n){for(var i=0;i<e.attributes.length;i++){var u=e.attributes.item(i);n.attr(u.name,u.value)}for(var d=_SvgCssHelper.getComputedStyle(e,this._registeredCssRules),p=(i=0,Object.keys(d));i<p.length;i++){var _=p[i];n.attr(_,d[_])}}_getElementById(e){e=(e||"").replace("#","");return this._elementsById[e]}_registerCssRule(e,n){"@"!==e.selector[0]?this._registeredCssRules[e.selector]=e:"@font-face"===e.selector&&_SvgCssHelper.registerFontFace(this._doc,e,n)}}exports._SvgRenderer=_SvgRenderer;class PdfLinearGradientBrush extends PdfGradientBrush{constructor(e,n,i,u,d,p){super(d,p);this.x1=e;this.y1=n;this.x2=i;this.y2=u}get x1(){return this._x1}set x1(e){this._x1=wijmo_1.asNumber(e,!1,!0)}get y1(){return this._y1}set y1(e){this._y1=wijmo_1.asNumber(e,!1,!0)}get x2(){return this._x2}set x2(e){this._x2=wijmo_1.asNumber(e,!1,!0)}get y2(){return this._y2}set y2(e){this._y2=wijmo_1.asNumber(e,!1,!0)}clone(){return new PdfLinearGradientBrush(this._x1,this._y1,this._x2,this._y2,this.stops,this.opacity)}equals(e){return e instanceof PdfLinearGradientBrush&&this._x1===e._x1&&this._y1===e._y1&&this._x2===e._x2&&this._y2===e._y2&&super.equals(e)}_getBrushObject(e){for(var n=e.document._document.linearGradient(this._x1+e._offset.x,this._y1+e._offset.y,this._x2+e._offset.x,this._y2+e._offset.y),i=this.stops,u=0;u<i.length;u++){var d=i[u];d&&n.stop(d.offset,[d.color.r,d.color.g,d.color.b],d.color.a)}return n}}exports.PdfLinearGradientBrush=PdfLinearGradientBrush;wijmo_1._registerModule("wijmo.pdf",selfModule);!function(e){e[e.Render=0]="Render";e[e.Ignore=1]="Ignore";e[e.Clip=2]="Clip"}(_SvgRenderMode=exports._SvgRenderMode||(exports._SvgRenderMode={}));class _SvgElementBase{constructor(e,n,i=_SvgRenderMode.Render){this._children=[];this._attributes={};this._defRenderMode=i;this._ctx=e}get children(){return this._children}get ctx(){return this._ctx}get parent(){return this._parent}set parent(e){this._parent=e}get style(){this._style||(this._style=new _SvgStyleAttributes(this));return this._style}get viewport(){return this._viewport}set viewport(e){this._viewport=e.clone()}attr(e,n){e=e.toLowerCase();arguments.length>1&&(this._attributes[e]=n);return this._attributes[e]}appendNode(e){if(!e||e===this||e.parent===this)return!1;e.remove();this.children.push(e);e.parent=this;return!0}clearAttr(e){delete this._attributes[e.toLowerCase()]}copyAttributesFrom(e,n){if(e){var i=e._attributes,u=this._attributes;for(var d in i)i.hasOwnProperty(d)&&null==u[d]&&(!n||n.indexOf(d)<0)&&(u[d]=i[d])}}clone(){var e=new(Function.prototype.bind.call(this.constructor,null,this.ctx,null));e.copyAttributesFrom(this);this._children.forEach(n=>{e.appendNode(n.clone())});return e}remove(){var e=this.parent;if(e){for(var n=0;n<e.children.length;n++)if(e.children[n]===this){e.children.splice(n,1);break}this.parent=null}}render(e,n){this._viewport=e.clone();(this._curRenderMode=n||this._defRenderMode)!==_SvgRenderMode.Ignore&&this._render()}get renderMode(){return this._curRenderMode}_render(){this._renderContent()}_renderContent(){for(var e=0;e<this._children.length;e++)this._children[e].render(this.viewport,this.renderMode)}dump(e=0){console.log(this._dumpInfo(e));for(let n=0;n<this.children.length;n++)this.children[n].dump(e+1)}_dumpInfo(e){let n=Array(e+1).join(" "),i=this._attributes;return`${n}${this._moniker()} [${Object.getOwnPropertyNames(i).reduce((e,n)=>`${e}${n}:${i[n]}; `,"").trim()}]`}_moniker(){let e=this.constructor;return(e.name?e.name:e.toString().match(/function (\S+)\(/)[1]).match(/_Svg(\S+)ElementImpl/)[1]}}exports._SvgElementBase=_SvgElementBase;class _SvgClippableElementBase extends _SvgElementBase{constructor(e,n,i=_SvgRenderMode.Render){super(e,n,i);this._clipPath=new _SvgIdRefAttr(this,"clip-path")}_render(){var e,n=this.ctx.area;if(this._clipPath.val){var i=this.ctx.getElement(this._clipPath.val);if(e=!!(i&&i instanceof _SvgClipPathElementImpl)){n.document.saveState();i.render(this.viewport,_SvgRenderMode.Clip);n.paths.clip(this.style.clipRule.val)}}super._render();e&&n.document.restoreState()}}exports._SvgClippableElementBase=_SvgClippableElementBase;class _SvgTransformableElementBase extends _SvgClippableElementBase{constructor(e,n){super(e,n);this._transform=new _SvgTransformAttr(this)}_render(){var e=this._transform.hasVal&&this.renderMode!==_SvgRenderMode.Clip;if(e){this.ctx.area.document.saveState();this._transform.apply(this)}super._render();e&&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(){wijmo_1.assert(!1,exports._Errors.AbstractMethod)}}exports._SvgShapeElementBase=_SvgShapeElementBase;class _SvgCircleElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgNumAttr(this,"r",0).val;if(e>0){var n=new _SvgNumAttr(this,"cx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,i=new _SvgNumAttr(this,"cy",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.circle(n,i,e)}}}exports._SvgCircleElementImpl=_SvgCircleElementImpl;class _SvgEllipseElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgNumAttr(this,"rx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"ry",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;if(e>0&&n>0){var i=new _SvgNumAttr(this,"cx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,u=new _SvgNumAttr(this,"cy",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.ellipse(i,u,e,n)}}}exports._SvgEllipseElementImpl=_SvgEllipseElementImpl;class _SvgLineElementImpl extends _SvgShapeElementBase{constructor(e,n){super(e,n);this._fill=!1}_draw(){var e=new _SvgNumAttr(this,"x1",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"y1",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,i=new _SvgNumAttr(this,"x2",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,u=new _SvgNumAttr(this,"y2",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.moveTo(e,n).lineTo(i,u)}}exports._SvgLineElementImpl=_SvgLineElementImpl;class _SvgPathElementImpl extends _SvgShapeElementBase{constructor(e,n){super(e,n);this._d=new _SvgStrAttr(this,"d")}_renderContent(){var e=this.ctx.area;if(this.renderMode===_SvgRenderMode.Clip){if(this._d.hasVal){var n=_PdfSvgPathHelper.scale(this._d.val,.75);this.attr("d",n);this._d.reset()}super._renderContent()}else{e.document.saveState();e.scale(.75);super._renderContent();e.document.restoreState()}}_draw(){this._d.hasVal&&this.ctx.area.paths.svgPath(this._d.val)}}exports._SvgPathElementImpl=_SvgPathElementImpl;class _SvgPolylineElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgPointsArrayAttr(this,"points");if(e.hasVal){var n=e.val,i=this.ctx.area;if(n.length>1){for(var u=0;u<n.length;u++)0==u?i.paths.moveTo(n[u].x,n[u].y):i.paths.lineTo(n[u].x,n[u].y);return!0}}return!1}}exports._SvgPolylineElementImpl=_SvgPolylineElementImpl;class _SvgPolygonElementImpl extends _SvgPolylineElementImpl{_draw(){if(super._draw()){this.ctx.area.paths.closePath();return!0}return!1}}exports._SvgPolygonElementImpl=_SvgPolygonElementImpl;class _SvgRectElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgNumAttr(this,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;if(e>0&&n>0){var i=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,u=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,d=Math.max(new _SvgNumAttr(this,"rx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,0),p=Math.max(new _SvgNumAttr(this,"ry",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,0),_=this.ctx.area.paths;if(d||p){d=Math.min(d||p,e/2);p=Math.min(p||d,n/2);_.moveTo(i+d,u);_.lineTo(i+e-d,u);_.quadraticCurveTo(i+e,u,i+e,u+p);_.lineTo(i+e,u+n-p);_.quadraticCurveTo(i+e,u+n,i+e-d,u+n);_.lineTo(i+d,u+n);_.quadraticCurveTo(i,u+n,i,u+n-p);_.lineTo(i,u+p);_.quadraticCurveTo(i,u,i+d,u)}else _.rect(i,u,e,n)}}}exports._SvgRectElementImpl=_SvgRectElementImpl;class _SvgClipPathElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore)}}exports._SvgClipPathElementImpl=_SvgClipPathElementImpl;class _SvgDefsElementImpl extends _SvgClippableElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore)}}exports._SvgDefsElementImpl=_SvgDefsElementImpl;class _SvgGElementImpl extends _SvgTransformableElementBase{}exports._SvgGElementImpl=_SvgGElementImpl;class _SvgLinearGradientElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_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(e){for(var n=new wijmo_1.Rect(new _SvgNumAttr(e,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,new _SvgNumAttr(e,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,new _SvgNumAttr(e,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,new _SvgNumAttr(e,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val),i="objectBoundingBox"===this._gradientUnits.val?new wijmo_1.Size(n.width,n.height):e.viewport.clone(),u=_SvgNumAttr.parseValue(this._x1.val,_SvgAttrType.Number,i,_SvgLengthContext.Width,_SvgNumConversion.Default),d=_SvgNumAttr.parseValue(this._x2.val,_SvgAttrType.Number,i,_SvgLengthContext.Width,_SvgNumConversion.Default),p=_SvgNumAttr.parseValue(this._y1.val,_SvgAttrType.Number,i,_SvgLengthContext.Height,_SvgNumConversion.Default),_=_SvgNumAttr.parseValue(this._y2.val,_SvgAttrType.Number,i,_SvgLengthContext.Height,_SvgNumConversion.Default),y=[],b=0;b<this.children.length;b++)if(this.children[b]instanceof _SvgStopElementImpl){var w=this.children[b];y.push(new PdfGradientStop(_SvgNumAttr.parseValue(w.offset.val,_SvgAttrType.Number,i,_SvgLengthContext.Other,_SvgNumConversion.Default),w.color.val,w.opacity.val))}return new PdfLinearGradientBrush(n.left+u,n.top+p,n.left+d,n.top+_,y)}}exports._SvgLinearGradientElementImpl=_SvgLinearGradientElementImpl;class _SvgStopElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_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(e,n){super(e,n);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 e=this._width.val,n=this._height.val;if(e>0&&n>0&&this._href.hasVal){var i=_resolveUrlIfRelative(this._href.val,this.ctx.urlResolver);if(i){this.ctx.area.document.saveState();(this._x.val||this._y.val)&&this.ctx.area.translate(this._x.val,this._y.val);this.viewport=new wijmo_1.Size(e,n);try{this._href.val.match(/\.svg$/i)?this._renderSvgImage(i):this._renderRasterImage(i)}catch(e){}this.ctx.area.document.restoreState()}}}_renderSvgImage(e){var n,i=_XhrHelper.text(e,e=>n=e.statusText);if(n)throw n;var u=new _SvgRenderer(i,this.ctx.area),d=u.root;this.attr("viewBox",d.attr("viewBox"));d.clearAttr("viewBox");d.clearAttr("x");d.clearAttr("y");d.clearAttr("width");d.clearAttr("height");d.clearAttr("preserveAspectRatio");d.clearAttr("clip");d.clearAttr("overflow");this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();var p=new _SvgScaleAttributes(this);u.render(p.apply(this))}_renderRasterImage(e){var n=this.ctx.area.openImage(_PdfImageHelper.getDataUri(e)),i=this._par.val,u=this.viewport.width,d=this.viewport.height,p={width:u,height:d,align:PdfImageHorizontalAlign.Left,vAlign:PdfImageVerticalAlign.Top};if("none"===i.align)p.stretchProportionally=!1;else{p.stretchProportionally=!0;if(i.meet){i.align.match(/^xMid/)?p.align=PdfImageHorizontalAlign.Center:i.align.match(/^xMax/)&&(p.align=PdfImageHorizontalAlign.Right);i.align.match(/YMid$/)?p.vAlign=PdfImageVerticalAlign.Center:i.align.match(/YMax$/)&&(p.vAlign=PdfImageVerticalAlign.Bottom)}else{let e=pxToPt(n.width),_=pxToPt(n.height),y=u/e,b=d/_;if(y>b){p.width=e*y;p.height=_*y}else{p.width=e*b;p.height=_*b}let w=0,x=0;i.align.match(/^xMid/)?w=-p.width/2+u/2:i.align.match(/^xMax/)&&(w=-p.width+u);i.align.match(/YMid$/)?x=-p.height/2+d/2:i.align.match(/YMax$/)&&(x=-p.height+d);this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();(w||x)&&this.ctx.area.translate(w,x)}}this.ctx.area.drawImage(n,0,0,p)}}exports._SvgImageElementImpl=_SvgImageElementImpl;class _SvgStyleElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore);if(n&&(!n.type||"text/css"===n.type)){for(var i="",u=0;u<n.childNodes.length;u++)i+=n.childNodes[u].textContent;var d=(i=(i=_compressSpaces(i)).replace(/\/\*([^*]|\*+[^*/])*\*+\//gm,"")).match(/[^{}]*{[^}]*}/g);if(d)for(u=0;u<d.length;u++){var p=d[u].match(/([^{}]*){([^}]*)}/);if(p){var _=p[1].trim().split(","),y=p[2].trim();_.length&&y&&_.forEach(e=>{(e=e.trim())&&this.ctx.registerCssRule(new _SvgCssRule(e,y))})}}}}}exports._SvgStyleElementImpl=_SvgStyleElementImpl;class _SvgSvgElementImpl extends _SvgClippableElementBase{constructor(e,n){super(e,n);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 e=this.ctx.area;e.document.saveState();var n=this._width.val,i=this._height.val,u=this._x.val,d=this._y.val;this.parent&&(u||d)&&e.translate(u,d);this.viewport=new wijmo_1.Size(n,i);"visible"!==this._overflow.val&&e.paths.rect(0,0,n,i).clip();this.viewport=this._scale.apply(this);this.viewport.width>0&&this.viewport.height>0&&super._render();e.document.restoreState()}}exports._SvgSvgElementImpl=_SvgSvgElementImpl;class _SvgSymbolElementImpl extends _SvgClippableElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore)}}exports._SvgSymbolElementImpl=_SvgSymbolElementImpl;class _SvgUseElementImpl extends _SvgElementBase{constructor(e,n){super(e,n);this._xlink=new _SvgIdRefAttr(this,"xlink:href")}_render(){var e,n;if(this._xlink.hasVal&&(e=this.ctx.getElement(this._xlink.val))){var i=new _SvgGElementImpl(this.ctx,null);i.parent=this.parent;i.copyAttributesFrom(this,["x","y","width","height","xlink:href"]);if(null!=this.attr("x")||null!=this.attr("y")){var u=wijmo_1.format("translate({x},{y})",{x:this.attr("x")||0,y:this.attr("y")||0});i.attr("transform",(n=i.attr("transform"))?n+" "+u:u)}if(e instanceof _SvgSymbolElementImpl){var d=new _SvgSvgElementImpl(this.ctx,null);d.copyAttributesFrom(e);for(var p=0;p<e.children.length;p++)d.appendNode(e.children[p].clone());i.appendNode(d);d.attr("width",this.attr("width")||"100%");d.attr("height",this.attr("height")||"100%")}else{e=e.clone();i.appendNode(e);if(e instanceof _SvgSvgElementImpl){null!=(n=this.attr("width"))&&e.attr("width",n);null!=(n=this.attr("height"))&&e.attr("height",n)}}i.render(this.viewport,this.renderMode)}}}exports._SvgUseElementImpl=_SvgUseElementImpl;class _SvgTextElementBase extends _SvgTransformableElementBase{constructor(e,n){super(e,n);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.textAnchor=new _SvgStrAttr(this,"text-anchor","start");this.textDecoration=new _SvgTextDecorationAttr(this)}appendNode(e){return e instanceof _SvgTspanElementImpl&&super.appendNode(e)}getTextFlowWidth(e=0,n){let i=0;for(let u=e;u<this.children.length;u++){let e=this.children[u];if(e.x.hasVal){n&&(n.f=!0);break}i+=e.getTextFlowWidth(n)}return i}_render(){this.renderMode===_SvgRenderMode.Render&&super._render()}}exports._SvgTextElementBase=_SvgTextElementBase;class _SvgTextElementImpl extends _SvgTextElementBase{constructor(e,n){super(e,n)}_renderContent(){this._prepareNodes();let e=this.x.val+this.dx.val,n=this.y.val+this.dy.val,i=this.textAnchor.val,u=[];if(this.x.hasVal&&("middle"===i||"end"===i)){var d=this.getTextFlowWidth();e-="middle"===i?d/2:d}for(var func=(d,p,_)=>{d.x.hasVal&&(e=d.x.val);d.y.hasVal&&(n=d.y.val);i=d.textAnchor.val;if(d.x.hasVal&&("middle"===i||"end"===i)){let n={f:!1},_=d.getTextFlowWidth(0,n);for(let e=p+1;!n.f&&e<d.parent.children.length;e++)if(d.parent.children[e].x.hasVal){n.f=!0;break}if(!n.f)for(let e=d.parent,n=u.length-1;n>=0&&e;n--,e=e.parent)_+=e.getTextFlowWidth(u[n]+1);e-="middle"===i?_/2:_}e+=d.dx.val;n+=d.dy.val;if(d._text){d._cx=e;d._cy=n;d.setDecorators(_);d.render(this.viewport,this.renderMode);e+=d.getTextWidth()}else for(var y=0;y<d.children.length;y++){var b=_.slice();b.push({decoration:d.textDecoration,style:d.style});u.push(y);func(d.children[y],y,b);u.splice(u.length-1,1)}},p=0;p<this.children.length;p++){u.push(p);func(this.children[p],p,[{decoration:this.textDecoration,style:this.style}]);u.splice(u.length-1,1)}}_prepareNodes(){var removeEmptyNodes=e=>{for(var n=0;n<e.children.length;n++){var i=e.children[n];!i._text&&removeEmptyNodes(i)&&i.remove()}return 0===e.children.length},e=[],buildTextList=n=>{for(var i=0;i<n.children.length;i++){var u=n.children[i];u._text?e.push(u):buildTextList(u)}};removeEmptyNodes(this);buildTextList(this);for(var n=0;n<e.length;n++){var i=e.length;if(" "===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 _SvgTextElementBase{constructor(e,n,i){super(e,n);this._textSize=null;this._text=wijmo_1.asString(i)}clone(){var e=super.clone();e._text=this._text;return e}getTextFlowWidth(e=0,n){return this.getTextWidth()+super.getTextFlowWidth(e,n)}getTextSize(){null==this._textSize&&(this._textSize=this._text?this.ctx.area.measureText(this._text,this.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size:null);return this._textSize}getTextWidth(){let e=this.getTextSize();return null!=e?e.width:0}setDecorators(e){this._decorators=e}_dumpInfo(e){return`${super._dumpInfo(e)} ${null!=this._text?`"${this._text}"`:null}`}_renderContent(){if(this._text){var e={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();if(e.fill||e.stroke){e.fill&&(e.brush=this.style.fill.toBrush(this));e.stroke&&(e.pen=this.style.stroke.toPen(this));this.ctx.area.drawText(this._text,this._cx,this._cy,e)}}}_decorate(){var e=this.ctx.area,n=!1;this._decorators.push({decoration:this.textDecoration,style:this.style});for(var i=0;i<this._decorators.length&&!n;i++)n=null!=this._decorators[i].decoration.val;if(n){e.document.saveState();for(var u,d=e.document._document,p=this.getTextSize(),_=Math.max(d.currentFontSize()/20,.1),y=d.currentFontAscender(),b=this._cx;u=this._decorators.shift();){var w=u.decoration.val;if(w){for(var x=0;x<w.length;x++){var P=this._cy-y;switch(w[x]){case"line-through":P=P+p.height/2-_/2;break;case"overline":P-=d.currentFontBBox().ury-d.currentFontAscender();break;case"underline":P=P+p.height-1.5*_}e.paths.rect(b,P,p.width,_)}u.style.apply(this,!0,!0)}}e.document.restoreState()}}}exports._SvgTspanElementImpl=_SvgTspanElementImpl;!function(e){e[e.Default=1]="Default";e[e.None=2]="None";e[e.Px=3]="Px"}(_SvgNumConversion=exports._SvgNumConversion||(exports._SvgNumConversion={}));!function(e){e[e.Width=1]="Width";e[e.Height=2]="Height";e[e.Other=3]="Other"}(_SvgLengthContext=exports._SvgLengthContext||(exports._SvgLengthContext={}));!function(e){e[e.Number=1]="Number";e[e.String=2]="String"}(_SvgAttrType=exports._SvgAttrType||(exports._SvgAttrType={}));class _SvgAttr{constructor(e,n,i,u,d=_SvgNumConversion.Default,p=_SvgLengthContext.Other,_=!1){wijmo_1.assert(!!e,exports._Errors.ValueCannotBeEmpty("owner"));wijmo_1.assert(!!n,exports._Errors.ValueCannotBeEmpty("propName"));this._owner=e;this._propName=n;this._propType=i;this._defValue=u;this._inheritable=_;this._nc=d;this._pCtx=p;this._searchValue=!0}static parseValue(e,n,i,u,d){if(null==e)return e;if(n&_SvgAttrType.Number){var p,_;if("number"==typeof e)p=e;else{var y=e.match(/^([\+-]?[\d\.]+)(em|ex|px|pt|pc|cm|mm|in|%)?$/);if(y){p=parseFloat(y[1]);_=y[2]}}if(null!=p&&p==p){if(d!==_SvgNumConversion.Default){if(_)throw exports._Errors.InvalidFormat(e);if(d===_SvgNumConversion.None)return p}switch(_){case"mm":return 72*p/25.4;case"cm":return 72*p/2.54;case"in":return 72*p;case"pt":return p;case"pc":return 12*p;case"%":switch(u){case _SvgLengthContext.Height:p*=i.height/100;break;case _SvgLengthContext.Width:p*=i.width/100;break;case _SvgLengthContext.Other:p*=Math.sqrt(i.width*i.width+i.height*i.height)/Math.sqrt(2)/100}return p;case"px":default:return.75*p}}}if(n&_SvgAttrType.String)return e+"";throw exports._Errors.InvalidFormat(e)}get hasVal(){return null!=this._val}get val(){if(null!=this._val)return this._val;var e=wijmo_1.isFunction(this._defValue)?this._defValue.call(this,this._owner.ctx):this._defValue;return this._parse(e)}set val(e){this._searchValue=!1;this._value=e}get _val(){if(this._searchValue){this._searchValue=!1;for(var e,n=this._owner;n;n=n.parent){e=n.attr(this._propName);if(!this._inheritable||null!=e&&"inherit"!=e)break}this._value="inherit"===e?void 0:this._parse(e)}return this._value}reset(){this._value=void 0;this._searchValue=!0}_parse(e,n){return e=_SvgAttr.parseValue(e,this._propType,this._owner.viewport,this._pCtx,n||this._nc)}}exports._SvgAttr=_SvgAttr;class _SvgNumAttr extends _SvgAttr{constructor(e,n,i,u=_SvgNumConversion.Default,d=_SvgLengthContext.Other,p){super(e,n,_SvgAttrType.Number,i,u,d,p)}}exports._SvgNumAttr=_SvgNumAttr;class _SvgStrAttr extends _SvgAttr{constructor(e,n,i,u){super(e,n,_SvgAttrType.String,i,void 0,void 0,u)}}exports._SvgStrAttr=_SvgStrAttr;class _SvgColorAttr extends _SvgAttr{constructor(e,n,i,u=!0){super(e,n,_SvgAttrType.String,i,_SvgNumConversion.None,_SvgLengthContext.Other,u)}asHref(){var e=this.val.match(/url\((.+)\)/);return e?e[1]:null}_parse(e){if(""!==e&&"null"!==e&&"undefined"!==e)return super._parse(e)}}exports._SvgColorAttr=_SvgColorAttr;class _SvgDashArrayAttr extends _SvgAttr{constructor(e){super(e,"stroke-dasharray",_SvgAttrType.Number,void 0,_SvgNumConversion.Px,_SvgLengthContext.Other,!0)}_parse(e){var n,i=(e||"").trim().split(/[\s,]+/);if(i.length){n=[];try{for(var u=0;u<i.length;u++)i[u]&&n.push(super._parse(i[u]))}catch(e){return}return n.length?n:void 0}return n}}exports._SvgDashArrayAttr=_SvgDashArrayAttr;class _SvgFillRuleAttr extends _SvgAttr{constructor(e,n){super(e,n,_SvgAttrType.String,PdfFillRule.NonZero,void 0,void 0,!0)}_parse(e){if(wijmo_1.isNumber(e))return e;var n=(e||"").match(/(nonzero|evenodd)/i);return n?"nonzero"===n[1]?PdfFillRule.NonZero:PdfFillRule.EvenOdd:void 0}}exports._SvgFillRuleAttr=_SvgFillRuleAttr;class _SvgHRefAttr extends _SvgStrAttr{constructor(e,n){super(e,n)}_parse(e){var n=(e=(e||"").trim()).match(/url\((.+)\)/);n&&(e=n[1].trim());return e=e.replace(/["']/g,"")}}exports._SvgHRefAttr=_SvgHRefAttr;class _SvgIdRefAttr extends _SvgHRefAttr{_parse(e){if((e=super._parse(e))&&"#"===e[0])return e.substring(1)}}exports._SvgIdRefAttr=_SvgIdRefAttr;class _SvgPointsArrayAttr extends _SvgAttr{constructor(e,n){super(e,n,_SvgAttrType.Number,void 0,_SvgNumConversion.Px)}_parse(e){var n,i=(e||"").trim().split(/[\s,]+/),u=2*Math.floor(i.length/2);if(u){n=[];try{for(var d=0;d<u-1;d+=2)n.push(new wijmo_1.Point(super._parse(i[d]),super._parse(i[d+1])))}catch(e){return}}return n}}exports._SvgPointsArrayAttr=_SvgPointsArrayAttr;class _SvgTransformAttr extends _SvgAttr{constructor(e){super(e,"transform",_SvgAttrType.Number,void 0,_SvgNumConversion.None)}apply(e){var n=e.ctx.area;this.hasVal&&this.val.forEach(e=>{e(n)})}_parse(e){var n=[],i=(e||"").match(/((matrix|translate|scale|rotate|skewX|skewY)\([^\)]+\))+/g);if(i)for(var u=0;u<i.length;u++){var d=i[u].match(/(\w+)\(([^\)]+)\)/),p=[];try{d[2].trim().split(/[\s,]+/).forEach(e=>{e&&p.push(super._parse(e,_SvgNumConversion.None))})}catch(e){return}if(p.length)switch(d[1]){case"matrix":n.push(((e,n,i,u,d,p)=>_=>{_.transform(e,n,i,u,d,p)})(p[0],p[1],p[2],p[3],super._parse(p[4],_SvgNumConversion.Px),super._parse(p[5],_SvgNumConversion.Px)));break;case"translate":n.push(((e,n)=>i=>{i.translate(e,n)})(super._parse(p[0],_SvgNumConversion.Px),super._parse(p[1]||0,_SvgNumConversion.Px)));break;case"scale":n.push(((e,n)=>i=>{i.scale(e,n)})(p[0],p[1]));break;case"rotate":n.push(((e,n)=>i=>{i.rotate(e,n)})(p[0],new wijmo_1.Point(super._parse(p[1]||0,_SvgNumConversion.Px),super._parse(p[2]||0,_SvgNumConversion.Px))));break;case"skewX":n.push((e=>n=>{n.transform(1,0,e,1,0,0)})(Math.tan(p[0]*Math.PI/180)));break;case"skewY":n.push((e=>n=>{n.transform(1,e,0,1,0,0)})(Math.tan(p[0]*Math.PI/180)))}}return n.length?n:void 0}}exports._SvgTransformAttr=_SvgTransformAttr;class _SvgTextDecorationAttr extends _SvgAttr{constructor(e){super(e,"text-decoration",_SvgAttrType.String,void 0,_SvgNumConversion.None)}_parse(e){var n,i=(e||"").trim().toLowerCase().split(/[\s,]+/);if(i.length){n=[];for(var u=0;u<i.length;u++)/line-through|overline|underline/.test(i[u])&&n.push(i[u])}return n&&n.length?n:void 0}}exports._SvgTextDecorationAttr=_SvgTextDecorationAttr;class _SvgViewboxAttr extends _SvgAttr{constructor(e){super(e,"viewBox",_SvgAttrType.Number,void 0,_SvgNumConversion.Px)}_parse(e){var n,i=(e||"").trim().split(/[\s,]+/);4===i.length&&(n={minX:super._parse(i[0]),minY:super._parse(i[1]),width:super._parse(i[2]),height:super._parse(i[3])});return n}}exports._SvgViewboxAttr=_SvgViewboxAttr;class _SvgPreserveAspectRatioAttr extends _SvgAttr{constructor(e){super(e,"preserveAspectRatio",_SvgAttrType.Number,"xMidYMid meet")}_parse(e){var n;if("string"==typeof e){var i=e.replace(/^defer\s+/,"").trim().split(/\s+/);n={align:i[0],meet:!("slice"===i[1])}}else n=e;return n}}exports._SvgPreserveAspectRatioAttr=_SvgPreserveAspectRatioAttr;class _SvgScaleAttributes{constructor(e){this._owner=e;this.aspect=new _SvgPreserveAspectRatioAttr(this._owner);this.viewBox=new _SvgViewboxAttr(this._owner)}apply(e){var n=e.ctx.area,i=e.viewport,u=this.viewBox.val;if(i&&u){if(u.width&&u.height){var d=this.aspect.val,p=i.width/u.width,_=i.height/u.height,y=Math.min(p,_),b=Math.max(p,_),w=u.width*(d.meet?y:b),x=u.height*(d.meet?y:b);if("none"===d.align)n.scale(p,_);else{var P=d.meet?y:b,E=0,k=0;d.align.match(/^xMid/)&&P===_?E=i.width/2-w/2:d.align.match(/^xMax/)&&P===_&&(E=i.width-w);d.align.match(/YMid$/)&&P===p?k=i.height/2-x/2:d.align.match(/YMax$/)&&P===p&&(k=i.height-x);(E||k)&&n.translate(E,k);d.meet?n.scale(y,y):n.scale(b,b);(u.minX||u.minY)&&n.translate(-u.minX,-u.minY)}}return new wijmo_1.Size(u.width,u.height)}return i}}exports._SvgScaleAttributes=_SvgScaleAttributes;class _SvgStrokeAttributes{constructor(e){this._owner=e;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(e){var n=new _SafeColor(this.color.val);this.opacity.hasVal&&(n.a=this.opacity.val);var i=new PdfPen(n,this.width.val);if(this.dashArray.hasVal){var u=this.dashArray.val;u.length&&(i.dashPattern=new PdfDashPattern(u[0],u.length>1?u[1]:void 0,this.dashOffset.val))}switch(this.lineCap.val){case"butt":i.cap=PdfLineCapStyle.Butt;break;case"round":i.cap=PdfLineCapStyle.Round;break;case"square":i.cap=PdfLineCapStyle.Square}switch(this.lineJoin.val){case"miter":i.join=PdfLineJoinStyle.Miter;break;case"round":i.join=PdfLineJoinStyle.Round;break;case"bevel":i.join=PdfLineJoinStyle.Bevel}i.miterLimit=this.miterLimit.val;return i}}exports._SvgStrokeAttributes=_SvgStrokeAttributes;class _SvgFillAttributes{constructor(e){this._owner=e;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(e){let n,i=this.color.asHref();if(i&&e){var u=e.ctx.getElement(i);if(u instanceof _SvgLinearGradientElementImpl)return u.toBrush(e)}n=new _SafeColor(this.color.val);this.opacity.hasVal&&(n.a=this.opacity.val);return new PdfSolidBrush(n)}}exports._SvgFillAttributes=_SvgFillAttributes;class _SvgFontAttributes{constructor(e){this._owner=e;this.family=new _SvgStrAttr(this._owner,"font-family",e=>{var n=e.area.document._getFont();return n?n.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 e=_asPt(this.size.val);return new PdfFont(this.family.val,e,this.style.val,this.weight.val)}}exports._SvgFontAttributes=_SvgFontAttributes;class _SvgStyleAttributes{constructor(e){this._owner=e;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(e,n,i){var u=e.ctx.area;e.renderMode===_SvgRenderMode.Clip||(n&&i&&"none"!==this.fill.color.val&&"none"!==this.stroke.color.val?u.paths.fillAndStroke(this.fill.toBrush(e),this.stroke.toPen(e),this.fill.rule.val):n&&"none"!==this.fill.color.val?u.paths.fill(this.fill.toBrush(e),this.fill.rule.val):i&&"none"!==this.stroke.color.val?u.paths.stroke(this.stroke.toPen(e)):u.paths.stroke(wijmo_1.Color.fromRgba(0,0,0,0)))}}exports._SvgStyleAttributes=_SvgStyleAttributes;
|
|
14
|
+
"use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(n[i]=e[i]);n.default=e;return n};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_1=require("@mescius/wijmo"),selfModule=__importStar(require("@mescius/wijmo.pdf"));!function(e){if("object"==typeof localExports&&"undefined"!=typeof localModule)localModule.localExports=e();else if("function"==typeof localDefine&&localDefine.amd)localDefine([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PDFDocument=e()}}((function(){return function r(e,n,i){function o(d,p){if(!n[d]){if(!e[d]){var _="function"==typeof localRequire&&localRequire;if(!p&&_)return _(d,!0);if(u)return u(d,!0);var y=new Error("Cannot find module '"+d+"'");throw y.code="MODULE_NOT_FOUND",y}var b=n[d]={localExports:{}};e[d][0].call(b.localExports,(function(n){return o(e[d][1][n]||n)}),b,b.localExports,r,e,n,i)}return n[d].localExports}for(var u="function"==typeof localRequire&&localRequire,d=0;d<i.length;d++)o(i[d]);return o}({1:[function(e,n,i){(function(i){(function(){var u=e("restructure"),d=e("@babel/runtime-corejs2/core-js/object/define-property"),p=e("@babel/runtime-corejs2/core-js/object/keys"),_=e("@babel/runtime-corejs2/core-js/object/freeze"),y=e("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor"),b=e("@babel/runtime-corejs2/core-js/map"),w=e("@babel/runtime-corejs2/core-js/array/is-array"),x=e("@babel/runtime-corejs2/core-js/string/from-code-point"),P=e("@babel/runtime-corejs2/core-js/set"),E=e("@babel/runtime-corejs2/core-js/array/from"),k=e("unicode-properties"),B=e("clone"),j=e("@babel/runtime-corejs2/core-js/promise"),I={logErrors:!1},O=[];I.registerFormat=function(e){O.push(e)};I.create=function(e,n){for(var i=0;i<O.length;i++){var d=O[i];if(d.probe(e)){var p=new d(new u.DecodeStream(e));return n?p.getFont(n):p}}throw new Error("Unknown font format")};I.defaultLanguage="en";I.setDefaultLanguage=function(e){void 0===e&&(e="en");I.defaultLanguage=e};function _defineProperties(e,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1;u.configurable=!0;"value"in u&&(u.writable=!0);Object.defineProperty(e,u.key,u)}}function _createClass(e,n,i){n&&_defineProperties(e.prototype,n);i&&_defineProperties(e,i);return e}function _inheritsLoose(e,n){e.prototype=Object.create(n.prototype);e.prototype.constructor=e;_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,n){e.__proto__=n;return e})(e,n)}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,u=new Array(n);i<n;i++)u[i]=e[i];return u}function _createForOfIteratorHelperLoose(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);return"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _applyDecoratedDescriptor(e,n,i,u,d){var p={};Object.keys(u).forEach((function(e){p[e]=u[e]}));p.enumerable=!!p.enumerable;p.configurable=!!p.configurable;("value"in p||p.initializer)&&(p.writable=!0);p=i.slice().reverse().reduce((function(i,u){return u(e,n,i)||i}),p);if(d&&void 0!==p.initializer){p.value=p.initializer?p.initializer.call(d):void 0;p.initializer=void 0}if(void 0===p.initializer){Object.defineProperty(e,n,p);p=null}return p}function cache(e,n,i){if(i.get){var u=i.get;i.get=function(){var e=u.call(this);d(this,n,{value:e});return e}}else if("function"==typeof i.value){var p=i.value;return{get:function get(){var e=new b;function memoized(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var d=i.length>0?i[0]:"value";if(e.has(d))return e.get(d);var _=p.apply(this,i);e.set(d,_);return _}d(this,n,{value:memoized});return memoized}}}}var D=new u.Struct({firstCode:u.uint16,entryCount:u.uint16,idDelta:u.int16,idRangeOffset:u.uint16}),R=new u.Struct({startCharCode:u.uint32,endCharCode:u.uint32,glyphID:u.uint32}),N=new u.Struct({startUnicodeValue:u.uint24,additionalCount:u.uint8}),U=new u.Struct({unicodeValue:u.uint24,glyphID:u.uint16}),G=new u.Array(N,u.uint32),W=new u.Array(U,u.uint32),X=new u.Struct({varSelector:u.uint24,defaultUVS:new u.Pointer(u.uint32,G,{type:"parent"}),nonDefaultUVS:new u.Pointer(u.uint32,W,{type:"parent"})}),K=new u.VersionedStruct(u.uint16,{0:{length:u.uint16,language:u.uint16,codeMap:new u.LazyArray(u.uint8,256)},2:{length:u.uint16,language:u.uint16,subHeaderKeys:new u.Array(u.uint16,256),subHeaderCount:function subHeaderCount(e){return Math.max.apply(Math,e.subHeaderKeys)},subHeaders:new u.LazyArray(D,"subHeaderCount"),glyphIndexArray:new u.LazyArray(u.uint16,"subHeaderCount")},4:{length:u.uint16,language:u.uint16,segCountX2:u.uint16,segCount:function segCount(e){return e.segCountX2>>1},searchRange:u.uint16,entrySelector:u.uint16,rangeShift:u.uint16,endCode:new u.LazyArray(u.uint16,"segCount"),reservedPad:new u.Reserved(u.uint16),startCode:new u.LazyArray(u.uint16,"segCount"),idDelta:new u.LazyArray(u.int16,"segCount"),idRangeOffset:new u.LazyArray(u.uint16,"segCount"),glyphIndexArray:new u.LazyArray(u.uint16,(function(e){return(e.length-e._currentOffset)/2}))},6:{length:u.uint16,language:u.uint16,firstCode:u.uint16,entryCount:u.uint16,glyphIndices:new u.LazyArray(u.uint16,"entryCount")},8:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint16,is32:new u.LazyArray(u.uint8,8192),nGroups:u.uint32,groups:new u.LazyArray(R,"nGroups")},10:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint32,firstCode:u.uint32,entryCount:u.uint32,glyphIndices:new u.LazyArray(u.uint16,"numChars")},12:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint32,nGroups:u.uint32,groups:new u.LazyArray(R,"nGroups")},13:{reserved:new u.Reserved(u.uint16),length:u.uint32,language:u.uint32,nGroups:u.uint32,groups:new u.LazyArray(R,"nGroups")},14:{length:u.uint32,numRecords:u.uint32,varSelectors:new u.LazyArray(X,"numRecords")}}),Y=new u.Struct({platformID:u.uint16,encodingID:u.uint16,table:new u.Pointer(u.uint32,K,{type:"parent",lazy:!0})}),J=new u.Struct({version:u.uint16,numSubtables:u.uint16,tables:new u.Array(Y,"numSubtables")}),$=new u.Struct({version:u.int32,revision:u.int32,checkSumAdjustment:u.uint32,magicNumber:u.uint32,flags:u.uint16,unitsPerEm:u.uint16,created:new u.Array(u.int32,2),modified:new u.Array(u.int32,2),xMin:u.int16,yMin:u.int16,xMax:u.int16,yMax:u.int16,macStyle:new u.Bitfield(u.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:u.uint16,fontDirectionHint:u.int16,indexToLocFormat:u.int16,glyphDataFormat:u.int16}),ee=new u.Struct({version:u.int32,ascent:u.int16,descent:u.int16,lineGap:u.int16,advanceWidthMax:u.uint16,minLeftSideBearing:u.int16,minRightSideBearing:u.int16,xMaxExtent:u.int16,caretSlopeRise:u.int16,caretSlopeRun:u.int16,caretOffset:u.int16,reserved:new u.Reserved(u.int16,4),metricDataFormat:u.int16,numberOfMetrics:u.uint16}),te=new u.Struct({advance:u.uint16,bearing:u.int16}),re=new u.Struct({metrics:new u.LazyArray(te,(function(e){return e.parent.hhea.numberOfMetrics})),bearings:new u.LazyArray(u.int16,(function(e){return e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics}))}),ne=new u.Struct({version:u.int32,numGlyphs:u.uint16,maxPoints:u.uint16,maxContours:u.uint16,maxComponentPoints:u.uint16,maxComponentContours:u.uint16,maxZones:u.uint16,maxTwilightPoints:u.uint16,maxStorage:u.uint16,maxFunctionDefs:u.uint16,maxInstructionDefs:u.uint16,maxStackElements:u.uint16,maxSizeOfInstructions:u.uint16,maxComponentElements:u.uint16,maxComponentDepth:u.uint16});function getEncoding(e,n,i){void 0===i&&(i=0);return 1===e&&oe[i]?oe[i]:ie[e][n]}var ie=[["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"]],oe={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"},ae=[[],{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"}],se=new u.Struct({platformID:u.uint16,encodingID:u.uint16,languageID:u.uint16,nameID:u.uint16,length:u.uint16,string:new u.Pointer(u.uint16,new u.String("length",(function(e){return getEncoding(e.platformID,e.encodingID,e.languageID)})),{type:"parent",relativeTo:function relativeTo(e){return e.parent.stringOffset},allowNull:!1})}),le=new u.Struct({length:u.uint16,tag:new u.Pointer(u.uint16,new u.String("length","utf16be"),{type:"parent",relativeTo:function relativeTo(e){return e.stringOffset}})}),ue=new u.VersionedStruct(u.uint16,{0:{count:u.uint16,stringOffset:u.uint16,records:new u.Array(se,"count")},1:{count:u.uint16,stringOffset:u.uint16,records:new u.Array(se,"count"),langTagCount:u.uint16,langTags:new u.Array(le,"langTagCount")}}),ce=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];ue.process=function(e){for(var n,i={},u=_createForOfIteratorHelperLoose(this.records);!(n=u()).done;){var d=n.value,p=ae[d.platformID][d.languageID];null==p&&null!=this.langTags&&d.languageID>=32768&&(p=this.langTags[d.languageID-32768].tag);null==p&&(p=d.platformID+"-"+d.languageID);var _=d.nameID>=256?"fontFeatures":ce[d.nameID]||d.nameID;null==i[_]&&(i[_]={});var y=i[_];d.nameID>=256&&(y=y[d.nameID]||(y[d.nameID]={}));"string"!=typeof d.string&&"string"==typeof y[p]||(y[p]=d.string)}this.records=i};ue.preEncode=function(){if(!w(this.records)){this.version=0;var e=[];for(var n in this.records){var u=this.records[n];if("fontFeatures"!==n){e.push({platformID:3,encodingID:1,languageID:1033,nameID:ce.indexOf(n),length:i.byteLength(u.en,"utf16le"),string:u.en});"postscriptName"===n&&e.push({platformID:1,encodingID:0,languageID:0,nameID:ce.indexOf(n),length:u.en.length,string:u.en})}}this.records=e;this.count=e.length;this.stringOffset=ue.size(this,null,!1)}};var fe=new u.VersionedStruct(u.uint16,{header:{xAvgCharWidth:u.int16,usWeightClass:u.uint16,usWidthClass:u.uint16,fsType:new u.Bitfield(u.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:u.int16,ySubscriptYSize:u.int16,ySubscriptXOffset:u.int16,ySubscriptYOffset:u.int16,ySuperscriptXSize:u.int16,ySuperscriptYSize:u.int16,ySuperscriptXOffset:u.int16,ySuperscriptYOffset:u.int16,yStrikeoutSize:u.int16,yStrikeoutPosition:u.int16,sFamilyClass:u.int16,panose:new u.Array(u.uint8,10),ulCharRange:new u.Array(u.uint32,4),vendorID:new u.String(4),fsSelection:new u.Bitfield(u.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:u.uint16,usLastCharIndex:u.uint16},0:{},1:{typoAscender:u.int16,typoDescender:u.int16,typoLineGap:u.int16,winAscent:u.uint16,winDescent:u.uint16,codePageRange:new u.Array(u.uint32,2)},2:{typoAscender:u.int16,typoDescender:u.int16,typoLineGap:u.int16,winAscent:u.uint16,winDescent:u.uint16,codePageRange:new u.Array(u.uint32,2),xHeight:u.int16,capHeight:u.int16,defaultChar:u.uint16,breakChar:u.uint16,maxContent:u.uint16},5:{typoAscender:u.int16,typoDescender:u.int16,typoLineGap:u.int16,winAscent:u.uint16,winDescent:u.uint16,codePageRange:new u.Array(u.uint32,2),xHeight:u.int16,capHeight:u.int16,defaultChar:u.uint16,breakChar:u.uint16,maxContent:u.uint16,usLowerOpticalPointSize:u.uint16,usUpperOpticalPointSize:u.uint16}}),he=fe.versions;he[3]=he[4]=he[2];var de=new u.VersionedStruct(u.fixed32,{header:{italicAngle:u.fixed32,underlinePosition:u.int16,underlineThickness:u.int16,isFixedPitch:u.uint32,minMemType42:u.uint32,maxMemType42:u.uint32,minMemType1:u.uint32,maxMemType1:u.uint32},1:{},2:{numberOfGlyphs:u.uint16,glyphNameIndex:new u.Array(u.uint16,"numberOfGlyphs"),names:new u.Array(new u.String(u.uint8))},2.5:{numberOfGlyphs:u.uint16,offsets:new u.Array(u.uint8,"numberOfGlyphs")},3:{},4:{map:new u.Array(u.uint32,(function(e){return e.parent.maxp.numGlyphs}))}}),pe=new u.Struct({controlValues:new u.Array(u.int16)}),ge=new u.Struct({instructions:new u.Array(u.uint8)}),_e=new u.VersionedStruct("head.indexToLocFormat",{0:{offsets:new u.Array(u.uint16)},1:{offsets:new u.Array(u.uint32)}});_e.process=function(){if(0===this.version)for(var e=0;e<this.offsets.length;e++)this.offsets[e]<<=1};_e.preEncode=function(){if(0===this.version)for(var e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1};var me=new u.Struct({controlValueProgram:new u.Array(u.uint8)}),ve=new u.Array(new u.Buffer),ye={};ye.cmap=J;ye.head=$;ye.hhea=ee;ye.hmtx=re;ye.maxp=ne;ye.name=ue;ye["OS/2"]=fe;ye.post=de;ye.fpgm=ge;ye.loca=_e;ye.prep=me;ye["cvt "]=pe;ye.glyf=ve;var be,we=new u.Struct({tag:new u.String(4),checkSum:u.uint32,offset:new u.Pointer(u.uint32,"void",{type:"global"}),length:u.uint32}),Se=new u.Struct({tag:new u.String(4),numTables:u.uint16,searchRange:u.uint16,entrySelector:u.uint16,rangeShift:u.uint16,tables:new u.Array(we,"numTables")});Se.process=function(){for(var e,n={},i=_createForOfIteratorHelperLoose(this.tables);!(e=i()).done;){var u=e.value;n[u.tag]=u}this.tables=n};Se.preEncode=function(e){var n=[];for(var i in this.tables){var d=this.tables[i];d&&n.push({tag:i,checkSum:0,offset:new u.VoidPointer(ye[i],d),length:ye[i].size(d)})}this.tag="true";this.numTables=n.length;this.tables=n;var p=Math.floor(Math.log(this.numTables)/Math.LN2),_=Math.pow(2,p);this.searchRange=16*_;this.entrySelector=Math.log(_)/Math.LN2;this.rangeShift=16*this.numTables-this.searchRange};function binarySearch(e,n){for(var i=0,u=e.length-1;i<=u;){var d=i+u>>1,p=n(e[d]);if(p<0)u=d-1;else{if(!(p>0))return d;i=d+1}}return-1}function range(e,n){for(var i=[];e<n;)i.push(e++);return i}try{var xe=e("iconv-lite")}catch(e){}var Ce=(_applyDecoratedDescriptor((be=function(){function CmapProcessor(e){this.encoding=null;this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]);if(!this.cmap&&xe)for(var n,i=_createForOfIteratorHelperLoose(e.tables);!(n=i()).done;){var u=n.value,d=getEncoding(u.platformID,u.encodingID,u.table.language-1);if(xe.encodingExists(d)){this.cmap=u.table;this.encoding=d}}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)}var e=CmapProcessor.prototype;e.findSubtable=function findSubtable(e,n){for(var i,u=_createForOfIteratorHelperLoose(n);!(i=u()).done;)for(var d,p=i.value,_=p[0],y=p[1],b=_createForOfIteratorHelperLoose(e.tables);!(d=b()).done;){var w=d.value;if(w.platformID===_&&w.encodingID===y)return w.table}return null};e.lookup=function lookup(e,n){if(this.encoding){var i=xe.encode(x(e),this.encoding);e=0;for(var u=0;u<i.length;u++)e=e<<8|i[u]}else if(n){var d=this.getVariationSelector(e,n);if(d)return d}var p=this.cmap;switch(p.version){case 0:return p.codeMap.get(e)||0;case 4:for(var _=0,y=p.segCount-1;_<=y;){var b=_+y>>1;if(e<p.startCode.get(b))y=b-1;else{if(!(e>p.endCode.get(b))){var w=p.idRangeOffset.get(b),P=void 0;if(0===w)P=e+p.idDelta.get(b);else{var E=w/2+(e-p.startCode.get(b))-(p.segCount-b);0!==(P=p.glyphIndexArray.get(E)||0)&&(P+=p.idDelta.get(b))}return 65535&P}_=b+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return p.glyphIndices.get(e-p.firstCode)||0;case 12:case 13:for(var k=0,B=p.nGroups-1;k<=B;){var j=k+B>>1,I=p.groups.get(j);if(e<I.startCharCode)B=j-1;else{if(!(e>I.endCharCode))return 12===p.version?I.glyphID+(e-I.startCharCode):I.glyphID;k=j+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+p.version)}};e.getVariationSelector=function getVariationSelector(e,n){if(!this.uvs)return 0;var i=this.uvs.varSelectors.toArray(),u=binarySearch(i,(function(e){return n-e.varSelector})),d=i[u];-1!==u&&d.defaultUVS&&(u=binarySearch(d.defaultUVS,(function(n){return e<n.startUnicodeValue?-1:e>n.startUnicodeValue+n.additionalCount?1:0})));return-1!==u&&d.nonDefaultUVS&&-1!==(u=binarySearch(d.nonDefaultUVS,(function(n){return e-n.unicodeValue})))?d.nonDefaultUVS[u].glyphID:0};e.getCharacterSet=function getCharacterSet(){var e=this.cmap;switch(e.version){case 0:return range(0,e.codeMap.length);case 4:for(var n=[],i=e.endCode.toArray(),u=0;u<i.length;u++){var d=i[u]+1,p=e.startCode.get(u);n.push.apply(n,range(p,d))}return n;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return range(e.firstCode,e.firstCode+e.glyphIndices.length);case 12:case 13:for(var _,y=[],b=_createForOfIteratorHelperLoose(e.groups.toArray());!(_=b()).done;){var w=_.value;y.push.apply(y,range(w.startCharCode,w.endCharCode+1))}return y;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+e.version)}};e.codePointsForGlyph=function codePointsForGlyph(e){var n=this.cmap;switch(n.version){case 0:for(var i=[],u=0;u<256;u++)n.codeMap.get(u)===e&&i.push(u);return i;case 4:for(var d=[],p=0;p<n.segCount;p++)for(var _=n.endCode.get(p),y=n.startCode.get(p),b=n.idRangeOffset.get(p),w=n.idDelta.get(p),x=y;x<=_;x++){var P=0;if(0===b)P=x+w;else{var E=b/2+(x-y)-(n.segCount-p);0!==(P=n.glyphIndexArray.get(E)||0)&&(P+=w)}P===e&&d.push(x)}return d;case 12:for(var k,B=[],j=_createForOfIteratorHelperLoose(n.groups.toArray());!(k=j()).done;){var I=k.value;e>=I.glyphID&&e<=I.glyphID+(I.endCharCode-I.startCharCode)&&B.push(I.startCharCode+(e-I.glyphID))}return B;case 13:for(var O,D=[],R=_createForOfIteratorHelperLoose(n.groups.toArray());!(O=R()).done;){var N=O.value;e===N.glyphID&&D.push.apply(D,range(N.startCharCode,N.endCharCode+1))}return D;default:throw new Error("Unknown cmap format "+n.version)}};return CmapProcessor}()).prototype,"getCharacterSet",[cache],y(be.prototype,"getCharacterSet"),be.prototype),_applyDecoratedDescriptor(be.prototype,"codePointsForGlyph",[cache],y(be.prototype,"codePointsForGlyph"),be.prototype),be),Pe=function(){function UnicodeLayoutEngine(e){this.font=e}var e=UnicodeLayoutEngine.prototype;e.positionGlyphs=function positionGlyphs(e,n){for(var i=0,u=0,d=0;d<e.length;d++){if(e[d].isMark)u=d;else{i!==u&&this.positionCluster(e,n,i,u);i=u=d}}i!==u&&this.positionCluster(e,n,i,u);return n};e.positionCluster=function positionCluster(e,n,i,u){var d=e[i],p=d.cbox.copy();d.codePoints.length>1&&(p.minX+=(d.codePoints.length-1)*p.width/d.codePoints.length);for(var _=-n[i].xAdvance,y=0,b=this.font.unitsPerEm/16,w=i+1;w<=u;w++){var x=e[w],P=x.cbox,E=n[w],k=this.getCombiningClass(x.codePoints[0]);if("Not_Reordered"!==k){E.xOffset=E.yOffset=0;switch(k){case"Double_Above":case"Double_Below":E.xOffset+=p.minX-P.width/2-P.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":E.xOffset+=p.minX-P.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":E.xOffset+=p.maxX-P.width-P.minX;break;default:E.xOffset+=p.minX+(p.width-P.width)/2-P.minX}switch(k){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==k&&"Attached_Below"!==k||(p.minY+=b);E.yOffset=-p.minY-P.maxY;p.minY+=P.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==k&&"Attached_Above_Right"!==k||(p.maxY+=b);E.yOffset=p.maxY-P.minY;p.maxY+=P.height}E.xAdvance=E.yAdvance=0;E.xOffset+=_;E.yOffset+=y}else{_-=E.xAdvance;y-=E.yAdvance}}};e.getCombiningClass=function getCombiningClass(e){var n=k.getCombiningClass(e);if(3584==(-256&e))if("Not_Reordered"===n)switch(e){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===e)return"Below_Right";switch(n){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 n};return UnicodeLayoutEngine}(),Ee=function(){function BBox(e,n,i,u){void 0===e&&(e=1/0);void 0===n&&(n=1/0);void 0===i&&(i=-1/0);void 0===u&&(u=-1/0);this.minX=e;this.minY=n;this.maxX=i;this.maxY=u}var e=BBox.prototype;e.addPoint=function addPoint(e,n){if(Math.abs(e)!==1/0){e<this.minX&&(this.minX=e);e>this.maxX&&(this.maxX=e)}if(Math.abs(n)!==1/0){n<this.minY&&(this.minY=n);n>this.maxY&&(this.maxY=n)}};e.copy=function copy(){return new BBox(this.minX,this.minY,this.maxX,this.maxY)};_createClass(BBox,[{key:"width",get:function get(){return this.maxX-this.minX}},{key:"height",get:function get(){return this.maxY-this.minY}}]);return BBox}(),ke={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"};for(var Te in ke){var Ae=ke[Te];if(w(Ae))for(var Be,je=_createForOfIteratorHelperLoose(Ae);!(Be=je()).done;)Be.value}var Le={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};for(var Ie=function(){function GlyphRun(e,n,i,u,d){this.glyphs=e;this.positions=null;this.script=i;this.language=u||null;this.direction=d||function direction(e){return Le[e]?"rtl":"ltr"}(i);this.features={};if(w(n))for(var p,_=_createForOfIteratorHelperLoose(n);!(p=_()).done;){var y=p.value;this.features[y]=!0}else"object"==typeof n&&(this.features=n)}_createClass(GlyphRun,[{key:"advanceWidth",get:function get(){for(var e,n=0,i=_createForOfIteratorHelperLoose(this.positions);!(e=i()).done;){n+=e.value.xAdvance}return n}},{key:"advanceHeight",get:function get(){for(var e,n=0,i=_createForOfIteratorHelperLoose(this.positions);!(e=i()).done;){n+=e.value.yAdvance}return n}},{key:"bbox",get:function get(){for(var e=new Ee,n=0,i=0,u=0;u<this.glyphs.length;u++){var d=this.glyphs[u],p=this.positions[u],_=d.bbox;e.addPoint(_.minX+n+p.xOffset,_.minY+i+p.yOffset);e.addPoint(_.maxX+n+p.xOffset,_.maxY+i+p.yOffset);n+=p.xAdvance;i+=p.yAdvance}return e}}]);return GlyphRun}(),Oe=function GlyphPosition(e,n,i,u){void 0===e&&(e=0);void 0===n&&(n=0);void 0===i&&(i=0);void 0===u&&(u=0);this.xAdvance=e;this.yAdvance=n;this.xOffset=i;this.yOffset=u},Fe=function(){function LayoutEngine(e){this.font=e;this.unicodeLayoutEngine=null;this.kernProcessor=null}var e=LayoutEngine.prototype;e.layout=function layout(e,n,i,u,d){if("string"==typeof n){d=u;u=i;i=n;n=[]}if("string"==typeof e){null==i&&(i=function forString(e){for(var n=e.length,i=0;i<n;){var u=e.charCodeAt(i++);if(55296<=u&&u<=56319&&i<n){var d=e.charCodeAt(i);if(56320<=d&&d<=57343){i++;u=((1023&u)<<10)+(1023&d)+65536}}var p=k.getScript(u);if("Common"!==p&&"Inherited"!==p&&"Unknown"!==p)return ke[p]}return ke.Unknown}(e));var p=this.font.glyphsForString(e)}else{if(null==i){for(var _,y=[],b=_createForOfIteratorHelperLoose(e);!(_=b()).done;){var w=_.value;y.push.apply(y,w.codePoints)}i=function forCodePoints(e){for(var n=0;n<e.length;n++){var i=e[n],u=k.getScript(i);if("Common"!==u&&"Inherited"!==u&&"Unknown"!==u)return ke[u]}return ke.Unknown}(y)}p=e}var x=new Ie(p,n,i,u,d);if(0===p.length){x.positions=[];return x}this.engine&&this.engine.setup&&this.engine.setup(x);this.substitute(x);this.position(x);this.hideDefaultIgnorables(x.glyphs,x.positions);this.engine&&this.engine.cleanup&&this.engine.cleanup();return x};e.substitute=function substitute(e){this.engine&&this.engine.substitute&&this.engine.substitute(e)};e.position=function position(e){e.positions=e.glyphs.map((function(e){return new Oe(e.advanceWidth)}));var n=null;this.engine&&this.engine.position&&(n=this.engine.position(e));if(!n&&(!this.engine||this.engine.fallbackPosition)){this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new Pe(this.font));this.unicodeLayoutEngine.positionGlyphs(e.glyphs,e.positions)}};e.hideDefaultIgnorables=function hideDefaultIgnorables(e,n){for(var i=this.font.glyphForCodePoint(32),u=0;u<e.length;u++)if(this.isDefaultIgnorable(e[u].codePoints[0])){e[u]=i;n[u].xAdvance=0;n[u].yAdvance=0}};e.isDefaultIgnorable=function isDefaultIgnorable(e){var n=e>>16;if(0===n)switch(e>>8){case 0:return 173===e;case 3:return 847===e;case 6:return 1564===e;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||65279===e;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(n){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}};e.getAvailableFeatures=function getAvailableFeatures(e,n){var i=[];this.engine&&i.push.apply(i,this.engine.getAvailableFeatures(e,n));this.font.kern&&-1===i.indexOf("kern")&&i.push("kern");return i};e.stringsForGlyph=function stringsForGlyph(e){for(var n,i=new P,u=_createForOfIteratorHelperLoose(this.font._cmapProcessor.codePointsForGlyph(e));!(n=u()).done;){var d=n.value;i.add(x(d))}if(this.engine&&this.engine.stringsForGlyph)for(var p,_=_createForOfIteratorHelperLoose(this.engine.stringsForGlyph(e));!(p=_()).done;){var y=p.value;i.add(y)}return E(i)};return LayoutEngine}(),De={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Re=function(){function Path(){this.commands=[];this._bbox=null;this._cbox=null}var e=Path.prototype;e.toFunction=function toFunction(){var e=this;return function(n){e.commands.forEach((function(e){return n[e.command].apply(n,e.args)}))}};e.toSVG=function toSVG(){return this.commands.map((function(e){var n=e.args.map((function(e){return Math.round(100*e)/100}));return""+De[e.command]+n.join(" ")})).join("")};e.mapPoints=function mapPoints(e){for(var n,i=new Path,u=_createForOfIteratorHelperLoose(this.commands);!(n=u()).done;){for(var d=n.value,p=[],_=0;_<d.args.length;_+=2){var y=e(d.args[_],d.args[_+1]),b=y[0],w=y[1];p.push(b,w)}i[d.command].apply(i,p)}return i};e.transform=function transform(e,n,i,u,d,p){return this.mapPoints((function(_,y){return[_=e*_+i*y+d,y=n*_+u*y+p]}))};e.translate=function translate(e,n){return this.transform(1,0,0,1,e,n)};e.rotate=function rotate(e){var n=Math.cos(e),i=Math.sin(e);return this.transform(n,i,-i,n,0,0)};e.scale=function scale(e,n){void 0===n&&(n=e);return this.transform(e,0,0,n,0,0)};_createClass(Path,[{key:"cbox",get:function get(){if(!this._cbox){for(var e,n=new Ee,i=_createForOfIteratorHelperLoose(this.commands);!(e=i()).done;)for(var u=e.value,d=0;d<u.args.length;d+=2)n.addPoint(u.args[d],u.args[d+1]);this._cbox=_(n)}return this._cbox}},{key:"bbox",get:function get(){if(this._bbox)return this._bbox;for(var e,n=new Ee,i=0,u=0,d=function f(e){return Math.pow(1-e,3)*U[K]+3*Math.pow(1-e,2)*e*G[K]+3*(1-e)*Math.pow(e,2)*W[K]+Math.pow(e,3)*X[K]},p=_createForOfIteratorHelperLoose(this.commands);!(e=p()).done;){var y=e.value;switch(y.command){case"moveTo":case"lineTo":var b=y.args,w=b[0],x=b[1];n.addPoint(w,x);i=w;u=x;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===y.command)var P=y.args,E=P[0],k=P[1],B=i+2/3*(E-i),j=u+2/3*(k-u),I=(R=P[2])+2/3*(E-R),O=(N=P[3])+2/3*(k-N);else var D=y.args,R=(B=D[0],j=D[1],I=D[2],O=D[3],D[4]),N=D[5];n.addPoint(R,N);for(var U=[i,u],G=[B,j],W=[I,O],X=[R,N],K=0;K<=1;K++){var Y=6*U[K]-12*G[K]+6*W[K],J=-3*U[K]+9*G[K]-9*W[K]+3*X[K];y=3*G[K]-3*U[K];if(0!==J){var $=Math.pow(Y,2)-4*y*J;if(!($<0)){var ee=(-Y+Math.sqrt($))/(2*J);0<ee&&ee<1&&(0===K?n.addPoint(d(ee),n.maxY):1===K&&n.addPoint(n.maxX,d(ee)));var te=(-Y-Math.sqrt($))/(2*J);0<te&&te<1&&(0===K?n.addPoint(d(te),n.maxY):1===K&&n.addPoint(n.maxX,d(te)))}}else{if(0===Y)continue;var re=-y/Y;0<re&&re<1&&(0===K?n.addPoint(d(re),n.maxY):1===K&&n.addPoint(n.maxX,d(re)))}}i=R;u=N}}return this._bbox=_(n)}}]);return Path}(),Ne=function _loop(){var e=Me[ze];Re.prototype[e]=function(){this._bbox=this._cbox=null;for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];this.commands.push({command:e,args:i});return this}},ze=0,Me=["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"];ze<Me.length;ze++)Ne();var Ue,He,Ge=[".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"],qe=(_applyDecoratedDescriptor((Ue=function(){function Glyph(e,n,i){this.id=e;this.codePoints=n;this._font=i;this.isMark=this.codePoints.length>0&&this.codePoints.every(k.isMark);this.isLigature=this.codePoints.length>1}var e=Glyph.prototype;e._getPath=function _getPath(){return new Re};e._getCBox=function _getCBox(){return this.path.cbox};e._getBBox=function _getBBox(){return this.path.bbox};e._getTableMetrics=function _getTableMetrics(e){if(this.id<e.metrics.length)return e.metrics.get(this.id);var n=e.metrics.get(e.metrics.length-1);return{advance:n?n.advance:0,bearing:e.bearings.get(this.id-e.metrics.length)||0}};e._getMetrics=function _getMetrics(e){if(this._metrics)return this._metrics;var n=this._getTableMetrics(this._font.hmtx),i=n.advance,u=n.bearing;if(this._font.vmtx)var d=this._getTableMetrics(this._font.vmtx),p=d.advance,_=d.bearing;else{var y;null==e&&(e=this.cbox);if((y=this._font["OS/2"])&&y.version>0)p=Math.abs(y.typoAscender-y.typoDescender),_=y.typoAscender-e.maxY;else{var b=this._font.hhea;p=Math.abs(b.ascent-b.descent),_=b.ascent-e.maxY}}this._font._variationProcessor&&this._font.HVAR&&(i+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR));return this._metrics={advanceWidth:i,advanceHeight:p,leftBearing:u,topBearing:_}};e.getScaledPath=function getScaledPath(e){var n=1/this._font.unitsPerEm*e;return this.path.scale(n)};e._getName=function _getName(){var e=this._font.post;if(!e)return null;switch(e.version){case 1:return Ge[this.id];case 2:var n=e.glyphNameIndex[this.id];return n<Ge.length?Ge[n]:e.names[n-Ge.length];case 2.5:return Ge[this.id+e.offsets[this.id]];case 4:return String.fromCharCode(e.map[this.id])}};e.render=function render(e,n){e.save();var i=1/this._font.head.unitsPerEm*n;e.scale(i,i);this.path.toFunction()(e);e.fill();e.restore()};_createClass(Glyph,[{key:"cbox",get:function get(){return this._getCBox()}},{key:"bbox",get:function get(){return this._getBBox()}},{key:"path",get:function get(){return this._getPath()}},{key:"advanceWidth",get:function get(){return this._getMetrics().advanceWidth}},{key:"advanceHeight",get:function get(){return this._getMetrics().advanceHeight}},{key:"ligatureCaretPositions",get:function get(){}},{key:"name",get:function get(){return this._getName()}}]);return Glyph}()).prototype,"cbox",[cache],y(Ue.prototype,"cbox"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"bbox",[cache],y(Ue.prototype,"bbox"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"path",[cache],y(Ue.prototype,"path"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"advanceWidth",[cache],y(Ue.prototype,"advanceWidth"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"advanceHeight",[cache],y(Ue.prototype,"advanceHeight"),Ue.prototype),_applyDecoratedDescriptor(Ue.prototype,"name",[cache],y(Ue.prototype,"name"),Ue.prototype),Ue),We=new u.Struct({numberOfContours:u.int16,xMin:u.int16,yMin:u.int16,xMax:u.int16,yMax:u.int16}),Ve=function(){function Point(e,n,i,u){void 0===i&&(i=0);void 0===u&&(u=0);this.onCurve=e;this.endContour=n;this.x=i;this.y=u}Point.prototype.copy=function copy(){return new Point(this.onCurve,this.endContour,this.x,this.y)};return Point}(),Ze=function Component(e,n,i){this.glyphID=e;this.dx=n;this.dy=i;this.pos=0;this.scaleX=this.scaleY=1;this.scale01=this.scale10=0},Xe=function(e){_inheritsLoose(TTFGlyph,e);function TTFGlyph(n,i,u){return e.apply(this,arguments)||this}var n=TTFGlyph.prototype;n._getCBox=function _getCBox(e){if(this._font._variationProcessor&&!e)return this.path.cbox;var n=this._font._getTableStream("glyf");n.pos+=this._font.loca.offsets[this.id];var i=We.decode(n),u=new Ee(i.xMin,i.yMin,i.xMax,i.yMax);return _(u)};n._parseGlyphCoord=function _parseGlyphCoord(e,n,i,u){if(i){var d=e.readUInt8();u||(d=-d);d+=n}else if(u)d=n;else d=n+e.readInt16BE();return d};n._decode=function _decode(){var e=this._font.loca.offsets[this.id];if(e===this._font.loca.offsets[this.id+1])return null;var n=this._font._getTableStream("glyf");n.pos+=e;var i=n.pos,u=We.decode(n);u.numberOfContours>0?this._decodeSimple(u,n):u.numberOfContours<0&&this._decodeComposite(u,n,i);return u};n._decodeSimple=function _decodeSimple(e,n){e.points=[];var i=new u.Array(u.uint16,e.numberOfContours).decode(n);e.instructions=new u.Array(u.uint8,u.uint16).decode(n);for(var d=[],p=i[i.length-1]+1;d.length<p;){var _=n.readUInt8();d.push(_);if(8&_)for(var y=n.readUInt8(),b=0;b<y;b++)d.push(_)}for(var w=0;w<d.length;w++){_=d[w];var x=new Ve(!!(1&_),i.indexOf(w)>=0,0,0);e.points.push(x)}var P=0;for(w=0;w<d.length;w++){_=d[w];e.points[w].x=P=this._parseGlyphCoord(n,P,2&_,16&_)}var E=0;for(w=0;w<d.length;w++){_=d[w];e.points[w].y=E=this._parseGlyphCoord(n,E,4&_,32&_)}if(this._font._variationProcessor){var k=e.points.slice();k.push.apply(k,this._getPhantomPoints(e));this._font._variationProcessor.transformPoints(this.id,k);e.phantomPoints=k.slice(-4)}};n._decodeComposite=function _decodeComposite(e,n,i){void 0===i&&(i=0);e.components=[];for(var u=!1,d=32;32&d;){d=n.readUInt16BE();var p=n.pos-i,_=n.readUInt16BE();u||(u=0!=(256&d));if(1&d)var y=n.readInt16BE(),b=n.readInt16BE();else y=n.readInt8(),b=n.readInt8();(P=new Ze(_,y,b)).pos=p;if(8&d)P.scaleX=P.scaleY=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;else if(64&d){P.scaleX=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scaleY=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824}else if(128&d){P.scaleX=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scale01=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scale10=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824;P.scaleY=(n.readUInt8()<<24|n.readUInt8()<<16)/1073741824}e.components.push(P)}if(this._font._variationProcessor){for(var w=[],x=0;x<e.components.length;x++){var P=e.components[x];w.push(new Ve(!0,!0,P.dx,P.dy))}w.push.apply(w,this._getPhantomPoints(e));this._font._variationProcessor.transformPoints(this.id,w);e.phantomPoints=w.splice(-4,4);for(var E=0;E<w.length;E++){var k=w[E];e.components[E].dx=k.x;e.components[E].dy=k.y}}return u};n._getPhantomPoints=function _getPhantomPoints(e){var n=this._getCBox(!0);null==this._metrics&&(this._metrics=qe.prototype._getMetrics.call(this,n));var i=this._metrics,u=i.advanceWidth,d=i.advanceHeight,p=i.leftBearing,_=i.topBearing;return[new Ve(!1,!0,e.xMin-p,0),new Ve(!1,!0,e.xMin-p+u,0),new Ve(!1,!0,0,e.yMax+_),new Ve(!1,!0,0,e.yMax+_+d)]};n._getContours=function _getContours(){var e=this._decode();if(!e)return[];var n=[];if(e.numberOfContours<0)for(var i,u=_createForOfIteratorHelperLoose(e.components);!(i=u()).done;)for(var d=i.value,p=this._font.getGlyph(d.glyphID)._getContours(),_=0;_<p.length;_++)for(var y=p[_],b=0;b<y.length;b++){var w=y[b],x=w.x*d.scaleX+w.y*d.scale01+d.dx,P=w.y*d.scaleY+w.x*d.scale10+d.dy;n.push(new Ve(w.onCurve,w.endContour,x,P))}else n=e.points||[];if(e.phantomPoints&&!this._font.directory.tables.HVAR){this._metrics.advanceWidth=e.phantomPoints[1].x-e.phantomPoints[0].x;this._metrics.advanceHeight=e.phantomPoints[3].y-e.phantomPoints[2].y;this._metrics.leftBearing=e.xMin-e.phantomPoints[0].x;this._metrics.topBearing=e.phantomPoints[2].y-e.yMax}for(var E=[],k=[],B=0;B<n.length;B++){var j=n[B];k.push(j);if(j.endContour){E.push(k);k=[]}}return E};n._getMetrics=function _getMetrics(){if(this._metrics)return this._metrics;var n=this._getCBox(!0);e.prototype._getMetrics.call(this,n);this._font._variationProcessor&&!this._font.HVAR&&this.path;return this._metrics};n._getPath=function _getPath(){for(var e=this._getContours(),n=new Re,i=0;i<e.length;i++){var u=e[i],d=u[0],p=u[u.length-1],_=0;if(d.onCurve){var y=null;_=1}else y=d=p.onCurve?p:new Ve(!1,!1,(d.x+p.x)/2,(d.y+p.y)/2);n.moveTo(d.x,d.y);for(var b=_;b<u.length;b++){var w=u[b],x=0===b?d:u[b-1];if(x.onCurve&&w.onCurve)n.lineTo(w.x,w.y);else if(x.onCurve&&!w.onCurve)y=w;else if(x.onCurve||w.onCurve){if(x.onCurve||!w.onCurve)throw new Error("Unknown TTF path state");n.quadraticCurveTo(y.x,y.y,w.x,w.y);y=null}else{var P=(x.x+w.x)/2,E=(x.y+w.y)/2;n.quadraticCurveTo(x.x,x.y,P,E);var y=w}}y&&n.quadraticCurveTo(y.x,y.y,d.x,d.y);n.closePath()}return n};return TTFGlyph}(qe),Ke=j.resolve(),Ye=function(){function Subset(e){this.font=e;this.glyphs=[];this.mapping={};this.includeGlyph(0)}var e=Subset.prototype;e.includeGlyph=function includeGlyph(e){"object"==typeof e&&(e=e.id);if(null==this.mapping[e]){this.glyphs.push(e);this.mapping[e]=this.glyphs.length-1}return this.mapping[e]};e.encodeStream=function encodeStream(){var e=this,n=new u.EncodeStream;Ke.then((function(){e.encode(n);return n.end()}));return n};return Subset}(),Je=function(){function Point(){}Point.size=function size(e){return e>=0&&e<=255?1:2};Point.encode=function encode(e,n){n>=0&&n<=255?e.writeUInt8(n):e.writeInt16BE(n)};return Point}(),Qe=new u.Struct({numberOfContours:u.int16,xMin:u.int16,yMin:u.int16,xMax:u.int16,yMax:u.int16,endPtsOfContours:new u.Array(u.uint16,"numberOfContours"),instructions:new u.Array(u.uint8,u.uint16),flags:new u.Array(u.uint8,0),xPoints:new u.Array(Je,0),yPoints:new u.Array(Je,0)}),$e=function(){function TTFGlyphEncoder(){}var e=TTFGlyphEncoder.prototype;e.encodeSimple=function encodeSimple(e,n){void 0===n&&(n=[]);for(var i=[],d=[],p=[],_=[],y=0,b=0,w=0,x=0,P=0,E=0;E<e.commands.length;E++){for(var k=e.commands[E],B=0;B<k.args.length;B+=2){var j=k.args[B],I=k.args[B+1],O=0;if("quadraticCurveTo"===k.command&&2===B){var D=e.commands[E+1];if(D&&"quadraticCurveTo"===D.command){var R=(b+D.args[0])/2,N=(w+D.args[1])/2;if(j===R&&I===N)continue}}"quadraticCurveTo"===k.command&&0===B||(O|=1);O=this._encodePoint(j,b,d,O,2,16);if((O=this._encodePoint(I,w,p,O,4,32))===x&&y<255){_[_.length-1]|=8;y++}else{if(y>0){_.push(y);y=0}_.push(O);x=O}b=j;w=I;P++}"closePath"===k.command&&i.push(P-1)}e.commands.length>1&&"closePath"!==e.commands[e.commands.length-1].command&&i.push(P-1);var U=e.bbox,G={numberOfContours:i.length,xMin:U.minX,yMin:U.minY,xMax:U.maxX,yMax:U.maxY,endPtsOfContours:i,instructions:n,flags:_,xPoints:d,yPoints:p},W=Qe.size(G),X=4-W%4,K=new u.EncodeStream(W+X);Qe.encode(K,G);0!==X&&K.fill(0,X);return K.buffer};e._encodePoint=function _encodePoint(e,n,i,u,d,p){var _=e-n;if(e===n)u|=p;else{if(-255<=_&&_<=255){u|=d;_<0?_=-_:u|=p}i.push(_)}return u};return TTFGlyphEncoder}(),et=function(e){_inheritsLoose(TTFSubset,e);function TTFSubset(n){var i;(i=e.call(this,n)||this).glyphEncoder=new $e;return i}var n=TTFSubset.prototype;n._addGlyph=function _addGlyph(e){var n=this.font.getGlyph(e),u=n._decode(),d=this.font.loca.offsets[e],p=this.font.loca.offsets[e+1],_=this.font._getTableStream("glyf");_.pos+=d;var y=_.readBuffer(p-d);if(u&&u.numberOfContours<0){y=new i(y);for(var b,w=_createForOfIteratorHelperLoose(u.components);!(b=w()).done;){var x=b.value;e=this.includeGlyph(x.glyphID);y.writeUInt16BE(e,x.pos)}}else u&&this.font._variationProcessor&&(y=this.glyphEncoder.encodeSimple(n.path,u.instructions));this.glyf.push(y);this.loca.offsets.push(this.offset);this.hmtx.metrics.push({advance:n.advanceWidth,bearing:n._getMetrics().leftBearing});this.offset+=y.length;return this.glyf.length-1};n.encode=function encode(e){this.glyf=[];this.offset=0;this.loca={offsets:[],version:this.font.loca.version};this.hmtx={metrics:[],bearings:[]};for(var n=0;n<this.glyphs.length;)this._addGlyph(this.glyphs[n++]);var i=B(this.font.maxp);i.numGlyphs=this.glyf.length;this.loca.offsets.push(this.offset);var u=B(this.font.head);u.indexToLocFormat=this.loca.version;var d=B(this.font.hhea);d.numberOfMetrics=this.hmtx.metrics.length;Se.encode(e,{tables:{head:u,hhea:d,loca:this.loca,maxp:i,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})};return TTFSubset}(Ye),tt=(_applyDecoratedDescriptor((He=function(){TTFFont.probe=function probe(e){var n=e.toString("ascii",0,4);return"true"===n||"OTTO"===n||n===String.fromCharCode(0,1,0,0)};function TTFFont(e,n){void 0===n&&(n=null);this.defaultLanguage=null;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 u=this.directory.tables[i];ye[i]&&u.length>0&&d(this,i,{get:this._getTable.bind(this,u)})}}var e=TTFFont.prototype;e.setDefaultLanguage=function setDefaultLanguage(e){void 0===e&&(e=null);this.defaultLanguage=e};e._getTable=function _getTable(e){if(!(e.tag in this._tables))try{this._tables[e.tag]=this._decodeTable(e)}catch(n){if(I.logErrors){console.error("Error decoding table "+e.tag);console.error(n.stack)}}return this._tables[e.tag]};e._getTableStream=function _getTableStream(e){var n=this.directory.tables[e];if(n){this.stream.pos=n.offset;return this.stream}return null};e._decodeDirectory=function _decodeDirectory(){return this.directory=Se.decode(this.stream,{_startOffset:0})};e._decodeTable=function _decodeTable(e){var n=this.stream.pos,i=this._getTableStream(e.tag),u=ye[e.tag].decode(i,this,e.length);this.stream.pos=n;return u};e.getName=function getName(e,n){void 0===n&&(n=this.defaultLanguage||I.defaultLanguage);var i=this.name&&this.name.records[e];return i&&(i[n]||i[this.defaultLanguage]||i[I.defaultLanguage]||i.en||i[p(i)[0]])||null};e.hasGlyphForCodePoint=function hasGlyphForCodePoint(e){return!!this._cmapProcessor.lookup(e)};e.glyphForCodePoint=function glyphForCodePoint(e){return this.getGlyph(this._cmapProcessor.lookup(e),[e])};e.glyphsForString=function glyphsForString(e){for(var n=[],i=e.length,u=0,d=-1,p=-1;u<=i;){var _=0,y=0;if(u<i){if(55296<=(_=e.charCodeAt(u++))&&_<=56319&&u<i){var b=e.charCodeAt(u);if(56320<=b&&b<=57343){u++;_=((1023&_)<<10)+(1023&b)+65536}}y=65024<=_&&_<=65039||917760<=_&&_<=917999?1:0}else u++;0===p&&1===y?n.push(this.getGlyph(this._cmapProcessor.lookup(d,_),[d,_])):0===p&&0===y&&n.push(this.glyphForCodePoint(d));d=_;p=y}return n};e.layout=function layout(e,n,i,u,d){return this._layoutEngine.layout(e,n,i,u,d)};e.stringsForGlyph=function stringsForGlyph(e){return this._layoutEngine.stringsForGlyph(e)};e.getAvailableFeatures=function getAvailableFeatures(e,n){return this._layoutEngine.getAvailableFeatures(e,n)};e._getBaseGlyph=function _getBaseGlyph(e,n){void 0===n&&(n=[]);this._glyphs[e]||this.directory.tables.glyf&&(this._glyphs[e]=new Xe(e,n,this));return this._glyphs[e]||null};e.getGlyph=function getGlyph(e,n){void 0===n&&(n=[]);this._glyphs[e]||this._getBaseGlyph(e,n);return this._glyphs[e]||null};e.createSubset=function createSubset(){return new et(this)};e.getVariation=function getVariation(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.");"string"==typeof e&&(e=this.namedVariations[e]);if("object"!=typeof e)throw new Error("Variation settings must be either a variation name or settings object.");var n=this.fvar.axis.map((function(n,i){var u=n.axisTag.trim();return u in e?Math.max(n.minValue,Math.min(n.maxValue,e[u])):n.defaultValue})),i=new u.DecodeStream(this.stream.buffer);i.pos=this._directoryPos;var d=new TTFFont(i,n);d._tables=this._tables;return d};e.getFont=function getFont(e){return this.getVariation(e)};_createClass(TTFFont,[{key:"postscriptName",get:function get(){return this.getName("postscriptName")}},{key:"fullName",get:function get(){return this.getName("fullName")}},{key:"familyName",get:function get(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function get(){return this.getName("fontSubfamily")}},{key:"copyright",get:function get(){return this.getName("copyright")}},{key:"version",get:function get(){return this.getName("version")}},{key:"ascent",get:function get(){return this.hhea.ascent}},{key:"descent",get:function get(){return this.hhea.descent}},{key:"lineGap",get:function get(){return this.hhea.lineGap}},{key:"underlinePosition",get:function get(){return this.post.underlinePosition}},{key:"underlineThickness",get:function get(){return this.post.underlineThickness}},{key:"italicAngle",get:function get(){return this.post.italicAngle}},{key:"capHeight",get:function get(){var e=this["OS/2"];return e?e.capHeight:this.ascent}},{key:"xHeight",get:function get(){var e=this["OS/2"];return e?e.xHeight:0}},{key:"numGlyphs",get:function get(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function get(){return this.head.unitsPerEm}},{key:"bbox",get:function get(){return _(new Ee(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function get(){return new Ce(this.cmap)}},{key:"characterSet",get:function get(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function get(){return new Fe(this)}},{key:"availableFeatures",get:function get(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function get(){var e={};if(!this.fvar)return e;for(var n,i=_createForOfIteratorHelperLoose(this.fvar.axis);!(n=i()).done;){var u=n.value;e[u.axisTag.trim()]={name:u.name.en,min:u.minValue,default:u.defaultValue,max:u.maxValue}}return e}},{key:"namedVariations",get:function get(){var e={};if(!this.fvar)return e;for(var n,i=_createForOfIteratorHelperLoose(this.fvar.instance);!(n=i()).done;){for(var u=n.value,d={},p=0;p<this.fvar.axis.length;p++){d[this.fvar.axis[p].axisTag.trim()]=u.coord[p]}e[u.name.en]=d}return e}},{key:"_variationProcessor",get:function get(){return null}}]);return TTFFont}()).prototype,"bbox",[cache],y(He.prototype,"bbox"),He.prototype),_applyDecoratedDescriptor(He.prototype,"_cmapProcessor",[cache],y(He.prototype,"_cmapProcessor"),He.prototype),_applyDecoratedDescriptor(He.prototype,"characterSet",[cache],y(He.prototype,"characterSet"),He.prototype),_applyDecoratedDescriptor(He.prototype,"_layoutEngine",[cache],y(He.prototype,"_layoutEngine"),He.prototype),_applyDecoratedDescriptor(He.prototype,"variationAxes",[cache],y(He.prototype,"variationAxes"),He.prototype),_applyDecoratedDescriptor(He.prototype,"namedVariations",[cache],y(He.prototype,"namedVariations"),He.prototype),_applyDecoratedDescriptor(He.prototype,"_variationProcessor",[cache],y(He.prototype,"_variationProcessor"),He.prototype),He),rt=new u.VersionedStruct(u.uint32,{65536:{numFonts:u.uint32,offsets:new u.Array(u.uint32,"numFonts")},131072:{numFonts:u.uint32,offsets:new u.Array(u.uint32,"numFonts"),dsigTag:u.uint32,dsigLength:u.uint32,dsigOffset:u.uint32}}),nt=function(){TrueTypeCollection.probe=function probe(e){return"ttcf"===e.toString("ascii",0,4)};function TrueTypeCollection(e){this.stream=e;if("ttcf"!==e.readString(4))throw new Error("Not a TrueType collection");this.header=rt.decode(e)}TrueTypeCollection.prototype.getFont=function getFont(e){for(var n,i=_createForOfIteratorHelperLoose(this.header.offsets);!(n=i()).done;){var d=n.value,p=new u.DecodeStream(this.stream.buffer);p.pos=d;var _=new tt(p);if(_.postscriptName===e)return _}return null};_createClass(TrueTypeCollection,[{key:"fonts",get:function get(){for(var e,n=[],i=_createForOfIteratorHelperLoose(this.header.offsets);!(e=i()).done;){var d=e.value,p=new u.DecodeStream(this.stream.buffer);p.pos=d;n.push(new tt(p))}return n}}]);return TrueTypeCollection}(),it=new u.String(u.uint8),ot=(new u.Struct({len:u.uint32,buf:new u.Buffer("len")}),new u.Struct({id:u.uint16,nameOffset:u.int16,attr:u.uint8,dataOffset:u.uint24,handle:u.uint32})),at=new u.Struct({name:new u.String(4),maxTypeIndex:u.uint16,refList:new u.Pointer(u.uint16,new u.Array(ot,(function(e){return e.maxTypeIndex+1})),{type:"parent"})}),st=new u.Struct({length:u.uint16,types:new u.Array(at,(function(e){return e.length+1}))}),lt=new u.Struct({reserved:new u.Reserved(u.uint8,24),typeList:new u.Pointer(u.uint16,st),nameListOffset:new u.Pointer(u.uint16,"void")}),ut=new u.Struct({dataOffset:u.uint32,map:new u.Pointer(u.uint32,lt),dataLength:u.uint32,mapLength:u.uint32}),ct=function(){DFont.probe=function probe(e){var n=new u.DecodeStream(e);try{var i=ut.decode(n)}catch(e){return!1}for(var d,p=_createForOfIteratorHelperLoose(i.map.typeList.types);!(d=p()).done;){if("sfnt"===d.value.name)return!0}return!1};function DFont(e){this.stream=e;this.header=ut.decode(this.stream);for(var n,i=_createForOfIteratorHelperLoose(this.header.map.typeList.types);!(n=i()).done;){for(var u,d=n.value,p=_createForOfIteratorHelperLoose(d.refList);!(u=p()).done;){var _=u.value;if(_.nameOffset>=0){this.stream.pos=_.nameOffset+this.header.map.nameListOffset;_.name=it.decode(this.stream)}else _.name=null}"sfnt"===d.name&&(this.sfnt=d)}}DFont.prototype.getFont=function getFont(e){if(!this.sfnt)return null;for(var n,i=_createForOfIteratorHelperLoose(this.sfnt.refList);!(n=i()).done;){var d=n.value,p=this.header.dataOffset+d.dataOffset+4,_=new u.DecodeStream(this.stream.buffer.slice(p)),y=new tt(_);if(y.postscriptName===e)return y}return null};_createClass(DFont,[{key:"fonts",get:function get(){for(var e,n=[],i=_createForOfIteratorHelperLoose(this.sfnt.refList);!(e=i()).done;){var d=e.value,p=this.header.dataOffset+d.dataOffset+4,_=new u.DecodeStream(this.stream.buffer.slice(p));n.push(new tt(_))}return n}}]);return DFont}();I.registerFormat(tt);I.registerFormat(nt);I.registerFormat(ct);n.localExports=I}).call(this)}).call(this,e("buffer").Buffer)},{"@babel/runtime-corejs2/core-js/array/from":2,"@babel/runtime-corejs2/core-js/array/is-array":3,"@babel/runtime-corejs2/core-js/map":4,"@babel/runtime-corejs2/core-js/object/define-property":5,"@babel/runtime-corejs2/core-js/object/freeze":6,"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor":7,"@babel/runtime-corejs2/core-js/object/keys":8,"@babel/runtime-corejs2/core-js/promise":9,"@babel/runtime-corejs2/core-js/set":10,"@babel/runtime-corejs2/core-js/string/from-code-point":11,buffer:152,clone:123,"iconv-lite":151,restructure:250,"unicode-properties":125}],2:[function(e,n,i){n.localExports=e("core-js/library/fn/array/from")},{"core-js/library/fn/array/from":12}],3:[function(e,n,i){n.localExports=e("core-js/library/fn/array/is-array")},{"core-js/library/fn/array/is-array":13}],4:[function(e,n,i){n.localExports=e("core-js/library/fn/map")},{"core-js/library/fn/map":14}],5:[function(e,n,i){n.localExports=e("core-js/library/fn/object/define-property")},{"core-js/library/fn/object/define-property":15}],6:[function(e,n,i){n.localExports=e("core-js/library/fn/object/freeze")},{"core-js/library/fn/object/freeze":16}],7:[function(e,n,i){n.localExports=e("core-js/library/fn/object/get-own-property-descriptor")},{"core-js/library/fn/object/get-own-property-descriptor":17}],8:[function(e,n,i){n.localExports=e("core-js/library/fn/object/keys")},{"core-js/library/fn/object/keys":18}],9:[function(e,n,i){n.localExports=e("core-js/library/fn/promise")},{"core-js/library/fn/promise":19}],10:[function(e,n,i){n.localExports=e("core-js/library/fn/set")},{"core-js/library/fn/set":20}],11:[function(e,n,i){n.localExports=e("core-js/library/fn/string/from-code-point")},{"core-js/library/fn/string/from-code-point":21}],12:[function(e,n,i){e("../../modules/es6.string.iterator");e("../../modules/es6.array.from");n.localExports=e("../../modules/_core").Array.from},{"../../modules/_core":36,"../../modules/es6.array.from":100,"../../modules/es6.string.iterator":112}],13:[function(e,n,i){e("../../modules/es6.array.is-array");n.localExports=e("../../modules/_core").Array.isArray},{"../../modules/_core":36,"../../modules/es6.array.is-array":101}],14:[function(e,n,i){e("../modules/es6.object.to-string");e("../modules/es6.string.iterator");e("../modules/web.dom.iterable");e("../modules/es6.map");e("../modules/es7.map.to-json");e("../modules/es7.map.of");e("../modules/es7.map.from");n.localExports=e("../modules/_core").Map},{"../modules/_core":36,"../modules/es6.map":103,"../modules/es6.object.to-string":108,"../modules/es6.string.iterator":112,"../modules/es7.map.from":113,"../modules/es7.map.of":114,"../modules/es7.map.to-json":115,"../modules/web.dom.iterable":121}],15:[function(e,n,i){e("../../modules/es6.object.define-property");var u=e("../../modules/_core").Object;n.localExports=function defineProperty(e,n,i){return u.defineProperty(e,n,i)}},{"../../modules/_core":36,"../../modules/es6.object.define-property":104}],16:[function(e,n,i){e("../../modules/es6.object.freeze");n.localExports=e("../../modules/_core").Object.freeze},{"../../modules/_core":36,"../../modules/es6.object.freeze":105}],17:[function(e,n,i){e("../../modules/es6.object.get-own-property-descriptor");var u=e("../../modules/_core").Object;n.localExports=function getOwnPropertyDescriptor(e,n){return u.getOwnPropertyDescriptor(e,n)}},{"../../modules/_core":36,"../../modules/es6.object.get-own-property-descriptor":106}],18:[function(e,n,i){e("../../modules/es6.object.keys");n.localExports=e("../../modules/_core").Object.keys},{"../../modules/_core":36,"../../modules/es6.object.keys":107}],19:[function(e,n,i){e("../modules/es6.object.to-string");e("../modules/es6.string.iterator");e("../modules/web.dom.iterable");e("../modules/es6.promise");e("../modules/es7.promise.finally");e("../modules/es7.promise.try");n.localExports=e("../modules/_core").Promise},{"../modules/_core":36,"../modules/es6.object.to-string":108,"../modules/es6.promise":109,"../modules/es6.string.iterator":112,"../modules/es7.promise.finally":116,"../modules/es7.promise.try":117,"../modules/web.dom.iterable":121}],20:[function(e,n,i){e("../modules/es6.object.to-string");e("../modules/es6.string.iterator");e("../modules/web.dom.iterable");e("../modules/es6.set");e("../modules/es7.set.to-json");e("../modules/es7.set.of");e("../modules/es7.set.from");n.localExports=e("../modules/_core").Set},{"../modules/_core":36,"../modules/es6.object.to-string":108,"../modules/es6.set":110,"../modules/es6.string.iterator":112,"../modules/es7.set.from":118,"../modules/es7.set.of":119,"../modules/es7.set.to-json":120,"../modules/web.dom.iterable":121}],21:[function(e,n,i){e("../../modules/es6.string.from-code-point");n.localExports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":36,"../../modules/es6.string.from-code-point":111}],22:[function(e,n,i){n.localExports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],23:[function(e,n,i){n.localExports=function(){}},{}],24:[function(e,n,i){n.localExports=function(e,n,i,u){if(!(e instanceof n)||void 0!==u&&u in e)throw TypeError(i+": incorrect invocation!");return e}},{}],25:[function(e,n,i){var u=e("./_is-object");n.localExports=function(e){if(!u(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":55}],26:[function(e,n,i){var u=e("./_for-of");n.localExports=function(e,n){var i=[];u(e,!1,i.push,i,n);return i}},{"./_for-of":45}],27:[function(e,n,i){var u=e("./_to-iobject"),d=e("./_to-length"),p=e("./_to-absolute-index");n.localExports=function(e){return function(n,i,_){var y,b=u(n),w=d(b.length),x=p(_,w);if(e&&i!=i){for(;w>x;)if((y=b[x++])!=y)return!0}else for(;w>x;x++)if((e||x in b)&&b[x]===i)return e||x||0;return!e&&-1}}},{"./_to-absolute-index":89,"./_to-iobject":91,"./_to-length":92}],28:[function(e,n,i){var u=e("./_ctx"),d=e("./_iobject"),p=e("./_to-object"),_=e("./_to-length"),y=e("./_array-species-create");n.localExports=function(e,n){var i=1==e,b=2==e,w=3==e,x=4==e,P=6==e,E=5==e||P,k=n||y;return function(n,y,B){for(var j,I,O=p(n),D=d(O),R=u(y,B,3),N=_(D.length),U=0,G=i?k(n,N):b?k(n,0):void 0;N>U;U++)if(E||U in D){I=R(j=D[U],U,O);if(e)if(i)G[U]=I;else if(I)switch(e){case 3:return!0;case 5:return j;case 6:return U;case 2:G.push(j)}else if(x)return!1}return P?-1:w||x?x:G}}},{"./_array-species-create":30,"./_ctx":38,"./_iobject":52,"./_to-length":92,"./_to-object":93}],29:[function(e,n,i){var u=e("./_is-object"),d=e("./_is-array"),p=e("./_wks")("species");n.localExports=function(e){var n;if(d(e)){"function"!=typeof(n=e.constructor)||n!==Array&&!d(n.prototype)||(n=void 0);u(n)&&null===(n=n[p])&&(n=void 0)}return void 0===n?Array:n}},{"./_is-array":54,"./_is-object":55,"./_wks":98}],30:[function(e,n,i){var u=e("./_array-species-constructor");n.localExports=function(e,n){return new(u(e))(n)}},{"./_array-species-constructor":29}],31:[function(e,n,i){var u=e("./_cof"),d=e("./_wks")("toStringTag"),p="Arguments"==u(function(){return arguments}());n.localExports=function(e){var n,i,_;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function tryGet(e,n){try{return e[n]}catch(e){}}(n=Object(e),d))?i:p?u(n):"Object"==(_=u(n))&&"function"==typeof n.callee?"Arguments":_}},{"./_cof":32,"./_wks":98}],32:[function(e,n,i){var u={}.toString;n.localExports=function(e){return u.call(e).slice(8,-1)}},{}],33:[function(e,n,i){var u=e("./_object-dp").f,d=e("./_object-create"),p=e("./_redefine-all"),_=e("./_ctx"),y=e("./_an-instance"),b=e("./_for-of"),w=e("./_iter-define"),x=e("./_iter-step"),P=e("./_set-species"),E=e("./_descriptors"),k=e("./_meta").fastKey,B=e("./_validate-collection"),j=E?"_s":"size",I=function getEntry(e,n){var i,u=k(n);if("F"!==u)return e._i[u];for(i=e._f;i;i=i.n)if(i.k==n)return i};n.localExports={getConstructor:function getConstructor(e,n,i,w){var x=e((function(e,u){y(e,x,n,"_i");e._t=n;e._i=d(null);e._f=void 0;e._l=void 0;e[j]=0;null!=u&&b(u,i,e[w],e)}));p(x.prototype,{clear:function clear(){for(var e=B(this,n),i=e._i,u=e._f;u;u=u.n){u.r=!0;u.p&&(u.p=u.p.n=void 0);delete i[u.i]}e._f=e._l=void 0;e[j]=0},delete:function _delete(e){var i=B(this,n),u=I(i,e);if(u){var d=u.n,p=u.p;delete i._i[u.i];u.r=!0;p&&(p.n=d);d&&(d.p=p);i._f==u&&(i._f=d);i._l==u&&(i._l=p);i[j]--}return!!u},forEach:function forEach(e){B(this,n);for(var i,u=_(e,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;){u(i.v,i.k,this);for(;i&&i.r;)i=i.p}},has:function has(e){return!!I(B(this,n),e)}});E&&u(x.prototype,"size",{get:function get(){return B(this,n)[j]}});return x},def:function def(e,n,i){var u,d,p=I(e,n);if(p)p.v=i;else{e._l=p={i:d=k(n,!0),k:n,v:i,p:u=e._l,n:void 0,r:!1};e._f||(e._f=p);u&&(u.n=p);e[j]++;"F"!==d&&(e._i[d]=p)}return e},getEntry:I,setStrong:function setStrong(e,n,i){w(e,n,(function(e,i){this._t=B(e,n);this._k=i;this._l=void 0}),(function(){for(var e=this._k,n=this._l;n&&n.r;)n=n.p;if(!this._t||!(this._l=n=n?n.n:this._t._f)){this._t=void 0;return x(1)}return x(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v])}),i?"entries":"values",!i,!0);P(n)}}},{"./_an-instance":24,"./_ctx":38,"./_descriptors":40,"./_for-of":45,"./_iter-define":58,"./_iter-step":60,"./_meta":63,"./_object-create":66,"./_object-dp":67,"./_redefine-all":78,"./_set-species":82,"./_validate-collection":97}],34:[function(e,n,i){var u=e("./_classof"),d=e("./_array-from-iterable");n.localExports=function(e){return function toJSON(){if(u(this)!=e)throw TypeError(e+"#toJSON isn't generic");return d(this)}}},{"./_array-from-iterable":26,"./_classof":31}],35:[function(e,n,i){var u=e("./_global"),d=e("./_export"),p=e("./_meta"),_=e("./_fails"),y=e("./_hide"),b=e("./_redefine-all"),w=e("./_for-of"),x=e("./_an-instance"),P=e("./_is-object"),E=e("./_set-to-string-tag"),k=e("./_object-dp").f,B=e("./_array-methods")(0),j=e("./_descriptors");n.localExports=function(e,n,i,I,O,D){var R=u[e],N=R,U=O?"set":"add",G=N&&N.prototype,W={};if(j&&"function"==typeof N&&(D||G.forEach&&!_((function(){(new N).entries().next()})))){N=n((function(n,i){x(n,N,e,"_c");n._c=new R;null!=i&&w(i,O,n[U],n)}));B("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var n="add"==e||"set"==e;!(e in G)||D&&"clear"==e||y(N.prototype,e,(function(i,u){x(this,N,e);if(!n&&D&&!P(i))return"get"==e&&void 0;var d=this._c[e](0===i?0:i,u);return n?this:d}))}));D||k(N.prototype,"size",{get:function get(){return this._c.size}})}else{N=I.getConstructor(n,e,O,U);b(N.prototype,i);p.NEED=!0}E(N,e);W[e]=N;d(d.G+d.W+d.F,W);D||I.setStrong(N,e,O);return N}},{"./_an-instance":24,"./_array-methods":28,"./_descriptors":40,"./_export":43,"./_fails":44,"./_for-of":45,"./_global":46,"./_hide":48,"./_is-object":55,"./_meta":63,"./_object-dp":67,"./_redefine-all":78,"./_set-to-string-tag":83}],36:[function(e,n,i){var u=n.localExports={version:"2.6.12"};"number"==typeof __e&&(__e=u)},{}],37:[function(e,n,i){var u=e("./_object-dp"),d=e("./_property-desc");n.localExports=function(e,n,i){n in e?u.f(e,n,d(0,i)):e[n]=i}},{"./_object-dp":67,"./_property-desc":77}],38:[function(e,n,i){var u=e("./_a-function");n.localExports=function(e,n,i){u(e);if(void 0===n)return e;switch(i){case 1:return function(i){return e.call(n,i)};case 2:return function(i,u){return e.call(n,i,u)};case 3:return function(i,u,d){return e.call(n,i,u,d)}}return function(){return e.apply(n,arguments)}}},{"./_a-function":22}],39:[function(e,n,i){n.localExports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],40:[function(e,n,i){n.localExports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function get(){return 7}}).a}))},{"./_fails":44}],41:[function(e,n,i){var u=e("./_is-object"),d=e("./_global").document,p=u(d)&&u(d.createElement);n.localExports=function(e){return p?d.createElement(e):{}}},{"./_global":46,"./_is-object":55}],42:[function(e,n,i){n.localExports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],43:[function(e,n,i){var u=e("./_global"),d=e("./_core"),p=e("./_ctx"),_=e("./_hide"),y=e("./_has"),b=function $export(e,n,i){var b,w,x,P=e&$export.F,E=e&$export.G,k=e&$export.S,B=e&$export.P,j=e&$export.B,I=e&$export.W,O=E?d:d[n]||(d[n]={}),D=O.prototype,R=E?u:k?u[n]:(u[n]||{}).prototype;E&&(i=n);for(b in i)if(!(w=!P&&R&&void 0!==R[b])||!y(O,b)){x=w?R[b]:i[b];O[b]=E&&"function"!=typeof R[b]?i[b]:j&&w?p(x,u):I&&R[b]==x?function(e){var n=function F(n,i,u){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,u)}return e.apply(this,arguments)};n.prototype=e.prototype;return n}(x):B&&"function"==typeof x?p(Function.call,x):x;if(B){(O.virtual||(O.virtual={}))[b]=x;e&$export.R&&D&&!D[b]&&_(D,b,x)}}};b.F=1;b.G=2;b.S=4;b.P=8;b.B=16;b.W=32;b.U=64;b.R=128;n.localExports=b},{"./_core":36,"./_ctx":38,"./_global":46,"./_has":47,"./_hide":48}],44:[function(e,n,i){n.localExports=function(e){try{return!!e()}catch(e){return!0}}},{}],45:[function(e,n,i){var u=e("./_ctx"),d=e("./_iter-call"),p=e("./_is-array-iter"),_=e("./_an-object"),y=e("./_to-length"),b=e("./core.get-iterator-method"),w={},x={};(i=n.localExports=function(e,n,i,P,E){var k,B,j,I,O=E?function(){return e}:b(e),D=u(i,P,n?2:1),R=0;if("function"!=typeof O)throw TypeError(e+" is not iterable!");if(p(O)){for(k=y(e.length);k>R;R++)if((I=n?D(_(B=e[R])[0],B[1]):D(e[R]))===w||I===x)return I}else for(j=O.call(e);!(B=j.next()).done;)if((I=d(j,D,B.value,n))===w||I===x)return I}).BREAK=w;i.RETURN=x},{"./_an-object":25,"./_ctx":38,"./_is-array-iter":53,"./_iter-call":56,"./_to-length":92,"./core.get-iterator-method":99}],46:[function(e,n,i){var u=n.localExports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=u)},{}],47:[function(e,n,i){var u={}.hasOwnProperty;n.localExports=function(e,n){return u.call(e,n)}},{}],48:[function(e,n,i){var u=e("./_object-dp"),d=e("./_property-desc");n.localExports=e("./_descriptors")?function(e,n,i){return u.f(e,n,d(1,i))}:function(e,n,i){e[n]=i;return e}},{"./_descriptors":40,"./_object-dp":67,"./_property-desc":77}],49:[function(e,n,i){var u=e("./_global").document;n.localExports=u&&u.documentElement},{"./_global":46}],50:[function(e,n,i){n.localExports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function get(){return 7}}).a}))},{"./_descriptors":40,"./_dom-create":41,"./_fails":44}],51:[function(e,n,i){n.localExports=function(e,n,i){var u=void 0===i;switch(n.length){case 0:return u?e():e.call(i);case 1:return u?e(n[0]):e.call(i,n[0]);case 2:return u?e(n[0],n[1]):e.call(i,n[0],n[1]);case 3:return u?e(n[0],n[1],n[2]):e.call(i,n[0],n[1],n[2]);case 4:return u?e(n[0],n[1],n[2],n[3]):e.call(i,n[0],n[1],n[2],n[3])}return e.apply(i,n)}},{}],52:[function(e,n,i){var u=e("./_cof");n.localExports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==u(e)?e.split(""):Object(e)}},{"./_cof":32}],53:[function(e,n,i){var u=e("./_iterators"),d=e("./_wks")("iterator"),p=Array.prototype;n.localExports=function(e){return void 0!==e&&(u.Array===e||p[d]===e)}},{"./_iterators":61,"./_wks":98}],54:[function(e,n,i){var u=e("./_cof");n.localExports=Array.isArray||function isArray(e){return"Array"==u(e)}},{"./_cof":32}],55:[function(e,n,i){n.localExports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],56:[function(e,n,i){var u=e("./_an-object");n.localExports=function(e,n,i,d){try{return d?n(u(i)[0],i[1]):n(i)}catch(n){var p=e.return;void 0!==p&&u(p.call(e));throw n}}},{"./_an-object":25}],57:[function(e,n,i){var u=e("./_object-create"),d=e("./_property-desc"),p=e("./_set-to-string-tag"),_={};e("./_hide")(_,e("./_wks")("iterator"),(function(){return this}));n.localExports=function(e,n,i){e.prototype=u(_,{next:d(1,i)});p(e,n+" Iterator")}},{"./_hide":48,"./_object-create":66,"./_property-desc":77,"./_set-to-string-tag":83,"./_wks":98}],58:[function(e,n,i){var u=e("./_library"),d=e("./_export"),p=e("./_redefine"),_=e("./_hide"),y=e("./_iterators"),b=e("./_iter-create"),w=e("./_set-to-string-tag"),x=e("./_object-gpo"),P=e("./_wks")("iterator"),E=!([].keys&&"next"in[].keys()),k=function returnThis(){return this};n.localExports=function(e,n,i,B,j,I,O){b(i,n,B);var D,R,N,U=function getMethod(e){if(!E&&e in K)return K[e];switch(e){case"keys":return function keys(){return new i(this,e)};case"values":return function values(){return new i(this,e)}}return function entries(){return new i(this,e)}},G=n+" Iterator",W="values"==j,X=!1,K=e.prototype,Y=K[P]||K["@@iterator"]||j&&K[j],J=Y||U(j),$=j?W?U("entries"):J:void 0,ee="Array"==n&&K.entries||Y;if(ee&&(N=x(ee.call(new e)))!==Object.prototype&&N.next){w(N,G,!0);u||"function"==typeof N[P]||_(N,P,k)}if(W&&Y&&"values"!==Y.name){X=!0;J=function values(){return Y.call(this)}}u&&!O||!E&&!X&&K[P]||_(K,P,J);y[n]=J;y[G]=k;if(j){D={values:W?J:U("values"),keys:I?J:U("keys"),entries:$};if(O)for(R in D)R in K||p(K,R,D[R]);else d(d.P+d.F*(E||X),n,D)}return D}},{"./_export":43,"./_hide":48,"./_iter-create":57,"./_iterators":61,"./_library":62,"./_object-gpo":70,"./_redefine":79,"./_set-to-string-tag":83,"./_wks":98}],59:[function(e,n,i){var u=e("./_wks")("iterator"),d=!1;try{var p=[7][u]();p.return=function(){d=!0};Array.from(p,(function(){throw 2}))}catch(e){}n.localExports=function(e,n){if(!n&&!d)return!1;var i=!1;try{var p=[7],_=p[u]();_.next=function(){return{done:i=!0}};p[u]=function(){return _};e(p)}catch(e){}return i}},{"./_wks":98}],60:[function(e,n,i){n.localExports=function(e,n){return{value:n,done:!!e}}},{}],61:[function(e,n,i){n.localExports={}},{}],62:[function(e,n,i){n.localExports=!0},{}],63:[function(e,n,i){var u=e("./_uid")("meta"),d=e("./_is-object"),p=e("./_has"),_=e("./_object-dp").f,y=0,b=Object.isExtensible||function(){return!0},w=!e("./_fails")((function(){return b(Object.preventExtensions({}))})),x=function setMeta(e){_(e,u,{value:{i:"O"+ ++y,w:{}}})},P=n.localExports={KEY:u,NEED:!1,fastKey:function fastKey(e,n){if(!d(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!p(e,u)){if(!b(e))return"F";if(!n)return"E";x(e)}return e[u].i},getWeak:function getWeak(e,n){if(!p(e,u)){if(!b(e))return!0;if(!n)return!1;x(e)}return e[u].w},onFreeze:function onFreeze(e){w&&P.NEED&&b(e)&&!p(e,u)&&x(e);return e}}},{"./_fails":44,"./_has":47,"./_is-object":55,"./_object-dp":67,"./_uid":95}],64:[function(e,n,i){var u=e("./_global"),d=e("./_task").set,p=u.MutationObserver||u.WebKitMutationObserver,_=u.process,y=u.Promise,b="process"==e("./_cof")(_);n.localExports=function(){var e,n,i,w=function flush(){var u,d;b&&(u=_.domain)&&u.exit();for(;e;){d=e.fn;e=e.next;try{d()}catch(u){e?i():n=void 0;throw u}}n=void 0;u&&u.enter()};if(b)i=function notify(){_.nextTick(w)};else if(!p||u.navigator&&u.navigator.standalone)if(y&&y.resolve){var x=y.resolve(void 0);i=function notify(){x.then(w)}}else i=function notify(){d.call(u,w)};else{var P=!0,E=document.createTextNode("");new p(w).observe(E,{characterData:!0});i=function notify(){E.data=P=!P}}return function(u){var d={fn:u,next:void 0};n&&(n.next=d);if(!e){e=d;i()}n=d}}},{"./_cof":32,"./_global":46,"./_task":88}],65:[function(e,n,i){var u=e("./_a-function");function PromiseCapability(e){var n,i;this.promise=new e((function(e,u){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e;i=u}));this.resolve=u(n);this.reject=u(i)}n.localExports.f=function(e){return new PromiseCapability(e)}},{"./_a-function":22}],66:[function(e,n,i){var u=e("./_an-object"),d=e("./_object-dps"),p=e("./_enum-bug-keys"),_=e("./_shared-key")("IE_PROTO"),y=function Empty(){},b=function createDict(){var n,i=e("./_dom-create")("iframe"),u=p.length;i.style.display="none";e("./_html").appendChild(i);i.src="javascript:";(n=i.contentWindow.document).open();n.write("<script>document.F=Object<\/script>");n.close();b=n.F;for(;u--;)delete b.prototype[p[u]];return b()};n.localExports=Object.create||function create(e,n){var i;if(null!==e){y.prototype=u(e);i=new y;y.prototype=null;i[_]=e}else i=b();return void 0===n?i:d(i,n)}},{"./_an-object":25,"./_dom-create":41,"./_enum-bug-keys":42,"./_html":49,"./_object-dps":68,"./_shared-key":84}],67:[function(e,n,i){var u=e("./_an-object"),d=e("./_ie8-dom-define"),p=e("./_to-primitive"),_=Object.defineProperty;i.f=e("./_descriptors")?Object.defineProperty:function defineProperty(e,n,i){u(e);n=p(n,!0);u(i);if(d)try{return _(e,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");"value"in i&&(e[n]=i.value);return e}},{"./_an-object":25,"./_descriptors":40,"./_ie8-dom-define":50,"./_to-primitive":94}],68:[function(e,n,i){var u=e("./_object-dp"),d=e("./_an-object"),p=e("./_object-keys");n.localExports=e("./_descriptors")?Object.defineProperties:function defineProperties(e,n){d(e);for(var i,_=p(n),y=_.length,b=0;y>b;)u.f(e,i=_[b++],n[i]);return e}},{"./_an-object":25,"./_descriptors":40,"./_object-dp":67,"./_object-keys":72}],69:[function(e,n,i){var u=e("./_object-pie"),d=e("./_property-desc"),p=e("./_to-iobject"),_=e("./_to-primitive"),y=e("./_has"),b=e("./_ie8-dom-define"),w=Object.getOwnPropertyDescriptor;i.f=e("./_descriptors")?w:function getOwnPropertyDescriptor(e,n){e=p(e);n=_(n,!0);if(b)try{return w(e,n)}catch(e){}if(y(e,n))return d(!u.f.call(e,n),e[n])}},{"./_descriptors":40,"./_has":47,"./_ie8-dom-define":50,"./_object-pie":73,"./_property-desc":77,"./_to-iobject":91,"./_to-primitive":94}],70:[function(e,n,i){var u=e("./_has"),d=e("./_to-object"),p=e("./_shared-key")("IE_PROTO"),_=Object.prototype;n.localExports=Object.getPrototypeOf||function(e){e=d(e);return u(e,p)?e[p]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?_:null}},{"./_has":47,"./_shared-key":84,"./_to-object":93}],71:[function(e,n,i){var u=e("./_has"),d=e("./_to-iobject"),p=e("./_array-includes")(!1),_=e("./_shared-key")("IE_PROTO");n.localExports=function(e,n){var i,y=d(e),b=0,w=[];for(i in y)i!=_&&u(y,i)&&w.push(i);for(;n.length>b;)u(y,i=n[b++])&&(~p(w,i)||w.push(i));return w}},{"./_array-includes":27,"./_has":47,"./_shared-key":84,"./_to-iobject":91}],72:[function(e,n,i){var u=e("./_object-keys-internal"),d=e("./_enum-bug-keys");n.localExports=Object.keys||function keys(e){return u(e,d)}},{"./_enum-bug-keys":42,"./_object-keys-internal":71}],73:[function(e,n,i){i.f={}.propertyIsEnumerable},{}],74:[function(e,n,i){var u=e("./_export"),d=e("./_core"),p=e("./_fails");n.localExports=function(e,n){var i=(d.Object||{})[e]||Object[e],_={};_[e]=n(i);u(u.S+u.F*p((function(){i(1)})),"Object",_)}},{"./_core":36,"./_export":43,"./_fails":44}],75:[function(e,n,i){n.localExports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],76:[function(e,n,i){var u=e("./_an-object"),d=e("./_is-object"),p=e("./_new-promise-capability");n.localExports=function(e,n){u(e);if(d(n)&&n.constructor===e)return n;var i=p.f(e);(0,i.resolve)(n);return i.promise}},{"./_an-object":25,"./_is-object":55,"./_new-promise-capability":65}],77:[function(e,n,i){n.localExports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},{}],78:[function(e,n,i){var u=e("./_hide");n.localExports=function(e,n,i){for(var d in n)i&&e[d]?e[d]=n[d]:u(e,d,n[d]);return e}},{"./_hide":48}],79:[function(e,n,i){n.localExports=e("./_hide")},{"./_hide":48}],80:[function(e,n,i){var u=e("./_export"),d=e("./_a-function"),p=e("./_ctx"),_=e("./_for-of");n.localExports=function(e){u(u.S,e,{from:function from(e){var n,i,u,y,b=arguments[1];d(this);(n=void 0!==b)&&d(b);if(null==e)return new this;i=[];if(n){u=0;y=p(b,arguments[2],2);_(e,!1,(function(e){i.push(y(e,u++))}))}else _(e,!1,i.push,i);return new this(i)}})}},{"./_a-function":22,"./_ctx":38,"./_export":43,"./_for-of":45}],81:[function(e,n,i){var u=e("./_export");n.localExports=function(e){u(u.S,e,{of:function of(){for(var e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return new this(n)}})}},{"./_export":43}],82:[function(e,n,i){var u=e("./_global"),d=e("./_core"),p=e("./_object-dp"),_=e("./_descriptors"),y=e("./_wks")("species");n.localExports=function(e){var n="function"==typeof d[e]?d[e]:u[e];_&&n&&!n[y]&&p.f(n,y,{configurable:!0,get:function get(){return this}})}},{"./_core":36,"./_descriptors":40,"./_global":46,"./_object-dp":67,"./_wks":98}],83:[function(e,n,i){var u=e("./_object-dp").f,d=e("./_has"),p=e("./_wks")("toStringTag");n.localExports=function(e,n,i){e&&!d(e=i?e:e.prototype,p)&&u(e,p,{configurable:!0,value:n})}},{"./_has":47,"./_object-dp":67,"./_wks":98}],84:[function(e,n,i){var u=e("./_shared")("keys"),d=e("./_uid");n.localExports=function(e){return u[e]||(u[e]=d(e))}},{"./_shared":85,"./_uid":95}],85:[function(e,n,i){var u=e("./_core"),d=e("./_global"),p=d["__core-js_shared__"]||(d["__core-js_shared__"]={});(n.localExports=function(e,n){return p[e]||(p[e]=void 0!==n?n:{})})("versions",[]).push({version:u.version,mode:e("./_library")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":36,"./_global":46,"./_library":62}],86:[function(e,n,i){var u=e("./_an-object"),d=e("./_a-function"),p=e("./_wks")("species");n.localExports=function(e,n){var i,_=u(e).constructor;return void 0===_||null==(i=u(_)[p])?n:d(i)}},{"./_a-function":22,"./_an-object":25,"./_wks":98}],87:[function(e,n,i){var u=e("./_to-integer"),d=e("./_defined");n.localExports=function(e){return function(n,i){var p,_,y=String(d(n)),b=u(i),w=y.length;return b<0||b>=w?e?"":void 0:(p=y.charCodeAt(b))<55296||p>56319||b+1===w||(_=y.charCodeAt(b+1))<56320||_>57343?e?y.charAt(b):p:e?y.slice(b,b+2):_-56320+(p-55296<<10)+65536}}},{"./_defined":39,"./_to-integer":90}],88:[function(e,n,i){var u,d,p,_=e("./_ctx"),y=e("./_invoke"),b=e("./_html"),w=e("./_dom-create"),x=e("./_global"),P=x.process,E=x.setImmediate,k=x.clearImmediate,B=x.MessageChannel,j=x.Dispatch,I=0,O={},D=function run(){var e=+this;if(O.hasOwnProperty(e)){var n=O[e];delete O[e];n()}},R=function listener(e){D.call(e.data)};if(!E||!k){E=function setImmediate(e){for(var n=[],i=1;arguments.length>i;)n.push(arguments[i++]);O[++I]=function(){y("function"==typeof e?e:Function(e),n)};u(I);return I};k=function clearImmediate(e){delete O[e]};if("process"==e("./_cof")(P))u=function defer(e){P.nextTick(_(D,e,1))};else if(j&&j.now)u=function defer(e){j.now(_(D,e,1))};else if(B){p=(d=new B).port2;d.port1.onmessage=R;u=_(p.postMessage,p,1)}else if(x.addEventListener&&"function"==typeof postMessage&&!x.importScripts){u=function defer(e){x.postMessage(e+"","*")};x.addEventListener("message",R,!1)}else u="onreadystatechange"in w("script")?function defer(e){b.appendChild(w("script")).onreadystatechange=function(){b.removeChild(this);D.call(e)}}:function defer(e){setTimeout(_(D,e,1),0)}}n.localExports={set:E,clear:k}},{"./_cof":32,"./_ctx":38,"./_dom-create":41,"./_global":46,"./_html":49,"./_invoke":51}],89:[function(e,n,i){var u=e("./_to-integer"),d=Math.max,p=Math.min;n.localExports=function(e,n){return(e=u(e))<0?d(e+n,0):p(e,n)}},{"./_to-integer":90}],90:[function(e,n,i){var u=Math.ceil,d=Math.floor;n.localExports=function(e){return isNaN(e=+e)?0:(e>0?d:u)(e)}},{}],91:[function(e,n,i){var u=e("./_iobject"),d=e("./_defined");n.localExports=function(e){return u(d(e))}},{"./_defined":39,"./_iobject":52}],92:[function(e,n,i){var u=e("./_to-integer"),d=Math.min;n.localExports=function(e){return e>0?d(u(e),9007199254740991):0}},{"./_to-integer":90}],93:[function(e,n,i){var u=e("./_defined");n.localExports=function(e){return Object(u(e))}},{"./_defined":39}],94:[function(e,n,i){var u=e("./_is-object");n.localExports=function(e,n){if(!u(e))return e;var i,d;if(n&&"function"==typeof(i=e.toString)&&!u(d=i.call(e)))return d;if("function"==typeof(i=e.valueOf)&&!u(d=i.call(e)))return d;if(!n&&"function"==typeof(i=e.toString)&&!u(d=i.call(e)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":55}],95:[function(e,n,i){var u=0,d=Math.random();n.localExports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++u+d).toString(36))}},{}],96:[function(e,n,i){var u=e("./_global").navigator;n.localExports=u&&u.userAgent||""},{"./_global":46}],97:[function(e,n,i){var u=e("./_is-object");n.localExports=function(e,n){if(!u(e)||e._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return e}},{"./_is-object":55}],98:[function(e,n,i){var u=e("./_shared")("wks"),d=e("./_uid"),p=e("./_global").Symbol,_="function"==typeof p;(n.localExports=function(e){return u[e]||(u[e]=_&&p[e]||(_?p:d)("Symbol."+e))}).store=u},{"./_global":46,"./_shared":85,"./_uid":95}],99:[function(e,n,i){var u=e("./_classof"),d=e("./_wks")("iterator"),p=e("./_iterators");n.localExports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[d]||e["@@iterator"]||p[u(e)]}},{"./_classof":31,"./_core":36,"./_iterators":61,"./_wks":98}],100:[function(e,n,i){var u=e("./_ctx"),d=e("./_export"),p=e("./_to-object"),_=e("./_iter-call"),y=e("./_is-array-iter"),b=e("./_to-length"),w=e("./_create-property"),x=e("./core.get-iterator-method");d(d.S+d.F*!e("./_iter-detect")((function(e){})),"Array",{from:function from(e){var n,i,d,P,E=p(e),k="function"==typeof this?this:Array,B=arguments.length,j=B>1?arguments[1]:void 0,I=void 0!==j,O=0,D=x(E);I&&(j=u(j,B>2?arguments[2]:void 0,2));if(null==D||k==Array&&y(D))for(i=new k(n=b(E.length));n>O;O++)w(i,O,I?j(E[O],O):E[O]);else for(P=D.call(E),i=new k;!(d=P.next()).done;O++)w(i,O,I?_(P,j,[d.value,O],!0):d.value);i.length=O;return i}})},{"./_create-property":37,"./_ctx":38,"./_export":43,"./_is-array-iter":53,"./_iter-call":56,"./_iter-detect":59,"./_to-length":92,"./_to-object":93,"./core.get-iterator-method":99}],101:[function(e,n,i){var u=e("./_export");u(u.S,"Array",{isArray:e("./_is-array")})},{"./_export":43,"./_is-array":54}],102:[function(e,n,i){var u=e("./_add-to-unscopables"),d=e("./_iter-step"),p=e("./_iterators"),_=e("./_to-iobject");n.localExports=e("./_iter-define")(Array,"Array",(function(e,n){this._t=_(e);this._i=0;this._k=n}),(function(){var e=this._t,n=this._k,i=this._i++;if(!e||i>=e.length){this._t=void 0;return d(1)}return d(0,"keys"==n?i:"values"==n?e[i]:[i,e[i]])}),"values");p.Arguments=p.Array;u("keys");u("values");u("entries")},{"./_add-to-unscopables":23,"./_iter-define":58,"./_iter-step":60,"./_iterators":61,"./_to-iobject":91}],103:[function(e,n,i){var u=e("./_collection-strong"),d=e("./_validate-collection");n.localExports=e("./_collection")("Map",(function(e){return function Map(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function get(e){var n=u.getEntry(d(this,"Map"),e);return n&&n.v},set:function set(e,n){return u.def(d(this,"Map"),0===e?0:e,n)}},u,!0)},{"./_collection":35,"./_collection-strong":33,"./_validate-collection":97}],104:[function(e,n,i){var u=e("./_export");u(u.S+u.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":40,"./_export":43,"./_object-dp":67}],105:[function(e,n,i){var u=e("./_is-object"),d=e("./_meta").onFreeze;e("./_object-sap")("freeze",(function(e){return function freeze(n){return e&&u(n)?e(d(n)):n}}))},{"./_is-object":55,"./_meta":63,"./_object-sap":74}],106:[function(e,n,i){var u=e("./_to-iobject"),d=e("./_object-gopd").f;e("./_object-sap")("getOwnPropertyDescriptor",(function(){return function getOwnPropertyDescriptor(e,n){return d(u(e),n)}}))},{"./_object-gopd":69,"./_object-sap":74,"./_to-iobject":91}],107:[function(e,n,i){var u=e("./_to-object"),d=e("./_object-keys");e("./_object-sap")("keys",(function(){return function keys(e){return d(u(e))}}))},{"./_object-keys":72,"./_object-sap":74,"./_to-object":93}],108:[function(e,n,i){},{}],109:[function(e,n,i){var u,d,p,_,y=e("./_library"),b=e("./_global"),w=e("./_ctx"),x=e("./_classof"),P=e("./_export"),E=e("./_is-object"),k=e("./_a-function"),B=e("./_an-instance"),j=e("./_for-of"),I=e("./_species-constructor"),O=e("./_task").set,D=e("./_microtask")(),R=e("./_new-promise-capability"),N=e("./_perform"),U=e("./_user-agent"),G=e("./_promise-resolve"),W=b.TypeError,X=b.process,K=X&&X.versions,Y=K&&K.v8||"",J=b.Promise,$="process"==x(X),ee=function empty(){},te=d=R.f,re=!!function(){try{var n=J.resolve(1),i=(n.constructor={})[e("./_wks")("species")]=function(e){e(ee,ee)};return($||"function"==typeof PromiseRejectionEvent)&&n.then(ee)instanceof i&&0!==Y.indexOf("6.6")&&-1===U.indexOf("Chrome/66")}catch(e){}}(),ne=function isThenable(e){var n;return!(!E(e)||"function"!=typeof(n=e.then))&&n},ie=function notify(e,n){if(!e._n){e._n=!0;var i=e._c;D((function(){for(var u=e._v,d=1==e._s,p=0,_=function run(n){var i,p,_,y=d?n.ok:n.fail,b=n.resolve,w=n.reject,x=n.domain;try{if(y){if(!d){2==e._h&&se(e);e._h=1}if(!0===y)i=u;else{x&&x.enter();i=y(u);if(x){x.exit();_=!0}}i===n.promise?w(W("Promise-chain cycle")):(p=ne(i))?p.call(i,b,w):b(i)}else w(u)}catch(e){x&&!_&&x.exit();w(e)}};i.length>p;)_(i[p++]);e._c=[];e._n=!1;n&&!e._h&&oe(e)}))}},oe=function onUnhandled(e){O.call(b,(function(){var n,i,u,d=e._v,p=ae(e);if(p){n=N((function(){$?X.emit("unhandledRejection",d,e):(i=b.onunhandledrejection)?i({promise:e,reason:d}):(u=b.console)&&u.error&&u.error("Unhandled promise rejection",d)}));e._h=$||ae(e)?2:1}e._a=void 0;if(p&&n.e)throw n.v}))},ae=function isUnhandled(e){return 1!==e._h&&0===(e._a||e._c).length},se=function onHandleUnhandled(e){O.call(b,(function(){var n;$?X.emit("rejectionHandled",e):(n=b.onrejectionhandled)&&n({promise:e,reason:e._v})}))},le=function $reject(e){var n=this;if(!n._d){n._d=!0;(n=n._w||n)._v=e;n._s=2;n._a||(n._a=n._c.slice());ie(n,!0)}},ue=function $resolve(e){var n,i=this;if(!i._d){i._d=!0;i=i._w||i;try{if(i===e)throw W("Promise can't be resolved itself");if(n=ne(e))D((function(){var u={_w:i,_d:!1};try{n.call(e,w($resolve,u,1),w(le,u,1))}catch(e){le.call(u,e)}}));else{i._v=e;i._s=1;ie(i,!1)}}catch(e){le.call({_w:i,_d:!1},e)}}};if(!re){J=function Promise(e){B(this,J,"Promise","_h");k(e);u.call(this);try{e(w(ue,this,1),w(le,this,1))}catch(e){le.call(this,e)}};(u=function Promise(e){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1}).prototype=e("./_redefine-all")(J.prototype,{then:function then(e,n){var i=te(I(this,J));i.ok="function"!=typeof e||e;i.fail="function"==typeof n&&n;i.domain=$?X.domain:void 0;this._c.push(i);this._a&&this._a.push(i);this._s&&ie(this,!1);return i.promise},catch:function _catch(e){return this.then(void 0,e)}});p=function OwnPromiseCapability(){var e=new u;this.promise=e;this.resolve=w(ue,e,1);this.reject=w(le,e,1)};R.f=te=function newPromiseCapability(e){return e===J||e===_?new p(e):d(e)}}P(P.G+P.W+P.F*!re,{Promise:J});e("./_set-to-string-tag")(J,"Promise");e("./_set-species")("Promise");_=e("./_core").Promise;P(P.S+P.F*!re,"Promise",{reject:function reject(e){var n=te(this);(0,n.reject)(e);return n.promise}});P(P.S+P.F*(y||!re),"Promise",{resolve:function resolve(e){return G(y&&this===_?J:this,e)}});P(P.S+P.F*!(re&&e("./_iter-detect")((function(e){J.all(e).catch(ee)}))),"Promise",{all:function all(e){var n=this,i=te(n),u=i.resolve,d=i.reject,p=N((function(){var i=[],p=0,_=1;j(e,!1,(function(e){var y=p++,b=!1;i.push(void 0);_++;n.resolve(e).then((function(e){if(!b){b=!0;i[y]=e;--_||u(i)}}),d)}));--_||u(i)}));p.e&&d(p.v);return i.promise},race:function race(e){var n=this,i=te(n),u=i.reject,d=N((function(){j(e,!1,(function(e){n.resolve(e).then(i.resolve,u)}))}));d.e&&u(d.v);return i.promise}})},{"./_a-function":22,"./_an-instance":24,"./_classof":31,"./_core":36,"./_ctx":38,"./_export":43,"./_for-of":45,"./_global":46,"./_is-object":55,"./_iter-detect":59,"./_library":62,"./_microtask":64,"./_new-promise-capability":65,"./_perform":75,"./_promise-resolve":76,"./_redefine-all":78,"./_set-species":82,"./_set-to-string-tag":83,"./_species-constructor":86,"./_task":88,"./_user-agent":96,"./_wks":98}],110:[function(e,n,i){var u=e("./_collection-strong"),d=e("./_validate-collection");n.localExports=e("./_collection")("Set",(function(e){return function Set(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function add(e){return u.def(d(this,"Set"),e=0===e?0:e,e)}},u)},{"./_collection":35,"./_collection-strong":33,"./_validate-collection":97}],111:[function(e,n,i){var u=e("./_export"),d=e("./_to-absolute-index"),p=String.fromCharCode,_=String.fromCodePoint;u(u.S+u.F*(!!_&&1!=_.length),"String",{fromCodePoint:function fromCodePoint(e){for(var n,i=[],u=arguments.length,_=0;u>_;){n=+arguments[_++];if(d(n,1114111)!==n)throw RangeError(n+" is not a valid code point");i.push(n<65536?p(n):p(55296+((n-=65536)>>10),n%1024+56320))}return i.join("")}})},{"./_export":43,"./_to-absolute-index":89}],112:[function(e,n,i){var u=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e);this._i=0}),(function(){var e,n=this._t,i=this._i;if(i>=n.length)return{value:void 0,done:!0};e=u(n,i);this._i+=e.length;return{value:e,done:!1}}))},{"./_iter-define":58,"./_string-at":87}],113:[function(e,n,i){e("./_set-collection-from")("Map")},{"./_set-collection-from":80}],114:[function(e,n,i){e("./_set-collection-of")("Map")},{"./_set-collection-of":81}],115:[function(e,n,i){var u=e("./_export");u(u.P+u.R,"Map",{toJSON:e("./_collection-to-json")("Map")})},{"./_collection-to-json":34,"./_export":43}],116:[function(e,n,i){var u=e("./_export"),d=e("./_core"),p=e("./_global"),_=e("./_species-constructor"),y=e("./_promise-resolve");u(u.P+u.R,"Promise",{finally:function _finally(e){var n=_(this,d.Promise||p.Promise),i="function"==typeof e;return this.then(i?function(i){return y(n,e()).then((function(){return i}))}:e,i?function(i){return y(n,e()).then((function(){throw i}))}:e)}})},{"./_core":36,"./_export":43,"./_global":46,"./_promise-resolve":76,"./_species-constructor":86}],117:[function(e,n,i){var u=e("./_export"),d=e("./_new-promise-capability"),p=e("./_perform");u(u.S,"Promise",{try:function _try(e){var n=d.f(this),i=p(e);(i.e?n.reject:n.resolve)(i.v);return n.promise}})},{"./_export":43,"./_new-promise-capability":65,"./_perform":75}],118:[function(e,n,i){e("./_set-collection-from")("Set")},{"./_set-collection-from":80}],119:[function(e,n,i){e("./_set-collection-of")("Set")},{"./_set-collection-of":81}],120:[function(e,n,i){var u=e("./_export");u(u.P+u.R,"Set",{toJSON:e("./_collection-to-json")("Set")})},{"./_collection-to-json":34,"./_export":43}],121:[function(e,n,i){e("./es6.array.iterator");for(var u=e("./_global"),d=e("./_hide"),p=e("./_iterators"),_=e("./_wks")("toStringTag"),y="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(","),b=0;b<y.length;b++){var w=y[b],x=u[w],P=x&&x.prototype;P&&!P[_]&&d(P,_,w);p[w]=p.Array}},{"./_global":46,"./_hide":48,"./_iterators":61,"./_wks":98,"./es6.array.iterator":102}],122:[function(e,n,i){i.byteLength=function byteLength(e){var n=getLens(e),i=n[0],u=n[1];return 3*(i+u)/4-u};i.toByteArray=function toByteArray(e){var n,i,u=getLens(e),_=u[0],y=u[1],b=new p(function _byteLength(e,n,i){return 3*(n+i)/4-i}(0,_,y)),w=0,x=y>0?_-4:_;for(i=0;i<x;i+=4){n=d[e.charCodeAt(i)]<<18|d[e.charCodeAt(i+1)]<<12|d[e.charCodeAt(i+2)]<<6|d[e.charCodeAt(i+3)];b[w++]=n>>16&255;b[w++]=n>>8&255;b[w++]=255&n}if(2===y){n=d[e.charCodeAt(i)]<<2|d[e.charCodeAt(i+1)]>>4;b[w++]=255&n}if(1===y){n=d[e.charCodeAt(i)]<<10|d[e.charCodeAt(i+1)]<<4|d[e.charCodeAt(i+2)]>>2;b[w++]=n>>8&255;b[w++]=255&n}return b};i.fromByteArray=function fromByteArray(e){for(var n,i=e.length,d=i%3,p=[],_=0,y=i-d;_<y;_+=16383)p.push(encodeChunk(e,_,_+16383>y?y:_+16383));if(1===d){n=e[i-1];p.push(u[n>>2]+u[n<<4&63]+"==")}else if(2===d){n=(e[i-2]<<8)+e[i-1];p.push(u[n>>10]+u[n>>4&63]+u[n<<2&63]+"=")}return p.join("")};for(var u=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=_.length;y<b;++y){u[y]=_[y];d[_.charCodeAt(y)]=y}d["-".charCodeAt(0)]=62;d["_".charCodeAt(0)]=63;function getLens(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=n);return[i,i===n?0:4-i%4]}function encodeChunk(e,n,i){for(var d,p,_=[],y=n;y<i;y+=3){d=(e[y]<<16&16711680)+(e[y+1]<<8&65280)+(255&e[y+2]);_.push(u[(p=d)>>18&63]+u[p>>12&63]+u[p>>6&63]+u[63&p])}return _.join("")}},{}],123:[function(e,n,i){(function(e){(function(){var i=function(){function clone(n,i,u,d){if("object"==typeof i){u=i.depth;d=i.prototype;i.filter;i=i.circular}var p=[],_=[],y=void 0!==e;void 0===i&&(i=!0);void 0===u&&(u=1/0);return function _clone(n,u){if(null===n)return null;if(0==u)return n;var b,w;if("object"!=typeof n)return n;if(clone.__isArray(n))b=[];else if(clone.__isRegExp(n)){b=new RegExp(n.source,__getRegExpFlags(n));n.lastIndex&&(b.lastIndex=n.lastIndex)}else if(clone.__isDate(n))b=new Date(n.getTime());else{if(y&&e.isBuffer(n)){b=e.allocUnsafe?e.allocUnsafe(n.length):new e(n.length);n.copy(b);return b}if(void 0===d){w=Object.getPrototypeOf(n);b=Object.create(w)}else{b=Object.create(d);w=d}}if(i){var x=p.indexOf(n);if(-1!=x)return _[x];p.push(n);_.push(b)}for(var P in n){var E;w&&(E=Object.getOwnPropertyDescriptor(w,P));E&&null==E.set||(b[P]=_clone(n[P],u-1))}return b}(n,u)}clone.clonePrototype=function clonePrototype(e){if(null===e)return null;var n=function c(){};n.prototype=e;return new n};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;clone.__isDate=function __isDate(e){return"object"==typeof e&&"[object Date]"===__objToStr(e)};clone.__isArray=function __isArray(e){return"object"==typeof e&&"[object Array]"===__objToStr(e)};clone.__isRegExp=function __isRegExp(e){return"object"==typeof e&&"[object RegExp]"===__objToStr(e)};function __getRegExpFlags(e){var n="";e.global&&(n+="g");e.ignoreCase&&(n+="i");e.multiline&&(n+="m");return n}clone.__getRegExpFlags=__getRegExpFlags;return clone}();"object"==typeof n&&n.localExports&&(n.localExports=i)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:152}],124:[function(e,n,i){function Tree(){this.table=new Uint16Array(16);this.trans=new Uint16Array(288)}function Data(e,n){this.source=e;this.sourceIndex=0;this.tag=0;this.bitcount=0;this.dest=n;this.destLen=0;this.ltree=new Tree;this.dtree=new Tree}var u=new Tree,d=new Tree,p=new Uint8Array(30),_=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 Tree,P=new Uint8Array(320);function tinf_build_bits_base(e,n,i,u){var d,p;for(d=0;d<i;++d)e[d]=0;for(d=0;d<30-i;++d)e[d+i]=d/i|0;for(p=u,d=0;d<30;++d){n[d]=p;p+=1<<e[d]}}var E=new Uint16Array(16);function tinf_build_tree(e,n,i,u){var d,p;for(d=0;d<16;++d)e.table[d]=0;for(d=0;d<u;++d)e.table[n[i+d]]++;e.table[0]=0;for(p=0,d=0;d<16;++d){E[d]=p;p+=e.table[d]}for(d=0;d<u;++d)n[i+d]&&(e.trans[E[n[i+d]]++]=d)}function tinf_getbit(e){if(!e.bitcount--){e.tag=e.source[e.sourceIndex++];e.bitcount=7}var n=1&e.tag;e.tag>>>=1;return n}function tinf_read_bits(e,n,i){if(!n)return i;for(;e.bitcount<24;){e.tag|=e.source[e.sourceIndex++]<<e.bitcount;e.bitcount+=8}var u=e.tag&65535>>>16-n;e.tag>>>=n;e.bitcount-=n;return u+i}function tinf_decode_symbol(e,n){for(;e.bitcount<24;){e.tag|=e.source[e.sourceIndex++]<<e.bitcount;e.bitcount+=8}var i=0,u=0,d=0,p=e.tag;do{u=2*u+(1&p);p>>>=1;++d;i+=n.table[d];u-=n.table[d]}while(u>=0);e.tag=p;e.bitcount-=d;return n.trans[i+u]}function tinf_decode_trees(e,n,i){var u,d,p,_,y,b;u=tinf_read_bits(e,5,257);d=tinf_read_bits(e,5,1);p=tinf_read_bits(e,4,4);for(_=0;_<19;++_)P[_]=0;for(_=0;_<p;++_){var E=tinf_read_bits(e,3,0);P[w[_]]=E}tinf_build_tree(x,P,0,19);for(y=0;y<u+d;){var k=tinf_decode_symbol(e,x);switch(k){case 16:var B=P[y-1];for(b=tinf_read_bits(e,2,3);b;--b)P[y++]=B;break;case 17:for(b=tinf_read_bits(e,3,3);b;--b)P[y++]=0;break;case 18:for(b=tinf_read_bits(e,7,11);b;--b)P[y++]=0;break;default:P[y++]=k}}tinf_build_tree(n,P,0,u);tinf_build_tree(i,P,u,d)}function tinf_inflate_block_data(e,n,i){for(;;){var u=tinf_decode_symbol(e,n);if(256===u)return 0;if(u<256)e.dest[e.destLen++]=u;else{var d,w,x,P;d=tinf_read_bits(e,p[u-=257],_[u]);w=tinf_decode_symbol(e,i);for(P=x=e.destLen-tinf_read_bits(e,y[w],b[w]);P<x+d;++P)e.dest[e.destLen++]=e.dest[P]}}}function tinf_inflate_uncompressed_block(e){for(var n,i;e.bitcount>8;){e.sourceIndex--;e.bitcount-=8}if((n=256*(n=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;e.sourceIndex+=4;for(i=n;i;--i)e.dest[e.destLen++]=e.source[e.sourceIndex++];e.bitcount=0;return 0}!function tinf_build_fixed_trees(e,n){var i;for(i=0;i<7;++i)e.table[i]=0;e.table[7]=24;e.table[8]=152;e.table[9]=112;for(i=0;i<24;++i)e.trans[i]=256+i;for(i=0;i<144;++i)e.trans[24+i]=i;for(i=0;i<8;++i)e.trans[168+i]=280+i;for(i=0;i<112;++i)e.trans[176+i]=144+i;for(i=0;i<5;++i)n.table[i]=0;n.table[5]=32;for(i=0;i<32;++i)n.trans[i]=i}(u,d);tinf_build_bits_base(p,_,4,3);tinf_build_bits_base(y,b,2,1);p[28]=0;_[28]=258;n.localExports=function tinf_uncompress(e,n){var i,p,_=new Data(e,n);do{i=tinf_getbit(_);switch(tinf_read_bits(_,2,0)){case 0:p=tinf_inflate_uncompressed_block(_);break;case 1:p=tinf_inflate_block_data(_,u,d);break;case 2:tinf_decode_trees(_,_.ltree,_.dtree);p=tinf_inflate_block_data(_,_.ltree,_.dtree);break;default:p=-3}if(0!==p)throw new Error("Data error")}while(!i);return _.destLen<_.dest.length?"function"==typeof _.dest.slice?_.dest.slice(0,_.destLen):_.dest.subarray(0,_.destLen):_.dest}},{}],125:[function(e,n,i){var u=e("unicode-trie"),d=e("base64-js"),p={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","Osage","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","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],eaw:["N","Na","A","W","H","F"]},_="AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbOuQcJw/63sDp68wB9iwP5AO+mBpV0R5VDDeyQUFCel1G+4KHBgEVFS0YK+m2sXLWLuGTlkVAd97WwKKdacjWElRCuDRauf33l/yVcDF6sVPKeTes99FC1NpNWcpieGSV/IbO8PCTy5pbUR1U8lxzf4T+y6fZMxOz3LshkQLeeDSd0WmUrQgajmbktrxsb2AZ0ACw2Vgni+gV/m+KvCRWLg08Clx7uhql+v9XySGcjjOHlsp8vBw/e8HS7dtiqF6T/XcSXuaMW66GF1g4q9YyBadHqy3Y5jin1c7yZos6BBr6dsomSHxiUHanYtcYQwnMMZhRhOnaYJeyJzaRuukyCUh48+e/BUvk/aEfDp8ag+jD64BHxNnQ5v/E7WRk7eLjGV13I3oqy45YNONi/1op1oDr7rPjkhPsTXgUpQtGDPlIs55KhQaic9kSGs/UrZ2QKQOflB8MTEQxRF9pullToWO7Eplan6mcMRFnUu2441yxi23x+KqKlr7RWWsi9ZXMWlr8vfP3llk1m2PRj0yudccxBuoa7VfIgRmnFPGX6Pm1WIfMm/Rm4n/xTn8IGqA0GWuqgu48pEUO0U9nN+ZdIvFpPb7VDPphIfRZxznlHeVFebkd9l+raXy9BpTMcIUIvBfgHEb6ndGo8VUkxpief14KjzFOcaANfgvFpvyY8lE8lE4raHizLpluPzMks1hx/e1Hok5yV0p7qQH7GaYeMzzZTFvRpv6k6iaJ4yNqzBvN8J7B430h2wFm1IBPcqbou33G7/NWPgopl4Mllla6e24L3TOTVNkza2zv3QKuDWTeDpClCEYgTQ+5vEBSQZs/rMF50+sm4jofTgWLqgX1x3TkrDEVaRqfY/xZizFZ3Y8/DFEFD31VSfBQ5raEB6nHnZh6ddehtclQJ8fBrldyIh99LNnV32HzKEej04hk6SYjdauCa4aYW0ru/QxvQRGzLKOAQszf3ixJypTW3WWL6BLSF2EMCMIw7OUvWBC6A/gDc2D1jvBapMCc7ztx6jYczwTKsRLL6dMNXb83HS8kdD0pTMMj161zbVHkU0mhSHo9SlBDDXdN6hDvRGizmohtIyR3ot8tF5iUG4GLNcXeGvBudSFrHu+bVZb9jirNVG+rQPI51A7Hu8/b0UeaIaZ4UgDO68PkYx3PE2HWpKapJ764Kxt5TFYpywMy4DLQqVRy11I7SOLhxUFmqiEK52NaijWArIfCg6qG8q5eSiwRCJb1R7GDJG74TrYgx/lVq7w9++Kh929xSJEaoSse5fUOQg9nMAnIZv+7fwVRcNv3gOHI46Vb5jYUC66PYHO6lS+TOmvEQjuYmx4RkffYGxqZIp/DPWNHAixbRBc+XKE3JEOgs4jIwu/dSAwhydruOGF39co91aTs85JJ3Z/LpXoF43hUwJsb/M1Chzdn8HX8vLXnqWUKvRhNLpfAF4PTFqva1sBQG0J+59HyYfmQ3oa4/sxZdapVLlo/fooxSXi/dOEQWIWq8E0FkttEyTFXR2aNMPINMIzZwCNEheYTVltsdaLkMyKoEUluPNAYCM2IG3br0DLy0fVNWKHtbSKbBjfiw7Lu06gQFalC7RC9BwRMSpLYDUo9pDtDfzwUiPJKLJ2LGcSphWBadOI/iJjNqUHV7ucG8yC6+iNM9QYElqBR7ECFXrcTgWQ3eG/tCWacT9bxIkfmxPmi3vOd36KxihAJA73vWNJ+Y9oapXNscVSVqS5g15xOWND/WuUCcA9YAAg6WFbjHamrblZ5c0L6Zx1X58ZittGcfDKU697QRSqW/g+RofNRyvrWMrBn44cPvkRe2HdTu/Cq01C5/riWPHZyXPKHuSDDdW8c1XPgd6ogvLh20qEIu8c19sqr4ufyHrwh37ZN5MkvY1dsGmEz9pUBTxWrvvhNyODyX2Q1k/fbX/T/vbHNcBrmjgDtvBdtZrVtiIg5iXQuzO/DEMvRX8Mi1zymSlt92BGILeKItjoShJXE/H7xwnf0Iewb8BFieJ9MflEBCQYEDm8eZniiEPfGoaYiiEdhQxHQNr2AuRdmbL9mcl18Kumh+HEZLp6z+j35ML9zTbUwahUZCyQQOgQrGfdfQtaR/OYJ/9dYXb2TWZFMijfCA8Nov4sa5FFDUe1T68h4q08WDE7JbbDiej4utRMR9ontevxlXv6LuJTXt1YEv8bDzEt683PuSsIN0afvu0rcBu9AbXZbkOG3K3AhtqQ28N23lXm7S3Yn6KXmAhBhz+GeorJJ4XxO/b3vZk2LXp42+QvsVxGSNVpfSctIFMTR1bD9t70i6sfNF3WKz/uKDEDCpzzztwhL45lsw89H2IpWN10sXHRlhDse9KCdpP5qNNpU84cTY+aiqswqR8XZ9ea0KbVRwRuOGQU3csAtV2fSbnq47U6es6rKlWLWhg3s/B9C9g+oTyp6RtIldR51OOkP5/6nSy6itUVPcMNOp4M/hDdKOz3uK6srbdxOrc2cJgr1Sg02oBxxSky6V7JaG+ziNwlfqnjnvh2/uq1lKfbp+qpwq/D/5OI5gkFl5CejKGxfc2YVJfGqc4E0x5e9PHK2ukbHNI7/RZV6LNe65apbTGjoCaQls0txPPbmQbCQn+/upCoXRZy9yzorWJvZ0KWcbXlBxU/d5I4ERUTxMuVWhSMmF677LNN7NnLwsmKawXkCgbrpcluOl0WChR1qhtSrxGXHu251dEItYhYX3snvn1gS2uXuzdTxCJjZtjsip0iT2sDC0qMS7Bk9su2NyXjFK5/f5ZoWwofg3DtTyjaFqspnOOTSh8xK/CKUFS57guVEkw9xoQuRCwwEO9Lu9z2vYxSa9NFV8DvSxv2C4WYLYF8Nrc4DzWkzNsk81JJOlZ/LYJrGCoj4MmZpnf3AXmzxT4rtl9jsqljEyedz468SGKdBiQzyz/qWKEhFg45ZczlZZ3KGL3l6sn+3TTa3zMVMhPa1obGp/z+fvY0QXTrJTf1XAT3EtQdUfYYlmWZyvPZ/6rWwU7UOQei7pVE0osgN94Iy+T1+omE6z4Rh2O20FjgBeK2y1mcoFiMDOJvuZPn5Moy9fmFH3wyfKvn4+TwfLvt/lHTTVnvrtoUWRBiQXhiNM8nE6ZoWeux/Z0b2unRcdUzdDpmL7CAgd1ToRXwgmHTZOgiGtVT+xr1QH9ObebRTT4NzL+XSpLuuWp62GqQvJVTPoZOeJCb6gIwd9XHMftQ+Kc08IKKdKQANSJ1a2gve3JdRhO0+tNiYzWAZfd7isoeBu67W7xuK8WX7nhJURld98Inb0t/dWOSau/kDvV4DJo/cImw9AO2Gvq0F2n0M7yIZKL8amMbjYld+qFls7hq8Acvq97K2PrCaomuUiesu7qNanGupEl6J/iem8lyr/NMnsTr6o41PO0yhQh3hPFN0wJP7S830je9iTBLzUNgYH+gUZpROo3rN2qgCI+6GewpX8w8CH+ro6QrWiStqmcMzVa3vEel+3/dDxMp0rDv1Q6wTMS3K64zTT6RWzK1y643im25Ja7X2ePCV2mTswd/4jshZPo4bLnerqIosq/hy2bKUAmVn9n4oun1+a0DIZ56UhVwmZHdUNpLa8gmPvxS1eNvCF1T0wo1wKPdCJi0qOrWz7oYRTzgTtkzEzZn308XSLwUog4OWGKJzCn/3FfF9iA32dZHSv30pRCM3KBY9WZoRhtdK/ChHk6DEQBsfV6tN2o1Cn0mLtPBfnkS+qy1L2xfFe9TQPtDE1Be44RTl82E9hPT2rS2+93LFbzhQQO3C/hD2jRFH3BWWbasAfuMhRJFcTri73eE835y016s22DjoFJ862WvLj69fu2TgSF3RHia9D5DSitlQAXYCnbdqjPkR287Lh6dCHDapos+eFDvcZPP2edPmTFxznJE/EBLoQQ0Qmn9EkZOyJmHxMbvKYb8o21ZHmv5YLqgsEPk9gWZwYQY9wLqGXuax/8QlV5qDaPbq9pLPT1yp+zOWKmraEy1OUJI7zdEcEmvBpbdwLrDCgEb2xX8S/nxZgjK4bRi+pbOmbh8bEeoPvU/L9ndx9kntlDALbdAvp0O8ZC3zSUnFg4cePsw7jxewWvL7HRSBLUn6J7vTH9uld5N76JFPgBCdXGF221oEJk++XfRwXplLSyrVO7HFWBEs99nTazKveW3HpbD4dH/YmdAl+lwbSt8BQWyTG7jAsACI7bPPUU9hI9XUHWqQOuezHzUjnx5Qqs6T1qNHfTTHleDtmqK7flA9a0gz2nycIpz1FHBuWxKNtUeTdqP29Fb3tv+tl5JyBqXoR+vCsdzZwZUhf6Lu8bvkB9yQP4x7GGegB0ym0Lpl03Q7e+C0cDsm9GSDepCDji7nUslLyYyluPfvLyKaDSX4xpR+nVYQjQQn5F8KbY1gbIVLiK1J3mW90zTyR1bqApX2BlWh7KG8LAY9/S9nWC0XXh9pZZo6xuir12T43rkaGfQssbQyIslA7uJnSHOV22NhlNtUo0czxPAsXhh8tIQYaTM4l/yAlZlydTcXhlG22Gs/n3BxKBd/3ZjYwg3NaUurVXhNB+afVnFfNr9TbC9ksNdvwpNfeHanyJ8M6GrIVfLlYAPv0ILe4dn0Z+BJSbJkN7eZY/c6+6ttDYcIDeUKIDXqUSE42Xdh5nRbuaObozjht0HJ5H1e+em+NJi/+8kQlyjCbJpPckwThZeIF9/u7lrVIKNeJLCN/TpPAeXxvd31/CUDWHK9MuP1V1TJgngzi4V0qzS3SW3Qy5UiGHqg02wQa5tsEl9s/X9nNMosgLlUgZSfCBj1DiypLfhr9/r0nR0XY2tmhDOcUS4E7cqa4EJBhzqvpbZa35Q5Iz5EqmhYiOGDAYk606Tv74+KGfPjKVuP15rIzgW0I7/niOu9el/sn2bRye0gV+GrePDRDMHjwO1lEdeXH8N+UTO3IoN18kpI3tPxz+fY+n2MGMSGFHAx/83tKeJOl+2i+f1O9v6FfEDBbqrw+lpM8Anav7zHNr7hE78nXUtPNodMbCnITWA7Ma/IHlZ50F9hWge/wzOvSbtqFVFtkS8Of2nssjZwbSFdU+VO8z6tCEc9UA9ACxT5zIUeSrkBB/v1krOpm7bVMrGxEKfI6LcnpB4D8bvn2hDKGqKrJaVAJuDaBEY3F7eXyqnFWlOoFV/8ZLspZiZd7orXLhd4mhHQgbuKbHjJWUzrnm0Dxw/LJLzXCkh7slMxKo8uxZIWZfdKHlfI7uj3LP6ARAuWdF7ZmZ7daOKqKGbz5LxOggTgS39oEioYmrqkCeUDvbxkBYKeHhcLmMN8dMF01ZMb32IpL/cH8R7VHQSI5I0YfL14g9d7P/6cjB1JXXxbozEDbsrPdmL8ph7QW10jio+v7YsqHKQ6xrBbOVtxU0/nFfzUGZwIBLwyUvg49ii+54nv9FyECBpURnQK4Ox6N7lw5fsjdd5l/2SwBcAHMJoyjO1Pifye2dagaOwCVMqdJWAo77pvBe0zdJcTWu5fdzPNfV2p1pc7/JKQ8zhKkwsOELUDhXygPJ5oR8Vpk2lsCen3D3QOQp2zdrSZHjVBstDF/wWO98rrkQ6/7zt/Drip7OHIug1lomNdmRaHRrjmqeodn22sesQQPgzimPOMqC60a5+i/UYh51uZm+ijWkkaI2xjrBO2558DZNZMiuDQlaVAvBy2wLn/bR3FrNzfnO/9oDztYqxZrr7JMIhqmrochbqmQnKowxW29bpqTaJu7kW1VotC72QkYX8OoDDdMDwV1kJRk3mufgJBzf+iwFRJ7XWQwO5ujVglgFgHtycWiMLx5N+6XU+TulLabWjOzoao03fniUW0xvIJNPbk7CQlFZd/RCOPvgQbLjh5ITE8NVJeKt3HGr6JTnFdIzcVOlEtwqbIIX0IM7saC+4N5047MTJ9+Wn11EhyEPIlwsHE5utCeXRjQzlrR+R1Cf/qDzcNbqLXdk3J7gQ39VUrrEkS/VMWjjg+t2oYrqB0tUZClcUF6+LBC3EQ7KnGIwm/qjZX4GKPtjTX1zQKV6nPAb2t/Rza5IqKRf8i2DFEhV/YSifX0YwsiF6TQnp48Gr65TFq0zUe6LGjiY7fq0LSGKL1VnC6ESI2yxvt3XqBx53B3gSlGFeJcPbUbonW1E9E9m4NfuwPh+t5QjRxX34lvBPVxwQd7aeTd+r9dw5CiP1pt8wMZoMdni7GapYdo6KPgeQKcmlFfq4UYhvV0IBgeiR3RnTMBaqDqpZrTRyLdsp4l0IXZTdErfH0sN3dqBG5vRIx3VgCYcHmmkqJ8Hyu3s9K9uBD1d8cZUEx3qYcF5vsqeRpF1GOg8emeWM2OmBlWPdZ6qAXwm3nENFyh+kvXk132PfWAlN0kb7yh4fz2T7VWUY/hEXX5DvxGABC03XRpyOG8t/u3Gh5tZdpsSV9AWaxJN7zwhVglgII1gV28tUViyqn4UMdIh5t+Ea2zo7PO48oba0TwQbiSZOH4YhD578kPF3reuaP7LujPMsjHmaDuId9XEaZBCJhbXJbRg5VCk3KJpryH/+8S3wdhR47pdFcmpZG2p0Bpjp/VbvalgIZMllYX5L31aMPdt1J7r/7wbixt0Mnz2ZvNGTARHPVD+2O1D8SGpWXlVnP2ekgon55YiinADDynyaXtZDXueVqbuTi8z8cHHK325pgqM+mWZwzHeEreMvhZopAScXM14SJHpGwZyRljMlDvcMm9FZ/1e9+r/puOnpXOtc9Iu2fmgBfEP9cGW1Fzb1rGlfJ08pACtq1ZW18bf2cevebzVeHbaA50G9qoUp39JWdPHbYkPCRXjt4gzlq3Cxge28Mky8MoS/+On72kc+ZI2xBtgJytpAQHQ1zrEddMIVyR5urX6yBNu8v5lKC8eLdGKTJtbgIZ3ZyTzSfWmx9f+cvcJe8yM39K/djkp2aUTE/9m2Lj5jg7b8vdRAer7DO3SyLNHs1CAm5x5iAdh2yGJYivArZbCBNY88Tw+w+C1Tbt7wK3zl2rzTHo/D8/gb3c3mYrnEIEipYqPUcdWjnTsSw471O3EUN7Gtg4NOAs9PJrxm03VuZKa5xwXAYCjt7Gs01Km6T2DhOYUMoFcCSu7Hk1p3yP1eG+M3v3Q5luAze6WwBnZIYO0TCucPWK+UJ36KoJ8Y+vpavhLO8g5ed704IjlQdfemrMu//EvPYXTQSGIPPfiagJS9nMqP5IvkxN9pvuJz7h8carPXTKMq8jnTeL0STan6dnLTAqwIswcIwWDR2KwbGddAVN8SYWRB7kfBfBRkSXzvHlIF8D6jo64kUzYk5o/n8oLjKqat0rdXvQ86MkwQGMnnlcasqPPT2+mVtUGb32KuH6cyZQenrRG11TArcAl27+nvOMBDe++EKHf4YdyGf7mznzOz33cFFGEcv329p4qG2hoaQ8ULiMyVz6ENcxhoqGnFIdupcn7GICQWuw3yO3W8S33mzCcMYJ8ywc7U7rmaQf/W5K63Gr4bVTpXOyOp4tbaPyIaatBNpXqlmQUTSZXjxPr19+73PSaT+QnI35YsWn6WpfJjRtK8vlJZoTSgjaRU39AGCkWOZtifJrnefCrqwTKDFmuWUCukEsYcRrMzCoit28wYpP7kSVjMD8WJYQiNc2blMjuqYegmf6SsfC1jqz8XzghMlOX+gn/MKZmgljszrmehEa4V98VreJDxYvHr3j7IeJB9/sBZV41BWT/AZAjuC5XorlIPnZgBAniBEhanp0/0+qZmEWDpu8ige1hUPIyTo6T6gDEcFhWSoduNh8YSu65KgMOGBw7VlNYzNIgwHtq9KP2yyTVysqX5v12sf7D+vQUdR2dRDvCV40rIInXSLWT/yrC6ExOQxBJwIDbeZcl3z1yR5Rj3l8IGpxspapnvBL+fwupA3b6fkFceID9wgiM1ILB0cHVdvo/R4xg8yqKXT8efl0GnGX1/27FUYeUW2L/GNRGGWVGp3i91oaJkb4rybENHre9a2P5viz/yqk8ngWUUS+Kv+fu+9BLFnfLiLXOFcIeBJLhnayCiuDRSqcx0Qu68gVsGYc6EHD500Fkt+gpDj6gvr884n8wZ5o6q7xtL5wA0beXQnffWYkZrs2NGIRgQbsc5NB302SVx+R4ROvmgZaR8wBcji128BMfJ9kcvJ4DC+bQ57kRmv5yxgU4ngZfn0/JNZ8JBwxjTqS+s9kjJFG1unGUGLwMiIuXUD9EFhNIJuyCEAmVZSIGKH4G6v1gRR1LyzQKH2ZqiI1DnHMoDEZspbDjTeaFIAbSvjSq3A+n46y9hhVM8wIpnARSXyzmOD96d9UXvFroSPgGw1dq2vdEqDq9fJN1EbL2WulNmHkFDvxSO9ZT/RX/Bw2gA/BrF90XrJACereVfbV/YXaKfp77Nmx5NjEIUlxojsy7iN7nBHSZigfsbFyVOX1ZTeCCxvqnRSExP4lk5ZeYlRu9caaa743TWNdchRIhEWwadsBIe245C8clpaZ4zrPsk+OwXzxWCvRRumyNSLW5KWaSJyJU95cwheK76gr7228spZ3hmTtLyrfM2QRFqZFMR8/Q6yWfVgwTdfX2Ry4w3+eAO/5VT5nFb5NlzXPvBEAWrNZ6Q3jbH0RF4vcbp+fDngf/ywpoyNQtjrfvcq93AVb1RDWRghvyqgI2BkMr1rwYi8gizZ0G9GmPpMeqPerAQ0dJbzx+KAFM4IBq6iSLpZHUroeyfd9o5o+4fR2EtsZBoJORQEA4SW0CmeXSnblx2e9QkCHIodyqV6+g5ETEpZsLqnd/Na60EKPX/tQpPEcO+COIBPcQdszDzSiHGyQFPly/7KciUh1u+mFfxTCHGv9nn2WqndGgeGjQ/kr02qmTBX7Hc1qiEvgiSz1Tz/sy7Es29wvn6FrDGPP7asXlhOaiHxOctPvTptFA1kHFUk8bME7SsTSnGbFbUrssxrq70LhoSh5OwvQna+w84XdXhZb2sloJ4ZsCg3j+PrjJL08/JBi5zGd6ud/ZxhmcGKLOXPcNunQq5ESW92iJvfsuRrNYtawWwSmNhPYoFj2QqWNF0ffLpGt/ad24RJ8vkb5sXkpyKXmvFG5Vcdzf/44k3PBL/ojJ52+kWGzOArnyp5f969oV3J2c4Li27Nkova9VwRNVKqN0V+gV+mTHitgkXV30aWd3A1RSildEleiNPA+5cp+3+T7X+xfHiRZXQ1s4FA9TxIcnveQs9JSZ5r5qNmgqlW4zMtZ6rYNvgmyVcywKtu8ZxnSbS5vXlBV+NXdIfi3+xzrnJ0TkFL+Un8v1PWOC2PPFCjVPq7qTH7mOpzOYj/b4h0ceT+eHgr97Jqhb1ziVfeANzfN8bFUhPKBi7hJBCukQnB0aGjFTYLJPXL26lQ2b80xrOD5cFWgA8hz3St0e69kwNnD3+nX3gy12FjrjO+ddRvvvfyV3SWbXcxqNHfmsb9u1TV+wHTb9B07/L2sB8WUHJ9eeNomDyysEWZ0deqEhH/oWI2oiEh526gvAK1Nx2kIhNvkYR+tPYHEa9j+nd1VBpQP1uzSjIDO+fDDB7uy029rRjDC5Sk6aKczyz1D5uA9Lu+Rrrapl8JXNL3VRllNQH2K1ZFxOpX8LprttfqQ56MbPM0IttUheXWD/mROOeFqGUbL+kUOVlXLTFX/525g4faLEFO4qWWdmOXMNvVjpIVTWt650HfQjX9oT3Dg5Au6+v1/Ci78La6ZOngYCFPT1AUwxQuZ0yt5xKdNXLaDTISMTeCj16XTryhM36K2mfGRIgot71voWs8tTpL/f1rvcwv3LSDf+/G8THCT7NpfHWcW+lsF/ol8q9Bi6MezNTqp0rpp/kJRiVfNrX/w27cRRTu8RIIqtUblBMkxy4jwAVqCjUJkiPBj2cAoVloG8B2/N5deLdMhDb7xs5nhd3dubJhuj8WbaFRyu1L678DHhhA+rMimNo4C1kGpp0tD/qnCfCFHejpf0LJX43OTr578PY0tnIIrlWyNYyuR/ie6j2xNb1OV6u0dOX/1Dtcd7+ya9W+rY2LmnyQMtk8SMLTon8RAdwOaN2tNg5zVnDKlmVeOxPV2vhHIo9QEPV7jc3f+zVDquiNg1OaHX3cZXJDRY5MJpo+VanAcmqp4oasYLG+wrXUL5vJU0kqk2hGEskhP+Jjigrz1l6QnEwp6n8PMVeJp70Ii6ppeaK9GhF6fJE00ceLyxv08tKiPat4QdxZFgSbQknnEiCLD8Qc1rjazVKM3r3gXnnMeONgdz/yFV1q+haaN+wnF3Fn4uYCI9XsKOuVwDD0LsCO/f0gj5cmxCFcr7sclIcefWjvore+3aSU474cyqDVxH7w1RX3CHsaqsMRX17ZLgjsDXws3kLm2XJdM3Ku383UXqaHqsywzPhx7NFir0Fqjym/w6cxD2U9ypa3dx7Z12w/fi3Jps8sqJ8f8Ah8aZAvkHXvIRyrsxK7rrFaNNdNvjI8+3Emri195DCNa858anj2Qdny6Czshkn4N2+1m+k5S8sunX3Ja7I+JutRzg1mc2e9Yc0Zv9PZn1SwhxIdU9sXwZRTd/J5FoUm0e+PYREeHg3oc2YYzGf2xfJxXExt4pT3RfDRHvMXLUmoXOy63xv5pLuhOEax0dRgSywZ/GH+YBXFgCeTU0hZ8SPEFsn8punp1Kurd1KgXxUZ+la3R5+4ePGR4ZF5UQtOa83+Vj8zh80dfzbhxWCeoJnQ4dkZJM4drzknZOOKx2n3WrvJnzFIS8p0xeic+M3ZRVXIp10tV2DyYKwRxLzulPwzHcLlYTxl4PF7v8l106Azr+6wBFejbq/3P72C/0j78cepY9990/d4eAurn2lqdGKLU8FffnMw7cY7pVeXJRMU73Oxwi2g2vh/+4gX8dvbjfojn/eLVhhYl8GthwCQ50KcZq4z2JeW5eeOnJWFQEnVxDoG459TaC4zXybECEoJ0V5q1tXrQbDMtUxeTV6Pdt1/zJuc7TJoV/9YZFWxUtCf6Ou3Vd/vR/vG0138hJQrHkNeoep5dLe+6umcSquKvMaFpm3EZHDBOvCi0XYyIFHMgX7Cqp3JVXlxJFwQfHSaIUEbI2u1lBVUdlNw4Qa9UsLPEK94Qiln3pyKxQVCeNlx8yd7EegVNQBkFLabKvnietYVB4IPZ1fSor82arbgYec8aSdFMaIluYTYuNx32SxfrjKUdPGq+UNp5YpydoEG3xVLixtmHO9zXxKAnHnPuH2fPGrjx0GcuCDEU+yXUtXh6nfUL+cykws1gJ5vkfYFaFBr9PdCXvVf35OJQxzUMmWjv0W6uGJK11uAGDqSpOwCf6rouSIjPVgw57cJCOQ4b9tkI/Y5WNon9Swe72aZryKo8d+HyHBEdWJKrkary0LIGczA4Irq353Wc0Zga3om7UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B",y=Math.log2||function(e){return Math.log(e)/Math.LN2},b=function bits(e){return y(e)+1|0},w=function buildUnicodeProperties(e,n){var i=b(e.categories.length-1),u=b(e.combiningClasses.length-1),d=b(e.scripts.length-1),p=b(e.eaw.length-1),_=u+d+p+10,y=d+p+10,w=p+10,x=(1<<i)-1,P=(1<<u)-1,E=(1<<d)-1,k=(1<<p)-1,B=function getCategory(i){var u=n.get(i);return e.categories[u>>_&x]};return{getCategory:B,getCombiningClass:function getCombiningClass(i){var u=n.get(i);return e.combiningClasses[u>>y&P]},getScript:function getScript(i){var u=n.get(i);return e.scripts[u>>w&E]},getEastAsianWidth:function getEastAsianWidth(i){var u=n.get(i);return e.eaw[u>>10&k]},getNumericValue:function getNumericValue(e){var i=n.get(e),u=1023&i;if(0===u)return null;if(u<=50)return u-1;if(u<480){return((u>>4)-12)/(1+(15&u))}if(u<768){i=(u>>5)-14;for(var d=2+(31&u);d>0;){i*=10;d--}return i}i=(u>>2)-191;for(var p=1+(3&u);p>0;){i*=60;p--}return i},isAlphabetic:function isAlphabetic(e){var n=B(e);return"Lu"===n||"Ll"===n||"Lt"===n||"Lm"===n||"Lo"===n||"Nl"===n},isDigit:function isDigit(e){return"Nd"===B(e)},isPunctuation:function isPunctuation(e){var n=B(e);return"Pc"===n||"Pd"===n||"Pe"===n||"Pf"===n||"Pi"===n||"Po"===n||"Ps"===n},isLowerCase:function isLowerCase(e){return"Ll"===B(e)},isUpperCase:function isUpperCase(e){return"Lu"===B(e)},isTitleCase:function isTitleCase(e){return"Lt"===B(e)},isWhiteSpace:function isWhiteSpace(e){var n=B(e);return"Zs"===n||"Zl"===n||"Zp"===n},isBaseForm:function isBaseForm(e){var n=B(e);return"Nd"===n||"No"===n||"Nl"===n||"Lu"===n||"Ll"===n||"Lt"===n||"Lm"===n||"Lo"===n||"Me"===n||"Mc"===n},isMark:function isMark(e){var n=B(e);return"Mn"===n||"Me"===n||"Mc"===n}}}(p,new u(d.toByteArray(_)));n.localExports=w},{"base64-js":122,"unicode-trie":126}],126:[function(e,n,i){var u=e("tiny-inflate"),d=e("./swap").swap32LE,p=function(){function UnicodeTrie(e){var n="function"==typeof e.readUInt32BE&&"function"==typeof e.slice;if(n||e instanceof Uint8Array){var i;if(n){this.highStart=e.readUInt32LE(0);this.errorValue=e.readUInt32LE(4);i=e.readUInt32LE(8);e=e.slice(12)}else{var p=new DataView(e.buffer);this.highStart=p.getUint32(0,!0);this.errorValue=p.getUint32(4,!0);i=p.getUint32(8,!0);e=e.subarray(12)}e=u(e,new Uint8Array(i));e=u(e,new Uint8Array(i));d(e);this.data=new Uint32Array(e.buffer)}else{var _=e;this.data=_.data;this.highStart=_.highStart;this.errorValue=_.errorValue}}UnicodeTrie.prototype.get=function get(e){var n;if(e<0||e>1114111)return this.errorValue;if(e<55296||e>56319&&e<=65535){n=(this.data[e>>5]<<2)+(31&e);return this.data[n]}if(e<=65535){n=(this.data[2048+(e-55296>>5)]<<2)+(31&e);return this.data[n]}if(e<this.highStart){n=this.data[2080+(e>>11)];n=((n=this.data[n+(e>>5&63)])<<2)+(31&e);return this.data[n]}return this.data[this.data.length-4]};return UnicodeTrie}();n.localExports=p},{"./swap":127,"tiny-inflate":124}],127:[function(e,n,i){var u=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],d=function swap(e,n,i){var u=e[n];e[n]=e[i];e[i]=u};n.localExports={swap32LE:function swap32LE(e){u&&function swap32(e){for(var n=e.length,i=0;i<n;i+=4){d(e,i,i+3);d(e,i+1,i+2)}}(e)}}},{}],128:[function(e,n,i){i.byteLength=function byteLength(e){var n=getLens(e),i=n[0],u=n[1];return 3*(i+u)/4-u};i.toByteArray=function toByteArray(e){var n,i,u=getLens(e),_=u[0],y=u[1],b=new p(function _byteLength(e,n,i){return 3*(n+i)/4-i}(0,_,y)),w=0,x=y>0?_-4:_;for(i=0;i<x;i+=4){n=d[e.charCodeAt(i)]<<18|d[e.charCodeAt(i+1)]<<12|d[e.charCodeAt(i+2)]<<6|d[e.charCodeAt(i+3)];b[w++]=n>>16&255;b[w++]=n>>8&255;b[w++]=255&n}if(2===y){n=d[e.charCodeAt(i)]<<2|d[e.charCodeAt(i+1)]>>4;b[w++]=255&n}if(1===y){n=d[e.charCodeAt(i)]<<10|d[e.charCodeAt(i+1)]<<4|d[e.charCodeAt(i+2)]>>2;b[w++]=n>>8&255;b[w++]=255&n}return b};i.fromByteArray=function fromByteArray(e){for(var n,i=e.length,d=i%3,p=[],_=0,y=i-d;_<y;_+=16383)p.push(encodeChunk(e,_,_+16383>y?y:_+16383));if(1===d){n=e[i-1];p.push(u[n>>2]+u[n<<4&63]+"==")}else if(2===d){n=(e[i-2]<<8)+e[i-1];p.push(u[n>>10]+u[n>>4&63]+u[n<<2&63]+"=")}return p.join("")};for(var u=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,b=_.length;y<b;++y){u[y]=_[y];d[_.charCodeAt(y)]=y}d["-".charCodeAt(0)]=62;d["_".charCodeAt(0)]=63;function getLens(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=n);return[i,i===n?0:4-i%4]}function encodeChunk(e,n,i){for(var d,p,_=[],y=n;y<i;y+=3){d=(e[y]<<16&16711680)+(e[y+1]<<8&65280)+(255&e[y+2]);_.push(u[(p=d)>>18&63]+u[p>>12&63]+u[p>>6&63]+u[63&p])}return _.join("")}},{}],129:[function(e,n,i){arguments[4][124][0].apply(i,arguments)},{dup:124}],130:[function(e,n,i){arguments[4][126][0].apply(i,arguments)},{"./swap":131,dup:126,"tiny-inflate":129}],131:[function(e,n,i){arguments[4][127][0].apply(i,arguments)},{dup:127}],132:[function(e,n,i){i.OP=0;i.CL=1;i.CP=2;i.QU=3;i.GL=4;i.NS=5;i.EX=6;i.SY=7;i.IS=8;i.PR=9;i.PO=10;i.NU=11;i.AL=12;i.HL=13;i.ID=14;i.IN=15;i.HY=16;i.BA=17;i.BB=18;i.B2=19;i.ZW=20;i.CM=21;i.WJ=22;i.H2=23;i.H3=24;i.JL=25;i.JV=26;i.JT=27;i.RI=28;i.EB=29;i.EM=30;i.ZWJ=31;i.CB=32;i.AI=33;i.BK=34;i.CJ=35;i.CR=36;i.LF=37;i.NL=38;i.SA=39;i.SG=40;i.SP=41;i.XX=42},{}],133:[function(e,n,i){var u=e("unicode-trie"),d=e("base64-js"),p=e("./classes"),_=p.BK,y=p.CR,b=p.LF,w=p.NL,x=p.SG,P=p.WJ,E=p.SP,k=p.ZWJ,B=p.BA,j=p.HY,I=p.NS,O=p.AI,D=p.AL,R=p.CJ,N=p.HL,U=p.RI,G=p.SA,W=p.XX,X=e("./pairs"),K=X.DI_BRK,Y=X.IN_BRK,J=X.CI_BRK,$=X.CP_BRK,ee=(X.PR_BRK,X.pairTable),te=new u(d.toByteArray("AAgOAAAAAABA2gAAAZ8OYPHtnQ2s1lUdx8/l3vvc+zz3uVzvhQuR4I23CMqRqdkbM42lqRlM1iSohrQaVjMmrZjmRIWEphOITWUtlbXhmI2GLowxC+cge6GcxrImw5oQtmmgWdpm37PnnD3nHs77y///gM/dPjv/8z9vv/M7v/P6//+f+71OQtaCu8AWsBc8BX4HngN/AX8LcI+DE+BNMKaLkB4w0GVPNxFxRgzxZiLsXHAhmAc+Ba4EC8FiId2XcP1V8E3wbXATuB3cBjaATeB+8BB4GDzC0lIew/Ve8BT4Lfg9+BN4AbwEjoFXwX8A6Ub9QBUMgkndjfCpcGd3N8Kp/4NwPwI+CS4FV4CFYDG4A+HL4K4AK1n81XDXsPTrwUZwH3iwuyHjdrg7wW7wC7APPNLZ8D8NDjL/IbiHWZqjcF8BJ8FbLPxpFr+z0nB7Kk09UAYqTSYypoARhhjXxCzEnSvFp3q+yCMPFy4W8rsM11eCa8ASsLzSrO/XcX0juEkq/3b4bxBsYS38d4EtQlrKVpZum3B/B653gT2Vht1TaPu+DncfjQeeAc+ztEeYewzuq+ANQZa3cd3do68nzz9GV3XkPx5MBjPAB8AF4BNgPrgcLADXgiVgObieybSSuavhrgHrwUZwH3iAhW2H+1PwmKYejwv3n8D1fokDwvUfwLPgr+Dv4GVwErwFOnsJ6QPjwNlgOng/OB98vJfZBdzLwGeZfxHcJb3+OlvO0lwPd6VH+tUBZd0qpblT8K9lNnYP7t0LHuht9Oftve48DH4GHge/Ar8GfwR/ZtdHLOn/IVz/y6PcNm3axMHHgbLlaNOmTZs2bdq0aXN68XoLyKDif72jz0N0dFQbZ3n0ulJtnKXxsLFVe/oJiHMOizcT7qSuxnnNubi+kOU9D+58cFW1cR74ObAI10tZuq/A/UZ19PkQZRXu3dKlL/tmKi9YC9aB74M7wXqwoR3WDmuHtcPaYcnDNoJ7wdZq48y0TLZVy6Xs+rdp08rErmN3oI/tAj+vhj+n24O0TyrS78e9g+AQeAG8JMU5Dv8J8CYYUyOkBgZqDbkmwh2plT/+rBrb4DVwwQDW0Qa2g2Ng8lmnhi2V7v0Q/mdBfRBr98HGve/CfRT8E/QOEXI5OFJt6OHL4MfgMOjsI+Q8QHoIuaav4Re5DWzuMLMPcV5keVCm1Qm5DjwIjoCp/YQs67fncyazqr+pnzZt2rR5p/Fov3nun4X5aG5NH35e7dQ1Cw/7KMIukdLOh/8qdu98zfkafS/rxsTvZZm4WlO/RYZ6U5bSubob86oi3gp2b6UlDxurFfpVYcpjjUKGdbXGu2Cv4fpuXG9h/h/B/QnYwfy74O4BTzA/PXvcX2ueKx6sjZbhEG3frsY6hr47eBTuK+ANjZ08hzzfFuT7N+jp09dxAX2Ps6/pp/Enwj/Sx+wV7lwWTs9AL9LkxdNf3KfW2SbDuemnkeZq8HnwBXAdy2MF3JWa/HTQ+qxGmlvBWrChb7R8tKxNLM/7hbrZeMggx3aE7fSUMze7W0yeMvgl08EBgy5+owl7xtEuchJa7+cTtj19L/FFQRd033qc5X8C7n8LsjNSV9/vqTfem6zXmzKOr9v38ZNZ/Blw5zjEF6HvWZZtG7628yHU8WP18so3cSnkugIsULTxtZp2b1W+CHmXJZCZ2vQKZtvfgvudevMd8dOBWwy2Ruu3DuF3B+hpc4E2nNr2t9ZHh28roC47mI53JupHu7vsZdrGz92QZW+98R3Ak8w9wMbgg55jMeUQ0hwGR8HLQvqTtM+AMdiT1fqb94dwPQmMgGlgNgubC/fDQrx5uL6E+T8DdyG7FvWxWNjvzWTplrF7X2PuDXDPEfKl52Q394+uwx3w/0DKf3G/vy7OJDbTtukKH4O29pc/FsQyTOwMgplgGmOGQxpXZgMsAUlnYwlGsPwjNXZN79G/MUIYmo2cxVx6JNLnSC+jLlCR/LkhrA5jCixTLp+2ZQfzD5P235x3OKo++V7N/Rx0sXagfb4qQO1zKoNf8zFikDRtmqfjcYektCKdkp+QvP1taub8W738VoPbh2gD3O+qM9mmxDRDlrRFUFS/PR3oCkyjI0SG0HaU1yq2ti3b7nJCdUHHfD5n8ftVop/DWp1Bod2GFdcV5trm7/4WIrR9awLyOt1Hp6LOKqT49X0ZY7Pr/qcmXMsy5axzhdjrbtOPHK6Ky+O46iN1u54JNiWPr2cSPnqok/D9VBn2l1Mncho6NvM+Le4hxX1bEbLq5Jfv6+IVaeut2MeKOkvw6XM55kdf+y6j76Wsuy0vX/kGGUWOa3J/KbN/pGoflz43rLhn01HovMPX26q8+f2qojzVOFp2+6TA1C42GWLWAap+6WovKh0U3R6x+k4tR0h/qBJ7+xc1HxXV/0NsWra5Mvq9Ts5UejfpwDZO5NoH8HHYdc11OvR/1zbJ3f9Nbeh6ni/KXPQzgCLHItO4FKN/37HHZXzMqesUenctL7f9u+StWyeKbRbSZ1OTcj7w7RO+441oB742P6tFkOWqRuZX99Aj35e2um587UKlkyEJ8V6XcD3I/BUFXSyd/EzENh6l3vfLz724S/86BDdmLZNqbTjocN80FpfFHNLsH7Fzi2hburUNfz4eMy7q5I3th67l69JPKpl3l8zZJVPG+kFep5n6UW7KLLvo8ulfBxk9fvjKahv3QnHdF+Xan8jzj2rtU0T5ZezP5P1FmWtlrvtuwc9tT1z/hq7/crUfXwdy+Yek+7KN8fk8h/wxa7uU5Nwnuu4f65Kft0fsuiV2L+drv6Y9XS5M+uVxytz7DXvoL5bU41/s3kleQ5n6YOx+YZCEzf2xsqvq4Ju2qH7hWs9U+/1U46NtPsk5Pst25fMehE7m1OcpuXDtS7b2km0sxfhh6lvD0nXZfZHC11o6m+J0Sf7xTPYRoR5yvHFk9LconaT53WSnwi/GpQwI0Pz4N56qdqDl1iyIMtBy2L8k1Oqml8nWIcQ1xTfZq2i3uvlhgiKtzzwn273LN1a8fuL3QvI3RC7pQ/cDYn+sGqhZwn3T1hLlLZJ6jI/Zz3J7l9uwRtzaRUzn8+6sq93k+P7PVLbqOzrVd5gmdOX5pnPVi9y+OcrzkSm0Liq55HuqcO7K393a2lalC7kOJt2ZbMjFHkLa2lZuiv5g0o3Jn8J+UuXvqrNY3cXK5ctAAhnon/icMlTWsQyfMnPodKxETF4x86oO3/kjJ/XANLJd5JDLpw+lKCtUBldd+uSj8rvel/OIrZ+r3l3T5Ojfpnrb9Mbz4eFjFeVMIWnGk5A66nSYQpcx7a6yOa4/VZwUMhelf1u9i0a2eRty31TZ9FRNfFV/kMPEfqfTk0oOVT4qeaYYylWh0tUUiaJsRPR3aqBh/LmYLD/96whwc8zDofbOZSqyj7jqqYwyfd0y9VZk2UXZSiq7ljGdo8rPwOUz3Apxex5hw/W9Gd2zDN0YZcN07i+eUxOpnuIYKPrpn6lPyPnzdzxU5+IqPY1j6M7SiaIMXZ3EdLH7Qd+5PTWyPPz3FDuEON3Cta2diJTWFq9buBbT2dCdheviqu7zZzOyPqaza5ubm6LKsZXvUm9b2HRy6jPUbgneJq2m/1T1V9nfdKK2Q9EefZgeiU0ntvVijnbQ6caG7/OvmDk41XyuW1/4vm+QWgZxzhNx1a8sk+97EDn0maI812ejofDvVfh+0WVNF/KMOOZ9IJfyY9+RMenHxX5s5eV4zz73s3xaRhnf8Mjtrau/yzuMofbG05f5PZXr/JHzvQ7f8VPO21f/ru3qqgdVPjH1t/Xx2PrLTATvKpCiy/Ndf6b8Vk/Ou4zv9WQZ3lcyOdcadU2b0t/CHSZ+v5vbar/JGws/s/DtDzn2Gz7w9Wmq9VkvaZ7V8N825mtTwu4PGOofW75qn8fLdXXldKY9ZIfgUvn5Xl18fmMrxwZ/n1S1Zy3D1nnZE5jL6ynLqtJhh+T67PHlfX7FM49YSKDsucrnuu2QrrmeUp3pFIHpjCs3Yn+itluVwvm7orb+5jrGi+PVe0jjXKyM/qySzXR2U9bcKq7Hc9Xbp+3K0oOsE5f9YFnycVsqo9w5UvlFnDOF2pvLM0VXW3Bpe105pjVZEfbkqhNbP7DJH7uf9+mPOW0q1u5c1ts5zjx1xLZLUWN3aDv7PhfJ2efK6B++upP7tO938qLthp4XprAV6orfw4bYqPx+icrOfNtPlCv0vDakTXXv4/D2cSnT1H+K7N9F95/UY4BoP7HnLqL8Jtt2rXOsPD5rAtf5UNcvRTv2aX9ux+JYYSsz9/qGlsl//5C/tyD/hqZtzRqyfhPLl+P6tF9s/eXfHnXBR76U809IX7Dps4h1mInY33FylV/+fbNBEvb7TTHjUqqxPHZ8pHkMCXnlaludvRetrxA9qsJV66dBT136tl9RNiGP2eJ4l+rd5lB7CXnPzHd8iF1bcfi7WalslOebam1kwkWftv6Sqj1M9pCzP9jmy5zjT+7xTkeNnPobR6ns1ofYsyeeRyudvciIfx0Ccjz5Ho9PNPFzy6yT07d9TP9/nJeTo31S6S10/Eo1h8boXjd++8gVqz+fNYgKHpZ6/i+i78eer6vmYptOYwiRUf6GJ9befSnznYYU8sd+r5NbP7n7iGnMUJ2FF21frmOa65iXon+m7sMh43jO/Iu0Nd95Ize5bEel11zzhE8binFVZ8kxfde3XkWNH642aatDSrtOIbfLuBFzHuDzm6Ku8vi2v09+KvsNrT//K8smOTWL35eQ36QR1yepf+cmdX71DPLmWMtOLghV2VM091OgaoMiy9DdF3+bSqUHVXjRnKNAlk8lr40UsvmU5yOPSj45rmtdphjy9LEtlasrS5c2tA+Yxu7YNnSdI3LmnatuNrt1ab/Q/F3LTEHRegwpx9TXi/qdQPG3s0z/FyK1TfiOu75lprar1HrPXX5q+VPJl6u/pqyfi+2EriV87N1njVDEuky11ojpa6b1S5FrthhCz3Ryn/H8Hw==")),re=function mapClass(e){switch(e){case O:return D;case G:case x:case W:return D;case R:return I;default:return e}},ne=function mapFirst(e){switch(e){case b:case w:return _;case E:return P;default:return e}},ie=function Break(e,n){void 0===n&&(n=!1);this.position=e;this.required=n},oe=function(){function LineBreaker(e){this.string=e;this.pos=0;this.lastPos=0;this.curClass=null;this.nextClass=null;this.LB8a=!1;this.LB21a=!1;this.LB30a=0}var e=LineBreaker.prototype;e.nextCodePoint=function nextCodePoint(){var e=this.string.charCodeAt(this.pos++),n=this.string.charCodeAt(this.pos);if(55296<=e&&e<=56319&&56320<=n&&n<=57343){this.pos++;return 1024*(e-55296)+(n-56320)+65536}return e};e.nextCharClass=function nextCharClass(){return re(te.get(this.nextCodePoint()))};e.getSimpleBreak=function getSimpleBreak(){switch(this.nextClass){case E:return!1;case _:case b:case w:this.curClass=_;return!1;case y:this.curClass=y;return!1}return null};e.getPairTableBreak=function getPairTableBreak(e){var n=!1;switch(ee[this.curClass][this.nextClass]){case K:n=!0;break;case Y:n=e===E;break;case J:if(!(n=e===E))return n=!1;break;case $:if(e!==E)return n}this.LB8a&&(n=!1);if(!this.LB21a||this.curClass!==j&&this.curClass!==B)this.LB21a=this.curClass===N;else{n=!1;this.LB21a=!1}if(this.curClass===U){this.LB30a++;if(2==this.LB30a&&this.nextClass===U){n=!0;this.LB30a=0}}else this.LB30a=0;this.curClass=this.nextClass;return n};e.nextBreak=function nextBreak(){if(null==this.curClass){var e=this.nextCharClass();this.curClass=ne(e);this.nextClass=e;this.LB8a=e===k;this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;var n=this.nextClass;this.nextClass=this.nextCharClass();if(this.curClass===_||this.curClass===y&&this.nextClass!==b){this.curClass=ne(re(this.nextClass));return new ie(this.lastPos,!0)}var i=this.getSimpleBreak();null===i&&(i=this.getPairTableBreak(n));this.LB8a=this.nextClass===k;if(i)return new ie(this.lastPos)}if(this.pos>=this.string.length){if(this.lastPos<this.string.length){this.lastPos=this.string.length;return new ie(this.string.length)}return null}};return LineBreaker}();n.localExports=oe},{"./classes":132,"./pairs":134,"base64-js":128,"unicode-trie":130}],134:[function(e,n,i){i.DI_BRK=0;i.IN_BRK=1;i.CI_BRK=2;i.CP_BRK=3;i.PR_BRK=4;i.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,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,0,1,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,0,0,1,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,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,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,0,1,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,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,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,0,0,1,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,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,0,0,1,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,0,0,1,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,0,0,1,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,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,0,0,0,0,0,0,0,0,1,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,0,1,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,0,1,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,0,0,1,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,1,1,1,0],[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,1,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,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,0,0,1,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,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,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,0,0,0,0,1,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,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,0,0,0,1,1,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,0,0,0,0,1,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,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,0,0,0,0,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,0,0,0,0,1,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,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]]},{}],135:[function(e,n,i){(function(i){(function(){var u=e("@babel/runtime-corejs2/core-js/object/assign"),d=e("stream"),p=e("@babel/runtime-corejs2/core-js/array/is-array"),_=e("@babel/runtime-corejs2/core-js/object/keys"),y=e("zlib"),b=e("@babel/runtime-corejs2/core-js/parse-int"),w=e("@babel/runtime-corejs2/core-js/number/is-finite"),x=e("@babel/runtime-corejs2/core-js/json/stringify"),P=e("fontkit"),E=e("@babel/runtime-corejs2/core-js/object/create"),k=e("events"),B=e("linebreak"),j=e("png-js");function _defineProperties(e,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1;u.configurable=!0;"value"in u&&(u.writable=!0);Object.defineProperty(e,u.key,u)}}function _extends(e,n,i){return(_extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(e[u]=i[u])}return e}).apply(this,arguments)}function _inheritsLoose(e,n){e.prototype=Object.create(n.prototype);e.prototype.constructor=e;_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,n){e.__proto__=n;return e})(e,n)}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,u=new Array(n);i<n;i++)u[i]=e[i];return u}function _createForOfIteratorHelperLoose(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);return"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var I,O,D,R,N,U,G=function(){function PDFAbstractReference(){}PDFAbstractReference.prototype.toString=function toString(){throw new Error("Must be implemented by subclasses")};return PDFAbstractReference}(),W=function(){function PDFTree(e){void 0===e&&(e={});this._items={};this.limits="boolean"!=typeof e.limits||e.limits}var e=PDFTree.prototype;e.add=function add(e,n){return this._items[e]=n};e.get=function get(e){return this._items[e]};e.toString=function toString(){var e=this,n=_(this._items).sort((function(n,i){return e._compareKeys(n,i)})),i=["<<"];if(this.limits&&n.length>1){var u=n[0],d=n[n.length-1];i.push(" /Limits "+J.convert([this._dataForKey(u),this._dataForKey(d)]))}i.push(" /"+this._keysName()+" [");for(var p,y=_createForOfIteratorHelperLoose(n);!(p=y()).done;){var b=p.value;i.push(" "+J.convert(this._dataForKey(b))+" "+J.convert(this._items[b]))}i.push("]");i.push(">>");return i.join("\n")};e._compareKeys=function _compareKeys(){throw new Error("Must be implemented by subclasses")};e._keysName=function _keysName(){throw new Error("Must be implemented by subclasses")};e._dataForKey=function _dataForKey(){throw new Error("Must be implemented by subclasses")};return PDFTree}(),X=function pad(e,n){return(Array(n+1).join("0")+e).slice(-n)},K=/[\n\r\t\b\f()\\]/g,Y={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},J=function(){function PDFObject(){}PDFObject.convert=function convert(e,n){void 0===n&&(n=null);if("string"==typeof e)return"/"+e;if(e instanceof String){for(var u,d=e,_=!1,y=0,b=d.length;y<b;y++)if(d.charCodeAt(y)>127){_=!0;break}u=_?function swapBytes(e){var n=e.length;if(1&n)throw new Error("Buffer length must be even");for(var i=0,u=n-1;i<u;i+=2){var d=e[i];e[i]=e[i+1];e[i+1]=d}return e}(i.from("\ufeff"+d,"utf16le")):i.from(d.valueOf(),"ascii");return"("+(d=(d=n?n(u).toString("binary"):u.toString("binary")).replace(K,(function(e){return Y[e]})))+")"}if(i.isBuffer(e))return"<"+e.toString("hex")+">";if(e instanceof G||e instanceof W)return e.toString();if(e instanceof Date){var w="D:"+X(e.getUTCFullYear(),4)+X(e.getUTCMonth()+1,2)+X(e.getUTCDate(),2)+X(e.getUTCHours(),2)+X(e.getUTCMinutes(),2)+X(e.getUTCSeconds(),2)+"Z";n&&(w=(w=n(i.from(w,"ascii")).toString("binary")).replace(K,(function(e){return Y[e]})));return"("+w+")"}if(p(e)){return"["+e.map((function(e){return PDFObject.convert(e,n)})).join(" ")+"]"}if("[object Object]"==={}.toString.call(e)){var x=["<<"];for(var P in e){var E=e[P];x.push("/"+P+" "+PDFObject.convert(E,n))}x.push(">>");return x.join("\n")}return"number"==typeof e?PDFObject.number(e):""+e};PDFObject.number=function number(e){if(e>-1e21&&e<1e21)return Math.round(1e6*e)/1e6;throw new Error("unsupported number: "+e)};return PDFObject}(),$=function(e){_inheritsLoose(PDFReference,e);function PDFReference(n,i,u){var d;void 0===u&&(u={});(d=e.call(this)||this).document=n;d.id=i;d.data=u;d.gen=0;d.compress=d.document.compress&&!d.data.Filter;d.uncompressedLength=0;d.buffer=[];return d}var n=PDFReference.prototype;n.write=function write(e){i.isBuffer(e)||(e=i.from(e+"\n","binary"));this.uncompressedLength+=e.length;null==this.data.Length&&(this.data.Length=0);this.buffer.push(e);this.data.Length+=e.length;if(this.compress)return this.data.Filter="FlateDecode"};n.end=function end(e){e&&this.write(e);return this.finalize()};n.finalize=function finalize(){this.offset=this.document._offset;var e=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;if(this.buffer.length){this.buffer=i.concat(this.buffer);this.compress&&(this.buffer=y.deflateSync(this.buffer));e&&(this.buffer=e(this.buffer));this.data.Length=this.buffer.length}this.document._write(this.id+" "+this.gen+" obj");this.document._write(J.convert(this.data,e));if(this.buffer.length){this.document._write("stream");this.document._write(this.buffer);this.buffer=[];this.document._write("\nendstream")}this.document._write("endobj");this.document._refEnd(this)};n.toString=function toString(){return this.id+" "+this.gen+" R"};return PDFReference}(G),ee={top:72,left:72,bottom:72,right:72},te={"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]},re=function(){function PDFPage(e,n){void 0===n&&(n={});this.document=e;this.size=n.size||"letter";this.layout=n.layout||"portrait";if("number"==typeof n.margin)this.margins={top:n.margin,left:n.margin,bottom:n.margin,right:n.margin};else{this.margins=n.margins||ee;this.margins={top:this.margins.top,left:this.margins.left,bottom:this.margins.bottom,right:this.margins.right}}var i=p(this.size)?this.size:te[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"]});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,Tabs:"S"});this.markings=[]}var e=PDFPage.prototype;e.maxY=function maxY(){return this.height-this.margins.bottom};e.write=function write(e){return this.content.write(e)};e.end=function end(){this.dictionary.end();this.resources.end();return this.content.end()};!function _createClass(e,n,i){n&&_defineProperties(e.prototype,n);i&&_defineProperties(e,i);return e}(PDFPage,[{key:"fonts",get:function get(){var e=this.resources.data;return null!=e.Font?e.Font:e.Font={}}},{key:"xobjects",get:function get(){var e=this.resources.data;return null!=e.XObject?e.XObject:e.XObject={}}},{key:"ext_gstates",get:function get(){var e=this.resources.data;return null!=e.ExtGState?e.ExtGState:e.ExtGState={}}},{key:"patterns",get:function get(){var e=this.resources.data;return null!=e.Pattern?e.Pattern:e.Pattern={}}},{key:"colorSpaces",get:function get(){var e=this.resources.data;return e.ColorSpace||(e.ColorSpace={})}},{key:"annotations",get:function get(){var e=this.dictionary.data;return null!=e.Annots?e.Annots:e.Annots=[]}},{key:"structParentTreeKey",get:function get(){var e=this.dictionary.data;return null!=e.StructParents?e.StructParents:e.StructParents=this.document.createStructParentTreeNextKey()}}]);return PDFPage}(),ne=function(e){_inheritsLoose(PDFNameTree,e);function PDFNameTree(){return e.apply(this,arguments)||this}var n=PDFNameTree.prototype;n._compareKeys=function _compareKeys(e,n){return e.localeCompare(n)};n._keysName=function _keysName(){return"Names"};n._dataForKey=function _dataForKey(e){return new String(e)};return PDFNameTree}(W),ie=J.number,oe=function(){function PDFGradient(e){this.doc=e;this.stops=[];this.embedded=!1;this.transform=[1,0,0,1,0,0]}var e=PDFGradient.prototype;e.stop=function stop(e,n,i){null==i&&(i=1);n=this.doc._normalizeColor(n);if(0===this.stops.length)if(3===n.length)this._colorSpace="DeviceRGB";else if(4===n.length)this._colorSpace="DeviceCMYK";else{if(1!==n.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==n.length||"DeviceCMYK"===this._colorSpace&&4!==n.length||"DeviceGray"===this._colorSpace&&1!==n.length)throw new Error("All gradient stops must use the same color space");i=Math.max(0,Math.min(1,i));this.stops.push([e,n,i]);return this};e.setTransform=function setTransform(e,n,i,u,d,p){this.transform=[e,n,i,u,d,p];return this};e.embed=function embed(e){var n,i=this.stops.length;if(0!==i){this.embedded=!0;this.matrix=e;var u=this.stops[i-1];u[0]<1&&this.stops.push([1,u[1],u[2]]);for(var d=[],p=[],_=[],y=0;y<i-1;y++){p.push(0,1);y+2!==i&&d.push(this.stops[y+1][0]);n=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[y+0][1],C1:this.stops[y+1][1],N:1});_.push(n);n.end()}1===i?n=_[0]:(n=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:_,Bounds:d,Encode:p})).end();this.id="Sh"+ ++this.doc._gradCount;var b=this.shader(n);b.end();var w=this.doc.ref({Type:"Pattern",PatternType:2,Shading:b,Matrix:this.matrix.map(ie)});w.end();if(this.stops.some((function(e){return e[2]<1}))){var x=this.opacityGradient();x._colorSpace="DeviceGray";for(var P,E=_createForOfIteratorHelperLoose(this.stops);!(P=E()).done;){var k=P.value;x.stop(k[0],[k[2]])}x=x.embed(this.matrix);var B=[0,0,this.doc.page.width,this.doc.page.height],j=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:B,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:x}}});j.write("/Pattern cs /Sh1 scn");j.end(B.join(" ")+" re f");var I=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:j}});I.end();var O=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:B,XStep:B[2],YStep:B[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:w},ExtGState:{Gs1:I}}});O.write("/Gs1 gs /Pattern cs /Sh1 scn");O.end(B.join(" ")+" re f");this.doc.page.patterns[this.id]=O}else this.doc.page.patterns[this.id]=w;return w}};e.apply=function apply(e){var n=this.doc._ctm,i=n[0],u=n[1],d=n[2],p=n[3],_=n[4],y=n[5],b=this.transform,w=b[0],x=b[1],P=b[2],E=b[3],k=b[4],B=b[5],j=[i*w+d*x,u*w+p*x,i*P+d*E,u*P+p*E,i*k+d*B+_,u*k+p*B+y];this.embedded&&j.join(" ")===this.matrix.join(" ")||this.embed(j);this.doc._setColorSpace("Pattern",e);var I=e?"SCN":"scn";return this.doc.addContent("/"+this.id+" "+I)};return PDFGradient}(),ae={PDFGradient:oe,PDFLinearGradient:function(e){_inheritsLoose(PDFLinearGradient,e);function PDFLinearGradient(n,i,u,d,p){var _;(_=e.call(this,n)||this).x1=i;_.y1=u;_.x2=d;_.y2=p;return _}var n=PDFLinearGradient.prototype;n.shader=function shader(e){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:e,Extend:[!0,!0]})};n.opacityGradient=function opacityGradient(){return new PDFLinearGradient(this.doc,this.x1,this.y1,this.x2,this.y2)};return PDFLinearGradient}(oe),PDFRadialGradient:function(e){_inheritsLoose(PDFRadialGradient,e);function PDFRadialGradient(n,i,u,d,p,_,y){var b;(b=e.call(this,n)||this).doc=n;b.x1=i;b.y1=u;b.r1=d;b.x2=p;b.y2=_;b.r2=y;return b}var n=PDFRadialGradient.prototype;n.shader=function shader(e){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:e,Extend:[!0,!0]})};n.opacityGradient=function opacityGradient(){return new PDFRadialGradient(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)};return PDFRadialGradient}(oe)},se=ae.PDFGradient,le=ae.PDFLinearGradient,ue=ae.PDFRadialGradient,ce={initColor:function initColor(){this._opacityRegistry={};this._opacityCount=0;this._patternCount=0;return this._gradCount=0},_normalizeColor:function _normalizeColor(e){if("string"==typeof e)if("#"===e.charAt(0)){4===e.length&&(e=e.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));var n=b(e.slice(1),16);e=[n>>16,n>>8&255,255&n]}else fe[e]&&(e=fe[e]);if(p(e)){3===e.length?e=e.map((function(e){return e/255})):4===e.length&&(e=e.map((function(e){return e/100})));return e}return null},_setColor:function _setColor(e,n){if(e instanceof se){e.apply(n);return!0}return this._setColorCore(e,n)},_setColorCore:function _setColorCore(e,n){if(!(e=this._normalizeColor(e)))return!1;var i=n?"SCN":"scn",u=this._getColorSpace(e);this._setColorSpace(u,n);e=e.join(" ");this.addContent(e+" "+i);return!0},_setColorSpace:function _setColorSpace(e,n){var i=n?"CS":"cs";return this.addContent("/"+e+" "+i)},_getColorSpace:function _getColorSpace(e){return 4===e.length?"DeviceCMYK":"DeviceRGB"},fillColor:function fillColor(e,n){this._setColor(e,!1)&&this.fillOpacity(n);this._fillColor=[e,n];return this},strokeColor:function strokeColor(e,n){this._setColor(e,!0)&&this.strokeOpacity(n);return this},opacity:function opacity(e){this._doOpacity(e,e);return this},fillOpacity:function fillOpacity(e){this._doOpacity(e,null);return this},strokeOpacity:function strokeOpacity(e){this._doOpacity(null,e);return this},_doOpacity:function _doOpacity(e,n){var i,u;if(null!=e||null!=n){null!=e&&(e=Math.max(0,Math.min(1,e)));null!=n&&(n=Math.max(0,Math.min(1,n)));var d=e+"_"+n;if(this._opacityRegistry[d]){var p=this._opacityRegistry[d];i=p[0];u=p[1]}else{i={Type:"ExtGState"};null!=e&&(i.ca=e);null!=n&&(i.CA=n);(i=this.ref(i)).end();u="Gs"+ ++this._opacityCount;this._opacityRegistry[d]=[i,u]}this.page.ext_gstates[u]=i;return this.addContent("/"+u+" gs")}},linearGradient:function linearGradient(e,n,i,u){return new le(this,e,n,i,u)},radialGradient:function radialGradient(e,n,i,u,d,p){return new ue(this,e,n,i,u,d,p)}},fe={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]};I=O=D=R=N=U=0;var he={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},de={M:function M(e,n){I=n[0];O=n[1];D=R=null;N=I;U=O;return e.moveTo(I,O)},m:function m(e,n){I+=n[0];O+=n[1];D=R=null;N=I;U=O;return e.moveTo(I,O)},C:function C(e,n){I=n[4];O=n[5];D=n[2];R=n[3];return e.bezierCurveTo.apply(e,n)},c:function c(e,n){e.bezierCurveTo(n[0]+I,n[1]+O,n[2]+I,n[3]+O,n[4]+I,n[5]+O);D=I+n[2];R=O+n[3];I+=n[4];return O+=n[5]},S:function S(e,n){if(null===D){D=I;R=O}e.bezierCurveTo(I-(D-I),O-(R-O),n[0],n[1],n[2],n[3]);D=n[0];R=n[1];I=n[2];return O=n[3]},s:function s(e,n){if(null===D){D=I;R=O}e.bezierCurveTo(I-(D-I),O-(R-O),I+n[0],O+n[1],I+n[2],O+n[3]);D=I+n[0];R=O+n[1];I+=n[2];return O+=n[3]},Q:function Q(e,n){D=n[0];R=n[1];I=n[2];O=n[3];return e.quadraticCurveTo(n[0],n[1],I,O)},q:function q(e,n){e.quadraticCurveTo(n[0]+I,n[1]+O,n[2]+I,n[3]+O);D=I+n[0];R=O+n[1];I+=n[2];return O+=n[3]},T:function T(e,n){if(null===D){D=I;R=O}else{D=I-(D-I);R=O-(R-O)}e.quadraticCurveTo(D,R,n[0],n[1]);D=I-(D-I);R=O-(R-O);I=n[0];return O=n[1]},t:function t(e,n){if(null===D){D=I;R=O}else{D=I-(D-I);R=O-(R-O)}e.quadraticCurveTo(D,R,I+n[0],O+n[1]);I+=n[0];return O+=n[1]},A:function A(e,n){pe(e,I,O,n);I=n[5];return O=n[6]},a:function a(e,n){n[5]+=I;n[6]+=O;pe(e,I,O,n);I=n[5];return O=n[6]},L:function L(e,n){I=n[0];O=n[1];D=R=null;return e.lineTo(I,O)},l:function l(e,n){I+=n[0];O+=n[1];D=R=null;return e.lineTo(I,O)},H:function H(e,n){I=n[0];D=R=null;return e.lineTo(I,O)},h:function h(e,n){I+=n[0];D=R=null;return e.lineTo(I,O)},V:function V(e,n){O=n[0];D=R=null;return e.lineTo(I,O)},v:function v(e,n){O+=n[0];D=R=null;return e.lineTo(I,O)},Z:function Z(e){e.closePath();I=N;return O=U},z:function z(e){e.closePath();I=N;return O=U}},pe=function solveArc(e,n,i,u){for(var d,p=u[0],_=u[1],y=u[2],b=u[3],w=u[4],x=u[5],P=u[6],E=_createForOfIteratorHelperLoose(ge(x,P,p,_,b,w,y,n,i));!(d=E()).done;){var k=d.value,B=_e.apply(void 0,k);e.bezierCurveTo.apply(e,B)}},ge=function arcToSegments(e,n,i,u,d,p,_,y,b){var w=_*(Math.PI/180),x=Math.sin(w),P=Math.cos(w);i=Math.abs(i);u=Math.abs(u);var E=(D=P*(y-e)*.5+x*(b-n)*.5)*D/(i*i)+(R=P*(b-n)*.5-x*(y-e)*.5)*R/(u*u);if(E>1){i*=E=Math.sqrt(E);u*=E}var k=P/i,B=x/i,j=-x/u,I=P/u,O=k*y+B*b,N=j*y+I*b,U=k*e+B*n,G=j*e+I*n,W=1/((U-O)*(U-O)+(G-N)*(G-N))-.25;W<0&&(W=0);var X=Math.sqrt(W);p===d&&(X=-X);var K=.5*(O+U)-X*(G-N),Y=.5*(N+G)+X*(U-O),J=Math.atan2(N-Y,O-K),$=Math.atan2(G-Y,U-K)-J;$<0&&1===p?$+=2*Math.PI:$>0&&0===p&&($-=2*Math.PI);for(var ee=Math.ceil(Math.abs($/(.5*Math.PI+.001))),te=[],re=0;re<ee;re++){var ne=J+re*$/ee,ie=J+(re+1)*$/ee;te[re]=[K,Y,ne,ie,i,u,x,P]}return te},_e=function segmentToBezier(e,n,i,u,d,p,_,y){var b=y*d,w=-_*p,x=_*d,P=y*p,E=.5*(u-i),k=8/3*Math.sin(.5*E)*Math.sin(.5*E)/Math.sin(E),B=e+Math.cos(i)-k*Math.sin(i),j=n+Math.sin(i)+k*Math.cos(i),I=e+Math.cos(u),O=n+Math.sin(u),D=I+k*Math.sin(u),R=O-k*Math.cos(u);return[b*B+w*j,x*B+P*j,b*D+w*R,x*D+P*R,b*I+w*O,x*I+P*O]},me=function(){function SVGPath(){}SVGPath.apply=function apply(e,n){!function apply(e,n){I=O=D=R=N=U=0;for(var i=0;i<e.length;i++){var u=e[i];"function"==typeof de[u.cmd]&&de[u.cmd](n,u.args)}}(function parse(e){for(var n,i,u=[],d=[],p="",_=!1,y=0,b=_createForOfIteratorHelperLoose(e);!(i=b()).done;){var w=i.value;if(null!=he[w]){y=he[w];if(n){p.length>0&&(d[d.length]=+p);u[u.length]={cmd:n,args:d};d=[];p="";_=!1}n=w}else if(-1!==[" ",","].indexOf(w)||"-"===w&&p.length>0&&"e"!==p[p.length-1]||"."===w&&_){if(0===p.length)continue;if(d.length===y){u[u.length]={cmd:n,args:d};d=[+p];"M"===n&&(n="L");"m"===n&&(n="l")}else d[d.length]=+p;_="."===w;p=-1!==["-","."].indexOf(w)?w:""}else{p+=w;"."===w&&(_=!0)}}if(p.length>0)if(d.length===y){u[u.length]={cmd:n,args:d};d=[+p];"M"===n&&(n="L");"m"===n&&(n="l")}else d[d.length]=+p;u[u.length]={cmd:n,args:d};return u}(n),e)};return SVGPath}(),ve=J.number,ye=(Math.sqrt(2)-1)/3*4,be={initVector:function initVector(){this._ctm=[1,0,0,1,0,0];return this._ctmStack=[]},save:function save(){this._ctmStack.push(this._ctm.slice());return this.addContent("q")},restore:function restore(){this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0];return this.addContent("Q")},closePath:function closePath(){return this.addContent("h")},lineWidth:function lineWidth(e){return this.addContent(ve(e)+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function lineCap(e){"string"==typeof e&&(e=this._CAP_STYLES[e.toUpperCase()]);return this.addContent(e+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function lineJoin(e){"string"==typeof e&&(e=this._JOIN_STYLES[e.toUpperCase()]);return this.addContent(e+" j")},miterLimit:function miterLimit(e){return this.addContent(ve(e)+" M")},dash:function dash(e,n){void 0===n&&(n={});var i=e;p(e)||(e=[e,n.space||e]);if(!e.every((function(e){return w(e)&&e>0})))throw new Error("dash("+x(i)+", "+x(n)+") invalid, lengths must be numeric and greater than zero");e=e.map(ve).join(" ");return this.addContent("["+e+"] "+ve(n.phase||0)+" d")},undash:function undash(){return this.addContent("[] 0 d")},moveTo:function moveTo(e,n){return this.addContent(ve(e)+" "+ve(n)+" m")},lineTo:function lineTo(e,n){return this.addContent(ve(e)+" "+ve(n)+" l")},bezierCurveTo:function bezierCurveTo(e,n,i,u,d,p){return this.addContent(ve(e)+" "+ve(n)+" "+ve(i)+" "+ve(u)+" "+ve(d)+" "+ve(p)+" c")},quadraticCurveTo:function quadraticCurveTo(e,n,i,u){return this.addContent(ve(e)+" "+ve(n)+" "+ve(i)+" "+ve(u)+" v")},rect:function rect(e,n,i,u){return this.addContent(ve(e)+" "+ve(n)+" "+ve(i)+" "+ve(u)+" re")},roundedRect:function roundedRect(e,n,i,u,d){null==d&&(d=0);var p=(d=Math.min(d,.5*i,.5*u))*(1-ye);this.moveTo(e+d,n);this.lineTo(e+i-d,n);this.bezierCurveTo(e+i-p,n,e+i,n+p,e+i,n+d);this.lineTo(e+i,n+u-d);this.bezierCurveTo(e+i,n+u-p,e+i-p,n+u,e+i-d,n+u);this.lineTo(e+d,n+u);this.bezierCurveTo(e+p,n+u,e,n+u-p,e,n+u-d);this.lineTo(e,n+d);this.bezierCurveTo(e,n+p,e+p,n,e+d,n);return this.closePath()},ellipse:function ellipse(e,n,i,u){null==u&&(u=i);var d=i*ye,p=u*ye,_=(e-=i)+2*i,y=(n-=u)+2*u,b=e+i,w=n+u;this.moveTo(e,w);this.bezierCurveTo(e,w-p,b-d,n,b,n);this.bezierCurveTo(b+d,n,_,w-p,_,w);this.bezierCurveTo(_,w+p,b+d,y,b,y);this.bezierCurveTo(b-d,y,e,w+p,e,w);return this.closePath()},circle:function circle(e,n,i){return this.ellipse(e,n,i)},arc:function arc(e,n,i,u,d,p){null==p&&(p=!1);var _=2*Math.PI,y=.5*Math.PI,b=d-u;if(Math.abs(b)>_)b=_;else if(0!==b&&p!==b<0){b=(p?-1:1)*_+b}var w=Math.ceil(Math.abs(b)/y),x=b/w,P=x/y*ye*i,E=u,k=-Math.sin(E)*P,B=Math.cos(E)*P,j=e+Math.cos(E)*i,I=n+Math.sin(E)*i;this.moveTo(j,I);for(var O=0;O<w;O++){var D=j+k,R=I+B;E+=x;j=e+Math.cos(E)*i;I=n+Math.sin(E)*i;var N=j-(k=-Math.sin(E)*P),U=I-(B=Math.cos(E)*P);this.bezierCurveTo(D,R,N,U,j,I)}return this},polygon:function polygon(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];this.moveTo.apply(this,n.shift()||[]);for(var u=0,d=n;u<d.length;u++){var p=d[u];this.lineTo.apply(this,p||[])}return this.closePath()},path:function path(e){me.apply(this,e);return this},_windingRule:function _windingRule(e){return/even-?odd/.test(e)?"*":""},fill:function fill(e,n){if(/(even-?odd)|(non-?zero)/.test(e)){n=e;e=null}e&&this.fillColor(e);return this.addContent("f"+this._windingRule(n))},stroke:function stroke(e){e&&this.strokeColor(e);return this.addContent("S")},fillAndStroke:function fillAndStroke(e,n,i){null==n&&(n=e);var u=/(even-?odd)|(non-?zero)/;if(u.test(e)){i=e;e=null}if(u.test(n)){i=n;n=e}if(e){this.fillColor(e);this.strokeColor(n)}return this.addContent("B"+this._windingRule(i))},clip:function clip(e){return this.addContent("W"+this._windingRule(e)+" n")},transform:function transform(e,n,i,u,d,p){var _=this._ctm,y=_[0],b=_[1],w=_[2],x=_[3],P=_[4],E=_[5];_[0]=y*e+w*n;_[1]=b*e+x*n;_[2]=y*i+w*u;_[3]=b*i+x*u;_[4]=y*d+w*p+P;_[5]=b*d+x*p+E;var k=[e,n,i,u,d,p].map((function(e){return ve(e)})).join(" ");return this.addContent(k+" cm")},translate:function translate(e,n){return this.transform(1,0,0,1,e,n)},rotate:function rotate(e,n){void 0===n&&(n={});var i,u=e*Math.PI/180,d=Math.cos(u),p=Math.sin(u),_=i=0;if(null!=n.origin){var y=n.origin,b=(_=y[0])*p+(i=y[1])*d;_-=_*d-i*p;i-=b}return this.transform(d,p,-p,d,_,i)},scale:function scale(e,n,i){void 0===i&&(i={});var u;null==n&&(n=e);if("object"==typeof n){i=n;n=e}var d=u=0;if(null!=i.origin){var p=i.origin;d=p[0];u=p[1];d-=e*d;u-=n*u}return this.transform(e,0,0,n,d,u)}},we={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},Se="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(":"),xe=".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(" "),Ce=function(){function AFMFont(e){this.contents=e;this.bbox=this._parseFontBBox(e[1]);this.capHeight=e[2];this.xHeight=e[3];this.ascender=e[4];this.descender=e[5];this.glyphWidths=this._parseGlyphWidths(e[6]);this.charWidths=this._getCharWidths();this.kernPairs=this._parseKerningPairs(e[7]);this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}var e=AFMFont.prototype;e.encodeText=function encodeText(e){for(var n=[],i=0,u=e.length;i<u;i++){var d=e.charCodeAt(i);d=we[d]||d;n.push(d.toString(16))}return n};e.glyphsForString=function glyphsForString(e){for(var n=[],i=0,u=e.length;i<u;i++){var d=e.charCodeAt(i);n.push(this.characterToGlyph(d))}return n};e.characterToGlyph=function characterToGlyph(e){return xe[we[e]||e]||".notdef"};e.widthOfGlyph=function widthOfGlyph(e){return this.glyphWidths[e]||0};e.getKernPair=function getKernPair(e,n){return this.kernPairs[e+"\0"+n]||0};e.advancesForGlyphs=function advancesForGlyphs(e){for(var n=[],i=0;i<e.length;i++){var u=e[i],d=e[i+1];n.push(this.widthOfGlyph(u)+this.getKernPair(u,d))}return n};e._parseFontBBox=function _parseFontBBox(e){for(var n=e.split(":"),i=[],u=0,d=n.length;u<d;u++)i.push(b(n[u]));return i};e._getCharWidths=function _getCharWidths(){for(var e=[],n=0;n<=255;n++)e.push(this.glyphWidths[xe[n]]);return e};e._parseGlyphWidths=function _parseGlyphWidths(e){var n=e.split(","),i={};if(1==n.length)for(var u=n[0].match(/(^\d+)-(\d+):(\d+)$/),d=b(u[1]),p=b(u[2]),_=b(u[3]),y=d;y<=p;y++)i[Se[y]]=_;else for(var w=0,x=0,P=n.length;x<P;x++){var E=n[x].split(":"),k=void 0;if(1===E.length)k=b(E[0]);else{w=b(E[0]);k=b(E[1])}i[Se[w++]]=k}return i};e._parseKerningPairs=function _parseKerningPairs(e){return{}};return AFMFont}(),Pe=function(){function PDFFont(){}var e=PDFFont.prototype;e.encode=function encode(){throw new Error("Must be implemented by subclasses")};e.widthOfString=function widthOfString(){throw new Error("Must be implemented by subclasses")};e.ref=function ref(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()};e.finalize=function finalize(){if(!this.embedded&&null!=this.dictionary){this.embed();return this.embedded=!0}};e.embed=function embed(){throw new Error("Must be implemented by subclasses")};e.getAscender=function getAscender(e){return this.ascender/1e3*e};e.getBBox=function getBBox(e){return{llx:this.bbox[0]/1e3*e,lly:this.bbox[1]/1e3*e,urx:this.bbox[2]/1e3*e,ury:this.bbox[3]/1e3*e}};e.lineHeight=function lineHeight(e,n){null==n&&(n=!1);var i=n?this.lineGap:0;return(this.ascender+i-this.descender)/1e3*e};return PDFFont}(),Ee={Courier:function Courier(){return'0, "-23:-250:715:805", 562, 426, 629, -157, "0-314:600"'},"Courier-Bold":function CourierBold(){return'0, "-113:-250:749:801", 562, 439, 629, -157, "0-314:600"'},"Courier-Oblique":function CourierOblique(){return'-12, "-27:-250:849:805", 562, 426, 629, -157, "0-314:600"'},"Courier-BoldOblique":function CourierBoldOblique(){return'-12, "-57:-250:869:801", 562, 439, 629, -157, "0-314:600"'},Helvetica:function Helvetica(){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 HelveticaBold(){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 HelveticaOblique(){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 HelveticaBoldOblique(){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 TimesRoman(){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 TimesBold(){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 TimesItalic(){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 TimesBoldItalic(){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 Symbol(){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 ZapfDingbats(){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"'}},ke=function(e){_inheritsLoose(StandardFont,e);function StandardFont(n,i,u){var d;(d=e.call(this)||this).document=n;d.name=i;d.id=u;d.font=new Ce(JSON.parse("["+Ee[d.name]()+',"'+d.getKerning(d.name)+'"]'));var p=d.font;d.ascender=p.ascender;d.descender=p.descender;d.bbox=p.bbox;d.lineGap=p.lineGap;d.xHeight=p.xHeight;d.capHeight=p.capHeight;return d}var n=StandardFont.prototype;n.embed=function embed(){this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"};return this.dictionary.end()};n.encode=function encode(e){for(var n=this.font.encodeText(e),i=this.font.glyphsForString(""+e),u=this.font.advancesForGlyphs(i),d=[],p=0;p<i.length;p++){var _=i[p];d.push({xAdvance:u[p],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(_)})}return[n,d]};n.widthOfString=function widthOfString(e,n){for(var i,u=this.font.glyphsForString(""+e),d=0,p=_createForOfIteratorHelperLoose(this.font.advancesForGlyphs(u));!(i=p()).done;){d+=i.value}return d*(n/1e3)};StandardFont.isStandardFont=function isStandardFont(e){return e in Ee};n.getKerning=function getKerning(e){return""};return StandardFont}(Pe),Te=function toHex(e){return("0000"+e.toString(16)).slice(-4)},Ae=function(e){_inheritsLoose(EmbeddedFont,e);function EmbeddedFont(n,i,u){var d;(d=e.call(this)||this).document=n;d.font=i;d.id=u;d.subset=d.font.createSubset();d.unicode=[[0]];d.widths=[d.font.getGlyph(0).advanceWidth];d.name=d.font.postscriptName;d.scale=1e3/d.font.unitsPerEm;d.ascender=d.font.ascent*d.scale;d.descender=d.font.descent*d.scale;d.xHeight=d.font.xHeight*d.scale;d.capHeight=d.font.capHeight*d.scale;d.lineGap=d.font.lineGap*d.scale;d.bbox=d.font.bbox;!1!==n.options.fontLayoutCache&&(d.layoutCache=E(null));return d}var n=EmbeddedFont.prototype;n.layoutRun=function layoutRun(e,n){for(var i=this.font.layout(e,n),u=0;u<i.positions.length;u++){var d=i.positions[u];for(var p in d)d[p]*=this.scale;d.advanceWidth=i.glyphs[u].advanceWidth*this.scale}return i};n.layoutCached=function layoutCached(e){if(!this.layoutCache)return this.layoutRun(e);var n;if(n=this.layoutCache[e])return n;var i=this.layoutRun(e);this.layoutCache[e]=i;return i};n.layout=function layout(e,n,i){e=e.replace(/(\r\n|\n|\r)/gm,"");if(n)return this.layoutRun(e,n);for(var u=i?null:[],d=i?null:[],p=0,_=[" ","\t"],y=!1,b=0,w=e.length,x=0;x<=w;x++){var P=_.indexOf(e.charAt(x))>=0;if(P&&x||y||x===w&&b<x){var E=this.layoutCached(e.slice(b,x));if(!i){u=u.concat(E.glyphs);d=d.concat(E.positions)}p+=E.advanceWidth;b=x}y=P}return{glyphs:u,positions:d,advanceWidth:p}};n.encode=function encode(e,n){for(var i=this.layout(e,n),u=i.glyphs,d=i.positions,p=[],_=0;_<u.length;_++){var y=u[_],b=this.subset.includeGlyph(y.id);p.push(("0000"+b.toString(16)).slice(-4));null==this.widths[b]&&(this.widths[b]=y.advanceWidth*this.scale);null==this.unicode[b]&&(this.unicode[b]=y.codePoints)}return[p,d]};n.widthOfString=function widthOfString(e,n,i){return this.layout(e,i,!0).advanceWidth*(n/1e3)};n.embed=function embed(){var e=this,n=null!=this.subset.cff,i=this.document.ref();n&&(i.data.Subtype="CIDFontType0C");this.subset.encodeStream().on("data",(function(e){return i.write(e)})).on("end",(function(){return i.end()}));var u=((null!=this.font["OS/2"]?this.font["OS/2"].sFamilyClass:void 0)||0)>>8,d=0;this.font.post.isFixedPitch&&(d|=1);1<=u&&u<=7&&(d|=2);d|=4;10===u&&(d|=8);this.font.head.macStyle.italic&&(d|=64);var p=[1,2,3,4,5,6].map((function(n){return String.fromCharCode((e.id.charCodeAt(n)||73)+17)})).join("")+"+"+this.font.postscriptName,_=this.font.bbox,y=this.document.ref({Type:"FontDescriptor",FontName:p,Flags:d,FontBBox:[_.minX*this.scale,_.minY*this.scale,_.maxX*this.scale,_.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});n?y.data.FontFile3=i:y.data.FontFile2=i;y.end();var b={Type:"Font",Subtype:"CIDFontType0",BaseFont:p,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:y,W:[0,this.widths]};if(!n){b.Subtype="CIDFontType2";b.CIDToGIDMap="Identity"}var w=this.document.ref(b);w.end();this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:p,Encoding:"Identity-H",DescendantFonts:[w],ToUnicode:this.toUnicodeCmap()};return this.dictionary.end()};n.toUnicodeCmap=function toUnicodeCmap(){for(var e,n=this.document.ref(),i=[],u=_createForOfIteratorHelperLoose(this.unicode);!(e=u()).done;){for(var d,p=[],_=_createForOfIteratorHelperLoose(e.value);!(d=_()).done;){var y=d.value;if(y>65535){y-=65536;p.push(Te(y>>>10&1023|55296));y=56320|1023&y}p.push(Te(y))}i.push("<"+p.join(" ")+">")}n.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> <"+Te(i.length-1)+"> ["+i.join(" ")+"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend");return n};return EmbeddedFont}(Pe),Be=function(){function PDFFontFactory(){}PDFFontFactory.open=function open(e,n,u,d){var p;if("string"==typeof n&&ke.isStandardFont(n))return new ke(e,n,d);i.isBuffer(n)?p=P.create(n,u):n instanceof Uint8Array?p=P.create(i.from(n),u):n instanceof ArrayBuffer&&(p=P.create(i.from(new Uint8Array(n)),u));if(null==p)throw new Error("Not a supported font format or standard PDF font.");return new Ae(e,p,d)};return PDFFontFactory}(),je={initFonts:function initFonts(e){void 0===e&&(e="Helvetica");this._fontFamilies={};this._fontCount=0;this._fontSize=12;this._font=null;this._registeredFonts={};e&&this.font(e)},font:function font(e,n,i){var u,font;if("number"==typeof n){i=n;n=null}if("string"==typeof e&&this._registeredFonts[e]){u=e;var d=this._registeredFonts[e];e=d.src;n=d.family}else"string"!=typeof(u=n||e)&&(u=null);null!=i&&this.fontSize(i);if(font=this._fontFamilies[u]){this._font=font;return this}var p="F"+ ++this._fontCount;this._font=Be.open(this,e,n,p);if(font=this._fontFamilies[this._font.name]){this._font=font;return this}u&&(this._fontFamilies[u]=this._font);this._font.name&&(this._fontFamilies[this._font.name]=this._font);return this},fontSize:function fontSize(e){this._fontSize=e;return this},currentLineHeight:function currentLineHeight(e){null==e&&(e=!1);return this._font.lineHeight(this._fontSize,e)},currentFontAscender:function currentFontAscender(){return this._font.getAscender(this._fontSize)},currentFontBBox:function currentFontBBox(){return this._font.getBBox(this._fontSize)},currentFontSize:function currentFontSize(){return this._fontSize},registerFont:function registerFont(e,n,i){this._registeredFonts[e]={src:n,family:i};return this}},Le=function(e){_inheritsLoose(LineWrapper,e);function LineWrapper(n,i){var u;(u=e.call(this)||this).document=n;u.indent=i.indent||0;u.characterSpacing=i.characterSpacing||0;u.wordSpacing=0===i.wordSpacing;u.columns=i.columns||1;u.columnGap=null!=i.columnGap?i.columnGap:18;u.lineWidth=(i.width-u.columnGap*(u.columns-1))/u.columns;u.spaceLeft=u.lineWidth;u.startX=u.document.x;u.startY=u.document.y;u.column=1;u.ellipsis=i.ellipsis;u.continuedX=0;u.features=i.features;if(null!=i.height){u.height=i.height;u.maxY=u.startY+i.height}else u.maxY=u.document.page.maxY();u.on("firstLine",(function(e){var n=u.continuedX||u.indent;u.document.x+=n;u.lineWidth-=n;return u.once("line",(function(){u.document.x-=n;u.lineWidth+=n;e.continued&&!u.continuedX&&(u.continuedX=u.indent);if(!e.continued)return u.continuedX=0}))}));u.on("lastLine",(function(e){var n=e.align;"justify"===n&&(e.align="left");u.lastLine=!0;return u.once("line",(function(){u.document.y+=e.paragraphGap||0;e.align=n;return u.lastLine=!1}))}));return u}var n=LineWrapper.prototype;n.wordWidth=function wordWidth(e){return this.document.widthOfString(e,this)+this.characterSpacing+this.wordSpacing};n.eachWord=function eachWord(e,n){for(var i,u=new B(e),d=null,p=E(null);i=u.nextBreak();){var _,y=e.slice((null!=d?d.position:void 0)||0,i.position),b=null!=p[y]?p[y]:p[y]=this.wordWidth(y);if(b>this.lineWidth+this.continuedX)for(var w=d,x={};y.length;){var P,k;if(b>this.spaceLeft){P=Math.ceil(this.spaceLeft/(b/y.length));k=(b=this.wordWidth(y.slice(0,P)))<=this.spaceLeft&&P<y.length}else P=y.length;for(var j=b>this.spaceLeft&&P>0;j||k;)if(j)j=(b=this.wordWidth(y.slice(0,--P)))>this.spaceLeft&&P>0;else{j=(b=this.wordWidth(y.slice(0,++P)))>this.spaceLeft&&P>0;k=b<=this.spaceLeft&&P<y.length}0===P&&this.spaceLeft===this.lineWidth&&(P=1);x.required=i.required||P<y.length;_=n(y.slice(0,P),b,x,w);w={required:!1};y=y.slice(P);b=this.wordWidth(y);if(!1===_)break}else _=n(y,b,i,d);if(!1===_)break;d=i}};n.wrap=function wrap(e,n){var i=this;null!=n.indent&&(this.indent=n.indent);null!=n.characterSpacing&&(this.characterSpacing=n.characterSpacing);null!=n.wordSpacing&&(this.wordSpacing=n.wordSpacing);null!=n.ellipsis&&(this.ellipsis=n.ellipsis);var u=this.document.y+this.document.currentLineHeight(!0);(this.document.y>this.maxY||u>this.maxY)&&this.nextSection();var d="",p=0,_=0,y=0,b=this.document.y,w=function emitLine(){n.textWidth=p+i.wordSpacing*(_-1);n.wordCount=_;n.lineWidth=i.lineWidth;b=i.document.y;i.emit("line",d,n,i);return y++};this.emit("sectionStart",n,this);this.eachWord(e,(function(e,u,y,b){if(null==b||b.required){i.emit("firstLine",n,i);i.spaceLeft=i.lineWidth}if(u<=i.spaceLeft){d+=e;p+=u;_++}if(y.required||u>i.spaceLeft){var x=i.document.currentLineHeight(!0);if(null!=i.height&&i.ellipsis&&i.document.y+2*x>i.maxY&&i.column>=i.columns){!0===i.ellipsis&&(i.ellipsis="…");d=d.replace(/\s+$/,"");p=i.wordWidth(d+i.ellipsis);for(;d&&p>i.lineWidth;){d=d.slice(0,-1).replace(/\s+$/,"");p=i.wordWidth(d+i.ellipsis)}p<=i.lineWidth&&(d+=i.ellipsis);p=i.wordWidth(d)}if(y.required){if(u>i.spaceLeft){w();d=e;p=u;_=1}i.emit("lastLine",n,i)}w();if(i.maxY-(i.document.y+x)<-1e-6){if(!i.nextSection()){_=0;d="";return!1}}if(y.required){i.spaceLeft=i.lineWidth;d="";p=0;return _=0}i.spaceLeft=i.lineWidth-u;d=e;p=u;return _=1}return i.spaceLeft-=u}));if(_>0){this.emit("lastLine",n,this);w()}this.emit("sectionEnd",n,this);if(!0===n.continued){y>1&&(this.continuedX=0);this.continuedX+=n.textWidth||0;return this.document.y=b}return this.document.x=this.startX};n.nextSection=function nextSection(e){this.emit("sectionEnd",e,this);if(++this.column>this.columns){if(null!=this.height)return!1;this.document.continueOnNewPage();this.column=1;this.startY=this.document.page.margins.top;this.maxY=this.document.page.maxY();this.document.x=this.startX;if(this.document._fillColor){var n;(n=this.document).fillColor.apply(n,this.document._fillColor)}this.emit("pageBreak",e,this)}else{this.document.x+=this.lineWidth+this.columnGap;this.document.y=this.startY;this.emit("columnBreak",e,this)}this.emit("sectionStart",e,this);return!0};return LineWrapper}(k.EventEmitter),Ie=J.number,Oe={initText:function initText(){this._line=this._line.bind(this);this.x=0;this.y=0;return this._lineGap=0},currentLineGap:function currentLineGap(){return this._lineGap},lineGap:function lineGap(e){this._lineGap=e;return this},moveDown:function moveDown(e){null==e&&(e=1);this.y+=this.currentLineHeight(!0)*e+this._lineGap;return this},moveUp:function moveUp(e){null==e&&(e=1);this.y-=this.currentLineHeight(!0)*e+this._lineGap;return this},_text:function _text(e,n,i,u,d){var p=this;e=null==e?"":""+e;(u=this._initOptions(n,i,u)).wordSpacing&&(e=e.replace(/\s{2,}/g," "));var _=function addStructure(){u.structParent&&u.structParent.add(p.struct(u.structType||"P",[p.markStructureContent(u.structType||"P")]))};if(u.width){var y=this._wrapper;if(!y){(y=new Le(this,u)).on("line",d);y.on("firstLine",_)}this._wrapper=u.continued?y:null;this._textOptions=u.continued?u:null;y.wrap(e,u)}else for(var b,w=_createForOfIteratorHelperLoose(e.split("\n"));!(b=w()).done;){var x=b.value;_();d(x,u)}return this},text:function text(e,n,i,u){return this._text(e,n,i,u,this._line)},widthOfString:function widthOfString(e,n){void 0===n&&(n={});return this._font.widthOfString(e,this._fontSize,n.features)+(n.characterSpacing||0)*(e.length-1)},heightOfString:function heightOfString(e,n){var i=this,u=this.x,d=this.y;(n=this._initOptions(n)).height=1/0;var p=n.lineGap||this._lineGap||0;this._text(e,this.x,this.y,n,(function(){return i.y+=i.currentLineHeight(!0)+p}));var _=this.y-d;this.x=u;this.y=d;return _},textAndMeasure:function textAndMeasure(e,n,i,u,d){u=u||{};if(null===n){n=this.x;i=this.y}var p=this,_=this.x,y=this.y,b={width:0,height:0,charCount:0},w=u.lineGap||this._lineGap||0,x=u.columnGap||18,P=null===n?this.x:n,E=[],k=0;if(d){u.structParent=null;null===u.height&&(u.height=1/0)}this._text(e,n,i,u,(function(i,u,_){b.charCount+=i.length;p.x===n&&(b.height+=p.currentLineHeight(!0)+w);if(u.textWidth){if(p.x>P){P=p.x;E[k++]=u.lineWidth}E[k]=Math.max(E[k]||0,u.textWidth)}return d?_?p.y+=p.currentLineHeight(!0)+w:p.x+=p.widthOfString(e):p._line.apply(p,arguments)}));if(E.length){E.forEach((function(e){return b.width+=e+x}));b.width-=x}else b.width=this.x-_;!1===u.includeLastLineExternalLeading&&(b.height-=this.currentLineHeight(!0)-this.currentLineHeight(!1));b.height=Math.max(0,b.height);if(d){this.x=_;this.y=y}return b},list:function list(e,n,i,u,d){var _=this,y=(u=this._initOptions(n,i,u)).listType||"bullet",b=Math.round(this._font.ascender/1e3*this._fontSize),w=b/2,x=u.bulletRadius||b/3,P=u.textIndent||("bullet"===y?5*x:2*b),E=u.bulletIndent||("bullet"===y?8*x:2*b),k=1,B=[],j=[],I=[];!function flatten(e){for(var n=1,i=0;i<e.length;i++){var u=e[i];if(p(u)){k++;flatten(u);k--}else{B.push(u);j.push(k);"bullet"!==y&&I.push(n++)}}}(e);(d=new Le(this,u)).on("line",this._line);k=1;var O=0;d.on("firstLine",(function(){var e,n,i,p,b;if(u.structParent)if(u.structTypes){var B=u.structTypes;n=B[0];i=B[1];p=B[2]}else{n="LI";i="Lbl";p="LBody"}if(n){e=_.struct(n);u.structParent.add(e)}else u.structParent&&(e=u.structParent);if((b=j[O++])!==k){var D=E*(b-k);_.x+=D;d.lineWidth-=D;k=b}e&&(i||p)&&e.add(_.struct(i||p,[_.markStructureContent(i||p)]));switch(y){case"bullet":_.circle(_.x-P+x,_.y+w,x);_.fill();break;case"numbered":case"lettered":var R=function label(e){switch(y){case"numbered":return e+".";case"lettered":var n=String.fromCharCode((e-1)%26+65),i=Math.floor((e-1)/26+1);return Array(i+1).join(n)+"."}}(I[O-1]);_._fragment(R,_.x-P,_.y,u)}e&&i&&p&&e.add(_.struct(p,[_.markStructureContent(p)]));e&&e!==u.structParent&&e.end()}));d.on("sectionStart",(function(){var e=P+E*(k-1);_.x+=e;return d.lineWidth-=e}));d.on("sectionEnd",(function(){var e=P+E*(k-1);_.x-=e;return d.lineWidth+=e}));d.wrap(B.join("\n"),u);return this},_initOptions:function _initOptions(e,n,i){void 0===e&&(e={});void 0===i&&(i={});if("object"==typeof e){i=e;e=null}var d=u({},i);if(this._textOptions)for(var p in this._textOptions){var _=this._textOptions[p];"continued"!==p&&void 0===d[p]&&(d[p]=_)}null!=e&&(this.x=e);null!=n&&(this.y=n);if(!1!==d.lineBreak){null==d.width&&(d.width=this.page.width-this.x-this.page.margins.right);d.width=Math.max(d.width,0)}d.columns||(d.columns=0);null==d.columnGap&&(d.columnGap=18);return d},_line:function _line(e,n,i){void 0===n&&(n={});this._fragment(e,this.x,this.y,n);var u=n.lineGap||this._lineGap||0;return i?this.y+=this.currentLineHeight(!0)+u:this.x+=this.widthOfString(e)},_fragment:function _fragment(e,n,i,u){var d,p,_,y,b,w,x=this;if(0!==(e=(""+e).replace(/\n|\r/g,"")).length){var P=u.align||"left",E=u.wordSpacing||0,k=u.characterSpacing||0;if(u.width)switch(P){case"right":b=this.widthOfString(e.replace(/\s+$/,""),u);n+=u.lineWidth-b;break;case"center":n+=u.lineWidth/2-u.textWidth/2;break;case"justify":w=e.trim().split(/\s+/);b=this.widthOfString(e.replace(/\s+/g,""),u);var B=this.widthOfString(" ")+k;E=Math.max(0,(u.lineWidth-b)/Math.max(1,w.length-1)-B)}if("number"==typeof u.baseline)d=-u.baseline;else{switch(u.baseline){case"svg-middle":d=.5*this._font.xHeight;break;case"middle":case"svg-central":d=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":d=this._font.descender;break;case"alphabetic":d=0;break;case"mathematical":d=.5*this._font.ascender;break;case"hanging":d=.8*this._font.ascender;break;case"top":d=this._font.ascender;break;default:d=this._font.ascender}d=d/1e3*this._fontSize}var j=u.textWidth+E*(u.wordCount-1)+k*(e.length-1);null!=u.link&&this.link(n,i,j,this.currentLineHeight(),u.link);null!=u.goTo&&this.goTo(n,i,j,this.currentLineHeight(),u.goTo);null!=u.destination&&this.addNamedDestination(u.destination,"XYZ",n,i,null);if(u.underline){this.save();u.stroke||this.strokeColor.apply(this,this._fillColor||[]);var I=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(I);var O=i+this.currentLineHeight()-I;this.moveTo(n,O);this.lineTo(n+j,O);this.stroke();this.restore()}if(u.strike){this.save();u.stroke||this.strokeColor.apply(this,this._fillColor||[]);var D=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(D);var R=i+this.currentLineHeight()/2;this.moveTo(n,R);this.lineTo(n+j,R);this.stroke();this.restore()}this.save();if(u.oblique){var N;N="number"==typeof u.oblique?-Math.tan(u.oblique*Math.PI/180):-.25;this.transform(1,0,0,1,n,i);this.transform(1,0,N,1,-N*d,0);this.transform(1,0,0,1,-n,-i)}this.transform(1,0,0,-1,0,this.page.height);i=this.page.height-i-d;null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref());this.addContent("BT");this.addContent("1 0 0 1 "+Ie(n)+" "+Ie(i)+" Tm");this.addContent("/"+this._font.id+" "+Ie(this._fontSize)+" Tf");var U=u.fill&&u.stroke?2:u.stroke?1:0;U&&this.addContent(U+" Tr");k&&this.addContent(Ie(k)+" Tc");if(E){w=e.trim().split(/\s+/);E+=this.widthOfString(" ")+k;E*=1e3/this._fontSize;p=[];y=[];for(var G,W=_createForOfIteratorHelperLoose(w);!(G=W()).done;){var X=G.value,K=this._font.encode(X,u.features),Y=K[0],J=K[1];p=p.concat(Y);var $={},ee=(y=y.concat(J))[y.length-1];for(var te in ee){var re=ee[te];$[te]=re}$.xAdvance+=E;y[y.length-1]=$}}else{var ne=this._font.encode(e,u.features);p=ne[0];y=ne[1]}var ie=this._fontSize/1e3,oe=[],ae=0,se=!1,le=function addSegment(e){if(ae<e){var n=p.slice(ae,e).join(""),i=y[e-1].xAdvance-y[e-1].advanceWidth;oe.push("<"+n+"> "+Ie(-i))}return ae=e},ue=function flush(e){le(e);if(oe.length>0){x.addContent("["+oe.join(" ")+"] TJ");return oe.length=0}};for(_=0;_<y.length;_++){var ce=y[_];if(ce.xOffset||ce.yOffset){ue(_);this.addContent("1 0 0 1 "+Ie(n+ce.xOffset*ie)+" "+Ie(i+ce.yOffset*ie)+" Tm");ue(_+1);se=!0}else{if(se){this.addContent("1 0 0 1 "+Ie(n)+" "+Ie(i)+" Tm");se=!1}ce.xAdvance-ce.advanceWidth!=0&&le(_+1)}n+=ce.xAdvance*ie}ue(_);this.addContent("ET");return this.restore()}}},Fe=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],De={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"},Re=function(){function JPEG(e,n){var i;this.data=e;this.label=n;if(65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(var u=2;u<this.data.length;){i=this.data.readUInt16BE(u);u+=2;if(-1!==Fe.indexOf(i))break;u+=this.data.readUInt16BE(u)}if(-1===Fe.indexOf(i))throw"Invalid JPEG.";u+=2;this.bits=this.data[u++];this.height=this.data.readUInt16BE(u);u+=2;this.width=this.data.readUInt16BE(u);u+=2;var d=this.data[u++];this.colorSpace=De[d];this.obj=null}JPEG.prototype.embed=function embed(e){if(!this.obj){this.obj=e.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);return this.data=null}};return JPEG}(),Ne=function(){function PNGImage(e,n){this.label=n;this.image=new j(e);this.width=this.image.width;this.height=this.image.height;this.imgData=this.image.imgData;this.obj=null}var e=PNGImage.prototype;e.embed=function embed(e){var n=!1;this.document=e;if(!this.obj){var u=this.image.hasAlphaChannel,d=1===this.image.interlaceMethod;this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:u?8:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"});if(!u){var p=this.document.ref({Predictor:d?1:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width});this.obj.data.DecodeParms=p;p.end()}if(0===this.image.palette.length)this.obj.data.ColorSpace=this.image.colorSpace;else{var _=this.document.ref();_.end(i.from(this.image.palette));this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,_]}if(null!=this.image.transparency.grayscale){var y=this.image.transparency.grayscale;this.obj.data.Mask=[y,y]}else if(this.image.transparency.rgb){for(var b,w=[],x=_createForOfIteratorHelperLoose(this.image.transparency.rgb);!(b=x()).done;){var P=b.value;w.push(P,P)}this.obj.data.Mask=w}else{if(this.image.transparency.indexed){n=!0;return this.loadIndexedAlphaChannel()}if(u){n=!0;return this.splitAlphaChannel()}}if(d&&!n)return this.decodeData();this.finalize()}};e.finalize=function finalize(){if(this.alphaChannel){var e=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});e.end(this.alphaChannel);this.obj.data.SMask=e}this.obj.end(this.imgData);this.image=null;return this.imgData=null};e.splitAlphaChannel=function splitAlphaChannel(){var e=this;return this.image.decodePixels((function(n){for(var u,d,p=e.image.colors,_=e.width*e.height,b=i.alloc(_*p),w=i.alloc(_),x=d=u=0,P=n.length,E=16===e.image.bits?1:0;x<P;){for(var k=0;k<p;k++){b[d++]=n[x++];x+=E}w[u++]=n[x++];x+=E}e.imgData=y.deflateSync(b);e.alphaChannel=y.deflateSync(w);return e.finalize()}))};e.loadIndexedAlphaChannel=function loadIndexedAlphaChannel(){var e=this,n=this.image.transparency.indexed;return this.image.decodePixels((function(u){for(var d=i.alloc(e.width*e.height),p=0,_=0,b=u.length;_<b;_++)d[p++]=n[u[_]];e.alphaChannel=y.deflateSync(d);return e.finalize()}))};e.decodeData=function decodeData(){var e=this;this.image.decodePixels((function(n){e.imgData=y.deflateSync(n);e.finalize()}))};return PNGImage}(),ze=function(){function PDFImage(){}PDFImage.open=function open(e,n){var u;if(i.isBuffer(e))u=e;else if(e instanceof ArrayBuffer)u=i.from(new Uint8Array(e));else{var d;if(d=/^data:.+;base64,(.*)$/.exec(e))u=i.from(d[1],"base64");else if(!u)return}if(255===u[0]&&216===u[1])return new Re(u,n);if(137===u[0]&&"PNG"===u.toString("ascii",1,4))return new Ne(u,n);throw new Error("Unknown image format.")};return PDFImage}(),Me={initImages:function initImages(){this._imageRegistry={};return this._imageCount=0},image:function image(e,n,i,u){void 0===u&&(u={});var d,p,image,_,y,b;if("object"==typeof n){u=n;n=null}n=null!=(y=null!=n?n:u.x)?y:this.x;i=null!=(b=null!=i?i:u.y)?b:this.y;"string"==typeof e&&(image=this._imageRegistry[e]);image||(image=e.width&&e.height?e:this.openImage(e));image.obj||image.embed(this);null==this.page.xobjects[image.label]&&(this.page.xobjects[image.label]=image.obj);var w=.75*image.width,x=.75*image.height,P=u.width||w,E=u.height||x;if(u.width&&!u.height){var k=P/w;P=w*k;E=x*k}else if(u.height&&!u.width){var B=E/x;P=w*B;E=x*B}else if(u.scale){P=w*u.scale;E=x*u.scale}else if(u.fit){var j=u.fit;if((_=w/x)>(p=j[0])/(d=j[1])){P=p;E=p/_}else{E=d;P=d*_}}else if(u.cover){var I=u.cover;if((_=w/x)>(p=I[0])/(d=I[1])){E=d;P=d*_}else{P=p;E=p/_}}if(u.fit||u.cover){"center"===u.align?n=n+p/2-P/2:"right"===u.align&&(n=n+p-P);"center"===u.valign?i=i+d/2-E/2:"bottom"===u.valign&&(i=i+d-E)}null!=u.link&&this.link(n,i,P,E,u.link);null!=u.goTo&&this.goTo(n,i,P,E,u.goTo);null!=u.destination&&this.addNamedDestination(u.destination,"XYZ",n,i,null);this.y===i&&(this.y+=E);this.save();this.transform(P,0,0,-E,n,i+E);this.addContent("/"+image.label+" Do");this.restore();return this},openImage:function openImage(e){var n;"string"==typeof e&&(n=this._imageRegistry[e]);if(!n){n=ze.open(e,"I"+ ++this._imageCount);"string"==typeof e&&(this._imageRegistry[e]=n)}return n}},Ue={annotate:function annotate(e,n,i,u,d){d.Type="Annot";d.Rect=this._convertRect(e,n,i,u);d.Border=[0,0,0];"Link"===d.Subtype&&void 0===d.F&&(d.F=4);"Link"!==d.Subtype&&null==d.C&&(d.C=this._normalizeColor(d.color||[0,0,0]));delete d.color;"string"==typeof d.Dest&&(d.Dest=new String(d.Dest));for(var p in d){var _=d[p];d[p[0].toUpperCase()+p.slice(1)]=_}var y=this.ref(d);this.page.annotations.push(y);y.end();return this},note:function note(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="Text";p.Contents=new String(d);p.Name="Comment";null==p.color&&(p.color=[243,223,92]);return this.annotate(e,n,i,u,p)},goTo:function goTo(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="Link";p.A=this.ref({S:"GoTo",D:new String(d)});p.A.end();return this.annotate(e,n,i,u,p)},link:function link(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="Link";if("number"==typeof d){var _=this._root.data.Pages.data;if(!(d>=0&&d<_.Kids.length))throw new Error("The document has no page "+d);p.A=this.ref({S:"GoTo",D:[_.Kids[d],"XYZ",null,null,null]});p.A.end()}else{p.A=this.ref({S:"URI",URI:new String(d)});p.A.end()}return this.annotate(e,n,i,u,p)},_markup:function _markup(e,n,i,u,d){void 0===d&&(d={});var p=this._convertRect(e,n,i,u),_=p[0],y=p[1],b=p[2],w=p[3];d.QuadPoints=[_,w,b,w,_,y,b,y];d.Contents=new String;return this.annotate(e,n,i,u,d)},highlight:function highlight(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Highlight";null==d.color&&(d.color=[241,238,148]);return this._markup(e,n,i,u,d)},underline:function underline(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Underline";return this._markup(e,n,i,u,d)},strike:function strike(e,n,i,u,d){void 0===d&&(d={});d.Subtype="StrikeOut";return this._markup(e,n,i,u,d)},lineAnnotation:function lineAnnotation(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Line";d.Contents=new String;d.L=[e,this.page.height-n,i,this.page.height-u];return this.annotate(e,n,i,u,d)},rectAnnotation:function rectAnnotation(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Square";d.Contents=new String;return this.annotate(e,n,i,u,d)},ellipseAnnotation:function ellipseAnnotation(e,n,i,u,d){void 0===d&&(d={});d.Subtype="Circle";d.Contents=new String;return this.annotate(e,n,i,u,d)},textAnnotation:function textAnnotation(e,n,i,u,d,p){void 0===p&&(p={});p.Subtype="FreeText";p.Contents=new String(d);p.DA=new String;return this.annotate(e,n,i,u,p)},_convertRect:function _convertRect(e,n,i,u){var d=n;n+=u;var p=e+i,_=this._ctm,y=_[0],b=_[1],w=_[2],x=_[3],P=_[4],E=_[5];return[e=y*e+w*n+P,n=b*e+x*n+E,p=y*p+w*d+P,d=b*p+x*d+E]}},He=function(){function PDFOutline(e,n,i,u,d){void 0===d&&(d={expanded:!1});this.document=e;this.options=d;this.outlineData={};null!==u&&(this.outlineData.Dest=[u.dictionary,"Fit"]);null!==n&&(this.outlineData.Parent=n);null!==i&&(this.outlineData.Title=new String(i));this.dictionary=this.document.ref(this.outlineData);this.children=[]}var e=PDFOutline.prototype;e.addItem=function addItem(e,n){void 0===n&&(n={expanded:!1});var i=new PDFOutline(this.document,this.dictionary,e,this.document.page,n);this.children.push(i);return i};e.endOutline=function endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var e=this.children[0],n=this.children[this.children.length-1];this.outlineData.First=e.dictionary;this.outlineData.Last=n.dictionary;for(var i=0,u=this.children.length;i<u;i++){var d=this.children[i];i>0&&(d.outlineData.Prev=this.children[i-1].dictionary);i<this.children.length-1&&(d.outlineData.Next=this.children[i+1].dictionary);d.endOutline()}}return this.dictionary.end()};return PDFOutline}(),Ge={initOutline:function initOutline(){return this.outline=new He(this,null,null,null)},endOutline:function endOutline(){this.outline.endOutline();if(this.outline.children.length>0){this._root.data.Outlines=this.outline.dictionary;return this._root.data.PageMode="UseOutlines"}}},qe=function(){function PDFStructureContent(e,n){this.refs=[{pageRef:e,mcid:n}]}PDFStructureContent.prototype.push=function push(e){var n=this;e.refs.forEach((function(e){return n.refs.push(e)}))};return PDFStructureContent}(),We=function(){function PDFStructureElement(e,n,i,u){var d=this;void 0===i&&(i={});void 0===u&&(u=null);this.document=e;this._attached=!1;this._ended=!1;this._flushed=!1;this.dictionary=e.ref({S:n});var _=this.dictionary.data;if(p(i)||this._isValidChild(i)){u=i;i={}}void 0!==i.title&&(_.T=new String(i.title));void 0!==i.lang&&(_.Lang=new String(i.lang));void 0!==i.alt&&(_.Alt=new String(i.alt));void 0!==i.expanded&&(_.E=new String(i.expanded));void 0!==i.actual&&(_.ActualText=new String(i.actual));this._children=[];if(u){p(u)||(u=[u]);u.forEach((function(e){return d.add(e)}));this.end()}}var e=PDFStructureElement.prototype;e.add=function add(e){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(e))throw new Error("Invalid structure element child");if(e instanceof PDFStructureElement){e.setParent(this.dictionary);this._attached&&e.setAttached()}e instanceof qe&&this._addContentToParentTree(e);"function"==typeof e&&this._attached&&(e=this._contentForClosure(e));this._children.push(e);return this};e._addContentToParentTree=function _addContentToParentTree(e){var n=this;e.refs.forEach((function(e){var i=e.pageRef,u=e.mcid;n.document.getStructParentTree().get(i.data.StructParents)[u]=n.dictionary}))};e.setParent=function setParent(e){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=e;this._flush()};e.setAttached=function setAttached(){var e=this;if(!this._attached){this._children.forEach((function(n,i){n instanceof PDFStructureElement&&n.setAttached();"function"==typeof n&&(e._children[i]=e._contentForClosure(n))}));this._attached=!0;this._flush()}};e.end=function end(){if(!this._ended){this._children.filter((function(e){return e instanceof PDFStructureElement})).forEach((function(e){return e.end()}));this._ended=!0;this._flush()}};e._isValidChild=function _isValidChild(e){return e instanceof PDFStructureElement||e instanceof qe||"function"==typeof e};e._contentForClosure=function _contentForClosure(e){var n=this.document.markStructureContent(this.dictionary.data.S);e();this.document.endMarkedContent();this._addContentToParentTree(n);return n};e._isFlushable=function _isFlushable(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every((function(e){return"function"!=typeof e&&(!(e instanceof PDFStructureElement)||e._isFlushable())}))};e._flush=function _flush(){var e=this;if(!this._flushed&&this._isFlushable()){this.dictionary.data.K=[];this._children.forEach((function(n){return e._flushChild(n)}));this.dictionary.end();this._children=[];this.dictionary.data.K=null;this._flushed=!0}};e._flushChild=function _flushChild(e){var n=this;e instanceof PDFStructureElement&&this.dictionary.data.K.push(e.dictionary);e instanceof qe&&e.refs.forEach((function(e){var i=e.pageRef,u=e.mcid;n.dictionary.data.Pg||(n.dictionary.data.Pg=i);n.dictionary.data.Pg===i?n.dictionary.data.K.push(u):n.dictionary.data.K.push({Type:"MCR",Pg:i,MCID:u})}))};return PDFStructureElement}(),Ve=function(e){_inheritsLoose(PDFNumberTree,e);function PDFNumberTree(){return e.apply(this,arguments)||this}var n=PDFNumberTree.prototype;n._compareKeys=function _compareKeys(e,n){return b(e)-b(n)};n._keysName=function _keysName(){return"Nums"};n._dataForKey=function _dataForKey(e){return b(e)};return PDFNumberTree}(W),Ze={initMarkings:function initMarkings(e){this.structChildren=[];if(e.tagged){this.getMarkInfoDictionary().data.Marked=!0;this.getStructTreeRoot()}},markContent:function markContent(e,n){void 0===n&&(n=null);if("Artifact"===e||n&&n.mcid){var i=0;this.page.markings.forEach((function(e){(i||e.structContent||"Artifact"===e.tag)&&i++}));for(;i--;)this.endMarkedContent()}if(!n){this.page.markings.push({tag:e});this.addContent("/"+e+" BMC");return this}this.page.markings.push({tag:e,options:n});var u={};void 0!==n.mcid&&(u.MCID=n.mcid);if("Artifact"===e){"string"==typeof n.type&&(u.Type=n.type);p(n.bbox)&&(u.BBox=[n.bbox[0],this.page.height-n.bbox[3],n.bbox[2],this.page.height-n.bbox[1]]);p(n.attached)&&n.attached.every((function(e){return"string"==typeof e}))&&(u.Attached=n.attached)}if("Span"===e){n.lang&&(u.Lang=new String(n.lang));n.alt&&(u.Alt=new String(n.alt));n.expanded&&(u.E=new String(n.expanded));n.actual&&(u.ActualText=new String(n.actual))}this.addContent("/"+e+" "+J.convert(u)+" BDC");return this},markStructureContent:function markStructureContent(e,n){void 0===n&&(n={});var i=this.getStructParentTree().get(this.page.structParentTreeKey),u=i.length;i.push(null);this.markContent(e,_extends({},n,{mcid:u}));var d=new qe(this.page.dictionary,u);this.page.markings.slice(-1)[0].structContent=d;return d},endMarkedContent:function endMarkedContent(){this.page.markings.pop();this.addContent("EMC");return this},struct:function struct(e,n,i){void 0===n&&(n={});void 0===i&&(i=null);return new We(this,e,n,i)},addStructure:function addStructure(e){var n=this.getStructTreeRoot();e.setParent(n);e.setAttached();this.structChildren.push(e);n.data.K||(n.data.K=[]);n.data.K.push(e.dictionary);return this},initPageMarkings:function initPageMarkings(e){var n=this;e.forEach((function(e){if(e.structContent){var i=e.structContent,u=n.markStructureContent(e.tag,e.options);i.push(u);n.page.markings.slice(-1)[0].structContent=i}else n.markContent(e.tag,e.options)}))},endPageMarkings:function endPageMarkings(e){var n=e.markings;n.forEach((function(){return e.write("EMC")}));e.markings=[];return n},getMarkInfoDictionary:function getMarkInfoDictionary(){this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({}));return this._root.data.MarkInfo},getStructTreeRoot:function getStructTreeRoot(){this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Ve,ParentTreeNextKey:0}));return this._root.data.StructTreeRoot},getStructParentTree:function getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function createStructParentTreeNextKey(){this.getMarkInfoDictionary();var e=this.getStructTreeRoot(),n=e.data.ParentTreeNextKey++;e.data.ParentTree.add(n,[]);return n},endMarkings:function endMarkings(){var e=this._root.data.StructTreeRoot;if(e){e.end();this.structChildren.forEach((function(e){return e.end()}))}this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},Xe=function(e){_inheritsLoose(PDFDocument,e);function PDFDocument(n){var i;void 0===n&&(n={});(i=e.call(this,n)||this).options=n;switch(n.pdfVersion){case"1.4":i.version=1.4;break;case"1.5":i.version=1.5;break;case"1.6":i.version=1.6;break;case"1.7":case"1.7ext3":i.version=1.7;break;default:i.version=1.3}i.compress=null==i.options.compress||i.options.compress;i._pageBuffer=[];i._pageBufferStart=0;i._offsets=[];i._waiting=0;i._ended=!1;i._offset=0;var u=i.ref({Type:"Pages",Count:0,Kids:[]}),d=i.ref({Dests:new ne});i._root=i.ref({Type:"Catalog",Pages:u,Names:d});i.options.lang&&(i._root.data.Lang=new String(i.options.lang));i.page=null;i.initColor();i.initVector();i.initFonts(n.font);i.initText();i.initImages();i.initOutline();i.initMarkings(n);i.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date};if(i.options.info)for(var p in i.options.info){var _=i.options.info[p];i.info[p]=_}i.options.displayTitle&&(i._root.data.ViewerPreferences=i.ref({DisplayDocTitle:!0}));var y=n.security;i._id=y&&y.generateFileID(i.info);i._security=y&&y.create(function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i),n);i._write("%PDF-"+i.version);i._write("%ÿÿÿÿ");i.options.pageAdding&&i.on("pageAdding",i.options.pageAdding);i.options.pageAdded&&i.on("pageAdded",i.options.pageAdded);!1!==i.options.autoFirstPage&&i.addPage();return i}var n=PDFDocument.prototype;n.addPage=function addPage(e){null==e&&(e=this.options);this.emit("pageAdding",this,e);this.options.bufferPages||this.flushPages();this.page=new re(this,e);this._pageBuffer.push(this.page);var n=this._root.data.Pages.data;n.Kids.push(this.page.dictionary);n.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);return this};n.continueOnNewPage=function continueOnNewPage(e){var n=this.endPageMarkings(this.page);this.addPage(e);this.initPageMarkings(n);return this};n.bufferedPageRange=function bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}};n.switchToPage=function switchToPage(e){var n;if(!(n=this._pageBuffer[e-this._pageBufferStart]))throw new Error("switchToPage("+e+") out of bounds, current buffer covers pages "+this._pageBufferStart+" to "+(this._pageBufferStart+this._pageBuffer.length-1));return this.page=n};n.flushPages=function flushPages(){var e=this._pageBuffer;this._pageBuffer=[];this._pageBufferStart+=e.length;for(var n,i=_createForOfIteratorHelperLoose(e);!(n=i()).done;){var u=n.value;this.endPageMarkings(u);u.end()}};n.addNamedDestination=function addNamedDestination(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];0===i.length&&(i=["XYZ",null,null,null]);"XYZ"===i[0]&&null!==i[2]&&(i[2]=this.page.height-i[2]);i.unshift(this.page.dictionary);this._root.data.Names.data.Dests.add(e,i)};n.addNamedJavaScript=function addNamedJavaScript(e,n){this._root.data.Names.data.JavaScript||(this._root.data.Names.data.JavaScript=new ne);var i={JS:new String(n),S:"JavaScript"};this._root.data.Names.data.JavaScript.add(e,i)};n.ref=function ref(e){var ref=new $(this,this._offsets.length+1,e);this._offsets.push(null);this._waiting++;return ref};n._read=function _read(){};n._write=function _write(e){i.isBuffer(e)||(e=i.from(e+"\n","binary"));this.push(e);return this._offset+=e.length};n.addContent=function addContent(e){this.page.write(e);return this};n._refEnd=function _refEnd(e){this._offsets[e.id-1]=e.offset;if(0==--this._waiting&&this._ended){this._finalize();return this._ended=!1}};n.end=function end(){this.emit("ending");this.flushPages();this._info=this.ref();for(var e in this.info){var n=this.info[e];"string"==typeof n&&(n=new String(n));var i=this.ref(n);i.end();this._info.data[e]=i}this._info.end();for(var u in this._fontFamilies){this._fontFamilies[u].finalize()}this.endOutline();this.endMarkings();this._root.end();this._root.data.Pages.end();this._root.data.Names.end();this._root.data.ViewerPreferences&&this._root.data.ViewerPreferences.end();this._security&&this._security.end();return 0===this._waiting?this._finalize():this._ended=!0};n._finalize=function _finalize(){var e=this._offset;this._write("xref");this._write("0 "+(this._offsets.length+1));this._write("0000000000 65535 f ");for(var n,i=_createForOfIteratorHelperLoose(this._offsets);!(n=i()).done;){var u=n.value;u=("0000000000"+u).slice(-10);this._write(u+" 00000 n ")}var d={Size:this._offsets.length+1,Root:this._root,Info:this._info};this._id&&(d.ID=[this._id,this._id]);this._security&&(d.Encrypt=this._security.dictionary);this._write("trailer");this._write(J.convert(d));this._write("startxref");this._write(""+e);this._write("%%EOF");return this.push(null)};n.toString=function toString(){return"[object PDFDocument]"};return PDFDocument}(d.Readable),Ke=function mixin(e){u(Xe.prototype,e)};Ke(ce);Ke(be);Ke(je);Ke(Oe);Ke(Me);Ke(Ue);Ke(Ge);Ke(Ze);Xe.LineWrapper=Le;n.localExports=Xe}).call(this)}).call(this,e("buffer").Buffer)},{"@babel/runtime-corejs2/core-js/array/is-array":136,"@babel/runtime-corejs2/core-js/json/stringify":137,"@babel/runtime-corejs2/core-js/number/is-finite":138,"@babel/runtime-corejs2/core-js/object/assign":139,"@babel/runtime-corejs2/core-js/object/create":140,"@babel/runtime-corejs2/core-js/object/keys":141,"@babel/runtime-corejs2/core-js/parse-int":142,buffer:152,events:210,fontkit:1,linebreak:133,"png-js":226,stream:243,zlib:150}],136:[function(e,n,i){arguments[4][3][0].apply(i,arguments)},{"core-js/library/fn/array/is-array":153,dup:3}],137:[function(e,n,i){n.localExports=e("core-js/library/fn/json/stringify")},{"core-js/library/fn/json/stringify":154}],138:[function(e,n,i){n.localExports=e("core-js/library/fn/number/is-finite")},{"core-js/library/fn/number/is-finite":155}],139:[function(e,n,i){n.localExports=e("core-js/library/fn/object/assign")},{"core-js/library/fn/object/assign":156}],140:[function(e,n,i){n.localExports=e("core-js/library/fn/object/create")},{"core-js/library/fn/object/create":157}],141:[function(e,n,i){arguments[4][8][0].apply(i,arguments)},{"core-js/library/fn/object/keys":158,dup:8}],142:[function(e,n,i){n.localExports=e("core-js/library/fn/parse-int")},{"core-js/library/fn/parse-int":159}],143:[function(e,n,i){(function(i){(function(){var u=e("object-assign");function compare(e,n){if(e===n)return 0;for(var i=e.length,u=n.length,d=0,p=Math.min(i,u);d<p;++d)if(e[d]!==n[d]){i=e[d];u=n[d];break}return i<u?-1:u<i?1:0}function isBuffer(e){return i.Buffer&&"function"==typeof i.Buffer.isBuffer?i.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var d=e("util/"),p=Object.prototype.hasOwnProperty,_=Array.prototype.slice,y="foo"===function foo(){}.name;function pToString(e){return Object.prototype.toString.call(e)}function isView(e){return!isBuffer(e)&&("function"==typeof i.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var b=n.localExports=ok,w=/\s*function\s+([^\(\s]*)\s*/;function getName(e){if(d.isFunction(e)){if(y)return e.name;var n=e.toString().match(w);return n&&n[1]}}b.AssertionError=function AssertionError(e){this.name="AssertionError";this.actual=e.actual;this.expected=e.expected;this.operator=e.operator;if(e.message){this.message=e.message;this.generatedMessage=!1}else{this.message=function getMessage(e){return truncate(inspect(e.actual),128)+" "+e.operator+" "+truncate(inspect(e.expected),128)}(this);this.generatedMessage=!0}var n=e.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var i=new Error;if(i.stack){var u=i.stack,d=getName(n),p=u.indexOf("\n"+d);if(p>=0){var _=u.indexOf("\n",p+1);u=u.substring(_+1)}this.stack=u}}};d.inherits(b.AssertionError,Error);function truncate(e,n){return"string"==typeof e?e.length<n?e:e.slice(0,n):e}function inspect(e){if(y||!d.isFunction(e))return d.inspect(e);var n=getName(e);return"[Function"+(n?": "+n:"")+"]"}function fail(e,n,i,u,d){throw new b.AssertionError({message:i,actual:e,expected:n,operator:u,stackStartFunction:d})}b.fail=fail;function ok(e,n){e||fail(e,!0,n,"==",b.ok)}b.ok=ok;b.equal=function equal(e,n,i){e!=n&&fail(e,n,i,"==",b.equal)};b.notEqual=function notEqual(e,n,i){e==n&&fail(e,n,i,"!=",b.notEqual)};b.deepEqual=function deepEqual(e,n,i){_deepEqual(e,n,!1)||fail(e,n,i,"deepEqual",b.deepEqual)};b.deepStrictEqual=function deepStrictEqual(e,n,i){_deepEqual(e,n,!0)||fail(e,n,i,"deepStrictEqual",b.deepStrictEqual)};function _deepEqual(e,n,i,u){if(e===n)return!0;if(isBuffer(e)&&isBuffer(n))return 0===compare(e,n);if(d.isDate(e)&&d.isDate(n))return e.getTime()===n.getTime();if(d.isRegExp(e)&&d.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(isView(e)&&isView(n)&&pToString(e)===pToString(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===compare(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(isBuffer(e)!==isBuffer(n))return!1;var p=(u=u||{actual:[],expected:[]}).actual.indexOf(e);if(-1!==p&&p===u.expected.indexOf(n))return!0;u.actual.push(e);u.expected.push(n);return function objEquiv(e,n,i,u){if(null==e||null==n)return!1;if(d.isPrimitive(e)||d.isPrimitive(n))return e===n;if(i&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(n))return!1;var p=isArguments(e),y=isArguments(n);if(p&&!y||!p&&y)return!1;if(p){e=_.call(e);n=_.call(n);return _deepEqual(e,n,i)}var b,w,P=x(e),E=x(n);if(P.length!==E.length)return!1;P.sort();E.sort();for(w=P.length-1;w>=0;w--)if(P[w]!==E[w])return!1;for(w=P.length-1;w>=0;w--){b=P[w];if(!_deepEqual(e[b],n[b],i,u))return!1}return!0}(e,n,i,u)}return i?e===n:e==n}function isArguments(e){return"[object Arguments]"==Object.prototype.toString.call(e)}b.notDeepEqual=function notDeepEqual(e,n,i){_deepEqual(e,n,!1)&&fail(e,n,i,"notDeepEqual",b.notDeepEqual)};b.notDeepStrictEqual=function notDeepStrictEqual(e,n,i){_deepEqual(e,n,!0)&&fail(e,n,i,"notDeepStrictEqual",notDeepStrictEqual)};b.strictEqual=function strictEqual(e,n,i){e!==n&&fail(e,n,i,"===",b.strictEqual)};b.notStrictEqual=function notStrictEqual(e,n,i){e===n&&fail(e,n,i,"!==",b.notStrictEqual)};function expectedException(e,n){if(!e||!n)return!1;if("[object RegExp]"==Object.prototype.toString.call(n))return n.test(e);try{if(e instanceof n)return!0}catch(e){}return!Error.isPrototypeOf(n)&&!0===n.call({},e)}function _throws(e,n,i,u){var p;if("function"!=typeof n)throw new TypeError('"block" argument must be a function');if("string"==typeof i){u=i;i=null}p=function _tryBlock(e){var n;try{e()}catch(e){n=e}return n}(n);u=(i&&i.name?" ("+i.name+").":".")+(u?" "+u:".");e&&!p&&fail(p,i,"Missing expected exception"+u);var _="string"==typeof u,y=!e&&p&&!i;(!e&&d.isError(p)&&_&&expectedException(p,i)||y)&&fail(p,i,"Got unwanted exception"+u);if(e&&p&&i&&!expectedException(p,i)||!e&&p)throw p}b.throws=function(e,n,i){_throws(!0,e,n,i)};b.doesNotThrow=function(e,n,i){_throws(!1,e,n,i)};b.ifError=function(e){if(e)throw e};b.strict=u((function strict(e,n){e||fail(e,!0,n,"==",strict)}),b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual});b.strict.strict=b.strict;var x=Object.keys||function(e){var n=[];for(var i in e)p.call(e,i)&&n.push(i);return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":214,"util/":146}],144:[function(e,n,i){"function"==typeof Object.create?n.localExports=function inherits(e,n){e.super_=n;e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:n.localExports=function inherits(e,n){e.super_=n;var i=function TempCtor(){};i.prototype=n.prototype;e.prototype=new i;e.prototype.constructor=e}},{}],145:[function(e,n,i){n.localExports=function isBuffer(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],146:[function(e,n,i){(function(n,u){(function(){var d=/%[sdj%]/g;i.format=function(e){if(!isString(e)){for(var n=[],i=0;i<arguments.length;i++)n.push(inspect(arguments[i]));return n.join(" ")}i=1;for(var u=arguments,p=u.length,_=String(e).replace(d,(function(e){if("%%"===e)return"%";if(i>=p)return e;switch(e){case"%s":return String(u[i++]);case"%d":return Number(u[i++]);case"%j":try{return JSON.stringify(u[i++])}catch(e){return"[Circular]"}default:return e}})),y=u[i];i<p;y=u[++i])isNull(y)||!isObject(y)?_+=" "+y:_+=" "+inspect(y);return _};i.deprecate=function(e,d){if(isUndefined(u.process))return function(){return i.deprecate(e,d).apply(this,arguments)};if(!0===n.noDeprecation)return e;var p=!1;return function deprecated(){if(!p){if(n.throwDeprecation)throw new Error(d);n.traceDeprecation?console.trace(d):console.error(d);p=!0}return e.apply(this,arguments)}};var p,_={};i.debuglog=function(e){isUndefined(p)&&(p=n.env.NODE_DEBUG||"");e=e.toUpperCase();if(!_[e])if(new RegExp("\\b"+e+"\\b","i").test(p)){var u=n.pid;_[e]=function(){var n=i.format.apply(i,arguments);console.error("%s %d: %s",e,u,n)}}else _[e]=function(){};return _[e]};function inspect(e,n){var u={seen:[],stylize:stylizeNoColor};arguments.length>=3&&(u.depth=arguments[2]);arguments.length>=4&&(u.colors=arguments[3]);isBoolean(n)?u.showHidden=n:n&&i._extend(u,n);isUndefined(u.showHidden)&&(u.showHidden=!1);isUndefined(u.depth)&&(u.depth=2);isUndefined(u.colors)&&(u.colors=!1);isUndefined(u.customInspect)&&(u.customInspect=!0);u.colors&&(u.stylize=stylizeWithColor);return formatValue(u,e,u.depth)}i.inspect=inspect;inspect.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]};inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(e,n){var i=inspect.styles[n];return i?"["+inspect.colors[i][0]+"m"+e+"["+inspect.colors[i][1]+"m":e}function stylizeNoColor(e,n){return e}function formatValue(e,n,u){if(e.customInspect&&n&&isFunction(n.inspect)&&n.inspect!==i.inspect&&(!n.constructor||n.constructor.prototype!==n)){var d=n.inspect(u,e);isString(d)||(d=formatValue(e,d,u));return d}var p=function formatPrimitive(e,n){if(isUndefined(n))return e.stylize("undefined","undefined");if(isString(n)){var i="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(isNumber(n))return e.stylize(""+n,"number");if(isBoolean(n))return e.stylize(""+n,"boolean");if(isNull(n))return e.stylize("null","null")}(e,n);if(p)return p;var _=Object.keys(n),y=function arrayToHash(e){var n={};e.forEach((function(e,i){n[e]=!0}));return n}(_);e.showHidden&&(_=Object.getOwnPropertyNames(n));if(isError(n)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return formatError(n);if(0===_.length){if(isFunction(n)){var b=n.name?": "+n.name:"";return e.stylize("[Function"+b+"]","special")}if(isRegExp(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(isDate(n))return e.stylize(Date.prototype.toString.call(n),"date");if(isError(n))return formatError(n)}var w,x="",P=!1,E=["{","}"];if(isArray(n)){P=!0;E=["[","]"]}if(isFunction(n)){x=" [Function"+(n.name?": "+n.name:"")+"]"}isRegExp(n)&&(x=" "+RegExp.prototype.toString.call(n));isDate(n)&&(x=" "+Date.prototype.toUTCString.call(n));isError(n)&&(x=" "+formatError(n));if(0===_.length&&(!P||0==n.length))return E[0]+x+E[1];if(u<0)return isRegExp(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);w=P?function formatArray(e,n,i,u,d){for(var p=[],_=0,y=n.length;_<y;++_)hasOwnProperty(n,String(_))?p.push(formatProperty(e,n,i,u,String(_),!0)):p.push("");d.forEach((function(d){d.match(/^\d+$/)||p.push(formatProperty(e,n,i,u,d,!0))}));return p}(e,n,u,y,_):_.map((function(i){return formatProperty(e,n,u,y,i,P)}));e.seen.pop();return function reduceToSingleString(e,n,i){if(e.reduce((function(e,n){return e+n.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return i[0]+(""===n?"":n+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+n+" "+e.join(", ")+" "+i[1]}(w,x,E)}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatProperty(e,n,i,u,d,p){var _,y,b;(b=Object.getOwnPropertyDescriptor(n,d)||{value:n[d]}).get?y=b.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):b.set&&(y=e.stylize("[Setter]","special"));hasOwnProperty(u,d)||(_="["+d+"]");y||(e.seen.indexOf(b.value)<0?(y=isNull(i)?formatValue(e,b.value,null):formatValue(e,b.value,i-1)).indexOf("\n")>-1&&(y=p?y.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+y.split("\n").map((function(e){return" "+e})).join("\n")):y=e.stylize("[Circular]","special"));if(isUndefined(_)){if(p&&d.match(/^\d+$/))return y;if((_=JSON.stringify(""+d)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){_=_.substr(1,_.length-2);_=e.stylize(_,"name")}else{_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");_=e.stylize(_,"string")}}return _+": "+y}function isArray(e){return Array.isArray(e)}i.isArray=isArray;function isBoolean(e){return"boolean"==typeof e}i.isBoolean=isBoolean;function isNull(e){return null===e}i.isNull=isNull;i.isNullOrUndefined=function isNullOrUndefined(e){return null==e};function isNumber(e){return"number"==typeof e}i.isNumber=isNumber;function isString(e){return"string"==typeof e}i.isString=isString;i.isSymbol=function isSymbol(e){return"symbol"==typeof e};function isUndefined(e){return void 0===e}i.isUndefined=isUndefined;function isRegExp(e){return isObject(e)&&"[object RegExp]"===objectToString(e)}i.isRegExp=isRegExp;function isObject(e){return"object"==typeof e&&null!==e}i.isObject=isObject;function isDate(e){return isObject(e)&&"[object Date]"===objectToString(e)}i.isDate=isDate;function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}i.isError=isError;function isFunction(e){return"function"==typeof e}i.isFunction=isFunction;i.isPrimitive=function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e};i.isBuffer=e("./support/isBuffer");function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return e<10?"0"+e.toString(10):e.toString(10)}var y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var e=new Date,n=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),y[e.getMonth()],n].join(" ")}i.log=function(){console.log("%s - %s",timestamp(),i.format.apply(i,arguments))};i.inherits=e("inherits");i._extend=function(e,n){if(!n||!isObject(n))return e;for(var i=Object.keys(n),u=i.length;u--;)e[i[u]]=n[i[u]];return e};function hasOwnProperty(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":145,_process:228,inherits:144}],147:[function(e,n,i){arguments[4][122][0].apply(i,arguments)},{dup:122}],148:[function(e,n,i){arguments[4][108][0].apply(i,arguments)},{dup:108}],149:[function(e,n,i){(function(n,u){(function(){var d=e("pako/lib/zlib/messages"),p=e("pako/lib/zlib/zstream"),_=e("pako/lib/zlib/deflate.js"),y=e("pako/lib/zlib/inflate.js"),b=e("pako/lib/zlib/constants");for(var w in b)i[w]=b[w];i.NONE=0;i.DEFLATE=1;i.INFLATE=2;i.GZIP=3;i.GUNZIP=4;i.DEFLATERAW=5;i.INFLATERAW=6;i.UNZIP=7;function Zlib(e){if(e<i.DEFLATE||e>i.UNZIP)throw new TypeError("Bad argument");this.mode=e;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}Zlib.prototype.init=function(e,n,u,d,b){this.windowBits=e;this.level=n;this.memLevel=u;this.strategy=d;this.mode!==i.GZIP&&this.mode!==i.GUNZIP||(this.windowBits+=16);this.mode===i.UNZIP&&(this.windowBits+=32);this.mode!==i.DEFLATERAW&&this.mode!==i.INFLATERAW||(this.windowBits=-this.windowBits);this.strm=new p;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:var w=_.deflateInit2(this.strm,this.level,i.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:case i.UNZIP:w=y.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}if(w===i.Z_OK){this.write_in_progress=!1;this.init_done=!0}else this._error(w)};Zlib.prototype.params=function(){throw new Error("deflateParams Not supported")};Zlib.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===i.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")};Zlib.prototype.write=function(e,i,u,d,p,_,y){this._writeCheck();this.write_in_progress=!0;var b=this;n.nextTick((function(){b.write_in_progress=!1;var n=b._write(e,i,u,d,p,_,y);b.callback(n[0],n[1]);b.pending_close&&b.close()}));return this};function bufferSet(e,n){for(var i=0;i<e.length;i++)this[n+i]=e[i]}Zlib.prototype.writeSync=function(e,n,i,u,d,p,_){this._writeCheck();return this._write(e,n,i,u,d,p,_)};Zlib.prototype._write=function(e,n,d,p,b,w,x){this.write_in_progress=!0;if(e!==i.Z_NO_FLUSH&&e!==i.Z_PARTIAL_FLUSH&&e!==i.Z_SYNC_FLUSH&&e!==i.Z_FULL_FLUSH&&e!==i.Z_FINISH&&e!==i.Z_BLOCK)throw new Error("Invalid flush value");if(null==n){n=new u(0);p=0;d=0}b._set?b.set=b._set:b.set=bufferSet;var P=this.strm;P.avail_in=p;P.input=n;P.next_in=d;P.avail_out=x;P.output=b;P.next_out=w;switch(this.mode){case i.DEFLATE:case i.GZIP:case i.DEFLATERAW:var E=_.deflate(P,e);break;case i.UNZIP:case i.INFLATE:case i.GUNZIP:case i.INFLATERAW:E=y.inflate(P,e);break;default:throw new Error("Unknown mode "+this.mode)}E!==i.Z_STREAM_END&&E!==i.Z_OK&&this._error(E);this.write_in_progress=!1;return[P.avail_in,P.avail_out]};Zlib.prototype.close=function(){if(this.write_in_progress)this.pending_close=!0;else{this.pending_close=!1;this.mode===i.DEFLATE||this.mode===i.GZIP||this.mode===i.DEFLATERAW?_.deflateEnd(this.strm):y.inflateEnd(this.strm);this.mode=i.NONE}};Zlib.prototype.reset=function(){switch(this.mode){case i.DEFLATE:case i.DEFLATERAW:var e=_.deflateReset(this.strm);break;case i.INFLATE:case i.INFLATERAW:e=y.inflateReset(this.strm)}e!==i.Z_OK&&this._error(e)};Zlib.prototype._error=function(e){this.onerror(d[e]+": "+this.strm.msg,e);this.write_in_progress=!1;this.pending_close&&this.close()};i.Zlib=Zlib}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:228,buffer:152,"pako/lib/zlib/constants":217,"pako/lib/zlib/deflate.js":219,"pako/lib/zlib/inflate.js":221,"pako/lib/zlib/messages":223,"pako/lib/zlib/zstream":225}],150:[function(e,n,i){(function(n,u){(function(){var d=e("_stream_transform"),p=e("./binding"),_=e("util"),y=e("assert").ok;p.Z_MIN_WINDOWBITS=8;p.Z_MAX_WINDOWBITS=15;p.Z_DEFAULT_WINDOWBITS=15;p.Z_MIN_CHUNK=64;p.Z_MAX_CHUNK=1/0;p.Z_DEFAULT_CHUNK=16384;p.Z_MIN_MEMLEVEL=1;p.Z_MAX_MEMLEVEL=9;p.Z_DEFAULT_MEMLEVEL=8;p.Z_MIN_LEVEL=-1;p.Z_MAX_LEVEL=9;p.Z_DEFAULT_LEVEL=p.Z_DEFAULT_COMPRESSION;Object.keys(p).forEach((function(e){e.match(/^Z/)&&(i[e]=p[e])}));i.codes={Z_OK:p.Z_OK,Z_STREAM_END:p.Z_STREAM_END,Z_NEED_DICT:p.Z_NEED_DICT,Z_ERRNO:p.Z_ERRNO,Z_STREAM_ERROR:p.Z_STREAM_ERROR,Z_DATA_ERROR:p.Z_DATA_ERROR,Z_MEM_ERROR:p.Z_MEM_ERROR,Z_BUF_ERROR:p.Z_BUF_ERROR,Z_VERSION_ERROR:p.Z_VERSION_ERROR};Object.keys(i.codes).forEach((function(e){i.codes[i.codes[e]]=e}));i.Deflate=Deflate;i.Inflate=Inflate;i.Gzip=Gzip;i.Gunzip=Gunzip;i.DeflateRaw=DeflateRaw;i.InflateRaw=InflateRaw;i.Unzip=Unzip;i.createDeflate=function(e){return new Deflate(e)};i.createInflate=function(e){return new Inflate(e)};i.createDeflateRaw=function(e){return new DeflateRaw(e)};i.createInflateRaw=function(e){return new InflateRaw(e)};i.createGzip=function(e){return new Gzip(e)};i.createGunzip=function(e){return new Gunzip(e)};i.createUnzip=function(e){return new Unzip(e)};i.deflate=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Deflate(n),e,i)};i.deflateSync=function(e,n){return zlibBufferSync(new Deflate(n),e)};i.gzip=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Gzip(n),e,i)};i.gzipSync=function(e,n){return zlibBufferSync(new Gzip(n),e)};i.deflateRaw=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new DeflateRaw(n),e,i)};i.deflateRawSync=function(e,n){return zlibBufferSync(new DeflateRaw(n),e)};i.unzip=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Unzip(n),e,i)};i.unzipSync=function(e,n){return zlibBufferSync(new Unzip(n),e)};i.inflate=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Inflate(n),e,i)};i.inflateSync=function(e,n){return zlibBufferSync(new Inflate(n),e)};i.gunzip=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new Gunzip(n),e,i)};i.gunzipSync=function(e,n){return zlibBufferSync(new Gunzip(n),e)};i.inflateRaw=function(e,n,i){if("function"==typeof n){i=n;n={}}return zlibBuffer(new InflateRaw(n),e,i)};i.inflateRawSync=function(e,n){return zlibBufferSync(new InflateRaw(n),e)};function zlibBuffer(e,n,i){var d=[],p=0;e.on("error",(function onError(n){e.removeListener("end",onEnd);e.removeListener("readable",flow);i(n)}));e.on("end",onEnd);e.end(n);flow();function flow(){for(var n;null!==(n=e.read());){d.push(n);p+=n.length}e.once("readable",flow)}function onEnd(){var n=u.concat(d,p);d=[];i(null,n);e.close()}}function zlibBufferSync(e,n){"string"==typeof n&&(n=new u(n));if(!u.isBuffer(n))throw new TypeError("Not a string or buffer");var i=p.Z_FINISH;return e._processChunk(n,i)}function Deflate(e){if(!(this instanceof Deflate))return new Deflate(e);Zlib.call(this,e,p.DEFLATE)}function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);Zlib.call(this,e,p.INFLATE)}function Gzip(e){if(!(this instanceof Gzip))return new Gzip(e);Zlib.call(this,e,p.GZIP)}function Gunzip(e){if(!(this instanceof Gunzip))return new Gunzip(e);Zlib.call(this,e,p.GUNZIP)}function DeflateRaw(e){if(!(this instanceof DeflateRaw))return new DeflateRaw(e);Zlib.call(this,e,p.DEFLATERAW)}function InflateRaw(e){if(!(this instanceof InflateRaw))return new InflateRaw(e);Zlib.call(this,e,p.INFLATERAW)}function Unzip(e){if(!(this instanceof Unzip))return new Unzip(e);Zlib.call(this,e,p.UNZIP)}function Zlib(e,n){this._opts=e=e||{};this._chunkSize=e.chunkSize||i.Z_DEFAULT_CHUNK;d.call(this,e);if(e.flush&&e.flush!==p.Z_NO_FLUSH&&e.flush!==p.Z_PARTIAL_FLUSH&&e.flush!==p.Z_SYNC_FLUSH&&e.flush!==p.Z_FULL_FLUSH&&e.flush!==p.Z_FINISH&&e.flush!==p.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);this._flushFlag=e.flush||p.Z_NO_FLUSH;if(e.chunkSize&&(e.chunkSize<i.Z_MIN_CHUNK||e.chunkSize>i.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<i.Z_MIN_WINDOWBITS||e.windowBits>i.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<i.Z_MIN_LEVEL||e.level>i.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<i.Z_MIN_MEMLEVEL||e.memLevel>i.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=i.Z_FILTERED&&e.strategy!=i.Z_HUFFMAN_ONLY&&e.strategy!=i.Z_RLE&&e.strategy!=i.Z_FIXED&&e.strategy!=i.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!u.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new p.Zlib(n);var _=this;this._hadError=!1;this._binding.onerror=function(e,n){_._binding=null;_._hadError=!0;var u=new Error(e);u.errno=n;u.code=i.codes[n];_.emit("error",u)};var y=i.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(y=e.level);var b=i.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(b=e.strategy);this._binding.init(e.windowBits||i.Z_DEFAULT_WINDOWBITS,y,e.memLevel||i.Z_DEFAULT_MEMLEVEL,b,e.dictionary);this._buffer=new u(this._chunkSize);this._offset=0;this._closed=!1;this._level=y;this._strategy=b;this.once("end",this.close)}_.inherits(Zlib,d);Zlib.prototype.params=function(e,u,d){if(e<i.Z_MIN_LEVEL||e>i.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(u!=i.Z_FILTERED&&u!=i.Z_HUFFMAN_ONLY&&u!=i.Z_RLE&&u!=i.Z_FIXED&&u!=i.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+u);if(this._level!==e||this._strategy!==u){var _=this;this.flush(p.Z_SYNC_FLUSH,(function(){_._binding.params(e,u);if(!_._hadError){_._level=e;_._strategy=u;d&&d()}}))}else n.nextTick(d)};Zlib.prototype.reset=function(){return this._binding.reset()};Zlib.prototype._flush=function(e){this._transform(new u(0),"",e)};Zlib.prototype.flush=function(e,i){var d=this._writableState;if("function"==typeof e||void 0===e&&!i){i=e;e=p.Z_FULL_FLUSH}if(d.ended)i&&n.nextTick(i);else if(d.ending)i&&this.once("end",i);else if(d.needDrain){var _=this;this.once("drain",(function(){_.flush(i)}))}else{this._flushFlag=e;this.write(new u(0),"",i)}};Zlib.prototype.close=function(e){e&&n.nextTick(e);if(!this._closed){this._closed=!0;this._binding.close();var i=this;n.nextTick((function(){i.emit("close")}))}};Zlib.prototype._transform=function(e,n,i){var d,_=this._writableState,y=(_.ending||_.ended)&&(!e||_.length===e.length);if(null===!e&&!u.isBuffer(e))return i(new Error("invalid input"));if(y)d=p.Z_FINISH;else{d=this._flushFlag;e.length>=_.length&&(this._flushFlag=this._opts.flush||p.Z_NO_FLUSH)}this._processChunk(e,d,i)};Zlib.prototype._processChunk=function(e,n,i){var d=e&&e.length,p=this._chunkSize-this._offset,_=0,b=this,w="function"==typeof i;if(!w){var x,P=[],E=0;this.on("error",(function(e){x=e}));do{var k=this._binding.writeSync(n,e,_,d,this._buffer,this._offset,p)}while(!this._hadError&&callback(k[0],k[1]));if(this._hadError)throw x;var B=u.concat(P,E);this.close();return B}var j=this._binding.write(n,e,_,d,this._buffer,this._offset,p);j.buffer=e;j.callback=callback;function callback(x,k){if(!b._hadError){var B=p-k;y(B>=0,"have should not go down");if(B>0){var j=b._buffer.slice(b._offset,b._offset+B);b._offset+=B;if(w)b.push(j);else{P.push(j);E+=j.length}}if(0===k||b._offset>=b._chunkSize){p=b._chunkSize;b._offset=0;b._buffer=new u(b._chunkSize)}if(0!==k){if(!w)return!1;i()}else{_+=d-x;d=x;if(!w)return!0;var I=b._binding.write(n,e,_,d,b._buffer,b._offset,b._chunkSize);I.callback=callback;I.buffer=e}}}};_.inherits(Deflate,Zlib);_.inherits(Inflate,Zlib);_.inherits(Gzip,Zlib);_.inherits(Gunzip,Zlib);_.inherits(DeflateRaw,Zlib);_.inherits(InflateRaw,Zlib);_.inherits(Unzip,Zlib)}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./binding":149,_process:228,_stream_transform:240,assert:143,buffer:152,util:249}],151:[function(e,n,i){arguments[4][108][0].apply(i,arguments)},{dup:108}],152:[function(e,n,i){(function(n,u){(function(){var u=e("base64-js"),d=e("ieee754"),p=e("isarray");i.Buffer=Buffer;i.SlowBuffer=function SlowBuffer(e){+e!=e&&(e=0);return Buffer.alloc(+e)};i.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42}};return 42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}();i.kMaxLength=kMaxLength();function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,n){if(kMaxLength()<n)throw new RangeError("Invalid typed array length");if(Buffer.TYPED_ARRAY_SUPPORT)(e=new Uint8Array(n)).__proto__=Buffer.prototype;else{null===e&&(e=new Buffer(n));e.length=n}return e}function Buffer(e,n,i){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(e,n,i);if("number"==typeof e){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,e)}return from(this,e,n,i)}Buffer.poolSize=8192;Buffer._augment=function(e){e.__proto__=Buffer.prototype;return e};function from(e,n,i,u){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function fromArrayBuffer(e,n,i,u){n.byteLength;if(i<0||n.byteLength<i)throw new RangeError("'offset' is out of bounds");if(n.byteLength<i+(u||0))throw new RangeError("'length' is out of bounds");n=void 0===i&&void 0===u?new Uint8Array(n):void 0===u?new Uint8Array(n,i):new Uint8Array(n,i,u);Buffer.TYPED_ARRAY_SUPPORT?(e=n).__proto__=Buffer.prototype:e=fromArrayLike(e,n);return e}(e,n,i,u):"string"==typeof n?function fromString(e,n,i){"string"==typeof i&&""!==i||(i="utf8");if(!Buffer.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var u=0|byteLength(n,i),d=(e=createBuffer(e,u)).write(n,i);d!==u&&(e=e.slice(0,d));return e}(e,n,i):function fromObject(e,n){if(Buffer.isBuffer(n)){var i=0|checked(n.length);if(0===(e=createBuffer(e,i)).length)return e;n.copy(e,0,0,i);return e}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function isnan(e){return e!=e}(n.length)?createBuffer(e,0):fromArrayLike(e,n);if("Buffer"===n.type&&p(n.data))return fromArrayLike(e,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,n)}Buffer.from=function(e,n,i){return from(null,e,n,i)};if(Buffer.TYPED_ARRAY_SUPPORT){Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})}function assertSize(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}Buffer.alloc=function(e,n,i){return function alloc(e,n,i,u){assertSize(n);return n<=0?createBuffer(e,n):void 0!==i?"string"==typeof u?createBuffer(e,n).fill(i,u):createBuffer(e,n).fill(i):createBuffer(e,n)}(null,e,n,i)};function allocUnsafe(e,n){assertSize(n);e=createBuffer(e,n<0?0:0|checked(n));if(!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;i<n;++i)e[i]=0;return e}Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)};Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)};function fromArrayLike(e,n){var i=n.length<0?0:0|checked(n.length);e=createBuffer(e,i);for(var u=0;u<i;u+=1)e[u]=255&n[u];return e}function checked(e){if(e>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)};Buffer.compare=function compare(e,n){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var i=e.length,u=n.length,d=0,p=Math.min(i,u);d<p;++d)if(e[d]!==n[d]){i=e[d];u=n[d];break}return i<u?-1:u<i?1:0};Buffer.isEncoding=function isEncoding(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Buffer.concat=function concat(e,n){if(!p(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var i;if(void 0===n){n=0;for(i=0;i<e.length;++i)n+=e[i].length}var u=Buffer.allocUnsafe(n),d=0;for(i=0;i<e.length;++i){var _=e[i];if(!Buffer.isBuffer(_))throw new TypeError('"list" argument must be an Array of Buffers');_.copy(u,d);d+=_.length}return u};function byteLength(e,n){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var u=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(e).length;default:if(u)return utf8ToBytes(e).length;n=(""+n).toLowerCase();u=!0}}Buffer.byteLength=byteLength;function slowToString(e,n,i){var u=!1;(void 0===n||n<0)&&(n=0);if(n>this.length)return"";(void 0===i||i>this.length)&&(i=this.length);if(i<=0)return"";if((i>>>=0)<=(n>>>=0))return"";e||(e="utf8");for(;;)switch(e){case"hex":return hexSlice(this,n,i);case"utf8":case"utf-8":return utf8Slice(this,n,i);case"ascii":return asciiSlice(this,n,i);case"latin1":case"binary":return latin1Slice(this,n,i);case"base64":return base64Slice(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,n,i);default:if(u)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();u=!0}}Buffer.prototype._isBuffer=!0;function swap(e,n,i){var u=e[n];e[n]=e[i];e[i]=u}Buffer.prototype.swap16=function swap16(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)swap(this,n,n+1);return this};Buffer.prototype.swap32=function swap32(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4){swap(this,n,n+3);swap(this,n+1,n+2)}return this};Buffer.prototype.swap64=function swap64(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8){swap(this,n,n+7);swap(this,n+1,n+6);swap(this,n+2,n+5);swap(this,n+3,n+4)}return this};Buffer.prototype.toString=function toString(){var e=0|this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)};Buffer.prototype.equals=function equals(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)};Buffer.prototype.inspect=function inspect(){var e="",n=i.INSPECT_MAX_BYTES;if(this.length>0){e=this.toString("hex",0,n).match(/.{2}/g).join(" ");this.length>n&&(e+=" ... ")}return"<Buffer "+e+">"};Buffer.prototype.compare=function compare(e,n,i,u,d){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");void 0===n&&(n=0);void 0===i&&(i=e?e.length:0);void 0===u&&(u=0);void 0===d&&(d=this.length);if(n<0||i>e.length||u<0||d>this.length)throw new RangeError("out of range index");if(u>=d&&n>=i)return 0;if(u>=d)return-1;if(n>=i)return 1;if(this===e)return 0;for(var p=(d>>>=0)-(u>>>=0),_=(i>>>=0)-(n>>>=0),y=Math.min(p,_),b=this.slice(u,d),w=e.slice(n,i),x=0;x<y;++x)if(b[x]!==w[x]){p=b[x];_=w[x];break}return p<_?-1:_<p?1:0};function bidirectionalIndexOf(e,n,i,u,d){if(0===e.length)return-1;if("string"==typeof i){u=i;i=0}else i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648);i=+i;isNaN(i)&&(i=d?0:e.length-1);i<0&&(i=e.length+i);if(i>=e.length){if(d)return-1;i=e.length-1}else if(i<0){if(!d)return-1;i=0}"string"==typeof n&&(n=Buffer.from(n,u));if(Buffer.isBuffer(n))return 0===n.length?-1:arrayIndexOf(e,n,i,u,d);if("number"==typeof n){n&=255;return Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?d?Uint8Array.prototype.indexOf.call(e,n,i):Uint8Array.prototype.lastIndexOf.call(e,n,i):arrayIndexOf(e,[n],i,u,d)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,n,i,u,d){var p,_=1,y=e.length,b=n.length;if(void 0!==u&&("ucs2"===(u=String(u).toLowerCase())||"ucs-2"===u||"utf16le"===u||"utf-16le"===u)){if(e.length<2||n.length<2)return-1;_=2;y/=2;b/=2;i/=2}function read(e,n){return 1===_?e[n]:e.readUInt16BE(n*_)}if(d){var w=-1;for(p=i;p<y;p++)if(read(e,p)===read(n,-1===w?0:p-w)){-1===w&&(w=p);if(p-w+1===b)return w*_}else{-1!==w&&(p-=p-w);w=-1}}else{i+b>y&&(i=y-b);for(p=i;p>=0;p--){for(var x=!0,P=0;P<b;P++)if(read(e,p+P)!==read(n,P)){x=!1;break}if(x)return p}}return-1}Buffer.prototype.includes=function includes(e,n,i){return-1!==this.indexOf(e,n,i)};Buffer.prototype.indexOf=function indexOf(e,n,i){return bidirectionalIndexOf(this,e,n,i,!0)};Buffer.prototype.lastIndexOf=function lastIndexOf(e,n,i){return bidirectionalIndexOf(this,e,n,i,!1)};function hexWrite(e,n,i,u){i=Number(i)||0;var d=e.length-i;u?(u=Number(u))>d&&(u=d):u=d;var p=n.length;if(p%2!=0)throw new TypeError("Invalid hex string");u>p/2&&(u=p/2);for(var _=0;_<u;++_){var y=parseInt(n.substr(2*_,2),16);if(isNaN(y))return _;e[i+_]=y}return _}function utf8Write(e,n,i,u){return blitBuffer(utf8ToBytes(n,e.length-i),e,i,u)}function asciiWrite(e,n,i,u){return blitBuffer(function asciiToBytes(e){for(var n=[],i=0;i<e.length;++i)n.push(255&e.charCodeAt(i));return n}(n),e,i,u)}function latin1Write(e,n,i,u){return asciiWrite(e,n,i,u)}function base64Write(e,n,i,u){return blitBuffer(base64ToBytes(n),e,i,u)}function ucs2Write(e,n,i,u){return blitBuffer(function utf16leToBytes(e,n){for(var i,u,d,p=[],_=0;_<e.length&&!((n-=2)<0);++_){i=e.charCodeAt(_);u=i>>8;d=i%256;p.push(d);p.push(u)}return p}(n,e.length-i),e,i,u)}Buffer.prototype.write=function write(e,n,i,u){if(void 0===n){u="utf8";i=this.length;n=0}else if(void 0===i&&"string"==typeof n){u=n;i=this.length;n=0}else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0;if(isFinite(i)){i|=0;void 0===u&&(u="utf8")}else{u=i;i=void 0}}var d=this.length-n;(void 0===i||i>d)&&(i=d);if(e.length>0&&(i<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var p=!1;;)switch(u){case"hex":return hexWrite(this,e,n,i);case"utf8":case"utf-8":return utf8Write(this,e,n,i);case"ascii":return asciiWrite(this,e,n,i);case"latin1":case"binary":return latin1Write(this,e,n,i);case"base64":return base64Write(this,e,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,n,i);default:if(p)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase();p=!0}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(e,n,i){return 0===n&&i===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(n,i))}function utf8Slice(e,n,i){i=Math.min(e.length,i);for(var u=[],d=n;d<i;){var p=e[d],_=null,y=p>239?4:p>223?3:p>191?2:1;if(d+y<=i){var b,w,x,P;switch(y){case 1:p<128&&(_=p);break;case 2:128==(192&(b=e[d+1]))&&(P=(31&p)<<6|63&b)>127&&(_=P);break;case 3:b=e[d+1];w=e[d+2];128==(192&b)&&128==(192&w)&&(P=(15&p)<<12|(63&b)<<6|63&w)>2047&&(P<55296||P>57343)&&(_=P);break;case 4:b=e[d+1];w=e[d+2];x=e[d+3];128==(192&b)&&128==(192&w)&&128==(192&x)&&(P=(15&p)<<18|(63&b)<<12|(63&w)<<6|63&x)>65535&&P<1114112&&(_=P)}}if(null===_){_=65533;y=1}else if(_>65535){_-=65536;u.push(_>>>10&1023|55296);_=56320|1023&_}u.push(_);d+=y}return function decodeCodePointsArray(e){var n=e.length;if(n<=4096)return String.fromCharCode.apply(String,e);var i="",u=0;for(;u<n;)i+=String.fromCharCode.apply(String,e.slice(u,u+=4096));return i}(u)}function asciiSlice(e,n,i){var u="";i=Math.min(e.length,i);for(var d=n;d<i;++d)u+=String.fromCharCode(127&e[d]);return u}function latin1Slice(e,n,i){var u="";i=Math.min(e.length,i);for(var d=n;d<i;++d)u+=String.fromCharCode(e[d]);return u}function hexSlice(e,n,i){var u=e.length;(!n||n<0)&&(n=0);(!i||i<0||i>u)&&(i=u);for(var d="",p=n;p<i;++p)d+=toHex(e[p]);return d}function utf16leSlice(e,n,i){for(var u=e.slice(n,i),d="",p=0;p<u.length;p+=2)d+=String.fromCharCode(u[p]+256*u[p+1]);return d}Buffer.prototype.slice=function slice(e,n){var i,u=this.length;(e=~~e)<0?(e+=u)<0&&(e=0):e>u&&(e=u);(n=void 0===n?u:~~n)<0?(n+=u)<0&&(n=0):n>u&&(n=u);n<e&&(n=e);if(Buffer.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,n)).__proto__=Buffer.prototype;else{var d=n-e;i=new Buffer(d,void 0);for(var p=0;p<d;++p)i[p]=this[p+e]}return i};function checkOffset(e,n,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>i)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=this[e],d=1,p=0;++p<n&&(d*=256);)u+=this[e+p]*d;return u};Buffer.prototype.readUIntBE=function readUIntBE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=this[e+--n],d=1;n>0&&(d*=256);)u+=this[e+--n]*d;return u};Buffer.prototype.readUInt8=function readUInt8(e,n){n||checkOffset(e,1,this.length);return this[e]};Buffer.prototype.readUInt16LE=function readUInt16LE(e,n){n||checkOffset(e,2,this.length);return this[e]|this[e+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(e,n){n||checkOffset(e,2,this.length);return this[e]<<8|this[e+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(e,n){n||checkOffset(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]};Buffer.prototype.readUInt32BE=function readUInt32BE(e,n){n||checkOffset(e,4,this.length);return 16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Buffer.prototype.readIntLE=function readIntLE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=this[e],d=1,p=0;++p<n&&(d*=256);)u+=this[e+p]*d;u>=(d*=128)&&(u-=Math.pow(2,8*n));return u};Buffer.prototype.readIntBE=function readIntBE(e,n,i){e|=0;n|=0;i||checkOffset(e,n,this.length);for(var u=n,d=1,p=this[e+--u];u>0&&(d*=256);)p+=this[e+--u]*d;p>=(d*=128)&&(p-=Math.pow(2,8*n));return p};Buffer.prototype.readInt8=function readInt8(e,n){n||checkOffset(e,1,this.length);return 128&this[e]?-1*(255-this[e]+1):this[e]};Buffer.prototype.readInt16LE=function readInt16LE(e,n){n||checkOffset(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i};Buffer.prototype.readInt16BE=function readInt16BE(e,n){n||checkOffset(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i};Buffer.prototype.readInt32LE=function readInt32LE(e,n){n||checkOffset(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(e,n){n||checkOffset(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Buffer.prototype.readFloatLE=function readFloatLE(e,n){n||checkOffset(e,4,this.length);return d.read(this,e,!0,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(e,n){n||checkOffset(e,4,this.length);return d.read(this,e,!1,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(e,n){n||checkOffset(e,8,this.length);return d.read(this,e,!0,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(e,n){n||checkOffset(e,8,this.length);return d.read(this,e,!1,52,8)};function checkInt(e,n,i,u,d,p){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>d||n<p)throw new RangeError('"value" argument is out of bounds');if(i+u>e.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(e,n,i,u){e=+e;n|=0;i|=0;if(!u){checkInt(this,e,n,i,Math.pow(2,8*i)-1,0)}var d=1,p=0;this[n]=255&e;for(;++p<i&&(d*=256);)this[n+p]=e/d&255;return n+i};Buffer.prototype.writeUIntBE=function writeUIntBE(e,n,i,u){e=+e;n|=0;i|=0;if(!u){checkInt(this,e,n,i,Math.pow(2,8*i)-1,0)}var d=i-1,p=1;this[n+d]=255&e;for(;--d>=0&&(p*=256);)this[n+d]=e/p&255;return n+i};Buffer.prototype.writeUInt8=function writeUInt8(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,1,255,0);Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e));this[n]=255&e;return n+1};function objectWriteUInt16(e,n,i,u){n<0&&(n=65535+n+1);for(var d=0,p=Math.min(e.length-i,2);d<p;++d)e[i+d]=(n&255<<8*(u?d:1-d))>>>8*(u?d:1-d)}Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=255&e;this[n+1]=e>>>8}else objectWriteUInt16(this,e,n,!0);return n+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>8;this[n+1]=255&e}else objectWriteUInt16(this,e,n,!1);return n+2};function objectWriteUInt32(e,n,i,u){n<0&&(n=4294967295+n+1);for(var d=0,p=Math.min(e.length-i,4);d<p;++d)e[i+d]=n>>>8*(u?d:3-d)&255}Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n+3]=e>>>24;this[n+2]=e>>>16;this[n+1]=e>>>8;this[n]=255&e}else objectWriteUInt32(this,e,n,!0);return n+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>24;this[n+1]=e>>>16;this[n+2]=e>>>8;this[n+3]=255&e}else objectWriteUInt32(this,e,n,!1);return n+4};Buffer.prototype.writeIntLE=function writeIntLE(e,n,i,u){e=+e;n|=0;if(!u){var d=Math.pow(2,8*i-1);checkInt(this,e,n,i,d-1,-d)}var p=0,_=1,y=0;this[n]=255&e;for(;++p<i&&(_*=256);){e<0&&0===y&&0!==this[n+p-1]&&(y=1);this[n+p]=(e/_>>0)-y&255}return n+i};Buffer.prototype.writeIntBE=function writeIntBE(e,n,i,u){e=+e;n|=0;if(!u){var d=Math.pow(2,8*i-1);checkInt(this,e,n,i,d-1,-d)}var p=i-1,_=1,y=0;this[n+p]=255&e;for(;--p>=0&&(_*=256);){e<0&&0===y&&0!==this[n+p+1]&&(y=1);this[n+p]=(e/_>>0)-y&255}return n+i};Buffer.prototype.writeInt8=function writeInt8(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,1,127,-128);Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e));e<0&&(e=255+e+1);this[n]=255&e;return n+1};Buffer.prototype.writeInt16LE=function writeInt16LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=255&e;this[n+1]=e>>>8}else objectWriteUInt16(this,e,n,!0);return n+2};Buffer.prototype.writeInt16BE=function writeInt16BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>8;this[n+1]=255&e}else objectWriteUInt16(this,e,n,!1);return n+2};Buffer.prototype.writeInt32LE=function writeInt32LE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=255&e;this[n+1]=e>>>8;this[n+2]=e>>>16;this[n+3]=e>>>24}else objectWriteUInt32(this,e,n,!0);return n+4};Buffer.prototype.writeInt32BE=function writeInt32BE(e,n,i){e=+e;n|=0;i||checkInt(this,e,n,4,2147483647,-2147483648);e<0&&(e=4294967295+e+1);if(Buffer.TYPED_ARRAY_SUPPORT){this[n]=e>>>24;this[n+1]=e>>>16;this[n+2]=e>>>8;this[n+3]=255&e}else objectWriteUInt32(this,e,n,!1);return n+4};function checkIEEE754(e,n,i,u,d,p){if(i+u>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function writeFloat(e,n,i,u,p){p||checkIEEE754(e,0,i,4);d.write(e,n,i,u,23,4);return i+4}Buffer.prototype.writeFloatLE=function writeFloatLE(e,n,i){return writeFloat(this,e,n,!0,i)};Buffer.prototype.writeFloatBE=function writeFloatBE(e,n,i){return writeFloat(this,e,n,!1,i)};function writeDouble(e,n,i,u,p){p||checkIEEE754(e,0,i,8);d.write(e,n,i,u,52,8);return i+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,n,i){return writeDouble(this,e,n,!0,i)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,n,i){return writeDouble(this,e,n,!1,i)};Buffer.prototype.copy=function copy(e,n,i,u){i||(i=0);u||0===u||(u=this.length);n>=e.length&&(n=e.length);n||(n=0);u>0&&u<i&&(u=i);if(u===i)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length);e.length-n<u-i&&(u=e.length-n+i);var d,p=u-i;if(this===e&&i<n&&n<u)for(d=p-1;d>=0;--d)e[d+n]=this[d+i];else if(p<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(d=0;d<p;++d)e[d+n]=this[d+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+p),n);return p};Buffer.prototype.fill=function fill(e,n,i,u){if("string"==typeof e){if("string"==typeof n){u=n;n=0;i=this.length}else if("string"==typeof i){u=i;i=this.length}if(1===e.length){var d=e.charCodeAt(0);d<256&&(e=d)}if(void 0!==u&&"string"!=typeof u)throw new TypeError("encoding must be a string");if("string"==typeof u&&!Buffer.isEncoding(u))throw new TypeError("Unknown encoding: "+u)}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<i)throw new RangeError("Out of range index");if(i<=n)return this;n>>>=0;i=void 0===i?this.length:i>>>0;e||(e=0);var p;if("number"==typeof e)for(p=n;p<i;++p)this[p]=e;else{var _=Buffer.isBuffer(e)?e:utf8ToBytes(new Buffer(e,u).toString()),y=_.length;for(p=0;p<i-n;++p)this[p+n]=_[p%y]}return this};var _=/[^+\/0-9A-Za-z-_]/g;function toHex(e){return e<16?"0"+e.toString(16):e.toString(16)}function utf8ToBytes(e,n){n=n||1/0;for(var i,u=e.length,d=null,p=[],_=0;_<u;++_){if((i=e.charCodeAt(_))>55295&&i<57344){if(!d){if(i>56319){(n-=3)>-1&&p.push(239,191,189);continue}if(_+1===u){(n-=3)>-1&&p.push(239,191,189);continue}d=i;continue}if(i<56320){(n-=3)>-1&&p.push(239,191,189);d=i;continue}i=65536+(d-55296<<10|i-56320)}else d&&(n-=3)>-1&&p.push(239,191,189);d=null;if(i<128){if((n-=1)<0)break;p.push(i)}else if(i<2048){if((n-=2)<0)break;p.push(i>>6|192,63&i|128)}else if(i<65536){if((n-=3)<0)break;p.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;p.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return p}function base64ToBytes(e){return u.toByteArray(function base64clean(e){if((e=function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,n,i,u){for(var d=0;d<u&&!(d+i>=n.length||d>=e.length);++d)n[d+i]=e[d];return d}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"base64-js":147,buffer:152,ieee754:211,isarray:213}],153:[function(e,n,i){arguments[4][13][0].apply(i,arguments)},{"../../modules/_core":164,"../../modules/es6.array.is-array":203,dup:13}],154:[function(e,n,i){var u=e("../../modules/_core"),d=u.JSON||(u.JSON={stringify:JSON.stringify});n.localExports=function stringify(e){return d.stringify.apply(d,arguments)}},{"../../modules/_core":164}],155:[function(e,n,i){e("../../modules/es6.number.is-finite");n.localExports=e("../../modules/_core").Number.isFinite},{"../../modules/_core":164,"../../modules/es6.number.is-finite":204}],156:[function(e,n,i){e("../../modules/es6.object.assign");n.localExports=e("../../modules/_core").Object.assign},{"../../modules/_core":164,"../../modules/es6.object.assign":205}],157:[function(e,n,i){e("../../modules/es6.object.create");var u=e("../../modules/_core").Object;n.localExports=function create(e,n){return u.create(e,n)}},{"../../modules/_core":164,"../../modules/es6.object.create":206}],158:[function(e,n,i){arguments[4][18][0].apply(i,arguments)},{"../../modules/_core":164,"../../modules/es6.object.keys":207,dup:18}],159:[function(e,n,i){e("../modules/es6.parse-int");n.localExports=e("../modules/_core").parseInt},{"../modules/_core":164,"../modules/es6.parse-int":208}],160:[function(e,n,i){arguments[4][22][0].apply(i,arguments)},{dup:22}],161:[function(e,n,i){arguments[4][25][0].apply(i,arguments)},{"./_is-object":179,dup:25}],162:[function(e,n,i){arguments[4][27][0].apply(i,arguments)},{"./_to-absolute-index":196,"./_to-iobject":198,"./_to-length":199,dup:27}],163:[function(e,n,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],164:[function(e,n,i){arguments[4][36][0].apply(i,arguments)},{dup:36}],165:[function(e,n,i){arguments[4][38][0].apply(i,arguments)},{"./_a-function":160,dup:38}],166:[function(e,n,i){arguments[4][39][0].apply(i,arguments)},{dup:39}],167:[function(e,n,i){arguments[4][40][0].apply(i,arguments)},{"./_fails":171,dup:40}],168:[function(e,n,i){arguments[4][41][0].apply(i,arguments)},{"./_global":172,"./_is-object":179,dup:41}],169:[function(e,n,i){arguments[4][42][0].apply(i,arguments)},{dup:42}],170:[function(e,n,i){arguments[4][43][0].apply(i,arguments)},{"./_core":164,"./_ctx":165,"./_global":172,"./_has":173,"./_hide":174,dup:43}],171:[function(e,n,i){arguments[4][44][0].apply(i,arguments)},{dup:44}],172:[function(e,n,i){arguments[4][46][0].apply(i,arguments)},{dup:46}],173:[function(e,n,i){arguments[4][47][0].apply(i,arguments)},{dup:47}],174:[function(e,n,i){arguments[4][48][0].apply(i,arguments)},{"./_descriptors":167,"./_object-dp":183,"./_property-desc":191,dup:48}],175:[function(e,n,i){arguments[4][49][0].apply(i,arguments)},{"./_global":172,dup:49}],176:[function(e,n,i){arguments[4][50][0].apply(i,arguments)},{"./_descriptors":167,"./_dom-create":168,"./_fails":171,dup:50}],177:[function(e,n,i){arguments[4][52][0].apply(i,arguments)},{"./_cof":163,dup:52}],178:[function(e,n,i){arguments[4][54][0].apply(i,arguments)},{"./_cof":163,dup:54}],179:[function(e,n,i){arguments[4][55][0].apply(i,arguments)},{dup:55}],180:[function(e,n,i){arguments[4][62][0].apply(i,arguments)},{dup:62}],181:[function(e,n,i){var u=e("./_descriptors"),d=e("./_object-keys"),p=e("./_object-gops"),_=e("./_object-pie"),y=e("./_to-object"),b=e("./_iobject"),w=Object.assign;n.localExports=!w||e("./_fails")((function(){var e={},n={},i=Symbol(),u="abcdefghijklmnopqrst";e[i]=7;u.split("").forEach((function(e){n[e]=e}));return 7!=w({},e)[i]||Object.keys(w({},n)).join("")!=u}))?function assign(e,n){for(var i=y(e),w=arguments.length,x=1,P=p.f,E=_.f;w>x;)for(var k,B=b(arguments[x++]),j=P?d(B).concat(P(B)):d(B),I=j.length,O=0;I>O;){k=j[O++];u&&!E.call(B,k)||(i[k]=B[k])}return i}:w},{"./_descriptors":167,"./_fails":171,"./_iobject":177,"./_object-gops":185,"./_object-keys":187,"./_object-pie":188,"./_to-object":200}],182:[function(e,n,i){arguments[4][66][0].apply(i,arguments)},{"./_an-object":161,"./_dom-create":168,"./_enum-bug-keys":169,"./_html":175,"./_object-dps":184,"./_shared-key":192,dup:66}],183:[function(e,n,i){arguments[4][67][0].apply(i,arguments)},{"./_an-object":161,"./_descriptors":167,"./_ie8-dom-define":176,"./_to-primitive":201,dup:67}],184:[function(e,n,i){arguments[4][68][0].apply(i,arguments)},{"./_an-object":161,"./_descriptors":167,"./_object-dp":183,"./_object-keys":187,dup:68}],185:[function(e,n,i){i.f=Object.getOwnPropertySymbols},{}],186:[function(e,n,i){arguments[4][71][0].apply(i,arguments)},{"./_array-includes":162,"./_has":173,"./_shared-key":192,"./_to-iobject":198,dup:71}],187:[function(e,n,i){arguments[4][72][0].apply(i,arguments)},{"./_enum-bug-keys":169,"./_object-keys-internal":186,dup:72}],188:[function(e,n,i){arguments[4][73][0].apply(i,arguments)},{dup:73}],189:[function(e,n,i){arguments[4][74][0].apply(i,arguments)},{"./_core":164,"./_export":170,"./_fails":171,dup:74}],190:[function(e,n,i){var u=e("./_global").parseInt,d=e("./_string-trim").trim,p=e("./_string-ws"),_=/^[-+]?0[xX]/;n.localExports=8!==u(p+"08")||22!==u(p+"0x16")?function parseInt(e,n){var i=d(String(e),3);return u(i,n>>>0||(_.test(i)?16:10))}:u},{"./_global":172,"./_string-trim":194,"./_string-ws":195}],191:[function(e,n,i){arguments[4][77][0].apply(i,arguments)},{dup:77}],192:[function(e,n,i){arguments[4][84][0].apply(i,arguments)},{"./_shared":193,"./_uid":202,dup:84}],193:[function(e,n,i){arguments[4][85][0].apply(i,arguments)},{"./_core":164,"./_global":172,"./_library":180,dup:85}],194:[function(e,n,i){var u=e("./_export"),d=e("./_defined"),p=e("./_fails"),_=e("./_string-ws"),y="["+_+"]",b=RegExp("^"+y+y+"*"),w=RegExp(y+y+"*$"),x=function exporter(e,n,i){var d={},y=p((function(){return!!_[e]()||"
"!="
"[e]()})),b=d[e]=y?n(P):_[e];i&&(d[i]=b);u(u.P+u.F*y,"String",d)},P=x.trim=function(e,n){e=String(d(e));1&n&&(e=e.replace(b,""));2&n&&(e=e.replace(w,""));return e};n.localExports=x},{"./_defined":166,"./_export":170,"./_fails":171,"./_string-ws":195}],195:[function(e,n,i){n.localExports="\t\n\v\f\r \u2028\u2029\ufeff"},{}],196:[function(e,n,i){arguments[4][89][0].apply(i,arguments)},{"./_to-integer":197,dup:89}],197:[function(e,n,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],198:[function(e,n,i){arguments[4][91][0].apply(i,arguments)},{"./_defined":166,"./_iobject":177,dup:91}],199:[function(e,n,i){arguments[4][92][0].apply(i,arguments)},{"./_to-integer":197,dup:92}],200:[function(e,n,i){arguments[4][93][0].apply(i,arguments)},{"./_defined":166,dup:93}],201:[function(e,n,i){arguments[4][94][0].apply(i,arguments)},{"./_is-object":179,dup:94}],202:[function(e,n,i){arguments[4][95][0].apply(i,arguments)},{dup:95}],203:[function(e,n,i){arguments[4][101][0].apply(i,arguments)},{"./_export":170,"./_is-array":178,dup:101}],204:[function(e,n,i){var u=e("./_export"),d=e("./_global").isFinite;u(u.S,"Number",{isFinite:function isFinite(e){return"number"==typeof e&&d(e)}})},{"./_export":170,"./_global":172}],205:[function(e,n,i){var u=e("./_export");u(u.S+u.F,"Object",{assign:e("./_object-assign")})},{"./_export":170,"./_object-assign":181}],206:[function(e,n,i){var u=e("./_export");u(u.S,"Object",{create:e("./_object-create")})},{"./_export":170,"./_object-create":182}],207:[function(e,n,i){arguments[4][107][0].apply(i,arguments)},{"./_object-keys":187,"./_object-sap":189,"./_to-object":200,dup:107}],208:[function(e,n,i){var u=e("./_export"),d=e("./_parse-int");u(u.G+u.F*(parseInt!=d),{parseInt:d})},{"./_export":170,"./_parse-int":190}],209:[function(e,n,i){i.isArray=function isArray(e){return Array.isArray?Array.isArray(e):"[object Array]"===objectToString(e)};i.isBoolean=function isBoolean(e){return"boolean"==typeof e};i.isNull=function isNull(e){return null===e};i.isNullOrUndefined=function isNullOrUndefined(e){return null==e};i.isNumber=function isNumber(e){return"number"==typeof e};i.isString=function isString(e){return"string"==typeof e};i.isSymbol=function isSymbol(e){return"symbol"==typeof e};i.isUndefined=function isUndefined(e){return void 0===e};i.isRegExp=function isRegExp(e){return"[object RegExp]"===objectToString(e)};i.isObject=function isObject(e){return"object"==typeof e&&null!==e};i.isDate=function isDate(e){return"[object Date]"===objectToString(e)};i.isError=function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error};i.isFunction=function isFunction(e){return"function"==typeof e};i.isPrimitive=function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e};i.isBuffer=e("buffer").Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},{buffer:152}],210:[function(e,n,i){function EventEmitter(){this._events=this._events||{};this._maxListeners=this._maxListeners||void 0}n.localExports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._maxListeners=void 0;EventEmitter.defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(e){if(!function isNumber(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");this._maxListeners=e;return this};EventEmitter.prototype.emit=function(e){var n,i,u,d,p,_;this._events||(this._events={});if("error"===e&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var y=new Error('Uncaught, unspecified "error" event. ('+n+")");y.context=n;throw y}if(isUndefined(i=this._events[e]))return!1;if(isFunction(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1);i.apply(this,d)}else if(isObject(i)){d=Array.prototype.slice.call(arguments,1);u=(_=i.slice()).length;for(p=0;p<u;p++)_[p].apply(this,d)}return!0};EventEmitter.prototype.addListener=function(e,n){var i;if(!isFunction(n))throw TypeError("listener must be a function");this._events||(this._events={});this._events.newListener&&this.emit("newListener",e,isFunction(n.listener)?n.listener:n);this._events[e]?isObject(this._events[e])?this._events[e].push(n):this._events[e]=[this._events[e],n]:this._events[e]=n;if(isObject(this._events[e])&&!this._events[e].warned&&(i=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i){this._events[e].warned=!0;console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length);"function"==typeof console.trace&&console.trace()}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(e,n){if(!isFunction(n))throw TypeError("listener must be a function");var i=!1;function g(){this.removeListener(e,g);if(!i){i=!0;n.apply(this,arguments)}}g.listener=n;this.on(e,g);return this};EventEmitter.prototype.removeListener=function(e,n){var i,u,d,p;if(!isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;d=(i=this._events[e]).length;u=-1;if(i===n||isFunction(i.listener)&&i.listener===n){delete this._events[e];this._events.removeListener&&this.emit("removeListener",e,n)}else if(isObject(i)){for(p=d;p-- >0;)if(i[p]===n||i[p].listener&&i[p].listener===n){u=p;break}if(u<0)return this;if(1===i.length){i.length=0;delete this._events[e]}else i.splice(u,1);this._events.removeListener&&this.emit("removeListener",e,n)}return this};EventEmitter.prototype.removeAllListeners=function(e){var n,i;if(!this._events)return this;if(!this._events.removeListener){0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this}if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);this.removeAllListeners("removeListener");this._events={};return this}if(isFunction(i=this._events[e]))this.removeListener(e,i);else if(i)for(;i.length;)this.removeListener(e,i[i.length-1]);delete this._events[e];return this};EventEmitter.prototype.listeners=function(e){return this._events&&this._events[e]?isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]};EventEmitter.prototype.listenerCount=function(e){if(this._events){var n=this._events[e];if(isFunction(n))return 1;if(n)return n.length}return 0};EventEmitter.listenerCount=function(e,n){return e.listenerCount(n)};function isFunction(e){return"function"==typeof e}function isObject(e){return"object"==typeof e&&null!==e}function isUndefined(e){return void 0===e}},{}],211:[function(e,n,i){i.read=function(e,n,i,u,d){var p,_,y=8*d-u-1,b=(1<<y)-1,w=b>>1,x=-7,P=i?d-1:0,E=i?-1:1,k=e[n+P];P+=E;p=k&(1<<-x)-1;k>>=-x;x+=y;for(;x>0;p=256*p+e[n+P],P+=E,x-=8);_=p&(1<<-x)-1;p>>=-x;x+=u;for(;x>0;_=256*_+e[n+P],P+=E,x-=8);if(0===p)p=1-w;else{if(p===b)return _?NaN:1/0*(k?-1:1);_+=Math.pow(2,u);p-=w}return(k?-1:1)*_*Math.pow(2,p-u)};i.write=function(e,n,i,u,d,p){var _,y,b,w=8*p-d-1,x=(1<<w)-1,P=x>>1,E=23===d?Math.pow(2,-24)-Math.pow(2,-77):0,k=u?0:p-1,B=u?1:-1,j=n<0||0===n&&1/n<0?1:0;n=Math.abs(n);if(isNaN(n)||n===1/0){y=isNaN(n)?1:0;_=x}else{_=Math.floor(Math.log(n)/Math.LN2);if(n*(b=Math.pow(2,-_))<1){_--;b*=2}if((n+=_+P>=1?E/b:E*Math.pow(2,1-P))*b>=2){_++;b/=2}if(_+P>=x){y=0;_=x}else if(_+P>=1){y=(n*b-1)*Math.pow(2,d);_+=P}else{y=n*Math.pow(2,P-1)*Math.pow(2,d);_=0}}for(;d>=8;e[i+k]=255&y,k+=B,y/=256,d-=8);_=_<<d|y;w+=d;for(;w>0;e[i+k]=255&_,k+=B,_/=256,w-=8);e[i+k-B]|=128*j}},{}],212:[function(e,n,i){"function"==typeof Object.create?n.localExports=function inherits(e,n){if(n){e.super_=n;e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}}:n.localExports=function inherits(e,n){if(n){e.super_=n;var i=function TempCtor(){};i.prototype=n.prototype;e.prototype=new i;e.prototype.constructor=e}}},{}],213:[function(e,n,i){var u={}.toString;n.localExports=Array.isArray||function(e){return"[object Array]"==u.call(e)}},{}],214:[function(e,n,i){var u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}n.localExports=function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");e[5]="de";if("5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},i=0;i<10;i++)n["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var u={};"abcdefghijklmnopqrst".split("").forEach((function(e){u[e]=e}));return"abcdefghijklmnopqrst"===Object.keys(Object.assign({},u)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,_,y=toObject(e),b=1;b<arguments.length;b++){i=Object(arguments[b]);for(var w in i)d.call(i,w)&&(y[w]=i[w]);if(u){_=u(i);for(var x=0;x<_.length;x++)p.call(i,_[x])&&(y[_[x]]=i[_[x]])}}return y}},{}],215:[function(e,n,i){var u="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var u in i)i.hasOwnProperty(u)&&(e[u]=i[u])}}return e};i.shrinkBuf=function(e,n){if(e.length===n)return e;if(e.subarray)return e.subarray(0,n);e.length=n;return e};var d={arraySet:function arraySet(e,n,i,u,d){if(n.subarray&&e.subarray)e.set(n.subarray(i,i+u),d);else for(var p=0;p<u;p++)e[d+p]=n[i+p]},flattenChunks:function flattenChunks(e){var n,i,u,d,p,_;u=0;for(n=0,i=e.length;n<i;n++)u+=e[n].length;_=new Uint8Array(u);d=0;for(n=0,i=e.length;n<i;n++){p=e[n];_.set(p,d);d+=p.length}return _}},p={arraySet:function arraySet(e,n,i,u,d){for(var p=0;p<u;p++)e[d+p]=n[i+p]},flattenChunks:function flattenChunks(e){return[].concat.apply([],e)}};i.setTyped=function(e){if(e){i.Buf8=Uint8Array;i.Buf16=Uint16Array;i.Buf32=Int32Array;i.assign(i,d)}else{i.Buf8=Array;i.Buf16=Array;i.Buf32=Array;i.assign(i,p)}};i.setTyped(u)},{}],216:[function(e,n,i){n.localExports=function adler32(e,n,i,u){for(var d=65535&e|0,p=e>>>16&65535|0,_=0;0!==i;){i-=_=i>2e3?2e3:i;do{p=p+(d=d+n[u++]|0)|0}while(--_);d%=65521;p%=65521}return d|p<<16|0}},{}],217:[function(e,n,i){n.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}},{}],218:[function(e,n,i){var u=function makeTable(){for(var e,n=[],i=0;i<256;i++){e=i;for(var u=0;u<8;u++)e=1&e?3988292384^e>>>1:e>>>1;n[i]=e}return n}();n.localExports=function crc32(e,n,i,d){var p=u,_=d+i;e^=-1;for(var y=d;y<_;y++)e=e>>>8^p[255&(e^n[y])];return-1^e}},{}],219:[function(e,n,i){var u,d=e("../utils/common"),p=e("./trees"),_=e("./adler32"),y=e("./crc32"),b=e("./messages");function err(e,n){e.msg=b[n];return n}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){for(var n=e.length;--n>=0;)e[n]=0}function flush_pending(e){var n=e.state,i=n.pending;i>e.avail_out&&(i=e.avail_out);if(0!==i){d.arraySet(e.output,n.pending_buf,n.pending_out,i,e.next_out);e.next_out+=i;n.pending_out+=i;e.total_out+=i;e.avail_out-=i;n.pending-=i;0===n.pending&&(n.pending_out=0)}}function flush_block_only(e,n){p._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n);e.block_start=e.strstart;flush_pending(e.strm)}function put_byte(e,n){e.pending_buf[e.pending++]=n}function putShortMSB(e,n){e.pending_buf[e.pending++]=n>>>8&255;e.pending_buf[e.pending++]=255&n}function read_buf(e,n,i,u){var p=e.avail_in;p>u&&(p=u);if(0===p)return 0;e.avail_in-=p;d.arraySet(n,e.input,e.next_in,p,i);1===e.state.wrap?e.adler=_(e.adler,n,p,i):2===e.state.wrap&&(e.adler=y(e.adler,n,p,i));e.next_in+=p;e.total_in+=p;return p}function longest_match(e,n){var i,u,d=e.max_chain_length,p=e.strstart,_=e.prev_length,y=e.nice_match,b=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,w=e.window,x=e.w_mask,P=e.prev,E=e.strstart+258,k=w[p+_-1],B=w[p+_];e.prev_length>=e.good_match&&(d>>=2);y>e.lookahead&&(y=e.lookahead);do{if(w[(i=n)+_]===B&&w[i+_-1]===k&&w[i]===w[p]&&w[++i]===w[p+1]){p+=2;i++;do{}while(w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&w[++p]===w[++i]&&p<E);u=258-(E-p);p=E-258;if(u>_){e.match_start=n;_=u;if(u>=y)break;k=w[p+_-1];B=w[p+_]}}}while((n=P[n&x])>b&&0!=--d);return _<=e.lookahead?_:e.lookahead}function fill_window(e){var n,i,u,p,_,y=e.w_size;do{p=e.window_size-e.lookahead-e.strstart;if(e.strstart>=y+(y-262)){d.arraySet(e.window,e.window,y,y,0);e.match_start-=y;e.strstart-=y;e.block_start-=y;n=i=e.hash_size;do{u=e.head[--n];e.head[n]=u>=y?u-y:0}while(--i);n=i=y;do{u=e.prev[--n];e.prev[n]=u>=y?u-y:0}while(--i);p+=y}if(0===e.strm.avail_in)break;i=read_buf(e.strm,e.window,e.strstart+e.lookahead,p);e.lookahead+=i;if(e.lookahead+e.insert>=3){_=e.strstart-e.insert;e.ins_h=e.window[_];e.ins_h=(e.ins_h<<e.hash_shift^e.window[_+1])&e.hash_mask;for(;e.insert;){e.ins_h=(e.ins_h<<e.hash_shift^e.window[_+3-1])&e.hash_mask;e.prev[_&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=_;_++;e.insert--;if(e.lookahead+e.insert<3)break}}}while(e.lookahead<262&&0!==e.strm.avail_in)}function deflate_fast(e,n){for(var i,u;;){if(e.lookahead<262){fill_window(e);if(e.lookahead<262&&0===n)return 1;if(0===e.lookahead)break}i=0;if(e.lookahead>=3){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}0!==i&&e.strstart-i<=e.w_size-262&&(e.match_length=longest_match(e,i));if(e.match_length>=3){u=p._tr_tally(e,e.strstart-e.match_start,e.match_length-3);e.lookahead-=e.match_length;if(e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++;e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else{e.strstart+=e.match_length;e.match_length=0;e.ins_h=e.window[e.strstart];e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}}else{u=p._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(u){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=e.strstart<2?e.strstart:2;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}function deflate_slow(e,n){for(var i,u,d;;){if(e.lookahead<262){fill_window(e);if(e.lookahead<262&&0===n)return 1;if(0===e.lookahead)break}i=0;if(e.lookahead>=3){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}e.prev_length=e.match_length;e.prev_match=e.match_start;e.match_length=2;if(0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-262){e.match_length=longest_match(e,i);e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)}if(e.prev_length>=3&&e.match_length<=e.prev_length){d=e.strstart+e.lookahead-3;u=p._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3);e.lookahead-=e.prev_length-1;e.prev_length-=2;do{if(++e.strstart<=d){e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask;i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h];e.head[e.ins_h]=e.strstart}}while(0!=--e.prev_length);e.match_available=0;e.match_length=2;e.strstart++;if(u){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}else if(e.match_available){(u=p._tr_tally(e,0,e.window[e.strstart-1]))&&flush_block_only(e,!1);e.strstart++;e.lookahead--;if(0===e.strm.avail_out)return 1}else{e.match_available=1;e.strstart++;e.lookahead--}}if(e.match_available){u=p._tr_tally(e,0,e.window[e.strstart-1]);e.match_available=0}e.insert=e.strstart<2?e.strstart:2;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}function Config(e,n,i,u,d){this.good_length=e;this.max_lazy=n;this.nice_length=i;this.max_chain=u;this.func=d}u=[new Config(0,0,0,0,(function deflate_stored(e,n){var i=65535;i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);for(;;){if(e.lookahead<=1){fill_window(e);if(0===e.lookahead&&0===n)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead;e.lookahead=0;var u=e.block_start+i;if(0===e.strstart||e.strstart>=u){e.lookahead=e.strstart-u;e.strstart=u;flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}if(e.strstart-e.block_start>=e.w_size-262){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=0;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.strstart>e.block_start){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 1})),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];function DeflateState(){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=8;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 d.Buf16(1146);this.dyn_dtree=new d.Buf16(122);this.bl_tree=new d.Buf16(78);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new d.Buf16(16);this.heap=new d.Buf16(573);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new d.Buf16(573);zero(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 deflateResetKeep(e){var n;if(!e||!e.state)return err(e,-2);e.total_in=e.total_out=0;e.data_type=2;(n=e.state).pending=0;n.pending_out=0;n.wrap<0&&(n.wrap=-n.wrap);n.status=n.wrap?42:113;e.adler=2===n.wrap?0:1;n.last_flush=0;p._tr_init(n);return 0}function deflateReset(e){var n=deflateResetKeep(e);0===n&&function lm_init(e){e.window_size=2*e.w_size;zero(e.head);e.max_lazy_match=u[e.level].max_lazy;e.good_match=u[e.level].good_length;e.nice_match=u[e.level].nice_length;e.max_chain_length=u[e.level].max_chain;e.strstart=0;e.block_start=0;e.lookahead=0;e.insert=0;e.match_length=e.prev_length=2;e.match_available=0;e.ins_h=0}(e.state);return n}function deflateInit2(e,n,i,u,p,_){if(!e)return-2;var y=1;-1===n&&(n=6);if(u<0){y=0;u=-u}else if(u>15){y=2;u-=16}if(p<1||p>9||8!==i||u<8||u>15||n<0||n>9||_<0||_>4)return err(e,-2);8===u&&(u=9);var b=new DeflateState;e.state=b;b.strm=e;b.wrap=y;b.gzhead=null;b.w_bits=u;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=p+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new d.Buf8(2*b.w_size);b.head=new d.Buf16(b.hash_size);b.prev=new d.Buf16(b.w_size);b.lit_bufsize=1<<p+6;b.pending_buf_size=4*b.lit_bufsize;b.pending_buf=new d.Buf8(b.pending_buf_size);b.d_buf=1*b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=n;b.strategy=_;b.method=i;return deflateReset(e)}i.deflateInit=function deflateInit(e,n){return deflateInit2(e,n,8,15,8,0)};i.deflateInit2=deflateInit2;i.deflateReset=deflateReset;i.deflateResetKeep=deflateResetKeep;i.deflateSetHeader=function deflateSetHeader(e,n){if(!e||!e.state)return-2;if(2!==e.state.wrap)return-2;e.state.gzhead=n;return 0};i.deflate=function deflate(e,n){var i,d,_,b;if(!e||!e.state||n>5||n<0)return e?err(e,-2):-2;d=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===d.status&&4!==n)return err(e,0===e.avail_out?-5:-2);d.strm=e;i=d.last_flush;d.last_flush=n;if(42===d.status)if(2===d.wrap){e.adler=0;put_byte(d,31);put_byte(d,139);put_byte(d,8);if(d.gzhead){put_byte(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0));put_byte(d,255&d.gzhead.time);put_byte(d,d.gzhead.time>>8&255);put_byte(d,d.gzhead.time>>16&255);put_byte(d,d.gzhead.time>>24&255);put_byte(d,9===d.level?2:d.strategy>=2||d.level<2?4:0);put_byte(d,255&d.gzhead.os);if(d.gzhead.extra&&d.gzhead.extra.length){put_byte(d,255&d.gzhead.extra.length);put_byte(d,d.gzhead.extra.length>>8&255)}d.gzhead.hcrc&&(e.adler=y(e.adler,d.pending_buf,d.pending,0));d.gzindex=0;d.status=69}else{put_byte(d,0);put_byte(d,0);put_byte(d,0);put_byte(d,0);put_byte(d,0);put_byte(d,9===d.level?2:d.strategy>=2||d.level<2?4:0);put_byte(d,3);d.status=113}}else{var w=8+(d.w_bits-8<<4)<<8;w|=(d.strategy>=2||d.level<2?0:d.level<6?1:6===d.level?2:3)<<6;0!==d.strstart&&(w|=32);w+=31-w%31;d.status=113;putShortMSB(d,w);if(0!==d.strstart){putShortMSB(d,e.adler>>>16);putShortMSB(d,65535&e.adler)}e.adler=1}if(69===d.status)if(d.gzhead.extra){_=d.pending;for(;d.gzindex<(65535&d.gzhead.extra.length);){if(d.pending===d.pending_buf_size){d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));flush_pending(e);_=d.pending;if(d.pending===d.pending_buf_size)break}put_byte(d,255&d.gzhead.extra[d.gzindex]);d.gzindex++}d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));if(d.gzindex===d.gzhead.extra.length){d.gzindex=0;d.status=73}}else d.status=73;if(73===d.status)if(d.gzhead.name){_=d.pending;do{if(d.pending===d.pending_buf_size){d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));flush_pending(e);_=d.pending;if(d.pending===d.pending_buf_size){b=1;break}}b=d.gzindex<d.gzhead.name.length?255&d.gzhead.name.charCodeAt(d.gzindex++):0;put_byte(d,b)}while(0!==b);d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));if(0===b){d.gzindex=0;d.status=91}}else d.status=91;if(91===d.status)if(d.gzhead.comment){_=d.pending;do{if(d.pending===d.pending_buf_size){d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));flush_pending(e);_=d.pending;if(d.pending===d.pending_buf_size){b=1;break}}b=d.gzindex<d.gzhead.comment.length?255&d.gzhead.comment.charCodeAt(d.gzindex++):0;put_byte(d,b)}while(0!==b);d.gzhead.hcrc&&d.pending>_&&(e.adler=y(e.adler,d.pending_buf,d.pending-_,_));0===b&&(d.status=103)}else d.status=103;if(103===d.status)if(d.gzhead.hcrc){d.pending+2>d.pending_buf_size&&flush_pending(e);if(d.pending+2<=d.pending_buf_size){put_byte(d,255&e.adler);put_byte(d,e.adler>>8&255);e.adler=0;d.status=113}}else d.status=113;if(0!==d.pending){flush_pending(e);if(0===e.avail_out){d.last_flush=-1;return 0}}else if(0===e.avail_in&&rank(n)<=rank(i)&&4!==n)return err(e,-5);if(666===d.status&&0!==e.avail_in)return err(e,-5);if(0!==e.avail_in||0!==d.lookahead||0!==n&&666!==d.status){var x=2===d.strategy?function deflate_huff(e,n){for(var i;;){if(0===e.lookahead){fill_window(e);if(0===e.lookahead){if(0===n)return 1;break}}e.match_length=0;i=p._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(i){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=0;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}(d,n):3===d.strategy?function deflate_rle(e,n){for(var i,u,d,_,y=e.window;;){if(e.lookahead<=258){fill_window(e);if(e.lookahead<=258&&0===n)return 1;if(0===e.lookahead)break}e.match_length=0;if(e.lookahead>=3&&e.strstart>0&&(u=y[d=e.strstart-1])===y[++d]&&u===y[++d]&&u===y[++d]){_=e.strstart+258;do{}while(u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&u===y[++d]&&d<_);e.match_length=258-(_-d);e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3){i=p._tr_tally(e,1,e.match_length-3);e.lookahead-=e.match_length;e.strstart+=e.match_length;e.match_length=0}else{i=p._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(i){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}}e.insert=0;if(4===n){flush_block_only(e,!0);return 0===e.strm.avail_out?3:4}if(e.last_lit){flush_block_only(e,!1);if(0===e.strm.avail_out)return 1}return 2}(d,n):u[d.level].func(d,n);3!==x&&4!==x||(d.status=666);if(1===x||3===x){0===e.avail_out&&(d.last_flush=-1);return 0}if(2===x){if(1===n)p._tr_align(d);else if(5!==n){p._tr_stored_block(d,0,0,!1);if(3===n){zero(d.head);if(0===d.lookahead){d.strstart=0;d.block_start=0;d.insert=0}}}flush_pending(e);if(0===e.avail_out){d.last_flush=-1;return 0}}}if(4!==n)return 0;if(d.wrap<=0)return 1;if(2===d.wrap){put_byte(d,255&e.adler);put_byte(d,e.adler>>8&255);put_byte(d,e.adler>>16&255);put_byte(d,e.adler>>24&255);put_byte(d,255&e.total_in);put_byte(d,e.total_in>>8&255);put_byte(d,e.total_in>>16&255);put_byte(d,e.total_in>>24&255)}else{putShortMSB(d,e.adler>>>16);putShortMSB(d,65535&e.adler)}flush_pending(e);d.wrap>0&&(d.wrap=-d.wrap);return 0!==d.pending?0:1};i.deflateEnd=function deflateEnd(e){var n;if(!e||!e.state)return-2;if(42!==(n=e.state.status)&&69!==n&&73!==n&&91!==n&&103!==n&&113!==n&&666!==n)return err(e,-2);e.state=null;return 113===n?err(e,-3):0};i.deflateSetDictionary=function deflateSetDictionary(e,n){var i,u,p,y,b,w,x,P,E=n.length;if(!e||!e.state)return-2;if(2===(y=(i=e.state).wrap)||1===y&&42!==i.status||i.lookahead)return-2;1===y&&(e.adler=_(e.adler,n,E,0));i.wrap=0;if(E>=i.w_size){if(0===y){zero(i.head);i.strstart=0;i.block_start=0;i.insert=0}P=new d.Buf8(i.w_size);d.arraySet(P,n,E-i.w_size,i.w_size,0);n=P;E=i.w_size}b=e.avail_in;w=e.next_in;x=e.input;e.avail_in=E;e.next_in=0;e.input=n;fill_window(i);for(;i.lookahead>=3;){u=i.strstart;p=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[u+3-1])&i.hash_mask;i.prev[u&i.w_mask]=i.head[i.ins_h];i.head[i.ins_h]=u;u++}while(--p);i.strstart=u;i.lookahead=2;fill_window(i)}i.strstart+=i.lookahead;i.block_start=i.strstart;i.insert=i.lookahead;i.lookahead=0;i.match_length=i.prev_length=2;i.match_available=0;e.next_in=w;e.input=x;e.avail_in=b;i.wrap=y;return 0};i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":215,"./adler32":216,"./crc32":218,"./messages":223,"./trees":224}],220:[function(e,n,i){n.localExports=function inflate_fast(e,n){var i,u,d,p,_,y,b,w,x,P,E,k,B,j,I,O,D,R,N,U,G,W,X,K,Y;i=e.state;u=e.next_in;K=e.input;d=u+(e.avail_in-5);p=e.next_out;Y=e.output;_=p-(n-e.avail_out);y=p+(e.avail_out-257);b=i.dmax;w=i.wsize;x=i.whave;P=i.wnext;E=i.window;k=i.hold;B=i.bits;j=i.lencode;I=i.distcode;O=(1<<i.lenbits)-1;D=(1<<i.distbits)-1;e:do{if(B<15){k+=K[u++]<<B;B+=8;k+=K[u++]<<B;B+=8}R=j[k&O];t:for(;;){k>>>=N=R>>>24;B-=N;if(0===(N=R>>>16&255))Y[p++]=65535&R;else{if(!(16&N)){if(0==(64&N)){R=j[(65535&R)+(k&(1<<N)-1)];continue t}if(32&N){i.mode=12;break e}e.msg="invalid literal/length code";i.mode=30;break e}U=65535&R;if(N&=15){if(B<N){k+=K[u++]<<B;B+=8}U+=k&(1<<N)-1;k>>>=N;B-=N}if(B<15){k+=K[u++]<<B;B+=8;k+=K[u++]<<B;B+=8}R=I[k&D];r:for(;;){k>>>=N=R>>>24;B-=N;if(!(16&(N=R>>>16&255))){if(0==(64&N)){R=I[(65535&R)+(k&(1<<N)-1)];continue r}e.msg="invalid distance code";i.mode=30;break e}G=65535&R;if(B<(N&=15)){k+=K[u++]<<B;if((B+=8)<N){k+=K[u++]<<B;B+=8}}if((G+=k&(1<<N)-1)>b){e.msg="invalid distance too far back";i.mode=30;break e}k>>>=N;B-=N;if(G>(N=p-_)){if((N=G-N)>x&&i.sane){e.msg="invalid distance too far back";i.mode=30;break e}W=0;X=E;if(0===P){W+=w-N;if(N<U){U-=N;do{Y[p++]=E[W++]}while(--N);W=p-G;X=Y}}else if(P<N){W+=w+P-N;if((N-=P)<U){U-=N;do{Y[p++]=E[W++]}while(--N);W=0;if(P<U){U-=N=P;do{Y[p++]=E[W++]}while(--N);W=p-G;X=Y}}}else{W+=P-N;if(N<U){U-=N;do{Y[p++]=E[W++]}while(--N);W=p-G;X=Y}}for(;U>2;){Y[p++]=X[W++];Y[p++]=X[W++];Y[p++]=X[W++];U-=3}if(U){Y[p++]=X[W++];U>1&&(Y[p++]=X[W++])}}else{W=p-G;do{Y[p++]=Y[W++];Y[p++]=Y[W++];Y[p++]=Y[W++];U-=3}while(U>2);if(U){Y[p++]=Y[W++];U>1&&(Y[p++]=Y[W++])}}break}}break}}while(u<d&&p<y);u-=U=B>>3;k&=(1<<(B-=U<<3))-1;e.next_in=u;e.next_out=p;e.avail_in=u<d?d-u+5:5-(u-d);e.avail_out=p<y?y-p+257:257-(p-y);i.hold=k;i.bits=B}},{}],221:[function(e,n,i){var u=e("../utils/common"),d=e("./adler32"),p=e("./crc32"),_=e("./inffast"),y=e("./inftrees");function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function InflateState(){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 u.Buf16(320);this.work=new u.Buf16(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}function inflateResetKeep(e){var n;if(!e||!e.state)return-2;n=e.state;e.total_in=e.total_out=n.total=0;e.msg="";n.wrap&&(e.adler=1&n.wrap);n.mode=1;n.last=0;n.havedict=0;n.dmax=32768;n.head=null;n.hold=0;n.bits=0;n.lencode=n.lendyn=new u.Buf32(852);n.distcode=n.distdyn=new u.Buf32(592);n.sane=1;n.back=-1;return 0}function inflateReset(e){var n;if(!e||!e.state)return-2;(n=e.state).wsize=0;n.whave=0;n.wnext=0;return inflateResetKeep(e)}function inflateReset2(e,n){var i,u;if(!e||!e.state)return-2;u=e.state;if(n<0){i=0;n=-n}else{i=1+(n>>4);n<48&&(n&=15)}if(n&&(n<8||n>15))return-2;null!==u.window&&u.wbits!==n&&(u.window=null);u.wrap=i;u.wbits=n;return inflateReset(e)}function inflateInit2(e,n){var i,u;if(!e)return-2;u=new InflateState;e.state=u;u.window=null;0!==(i=inflateReset2(e,n))&&(e.state=null);return i}var b,w,x=!0;function fixedtables(e){if(x){var n;b=new u.Buf32(512);w=new u.Buf32(32);n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;y(1,e.lens,0,288,b,0,e.work,{bits:9});n=0;for(;n<32;)e.lens[n++]=5;y(2,e.lens,0,32,w,0,e.work,{bits:5});x=!1}e.lencode=b;e.lenbits=9;e.distcode=w;e.distbits=5}function updatewindow(e,n,i,d){var p,_=e.state;if(null===_.window){_.wsize=1<<_.wbits;_.wnext=0;_.whave=0;_.window=new u.Buf8(_.wsize)}if(d>=_.wsize){u.arraySet(_.window,n,i-_.wsize,_.wsize,0);_.wnext=0;_.whave=_.wsize}else{(p=_.wsize-_.wnext)>d&&(p=d);u.arraySet(_.window,n,i-d,p,_.wnext);if(d-=p){u.arraySet(_.window,n,i-d,d,0);_.wnext=d;_.whave=_.wsize}else{_.wnext+=p;_.wnext===_.wsize&&(_.wnext=0);_.whave<_.wsize&&(_.whave+=p)}}return 0}i.inflateReset=inflateReset;i.inflateReset2=inflateReset2;i.inflateResetKeep=inflateResetKeep;i.inflateInit=function inflateInit(e){return inflateInit2(e,15)};i.inflateInit2=inflateInit2;i.inflate=function inflate(e,n){var i,b,w,x,P,E,k,B,j,I,O,D,R,N,U,G,W,X,K,Y,J,$,ee,te,re=0,ne=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(i=e.state).mode&&(i.mode=13);P=e.next_out;w=e.output;k=e.avail_out;x=e.next_in;b=e.input;E=e.avail_in;B=i.hold;j=i.bits;I=E;O=k;$=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(2&i.wrap&&35615===B){i.check=0;ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0);B=0;j=0;i.mode=2;break}i.flags=0;i.head&&(i.head.done=!1);if(!(1&i.wrap)||(((255&B)<<8)+(B>>8))%31){e.msg="incorrect header check";i.mode=30;break}if(8!=(15&B)){e.msg="unknown compression method";i.mode=30;break}j-=4;J=8+(15&(B>>>=4));if(0===i.wbits)i.wbits=J;else if(J>i.wbits){e.msg="invalid window size";i.mode=30;break}i.dmax=1<<J;e.adler=i.check=1;i.mode=512&B?10:12;B=0;j=0;break;case 2:for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.flags=B;if(8!=(255&i.flags)){e.msg="unknown compression method";i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set";i.mode=30;break}i.head&&(i.head.text=B>>8&1);if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0)}B=0;j=0;i.mode=3;case 3:for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.head&&(i.head.time=B);if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;ne[2]=B>>>16&255;ne[3]=B>>>24&255;i.check=p(i.check,ne,4,0)}B=0;j=0;i.mode=4;case 4:for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(i.head){i.head.xflags=255&B;i.head.os=B>>8}if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0)}B=0;j=0;i.mode=5;case 5:if(1024&i.flags){for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.length=B;i.head&&(i.head.extra_len=B);if(512&i.flags){ne[0]=255&B;ne[1]=B>>>8&255;i.check=p(i.check,ne,2,0)}B=0;j=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags){(D=i.length)>E&&(D=E);if(D){if(i.head){J=i.head.extra_len-i.length;i.head.extra||(i.head.extra=new Array(i.head.extra_len));u.arraySet(i.head.extra,b,x,D,J)}512&i.flags&&(i.check=p(i.check,b,D,x));E-=D;x+=D;i.length-=D}if(i.length)break e}i.length=0;i.mode=7;case 7:if(2048&i.flags){if(0===E)break e;D=0;do{J=b[x+D++];i.head&&J&&i.length<65536&&(i.head.name+=String.fromCharCode(J))}while(J&&D<E);512&i.flags&&(i.check=p(i.check,b,D,x));E-=D;x+=D;if(J)break e}else i.head&&(i.head.name=null);i.length=0;i.mode=8;case 8:if(4096&i.flags){if(0===E)break e;D=0;do{J=b[x+D++];i.head&&J&&i.length<65536&&(i.head.comment+=String.fromCharCode(J))}while(J&&D<E);512&i.flags&&(i.check=p(i.check,b,D,x));E-=D;x+=D;if(J)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;j<16;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(B!==(65535&i.check)){e.msg="header crc mismatch";i.mode=30;break}B=0;j=0}if(i.head){i.head.hcrc=i.flags>>9&1;i.head.done=!0}e.adler=i.check=0;i.mode=12;break;case 10:for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}e.adler=i.check=zswap32(B);B=0;j=0;i.mode=11;case 11:if(0===i.havedict){e.next_out=P;e.avail_out=k;e.next_in=x;e.avail_in=E;i.hold=B;i.bits=j;return 2}e.adler=i.check=1;i.mode=12;case 12:if(5===n||6===n)break e;case 13:if(i.last){B>>>=7&j;j-=7&j;i.mode=27;break}for(;j<3;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.last=1&B;j-=1;switch(3&(B>>>=1)){case 0:i.mode=14;break;case 1:fixedtables(i);i.mode=20;if(6===n){B>>>=2;j-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type";i.mode=30}B>>>=2;j-=2;break;case 14:B>>>=7&j;j-=7&j;for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if((65535&B)!=(B>>>16^65535)){e.msg="invalid stored block lengths";i.mode=30;break}i.length=65535&B;B=0;j=0;i.mode=15;if(6===n)break e;case 15:i.mode=16;case 16:if(D=i.length){D>E&&(D=E);D>k&&(D=k);if(0===D)break e;u.arraySet(w,b,x,D,P);E-=D;x+=D;k-=D;P+=D;i.length-=D;break}i.mode=12;break;case 17:for(;j<14;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.nlen=257+(31&B);B>>>=5;j-=5;i.ndist=1+(31&B);B>>>=5;j-=5;i.ncode=4+(15&B);B>>>=4;j-=4;if(i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols";i.mode=30;break}i.have=0;i.mode=18;case 18:for(;i.have<i.ncode;){for(;j<3;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.lens[ie[i.have++]]=7&B;B>>>=3;j-=3}for(;i.have<19;)i.lens[ie[i.have++]]=0;i.lencode=i.lendyn;i.lenbits=7;ee={bits:i.lenbits};$=y(0,i.lens,0,19,i.lencode,0,i.work,ee);i.lenbits=ee.bits;if($){e.msg="invalid code lengths set";i.mode=30;break}i.have=0;i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;;){G=(re=i.lencode[B&(1<<i.lenbits)-1])>>>16&255;W=65535&re;if((U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(W<16){B>>>=U;j-=U;i.lens[i.have++]=W}else{if(16===W){te=U+2;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}B>>>=U;j-=U;if(0===i.have){e.msg="invalid bit length repeat";i.mode=30;break}J=i.lens[i.have-1];D=3+(3&B);B>>>=2;j-=2}else if(17===W){te=U+3;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}j-=U;J=0;D=3+(7&(B>>>=U));B>>>=3;j-=3}else{te=U+7;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}j-=U;J=0;D=11+(127&(B>>>=U));B>>>=7;j-=7}if(i.have+D>i.nlen+i.ndist){e.msg="invalid bit length repeat";i.mode=30;break}for(;D--;)i.lens[i.have++]=J}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block";i.mode=30;break}i.lenbits=9;ee={bits:i.lenbits};$=y(1,i.lens,0,i.nlen,i.lencode,0,i.work,ee);i.lenbits=ee.bits;if($){e.msg="invalid literal/lengths set";i.mode=30;break}i.distbits=6;i.distcode=i.distdyn;ee={bits:i.distbits};$=y(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,ee);i.distbits=ee.bits;if($){e.msg="invalid distances set";i.mode=30;break}i.mode=20;if(6===n)break e;case 20:i.mode=21;case 21:if(E>=6&&k>=258){e.next_out=P;e.avail_out=k;e.next_in=x;e.avail_in=E;i.hold=B;i.bits=j;_(e,O);P=e.next_out;w=e.output;k=e.avail_out;x=e.next_in;b=e.input;E=e.avail_in;B=i.hold;j=i.bits;12===i.mode&&(i.back=-1);break}i.back=0;for(;;){G=(re=i.lencode[B&(1<<i.lenbits)-1])>>>16&255;W=65535&re;if((U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(G&&0==(240&G)){X=U;K=G;Y=W;for(;;){G=(re=i.lencode[Y+((B&(1<<X+K)-1)>>X)])>>>16&255;W=65535&re;if(X+(U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}B>>>=X;j-=X;i.back+=X}B>>>=U;j-=U;i.back+=U;i.length=W;if(0===G){i.mode=26;break}if(32&G){i.back=-1;i.mode=12;break}if(64&G){e.msg="invalid literal/length code";i.mode=30;break}i.extra=15&G;i.mode=22;case 22:if(i.extra){te=i.extra;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.length+=B&(1<<i.extra)-1;B>>>=i.extra;j-=i.extra;i.back+=i.extra}i.was=i.length;i.mode=23;case 23:for(;;){G=(re=i.distcode[B&(1<<i.distbits)-1])>>>16&255;W=65535&re;if((U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(0==(240&G)){X=U;K=G;Y=W;for(;;){G=(re=i.distcode[Y+((B&(1<<X+K)-1)>>X)])>>>16&255;W=65535&re;if(X+(U=re>>>24)<=j)break;if(0===E)break e;E--;B+=b[x++]<<j;j+=8}B>>>=X;j-=X;i.back+=X}B>>>=U;j-=U;i.back+=U;if(64&G){e.msg="invalid distance code";i.mode=30;break}i.offset=W;i.extra=15&G;i.mode=24;case 24:if(i.extra){te=i.extra;for(;j<te;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}i.offset+=B&(1<<i.extra)-1;B>>>=i.extra;j-=i.extra;i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back";i.mode=30;break}i.mode=25;case 25:if(0===k)break e;D=O-k;if(i.offset>D){if((D=i.offset-D)>i.whave&&i.sane){e.msg="invalid distance too far back";i.mode=30;break}if(D>i.wnext){D-=i.wnext;R=i.wsize-D}else R=i.wnext-D;D>i.length&&(D=i.length);N=i.window}else{N=w;R=P-i.offset;D=i.length}D>k&&(D=k);k-=D;i.length-=D;do{w[P++]=N[R++]}while(--D);0===i.length&&(i.mode=21);break;case 26:if(0===k)break e;w[P++]=i.length;k--;i.mode=21;break;case 27:if(i.wrap){for(;j<32;){if(0===E)break e;E--;B|=b[x++]<<j;j+=8}O-=k;e.total_out+=O;i.total+=O;O&&(e.adler=i.check=i.flags?p(i.check,w,O,P-O):d(i.check,w,O,P-O));O=k;if((i.flags?B:zswap32(B))!==i.check){e.msg="incorrect data check";i.mode=30;break}B=0;j=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;j<32;){if(0===E)break e;E--;B+=b[x++]<<j;j+=8}if(B!==(4294967295&i.total)){e.msg="incorrect length check";i.mode=30;break}B=0;j=0}i.mode=29;case 29:$=1;break e;case 30:$=-3;break e;case 31:return-4;case 32:default:return-2}e.next_out=P;e.avail_out=k;e.next_in=x;e.avail_in=E;i.hold=B;i.bits=j;if((i.wsize||O!==e.avail_out&&i.mode<30&&(i.mode<27||4!==n))&&updatewindow(e,e.output,e.next_out,O-e.avail_out)){i.mode=31;return-4}I-=e.avail_in;O-=e.avail_out;e.total_in+=I;e.total_out+=O;i.total+=O;i.wrap&&O&&(e.adler=i.check=i.flags?p(i.check,w,O,e.next_out-O):d(i.check,w,O,e.next_out-O));e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0);(0===I&&0===O||4===n)&&0===$&&($=-5);return $};i.inflateEnd=function inflateEnd(e){if(!e||!e.state)return-2;var n=e.state;n.window&&(n.window=null);e.state=null;return 0};i.inflateGetHeader=function inflateGetHeader(e,n){var i;if(!e||!e.state)return-2;if(0==(2&(i=e.state).wrap))return-2;i.head=n;n.done=!1;return 0};i.inflateSetDictionary=function inflateSetDictionary(e,n){var i,u=n.length;if(!e||!e.state)return-2;if(0!==(i=e.state).wrap&&11!==i.mode)return-2;if(11===i.mode&&d(1,n,u,0)!==i.check)return-3;if(updatewindow(e,n,u,u)){i.mode=31;return-4}i.havedict=1;return 0};i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":215,"./adler32":216,"./crc32":218,"./inffast":220,"./inftrees":222}],222:[function(e,n,i){var u=e("../utils/common"),d=[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],p=[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],_=[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],y=[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];n.localExports=function inflate_table(e,n,i,b,w,x,P,E){var k,B,j,I,O,D,R,N,U,G=E.bits,W=0,X=0,K=0,Y=0,J=0,$=0,ee=0,te=0,re=0,ne=0,ie=null,oe=0,ae=new u.Buf16(16),se=new u.Buf16(16),le=null,ue=0;for(W=0;W<=15;W++)ae[W]=0;for(X=0;X<b;X++)ae[n[i+X]]++;J=G;for(Y=15;Y>=1&&0===ae[Y];Y--);J>Y&&(J=Y);if(0===Y){w[x++]=20971520;w[x++]=20971520;E.bits=1;return 0}for(K=1;K<Y&&0===ae[K];K++);J<K&&(J=K);te=1;for(W=1;W<=15;W++){te<<=1;if((te-=ae[W])<0)return-1}if(te>0&&(0===e||1!==Y))return-1;se[1]=0;for(W=1;W<15;W++)se[W+1]=se[W]+ae[W];for(X=0;X<b;X++)0!==n[i+X]&&(P[se[n[i+X]]++]=X);if(0===e){ie=le=P;D=19}else if(1===e){ie=d;oe-=257;le=p;ue-=257;D=256}else{ie=_;le=y;D=-1}ne=0;X=0;W=K;O=x;$=J;ee=0;j=-1;I=(re=1<<J)-1;if(1===e&&re>852||2===e&&re>592)return 1;for(;;){R=W-ee;if(P[X]<D){N=0;U=P[X]}else if(P[X]>D){N=le[ue+P[X]];U=ie[oe+P[X]]}else{N=96;U=0}k=1<<W-ee;K=B=1<<$;do{w[O+(ne>>ee)+(B-=k)]=R<<24|N<<16|U|0}while(0!==B);k=1<<W-1;for(;ne&k;)k>>=1;if(0!==k){ne&=k-1;ne+=k}else ne=0;X++;if(0==--ae[W]){if(W===Y)break;W=n[i+P[X]]}if(W>J&&(ne&I)!==j){0===ee&&(ee=J);O+=K;te=1<<($=W-ee);for(;$+ee<Y&&!((te-=ae[$+ee])<=0);){$++;te<<=1}re+=1<<$;if(1===e&&re>852||2===e&&re>592)return 1;w[j=ne&I]=J<<24|$<<16|O-x|0}}0!==ne&&(w[O+ne]=W-ee<<24|64<<16|0);E.bits=J;return 0}},{"../utils/common":215}],223:[function(e,n,i){n.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"}},{}],224:[function(e,n,i){var u=e("../utils/common");function zero(e){for(var n=e.length;--n>=0;)e[n]=0}var d=[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],p=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],b=new Array(576);zero(b);var w=new Array(60);zero(w);var x=new Array(512);zero(x);var P=new Array(256);zero(P);var E=new Array(29);zero(E);var k,B,j,I=new Array(30);zero(I);function StaticTreeDesc(e,n,i,u,d){this.static_tree=e;this.extra_bits=n;this.extra_base=i;this.elems=u;this.max_length=d;this.has_stree=e&&e.length}function TreeDesc(e,n){this.dyn_tree=e;this.max_code=0;this.stat_desc=n}function d_code(e){return e<256?x[e]:x[256+(e>>>7)]}function put_short(e,n){e.pending_buf[e.pending++]=255&n;e.pending_buf[e.pending++]=n>>>8&255}function send_bits(e,n,i){if(e.bi_valid>16-i){e.bi_buf|=n<<e.bi_valid&65535;put_short(e,e.bi_buf);e.bi_buf=n>>16-e.bi_valid;e.bi_valid+=i-16}else{e.bi_buf|=n<<e.bi_valid&65535;e.bi_valid+=i}}function send_code(e,n,i){send_bits(e,i[2*n],i[2*n+1])}function bi_reverse(e,n){var i=0;do{i|=1&e;e>>>=1;i<<=1}while(--n>0);return i>>>1}function gen_codes(e,n,i){var u,d,p=new Array(16),_=0;for(u=1;u<=15;u++)p[u]=_=_+i[u-1]<<1;for(d=0;d<=n;d++){var y=e[2*d+1];0!==y&&(e[2*d]=bi_reverse(p[y]++,y))}}function init_block(e){var n;for(n=0;n<286;n++)e.dyn_ltree[2*n]=0;for(n=0;n<30;n++)e.dyn_dtree[2*n]=0;for(n=0;n<19;n++)e.bl_tree[2*n]=0;e.dyn_ltree[512]=1;e.opt_len=e.static_len=0;e.last_lit=e.matches=0}function bi_windup(e){e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf);e.bi_buf=0;e.bi_valid=0}function smaller(e,n,i,u){var d=2*n,p=2*i;return e[d]<e[p]||e[d]===e[p]&&u[n]<=u[i]}function pqdownheap(e,n,i){for(var u=e.heap[i],d=i<<1;d<=e.heap_len;){d<e.heap_len&&smaller(n,e.heap[d+1],e.heap[d],e.depth)&&d++;if(smaller(n,u,e.heap[d],e.depth))break;e.heap[i]=e.heap[d];i=d;d<<=1}e.heap[i]=u}function compress_block(e,n,i){var u,_,y,b,w=0;if(0!==e.last_lit)do{u=e.pending_buf[e.d_buf+2*w]<<8|e.pending_buf[e.d_buf+2*w+1];_=e.pending_buf[e.l_buf+w];w++;if(0===u)send_code(e,_,n);else{send_code(e,(y=P[_])+256+1,n);0!==(b=d[y])&&send_bits(e,_-=E[y],b);send_code(e,y=d_code(--u),i);0!==(b=p[y])&&send_bits(e,u-=I[y],b)}}while(w<e.last_lit);send_code(e,256,n)}function build_tree(e,n){var i,u,d,p=n.dyn_tree,_=n.stat_desc.static_tree,y=n.stat_desc.has_stree,b=n.stat_desc.elems,w=-1;e.heap_len=0;e.heap_max=573;for(i=0;i<b;i++)if(0!==p[2*i]){e.heap[++e.heap_len]=w=i;e.depth[i]=0}else p[2*i+1]=0;for(;e.heap_len<2;){p[2*(d=e.heap[++e.heap_len]=w<2?++w:0)]=1;e.depth[d]=0;e.opt_len--;y&&(e.static_len-=_[2*d+1])}n.max_code=w;for(i=e.heap_len>>1;i>=1;i--)pqdownheap(e,p,i);d=b;do{i=e.heap[1];e.heap[1]=e.heap[e.heap_len--];pqdownheap(e,p,1);u=e.heap[1];e.heap[--e.heap_max]=i;e.heap[--e.heap_max]=u;p[2*d]=p[2*i]+p[2*u];e.depth[d]=(e.depth[i]>=e.depth[u]?e.depth[i]:e.depth[u])+1;p[2*i+1]=p[2*u+1]=d;e.heap[1]=d++;pqdownheap(e,p,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];!function gen_bitlen(e,n){var i,u,d,p,_,y,b=n.dyn_tree,w=n.max_code,x=n.stat_desc.static_tree,P=n.stat_desc.has_stree,E=n.stat_desc.extra_bits,k=n.stat_desc.extra_base,B=n.stat_desc.max_length,j=0;for(p=0;p<=15;p++)e.bl_count[p]=0;b[2*e.heap[e.heap_max]+1]=0;for(i=e.heap_max+1;i<573;i++){if((p=b[2*b[2*(u=e.heap[i])+1]+1]+1)>B){p=B;j++}b[2*u+1]=p;if(!(u>w)){e.bl_count[p]++;_=0;u>=k&&(_=E[u-k]);y=b[2*u];e.opt_len+=y*(p+_);P&&(e.static_len+=y*(x[2*u+1]+_))}}if(0!==j){do{p=B-1;for(;0===e.bl_count[p];)p--;e.bl_count[p]--;e.bl_count[p+1]+=2;e.bl_count[B]--;j-=2}while(j>0);for(p=B;0!==p;p--){u=e.bl_count[p];for(;0!==u;)if(!((d=e.heap[--i])>w)){if(b[2*d+1]!==p){e.opt_len+=(p-b[2*d+1])*b[2*d];b[2*d+1]=p}u--}}}}(e,n);gen_codes(p,w,e.bl_count)}function scan_tree(e,n,i){var u,d,p=-1,_=n[1],y=0,b=7,w=4;if(0===_){b=138;w=3}n[2*(i+1)+1]=65535;for(u=0;u<=i;u++){d=_;_=n[2*(u+1)+1];if(!(++y<b&&d===_)){if(y<w)e.bl_tree[2*d]+=y;else if(0!==d){d!==p&&e.bl_tree[2*d]++;e.bl_tree[32]++}else y<=10?e.bl_tree[34]++:e.bl_tree[36]++;y=0;p=d;if(0===_){b=138;w=3}else if(d===_){b=6;w=3}else{b=7;w=4}}}}function send_tree(e,n,i){var u,d,p=-1,_=n[1],y=0,b=7,w=4;if(0===_){b=138;w=3}for(u=0;u<=i;u++){d=_;_=n[2*(u+1)+1];if(!(++y<b&&d===_)){if(y<w)do{send_code(e,d,e.bl_tree)}while(0!=--y);else if(0!==d){if(d!==p){send_code(e,d,e.bl_tree);y--}send_code(e,16,e.bl_tree);send_bits(e,y-3,2)}else if(y<=10){send_code(e,17,e.bl_tree);send_bits(e,y-3,3)}else{send_code(e,18,e.bl_tree);send_bits(e,y-11,7)}y=0;p=d;if(0===_){b=138;w=3}else if(d===_){b=6;w=3}else{b=7;w=4}}}}var O=!1;function _tr_stored_block(e,n,i,d){send_bits(e,0+(d?1:0),3);!function copy_block(e,n,i,d){bi_windup(e);if(d){put_short(e,i);put_short(e,~i)}u.arraySet(e.pending_buf,e.window,n,i,e.pending);e.pending+=i}(e,n,i,!0)}i._tr_init=function _tr_init(e){if(!O){!function tr_static_init(){var e,n,i,u,y,O=new Array(16);i=0;for(u=0;u<28;u++){E[u]=i;for(e=0;e<1<<d[u];e++)P[i++]=u}P[i-1]=u;y=0;for(u=0;u<16;u++){I[u]=y;for(e=0;e<1<<p[u];e++)x[y++]=u}y>>=7;for(;u<30;u++){I[u]=y<<7;for(e=0;e<1<<p[u]-7;e++)x[256+y++]=u}for(n=0;n<=15;n++)O[n]=0;e=0;for(;e<=143;){b[2*e+1]=8;e++;O[8]++}for(;e<=255;){b[2*e+1]=9;e++;O[9]++}for(;e<=279;){b[2*e+1]=7;e++;O[7]++}for(;e<=287;){b[2*e+1]=8;e++;O[8]++}gen_codes(b,287,O);for(e=0;e<30;e++){w[2*e+1]=5;w[2*e]=bi_reverse(e,5)}k=new StaticTreeDesc(b,d,257,286,15);B=new StaticTreeDesc(w,p,0,30,15);j=new StaticTreeDesc(new Array(0),_,0,19,7)}();O=!0}e.l_desc=new TreeDesc(e.dyn_ltree,k);e.d_desc=new TreeDesc(e.dyn_dtree,B);e.bl_desc=new TreeDesc(e.bl_tree,j);e.bi_buf=0;e.bi_valid=0;init_block(e)};i._tr_stored_block=_tr_stored_block;i._tr_flush_block=function _tr_flush_block(e,n,i,u){var d,p,_=0;if(e.level>0){2===e.strm.data_type&&(e.strm.data_type=function detect_data_type(e){var n,i=4093624447;for(n=0;n<=31;n++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*n])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(n=32;n<256;n++)if(0!==e.dyn_ltree[2*n])return 1;return 0}(e));build_tree(e,e.l_desc);build_tree(e,e.d_desc);_=function build_bl_tree(e){var n;scan_tree(e,e.dyn_ltree,e.l_desc.max_code);scan_tree(e,e.dyn_dtree,e.d_desc.max_code);build_tree(e,e.bl_desc);for(n=18;n>=3&&0===e.bl_tree[2*y[n]+1];n--);e.opt_len+=3*(n+1)+5+5+4;return n}(e);d=e.opt_len+3+7>>>3;(p=e.static_len+3+7>>>3)<=d&&(d=p)}else d=p=i+5;if(i+4<=d&&-1!==n)_tr_stored_block(e,n,i,u);else if(4===e.strategy||p===d){send_bits(e,2+(u?1:0),3);compress_block(e,b,w)}else{send_bits(e,4+(u?1:0),3);!function send_all_trees(e,n,i,u){var d;send_bits(e,n-257,5);send_bits(e,i-1,5);send_bits(e,u-4,4);for(d=0;d<u;d++)send_bits(e,e.bl_tree[2*y[d]+1],3);send_tree(e,e.dyn_ltree,n-1);send_tree(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,_+1);compress_block(e,e.dyn_ltree,e.dyn_dtree)}init_block(e);u&&bi_windup(e)};i._tr_tally=function _tr_tally(e,n,i){e.pending_buf[e.d_buf+2*e.last_lit]=n>>>8&255;e.pending_buf[e.d_buf+2*e.last_lit+1]=255&n;e.pending_buf[e.l_buf+e.last_lit]=255&i;e.last_lit++;if(0===n)e.dyn_ltree[2*i]++;else{e.matches++;n--;e.dyn_ltree[2*(P[i]+256+1)]++;e.dyn_dtree[2*d_code(n)]++}return e.last_lit===e.lit_bufsize-1};i._tr_align=function _tr_align(e){send_bits(e,2,3);send_code(e,256,b);!function bi_flush(e){if(16===e.bi_valid){put_short(e,e.bi_buf);e.bi_buf=0;e.bi_valid=0}else if(e.bi_valid>=8){e.pending_buf[e.pending++]=255&e.bi_buf;e.bi_buf>>=8;e.bi_valid-=8}}(e)}},{"../utils/common":215}],225:[function(e,n,i){n.localExports=function ZStream(){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}},{}],226:[function(e,n,i){(function(i){(function(){var u=e("fs"),d=e("zlib");n.localExports=function(){PNG.decode=function decode(e,n){return u.readFile(e,(function(e,i){return new PNG(i).decode((function(e){return n(e)}))}))};PNG.load=function load(e){return new PNG(u.readFileSync(e))};function PNG(e){var n;this.data=e;this.pos=8;this.palette=[];this.imgData=[];this.transparency={};this.text={};for(;;){var u=this.readUInt32(),d="";for(n=0;n<4;n++)d+=String.fromCharCode(this.data[this.pos++]);switch(d){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(u);break;case"IDAT":for(n=0;n<u;n++)this.imgData.push(this.data[this.pos++]);break;case"tRNS":this.transparency={};switch(this.colorType){case 3:this.transparency.indexed=this.read(u);var p=255-this.transparency.indexed.length;if(p>0)for(n=0;n<p;n++)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(u)[0];break;case 2:this.transparency.rgb=this.read(u)}break;case"tEXt":var _=this.read(u),y=_.indexOf(0),b=String.fromCharCode.apply(String,_.slice(0,y));this.text[b]=String.fromCharCode.apply(String,_.slice(y+1));break;case"IEND":switch(this.colorType){case 0:case 3:case 4:this.colors=1;break;case 2:case 6:this.colors=3}this.hasAlphaChannel=-1!==[4,6].indexOf(this.colorType);var w=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*w;switch(this.colors){case 1:this.colorSpace="DeviceGray";break;case 3:this.colorSpace="DeviceRGB"}this.imgData=new i(this.imgData);return;default:this.pos+=u}this.pos+=4;if(this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}var e=PNG.prototype;e.read=function read(e){for(var n=new Array(e),i=0;i<e;i++)n[i]=this.data[this.pos++];return n};e.readUInt32=function readUInt32(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]};e.readUInt16=function readUInt16(){return this.data[this.pos++]<<8|this.data[this.pos++]};e.decodePixels=function decodePixels(e){var n=this;return d.inflate(this.imgData,(function(u,d){if(u)throw u;var p=n.width,_=n.height,y=n.pixelBitlength/8,b=new i(p*_*y),w=d.length,x=0;function pass(e,n,u,P,E){void 0===E&&(E=!1);for(var k=Math.ceil((p-e)/u),B=Math.ceil((_-n)/P),j=y*k,I=E?b:new i(j*B),O=0,D=0;O<B&&x<w;){var R,N,U,G,W;switch(d[x++]){case 0:for(U=0;U<j;U++)I[D++]=d[x++];break;case 1:for(U=0;U<j;U++){R=d[x++];G=U<y?0:I[D-y];I[D++]=(R+G)%256}break;case 2:for(U=0;U<j;U++){R=d[x++];N=(U-U%y)/y;W=O&&I[(O-1)*j+N*y+U%y];I[D++]=(W+R)%256}break;case 3:for(U=0;U<j;U++){R=d[x++];N=(U-U%y)/y;G=U<y?0:I[D-y];W=O&&I[(O-1)*j+N*y+U%y];I[D++]=(R+Math.floor((G+W)/2))%256}break;case 4:for(U=0;U<j;U++){var X,K;R=d[x++];N=(U-U%y)/y;G=U<y?0:I[D-y];if(0===O)W=K=0;else{W=I[(O-1)*j+N*y+U%y];K=N&&I[(O-1)*j+(N-1)*y+U%y]}var Y=G+W-K,J=Math.abs(Y-G),$=Math.abs(Y-W),ee=Math.abs(Y-K);X=J<=$&&J<=ee?G:$<=ee?W:K;I[D++]=(R+X)%256}break;default:throw new Error("Invalid filter algorithm: "+d[x-1])}if(!E){var te=((n+O*P)*p+e)*y,re=O*j;for(U=0;U<k;U++){for(var ne=0;ne<y;ne++)b[te++]=I[re++];te+=(u-1)*y}}O++}}if(1===n.interlaceMethod){pass(0,0,8,8);pass(4,0,8,8);pass(0,4,4,8);pass(2,0,4,4);pass(0,2,2,4);pass(1,0,2,2);pass(0,1,1,2)}else pass(0,0,1,1,!0);return e(b)}))};e.decodePalette=function decodePalette(){for(var e=this.palette,n=e.length,u=this.transparency.indexed||[],d=new i(u.length+n),p=0,_=0,y=0;y<n;y+=3){var b;d[p++]=e[y];d[p++]=e[y+1];d[p++]=e[y+2];d[p++]=null!=(b=u[_++])?b:255}return d};e.copyToImageData=function copyToImageData(e,n){var i,u,d=this.colors,p=null,_=this.hasAlphaChannel;if(this.palette.length){p=this._decodedPalette||(this._decodedPalette=this.decodePalette());d=4;_=!0}var y=e.data||e,b=y.length,w=p||n,x=i=0;if(1===d)for(;x<b;){u=p?4*n[x/4]:i;var P=w[u++];y[x++]=P;y[x++]=P;y[x++]=P;y[x++]=_?w[u++]:255;i=u}else for(;x<b;){u=p?4*n[x/4]:i;y[x++]=w[u++];y[x++]=w[u++];y[x++]=w[u++];y[x++]=_?w[u++]:255;i=u}};e.decode=function decode(e){var n=this,u=new i(this.width*this.height*4);return this.decodePixels((function(i){n.copyToImageData(u,i);return e(u)}))};return PNG}()}).call(this)}).call(this,e("buffer").Buffer)},{buffer:152,fs:151,zlib:150}],227:[function(e,n,i){(function(e){(function(){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?n.localExports={nextTick:function nextTick(n,i,u,d){if("function"!=typeof n)throw new TypeError('"callback" argument must be a function');var p,_,y=arguments.length;switch(y){case 0:case 1:return e.nextTick(n);case 2:return e.nextTick((function afterTickOne(){n.call(null,i)}));case 3:return e.nextTick((function afterTickTwo(){n.call(null,i,u)}));case 4:return e.nextTick((function afterTickThree(){n.call(null,i,u,d)}));default:p=new Array(y-1);_=0;for(;_<p.length;)p[_++]=arguments[_];return e.nextTick((function afterTick(){n.apply(null,p)}))}}}:n.localExports=e}).call(this)}).call(this,e("_process"))},{_process:228}],228:[function(e,n,i){var u,d,p=n.localExports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}!function(){try{u="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){u=defaultSetTimout}try{d="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){d=defaultClearTimeout}}();function runTimeout(e){if(u===setTimeout)return setTimeout(e,0);if((u===defaultSetTimout||!u)&&setTimeout){u=setTimeout;return setTimeout(e,0)}try{return u(e,0)}catch(n){try{return u.call(null,e,0)}catch(n){return u.call(this,e,0)}}}var _,y=[],b=!1,w=-1;function cleanUpNextTick(){if(b&&_){b=!1;_.length?y=_.concat(y):w=-1;y.length&&drainQueue()}}function drainQueue(){if(!b){var e=runTimeout(cleanUpNextTick);b=!0;for(var n=y.length;n;){_=y;y=[];for(;++w<n;)_&&_[w].run();w=-1;n=y.length}_=null;b=!1;!function runClearTimeout(e){if(d===clearTimeout)return clearTimeout(e);if((d===defaultClearTimeout||!d)&&clearTimeout){d=clearTimeout;return clearTimeout(e)}try{return d(e)}catch(n){try{return d.call(null,e)}catch(n){return d.call(this,e)}}}(e)}}p.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)n[i-1]=arguments[i];y.push(new Item(e,n));1!==y.length||b||runTimeout(drainQueue)};function Item(e,n){this.fun=e;this.array=n}Item.prototype.run=function(){this.fun.apply(null,this.array)};p.title="browser";p.browser=!0;p.env={};p.argv=[];p.version="";p.versions={};function noop(){}p.on=noop;p.addListener=noop;p.once=noop;p.off=noop;p.removeListener=noop;p.removeAllListeners=noop;p.emit=noop;p.prependListener=noop;p.prependOnceListener=noop;p.listeners=function(e){return[]};p.binding=function(e){throw new Error("process.binding is not supported")};p.cwd=function(){return"/"};p.chdir=function(e){throw new Error("process.chdir is not supported")};p.umask=function(){return 0}},{}],229:[function(e,n,i){n.localExports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":230}],230:[function(e,n,i){var u=e("process-nextick-args"),d=Object.keys||function(e){var n=[];for(var i in e)n.push(i);return n};n.localExports=Duplex;var p=Object.create(e("core-util-is"));p.inherits=e("inherits");var _=e("./_stream_readable"),y=e("./_stream_writable");p.inherits(Duplex,_);for(var b=d(y.prototype),w=0;w<b.length;w++){var x=b[w];Duplex.prototype[x]||(Duplex.prototype[x]=y.prototype[x])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);_.call(this,e);y.call(this,e);e&&!1===e.readable&&(this.readable=!1);e&&!1===e.writable&&(this.writable=!1);this.allowHalfOpen=!0;e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function get(){return this._writableState.highWaterMark}});function onend(){this.allowHalfOpen||this._writableState.ended||u.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function get(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function set(e){if(void 0!==this._readableState&&void 0!==this._writableState){this._readableState.destroyed=e;this._writableState.destroyed=e}}});Duplex.prototype._destroy=function(e,n){this.push(null);this.end();u.nextTick(n,e)}},{"./_stream_readable":232,"./_stream_writable":234,"core-util-is":209,inherits:212,"process-nextick-args":227}],231:[function(e,n,i){n.localExports=PassThrough;var u=e("./_stream_transform"),d=Object.create(e("core-util-is"));d.inherits=e("inherits");d.inherits(PassThrough,u);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);u.call(this,e)}PassThrough.prototype._transform=function(e,n,i){i(null,e)}},{"./_stream_transform":233,"core-util-is":209,inherits:212}],232:[function(e,n,i){(function(i,u){(function(){var d=e("process-nextick-args");n.localExports=Readable;var p,_=e("isarray");Readable.ReadableState=ReadableState;e("events").EventEmitter;var y=function EElistenerCount(e,n){return e.listeners(n).length},b=e("./internal/streams/stream"),w=e("safe-buffer").Buffer,x=u.Uint8Array||function(){};var P=Object.create(e("core-util-is"));P.inherits=e("inherits");var E=e("util"),k=void 0;k=E&&E.debuglog?E.debuglog("stream"):function debug(){};var B,j=e("./internal/streams/BufferList"),I=e("./internal/streams/destroy");P.inherits(Readable,b);var O=["error","close","destroy","pause","resume"];function ReadableState(n,i){n=n||{};var u=i instanceof(p=p||e("./_stream_duplex"));this.objectMode=!!n.objectMode;u&&(this.objectMode=this.objectMode||!!n.readableObjectMode);var d=n.highWaterMark,_=n.readableHighWaterMark,y=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:u&&(_||0===_)?_:y;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new j;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=!1;this.endEmitted=!1;this.reading=!1;this.sync=!0;this.needReadable=!1;this.emittedReadable=!1;this.readableListening=!1;this.resumeScheduled=!1;this.destroyed=!1;this.defaultEncoding=n.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=!1;this.decoder=null;this.encoding=null;if(n.encoding){B||(B=e("string_decoder/").StringDecoder);this.decoder=new B(n.encoding);this.encoding=n.encoding}}function Readable(n){p=p||e("./_stream_duplex");if(!(this instanceof Readable))return new Readable(n);this._readableState=new ReadableState(n,this);this.readable=!0;if(n){"function"==typeof n.read&&(this._read=n.read);"function"==typeof n.destroy&&(this._destroy=n.destroy)}b.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function get(){return void 0!==this._readableState&&this._readableState.destroyed},set:function set(e){this._readableState&&(this._readableState.destroyed=e)}});Readable.prototype.destroy=I.destroy;Readable.prototype._undestroy=I.undestroy;Readable.prototype._destroy=function(e,n){this.push(null);n(e)};Readable.prototype.push=function(e,n){var i,u=this._readableState;if(u.objectMode)i=!0;else if("string"==typeof e){if((n=n||u.defaultEncoding)!==u.encoding){e=w.from(e,n);n=""}i=!0}return readableAddChunk(this,e,n,!1,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,!0,!1)};function readableAddChunk(e,n,i,u,d){var p=e._readableState;if(null===n){p.reading=!1;!function onEofChunk(e,n){if(n.ended)return;if(n.decoder){var i=n.decoder.end();if(i&&i.length){n.buffer.push(i);n.length+=n.objectMode?1:i.length}}n.ended=!0;emitReadable(e)}(e,p)}else{var _;d||(_=function chunkInvalid(e,n){var i;(function _isUint8Array(e){return w.isBuffer(e)||e instanceof x})(n)||"string"==typeof n||void 0===n||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(p,n));if(_)e.emit("error",_);else if(p.objectMode||n&&n.length>0){"string"==typeof n||p.objectMode||Object.getPrototypeOf(n)===w.prototype||(n=function _uint8ArrayToBuffer(e){return w.from(e)}(n));if(u)p.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):addChunk(e,p,n,!0);else if(p.ended)e.emit("error",new Error("stream.push() after EOF"));else{p.reading=!1;if(p.decoder&&!i){n=p.decoder.write(n);p.objectMode||0!==n.length?addChunk(e,p,n,!1):maybeReadMore(e,p)}else addChunk(e,p,n,!1)}}else u||(p.reading=!1)}return function needMoreData(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(p)}function addChunk(e,n,i,u){if(n.flowing&&0===n.length&&!n.sync){e.emit("data",i);e.read(0)}else{n.length+=n.objectMode?1:i.length;u?n.buffer.unshift(i):n.buffer.push(i);n.needReadable&&emitReadable(e)}maybeReadMore(e,n)}Readable.prototype.isPaused=function(){return!1===this._readableState.flowing};Readable.prototype.setEncoding=function(n){B||(B=e("string_decoder/").StringDecoder);this._readableState.decoder=new B(n);this._readableState.encoding=n;return this};function howMuchToRead(e,n){if(e<=0||0===n.length&&n.ended)return 0;if(n.objectMode)return 1;if(e!=e)return n.flowing&&n.length?n.buffer.head.data.length:n.length;e>n.highWaterMark&&(n.highWaterMark=function computeNewHighWaterMark(e){if(e>=8388608)e=8388608;else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}(e));if(e<=n.length)return e;if(!n.ended){n.needReadable=!0;return 0}return n.length}Readable.prototype.read=function(e){k("read",e);e=parseInt(e,10);var n=this._readableState,i=e;0!==e&&(n.emittedReadable=!1);if(0===e&&n.needReadable&&(n.length>=n.highWaterMark||n.ended)){k("read: emitReadable",n.length,n.ended);0===n.length&&n.ended?endReadable(this):emitReadable(this);return null}if(0===(e=howMuchToRead(e,n))&&n.ended){0===n.length&&endReadable(this);return null}var u,d=n.needReadable;k("need readable",d);(0===n.length||n.length-e<n.highWaterMark)&&k("length less than watermark",d=!0);if(n.ended||n.reading)k("reading or ended",d=!1);else if(d){k("do read");n.reading=!0;n.sync=!0;0===n.length&&(n.needReadable=!0);this._read(n.highWaterMark);n.sync=!1;n.reading||(e=howMuchToRead(i,n))}if(null===(u=e>0?fromList(e,n):null)){n.needReadable=!0;e=0}else n.length-=e;if(0===n.length){n.ended||(n.needReadable=!0);i!==e&&n.ended&&endReadable(this)}null!==u&&this.emit("data",u);return u};function emitReadable(e){var n=e._readableState;n.needReadable=!1;if(!n.emittedReadable){k("emitReadable",n.flowing);n.emittedReadable=!0;n.sync?d.nextTick(emitReadable_,e):emitReadable_(e)}}function emitReadable_(e){k("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,n){if(!n.readingMore){n.readingMore=!0;d.nextTick(maybeReadMore_,e,n)}}function maybeReadMore_(e,n){for(var i=n.length;!n.reading&&!n.flowing&&!n.ended&&n.length<n.highWaterMark;){k("maybeReadMore read 0");e.read(0);if(i===n.length)break;i=n.length}n.readingMore=!1}Readable.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(e,n){var u=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1;k("pipe count=%d opts=%j",p.pipesCount,n);var b=(!n||!1!==n.end)&&e!==i.stdout&&e!==i.stderr?onend:unpipe;p.endEmitted?d.nextTick(b):u.once("end",b);e.on("unpipe",onunpipe);function onunpipe(n,i){k("onunpipe");if(n===u&&i&&!1===i.hasUnpiped){i.hasUnpiped=!0;!function cleanup(){k("cleanup");e.removeListener("close",onclose);e.removeListener("finish",onfinish);e.removeListener("drain",w);e.removeListener("error",onerror);e.removeListener("unpipe",onunpipe);u.removeListener("end",onend);u.removeListener("end",unpipe);u.removeListener("data",ondata);x=!0;!p.awaitDrain||e._writableState&&!e._writableState.needDrain||w()}()}}function onend(){k("onend");e.end()}var w=function pipeOnDrain(e){return function(){var n=e._readableState;k("pipeOnDrain",n.awaitDrain);n.awaitDrain&&n.awaitDrain--;if(0===n.awaitDrain&&y(e,"data")){n.flowing=!0;flow(e)}}}(u);e.on("drain",w);var x=!1;var P=!1;u.on("data",ondata);function ondata(n){k("ondata");P=!1;if(!1===e.write(n)&&!P){if((1===p.pipesCount&&p.pipes===e||p.pipesCount>1&&-1!==indexOf(p.pipes,e))&&!x){k("false write response, pause",u._readableState.awaitDrain);u._readableState.awaitDrain++;P=!0}u.pause()}}function onerror(n){k("onerror",n);unpipe();e.removeListener("error",onerror);0===y(e,"error")&&e.emit("error",n)}!function prependListener(e,n,i){if("function"==typeof e.prependListener)return e.prependListener(n,i);e._events&&e._events[n]?_(e._events[n])?e._events[n].unshift(i):e._events[n]=[i,e._events[n]]:e.on(n,i)}(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){k("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){k("unpipe");u.unpipe(e)}e.emit("pipe",u);if(!p.flowing){k("pipe resume");u.resume()}return e};Readable.prototype.unpipe=function(e){var n=this._readableState,i={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount){if(e&&e!==n.pipes)return this;e||(e=n.pipes);n.pipes=null;n.pipesCount=0;n.flowing=!1;e&&e.emit("unpipe",this,i);return this}if(!e){var u=n.pipes,d=n.pipesCount;n.pipes=null;n.pipesCount=0;n.flowing=!1;for(var p=0;p<d;p++)u[p].emit("unpipe",this,i);return this}var _=indexOf(n.pipes,e);if(-1===_)return this;n.pipes.splice(_,1);n.pipesCount-=1;1===n.pipesCount&&(n.pipes=n.pipes[0]);e.emit("unpipe",this,i);return this};Readable.prototype.on=function(e,n){var i=b.prototype.on.call(this,e,n);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var u=this._readableState;if(!u.endEmitted&&!u.readableListening){u.readableListening=u.needReadable=!0;u.emittedReadable=!1;u.reading?u.length&&emitReadable(this):d.nextTick(nReadingNextTick,this)}}return i};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(e){k("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){k("resume");e.flowing=!0;!function resume(e,n){if(!n.resumeScheduled){n.resumeScheduled=!0;d.nextTick(resume_,e,n)}}(this,e)}return this};function resume_(e,n){if(!n.reading){k("resume read 0");e.read(0)}n.resumeScheduled=!1;n.awaitDrain=0;e.emit("resume");flow(e);n.flowing&&!n.reading&&e.read(0)}Readable.prototype.pause=function(){k("call pause flowing=%j",this._readableState.flowing);if(!1!==this._readableState.flowing){k("pause");this._readableState.flowing=!1;this.emit("pause")}return this};function flow(e){var n=e._readableState;k("flow",n.flowing);for(;n.flowing&&null!==e.read(););}Readable.prototype.wrap=function(e){var n=this,i=this._readableState,u=!1;e.on("end",(function(){k("wrapped end");if(i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&n.push(e)}n.push(null)}));e.on("data",(function(d){k("wrapped data");i.decoder&&(d=i.decoder.write(d));if((!i.objectMode||null!=d)&&(i.objectMode||d&&d.length)){if(!n.push(d)){u=!0;e.pause()}}}));for(var d in e)void 0===this[d]&&"function"==typeof e[d]&&(this[d]=function(n){return function(){return e[n].apply(e,arguments)}}(d));for(var p=0;p<O.length;p++)e.on(O[p],this.emit.bind(this,O[p]));this._read=function(n){k("wrapped _read",n);if(u){u=!1;e.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function get(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(e,n){if(0===n.length)return null;var i;if(n.objectMode)i=n.buffer.shift();else if(!e||e>=n.length){i=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.head.data:n.buffer.concat(n.length);n.buffer.clear()}else i=function fromListPartial(e,n,i){var u;if(e<n.head.data.length){u=n.head.data.slice(0,e);n.head.data=n.head.data.slice(e)}else u=e===n.head.data.length?n.shift():i?function copyFromBufferString(e,n){var i=n.head,u=1,d=i.data;e-=d.length;for(;i=i.next;){var p=i.data,_=e>p.length?p.length:e;_===p.length?d+=p:d+=p.slice(0,e);if(0===(e-=_)){if(_===p.length){++u;i.next?n.head=i.next:n.head=n.tail=null}else{n.head=i;i.data=p.slice(_)}break}++u}n.length-=u;return d}(e,n):function copyFromBuffer(e,n){var i=w.allocUnsafe(e),u=n.head,d=1;u.data.copy(i);e-=u.data.length;for(;u=u.next;){var p=u.data,_=e>p.length?p.length:e;p.copy(i,i.length-e,0,_);if(0===(e-=_)){if(_===p.length){++d;u.next?n.head=u.next:n.head=n.tail=null}else{n.head=u;u.data=p.slice(_)}break}++d}n.length-=d;return i}(e,n);return u}(e,n.buffer,n.decoder);return i}function endReadable(e){var n=e._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!n.endEmitted){n.ended=!0;d.nextTick(endReadableNT,n,e)}}function endReadableNT(e,n){if(!e.endEmitted&&0===e.length){e.endEmitted=!0;n.readable=!1;n.emit("end")}}function indexOf(e,n){for(var i=0,u=e.length;i<u;i++)if(e[i]===n)return i;return-1}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":230,"./internal/streams/BufferList":235,"./internal/streams/destroy":236,"./internal/streams/stream":237,_process:228,"core-util-is":209,events:210,inherits:212,isarray:213,"process-nextick-args":227,"safe-buffer":242,"string_decoder/":244,util:148}],233:[function(e,n,i){n.localExports=Transform;var u=e("./_stream_duplex"),d=Object.create(e("core-util-is"));d.inherits=e("inherits");d.inherits(Transform,u);function afterTransform(e,n){var i=this._transformState;i.transforming=!1;var u=i.writecb;if(!u)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null;i.writecb=null;null!=n&&this.push(n);u(e);var d=this._readableState;d.reading=!1;(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function Transform(e){if(!(this instanceof Transform))return new Transform(e);u.call(this,e);this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=!0;this._readableState.sync=!1;if(e){"function"==typeof e.transform&&(this._transform=e.transform);"function"==typeof e.flush&&(this._flush=e.flush)}this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"==typeof this._flush?this._flush((function(n,i){done(e,n,i)})):done(this,null,null)}Transform.prototype.push=function(e,n){this._transformState.needTransform=!1;return u.prototype.push.call(this,e,n)};Transform.prototype._transform=function(e,n,i){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(e,n,i){var u=this._transformState;u.writecb=i;u.writechunk=e;u.writeencoding=n;if(!u.transforming){var d=this._readableState;(u.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}};Transform.prototype._read=function(e){var n=this._transformState;if(null!==n.writechunk&&n.writecb&&!n.transforming){n.transforming=!0;this._transform(n.writechunk,n.writeencoding,n.afterTransform)}else n.needTransform=!0};Transform.prototype._destroy=function(e,n){var i=this;u.prototype._destroy.call(this,e,(function(e){n(e);i.emit("close")}))};function done(e,n,i){if(n)return e.emit("error",n);null!=i&&e.push(i);if(e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},{"./_stream_duplex":230,"core-util-is":209,inherits:212}],234:[function(e,n,i){(function(i,u,d){(function(){var p=e("process-nextick-args");n.localExports=Writable;function CorkedRequest(e){var n=this;this.next=null;this.entry=null;this.finish=function(){!function onCorkedFinish(e,n,i){var u=e.entry;e.entry=null;for(;u;){var d=u.callback;n.pendingcb--;d(i);u=u.next}n.corkedRequestsFree?n.corkedRequestsFree.next=e:n.corkedRequestsFree=e}(n,e)}}var _,y=!i.browser&&["v0.10","v0.9."].indexOf(i.version.slice(0,5))>-1?d:p.nextTick;Writable.WritableState=WritableState;var b=Object.create(e("core-util-is"));b.inherits=e("inherits");var w={deprecate:e("util-deprecate")},x=e("./internal/streams/stream"),P=e("safe-buffer").Buffer,E=u.Uint8Array||function(){};var k,B=e("./internal/streams/destroy");b.inherits(Writable,x);function nop(){}function WritableState(n,i){_=_||e("./_stream_duplex");n=n||{};var u=i instanceof _;this.objectMode=!!n.objectMode;u&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var d=n.highWaterMark,b=n.writableHighWaterMark,w=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:u&&(b||0===b)?b:w;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=!1;this.needDrain=!1;this.ending=!1;this.ended=!1;this.finished=!1;this.destroyed=!1;var x=!1===n.decodeStrings;this.decodeStrings=!x;this.defaultEncoding=n.defaultEncoding||"utf8";this.length=0;this.writing=!1;this.corked=0;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(e){!function onwrite(e,n){var i=e._writableState,u=i.sync,d=i.writecb;!function onwriteStateUpdate(e){e.writing=!1;e.writecb=null;e.length-=e.writelen;e.writelen=0}(i);if(n)!function onwriteError(e,n,i,u,d){--n.pendingcb;if(i){p.nextTick(d,u);p.nextTick(finishMaybe,e,n);e._writableState.errorEmitted=!0;e.emit("error",u)}else{d(u);e._writableState.errorEmitted=!0;e.emit("error",u);finishMaybe(e,n)}}(e,i,u,n,d);else{var _=needFinish(i);_||i.corked||i.bufferProcessing||!i.bufferedRequest||clearBuffer(e,i);u?y(afterWrite,e,i,_,d):afterWrite(e,i,_,d)}}(i,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=!1;this.errorEmitted=!1;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){for(var e=this.bufferedRequest,n=[];e;){n.push(e);e=e.next}return n};!function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:w.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();if("function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){k=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){return!!k.call(this,e)||this===Writable&&(e&&e._writableState instanceof WritableState)}})}else k=function realHasInstance(e){return e instanceof this};function Writable(n){_=_||e("./_stream_duplex");if(!(k.call(Writable,this)||this instanceof _))return new Writable(n);this._writableState=new WritableState(n,this);this.writable=!0;if(n){"function"==typeof n.write&&(this._write=n.write);"function"==typeof n.writev&&(this._writev=n.writev);"function"==typeof n.destroy&&(this._destroy=n.destroy);"function"==typeof n.final&&(this._final=n.final)}x.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};Writable.prototype.write=function(e,n,i){var u=this._writableState,d=!1,_=!u.objectMode&&function _isUint8Array(e){return P.isBuffer(e)||e instanceof E}(e);_&&!P.isBuffer(e)&&(e=function _uint8ArrayToBuffer(e){return P.from(e)}(e));if("function"==typeof n){i=n;n=null}_?n="buffer":n||(n=u.defaultEncoding);"function"!=typeof i&&(i=nop);if(u.ended)!function writeAfterEnd(e,n){var i=new Error("write after end");e.emit("error",i);p.nextTick(n,i)}(this,i);else if(_||function validChunk(e,n,i,u){var d=!0,_=!1;null===i?_=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||n.objectMode||(_=new TypeError("Invalid non-string/buffer chunk"));if(_){e.emit("error",_);p.nextTick(u,_);d=!1}return d}(this,u,e,i)){u.pendingcb++;d=function writeOrBuffer(e,n,i,u,d,p){if(!i){var _=function decodeChunk(e,n,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof n||(n=P.from(n,i));return n}(n,u,d);if(u!==_){i=!0;d="buffer";u=_}}var y=n.objectMode?1:u.length;n.length+=y;var b=n.length<n.highWaterMark;b||(n.needDrain=!0);if(n.writing||n.corked){var w=n.lastBufferedRequest;n.lastBufferedRequest={chunk:u,encoding:d,isBuf:i,callback:p,next:null};w?w.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest;n.bufferedRequestCount+=1}else doWrite(e,n,!1,y,u,d,p);return b}(this,u,_,e,n,i)}return d};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){"string"==typeof e&&(e=e.toLowerCase());if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function get(){return this._writableState.highWaterMark}});function doWrite(e,n,i,u,d,p,_){n.writelen=u;n.writecb=_;n.writing=!0;n.sync=!0;i?e._writev(d,n.onwrite):e._write(d,p,n.onwrite);n.sync=!1}function afterWrite(e,n,i,u){i||function onwriteDrain(e,n){if(0===n.length&&n.needDrain){n.needDrain=!1;e.emit("drain")}}(e,n);n.pendingcb--;u();finishMaybe(e,n)}function clearBuffer(e,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(e._writev&&i&&i.next){var u=n.bufferedRequestCount,d=new Array(u),p=n.corkedRequestsFree;p.entry=i;for(var _=0,y=!0;i;){d[_]=i;i.isBuf||(y=!1);i=i.next;_+=1}d.allBuffers=y;doWrite(e,n,!0,n.length,d,"",p.finish);n.pendingcb++;n.lastBufferedRequest=null;if(p.next){n.corkedRequestsFree=p.next;p.next=null}else n.corkedRequestsFree=new CorkedRequest(n);n.bufferedRequestCount=0}else{for(;i;){var b=i.chunk,w=i.encoding,x=i.callback;doWrite(e,n,!1,n.objectMode?1:b.length,b,w,x);i=i.next;n.bufferedRequestCount--;if(n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i;n.bufferProcessing=!1}Writable.prototype._write=function(e,n,i){i(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(e,n,i){var u=this._writableState;if("function"==typeof e){i=e;e=null;n=null}else if("function"==typeof n){i=n;n=null}null!=e&&this.write(e,n);if(u.corked){u.corked=1;this.uncork()}u.ending||u.finished||function endWritable(e,n,i){n.ending=!0;finishMaybe(e,n);i&&(n.finished?p.nextTick(i):e.once("finish",i));n.ended=!0;e.writable=!1}(this,u,i)};function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function callFinal(e,n){e._final((function(i){n.pendingcb--;i&&e.emit("error",i);n.prefinished=!0;e.emit("prefinish");finishMaybe(e,n)}))}function finishMaybe(e,n){var i=needFinish(n);if(i){!function prefinish(e,n){if(!n.prefinished&&!n.finalCalled)if("function"==typeof e._final){n.pendingcb++;n.finalCalled=!0;p.nextTick(callFinal,e,n)}else{n.prefinished=!0;e.emit("prefinish")}}(e,n);if(0===n.pendingcb){n.finished=!0;e.emit("finish")}}return i}Object.defineProperty(Writable.prototype,"destroyed",{get:function get(){return void 0!==this._writableState&&this._writableState.destroyed},set:function set(e){this._writableState&&(this._writableState.destroyed=e)}});Writable.prototype.destroy=B.destroy;Writable.prototype._undestroy=B.undestroy;Writable.prototype._destroy=function(e,n){this.end();n(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":230,"./internal/streams/destroy":236,"./internal/streams/stream":237,_process:228,"core-util-is":209,inherits:212,"process-nextick-args":227,"safe-buffer":242,timers:245,"util-deprecate":246}],235:[function(e,n,i){var u=e("safe-buffer").Buffer,d=e("util");n.localExports=function(){function BufferList(){!function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n;this.tail=n;++this.length};BufferList.prototype.unshift=function unshift(e){var n={data:e,next:this.head};0===this.length&&(this.tail=n);this.head=n;++this.length};BufferList.prototype.shift=function shift(){if(0!==this.length){var e=this.head.data;1===this.length?this.head=this.tail=null:this.head=this.head.next;--this.length;return e}};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(0===this.length)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=e+n.data;return i};BufferList.prototype.concat=function concat(e){if(0===this.length)return u.alloc(0);if(1===this.length)return this.head.data;for(var n,i,d,p=u.allocUnsafe(e>>>0),_=this.head,y=0;_;){n=_.data,i=p,d=y,n.copy(i,d);y+=_.data.length;_=_.next}return p};return BufferList}();d&&d.inspect&&d.inspect.custom&&(n.localExports.prototype[d.inspect.custom]=function(){var e=d.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":242,util:148}],236:[function(e,n,i){var u=e("process-nextick-args");function emitErrorNT(e,n){e.emit("error",n)}n.localExports={destroy:function destroy(e,n){var i=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;if(d||p){n?n(e):!e||this._writableState&&this._writableState.errorEmitted||u.nextTick(emitErrorNT,this,e);return this}this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(e||null,(function(e){if(!n&&e){u.nextTick(emitErrorNT,i,e);i._writableState&&(i._writableState.errorEmitted=!0)}else n&&n(e)}));return this},undestroy:function undestroy(){if(this._readableState){this._readableState.destroyed=!1;this._readableState.reading=!1;this._readableState.ended=!1;this._readableState.endEmitted=!1}if(this._writableState){this._writableState.destroyed=!1;this._writableState.ended=!1;this._writableState.ending=!1;this._writableState.finished=!1;this._writableState.errorEmitted=!1}}}},{"process-nextick-args":227}],237:[function(e,n,i){n.localExports=e("events").EventEmitter},{events:210}],238:[function(e,n,i){n.localExports=e("./readable").PassThrough},{"./readable":239}],239:[function(e,n,i){(i=n.localExports=e("./lib/_stream_readable.js")).Stream=i;i.Readable=i;i.Writable=e("./lib/_stream_writable.js");i.Duplex=e("./lib/_stream_duplex.js");i.Transform=e("./lib/_stream_transform.js");i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":230,"./lib/_stream_passthrough.js":231,"./lib/_stream_readable.js":232,"./lib/_stream_transform.js":233,"./lib/_stream_writable.js":234}],240:[function(e,n,i){n.localExports=e("./readable").Transform},{"./readable":239}],241:[function(e,n,i){n.localExports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":234}],242:[function(e,n,i){var u=e("buffer"),d=u.Buffer;function copyProps(e,n){for(var i in e)n[i]=e[i]}if(d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow)n.localExports=u;else{copyProps(u,i);i.Buffer=SafeBuffer}function SafeBuffer(e,n,i){return d(e,n,i)}copyProps(d,SafeBuffer);SafeBuffer.from=function(e,n,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return d(e,n,i)};SafeBuffer.alloc=function(e,n,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var u=d(e);void 0!==n?"string"==typeof i?u.fill(n,i):u.fill(n):u.fill(0);return u};SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return d(e)};SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return u.SlowBuffer(e)}},{buffer:152}],243:[function(e,n,i){n.localExports=Stream;var u=e("events").EventEmitter;e("inherits")(Stream,u);Stream.Readable=e("readable-stream/readable.js");Stream.Writable=e("readable-stream/writable.js");Stream.Duplex=e("readable-stream/duplex.js");Stream.Transform=e("readable-stream/transform.js");Stream.PassThrough=e("readable-stream/passthrough.js");Stream.Stream=Stream;function Stream(){u.call(this)}Stream.prototype.pipe=function(e,n){var i=this;function ondata(n){e.writable&&!1===e.write(n)&&i.pause&&i.pause()}i.on("data",ondata);function ondrain(){i.readable&&i.resume&&i.resume()}e.on("drain",ondrain);if(!(e._isStdio||n&&!1===n.end)){i.on("end",onend);i.on("close",onclose)}var d=!1;function onend(){if(!d){d=!0;e.end()}}function onclose(){if(!d){d=!0;"function"==typeof e.destroy&&e.destroy()}}function onerror(e){cleanup();if(0===u.listenerCount(this,"error"))throw e}i.on("error",onerror);e.on("error",onerror);function cleanup(){i.removeListener("data",ondata);e.removeListener("drain",ondrain);i.removeListener("end",onend);i.removeListener("close",onclose);i.removeListener("error",onerror);e.removeListener("error",onerror);i.removeListener("end",cleanup);i.removeListener("close",cleanup);e.removeListener("close",cleanup)}i.on("end",cleanup);i.on("close",cleanup);e.on("close",cleanup);e.emit("pipe",i);return e}},{events:210,inherits:212,"readable-stream/duplex.js":229,"readable-stream/passthrough.js":238,"readable-stream/readable.js":239,"readable-stream/transform.js":240,"readable-stream/writable.js":241}],244:[function(e,n,i){var u=e("safe-buffer").Buffer,d=u.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};i.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=function normalizeEncoding(e){var n=function _normalizeEncoding(e){if(!e)return"utf8";for(var n;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(n)return;e=(""+e).toLowerCase();n=!0}}(e);if("string"!=typeof n&&(u.isEncoding===d||!d(e)))throw new Error("Unknown encoding: "+e);return n||e}(e);var n;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;n=4;break;case"utf8":this.fillLast=utf8FillLast;n=4;break;case"base64":this.text=base64Text;this.end=base64End;n=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=u.allocUnsafe(n)}StringDecoder.prototype.write=function(e){if(0===e.length)return"";var n,i;if(this.lastNeed){if(void 0===(n=this.fillLast(e)))return"";i=this.lastNeed;this.lastNeed=0}else i=0;return i<e.length?n?n+this.text(e,i):this.text(e,i):n||""};StringDecoder.prototype.end=function utf8End(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+"�":n};StringDecoder.prototype.text=function utf8Text(e,n){var i=function utf8CheckIncomplete(e,n,i){var u=n.length-1;if(u<i)return 0;var d=utf8CheckByte(n[u]);if(d>=0){d>0&&(e.lastNeed=d-1);return d}if(--u<i||-2===d)return 0;if((d=utf8CheckByte(n[u]))>=0){d>0&&(e.lastNeed=d-2);return d}if(--u<i||-2===d)return 0;if((d=utf8CheckByte(n[u]))>=0){d>0&&(2===d?d=0:e.lastNeed=d-3);return d}return 0}(this,e,n);if(!this.lastNeed)return e.toString("utf8",n);this.lastTotal=i;var u=e.length-(i-this.lastNeed);e.copy(this.lastChar,0,u);return e.toString("utf8",n,u)};StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function utf8FillLast(e){var n=this.lastTotal-this.lastNeed,i=function utf8CheckExtraBytes(e,n,i){if(128!=(192&n[0])){e.lastNeed=0;return"�"}if(e.lastNeed>1&&n.length>1){if(128!=(192&n[1])){e.lastNeed=1;return"�"}if(e.lastNeed>2&&n.length>2&&128!=(192&n[2])){e.lastNeed=2;return"�"}}}(this,e);if(void 0!==i)return i;if(this.lastNeed<=e.length){e.copy(this.lastChar,n,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,n,0,e.length);this.lastNeed-=e.length}function utf16Text(e,n){if((e.length-n)%2==0){var i=e.toString("utf16le",n);if(i){var u=i.charCodeAt(i.length-1);if(u>=55296&&u<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return i.slice(0,-1)}}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",n,e.length-1)}function utf16End(e){var n=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,i)}return n}function base64Text(e,n){var i=(e.length-n)%3;if(0===i)return e.toString("base64",n);this.lastNeed=3-i;this.lastTotal=3;if(1===i)this.lastChar[0]=e[e.length-1];else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",n,e.length-i)}function base64End(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},{"safe-buffer":242}],245:[function(e,n,i){(function(n,u){(function(){var d=e("process/browser.js").nextTick,p=Function.prototype.apply,_=Array.prototype.slice,y={},b=0;i.setTimeout=function(){return new Timeout(p.call(setTimeout,window,arguments),clearTimeout)};i.setInterval=function(){return new Timeout(p.call(setInterval,window,arguments),clearInterval)};i.clearTimeout=i.clearInterval=function(e){e.close()};function Timeout(e,n){this._id=e;this._clearFn=n}Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(window,this._id)};i.enroll=function(e,n){clearTimeout(e._idleTimeoutId);e._idleTimeout=n};i.unenroll=function(e){clearTimeout(e._idleTimeoutId);e._idleTimeout=-1};i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var n=e._idleTimeout;n>=0&&(e._idleTimeoutId=setTimeout((function onTimeout(){e._onTimeout&&e._onTimeout()}),n))};i.setImmediate="function"==typeof n?n:function(e){var n=b++,u=!(arguments.length<2)&&_.call(arguments,1);y[n]=!0;d((function onNextTick(){if(y[n]){u?e.apply(null,u):e.call(null);i.clearImmediate(n)}}));return n};i.clearImmediate="function"==typeof u?u:function(e){delete y[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":228,timers:245}],246:[function(e,n,i){(function(e){(function(){n.localExports=function deprecate(e,n){if(config("noDeprecation"))return e;var i=!1;return function deprecated(){if(!i){if(config("throwDeprecation"))throw new Error(n);config("traceDeprecation")?console.trace(n):console.warn(n);i=!0}return e.apply(this,arguments)}};function config(n){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[n];return null!=i&&"true"===String(i).toLowerCase()}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],247:[function(e,n,i){arguments[4][144][0].apply(i,arguments)},{dup:144}],248:[function(e,n,i){arguments[4][145][0].apply(i,arguments)},{dup:145}],249:[function(e,n,i){arguments[4][146][0].apply(i,arguments)},{"./support/isBuffer":248,_process:228,dup:146,inherits:247}],250:[function(e,n,i){(function(){var n,u,d,p;i.EncodeStream=e("./src/EncodeStream");i.DecodeStream=e("./src/DecodeStream");i.Array=e("./src/Array");i.LazyArray=e("./src/LazyArray");i.Bitfield=e("./src/Bitfield");i.Boolean=e("./src/Boolean");i.Buffer=e("./src/Buffer");i.Enum=e("./src/Enum");i.Optional=e("./src/Optional");i.Reserved=e("./src/Reserved");i.String=e("./src/String");i.Struct=e("./src/Struct");i.VersionedStruct=e("./src/VersionedStruct");d=e("./src/Number");for(n in d){u=d[n];i[n]=u}p=e("./src/Pointer");for(n in p){u=p[n];i[n]=u}}).call(this)},{"./src/Array":251,"./src/Bitfield":252,"./src/Boolean":253,"./src/Buffer":254,"./src/DecodeStream":255,"./src/EncodeStream":256,"./src/Enum":257,"./src/LazyArray":258,"./src/Number":259,"./src/Optional":260,"./src/Pointer":261,"./src/Reserved":262,"./src/String":263,"./src/Struct":264,"./src/VersionedStruct":265}],251:[function(e,n,i){(function(){var i,u,d;u=e("./Number").Number;d=e("./utils");i=function(){function ArrayT(e,n,i){this.type=e;this.length=n;this.lengthType=null!=i?i:"count"}ArrayT.prototype.decode=function(e,n){var i,p,_,y,b,w;_=e.pos;y=[];i=n;null!=this.length&&(p=d.resolveLength(this.length,e,n));if(this.length instanceof u){Object.defineProperties(y,{parent:{value:n},_startOffset:{value:_},_currentOffset:{value:0,writable:!0},_length:{value:p}});i=y}if(null==p||"bytes"===this.lengthType){b=null!=p?e.pos+p:(null!=n?n._length:void 0)?n._startOffset+n._length:e.length;for(;e.pos<b;)y.push(this.type.decode(e,i))}else for(w=0;w<p;w+=1)y.push(this.type.decode(e,i));return y};ArrayT.prototype.size=function(e,n){var i,p,_,y;if(!e)return this.type.size(null,n)*d.resolveLength(this.length,null,n);p=0;if(this.length instanceof u){p+=this.length.size();n={parent:n}}for(_=0,y=e.length;_<y;_++){i=e[_];p+=this.type.size(i,n)}return p};ArrayT.prototype.encode=function(e,n,i){var d,p,_,y,b,w;d=i;if(this.length instanceof u){(d={pointers:[],startOffset:e.pos,parent:i}).pointerOffset=e.pos+this.size(n,d);this.length.encode(e,n.length)}for(b=0,w=n.length;b<w;b++){_=n[b];this.type.encode(e,_,d)}if(this.length instanceof u){p=0;for(;p<d.pointers.length;)(y=d.pointers[p++]).type.encode(e,y.val)}};return ArrayT}();n.localExports=i}).call(this)},{"./Number":259,"./utils":266}],252:[function(e,n,i){(function(){var e;e=function(){function Bitfield(e,n){this.type=e;this.flags=null!=n?n:[]}Bitfield.prototype.decode=function(e){var n,i,u,d,p,_,y;d=this.type.decode(e);u={};for(i=p=0,_=(y=this.flags).length;p<_;i=++p)null!=(n=y[i])&&(u[n]=!!(d&1<<i));return u};Bitfield.prototype.size=function(){return this.type.size()};Bitfield.prototype.encode=function(e,n){var i,u,d,p,_,y;d=0;for(u=p=0,_=(y=this.flags).length;p<_;u=++p)null!=(i=y[u])&&n[i]&&(d|=1<<u);return this.type.encode(e,d)};return Bitfield}();n.localExports=e}).call(this)},{}],253:[function(e,n,i){(function(){var e;e=function(){function BooleanT(e){this.type=e}BooleanT.prototype.decode=function(e,n){return!!this.type.decode(e,n)};BooleanT.prototype.size=function(e,n){return this.type.size(e,n)};BooleanT.prototype.encode=function(e,n,i){return this.type.encode(e,+n,i)};return BooleanT}();n.localExports=e}).call(this)},{}],254:[function(e,n,i){(function(){var i,u,d;d=e("./utils");u=e("./Number").Number;i=function(){function BufferT(e){this.length=e}BufferT.prototype.decode=function(e,n){var i;i=d.resolveLength(this.length,e,n);return e.readBuffer(i)};BufferT.prototype.size=function(e,n){return e?e.length:d.resolveLength(this.length,null,n)};BufferT.prototype.encode=function(e,n,i){this.length instanceof u&&this.length.encode(e,n.length);return e.writeBuffer(n)};return BufferT}();n.localExports=i}).call(this)},{"./Number":259,"./utils":266}],255:[function(e,n,i){(function(i){(function(){(function(){var u,d;try{d=e("iconv-lite")}catch(e){}u=function(){var e;function DecodeStream(e){this.buffer=e;this.pos=0;this.length=this.buffer.length}DecodeStream.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(e in i.prototype)"read"===e.slice(0,4)&&function(e){var n;n=DecodeStream.TYPES[e.replace(/read|[BL]E/g,"")];DecodeStream.prototype[e]=function(){var i;i=this.buffer[e](this.pos);this.pos+=n;return i}}(e);DecodeStream.prototype.readString=function(e,n){var u,p,_,y,b;null==n&&(n="ascii");switch(n){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.buffer.toString(n,this.pos,this.pos+=e);case"utf16be":for(_=y=0,b=(u=new i(this.readBuffer(e))).length-1;y<b;_=y+=2){p=u[_];u[_]=u[_+1];u[_+1]=p}return u.toString("utf16le");default:u=this.readBuffer(e);if(d)try{return d.decode(u,n)}catch(e){}return u}};DecodeStream.prototype.readBuffer=function(e){return this.buffer.slice(this.pos,this.pos+=e)};DecodeStream.prototype.readUInt24BE=function(){return(this.readUInt16BE()<<8)+this.readUInt8()};DecodeStream.prototype.readUInt24LE=function(){return this.readUInt16LE()+(this.readUInt8()<<16)};DecodeStream.prototype.readInt24BE=function(){return(this.readInt16BE()<<8)+this.readUInt8()};DecodeStream.prototype.readInt24LE=function(){return this.readUInt16LE()+(this.readInt8()<<16)};return DecodeStream}();n.localExports=u}).call(this)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:152,"iconv-lite":151}],256:[function(e,n,i){(function(i){(function(){(function(){var u,d,p,_,y={}.hasOwnProperty;_=e("stream");u=e("./DecodeStream");try{p=e("iconv-lite")}catch(e){}d=function(e){var n;!function __extends(e,n){for(var i in n)y.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(EncodeStream,e);function EncodeStream(e){null==e&&(e=65536);EncodeStream.__super__.constructor.apply(this,arguments);this.buffer=new i(e);this.bufferOffset=0;this.pos=0}for(n in i.prototype)"write"===n.slice(0,5)&&function(e){var n;n=+u.TYPES[e.replace(/write|[BL]E/g,"")];EncodeStream.prototype[e]=function(i){this.ensure(n);this.buffer[e](i,this.bufferOffset);this.bufferOffset+=n;return this.pos+=n}}(n);EncodeStream.prototype._read=function(){};EncodeStream.prototype.ensure=function(e){if(this.bufferOffset+e>this.buffer.length)return this.flush()};EncodeStream.prototype.flush=function(){if(this.bufferOffset>0){this.push(new i(this.buffer.slice(0,this.bufferOffset)));return this.bufferOffset=0}};EncodeStream.prototype.writeBuffer=function(e){this.flush();this.push(e);return this.pos+=e.length};EncodeStream.prototype.writeString=function(e,n){var u,d,_,y,b;null==n&&(n="ascii");switch(n){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(new i(e,n));case"utf16be":for(_=y=0,b=(u=new i(e,"utf16le")).length-1;y<b;_=y+=2){d=u[_];u[_]=u[_+1];u[_+1]=d}return this.writeBuffer(u);default:if(p)return this.writeBuffer(p.encode(e,n));throw new Error("Install iconv-lite to enable additional string encodings.")}};EncodeStream.prototype.writeUInt24BE=function(e){this.ensure(3);this.buffer[this.bufferOffset++]=e>>>16&255;this.buffer[this.bufferOffset++]=e>>>8&255;this.buffer[this.bufferOffset++]=255&e;return this.pos+=3};EncodeStream.prototype.writeUInt24LE=function(e){this.ensure(3);this.buffer[this.bufferOffset++]=255&e;this.buffer[this.bufferOffset++]=e>>>8&255;this.buffer[this.bufferOffset++]=e>>>16&255;return this.pos+=3};EncodeStream.prototype.writeInt24BE=function(e){return e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)};EncodeStream.prototype.writeInt24LE=function(e){return e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)};EncodeStream.prototype.fill=function(e,n){var u;if(n<this.buffer.length){this.ensure(n);this.buffer.fill(e,this.bufferOffset,this.bufferOffset+n);this.bufferOffset+=n;return this.pos+=n}(u=new i(n)).fill(e);return this.writeBuffer(u)};EncodeStream.prototype.end=function(){this.flush();return this.push(null)};return EncodeStream}(_.Readable);n.localExports=d}).call(this)}).call(this)}).call(this,e("buffer").Buffer)},{"./DecodeStream":255,buffer:152,"iconv-lite":151,stream:243}],257:[function(e,n,i){(function(){var e;e=function(){function Enum(e,n){this.type=e;this.options=null!=n?n:[]}Enum.prototype.decode=function(e){var n;n=this.type.decode(e);return this.options[n]||n};Enum.prototype.size=function(){return this.type.size()};Enum.prototype.encode=function(e,n){var i;if(-1===(i=this.options.indexOf(n)))throw new Error("Unknown option in enum: "+n);return this.type.encode(e,i)};return Enum}();n.localExports=e}).call(this)},{}],258:[function(e,n,i){(function(){var i,u,d,p,_,y,b={}.hasOwnProperty;i=e("./Array");p=e("./Number").Number;y=e("./utils");_=e("util").inspect;d=function(e){!function __extends(e,n){for(var i in n)b.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(LazyArrayT,e);function LazyArrayT(){return LazyArrayT.__super__.constructor.apply(this,arguments)}LazyArrayT.prototype.decode=function(e,n){var i,d,_;d=e.pos;i=y.resolveLength(this.length,e,n);this.length instanceof p&&(n={parent:n,_startOffset:d,_currentOffset:0,_length:i});_=new u(this.type,i,e,n);e.pos+=i*this.type.size(null,n);return _};LazyArrayT.prototype.size=function(e,n){e instanceof u&&(e=e.toArray());return LazyArrayT.__super__.size.call(this,e,n)};LazyArrayT.prototype.encode=function(e,n,i){n instanceof u&&(n=n.toArray());return LazyArrayT.__super__.encode.call(this,e,n,i)};return LazyArrayT}(i);u=function(){function LazyArray(e,n,i,u){this.type=e;this.length=n;this.stream=i;this.ctx=u;this.base=this.stream.pos;this.items=[]}LazyArray.prototype.get=function(e){var n;if(!(e<0||e>=this.length)){if(null==this.items[e]){n=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*e;this.items[e]=this.type.decode(this.stream,this.ctx);this.stream.pos=n}return this.items[e]}};LazyArray.prototype.toArray=function(){var e,n,i,u;u=[];for(e=n=0,i=this.length;n<i;e=n+=1)u.push(this.get(e));return u};LazyArray.prototype.inspect=function(){return _(this.toArray())};return LazyArray}();n.localExports=d}).call(this)},{"./Array":251,"./Number":259,"./utils":266,util:249}],259:[function(e,n,i){(function(){var n,u,d,p={}.hasOwnProperty;n=e("./DecodeStream");d=function(){function NumberT(e,n){this.type=e;this.endian=null!=n?n:"BE";this.fn=this.type;"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}NumberT.prototype.size=function(){return n.TYPES[this.type]};NumberT.prototype.decode=function(e){return e["read"+this.fn]()};NumberT.prototype.encode=function(e,n){return e["write"+this.fn](n)};return NumberT}();i.Number=d;i.uint8=new d("UInt8");i.uint16be=i.uint16=new d("UInt16","BE");i.uint16le=new d("UInt16","LE");i.uint24be=i.uint24=new d("UInt24","BE");i.uint24le=new d("UInt24","LE");i.uint32be=i.uint32=new d("UInt32","BE");i.uint32le=new d("UInt32","LE");i.int8=new d("Int8");i.int16be=i.int16=new d("Int16","BE");i.int16le=new d("Int16","LE");i.int24be=i.int24=new d("Int24","BE");i.int24le=new d("Int24","LE");i.int32be=i.int32=new d("Int32","BE");i.int32le=new d("Int32","LE");i.floatbe=i.float=new d("Float","BE");i.floatle=new d("Float","LE");i.doublebe=i.double=new d("Double","BE");i.doublele=new d("Double","LE");u=function(e){!function __extends(e,n){for(var i in n)p.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(Fixed,e);function Fixed(e,n,i){null==i&&(i=e>>1);Fixed.__super__.constructor.call(this,"Int"+e,n);this._point=1<<i}Fixed.prototype.decode=function(e){return Fixed.__super__.decode.call(this,e)/this._point};Fixed.prototype.encode=function(e,n){return Fixed.__super__.encode.call(this,e,n*this._point|0)};return Fixed}(d);i.Fixed=u;i.fixed16be=i.fixed16=new u(16,"BE");i.fixed16le=new u(16,"LE");i.fixed32be=i.fixed32=new u(32,"BE");i.fixed32le=new u(32,"LE")}).call(this)},{"./DecodeStream":255}],260:[function(e,n,i){(function(){var e;e=function(){function Optional(e,n){this.type=e;this.condition=null==n||n}Optional.prototype.decode=function(e,n){var i;"function"==typeof(i=this.condition)&&(i=i.call(n,n));if(i)return this.type.decode(e,n)};Optional.prototype.size=function(e,n){var i;"function"==typeof(i=this.condition)&&(i=i.call(n,n));return i?this.type.size(e,n):0};Optional.prototype.encode=function(e,n,i){var u;"function"==typeof(u=this.condition)&&(u=u.call(i,i));if(u)return this.type.encode(e,n,i)};return Optional}();n.localExports=e}).call(this)},{}],261:[function(e,n,i){(function(){var n,u,d;d=e("./utils");n=function(){function Pointer(e,n,i){var u,d,p,_;this.offsetType=e;this.type=n;this.options=null!=i?i:{};"void"===this.type&&(this.type=null);null==(u=this.options).type&&(u.type="local");null==(d=this.options).allowNull&&(d.allowNull=!0);null==(p=this.options).nullValue&&(p.nullValue=0);null==(_=this.options).lazy&&(_.lazy=!1);if(this.options.relativeTo&&"function"!=typeof this.options.relativeTo)throw new Error("The relativeTo option must be a function.")}Pointer.prototype.decode=function(e,n){var i,u,p,_,y,b,w;if((p=this.offsetType.decode(e,n))===this.options.nullValue&&this.options.allowNull)return null;y=function(){switch(this.options.type){case"local":return n._startOffset;case"immediate":return e.pos-this.offsetType.size();case"parent":return n.parent._startOffset;default:i=n;for(;i.parent;)i=i.parent;return i._startOffset||0}}.call(this);this.options.relativeTo&&(y+=this.options.relativeTo(n));_=p+y;if(null!=this.type){b=null;u=(w=this,function(){var i;if(null!=b)return b;i=e.pos;e.pos=_;b=w.type.decode(e,n);e.pos=i;return b});return this.options.lazy?new d.PropertyDescriptor({get:u}):u()}return _};Pointer.prototype.size=function(e,n){var i,d;i=n;switch(this.options.type){case"local":case"immediate":break;case"parent":n=n.parent;break;default:for(;n.parent;)n=n.parent}if(null==(d=this.type)){if(!(e instanceof u))throw new Error("Must be a VoidPointer");d=e.type;e=e.value}e&&n&&(n.pointerSize+=d.size(e,i));return this.offsetType.size()};Pointer.prototype.encode=function(e,n,i){var d,p,_;d=i;if(null!=n){switch(this.options.type){case"local":p=i.startOffset;break;case"immediate":p=e.pos+this.offsetType.size(n,d);break;case"parent":p=(i=i.parent).startOffset;break;default:p=0;for(;i.parent;)i=i.parent}this.options.relativeTo&&(p+=this.options.relativeTo(d.val));this.offsetType.encode(e,i.pointerOffset-p);if(null==(_=this.type)){if(!(n instanceof u))throw new Error("Must be a VoidPointer");_=n.type;n=n.value}i.pointers.push({type:_,val:n,parent:d});return i.pointerOffset+=_.size(n,d)}this.offsetType.encode(e,this.options.nullValue)};return Pointer}();u=function u(e,n){this.type=e;this.value=n};i.Pointer=n;i.VoidPointer=u}).call(this)},{"./utils":266}],262:[function(e,n,i){(function(){var i,u;u=e("./utils");i=function(){function Reserved(e,n){this.type=e;this.count=null!=n?n:1}Reserved.prototype.decode=function(e,n){e.pos+=this.size(null,n)};Reserved.prototype.size=function(e,n){var i;i=u.resolveLength(this.count,null,n);return this.type.size()*i};Reserved.prototype.encode=function(e,n,i){return e.fill(0,this.size(n,i))};return Reserved}();n.localExports=i}).call(this)},{"./utils":266}],263:[function(e,n,i){(function(i){(function(){(function(){var u,d,p;u=e("./Number").Number;p=e("./utils");d=function(){function StringT(e,n){this.length=e;this.encoding=null!=n?n:"ascii"}StringT.prototype.decode=function(e,n){var i,u,d,_,y;d=function(){if(null!=this.length)return p.resolveLength(this.length,e,n);i=e.buffer,d=e.length,_=e.pos;for(;_<d&&0!==i[_];)++_;return _-e.pos}.call(this);"function"==typeof(u=this.encoding)&&(u=u.call(n,n)||"ascii");y=e.readString(d,u);null==this.length&&e.pos<e.length&&e.pos++;return y};StringT.prototype.size=function(e,n){var d,_;if(!e)return p.resolveLength(this.length,null,n);"function"==typeof(d=this.encoding)&&(d=d.call(null!=n?n.val:void 0,null!=n?n.val:void 0)||"ascii");"utf16be"===d&&(d="utf16le");_=i.byteLength(e,d);this.length instanceof u&&(_+=this.length.size());null==this.length&&_++;return _};StringT.prototype.encode=function(e,n,d){var p;"function"==typeof(p=this.encoding)&&(p=p.call(null!=d?d.val:void 0,null!=d?d.val:void 0)||"ascii");this.length instanceof u&&this.length.encode(e,i.byteLength(n,p));e.writeString(n,p);if(null==this.length)return e.writeUInt8(0)};return StringT}();n.localExports=d}).call(this)}).call(this)}).call(this,e("buffer").Buffer)},{"./Number":259,"./utils":266,buffer:152}],264:[function(e,n,i){(function(){var i,u;u=e("./utils");i=function(){function Struct(e){this.fields=null!=e?e:{}}Struct.prototype.decode=function(e,n,i){var u,d;null==i&&(i=0);u=this._setup(e,n,i);this._parseFields(e,u,this.fields);null!=(d=this.process)&&d.call(u,e);return u};Struct.prototype._setup=function(e,n,i){var u;u={};Object.defineProperties(u,{parent:{value:n},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:i}});return u};Struct.prototype._parseFields=function(e,n,i){var d,p,_;for(d in i){void 0!==(_="function"==typeof(p=i[d])?p.call(n,n):p.decode(e,n))&&(_ instanceof u.PropertyDescriptor?Object.defineProperty(n,d,_):n[d]=_);n._currentOffset=e.pos-n._startOffset}};Struct.prototype.size=function(e,n,i){var u,d,p,_,y;null==e&&(e={});null==i&&(i=!0);u={parent:n,val:e,pointerSize:0};p=0;y=this.fields;for(d in y)null!=(_=y[d]).size&&(p+=_.size(e[d],u));i&&(p+=u.pointerSize);return p};Struct.prototype.encode=function(e,n,i){var u,d,p,_,y,b,w;null!=(b=this.preEncode)&&b.call(n,e);(u={pointers:[],startOffset:e.pos,parent:i,val:n,pointerSize:0}).pointerOffset=e.pos+this.size(n,u,!1);w=this.fields;for(p in w)null!=(y=w[p]).encode&&y.encode(e,n[p],u);d=0;for(;d<u.pointers.length;)(_=u.pointers[d++]).type.encode(e,_.val,_.parent)};return Struct}();n.localExports=i}).call(this)},{"./utils":266}],265:[function(e,n,i){(function(){var i,u,d,p={}.hasOwnProperty;i=e("./Struct");d=e("./utils");u=function(e){!function __extends(e,n){for(var i in n)p.call(n,i)&&(e[i]=n[i]);function ctor(){this.constructor=e}ctor.prototype=n.prototype;e.prototype=new ctor;e.__super__=n.prototype}(VersionedStruct,e);function VersionedStruct(e,n){this.type=e;this.versions=null!=n?n:{};if("string"==typeof this.type){var i=this.type.split(".");this.versionGetter=function(e){return d.resolveValueByPath(e,i)}}}VersionedStruct.prototype.decode=function(e,n,i){var u,d,p;null==i&&(i=0);d=this._setup(e,n,i);"string"==typeof this.type?d.version=this.versionGetter(n):d.version=this.type.decode(e);this.versions.header&&this._parseFields(e,d,this.versions.header);if(null==(u=this.versions[d.version]))throw new Error("Unknown version "+d.version);if(u instanceof VersionedStruct)return u.decode(e,n);this._parseFields(e,d,u);null!=(p=this.process)&&p.call(d,e);return d};VersionedStruct.prototype.size=function(e,n,i){var u,d,p,_,y,b;null==i&&(i=!0);if(!e)throw new Error("Not a fixed size");u={parent:n,val:e,pointerSize:0};_=0;"string"!=typeof this.type&&(_+=this.type.size(e.version,u));if(this.versions.header){b=this.versions.header;for(p in b)null!=(y=b[p]).size&&(_+=y.size(e[p],u))}if(null==(d=this.versions[e.version]))throw new Error("Unknown version "+e.version);for(p in d)null!=(y=d[p]).size&&(_+=y.size(e[p],u));i&&(_+=u.pointerSize);return _};VersionedStruct.prototype.encode=function(e,n,i){var u,d,p,_,y,b,w,x;null!=(w=this.preEncode)&&w.call(n,e);(u={pointers:[],startOffset:e.pos,parent:i,val:n,pointerSize:0}).pointerOffset=e.pos+this.size(n,u,!1);"string"!=typeof this.type&&this.type.encode(e,n.version);if(this.versions.header){x=this.versions.header;for(_ in x)null!=(b=x[_]).encode&&b.encode(e,n[_],u)}d=this.versions[n.version];for(_ in d)null!=(b=d[_]).encode&&b.encode(e,n[_],u);p=0;for(;p<u.pointers.length;)(y=u.pointers[p++]).type.encode(e,y.val,y.parent)};return VersionedStruct}(i);n.localExports=u}).call(this)},{"./Struct":264,"./utils":266}],266:[function(e,n,i){(function(){var n,u;n=e("./Number").Number;i.resolveLength=function(e,i,u){var d;"number"==typeof e?d=e:"function"==typeof e?d=e.call(u,u):u&&"string"==typeof e?d=u[e]:i&&e instanceof n&&(d=e.decode(i));if(isNaN(d))throw new Error("Not a fixed size");return d};i.resolveValueByPath=function(e,n){"string"==typeof n&&(n=n.split("."));for(var i=0,u=n.length;null!=e&&i<u;i++)e=e[n[i]];return e};u=function u(e){var n,i;null==e&&(e={});this.enumerable=!0;this.configurable=!0;for(n in e){i=e[n];this[n]=i}};i.PropertyDescriptor=u}).call(this)},{"./Number":259}]},{},[135])(135)}));class _PdfSvgPathHelper{static offset(e,n){return _PdfSvgPathHelper._processPath(e,(e,i,u,d)=>e=_PdfSvgPathHelper._updateOffset(e,n,i,u,d))}static scale(e,n){return _PdfSvgPathHelper._processPath(e,(e,i,u,d)=>{if("a"===i||"A"===i){const n=d%7;if(n>=2&&n<=4)return e}return e*n})}static _processPath(e,n){var i=_PdfSvgPathHelper._getTokenizer(e),u="",d="",p=-1,_=-1;let y;y=i();for(;null!=y&&""!==y;){if(1===y.length&&/[a-zA-Z]/.test(y)){_++;u=y;p=-1}else{p++;const e=n(parseFloat(y),u,_,p);y=""+wijmo_1.toFixed(e,7,!1)}d+=y+" ";y=i()}return d}static _getTokenizer(e){var n=e.length,i=0;return()=>{if(i>=n)return"";for(;i<n&&(/\s/.test(e[i])||","==e[i]);)i++;for(var u=i,d=!1,p=!1,_=!1;i<n;){const n=e[i];if("-"===n||"+"===n){if((_||p||d)&&(!(i>1)||"e"!==e[i-1]&&"E"!==e[i-1]))break;_=!0}else{if("."===n){if(p)break;p=!0}else{if(!/[0-9eE]/.test(n))break;d=!0}}i++}return i!=u?e.substr(u,i-u):e.substr(i++,1)}}static _updateOffset(e,n,i,u,d){var p=0;switch(i){case"m":0===u&&(0===d?p=-1:1===d&&(p=1));break;case"L":case"M":case"C":case"S":case"Q":case"T":p=d%2==0?-1:1;break;case"A":d%7==5?p=-1:d%7==6&&(p=1);break;case"H":p=-1;break;case"V":p=1}return p?-1===p?e+n.x:e+n.y:e}}exports._PdfSvgPathHelper=_PdfSvgPathHelper;function softPdfSecurity(){return wijmo_1._getModule("wijmo.pdf.security")}exports.softPdfSecurity=softPdfSecurity;const colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};class _SafeColor extends wijmo_1.Color{constructor(e){super(e)}_parse(e){return super._parse(colorNames[e.toLowerCase()]||e)}static fromString(e){const n=new _SafeColor(null);return n._parse(wijmo_1.asString(e))?n:null}}exports._SafeColor=_SafeColor;class PdfDashPattern{constructor(e=null,n=e,i=0){this.dash=e;this.gap=n;this.phase=i}get dash(){return this._dash}set dash(e){this._dash=wijmo_1.asNumber(e,!0,!0)}get gap(){return this._gap}set gap(e){this._gap=wijmo_1.asNumber(e,!0,!0)}get phase(){return this._phase}set phase(e){this._phase=wijmo_1.asNumber(e,!1,!0)}clone(){return new PdfDashPattern(this._dash,this._gap,this._phase)}equals(e){return e instanceof PdfDashPattern&&this._dash===e.dash&&this._gap===e.gap&&this._phase===e.phase}}exports.PdfDashPattern=PdfDashPattern;class PdfDocumentEndedEventArgs extends wijmo_1.EventArgs{constructor(e){super();this._chunks=e}get blob(){this._blob||(this._blob=new Blob(this._chunks,{type:"application/pdf"}));return this._blob}get chunks(){return this._chunks}}exports.PdfDocumentEndedEventArgs=PdfDocumentEndedEventArgs;var PdfLineCapStyle,PdfLineJoinStyle,PdfFillRule,PdfPageOrientation,PdfImageHorizontalAlign,PdfImageVerticalAlign,PdfTextHorizontalAlign,PdfTextBaseline,PdfPageSize,PdfPrintPermission,PdfVersion,PdfTagType,PdfArtifactType,PdfPageEdge;!function(e){e[e.Butt=0]="Butt";e[e.Round=1]="Round";e[e.Square=2]="Square"}(PdfLineCapStyle=exports.PdfLineCapStyle||(exports.PdfLineCapStyle={}));!function(e){e[e.Miter=0]="Miter";e[e.Round=1]="Round";e[e.Bevel=2]="Bevel"}(PdfLineJoinStyle=exports.PdfLineJoinStyle||(exports.PdfLineJoinStyle={}));!function(e){e[e.NonZero=0]="NonZero";e[e.EvenOdd=1]="EvenOdd"}(PdfFillRule=exports.PdfFillRule||(exports.PdfFillRule={}));!function(e){e[e.Portrait=0]="Portrait";e[e.Landscape=1]="Landscape"}(PdfPageOrientation=exports.PdfPageOrientation||(exports.PdfPageOrientation={}));!function(e){e[e.Left=0]="Left";e[e.Center=1]="Center";e[e.Right=2]="Right"}(PdfImageHorizontalAlign=exports.PdfImageHorizontalAlign||(exports.PdfImageHorizontalAlign={}));!function(e){e[e.Top=0]="Top";e[e.Center=1]="Center";e[e.Bottom=2]="Bottom"}(PdfImageVerticalAlign=exports.PdfImageVerticalAlign||(exports.PdfImageVerticalAlign={}));!function(e){e[e.Left=0]="Left";e[e.Center=1]="Center";e[e.Right=2]="Right";e[e.Justify=3]="Justify"}(PdfTextHorizontalAlign=exports.PdfTextHorizontalAlign||(exports.PdfTextHorizontalAlign={}));!function(e){e[e.Alphabetic=0]="Alphabetic";e[e.Top=1]="Top";e[e.Hanging=2]="Hanging";e[e.Middle=3]="Middle";e[e.Ideographic=4]="Ideographic";e[e.Bottom=5]="Bottom"}(PdfTextBaseline=exports.PdfTextBaseline||(exports.PdfTextBaseline={}));!function(e){e[e.A0=0]="A0";e[e.A1=1]="A1";e[e.A2=2]="A2";e[e.A3=3]="A3";e[e.A4=4]="A4";e[e.A5=5]="A5";e[e.A6=6]="A6";e[e.A7=7]="A7";e[e.A8=8]="A8";e[e.A9=9]="A9";e[e.A10=10]="A10";e[e.B0=11]="B0";e[e.B1=12]="B1";e[e.B2=13]="B2";e[e.B3=14]="B3";e[e.B4=15]="B4";e[e.B5=16]="B5";e[e.B6=17]="B6";e[e.B7=18]="B7";e[e.B8=19]="B8";e[e.B9=20]="B9";e[e.B10=21]="B10";e[e.C0=22]="C0";e[e.C1=23]="C1";e[e.C2=24]="C2";e[e.C3=25]="C3";e[e.C4=26]="C4";e[e.C5=27]="C5";e[e.C6=28]="C6";e[e.C7=29]="C7";e[e.C8=30]="C8";e[e.C9=31]="C9";e[e.C10=32]="C10";e[e.RA0=33]="RA0";e[e.RA1=34]="RA1";e[e.RA2=35]="RA2";e[e.RA3=36]="RA3";e[e.RA4=37]="RA4";e[e.SRA0=38]="SRA0";e[e.SRA1=39]="SRA1";e[e.SRA2=40]="SRA2";e[e.SRA3=41]="SRA3";e[e.SRA4=42]="SRA4";e[e.Executive=43]="Executive";e[e.Folio=44]="Folio";e[e.Legal=45]="Legal";e[e.Letter=46]="Letter";e[e.Tabloid=47]="Tabloid"}(PdfPageSize=exports.PdfPageSize||(exports.PdfPageSize={}));!function(e){e[e.NotAllowed=0]="NotAllowed";e[e.AllowLowResolution=1]="AllowLowResolution";e[e.AllowHighResolution=2]="AllowHighResolution"}(PdfPrintPermission=exports.PdfPrintPermission||(exports.PdfPrintPermission={}));!function(e){e[e.v1_3=0]="v1_3";e[e.v1_4=1]="v1_4";e[e.v1_5=2]="v1_5";e[e.v1_6=3]="v1_6";e[e.v1_7=4]="v1_7";e[e.v1_7Ext3=5]="v1_7Ext3"}(PdfVersion=exports.PdfVersion||(exports.PdfVersion={}));!function(e){e[e.Part=0]="Part";e[e.Art=1]="Art";e[e.Sect=2]="Sect";e[e.Div=3]="Div";e[e.BlockQuote=4]="BlockQuote";e[e.Caption=5]="Caption";e[e.NonStruct=6]="NonStruct";e[e.Private=7]="Private";e[e.H=8]="H";e[e.H1=9]="H1";e[e.H2=10]="H2";e[e.H3=11]="H3";e[e.H4=12]="H4";e[e.H5=13]="H5";e[e.H6=14]="H6";e[e.P=15]="P";e[e.L=16]="L";e[e.LI=17]="LI";e[e.Lbl=18]="Lbl";e[e.LBody=19]="LBody";e[e.Table=20]="Table";e[e.TR=21]="TR";e[e.TH=22]="TH";e[e.TD=23]="TD";e[e.THead=24]="THead";e[e.TBody=25]="TBody";e[e.TFoot=26]="TFoot";e[e.Span=27]="Span";e[e.Quote=28]="Quote";e[e.BibEntry=29]="BibEntry";e[e.Code=30]="Code";e[e.Ruby=31]="Ruby";e[e.RB=32]="RB";e[e.RT=33]="RT";e[e.RP=34]="RP";e[e.Warichu=35]="Warichu";e[e.WT=36]="WT";e[e.WP=37]="WP";e[e.Figure=38]="Figure";e[e.Formula=39]="Formula"}(PdfTagType=exports.PdfTagType||(exports.PdfTagType={}));!function(e){e[e.Pagination=0]="Pagination";e[e.Layout=1]="Layout"}(PdfArtifactType=exports.PdfArtifactType||(exports.PdfArtifactType={}));!function(e){e[e.Top=0]="Top";e[e.Bottom=1]="Bottom";e[e.Left=2]="Left";e[e.Right=3]="Right"}(PdfPageEdge=exports.PdfPageEdge||(exports.PdfPageEdge={}));exports._Errors={InvalidArg:e=>`Invalid argument: "${e}".`,InvalidFormat:e=>`"${e}" is not in the correct format.`,ValueCannotBeEmpty:e=>`Value cannot be empty: "${e}".`,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.",SecurityRequirements:"The wijmo.pdf.security module must be added on page to use PDF encryption and permissions settings.",TaggedPdfRequirements:"Tagged PDF requires document version 1.4 or higher."};class PdfBrush{clone(){throw exports._Errors.AbstractMethod}equals(e){throw exports._Errors.AbstractMethod}_getBrushObject(e){throw exports._Errors.AbstractMethod}}exports.PdfBrush=PdfBrush;class PdfPen{constructor(e,n,i,u,d,p){null==e&&(e=wijmo_1.Color.fromRgba(0,0,0));null==n&&(n=1);null==i&&(i=new PdfDashPattern(null,null,0));null==u&&(u=PdfLineCapStyle.Butt);null==d&&(d=PdfLineJoinStyle.Miter);null==p&&(p=10);if(!wijmo_1.isObject(e)||e instanceof wijmo_1.Color||e instanceof PdfBrush){e instanceof PdfBrush?this.brush=e:this.color=e;this.width=n;this.cap=u;this.join=d;this.miterLimit=p;this.dashPattern=i}else{const _=e;this.color=_.color;this.brush=_.brush;this.width=null!=_.width?_.width:n;this.cap=null!=_.cap?_.cap:u;this.join=null!=_.join?_.join:d;this.miterLimit=null!=_.miterLimit?_.miterLimit:p;this.dashPattern=_.dashPattern||i}this._color=this._color||wijmo_1.Color.fromRgba(0,0,0)}get color(){return this._color}set color(e){this._color=_asColor(e)}get brush(){return this._brush}set brush(e){e=_asPdfBrush(e,!0);this._brush=e?e.clone():null}get width(){return this._width}set width(e){this._width=wijmo_1.asNumber(e,!1,!0)}get cap(){return this._cap}set cap(e){this._cap=wijmo_1.asEnum(e,PdfLineCapStyle)}get join(){return this._join}set join(e){this._join=wijmo_1.asEnum(e,PdfLineJoinStyle)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit=wijmo_1.asNumber(e,!1,!0)}get dashPattern(){return this._dashPattern}set dashPattern(e){wijmo_1.assert(e instanceof PdfDashPattern,exports._Errors.InvalidArg("value"));this._dashPattern=e.clone()}clone(){var e=new PdfPen(this._color,this._width,this._dashPattern,this._cap,this._join,this._miterLimit);e.brush=this._brush;return e}equals(e){return e instanceof PdfPen&&this._color.equals(e._color)&&(this._brush?this._brush.equals(e._brush):this._brush===e._brush)&&this._width===e._width&&this._cap===e._cap&&this._join===e._join&&this._miterLimit===e._miterLimit&&this._dashPattern.equals(e._dashPattern)}}exports.PdfPen=PdfPen;class PdfFont{constructor(e="times",n=10,i="normal",u="normal"){this.family=e;this.size=n;this.style=i;this.weight=u}get family(){return this._family}set family(e){this._family=wijmo_1.asString(e,!1)}get size(){return this._size}set size(e){this._size=wijmo_1.asNumber(e,!1,!0)}get style(){return this._style}set style(e){(e=wijmo_1.asString(e,!1))&&wijmo_1.assert(!!PdfFont._KNOWN_STYLES[(e||"").toLowerCase()],exports._Errors.InvalidArg("value"));this._style=e}get weight(){return this._weight}set weight(e){(e=wijmo_1.asString(e,!1))&&wijmo_1.assert(!!PdfFont._KNOWN_WEIGHTS[(e||"").toLowerCase()],exports._Errors.InvalidArg("value"));this._weight=e}clone(){return new PdfFont(this.family,this.size,this.style,this.weight)}equals(e){return e instanceof PdfFont&&this._family===e._family&&this._size===e._size&&this._style===e._style&&this._weight===e._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(e){this._values=[];this._keys={};if(e)for(let n=0;n<e.length;n++){const i=e[n];this._keys[i.key]=n;this._values.push({key:i.key,value:i.value})}}hasKey(e){const n=this._keys[e];return void 0!==n?this._values[n].value:null}add(e,n){if(!this.hasKey(e)){this._keys[e]=this._values.length;this._values.push({key:e,value:n});return n}return null}each(e){if(e)for(let n=0;n<this._values.length;n++){const i=this._values[n];if(!1===e(i.key,i.value))break}}eachReverse(e){if(e)for(let n=this._values.length-1;n>=0;n--){const i=this._values[n];if(!1===e(i.key,i.value))break}}}class _PdfFontRegistrar{constructor(e){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=e;this._fonts.each((e,n)=>{var facesIterator=e=>{for(var n in e)this._internalFontNames[e[n]]=1};facesIterator(n.normal)||facesIterator(n.italic)||facesIterator(n.oblique)})}registerFont(e){wijmo_1.assert(!!e,exports._Errors.ValueCannotBeEmpty("font"));wijmo_1.asString(e.name);wijmo_1.assert(e.source instanceof ArrayBuffer,exports._Errors.FontSourceMustBeArrayBuffer);e=Object.assign({},e);var n=this._normalizeFontSelector(e.name,e.style,e.weight),i=this._fonts.hasKey(n.name);i||(i=this._fonts.add(n.name,{attributes:e}));var u=i[n.style];u||(u=i[n.style]={});var d=this._makeInternalName(n);if(!u[n.weight]){this._doc.registerFont(d,e.source,e.family);this._findFontCache={};u[n.weight]=d;this._internalFontNames[d]=1}return d}findFont(e,n,i){var u=this._normalizeFontSelector(e,n,i),d=this._makeInternalName(u);if(this._findFontCache[d])return this._findFontCache[d];u.name+=","+PdfFont._DEF_FAMILY_NAME;for(let e=0,n=u.name.split(",");e<n.length;e++){const i=this._findFont(n[e].replace(/["']/g,"").trim(),u.style,u.weight);if(i){this._findFontCache[d]=i;return i}}const p=this._internalFontNames[e]?e:PdfFont._DEF_NATIVE_NAME;this._findFontCache[d]=p;return p}_normalizeFontSelector(e,n,i){return{name:(e||"").toLowerCase(),style:(n||PdfFont._DEF_FONT.style).toLowerCase(),weight:parseInt(this._weightNameToNum[i]||i)||parseInt(this._weightNameToNum[PdfFont._DEF_FONT.weight])}}_findFont(e,n,i){var u,d=[];switch(n){case"italic":d=["italic","oblique","normal"];break;case"oblique":d=["oblique","italic","normal"];break;default:d=["normal","oblique","italic"]}switch(e){case"cursive":case"fantasy":case"monospace":case"serif":case"sans-serif":this._fonts.eachReverse((n,p)=>{var _="sans-serif"===e?"sansSerif":e;if(p.attributes[_])for(let e=0;e<d.length;e++)if(u=this._findFontWeightFallback(n,d[e],i))return!1});break;default:if(this._fonts.hasKey(e))for(let n=0;n<d.length&&!u;n++)u=this._findFontWeightFallback(e,d[n],i)}return u}_findFontWeightFallback(e,n,i,u){const d=this._fonts.hasKey(e);if(d&&d[n]){const p=d[n];if(p[i])return p[i];if(!u){u=[];for(const e in p)u.push(parseFloat(e));u.sort((e,n)=>e-n)}if(i>500){let e=0;for(let n=0;n<u.length;n++){const d=u[n];if(d>i)return p[d];e=d}if(e)return p[e]}else{if(!(i<400))return 400==i?p[500]?p[500]:this._findFontWeightFallback(e,n,300,u):p[400]?p[400]:this._findFontWeightFallback(e,n,300,u);{let e=0;for(let n=u.length-1;n>=0;n--){const d=u[n];if(d<i)return p[d];e=d}if(e)return p[e]}}}return null}_makeInternalName(e){return`${e.name}-${e.style}-${e.weight}`}}exports._PdfFontRegistrar=_PdfFontRegistrar;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};function saveBlob(e,n){wijmo_1.saveFile(e,n)}exports.saveBlob=saveBlob;function ptToPx(e){return wijmo_1.asNumber(e)/.75}exports.ptToPx=ptToPx;function pxToPt(e){return.75*wijmo_1.asNumber(e)}exports.pxToPt=pxToPt;function _asColor(e,n=!0){var i;i=e?e instanceof wijmo_1.Color?n?wijmo_1.Color.fromRgba(e.r,e.g,e.b,e.a):e:_SafeColor.fromString(e):wijmo_1.Color.fromRgba(0,0,0);wijmo_1.assert(i instanceof wijmo_1.Color,exports._Errors.InvalidArg("value"));return i}exports._asColor=_asColor;function _asPdfPen(e,n=!0){(wijmo_1.isString(e)||e instanceof wijmo_1.Color)&&(e=new PdfPen(e));wijmo_1.assert(null==e&&n||e instanceof PdfPen,exports._Errors.InvalidArg("value"));return e}exports._asPdfPen=_asPdfPen;function _asPdfBrush(e,n=!0){(wijmo_1.isString(e)||e instanceof wijmo_1.Color)&&(e=new PdfSolidBrush(e));wijmo_1.assert(null==e&&n||e instanceof PdfBrush,exports._Errors.InvalidArg("value"));return e}exports._asPdfBrush=_asPdfBrush;function _asPdfFont(e,n=!0){wijmo_1.assert(null==e&&n||e instanceof PdfFont,exports._Errors.InvalidArg("value"));return e}exports._asPdfFont=_asPdfFont;function _asPt(e,n=!0,i=0){var u=!e&&0!==e;wijmo_1.assert(!u||n,exports._Errors.ValueCannotBeEmpty("value"));if(u)return i;if(wijmo_1.isNumber(e)){if(e==e)return e}else if(wijmo_1.isString(e)){if(_FontSizePt[e])return _FontSizePt[e];const n=parseFloat(e);if(n==n){if(e.match(/(px)$/i))return pxToPt(n);if(e==n||e.match(/(pt)$/i))return n}}wijmo_1.assert(!1,exports._Errors.InvalidFormat(e))}exports._asPt=_asPt;function _formatMacros(e,n){var i={},u=0;return e=(e=e.replace(/&&/g,(e,n,d)=>{i[n-2*u+u]=!0;u++;return"&"})).replace(/&\[(\S+?)\]/g,(e,u,d,p)=>{var _=n[u];return _&&!i[d]?_:e})}exports._formatMacros=_formatMacros;function _compare(e,n){if(wijmo_1.isObject(e)&&wijmo_1.isObject(n)){for(var i in e){if(i&&"_"===i[0])continue;const u=e[i];if(!(u&&wijmo_1.isFunction(u.equals)?u.equals(n[i]):_compare(u,n[i])))return!1}return!0}if(wijmo_1.isArray(e)&&wijmo_1.isArray(n)){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(!_compare(e[i],n[i]))return!1;return!0}return e===n}exports._compare=_compare;function _toTitleCase(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}exports._toTitleCase=_toTitleCase;var _SvgRenderMode,_SvgNumConversion,_SvgLengthContext,_SvgAttrType,_XhrOverrideMimeTypeSupported=!!(new XMLHttpRequest).overrideMimeType;class _XhrHelper{static arrayBufferAsync(e,n,i){_XhrHelper._getData(e,{method:"GET",responseType:"arraybuffer",async:!0},n,i)}static arrayBuffer(e,n){var i,u={method:"GET",async:!1};if(exports._IE||!_XhrOverrideMimeTypeSupported){u.responseType="arraybuffer";_XhrHelper._getData(e,u,(e,n)=>{i=n},n)}else{u.overrideMimeType="text/plain; charset=x-user-defined";_XhrHelper._getData(e,u,(e,n)=>{i=new ArrayBuffer(n.length);var u=new Uint8Array(i);for(let e=0,i=n.length;e<i;e++)u[e]=255&n.charCodeAt(e)},n)}return i}static text(e,n){var i="";_XhrHelper._getData(e,{method:"GET",async:!1},(e,n)=>{i=n},n);return i}static _getData(e,n,i,u){var d=new XMLHttpRequest;n=n||{};d.open(n.method,e,n.async,n.user,n.password);d.addEventListener("load",()=>{if(4===d.readyState){const e=d.status;e>=200&&e<300||304===e?i&&i(d,d.response):u&&u(d)}});if(n.headers)for(var p in n.headers)d.setRequestHeader(p,n.headers[p]);n.responseType&&(d.responseType=n.responseType);n.overrideMimeType&&d.overrideMimeType&&d.overrideMimeType(n.overrideMimeType);d.send(n.data)}}exports._XhrHelper=_XhrHelper;class _PdfImageHelper{static getDataUri(e){e=wijmo_1.asString(e);wijmo_1.assert(!!e,exports._Errors.EmptyUrl);if(_PdfImageHelper.DATAURI_CACHE[e])return _PdfImageHelper.DATAURI_CACHE[e];var n="";if(0===e.indexOf("data:")){if(!e.match(/^data:image\/(png|jpeg|jpg);base64,/))throw exports._Errors.InvalidImageDataUri;n=e}else{let i,u=_XhrHelper.arrayBuffer(e,e=>{i=e.statusText});if(i)throw i;try{const e=new Uint16Array(u,0,2);if(55551!==e[0]&&(20617!==e[0]||18254!==e[1]))throw"";{const i=_PdfImageHelper._toBase64(u);n=`data:${55551===e[0]?"image/jpeg":"image/png"};base64,${i}`}}catch(e){throw exports._Errors.InvalidImageFormat}}_PdfImageHelper.DATAURI_CACHE[e]=n;return n}static _toBase64(e){var n="",i=new Uint8Array(e);for(let e=0;e<i.byteLength;e++)n+=String.fromCharCode(i[e]);return("undefined"!=typeof window?window:self).btoa(n)}}_PdfImageHelper.DATAURI_CACHE={};exports._PdfImageHelper=_PdfImageHelper;class PdfPageArea{constructor(){this._ctxProps={xo:0,yo:0,lineGap:0}}get x(){this._switchCtx();var e=this._ndoc.x-this._offset.x;this._saveCtx();return e}set x(e){e=wijmo_1.asNumber(e);this._switchCtx();this._ndoc.x=e+this._offset.x;this._saveCtx()}get y(){this._switchCtx();var e=this._ndoc.y-this._offset.y;this._saveCtx();return e}set y(e){e=wijmo_1.asNumber(e);this._switchCtx();this._ndoc.y=e+this._offset.y;this._saveCtx()}get lineGap(){return this._ctxProps.lineGap}set lineGap(e){this._ctxProps.lineGap=e=wijmo_1.asNumber(e,!1,!0);if(this._ndoc){this._switchCtx();this._ndoc.lineGap(e);this._saveCtx()}}get height(){var e=this._ndoc.page;return Math.max(0,e.height-e.margins.top-e.margins.bottom)}get width(){var e=this._ndoc.page;return Math.max(e.width-e.margins.left-e.margins.right)}get _heightCtm(){return this.height/-this._ndoc._ctm[3]}get _widthCtm(){return this.width/this._ndoc._ctm[0]}get paths(){return this._graphics}get document(){return this._pdfdoc}drawText(e,n,i,u){this._assertPathStarted();if(e=wijmo_1.asString(e)){u=u||{};var d,p=this._pdfdoc,_=this._ndoc,y=u.stroke&&u.fill?2:u.stroke?1:0;!u.strike&&!u.underline||u.stroke||(y=2);this._switchCtx();try{this._drawingText=!0;1&y||p._toggleBrush(_asPdfBrush(u.brush));3&y&&p._togglePen(_asPdfPen(u.pen));p._toggleFont(_asPdfFont(u.font));const b=this._textOptionsToNative(u);d=null==n?_.textAndMeasure(e,null,null,b):_.textAndMeasure(e,wijmo_1.asNumber(n)+this._offset.x,wijmo_1.asNumber(i)+this._offset.y,b)}finally{this._drawingText=!1;this._saveCtx()}return{charCount:d.charCount||0,size:new wijmo_1.Size(d.width||0,d.height||0)}}}drawImage(e,n,i,u){this._assertPathStarted();if(!e)return this;wijmo_1.isString(e)&&(e=_PdfImageHelper.getDataUri(e));this._switchCtx();try{const d={};if(u){switch(wijmo_1.asEnum(u.align,PdfImageHorizontalAlign,!0)){case PdfImageHorizontalAlign.Center:d.align="center";break;case PdfImageHorizontalAlign.Right:d.align="right";break;default:d.align="left"}switch(wijmo_1.asEnum(u.vAlign,PdfImageVerticalAlign,!0)){case PdfImageVerticalAlign.Center:d.valign="center";break;case PdfImageVerticalAlign.Bottom:d.valign="bottom";break;default:d.valign="top"}const e=wijmo_1.asNumber(u.width,!0,!0),n=wijmo_1.asNumber(u.height,!0,!0);if(e&&n&&wijmo_1.asBoolean(u.stretchProportionally,!0))d.fit=[e,n];else{d.width=e;d.height=n}}null==n?this._ndoc.image(e,d):this._ndoc.image(e,wijmo_1.asNumber(n)+this._offset.x,wijmo_1.asNumber(i)+this._offset.y,d)}finally{this._saveCtx()}return this}drawSvg(e,n,i,u){var d,p;u=u||{};this._assertPathStarted();if(!(e=wijmo_1.asString(e)))return this;if(e.indexOf("data:image/svg")>=0)d=(p=e.substring(e.indexOf(",")+1),decodeURIComponent(Array.prototype.map.call(atob(p),e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join("")));else{let n;d=_XhrHelper.text(e,e=>{n=e.statusText});if(n)throw n}if(!d)return this;var _,y,b=wijmo_1.asNumber(u.width,!0,!0),w=wijmo_1.asNumber(u.height,!0,!0),x=new _SvgRenderer(d,this,b,w,wijmo_1.asFunction(u.urlResolver)),P=null==i,E=this.y,k=this.x,B=x.root.width.hasVal?x.root.width.val:void 0,j=x.root.height.hasVal?x.root.height.val:void 0;n=null!=n?n:this.x;i=null!=i?i:this.y;if((b||w)&&B&&j){_=b/B;y=w/j;if(b&&w){if(u.stretchProportionally){const e=Math.min(_,y);if(_===e)switch(wijmo_1.asEnum(u.vAlign,PdfImageVerticalAlign,!0)){case PdfImageVerticalAlign.Center:i+=w/2-j*_/2;break;case PdfImageVerticalAlign.Bottom:i+=w-j*_}if(y===e)switch(wijmo_1.asEnum(u.align,PdfImageHorizontalAlign,!0)){case PdfImageHorizontalAlign.Center:n+=b/2-B*y/2;break;case PdfImageHorizontalAlign.Right:n+=b-B*y}_=y=e}}else u.width?y=_:_=y}_=_||1;y=y||1;this._switchCtx();this._pdfdoc.saveState();try{this.translate(n,i);this.scale(_,y);x.render()}finally{this._pdfdoc.restoreState();this._saveCtx()}this.x=k;this.y=E;if(P){const e=null!=w?w:null!=j?j*y:void 0;this.y+=e||0}return this}lineHeight(e){this._pdfdoc._toggleFont(_asPdfFont(e));this._switchCtx();var n=this._ndoc.currentLineHeight();this._saveCtx();return n}measureText(e,n,i){var u={};if(e=wijmo_1.asString(e)){this._pdfdoc._toggleFont(_asPdfFont(n));this._switchCtx();try{u=this._ndoc.textAndMeasure(e,null,null,this._textOptionsToNative(i),!0)}finally{this._saveCtx()}}return{charCount:u.charCount||0,size:new wijmo_1.Size(u.width||0,u.height||0)}}moveDown(e=1,n){if(e=wijmo_1.asNumber(e,!1,!0)){this._pdfdoc._toggleFont(_asPdfFont(n));this._switchCtx();try{this._ndoc.moveDown(e)}finally{this._saveCtx()}}return this}moveUp(e=1,n){if(e=wijmo_1.asNumber(e,!1,!0)){this._pdfdoc._toggleFont(_asPdfFont(n));this._switchCtx();try{this._ndoc.moveUp(e)}finally{this._saveCtx()}}return this}openImage(e){if(!(e=wijmo_1.asString(e)))return null;e=_PdfImageHelper.getDataUri(e);return this._ndoc.openImage(e)}scale(e,n=e,i){this._assertPathStarted();i=i||new wijmo_1.Point(0,0);var u=wijmo_1.asNumber(i.x)+this._offset.x,d=wijmo_1.asNumber(i.y)+this._offset.y;e=wijmo_1.asNumber(e,!1);n=wijmo_1.asNumber(n,!1);this._ndoc.scale(e,n,{origin:[u,d]});return this}translate(e,n){this._assertPathStarted();e=wijmo_1.asNumber(e);n=wijmo_1.asNumber(n);this._ndoc.translate(e,n);return this}transform(e,n,i,u,d,p){this._assertPathStarted();e=wijmo_1.asNumber(e);n=wijmo_1.asNumber(n);i=wijmo_1.asNumber(i);u=wijmo_1.asNumber(u);d=wijmo_1.asNumber(d);p=wijmo_1.asNumber(p);var _=this._offset.x,y=this._offset.y;this._ndoc.transform(e,n,i,u,d-e*_+_-i*y,p-n*_-u*y+y);return this}rotate(e,n){this._assertPathStarted();n=n||new wijmo_1.Point(0,0);var i=wijmo_1.asNumber(n.x)+this._offset.x,u=wijmo_1.asNumber(n.y)+this._offset.y;e=wijmo_1.asNumber(e);this._ndoc.rotate(e,{origin:[i,u]});return this}beginTagContent(e,n){const i=PdfTagType[wijmo_1.asEnum(e,PdfTagType,!1)];return this._pdfdoc._document.markStructureContent(i,this._markedContentOptionsToNative(n))}endTagContent(){this._pdfdoc._document.endMarkedContent();return this}tagContent(e,n,i){wijmo_1.assert(wijmo_1.isFunction(n),"callback must be a function.");const u=this.beginTagContent(e,i);n();this.endTagContent();return u}beginArtifact(e){this._pdfdoc._document.markContent("Artifact",this._markedContentOptionsToNative(e));return this}endArtifact(){this._pdfdoc._document.endMarkedContent();return this}artifact(e,n){wijmo_1.assert(wijmo_1.isFunction(e),"callback must be a function.");this.beginArtifact(n);e();this.endArtifact();return this}_assertPathStarted(){wijmo_1.assert(!this.paths._hasPathBuffer(),exports._Errors.PathStarted)}_initialize(e,n,i){this._pdfdoc=e;this._ndoc=e._document;this._offset=new wijmo_1.Point(n,i);this._ctxProps={xo:n,yo:i,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()}_markedContentOptionsToNative(e){const n=Object.assign({},e),i=e;if(i){null!=i.type&&(n.type=PdfArtifactType[wijmo_1.asEnum(i.type,PdfArtifactType)]);null!=i.attached&&(n.attached=i.attached.map(e=>PdfPageEdge[wijmo_1.asEnum(e,PdfPageEdge)]));if(i.bbox){wijmo_1.assert(i.bbox instanceof wijmo_1.Rect,"Rect expected.");const e=this._offset.x+i.bbox.left,u=this._offset.y+i.bbox.top;n.bbox=[e,u,e+i.bbox.width,u+i.bbox.height]}}return n}_textOptionsToNative(e){e=e||{};var n=Object.assign({},e);null!=e.align&&(n.align=(PdfTextHorizontalAlign[wijmo_1.asEnum(e.align,PdfTextHorizontalAlign)]||"").toLowerCase());null!=e.baseline&&(n.baseline=(PdfTextBaseline[wijmo_1.asEnum(e.baseline,PdfTextBaseline)]||"").toLowerCase());return n}}exports.PdfPageArea=PdfPageArea;class PdfSolidBrush extends PdfBrush{constructor(e){super();this.color=e||wijmo_1.Color.fromRgba(0,0,0)}get color(){return this._color}set color(e){this._color=_asColor(e)}clone(){return new PdfSolidBrush(this._color)}equals(e){return e instanceof PdfSolidBrush&&this._color.equals(e._color)}_getBrushObject(e){return this._color}}exports.PdfSolidBrush=PdfSolidBrush;class PdfRunningTitleDeclarativeContent{constructor(e,n,i){this.text=e||"";this.font=n||new PdfFont;this.brush=_asPdfBrush(i)||new PdfSolidBrush}get font(){return this._font}set font(e){e=_asPdfFont(e,!0);this._font=e?e.clone():e}get text(){return this._text}set text(e){this._text=wijmo_1.asString(e)}get brush(){return this._brush}set brush(e){e=_asPdfBrush(e);this._brush=e?e.clone():e}clone(){return new PdfRunningTitleDeclarativeContent(this.text,this.font,this.brush)}equals(e){return e instanceof PdfRunningTitleDeclarativeContent&&this._text===e.text&&(this._brush?this._brush.equals(e._brush):this._brush===e._brush)&&(this._font?this._font.equals(e._font):this._font===e._font)}}exports.PdfRunningTitleDeclarativeContent=PdfRunningTitleDeclarativeContent;class PdfRunningTitle extends PdfPageArea{constructor(e){super();this._height=24;this._declarative=new PdfRunningTitleDeclarativeContent;this._heightChanged=new wijmo_1.Event;wijmo_1.copy(this,e)}get declarative(){return this._declarative}set declarative(e){if(null!=e){wijmo_1.assert(e instanceof PdfRunningTitleDeclarativeContent,exports._Errors.InvalidArg("value"));e=e.clone()}this._declarative=e}get height(){return this._height}set height(e){if(e!==this._height){this._height=wijmo_1.asNumber(e,!1,!0);this._heightChanged.raise(this,wijmo_1.EventArgs.empty)}}drawText(e,n,i,u){(u=u||{}).height=1/0;return super.drawText(e,n,i,u)}}exports.PdfRunningTitle=PdfRunningTitle;class PdfGradientStop{constructor(e,n,i){this.offset=e||0;this.color=n||wijmo_1.Color.fromRgba(0,0,0);this.opacity=null==i?1:i}get offset(){return this._offset}set offset(e){this._offset=wijmo_1.clamp(wijmo_1.asNumber(e,!1,!0),0,1)}get color(){return this._color}set color(e){this._color=_asColor(e)}get opacity(){return this._opacity}set opacity(e){this._opacity=wijmo_1.clamp(wijmo_1.asNumber(e,!1,!0),0,1)}clone(){return new PdfGradientStop(this.offset,this.color,this.opacity)}equals(e){return e instanceof PdfGradientStop&&this._offset===e._offset&&this._color.equals(e._color)&&this._opacity===e._opacity}}exports.PdfGradientStop=PdfGradientStop;class PdfGradientBrush extends PdfBrush{constructor(e,n){super();this.stops=e||[];this.opacity=null==n?1:n}get opacity(){return this._opacity}set opacity(e){this._opacity=wijmo_1.clamp(wijmo_1.asNumber(e,!1,!0),0,1)}get stops(){return this._stops}set stops(e){wijmo_1.assert(wijmo_1.isArray(e),exports._Errors.InvalidArg("value"));this._stops=this._cloneStopsArray(e)}equals(e){return e instanceof PdfGradientBrush&&this._opacity===e.opacity&&_compare(this._stops,e._stops)}_cloneStopsArray(e){var n=[];for(let i=0;i<e.length;i++){const u=e[i];wijmo_1.assert(u instanceof PdfGradientStop,exports._Errors.InvalidArg(`stops[${i}]`));n.push(e[i].clone())}return n}}exports.PdfGradientBrush=PdfGradientBrush;class PdfRadialGradientBrush extends PdfGradientBrush{constructor(e,n,i,u,d,p,_,y){super(_,y);this.x1=e;this.y1=n;this.r1=i;this.x2=u;this.y2=d;this.r2=p}get x1(){return this._x1}set x1(e){this._x1=wijmo_1.asNumber(e,!1,!0)}get y1(){return this._y1}set y1(e){this._y1=wijmo_1.asNumber(e,!1,!0)}set r1(e){this._r1=wijmo_1.asNumber(e,!1,!0)}get r1(){return this._r1}get x2(){return this._x2}set x2(e){this._x2=wijmo_1.asNumber(e,!1,!0)}get y2(){return this._y2}set y2(e){this._y2=wijmo_1.asNumber(e,!1,!0)}get r2(){return this._r2}set r2(e){this._r2=wijmo_1.asNumber(e,!1,!0)}clone(){return new PdfRadialGradientBrush(this._x1,this._y1,this._r1,this._x2,this._y2,this._r2,this.stops,this.opacity)}equals(e){return e instanceof PdfRadialGradientBrush&&this._x1===e._x1&&this._y1===e._y1&&this._r1===e._r1&&this._x2===e._x2&&this._y2===e._y2&&this._r2===e._r2&&super.equals(e)}_getBrushObject(e){var n=e.document._document.radialGradient(this._x1+e._offset.x,this._y2+e._offset.y,this._r1,this._x2+e._offset.x,this._y2+e._offset.y,this._r2),i=this.stops;for(let e=0;e<i.length;e++){const u=i[e];u&&n.stop(u.offset,[u.color.r,u.color.g,u.color.b],u.color.a)}return n}}exports.PdfRadialGradientBrush=PdfRadialGradientBrush;class PdfLinearGradientBrush extends PdfGradientBrush{constructor(e,n,i,u,d,p){super(d,p);this.x1=e;this.y1=n;this.x2=i;this.y2=u}get x1(){return this._x1}set x1(e){this._x1=wijmo_1.asNumber(e,!1,!0)}get y1(){return this._y1}set y1(e){this._y1=wijmo_1.asNumber(e,!1,!0)}get x2(){return this._x2}set x2(e){this._x2=wijmo_1.asNumber(e,!1,!0)}get y2(){return this._y2}set y2(e){this._y2=wijmo_1.asNumber(e,!1,!0)}clone(){return new PdfLinearGradientBrush(this._x1,this._y1,this._x2,this._y2,this.stops,this.opacity)}equals(e){return e instanceof PdfLinearGradientBrush&&this._x1===e._x1&&this._y1===e._y1&&this._x2===e._x2&&this._y2===e._y2&&super.equals(e)}_getBrushObject(e){var n=e.document._document.linearGradient(this._x1+e._offset.x,this._y1+e._offset.y,this._x2+e._offset.x,this._y2+e._offset.y),i=this.stops;for(let e=0;e<i.length;e++){const u=i[e];u&&n.stop(u.offset,[u.color.r,u.color.g,u.color.b],u.color.a)}return n}}exports.PdfLinearGradientBrush=PdfLinearGradientBrush;class PdfDocument extends PdfPageArea{constructor(e){super();this._docInitialized=!1;this._compress=!0;this._bufferPages=!0;this._chunks=[];this._pageIndex=-1;this._version=PdfVersion.v1_3;this._permissions={annotating:!1,contentAccessibility:!1,copying:!1,documentAssembly:!1,fillingForms:!1,modifying:!1,printing:PdfPrintPermission.NotAllowed};this._tagged=!1;this._displayTitle=!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(e,n){if("size"===e){this.size=n;return!0}}};this.ended=new wijmo_1.Event;this.pageAdded=new wijmo_1.Event;this._runtimeProperties=["pageIndex","x","y"];wijmo_1.copy(this,e);const n=softPdfSecurity();if((this._ownerPassword||this._userPassword)&&!n)throw exports._Errors.SecurityRequirements;if(this._tagged&&this._version<PdfVersion.v1_4)throw exports._Errors.TaggedPdfRequirements;var pre=e=>{this._doc=e;this._fontReg=new _PdfFontRegistrar(this._doc)},post=()=>{this.setPen(this._currentGS[this._pageIndex].pen);this.setBrush(this._currentGS[this._pageIndex].brush);this._curFont=PdfFont._DEF_PDFKIT_FONT;this.setFont(new PdfFont)},i=!1,u=this.permissions,d={compress:this._compress,bufferPages:this._bufferPages,pdfVersion:["1.3","1.4","1.5","1.6","1.7","1.7ext3"][this._version],ownerPassword:this._ownerPassword||void 0,security:n?n._PDFSecurity:null,permissions:{annotating:wijmo_1.asBoolean(u.annotating,!0),contentAccessibility:wijmo_1.asBoolean(u.contentAccessibility,!0),copying:wijmo_1.asBoolean(u.copying,!0),documentAssembly:wijmo_1.asBoolean(u.documentAssembly,!0),fillingForms:wijmo_1.asBoolean(u.fillingForms,!0),modifying:wijmo_1.asBoolean(u.modifying,!0),printing:(()=>{const e=wijmo_1.asEnum(u.printing,PdfPrintPermission,!0);return e==PdfPrintPermission.AllowHighResolution?"highResolution":e==PdfPrintPermission.AllowLowResolution?"lowResolution":void 0})()},userPassword:this._userPassword||void 0,tagged:this._tagged,displayTitle:this._displayTitle,lang:null==this._lang?void 0:wijmo_1.asString(this._lang),pageAdding:this._ehOnPageAdding=(e,n)=>{if(!this._docInitialized){i=!0;pre(e)}this._onPageAdding(e,n)},pageAdded:this._ehOnPageAdded=e=>{var n=this._isDrawingText()?this._currentGS[this._pageIndex].brush:new PdfSolidBrush;this._currentGS[++this._pageIndex]={pen:new PdfPen,brush:n};this._docInitialized||post();this._onPageAdded(e)},info:{}};this._setDocInfo(d.info,this.info);this._doc=new PDFDocument(d);if(!i){pre(this._doc);post()}this._ehOnDocData=e=>{this._onDocData(e)};this._ehOnDocEnding=()=>{this._onDocEnding()};this._ehOnDocEnded=()=>{this._onDocEnded()};this._doc.on("data",this._ehOnDocData).on("ending",this._ehOnDocEnding).on("end",this._ehOnDocEnded);this._docInitialized=!0}get compress(){return this._compress}get bufferPages(){return this._bufferPages}get displayTitle(){return this._displayTitle}get footer(){this._footer||(this._footer=new PdfRunningTitle({_heightChanged:()=>{this._docInitialized&&this._resetAreasOffset(this._doc)}}));return this._footer}get header(){this._header||(this._header=new PdfRunningTitle({_heightChanged:()=>{this._docInitialized&&this._resetAreasOffset(this._doc)}}));return this._header}get lang(){return this._lang}get ownerPassword(){return this._ownerPassword}get pageIndex(){return this._pageIndex}set pageIndex(e){e=wijmo_1.asNumber(e,!1,!0);if(this._pageIndex!==e){this._doc.switchToPage(e);this._pageIndex=e}}get permissions(){return this._permissions}get tagged(){return this._tagged}get userPassword(){return this._userPassword}get version(){return this._version}onEnded(e){this.ended&&this.ended.raise(this,e)}onPageAdded(e){this.pageAdded&&this.pageAdded.raise(this,e)}dispose(){if(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 e=this._doc.page;return{layout:"landscape"===e.layout?PdfPageOrientation.Landscape:PdfPageOrientation.Portrait,size:wijmo_1.isArray(e.size)?new wijmo_1.Size(e.size[0],e.size[1]):PdfPageSize[e.size.match(/\d+/)?e.size:_toTitleCase(e.size)],margins:{left:e.margins.left,right:e.margins.right,top:e.margins.top-this.header.height,bottom:e.margins.bottom-this.footer.height}}}addPage(e){var n=this._pageSettingsToNative(e||this.pageSettings);this._doc.addPage(n);return this}bufferedPageRange(){return this._doc.bufferedPageRange()}end(){this._doc.end()}setBrush(e){this._assertAreasPathStarted();this._defBrush=_asPdfBrush(e,!1).clone();this._setCurBrush(this._defBrush);return this}setPen(e){this._assertAreasPathStarted();this._defPen=_asPdfPen(e,!1).clone();this._setCurPen(this._defPen);return this}setFont(e){this._defFont=_asPdfFont(e,!1).clone();this._setCurFont(this._defFont);return this}_getFont(){return this._curFont}registerFont(e){wijmo_1.assert(!!e,exports._Errors.ValueCannotBeEmpty("font"));var n;if(wijmo_1.isString(e.source)){let i;n=_XhrHelper.arrayBuffer(e.source,e=>{i=e.statusText||e.status});if(null!=i)throw i}else{if(!(e.source instanceof ArrayBuffer))throw exports._Errors.FontSourceMustBeStringArrayBuffer;n=e.source}(e=Object.assign({},e)).source=n;this._fontReg.registerFont(e);return this}registerFontAsync(e,n){wijmo_1.assert("string"==typeof e.source,exports._Errors.FontSourceMustBeString);wijmo_1.asFunction(n,!1);_XhrHelper.arrayBufferAsync(e.source,(i,u)=>{var d=Object.assign({},e);d.source=u;this._fontReg.registerFont(d);n(e)})}saveState(){this._assertAreasPathStarted();this._graphicsStack.push(this._currentGS[this._pageIndex].pen.clone(),this._defPen.clone(),this._currentGS[this._pageIndex].brush.clone(),this._defBrush.clone());this._doc.save();return this}restoreState(){this._assertAreasPathStarted();if(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._doc.restore();return this}tag(e,n,i){const u=PdfTagType[wijmo_1.asEnum(e,PdfTagType,!1)];return this._doc.struct(u,i||void 0,n)}addTag(e){this._doc.addStructure(e);return this}_copy(e,n){if("compress"===e){this._compress=wijmo_1.asBoolean(n);return!0}if("bufferPages"===e){this._bufferPages=wijmo_1.asBoolean(n);return!0}if("ownerPassword"===e){this._ownerPassword=wijmo_1.asString(n);return!0}if("userPassword"===e){this._userPassword=wijmo_1.asString(n);return!0}if("version"===e){this._version=wijmo_1.asEnum(n,PdfVersion);return!0}if("displayTitle"===e){this._displayTitle=wijmo_1.asBoolean(n);return!0}if("lang"===e){this._lang=wijmo_1.asString(n);return!0}if("tagged"===e){this._tagged=wijmo_1.asBoolean(n);return!0}return this._runtimeProperties.indexOf(e)>=0}get _document(){return this._doc}_switchTextFlowCtx(e){this._doc.x=e.xo;this._doc.y=e.yo;this._doc.lineGap(e.lineGap)}_getTextFlowCtxState(){return{xo:this._doc.x,yo:this._doc.y,lineGap:this._doc.currentLineGap()}}_toggleBrush(e){e?this._setCurBrush(e):this._setCurBrush(this._defBrush)}_togglePen(e){e?this._setCurPen(e):this._setCurPen(this._defPen)}_toggleFont(e){e?this._setCurFont(e):this._setCurFont(this._defFont)}_onDocData(e){this._chunks.push(e)}_onDocEnding(){this._processHeadersFooters();this._setDocInfo(this._doc.info,this.info)}_setDocInfo(e,n){if(n){let i;i=n.author;i&&(e.Author=i);i=n.creationDate;i&&(e.CreationDate=i);i=n.keywords;i&&(e.Keywords=i);i=n.modDate;i&&(e.ModDate=i);i=n.subject;i&&(e.Subject=i);i=n.title;i&&(e.Title=i)}}_onDocEnded(){if(exports._IE&&this._chunks.length&&!this._chunks[0].buffer)for(let e=0;e<this._chunks.length;e++){const n=this._chunks[e],i=new Uint8Array(n.length);for(let e=0;e<n.length;e++)i[e]=n[e];this._chunks[e]=i.buffer}this.onEnded(new PdfDocumentEndedEventArgs(this._chunks));this._chunks=[]}_onPageAdding(e,n){if(this.pageSettings){const i=this._pageSettingsToNative(this.pageSettings);n.layout=e.options.layout=i.layout;n.margins=e.options.margins=i.margins;n.size=e.options.size=i.size}}_onPageAdded(e){e.page.originalMargins=Object.assign({},e.page.margins);this._resetAreasOffset(e);this.onPageAdded(wijmo_1.EventArgs.empty)}_assertAreasPathStarted(){if(this._docInitialized){this._assertPathStarted();this.header._assertPathStarted();this.footer._assertPathStarted()}}_pageSettingsToNative(e){var n={};if(e){const i=wijmo_1.asEnum(e.layout,PdfPageOrientation,!0);null!=i&&(n.layout=(PdfPageOrientation[i]||"").toLowerCase());const u=e.margins;u&&(n.margins={left:wijmo_1.asNumber(u.left,!1,!0),right:wijmo_1.asNumber(u.right,!1,!0),top:wijmo_1.asNumber(u.top,!1,!0),bottom:wijmo_1.asNumber(u.bottom,!1,!0)});let d=e.size;if(null!=d)if(d instanceof wijmo_1.Size)n.size=[wijmo_1.asNumber(d.width,!1,!0),wijmo_1.asNumber(d.height,!1,!0)];else{d=wijmo_1.asEnum(d,PdfPageSize);n.size=(PdfPageSize[d]||"").toUpperCase()}}return n}_processHeadersFooters(){var e=this.header,n=this.footer;if(e.height>0||n.height>0){const i=this._doc;wijmo_1.assert(i.options.bufferPages,exports._Errors.BufferPagesMustBeEnabled);const u=i.bufferedPageRange();for(let i=u.start;i<u.count;i++){const d={Page:i+1,Pages:u.count};this.pageIndex=i;this._renderHeaderFooter(e,d,!0);this._renderHeaderFooter(n,d,!1)}}}_renderHeaderFooter(e,n,i){if(e.height>0&&e.declarative&&e.declarative.text){const u=_formatMacros(e.declarative.text,n).split("\t");u.length>0&&u[0]&&this._renderHeaderFooterPart(e,u[0],PdfTextHorizontalAlign.Left,i);u.length>1&&u[1]&&this._renderHeaderFooterPart(e,u[1],PdfTextHorizontalAlign.Center,i);u.length>2&&u[2]&&this._renderHeaderFooterPart(e,u[2],PdfTextHorizontalAlign.Right,i)}}_renderHeaderFooterPart(e,n,i,u){var d={font:e.declarative.font,brush:e.declarative.brush,width:e.width,height:e.height,align:i};this._tagged&&this.beginArtifact({type:PdfArtifactType.Pagination,attached:[u?PdfPageEdge.Top:PdfPageEdge.Bottom]});if(u)this.header.drawText(n,0,0,d);else{d.includeLastLineExternalLeading=!1;const e=this.footer.measureText(n,d.font,d);this.footer.drawText(n,0,this.footer.height-e.size.height,d)}this._tagged&&this.endArtifact()}_setCurBrush(e){if(!this._currentGS[this.pageIndex].brush.equals(e)){this._setNativeDocBrush(e,!1);this._currentGS[this.pageIndex].brush=e.clone()}}_setCurFont(e){if(!this._curFont.equals(e)){const n=this._fontReg.findFont(e.family,e.style,e.weight);this._doc.font(n,e.size||PdfFont._DEF_FONT.size);this._curFont=e.clone()}}_setCurPen(e){var n=this._doc,i=this._currentGS[this.pageIndex].pen;!e.brush||i.brush&&i.brush.equals(e.brush)?(i.brush&&!e.brush||!i.brush&&!i.color.equals(e.color))&&n.strokeColor([e.color.r,e.color.g,e.color.b],e.color.a):this._setNativeDocBrush(e.brush,!0);i.width!==e.width&&n.lineWidth(e.width);i.miterLimit!==e.miterLimit&&n.miterLimit(e.miterLimit);i.cap!==e.cap&&n.lineCap(e.cap);i.join!==e.join&&n.lineJoin(e.join);i.dashPattern.equals(e.dashPattern)||(null!=e.dashPattern.dash?n.dash(e.dashPattern.dash,{space:e.dashPattern.gap,phase:e.dashPattern.phase}):null!=i.dashPattern.dash&&n.undash());this._currentGS[this.pageIndex].pen=e.clone()}_setNativeDocBrush(e,n){var i=this._doc,u=e._getBrushObject(this),d=1;if(u instanceof wijmo_1.Color){d=u.a;u=[u.r,u.g,u.b]}else e instanceof PdfGradientBrush&&(d=e.opacity);n?i.strokeColor(u,d):i.fillColor(u,d)}_resetAreasOffset(e){e.page.margins.top=e.page.originalMargins.top+this.header.height;e.y=e.page.margins.top;e.page.margins.bottom=e.page.originalMargins.bottom+this.footer.height;this._header._initialize(this,e.page.margins.left,e.page.originalMargins.top);this._initialize(this,e.page.margins.left,e.page.margins.top);this._footer._initialize(this,e.page.margins.left,e.page.height-e.page.margins.bottom)}}exports.PdfDocument=PdfDocument;class PdfPaths{constructor(e,n){this._pathBuffer=[];this._doc=e;this._ndoc=e._document;this._offset=n}moveTo(e,n){this._pathBuffer.push({func:this._ndoc.moveTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y]});return this}lineTo(e,n){this._pathBuffer.push({func:this._ndoc.lineTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y]});return this}quadraticCurveTo(e,n,i,u){this._pathBuffer.push({func:this._ndoc.quadraticCurveTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i)+this._offset.x,wijmo_1.asNumber(u)+this._offset.y]});return this}bezierCurveTo(e,n,i,u,d,p){this._pathBuffer.push({func:this._ndoc.bezierCurveTo,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i)+this._offset.x,wijmo_1.asNumber(u)+this._offset.y,wijmo_1.asNumber(d)+this._offset.x,wijmo_1.asNumber(p)+this._offset.y]});return this}svgPath(e){if(e){const n=_PdfSvgPathHelper.offset(wijmo_1.asString(e),this._offset);this._pathBuffer.push({func:this._ndoc.path,params:[wijmo_1.asString(n)]})}return this}closePath(){this._writePathBuffer();this._ndoc.closePath();return this}rect(e,n,i,u){this._pathBuffer.push({func:this._ndoc.rect,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0),wijmo_1.asNumber(u,!1,!0)]});return this}roundedRect(e,n,i,u,d=0){this._pathBuffer.push({func:this._ndoc.roundedRect,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0),wijmo_1.asNumber(u,!1,!0),wijmo_1.asNumber(d,!1,!0)]});return this}ellipse(e,n,i,u=i){this._pathBuffer.push({func:this._ndoc.ellipse,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0),wijmo_1.asNumber(u,!1,!0)]});return this}circle(e,n,i){this._pathBuffer.push({func:this._ndoc.circle,params:[wijmo_1.asNumber(e)+this._offset.x,wijmo_1.asNumber(n)+this._offset.y,wijmo_1.asNumber(i,!1,!0)]});return this}polygon(e){if(e)for(let n=0;n<e.length;n++){const i=e[n];i[0]=i[0]+this._offset.x;i[1]=i[1]+this._offset.y}this._pathBuffer.push({func:this._ndoc.polygon,params:e});return this}clip(e=PdfFillRule.NonZero){this._writePathBuffer();this._ndoc.clip(e===PdfFillRule.EvenOdd?"even-odd":"non-zero");return this}fill(e,n){this._doc._toggleBrush(_asPdfBrush(e));this._writePathBuffer();this._ndoc.fill(n===PdfFillRule.EvenOdd?"even-odd":"non-zero");return this}fillAndStroke(e,n,i){this._doc._toggleBrush(_asPdfBrush(e));this._doc._togglePen(_asPdfPen(n));this._writePathBuffer();this._ndoc.fillAndStroke(i===PdfFillRule.EvenOdd?"even-odd":"non-zero");return this}stroke(e){this._doc._togglePen(_asPdfPen(e));this._writePathBuffer();this._ndoc.stroke();return this}_hasPathBuffer(){return this._pathBuffer.length>0}_writePathBuffer(){var e=this._ndoc,n=this._pathBuffer;for(let i=0,u=n.length;i<u;i++){const u=n[i];u.func.apply(e,u.params)}this._pathBuffer=[]}}exports.PdfPaths=PdfPaths;wijmo_1._registerModule("wijmo.pdf",selfModule);function _compressSpaces(e){e&&(e=e.trim().replace(/\s+/gm," "));return e}exports._compressSpaces=_compressSpaces;function _resolveUrlIfRelative(e,n){e&&n&&!/(^[a-z][a-z0-9]*:)?\/\//i.test(e)&&(e=n(e));return e}exports._resolveUrlIfRelative=_resolveUrlIfRelative;class _SvgCssRule{constructor(e,n){this.selector=e;this.declarations={};this._fillDeclarations(n)}_fillDeclarations(e){e&&e.split(";").forEach(e=>{if(e){const n=e.split(":");if(2===n.length){let e=n[0].trim().toLowerCase(),i=n[1].trim();if(e&&i){const n=/!important$/i.test(i);n&&(i=i.replace(/!important$/i,"").trim());if(i)if("font"===e){const e=this._parseFont(i);if(e){this.declarations["font-family"]={value:e.family,important:n};this.declarations["font-size"]={value:e.size,important:n};this.declarations["font-style"]={value:e.style,important:n};this.declarations["font-weight"]={value:e.weight,important:n}}}else this.declarations[e]={value:i,important:n}}}}})}_parseFont(e){if(_SvgCssRule.FontSystemVals.indexOf(e)>=0)return null;const n={},i=(e=>{let n=[],i=null,u="";for(const d of e)if(i||" "!==d&&"\t"!==d&&"\n"!==d){(i||";"!==d)&&(u+=d);i===d?i=null:'"'!==d&&"'"!==d||(i=d)}else{u&&n.push(u);u=""}u&&n.push(u);return n})(e);let u,d=!1;u=i.shift();for(;!d&&null!=u;){if(!n.style&&_SvgCssRule.FontStyleVals.indexOf(u)>=0)n.style=u;else if(!n.weight&&_SvgCssRule.FontWeightVals.indexOf(u)>=0)n.weight=u;else{d=_SvgCssRule.FontSizeVals.indexOf(u)>=0||/^\d+(%|[a-z])/.test(u);if(d){const e=u.indexOf("/");n.size=u.substring(0,e>0?e:u.length)}}u=i.shift()}i.length&&(_SvgCssRule.FontStretchVals.indexOf(i[0])>=0||/^\d+%/.test(i[0]))&&i.shift();i.length&&(n.family=i.join(" "));return n.size&&n.family?n:null}}_SvgCssRule.FontSystemVals=["caption","icon","menu","message-box","small-caption","status-bar"];_SvgCssRule.FontStyleVals=["normal","italic","oblique"];_SvgCssRule.FontWeightVals=["normal","bold","lighter","bolder","100","200","300","400","500","600","700","800","900"];_SvgCssRule.FontSizeVals=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];_SvgCssRule.FontStretchVals=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"];exports._SvgCssRule=_SvgCssRule;class _SvgCssHelper{static matchesSelector(e,n){var i=!1;try{i=(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,n)}catch(e){}return i}static getSpecificity(e){var n=0,i=0,u=0,match=n=>{var i=(e.match(n)||[]).length;i&&(e=e.replace(n,""));return i};e=e.replace(/:not\(([^)]*)\)/g,(e,n)=>` ${n} `);i+=match(/(\[[^\]]+\])/g);n+=match(/(#[^\s+>~.[:]+)/g);i+=match(/(\.[^\s+>~.[:]+)/g);u+=match(/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi);i+=match(/(:[\w-]+\([^)]*\))/gi);i+=match(/(:[^\s+>~.[:]+)/g);e=(e=e.replace(/[*\s+>~]/g," ")).replace(/[#.]/g," ");return n<<16|i<<8|(u+=match(/([^\s+>~.[:]+)/g))}static getComputedStyle(e,n){var i={},u=[];if(e.className){const i=[];for(let u=0,d=Object.keys(n);u<d.length;u++){const p=d[u];_SvgCssHelper.matchesSelector(e,p)&&i.push(n[p])}}u.sort((e,n)=>_SvgCssHelper.getSpecificity(e.selector)-_SvgCssHelper.getSpecificity(n.selector));var d=e.getAttribute("style");d&&u.push(new _SvgCssRule("_inline_",_compressSpaces(d)));for(let e=0;e<u.length;e++){const n=u[e];for(let e=0,u=Object.keys(n.declarations);e<u.length;e++){const d=u[e],p=n.declarations[d];null!=i[d]&&!p.important&&i[d].important||(i[d]=p)}}var p={};for(let e=0,n=Object.keys(i);e<n.length;e++){const u=n[e];p[u]=i[u].value}return p}static registerFontFace(e,n,i){var u=n.declarations;u["font-family"]&&u.src&&u.src.value.split(",").every(n=>{if(n.match(/format\(\s*['"]?truetype['"]?\s*\)/i)){const d=n.match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/i);if(d){let n=d[1].trim(),p=!1;n=_resolveUrlIfRelative(n,i);if(n){const i={name:u["font-family"].value,source:n,weight:u["font-weight"]?u["font-weight"].value.toLowerCase():"normal",style:u["font-style"]?u["font-style"].value.toLowerCase():"normal"};try{e.registerFont(i);p=!0}catch(e){}}return!p}}return!0})}}exports._SvgCssHelper=_SvgCssHelper;class _SvgRenderer{constructor(e,n,i,u,d){this._elementsById={};this._registeredCssRules={};wijmo_1.assert(null!=n,exports._Errors.ValueCannotBeEmpty("svgString"));this._doc=n.document;var p=this._parse(e);if(p){this._svg=new _SvgSvgElementImpl({area:n,urlResolver:d,getElement:this._getElementById.bind(this),registerCssRule:e=>{this._registerCssRule(e,d)}},null);this._copyAttributes(p,this._svg);this._buildTree(p,this._svg);this._svg.viewport=new wijmo_1.Size(null!=i?i:n.width,null!=u?u:n.height)}}get root(){return this._svg}dump(){this._svg&&this._svg.dump()}render(e){this._svg&&this._svg.render(e||this._svg.viewport)}_parse(e){if(e){const n=new DOMParser;n.async=!1;return n.parseFromString(e,"text/xml").getElementsByTagName("svg")[0]}}_buildTree(e,n,i){for(let u=0;e.childNodes&&u<e.childNodes.length;u++){const d=e.childNodes.item(u),p=d.nodeName;if(1===d.nodeType){const e=this._getClassName(p);if(selfModule[e]){const u=new selfModule[e](n.ctx,d);this._copyAttributes(d,u);if(n.appendNode(u)){let e;e=d.getAttribute("id");e&&(this._elementsById[e]=u);this._buildTree(d,u,"text"===p||"tspan"===p||i)}}}else if(i&&3===d.nodeType){let e=d.textContent.trim(),i=_compressSpaces(e);d.textContent.match(/\s$/)&&(i+=" ");e?n instanceof _SvgTextElementImpl||n.children.length||d.nextSibling?n.appendNode(new _SvgTspanElementImpl(n.ctx,null,i)):n._text=i:i&&d.previousSibling&&d.nextSibling&&n.appendNode(new _SvgTspanElementImpl(n.ctx,null," "))}}}_getClassName(e){return`_Svg${e.charAt(0).toUpperCase()}${e.substring(1)}ElementImpl`}_copyAttributes(e,n){for(let i=0;i<e.attributes.length;i++){const u=e.attributes.item(i);n.attr(u.name,u.value)}var i=_SvgCssHelper.getComputedStyle(e,this._registeredCssRules);for(let e=0,u=Object.keys(i);e<u.length;e++){const d=u[e];n.attr(d,i[d])}}_getElementById(e){e=(e||"").replace("#","");return this._elementsById[e]}_registerCssRule(e,n){"@"!==e.selector[0]?this._registeredCssRules[e.selector]=e:"@font-face"===e.selector&&_SvgCssHelper.registerFontFace(this._doc,e,n)}}exports._SvgRenderer=_SvgRenderer;!function(e){e[e.Render=0]="Render";e[e.Ignore=1]="Ignore";e[e.Clip=2]="Clip"}(_SvgRenderMode=exports._SvgRenderMode||(exports._SvgRenderMode={}));class _SvgElementBase{constructor(e,n,i=_SvgRenderMode.Render){this._children=[];this._attributes={};this._defRenderMode=i;this._ctx=e}get children(){return this._children}get ctx(){return this._ctx}get parent(){return this._parent}set parent(e){this._parent=e}get style(){this._style||(this._style=new _SvgStyleAttributes(this));return this._style}get viewport(){return this._viewport}set viewport(e){this._viewport=e.clone()}attr(e,n){e=e.toLowerCase();void 0!==n&&(this._attributes[e]=n);return this._attributes[e]}appendNode(e){if(!e||e===this||e.parent===this)return!1;e.remove();this.children.push(e);e.parent=this;return!0}clearAttr(e){delete this._attributes[e.toLowerCase()]}copyAttributesFrom(e,n){if(e){var i=e._attributes,u=this._attributes;for(var d in i)i.hasOwnProperty(d)&&null==u[d]&&(!n||n.indexOf(d)<0)&&(u[d]=i[d])}}clone(){var e=new(Function.prototype.bind.call(this.constructor,null,this.ctx,null));e.copyAttributesFrom(this);this._children.forEach(n=>{e.appendNode(n.clone())});return e}remove(){var e=this.parent;if(e){for(let n=0;n<e.children.length;n++)if(e.children[n]===this){e.children.splice(n,1);break}this.parent=null}}render(e,n){this._viewport=e.clone();this._curRenderMode=n||this._defRenderMode;this._curRenderMode!==_SvgRenderMode.Ignore&&this._render()}get renderMode(){return this._curRenderMode}_render(){this._renderContent()}_renderContent(){for(let e=0;e<this._children.length;e++)this._children[e].render(this.viewport,this.renderMode)}dump(e=0){console.log(this._dumpInfo(e));for(let n=0;n<this.children.length;n++)this.children[n].dump(e+1)}_dumpInfo(e){const n=Array(e+1).join(" "),i=this._attributes;return`${n}${this._moniker()} [${Object.getOwnPropertyNames(i).reduce((e,n)=>`${e}${n}:${i[n]}; `,"").trim()}]`}_moniker(){const e=this.constructor;return(e.name?e.name:e.toString().match(/function (\S+)\(/)[1]).match(/_Svg(\S+)ElementImpl/)[1]}}exports._SvgElementBase=_SvgElementBase;class _SvgClippableElementBase extends _SvgElementBase{constructor(e,n,i=_SvgRenderMode.Render){super(e,n,i);this._clipPath=new _SvgIdRefAttr(this,"clip-path")}_render(){var e,n=this.ctx.area;if(this._clipPath.val){const i=this.ctx.getElement(this._clipPath.val);if(e=!!(i&&i instanceof _SvgClipPathElementImpl)){n.document.saveState();i.render(this.viewport,_SvgRenderMode.Clip);n.paths.clip(this.style.clipRule.val)}}super._render();e&&n.document.restoreState()}}exports._SvgClippableElementBase=_SvgClippableElementBase;class _SvgTransformableElementBase extends _SvgClippableElementBase{constructor(e,n){super(e,n);this._transform=new _SvgTransformAttr(this)}_render(){var e=this._transform.hasVal&&this.renderMode!==_SvgRenderMode.Clip;if(e){this.ctx.area.document.saveState();this._transform.apply(this)}super._render();e&&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(){wijmo_1.assert(!1,exports._Errors.AbstractMethod)}}exports._SvgShapeElementBase=_SvgShapeElementBase;class _SvgCircleElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgNumAttr(this,"r",0).val;if(e>0){const n=new _SvgNumAttr(this,"cx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,i=new _SvgNumAttr(this,"cy",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.circle(n,i,e)}}}exports._SvgCircleElementImpl=_SvgCircleElementImpl;class _SvgEllipseElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgNumAttr(this,"rx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"ry",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;if(e>0&&n>0){const i=new _SvgNumAttr(this,"cx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,u=new _SvgNumAttr(this,"cy",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.ellipse(i,u,e,n)}}}exports._SvgEllipseElementImpl=_SvgEllipseElementImpl;class _SvgLineElementImpl extends _SvgShapeElementBase{constructor(e,n){super(e,n);this._fill=!1}_draw(){var e=new _SvgNumAttr(this,"x1",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"y1",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,i=new _SvgNumAttr(this,"x2",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,u=new _SvgNumAttr(this,"y2",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;this.ctx.area.paths.moveTo(e,n).lineTo(i,u)}}exports._SvgLineElementImpl=_SvgLineElementImpl;class _SvgPathElementImpl extends _SvgShapeElementBase{constructor(e,n){super(e,n);this._d=new _SvgStrAttr(this,"d")}_renderContent(){var e=this.ctx.area;if(this.renderMode===_SvgRenderMode.Clip){if(this._d.hasVal){const e=_PdfSvgPathHelper.scale(this._d.val,.75);this.attr("d",e);this._d.reset()}super._renderContent()}else{e.document.saveState();e.scale(.75);super._renderContent();e.document.restoreState()}}_draw(){this._d.hasVal&&this.ctx.area.paths.svgPath(this._d.val)}}exports._SvgPathElementImpl=_SvgPathElementImpl;class _SvgPolylineElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgPointsArrayAttr(this,"points");if(e.hasVal){const n=e.val,i=this.ctx.area;if(n.length>1){for(let e=0;e<n.length;e++)0==e?i.paths.moveTo(n[e].x,n[e].y):i.paths.lineTo(n[e].x,n[e].y);return!0}}return!1}}exports._SvgPolylineElementImpl=_SvgPolylineElementImpl;class _SvgPolygonElementImpl extends _SvgPolylineElementImpl{_draw(){if(super._draw()){this.ctx.area.paths.closePath();return!0}return!1}}exports._SvgPolygonElementImpl=_SvgPolygonElementImpl;class _SvgRectElementImpl extends _SvgShapeElementBase{_draw(){var e=new _SvgNumAttr(this,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,n=new _SvgNumAttr(this,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val;if(e>0&&n>0){let i=new _SvgNumAttr(this,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,u=new _SvgNumAttr(this,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,d=Math.max(new _SvgNumAttr(this,"rx",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,0),p=Math.max(new _SvgNumAttr(this,"ry",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,0),_=this.ctx.area.paths;if(d||p){d=Math.min(d||p,e/2);p=Math.min(p||d,n/2);_.moveTo(i+d,u);_.lineTo(i+e-d,u);_.quadraticCurveTo(i+e,u,i+e,u+p);_.lineTo(i+e,u+n-p);_.quadraticCurveTo(i+e,u+n,i+e-d,u+n);_.lineTo(i+d,u+n);_.quadraticCurveTo(i,u+n,i,u+n-p);_.lineTo(i,u+p);_.quadraticCurveTo(i,u,i+d,u)}else _.rect(i,u,e,n)}}}exports._SvgRectElementImpl=_SvgRectElementImpl;class _SvgClipPathElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore)}}exports._SvgClipPathElementImpl=_SvgClipPathElementImpl;class _SvgDefsElementImpl extends _SvgClippableElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore)}}exports._SvgDefsElementImpl=_SvgDefsElementImpl;class _SvgGElementImpl extends _SvgTransformableElementBase{}exports._SvgGElementImpl=_SvgGElementImpl;class _SvgLinearGradientElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_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(e){var n=new wijmo_1.Rect(new _SvgNumAttr(e,"x",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,new _SvgNumAttr(e,"y",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val,new _SvgNumAttr(e,"width",0,_SvgNumConversion.Default,_SvgLengthContext.Width).val,new _SvgNumAttr(e,"height",0,_SvgNumConversion.Default,_SvgLengthContext.Height).val),i="objectBoundingBox"===this._gradientUnits.val?new wijmo_1.Size(n.width,n.height):e.viewport.clone(),u=_SvgNumAttr.parseValue(this._x1.val,_SvgAttrType.Number,i,_SvgLengthContext.Width,_SvgNumConversion.Default),d=_SvgNumAttr.parseValue(this._x2.val,_SvgAttrType.Number,i,_SvgLengthContext.Width,_SvgNumConversion.Default),p=_SvgNumAttr.parseValue(this._y1.val,_SvgAttrType.Number,i,_SvgLengthContext.Height,_SvgNumConversion.Default),_=_SvgNumAttr.parseValue(this._y2.val,_SvgAttrType.Number,i,_SvgLengthContext.Height,_SvgNumConversion.Default),y=[];for(let e=0;e<this.children.length;e++)if(this.children[e]instanceof _SvgStopElementImpl){const n=this.children[e];y.push(new PdfGradientStop(_SvgNumAttr.parseValue(n.offset.val,_SvgAttrType.Number,i,_SvgLengthContext.Other,_SvgNumConversion.Default),n.color.val,n.opacity.val))}return new PdfLinearGradientBrush(n.left+u,n.top+p,n.left+d,n.top+_,y)}}exports._SvgLinearGradientElementImpl=_SvgLinearGradientElementImpl;class _SvgStopElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_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(e,n){super(e,n);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 e=this._width.val,n=this._height.val;if(e>0&&n>0&&this._href.hasVal){const i=_resolveUrlIfRelative(this._href.val,this.ctx.urlResolver);if(i){this.ctx.area.document.saveState();(this._x.val||this._y.val)&&this.ctx.area.translate(this._x.val,this._y.val);this.viewport=new wijmo_1.Size(e,n);try{this._href.val.match(/\.svg$/i)?this._renderSvgImage(i):this._renderRasterImage(i)}catch(e){}this.ctx.area.document.restoreState()}}}_renderSvgImage(e){var n,i=_XhrHelper.text(e,e=>{n=e.statusText});if(n)throw n;var u=new _SvgRenderer(i,this.ctx.area),d=u.root;this.attr("viewBox",d.attr("viewBox"));d.clearAttr("viewBox");d.clearAttr("x");d.clearAttr("y");d.clearAttr("width");d.clearAttr("height");d.clearAttr("preserveAspectRatio");d.clearAttr("clip");d.clearAttr("overflow");this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();var p=new _SvgScaleAttributes(this);u.render(p.apply(this))}_renderRasterImage(e){var n=this.ctx.area.openImage(_PdfImageHelper.getDataUri(e)),i=this._par.val,u=this.viewport.width,d=this.viewport.height,p={width:u,height:d,align:PdfImageHorizontalAlign.Left,vAlign:PdfImageVerticalAlign.Top};if("none"===i.align)p.stretchProportionally=!1;else{p.stretchProportionally=!0;if(i.meet){i.align.match(/^xMid/)?p.align=PdfImageHorizontalAlign.Center:i.align.match(/^xMax/)&&(p.align=PdfImageHorizontalAlign.Right);i.align.match(/YMid$/)?p.vAlign=PdfImageVerticalAlign.Center:i.align.match(/YMax$/)&&(p.vAlign=PdfImageVerticalAlign.Bottom)}else{const e=pxToPt(n.width),_=pxToPt(n.height),y=u/e,b=d/_;if(y>b){p.width=e*y;p.height=_*y}else{p.width=e*b;p.height=_*b}let w=0,x=0;i.align.match(/^xMid/)?w=-p.width/2+u/2:i.align.match(/^xMax/)&&(w=-p.width+u);i.align.match(/YMid$/)?x=-p.height/2+d/2:i.align.match(/YMax$/)&&(x=-p.height+d);this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();(w||x)&&this.ctx.area.translate(w,x)}}this.ctx.area.drawImage(n,0,0,p)}}exports._SvgImageElementImpl=_SvgImageElementImpl;class _SvgStyleElementImpl extends _SvgElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore);if(n&&(!n.type||"text/css"===n.type)){let e="";for(let i=0;i<n.childNodes.length;i++)e+=n.childNodes[i].textContent;e=_compressSpaces(e);e=e.replace(/\/\*([^*]|\*+[^*/])*\*+\//gm,"");const i=e.match(/[^{}]*{[^}]*}/g);if(i)for(let e=0;e<i.length;e++){const n=i[e].match(/([^{}]*){([^}]*)}/);if(n){const e=n[1].trim().split(","),i=n[2].trim();e.length&&i&&e.forEach(e=>{(e=e.trim())&&this.ctx.registerCssRule(new _SvgCssRule(e,i))})}}}}}exports._SvgStyleElementImpl=_SvgStyleElementImpl;class _SvgSvgElementImpl extends _SvgClippableElementBase{constructor(e,n){super(e,n);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 e=this.ctx.area;e.document.saveState();var n=this._width.val,i=this._height.val,u=this._x.val,d=this._y.val;this.parent&&(u||d)&&e.translate(u,d);this.viewport=new wijmo_1.Size(n,i);"visible"!==this._overflow.val&&e.paths.rect(0,0,n,i).clip();this.viewport=this._scale.apply(this);this.viewport.width>0&&this.viewport.height>0&&super._render();e.document.restoreState()}}exports._SvgSvgElementImpl=_SvgSvgElementImpl;class _SvgSymbolElementImpl extends _SvgClippableElementBase{constructor(e,n){super(e,n,_SvgRenderMode.Ignore)}}exports._SvgSymbolElementImpl=_SvgSymbolElementImpl;class _SvgUseElementImpl extends _SvgElementBase{constructor(e,n){super(e,n);this._xlink=new _SvgIdRefAttr(this,"xlink:href")}_render(){var e,n;e=this.ctx.getElement(this._xlink.val);if(this._xlink.hasVal&&e){var i=new _SvgGElementImpl(this.ctx,null);i.parent=this.parent;i.copyAttributesFrom(this,["x","y","width","height","xlink:href"]);if(null!=this.attr("x")||null!=this.attr("y")){const e=wijmo_1.format("translate({x},{y})",{x:this.attr("x")||0,y:this.attr("y")||0}),n=i.attr("transform");i.attr("transform",n?`${n} ${e}`:e)}if(e instanceof _SvgSymbolElementImpl){const n=new _SvgSvgElementImpl(this.ctx,null);n.copyAttributesFrom(e);for(let i=0;i<e.children.length;i++)n.appendNode(e.children[i].clone());i.appendNode(n);n.attr("width",this.attr("width")||"100%");n.attr("height",this.attr("height")||"100%")}else{e=e.clone();i.appendNode(e);if(e instanceof _SvgSvgElementImpl){null!=(n=this.attr("width"))&&e.attr("width",n);null!=(n=this.attr("height"))&&e.attr("height",n)}}i.render(this.viewport,this.renderMode)}}}exports._SvgUseElementImpl=_SvgUseElementImpl;class _SvgTextElementBase extends _SvgTransformableElementBase{constructor(e,n){super(e,n);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.textAnchor=new _SvgStrAttr(this,"text-anchor","start");this.textDecoration=new _SvgTextDecorationAttr(this)}appendNode(e){return e instanceof _SvgTspanElementImpl&&super.appendNode(e)}getTextFlowWidth(e=0,n){let i=0;for(let u=e;u<this.children.length;u++){const e=this.children[u];if(e.x.hasVal){n&&(n.f=!0);break}i+=e.getTextFlowWidth(n)}return i}_render(){this.renderMode===_SvgRenderMode.Render&&super._render()}}exports._SvgTextElementBase=_SvgTextElementBase;class _SvgTextElementImpl extends _SvgTextElementBase{constructor(e,n){super(e,n)}_renderContent(){this._prepareNodes();let e=this.x.val+this.dx.val,n=this.y.val+this.dy.val,i=this.textAnchor.val,u=[];if(this.x.hasVal&&("middle"===i||"end"===i)){const n=this.getTextFlowWidth();e-="middle"===i?n/2:n}var func=(d,p,_)=>{d.x.hasVal&&(e=d.x.val);d.y.hasVal&&(n=d.y.val);i=d.textAnchor.val;if(d.x.hasVal&&("middle"===i||"end"===i)){let n={f:!1},_=d.getTextFlowWidth(0,n);for(let e=p+1;!n.f&&e<d.parent.children.length;e++)if(d.parent.children[e].x.hasVal){n.f=!0;break}if(!n.f)for(let e=d.parent,n=u.length-1;n>=0&&e;n--,e=e.parent)_+=e.getTextFlowWidth(u[n]+1);e-="middle"===i?_/2:_}e+=d.dx.val;n+=d.dy.val;if(d._text){d._cx=e;d._cy=n;d.setDecorators(_);d.render(this.viewport,this.renderMode);e+=d.getTextWidth()}else for(let e=0;e<d.children.length;e++){const n=_.slice();n.push({decoration:d.textDecoration,style:d.style});u.push(e);func(d.children[e],e,n);u.splice(u.length-1,1)}};for(let e=0;e<this.children.length;e++){u.push(e);func(this.children[e],e,[{decoration:this.textDecoration,style:this.style}]);u.splice(u.length-1,1)}}_prepareNodes(){var removeEmptyNodes=e=>{for(let n=0;n<e.children.length;n++){const i=e.children[n];!i._text&&removeEmptyNodes(i)&&i.remove()}return 0===e.children.length},e=[],buildTextList=n=>{for(let i=0;i<n.children.length;i++){const u=n.children[i];u._text?e.push(u):buildTextList(u)}};removeEmptyNodes(this);buildTextList(this);for(let n=0;n<e.length;n++){const i=e.length;if(" "===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 _SvgTextElementBase{constructor(e,n,i){super(e,n);this._textSize=null;this._text=wijmo_1.asString(i)}clone(){var e=super.clone();e._text=this._text;return e}getTextFlowWidth(e=0,n){return this.getTextWidth()+super.getTextFlowWidth(e,n)}getTextSize(){null==this._textSize&&(this._textSize=this._text?this.ctx.area.measureText(this._text,this.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size:null);return this._textSize}getTextWidth(){const e=this.getTextSize();return null!=e?e.width:0}setDecorators(e){this._decorators=e}_dumpInfo(e){return`${super._dumpInfo(e)} ${null!=this._text?`"${this._text}"`:null}`}_renderContent(){if(this._text){const e={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();if(e.fill||e.stroke){e.fill&&(e.brush=this.style.fill.toBrush(this));e.stroke&&(e.pen=this.style.stroke.toPen(this));this.ctx.area.drawText(this._text,this._cx,this._cy,e)}}}_decorate(){var e=this.ctx.area,n=!1;this._decorators.push({decoration:this.textDecoration,style:this.style});for(let e=0;e<this._decorators.length&&!n;e++)n=null!=this._decorators[e].decoration.val;if(n){e.document.saveState();const n=e.document._document,i=this.getTextSize(),u=Math.max(n.currentFontSize()/20,.1),d=n.currentFontAscender(),p=this._cx;let _;_=this._decorators.shift();for(;void 0!==_;){const y=_.decoration.val;if(y){for(let _=0;_<y.length;_++){let b=this._cy-d;switch(y[_]){case"line-through":b=b+i.height/2-u/2;break;case"overline":b-=n.currentFontBBox().ury-n.currentFontAscender();break;case"underline":b=b+i.height-1.5*u}e.paths.rect(p,b,i.width,u)}_.style.apply(this,!0,!0)}_=this._decorators.shift()}e.document.restoreState()}}}exports._SvgTspanElementImpl=_SvgTspanElementImpl;!function(e){e[e.Default=1]="Default";e[e.None=2]="None";e[e.Px=3]="Px"}(_SvgNumConversion=exports._SvgNumConversion||(exports._SvgNumConversion={}));!function(e){e[e.Width=1]="Width";e[e.Height=2]="Height";e[e.Other=3]="Other"}(_SvgLengthContext=exports._SvgLengthContext||(exports._SvgLengthContext={}));!function(e){e[e.Number=1]="Number";e[e.String=2]="String"}(_SvgAttrType=exports._SvgAttrType||(exports._SvgAttrType={}));class _SvgAttr{constructor(e,n,i,u,d=_SvgNumConversion.Default,p=_SvgLengthContext.Other,_=!1){wijmo_1.assert(!!e,exports._Errors.ValueCannotBeEmpty("owner"));wijmo_1.assert(!!n,exports._Errors.ValueCannotBeEmpty("propName"));this._owner=e;this._propName=n;this._propType=i;this._defValue=u;this._inheritable=_;this._nc=d;this._pCtx=p;this._searchValue=!0}static parseValue(e,n,i,u,d){if(null==e)return e;if(n&_SvgAttrType.Number){let n,p;if("number"==typeof e)n=e;else{const i=e.match(/^([+-]?[\d.]+)(em|ex|px|pt|pc|cm|mm|in|%)?$/);if(i){n=parseFloat(i[1]);p=i[2]}}if(null!=n&&n==n){if(d!==_SvgNumConversion.Default){if(p)throw exports._Errors.InvalidFormat(e);if(d===_SvgNumConversion.None)return n}switch(p){case"mm":return 72*n/25.4;case"cm":return 72*n/2.54;case"in":return 72*n;case"pt":return n;case"pc":return 12*n;case"%":switch(u){case _SvgLengthContext.Height:n*=i.height/100;break;case _SvgLengthContext.Width:n*=i.width/100;break;case _SvgLengthContext.Other:n*=Math.sqrt(i.width*i.width+i.height*i.height)/Math.sqrt(2)/100}return n;default:return.75*n}}}if(n&_SvgAttrType.String)return""+e;throw exports._Errors.InvalidFormat(e)}get hasVal(){return null!=this._val}get val(){if(null!=this._val)return this._val;{const e=wijmo_1.isFunction(this._defValue)?this._defValue.call(this,this._owner.ctx):this._defValue;return this._parse(e)}}set val(e){this._searchValue=!1;this._value=e}get _val(){if(this._searchValue){this._searchValue=!1;let e;for(let n=this._owner;n;n=n.parent){e=n.attr(this._propName);if(!this._inheritable||null!=e&&"inherit"!=e)break}this._value="inherit"===e?void 0:this._parse(e)}return this._value}reset(){this._value=void 0;this._searchValue=!0}_parse(e,n){return _SvgAttr.parseValue(e,this._propType,this._owner.viewport,this._pCtx,n||this._nc)}}exports._SvgAttr=_SvgAttr;class _SvgNumAttr extends _SvgAttr{constructor(e,n,i,u=_SvgNumConversion.Default,d=_SvgLengthContext.Other,p){super(e,n,_SvgAttrType.Number,i,u,d,p)}}exports._SvgNumAttr=_SvgNumAttr;class _SvgStrAttr extends _SvgAttr{constructor(e,n,i,u){super(e,n,_SvgAttrType.String,i,void 0,void 0,u)}}exports._SvgStrAttr=_SvgStrAttr;class _SvgColorAttr extends _SvgAttr{constructor(e,n,i,u=!0){super(e,n,_SvgAttrType.String,i,_SvgNumConversion.None,_SvgLengthContext.Other,u)}asHref(){var e=this.val.match(/url\((.+)\)/);return e?e[1]:null}_parse(e){if(""!==e&&"null"!==e&&"undefined"!==e)return super._parse(e)}}exports._SvgColorAttr=_SvgColorAttr;class _SvgDashArrayAttr extends _SvgAttr{constructor(e){super(e,"stroke-dasharray",_SvgAttrType.Number,void 0,_SvgNumConversion.Px,_SvgLengthContext.Other,!0)}_parse(e){var n,i=(e||"").trim().split(/[\s,]+/);if(i.length){n=[];try{for(let e=0;e<i.length;e++)i[e]&&n.push(super._parse(i[e]))}catch(e){return}return n.length?n:void 0}return n}}exports._SvgDashArrayAttr=_SvgDashArrayAttr;class _SvgFillRuleAttr extends _SvgAttr{constructor(e,n){super(e,n,_SvgAttrType.String,PdfFillRule.NonZero,void 0,void 0,!0)}_parse(e){if(wijmo_1.isNumber(e))return e;{const n=(e||"").match(/(nonzero|evenodd)/i);return n?"nonzero"===n[1]?PdfFillRule.NonZero:PdfFillRule.EvenOdd:void 0}}}exports._SvgFillRuleAttr=_SvgFillRuleAttr;class _SvgHRefAttr extends _SvgStrAttr{constructor(e,n){super(e,n)}_parse(e){var n=(e=(e||"").trim()).match(/url\((.+)\)/);n&&(e=n[1].trim());return e=e.replace(/["']/g,"")}}exports._SvgHRefAttr=_SvgHRefAttr;class _SvgIdRefAttr extends _SvgHRefAttr{_parse(e){if((e=super._parse(e))&&"#"===e[0])return e.substring(1)}}exports._SvgIdRefAttr=_SvgIdRefAttr;class _SvgPointsArrayAttr extends _SvgAttr{constructor(e,n){super(e,n,_SvgAttrType.Number,void 0,_SvgNumConversion.Px)}_parse(e){var n,i=(e||"").trim().split(/[\s,]+/),u=2*Math.floor(i.length/2);if(u){n=[];try{for(let e=0;e<u-1;e+=2)n.push(new wijmo_1.Point(super._parse(i[e]),super._parse(i[e+1])))}catch(e){return}}return n}}exports._SvgPointsArrayAttr=_SvgPointsArrayAttr;class _SvgTransformAttr extends _SvgAttr{constructor(e){super(e,"transform",_SvgAttrType.Number,void 0,_SvgNumConversion.None)}apply(e){var n=e.ctx.area;this.hasVal&&this.val.forEach(e=>{e(n)})}_parse(e){var n=[],i=(e||"").match(/((matrix|translate|scale|rotate|skewX|skewY)\([^)]+\))+/g);if(i)for(let e=0;e<i.length;e++){const u=i[e].match(/(\w+)\(([^)]+)\)/),d=[];try{u[2].trim().split(/[\s,]+/).forEach(e=>{e&&d.push(super._parse(e,_SvgNumConversion.None))})}catch(e){return}if(d.length)switch(u[1]){case"matrix":n.push(((e,n,i,u,d,p)=>_=>{_.transform(e,n,i,u,d,p)})(d[0],d[1],d[2],d[3],super._parse(d[4],_SvgNumConversion.Px),super._parse(d[5],_SvgNumConversion.Px)));break;case"translate":n.push(((e,n)=>i=>{i.translate(e,n)})(super._parse(d[0],_SvgNumConversion.Px),super._parse(d[1]||0,_SvgNumConversion.Px)));break;case"scale":n.push(((e,n)=>i=>{i.scale(e,n)})(d[0],d[1]));break;case"rotate":n.push(((e,n)=>i=>{i.rotate(e,n)})(d[0],new wijmo_1.Point(super._parse(d[1]||0,_SvgNumConversion.Px),super._parse(d[2]||0,_SvgNumConversion.Px))));break;case"skewX":n.push((e=>n=>{n.transform(1,0,e,1,0,0)})(Math.tan(d[0]*Math.PI/180)));break;case"skewY":n.push((e=>n=>{n.transform(1,e,0,1,0,0)})(Math.tan(d[0]*Math.PI/180)))}}return n.length?n:void 0}}exports._SvgTransformAttr=_SvgTransformAttr;class _SvgTextDecorationAttr extends _SvgAttr{constructor(e){super(e,"text-decoration",_SvgAttrType.String,void 0,_SvgNumConversion.None)}_parse(e){var n,i=(e||"").trim().toLowerCase().split(/[\s,]+/);if(i.length){n=[];for(let e=0;e<i.length;e++)/line-through|overline|underline/.test(i[e])&&n.push(i[e])}return n&&n.length?n:void 0}}exports._SvgTextDecorationAttr=_SvgTextDecorationAttr;class _SvgViewboxAttr extends _SvgAttr{constructor(e){super(e,"viewBox",_SvgAttrType.Number,void 0,_SvgNumConversion.Px)}_parse(e){var n,i=(e||"").trim().split(/[\s,]+/);4===i.length&&(n={minX:super._parse(i[0]),minY:super._parse(i[1]),width:super._parse(i[2]),height:super._parse(i[3])});return n}}exports._SvgViewboxAttr=_SvgViewboxAttr;class _SvgPreserveAspectRatioAttr extends _SvgAttr{constructor(e){super(e,"preserveAspectRatio",_SvgAttrType.Number,"xMidYMid meet")}_parse(e){var n;if("string"==typeof e){const i=e.replace(/^defer\s+/,"").trim().split(/\s+/);n={align:i[0],meet:!("slice"===i[1])}}else n=e;return n}}exports._SvgPreserveAspectRatioAttr=_SvgPreserveAspectRatioAttr;class _SvgScaleAttributes{constructor(e){this._owner=e;this.aspect=new _SvgPreserveAspectRatioAttr(this._owner);this.viewBox=new _SvgViewboxAttr(this._owner)}apply(e){var n=e.ctx.area,i=e.viewport,u=this.viewBox.val;if(i&&u){if(u.width&&u.height){const e=this.aspect.val,d=i.width/u.width,p=i.height/u.height,_=Math.min(d,p),y=Math.max(d,p),b=u.width*(e.meet?_:y),w=u.height*(e.meet?_:y);if("none"===e.align)n.scale(d,p);else{let x=e.meet?_:y,P=0,E=0;e.align.match(/^xMid/)&&x===p?P=i.width/2-b/2:e.align.match(/^xMax/)&&x===p&&(P=i.width-b);e.align.match(/YMid$/)&&x===d?E=i.height/2-w/2:e.align.match(/YMax$/)&&x===d&&(E=i.height-w);(P||E)&&n.translate(P,E);e.meet?n.scale(_,_):n.scale(y,y);(u.minX||u.minY)&&n.translate(-u.minX,-u.minY)}}return new wijmo_1.Size(u.width,u.height)}return i}}exports._SvgScaleAttributes=_SvgScaleAttributes;class _SvgStrokeAttributes{constructor(e){this._owner=e;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(e){var n=new _SafeColor(this.color.val);this.opacity.hasVal&&(n.a=this.opacity.val);var i=new PdfPen(n,this.width.val);if(this.dashArray.hasVal){const e=this.dashArray.val;e.length&&(i.dashPattern=new PdfDashPattern(e[0],e.length>1?e[1]:void 0,this.dashOffset.val))}switch(this.lineCap.val){case"butt":i.cap=PdfLineCapStyle.Butt;break;case"round":i.cap=PdfLineCapStyle.Round;break;case"square":i.cap=PdfLineCapStyle.Square}switch(this.lineJoin.val){case"miter":i.join=PdfLineJoinStyle.Miter;break;case"round":i.join=PdfLineJoinStyle.Round;break;case"bevel":i.join=PdfLineJoinStyle.Bevel}i.miterLimit=this.miterLimit.val;return i}}exports._SvgStrokeAttributes=_SvgStrokeAttributes;class _SvgFillAttributes{constructor(e){this._owner=e;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(e){let n;const i=this.color.asHref();if(i&&e){const n=e.ctx.getElement(i);if(n instanceof _SvgLinearGradientElementImpl)return n.toBrush(e)}n=new _SafeColor(this.color.val);this.opacity.hasVal&&(n.a=this.opacity.val);return new PdfSolidBrush(n)}}exports._SvgFillAttributes=_SvgFillAttributes;class _SvgFontAttributes{constructor(e){this._owner=e;this.family=new _SvgStrAttr(this._owner,"font-family",e=>{var n=e.area.document._getFont();return n?n.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 e=_asPt(this.size.val);return new PdfFont(this.family.val,e,this.style.val,this.weight.val)}}exports._SvgFontAttributes=_SvgFontAttributes;class _SvgStyleAttributes{constructor(e){this._owner=e;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(e,n,i){var u=e.ctx.area;e.renderMode===_SvgRenderMode.Clip||(n&&i&&"none"!==this.fill.color.val&&"none"!==this.stroke.color.val?u.paths.fillAndStroke(this.fill.toBrush(e),this.stroke.toPen(e),this.fill.rule.val):n&&"none"!==this.fill.color.val?u.paths.fill(this.fill.toBrush(e),this.fill.rule.val):i&&"none"!==this.stroke.color.val?u.paths.stroke(this.stroke.toPen(e)):u.paths.stroke(wijmo_1.Color.fromRgba(0,0,0,0)))}}exports._SvgStyleAttributes=_SvgStyleAttributes;
|