"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[249],{6397:function(e,t,r){r.d(t,{MR:function(){return ib},ZP:function(){return iN}});var n,i,a,o,c,s,u,l,h,d,f,m,g,p,v,y,A,b,_,w,T,S,O,x,k,E,R,C,U=r(8671),D=r(3496),F=r(4582),P=r(6859),L=r(589),Y=r(1632),M=r(729),I=r(1878),N=r(9461),B=r(9533),W=r(8065),z=r(2742),j=r(1119),q=r(167),V="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},K=[],Z=[],G="undefined"!=typeof Uint8Array?Uint8Array:Array,H=!1;function J(){H=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t>18&63]+K[n>>12&63]+K[n>>6&63]+K[63&n]);return i.join("")}(e,o,o+16383>c?c:o+16383));return 1===n?i+=K[(t=e[r-1])>>2]+K[t<<4&63]+"==":2===n&&(i+=K[(t=(e[r-2]<<8)+e[r-1])>>10]+K[t>>4&63]+K[t<<2&63]+"="),a.push(i),a.join("")}function Q(e,t,r,n,i){var a,o,c=8*i-n-1,s=(1<>1,l=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h];for(h+=d,a=f&(1<<-l)-1,f>>=-l,l+=c;l>0;a=256*a+e[t+h],h+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+h],h+=d,l-=8);if(0===a)a=1-u;else{if(a===s)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)}function $(e,t,r,n,i,a){var o,c,s,u=8*a-i-1,l=(1<>1,d=23===i?5960464477539062e-23:0,f=n?0:a-1,m=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(c=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+h>=1?t+=d/s:t+=d*Math.pow(2,1-h),t*s>=2&&(o++,s/=2),o+h>=l?(c=0,o=l):o+h>=1?(c=(t*s-1)*Math.pow(2,i),o+=h):(c=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&c,f+=m,c/=256,i-=8);for(o=o<0;e[r+f]=255&o,f+=m,o/=256,u-=8);e[r+f-m]|=128*g}var ee={}.toString,et=Array.isArray||function(e){return"[object Array]"==ee.call(e)};ea.TYPED_ARRAY_SUPPORT=void 0===V.TYPED_ARRAY_SUPPORT||V.TYPED_ARRAY_SUPPORT;var er=en();function en(){return ea.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ei(e,t){if(en()=en())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+en().toString(16)+" bytes");return 0|e}function eh(e){return!!(null!=e&&e._isBuffer)}function ed(e,t){if(eh(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ex(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return eE(e).length;default:if(n)return ex(e).length;t=(""+t).toLowerCase(),n=!0}}function ef(e,t,r){var n,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var a="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),isNaN(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=ea.from(t,n)),eh(t))return 0===t.length?-1:ep(e,t,r,n,i);if("number"==typeof t)return(t&=255,ea.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ep(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function ep(e,t,r,n,i){var a,o=1,c=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,c/=2,s/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;ac&&(r=c-s),a=r;a>=0;a--){for(var h=!0,d=0;d239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(a=e[i+1]))==128&&(s=(31&u)<<6|63&a)>127&&(l=s);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(s=(15&u)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:a=e[i+1],o=e[i+2],c=e[i+3],(192&a)==128&&(192&o)==128&&(192&c)==128&&(s=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&c)>65535&&s<1114112&&(l=s)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function eA(e,t,r,n,i,a){if(!eh(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function eb(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>(n?i:1-i)*8}function e_(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>(n?i:3-i)*8&255}function ew(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function eT(e,t,r,n,i){return i||ew(e,t,r,4),$(e,t,r,n,23,4),r+4}function eS(e,t,r,n,i){return i||ew(e,t,r,8),$(e,t,r,n,52,8),r+8}ea.poolSize=8192,ea._augment=function(e){return e.__proto__=ea.prototype,e},ea.from=function(e,t,r){return eo(null,e,t,r)},ea.TYPED_ARRAY_SUPPORT&&(ea.prototype.__proto__=Uint8Array.prototype,ea.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ea[Symbol.species]),ea.alloc=function(e,t,r){return(ec(e),e<=0)?ei(null,e):void 0!==t?"string"==typeof r?ei(null,e).fill(t,r):ei(null,e).fill(t):ei(null,e)},ea.allocUnsafe=function(e){return es(null,e)},ea.allocUnsafeSlow=function(e){return es(null,e)},ea.isBuffer=eC,ea.compare=function(e,t){if(!eh(e)||!eh(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ea.prototype.compare=function(e,t,r,n,i){if(!eh(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,c=Math.min(a,o),s=this.slice(n,i),u=e.slice(t,r),l=0;lp)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i.push(r%256),i.push(n);return i}(e,this.length-m),this,m,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},ea.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ea.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},ea.prototype.readUInt8=function(e,t){return t||ey(e,1,this.length),this[e]},ea.prototype.readUInt16LE=function(e,t){return t||ey(e,2,this.length),this[e]|this[e+1]<<8},ea.prototype.readUInt16BE=function(e,t){return t||ey(e,2,this.length),this[e]<<8|this[e+1]},ea.prototype.readUInt32LE=function(e,t){return t||ey(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ea.prototype.readUInt32BE=function(e,t){return t||ey(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ea.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||ey(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},ea.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||ey(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},ea.prototype.readInt8=function(e,t){return(t||ey(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},ea.prototype.readInt16LE=function(e,t){t||ey(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ea.prototype.readInt16BE=function(e,t){t||ey(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ea.prototype.readInt32LE=function(e,t){return t||ey(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ea.prototype.readInt32BE=function(e,t){return t||ey(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ea.prototype.readFloatLE=function(e,t){return t||ey(e,4,this.length),Q(this,e,!0,23,4)},ea.prototype.readFloatBE=function(e,t){return t||ey(e,4,this.length),Q(this,e,!1,23,4)},ea.prototype.readDoubleLE=function(e,t){return t||ey(e,8,this.length),Q(this,e,!0,52,8)},ea.prototype.readDoubleBE=function(e,t){return t||ey(e,8,this.length),Q(this,e,!1,52,8)},ea.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;eA(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+a]=e/o&255;return t+r},ea.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,1,255,0),ea.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ea.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,2,65535,0),ea.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):eb(this,e,t,!0),t+2},ea.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,2,65535,0),ea.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):eb(this,e,t,!1),t+2},ea.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,4,4294967295,0),ea.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):e_(this,e,t,!0),t+4},ea.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,4,4294967295,0),ea.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):e_(this,e,t,!1),t+4},ea.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);eA(this,e,t,r,i-1,-i)}var a=0,o=1,c=0;for(this[t]=255&e;++a>0)-c&255;return t+r},ea.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);eA(this,e,t,r,i-1,-i)}var a=r-1,o=1,c=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===c&&0!==this[t+a+1]&&(c=1),this[t+a]=(e/o>>0)-c&255;return t+r},ea.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,1,127,-128),ea.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ea.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,2,32767,-32768),ea.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):eb(this,e,t,!0),t+2},ea.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,2,32767,-32768),ea.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):eb(this,e,t,!1),t+2},ea.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,4,2147483647,-2147483648),ea.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):e_(this,e,t,!0),t+4},ea.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||eA(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ea.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):e_(this,e,t,!1),t+4},ea.prototype.writeFloatLE=function(e,t,r){return eT(this,e,t,!0,r)},ea.prototype.writeFloatBE=function(e,t,r){return eT(this,e,t,!1,r)},ea.prototype.writeDoubleLE=function(e,t,r){return eS(this,e,t,!0,r)},ea.prototype.writeDoubleBE=function(e,t,r){return eS(this,e,t,!1,r)},ea.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!ea.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function ek(e){for(var t=[],r=0;r0)throw Error("Invalid string. Length must be a multiple of 4");a="="===e[c-2]?2:"="===e[c-1]?1:0,o=new G(3*c/4-a),n=a>0?c-4:c;var s=0;for(t=0,r=0;t>16&255,o[s++]=i>>8&255,o[s++]=255&i;return 2===a?(i=Z[e.charCodeAt(t)]<<2|Z[e.charCodeAt(t+1)]>>4,o[s++]=255&i):1===a&&(i=Z[e.charCodeAt(t)]<<10|Z[e.charCodeAt(t+1)]<<4|Z[e.charCodeAt(t+2)]>>2,o[s++]=i>>8&255,o[s++]=255&i),o}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(eO,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function eR(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function eC(e){return null!=e&&(!!e._isBuffer||eU(e)||"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&eU(e.slice(0,0)))}function eU(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var eD=Object.freeze({__proto__:null,Buffer:ea,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),ea.alloc(+e)},isBuffer:eC,kMaxLength:er}),eF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eL(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var eY={exports:{}},eM={};function eI(){throw Error("setTimeout has not been defined")}function eN(){throw Error("clearTimeout has not been defined")}var eB=eI,eW=eN;function ez(e){if(eB===setTimeout)return setTimeout(e,0);if((eB===eI||!eB)&&setTimeout)return eB=setTimeout,setTimeout(e,0);try{return eB(e,0)}catch(t){try{return eB.call(null,e,0)}catch(t){return eB.call(this,e,0)}}}"function"==typeof V.setTimeout&&(eB=setTimeout),"function"==typeof V.clearTimeout&&(eW=clearTimeout);var ej=[],eq=!1,eV=-1;function eK(){eq&&u&&(eq=!1,u.length?ej=u.concat(ej):eV=-1,ej.length&&eZ())}function eZ(){if(!eq){var e=ez(eK);eq=!0;for(var t=ej.length;t;){for(u=ej,ej=[];++eV1)for(var r=1;r0&&o.length>i){o.warned=!0;var i,a,o,c=Error("Possible EventEmitter memory leak detected. "+o.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,"function"==typeof console.warn?console.warn(c):console.log(c)}}else o=a[t]=r,++e._eventsCount;return e}function e3(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function e4(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function e6(e,t){for(var r=Array(t);t--;)r[t]=e[t];return r}e0.prototype=Object.create(null),e5.EventEmitter=e5,e5.usingDomains=!1,e5.prototype.domain=void 0,e5.prototype._events=void 0,e5.prototype._maxListeners=void 0,e5.defaultMaxListeners=10,e5.init=function(){this.domain=null,e5.usingDomains&&l.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new e0,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},e5.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},e5.prototype.getMaxListeners=function(){return e1(this)},e5.prototype.emit=function(e){var t,r,n,i,a,o,c,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(c=this.domain,s){if(t=arguments[1],c)t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=c,t.domainThrown=!1,c.emit("error",t);else if(t instanceof Error)throw t;else{var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return!1}if(!(r=o[e]))return!1;var l="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=e6(e,n),a=0;a0;)if(r[a]===t||r[a].listener&&r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new e0,this;delete n[e]}else(function(e,t){for(var r=t,n=r+1,i=e.length;n0?Reflect.ownKeys(this._events):[]};var e7=eL(Object.freeze({__proto__:null,EventEmitter:e5,default:e5})),e8=e7.EventEmitter,e9=eL(eD),te="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},tt=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),tm(t)?r.showHidden=t:t&&tD(r,t),tb(r.showHidden)&&(r.showHidden=!1),tb(r.depth)&&(r.depth=2),tb(r.colors)&&(r.colors=!1),tb(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ts),tl(r,e,r.depth)}function ts(e,t){var r=tc.styles[t];return r?"\x1b["+tc.colors[r][0]+"m"+e+"\x1b["+tc.colors[r][1]+"m":e}function tu(e,t){return e}function tl(e,t,r){if(e.customInspect&&t&&tO(t.inspect)&&t.inspect!==tc&&!(t.constructor&&t.constructor.prototype===t)){var n,i,a,o,c=t.inspect(r,e);return ty(c)||(c=tl(e,c,r)),c}var s=function(e,t){if(tb(t))return e.stylize("undefined","undefined");if(ty(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return tv(t)?e.stylize(""+t,"number"):tm(t)?e.stylize(""+t,"boolean"):tg(t)?e.stylize("null","null"):void 0}(e,t);if(s)return s;var u=Object.keys(t),l=(a={},u.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(u=Object.getOwnPropertyNames(t)),tS(t)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return th(t);if(0===u.length){if(tO(t)){var h=t.name?": "+t.name:"";return e.stylize("[Function"+h+"]","special")}if(t_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(tT(t))return e.stylize(Date.prototype.toString.call(t),"date");if(tS(t))return th(t)}var d="",f=!1,m=["{","}"];return(tf(t)&&(f=!0,m=["[","]"]),tO(t)&&(d=" [Function"+(t.name?": "+t.name:"")+"]"),t_(t)&&(d=" "+RegExp.prototype.toString.call(t)),tT(t)&&(d=" "+Date.prototype.toUTCString.call(t)),tS(t)&&(d=" "+th(t)),0!==u.length||f&&0!=t.length)?r<0?t_(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),o=f?function(e,t,r,n,i){for(var a=[],o=0,c=t.length;o60?i[0]+(""===n?"":n+"\n ")+" "+o.join(",\n ")+" "+i[1]:i[0]+n+" "+o.join(", ")+" "+i[1]):m[0]+d+m[1]}function th(e){return"["+Error.prototype.toString.call(e)+"]"}function td(e,t,r,n,i,a){var o,c,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?c=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(c=e.stylize("[Setter]","special")),tF(n,i)||(o="["+i+"]"),!c&&(0>e.seen.indexOf(s.value)?(c=tg(r)?tl(e,s.value,null):tl(e,s.value,r-1)).indexOf("\n")>-1&&(c=a?c.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n")):c=e.stylize("[Circular]","special")),tb(o)){if(a&&i.match(/^\d+$/))return c;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+c}function tf(e){return Array.isArray(e)}function tm(e){return"boolean"==typeof e}function tg(e){return null===e}function tp(e){return null==e}function tv(e){return"number"==typeof e}function ty(e){return"string"==typeof e}function tA(e){return"symbol"==typeof e}function tb(e){return void 0===e}function t_(e){return tw(e)&&"[object RegExp]"===tE(e)}function tw(e){return"object"==typeof e&&null!==e}function tT(e){return tw(e)&&"[object Date]"===tE(e)}function tS(e){return tw(e)&&("[object Error]"===tE(e)||e instanceof Error)}function tO(e){return"function"==typeof e}function tx(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function tk(e){return ea.isBuffer(e)}function tE(e){return Object.prototype.toString.call(e)}function tR(e){return e<10?"0"+e.toString(10):e.toString(10)}tc.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]},tc.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var tC=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tU(){var e,t;console.log("%s - %s",(t=[tR((e=new Date).getHours()),tR(e.getMinutes()),tR(e.getSeconds())].join(":"),[e.getDate(),tC[e.getMonth()],t].join(" ")),tn.apply(null,arguments))}function tD(e,t){if(!t||!tw(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function tF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var tP="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function tL(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(tP&&e[tP]){var t=e[tP];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,tP,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],a=0;a2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}tV("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),tV("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(n="not ",t.substr(0,n.length)===n)?(c="must not be",t=t.replace(/^not /,"")):c="must be",i=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-i.length,a)===i)s="The ".concat(e," ").concat(c," ").concat(tK(t,"type"));else{var n,i,a,o,c,s,u=("number"!=typeof o&&(o=0),o+1>e.length||-1===e.indexOf(".",o))?"argument":"property";s='The "'.concat(e,'" ').concat(u," ").concat(c," ").concat(tK(t,"type"))}return s+". Received type ".concat(typeof r)},TypeError),tV("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),tV("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),tV("ERR_STREAM_PREMATURE_CLOSE","Premature close"),tV("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),tV("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),tV("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),tV("ERR_STREAM_WRITE_AFTER_END","write after end"),tV("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),tV("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),tV("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tj.codes=tq;var tZ=tj.codes.ERR_INVALID_OPT_VALUE,tG=function(e,t,r,n){var i=null!=t.highWaterMark?t.highWaterMark:n?t[r]:null;if(null!=i){if(!(isFinite(i)&&Math.floor(i)===i)||i<0)throw new tZ(n?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384},tH=eL(Object.freeze({__proto__:null,default:"function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}})),tJ=ea.isEncoding||function(e){switch(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}};function tX(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),!function(e){if(e&&!tJ(e))throw Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=t$;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=t0;break;default:this.write=tQ;return}this.charBuffer=new ea(6),this.charReceived=0,this.charLength=0}function tQ(e){return e.toString(this.encoding)}function t$(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function t0(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}tX.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319){this.charLength+=this.surrogateSize,t="";continue}if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var i=(t+=e.toString(this.encoding,0,i)).length-1,n=t.charCodeAt(i);if(n>=55296&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},tX.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},tX.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t};var t5=eL(Object.freeze({__proto__:null,StringDecoder:tX})),t1=tj.codes.ERR_STREAM_PREMATURE_CLOSE;function t2(){}var t3=function e(t,r,n){if("function"==typeof r)return e(t,null,r);r||(r={}),i=n||t2,a=!1,n=function(){if(!a){a=!0;for(var e=arguments.length,t=Array(e),r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return t.alloc(0);for(var r,n,i=t.allocUnsafe(e>>>0),a=this.head,o=0;a;)r=a.data,n=o,t.prototype.copy.call(r,i,n),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var r=t.allocUnsafe(e),n=this.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0==(e-=o)){o===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(o));break}++i}return this.length-=i,r}},{key:n,value:function(t,n){return r(this,function(t){for(var r=1;r0){if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===t6.prototype||(s=t,t=t6.from(s)),n)l.endEmitted?ri(e,new rn):ru(e,l,t,!0);else if(l.ended)ri(e,new rt);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?ru(e,l,t,!1):rf(e,l)):ru(e,l,t,!1)}}else n||(l.reading=!1,rf(e,l))}return!l.ended&&(l.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function rh(e){var t=e._readableState;y("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(y("emitReadable",t.flowing),t.emittedReadable=!0,e$.nextTick(rd,e))}function rd(e){var t=e._readableState;y("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ry(e)}function rf(e,t){t.readingMore||(t.readingMore=!0,e$.nextTick(rm,e,t))}function rm(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function rp(e){y("readable nexttick read 0"),e.read(0)}function rv(e,t){y("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ry(e),t.flowing&&!t.reading&&e.read(0)}function ry(e){var t=e._readableState;for(y("flow",t.flowing);t.flowing&&null!==e.read(););}function rA(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function rb(e){var t=e._readableState;y("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,e$.nextTick(r_,t,e))}function r_(e,t){if(y("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function rw(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return y("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?rb(this):rh(this),null;if(0===(e=rl(e,r))&&r.ended)return 0===r.length&&rb(this),null;var i=r.needReadable;return y("need readable",i),(0===r.length||r.length-e0?rA(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&rb(this)),null!==t&&this.emit("data",t),t},rc.prototype._read=function(e){ri(this,new rr("_read()"))},rc.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,y("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===e$.stdout||e===e$.stderr?d:a;function a(){y("onend"),e.end()}n.endEmitted?e$.nextTick(i):r.once("end",i),e.on("unpipe",function t(i,f){y("onunpipe"),i===r&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,y("cleanup"),e.removeListener("close",l),e.removeListener("finish",h),e.removeListener("drain",o),e.removeListener("error",u),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",d),r.removeListener("data",s),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o())});var o=function(){var e=r._readableState;y("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t4(r,"data")&&(e.flowing=!0,ry(r))};e.on("drain",o);var c=!1;function s(t){y("ondata");var i=e.write(t);y("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==rw(n.pipes,e))&&!c&&(y("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function u(t){y("onerror",t),d(),e.removeListener("error",u),0===t4(e,"error")&&ri(e,t)}function l(){e.removeListener("finish",h),d()}function h(){y("onfinish"),e.removeListener("close",l),d()}function d(){y("unpipe"),r.unpipe(e)}return r.on("data",s),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",u),e.once("close",l),e.once("finish",h),e.emit("pipe",r),n.flowing||(y("pipe resume"),r.resume()),e},rc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,y("on readable",n.length,n.reading),n.length?rh(this):n.reading||e$.nextTick(rp,this)),r},rc.prototype.addListener=rc.prototype.on,rc.prototype.removeListener=function(e,t){var r=e8.prototype.removeListener.call(this,e,t);return"readable"===e&&e$.nextTick(rg,this),r},rc.prototype.removeAllListeners=function(e){var t=e8.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&e$.nextTick(rg,this),t},rc.prototype.resume=function(){var e=this._readableState;return e.flowing||(y("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,e$.nextTick(rv,this,e))),e.paused=!1,this},rc.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},rc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(y("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){y("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a-1))throw new rY(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(rB.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(rB.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),rB.prototype._write=function(e,t,r){r(new rC("_write()"))},rB.prototype._writev=null,rB.prototype.end=function(e,t,r){var n,i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,rK(this,i),n&&(i.finished?e$.nextTick(n):this.once("finish",n)),i.ended=!0,this.writable=!1),this},Object.defineProperty(rB.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(rB.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),rB.prototype.destroy=tz.destroy,rB.prototype._undestroy=tz.undestroy,rB.prototype._destroy=function(e,t){t(e)};var rZ=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};eM.Duplex=rX,tH(rX,eM.Readable);for(var rG=rZ(eM.Writable.prototype),rH=0;rH0,s=c=function(e){t||(t=e),e&&o.forEach(ni),d||(o.forEach(ni),a(t))},u=!1,c=function(){u||(u=!0,s.apply(void 0,arguments))},l=!1,e.on("close",function(){l=!0}),void 0===T&&(T=t3),T(e,{readable:d,writable:i},function(e){if(e)return c(e);l=!0,c()}),h=!1,function(t){if(!l&&!h){if(h=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();c(t||new nr("pipe"))}}});return n.reduce(na)};var no=eY.exports,nc=eP(no),ns={},nu={};function nl(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}}function n_(e,t){return"string"==typeof e?e.length=0;a--)if(s[a]!==u[a])return!1;for(a=s.length-1;a>=0;a--)if(!nR(e[i=s[a]],t[i],r,n))return!1;return!0}(e,t,r,n))}function nC(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function nU(e,t,r){nR(e,t,!1)&&nT(e,t,r,"notDeepEqual",nU)}function nD(e,t,r){nR(e,t,!0)&&nT(e,t,r,"notDeepStrictEqual",nD)}function nF(e,t,r){e!==t&&nT(e,t,r,"===",nF)}function nP(e,t,r){e===t&&nT(e,t,r,"!==",nP)}function nL(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function nY(e,t,r,n){if("function"!=typeof t)throw TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&nT(i,r,"Missing expected exception"+n);var i,a="string"==typeof n,o=!e&&tS(i),c=!e&&i&&!r;if((o&&a&&nL(i,r)||c)&&nT(i,r,"Got unwanted exception"+n),e&&i&&r&&!nL(i,r)||!e&&i)throw i}function nM(e,t,r){nY(!0,e,t,r)}function nI(e,t,r){nY(!1,e,t,r)}function nN(e){if(e)throw e}nv.AssertionError=nb,te(nb,Error),nv.fail=nT,nv.ok=nS,nv.equal=nO,nv.notEqual=nx,nv.deepEqual=nk,nv.deepStrictEqual=nE,nv.notDeepEqual=nU,nv.notDeepStrictEqual=nD,nv.strictEqual=nF,nv.notStrictEqual=nP,nv.throws=nM,nv.doesNotThrow=nI,nv.ifError=nN;var nB=eL(Object.freeze({__proto__:null,AssertionError:nb,assert:nS,deepEqual:nk,deepStrictEqual:nE,default:nv,doesNotThrow:nI,equal:nO,fail:nT,ifError:nN,notDeepEqual:nU,notDeepStrictEqual:nD,notEqual:nx,notStrictEqual:nP,ok:nS,strictEqual:nF,throws:nM}));!function(e){for(var t in Y)e[t]=Y[t];function r(t){if("number"!=typeof t||te.UNZIP)throw TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7,r.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,nB(this.init_done,"close before init"),nB(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?P.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&L.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},r.prototype.write=function(e,t,r,n,i,a,o){return this._write(!0,e,t,r,n,i,a,o)},r.prototype.writeSync=function(e,t,r,n,i,a,o){return this._write(!1,e,t,r,n,i,a,o)},r.prototype._write=function(t,r,n,i,a,o,c,s){if(nB.equal(arguments.length,8),nB(this.init_done,"write before init"),nB(this.mode!==e.NONE,"already finalized"),nB.equal(!1,this.write_in_progress,"write already in progress"),nB.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,nB.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==e.Z_NO_FLUSH&&r!==e.Z_PARTIAL_FLUSH&&r!==e.Z_SYNC_FLUSH&&r!==e.Z_FULL_FLUSH&&r!==e.Z_FINISH&&r!==e.Z_BLOCK)throw Error("Invalid flush value");if(null==n&&(n=ea.alloc(0),a=0,i=0),this.strm.avail_in=a,this.strm.input=n,this.strm.next_in=i,this.strm.avail_out=s,this.strm.output=o,this.strm.next_out=c,this.flush=r,!t)return(this._process(),this._checkError())?this._afterSync():void 0;var u=this;return e$.nextTick(function(){u._process(),u._after()}),this},r.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},r.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=P.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31===this.strm.input[t]){if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break}else{this.mode=e.INFLATE;break}case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=L.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=L.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=L.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=L.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+this.mode)}},r.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},r.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},r.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},r.prototype.init=function(t,r,n,i,a){nB(4==arguments.length||5==arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),nB(t>=8&&t<=15,"invalid windowBits"),nB(r>=-1&&r<=9,"invalid compression level"),nB(n>=1&&n<=9,"invalid memlevel"),nB(i===e.Z_FILTERED||i===e.Z_HUFFMAN_ONLY||i===e.Z_RLE||i===e.Z_FIXED||i===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,t,n,i,a),this._setDictionary()},r.prototype.params=function(){throw Error("deflateParams Not supported")},r.prototype.reset=function(){this._reset(),this._setDictionary()},r.prototype._init=function(t,r,n,i,a){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new F,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=P.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=L.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},r.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=P.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},r.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=P.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=L.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=r}(nu),function(e){var t=e9.Buffer,r=no.Transform,n=nB.ok,i=e9.kMaxLength,a="Cannot create final Buffer. It would be larger than 0x"+i.toString(16)+" bytes";nu.Z_MIN_WINDOWBITS=8,nu.Z_MAX_WINDOWBITS=15,nu.Z_DEFAULT_WINDOWBITS=15,nu.Z_MIN_CHUNK=64,nu.Z_MAX_CHUNK=1/0,nu.Z_DEFAULT_CHUNK=16384,nu.Z_MIN_MEMLEVEL=1,nu.Z_MAX_MEMLEVEL=9,nu.Z_DEFAULT_MEMLEVEL=8,nu.Z_MIN_LEVEL=-1,nu.Z_MAX_LEVEL=9,nu.Z_DEFAULT_LEVEL=nu.Z_DEFAULT_COMPRESSION;for(var o=Object.keys(nu),c=0;c=i?s=RangeError(a):r=t.concat(o,c),o=[],e.close(),n(s,r)}e.on("error",function(t){e.removeListener("end",u),e.removeListener("readable",s),n(t)}),e.on("end",u),e.end(r),s()}function m(e,r){if("string"==typeof r&&(r=t.from(r)),!t.isBuffer(r))throw TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(r,n)}function g(e){if(!(this instanceof g))return new g(e);T.call(this,e,nu.DEFLATE)}function p(e){if(!(this instanceof p))return new p(e);T.call(this,e,nu.INFLATE)}function v(e){if(!(this instanceof v))return new v(e);T.call(this,e,nu.GZIP)}function y(e){if(!(this instanceof y))return new y(e);T.call(this,e,nu.GUNZIP)}function A(e){if(!(this instanceof A))return new A(e);T.call(this,e,nu.DEFLATERAW)}function b(e){if(!(this instanceof b))return new b(e);T.call(this,e,nu.INFLATERAW)}function _(e){if(!(this instanceof _))return new _(e);T.call(this,e,nu.UNZIP)}function w(e){return e===nu.Z_NO_FLUSH||e===nu.Z_PARTIAL_FLUSH||e===nu.Z_SYNC_FLUSH||e===nu.Z_FULL_FLUSH||e===nu.Z_FINISH||e===nu.Z_BLOCK}function T(n,i){var a=this;if(this._opts=n=n||{},this._chunkSize=n.chunkSize||e.Z_DEFAULT_CHUNK,r.call(this,n),n.flush&&!w(n.flush))throw Error("Invalid flush flag: "+n.flush);if(n.finishFlush&&!w(n.finishFlush))throw Error("Invalid flush flag: "+n.finishFlush);if(this._flushFlag=n.flush||nu.Z_NO_FLUSH,this._finishFlushFlag=void 0!==n.finishFlush?n.finishFlush:nu.Z_FINISH,n.chunkSize&&(n.chunkSizee.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+n.chunkSize);if(n.windowBits&&(n.windowBitse.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+n.windowBits);if(n.level&&(n.levele.Z_MAX_LEVEL))throw Error("Invalid compression level: "+n.level);if(n.memLevel&&(n.memLevele.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+n.memLevel);if(n.strategy&&n.strategy!=e.Z_FILTERED&&n.strategy!=e.Z_HUFFMAN_ONLY&&n.strategy!=e.Z_RLE&&n.strategy!=e.Z_FIXED&&n.strategy!=e.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+n.strategy);if(n.dictionary&&!t.isBuffer(n.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._handle=new nu.Zlib(i);var o=this;this._hadError=!1,this._handle.onerror=function(t,r){S(o),o._hadError=!0;var n=Error(t);n.errno=r,n.code=e.codes[r],o.emit("error",n)};var c=e.Z_DEFAULT_COMPRESSION;"number"==typeof n.level&&(c=n.level);var s=e.Z_DEFAULT_STRATEGY;"number"==typeof n.strategy&&(s=n.strategy),this._handle.init(n.windowBits||e.Z_DEFAULT_WINDOWBITS,c,n.memLevel||e.Z_DEFAULT_MEMLEVEL,s,n.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=s,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function S(e,t){t&&e$.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function O(e){e.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(u),writable:!1}),e.Deflate=g,e.Inflate=p,e.Gzip=v,e.Gunzip=y,e.DeflateRaw=A,e.InflateRaw=b,e.Unzip=_,e.createDeflate=function(e){return new g(e)},e.createInflate=function(e){return new p(e)},e.createDeflateRaw=function(e){return new A(e)},e.createInflateRaw=function(e){return new b(e)},e.createGzip=function(e){return new v(e)},e.createGunzip=function(e){return new y(e)},e.createUnzip=function(e){return new _(e)},e.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new g(t),e,r)},e.deflateSync=function(e,t){return m(new g(t),e)},e.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new v(t),e,r)},e.gzipSync=function(e,t){return m(new v(t),e)},e.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new A(t),e,r)},e.deflateRawSync=function(e,t){return m(new A(t),e)},e.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new _(t),e,r)},e.unzipSync=function(e,t){return m(new _(t),e)},e.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new p(t),e,r)},e.inflateSync=function(e,t){return m(new p(t),e)},e.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new y(t),e,r)},e.gunzipSync=function(e,t){return m(new y(t),e)},e.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),f(new b(t),e,r)},e.inflateRawSync=function(e,t){return m(new b(t),e)},tI.inherits(T,r),T.prototype.params=function(t,r,i){if(te.Z_MAX_LEVEL)throw RangeError("Invalid compression level: "+t);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw TypeError("Invalid strategy: "+r);if(this._level!==t||this._strategy!==r){var a=this;this.flush(nu.Z_SYNC_FLUSH,function(){n(a._handle,"zlib binding closed"),a._handle.params(t,r),!a._hadError&&(a._level=t,a._strategy=r,i&&i())})}else e$.nextTick(i)},T.prototype.reset=function(){return n(this._handle,"zlib binding closed"),this._handle.reset()},T.prototype._flush=function(e){this._transform(t.alloc(0),"",e)},T.prototype.flush=function(e,r){var n=this,i=this._writableState;"function"!=typeof e&&(void 0!==e||r)||(r=e,e=nu.Z_FULL_FLUSH),i.ended?r&&e$.nextTick(r):i.ending?r&&this.once("end",r):i.needDrain?r&&this.once("drain",function(){return n.flush(e,r)}):(this._flushFlag=e,this.write(t.alloc(0),"",r))},T.prototype.close=function(e){S(this,e),e$.nextTick(O,this)},T.prototype._transform=function(e,r,n){var i,a=this._writableState,o=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||t.isBuffer(e)?this._handle?void(o?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||nu.Z_NO_FLUSH)),this._processChunk(e,i,n)):n(Error("zlib binding closed")):n(Error("invalid input"))},T.prototype._processChunk=function(e,r,o){var c=e&&e.length,s=this._chunkSize-this._offset,u=0,l=this,h="function"==typeof o;if(!h){var d,f=[],m=0;this.on("error",function(e){d=e}),n(this._handle,"zlib binding closed");do var g=this._handle.writeSync(r,e,u,c,this._buffer,this._offset,s);while(!this._hadError&&y(g[0],g[1]));if(this._hadError)throw d;if(m>=i)throw S(this),RangeError(a);var p=t.concat(f,m);return S(this),p}n(this._handle,"zlib binding closed");var v=this._handle.write(r,e,u,c,this._buffer,this._offset,s);function y(i,a){if(this&&(this.buffer=null,this.callback=null),!l._hadError){var d=s-a;if(n(d>=0,"have should not go down"),d>0){var g=l._buffer.slice(l._offset,l._offset+d);l._offset+=d,h?l.push(g):(f.push(g),m+=g.length)}if((0===a||l._offset>=l._chunkSize)&&(s=l._chunkSize,l._offset=0,l._buffer=t.allocUnsafe(l._chunkSize)),0===a){if(u+=c-i,c=i,!h)return!0;var p=l._handle.write(r,e,u,c,l._buffer,l._offset,l._chunkSize);return p.callback=y,void(p.buffer=e)}if(!h)return!1;o()}}v.buffer=e,v.callback=y},tI.inherits(g,T),tI.inherits(p,T),tI.inherits(v,T),tI.inherits(y,T),tI.inherits(A,T),tI.inherits(b,T),tI.inherits(_,T)}(ns);var nW=eP(ns),nz=function(e){function t(t,r,n){var i;return(i=e.call(this,{decodeStrings:!1})||this).finalize=i.finalize.bind((0,D.Z)(i)),i.document=t,i.id=r,null==n&&(n={}),i.data=n,i.gen=0,i.deflate=null,i.compress=i.document.compress&&!i.data.Filter,i.uncompressedLength=0,i.chunks=[],i}(0,U.Z)(t,e);var r=t.prototype;return r.initDeflate=function(){var e=this;return this.data.Filter="FlateDecode",this.deflate=nW.createDeflate(),this.deflate.on("data",function(t){return e.chunks.push(t),e.data.Length+=t.length}),this.deflate.on("end",this.finalize)},r._write=function(e,t,r){return e instanceof Uint8Array||(e=ea.from(e+"\n","binary")),this.uncompressedLength+=e.length,null==this.data.Length&&(this.data.Length=0),this.compress?(this.deflate||this.initDeflate(),this.deflate.write(e)):(this.chunks.push(e),this.data.Length+=e.length),r()},r.end=function(){return(e.prototype.end.apply(this,arguments),this.deflate)?this.deflate.end():this.finalize()},r.finalize=function(){if(this.offset=this.document._offset,this.document._write(this.id+" "+this.gen+" obj"),this.document._write(nH.convert(this.data)),this.chunks.length){this.document._write("stream");for(var e=0,t=Array.from(this.chunks);e1){var n=t[0],i=t[t.length-1];r.push(" /Limits "+nH.convert([this._dataForKey(n),this._dataForKey(i)]))}r.push(" /"+this._keysName()+" [");for(var a,o=(0,M.Z)(t);!(a=o()).done;){var c=a.value;r.push(" "+nH.convert(this._dataForKey(c))+" "+nH.convert(this._items[c]))}return r.push("]"),r.push(">>"),r.join("\n")},t._compareKeys=function(){throw Error("Must be implemented by subclasses")},t._keysName=function(){throw Error("Must be implemented by subclasses")},t._dataForKey=function(){throw Error("Must be implemented by subclasses")},e}(),nq=function(e){function t(){return e.apply(this,arguments)||this}(0,U.Z)(t,e);var r=t.prototype;return r._compareKeys=function(e,t){return e.localeCompare(t)},r._keysName=function(){return"Names"},r._dataForKey=function(e){return new String(e)},t}(nj),nV=/[\n\r\t\b\f\(\)\\]/g,nK={"\n":"\\n","\r":"\\r"," ":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},nZ=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},nG=function(e){var t=e.length;if(1&t)throw Error("Buffer length must be even");for(var r=0,n=t-1;r127){n=!0;break}return n&&(r=nG(ea.from("\uFEFF"+r,"utf16le")).toString("binary")),"("+(r=r.replace(nV,function(e){return nK[e]}))+")"}if(ea.isBuffer(t))return"<"+t.toString("hex")+">";if(t instanceof nz||t instanceof nq)return t.toString();if(t instanceof Date)return"(D:"+nZ(t.getUTCFullYear(),4)+nZ(t.getUTCMonth()+1,2)+nZ(t.getUTCDate(),2)+nZ(t.getUTCHours(),2)+nZ(t.getUTCMinutes(),2)+nZ(t.getUTCSeconds(),2)+"Z)";if(Array.isArray(t))return"["+Array.from(t).map(function(t){return e.convert(t)}).join(" ")+"]";if("[object Object]"===({}).toString.call(t)){var o=["<<"];for(var c in t){var s=t[c];o.push("/"+c+" "+e.convert(s))}return o.push(">>"),o.join("\n")}return"number"==typeof t?e.number(t):""+t},e.number=function(e){if(e>-1e21&&e<1e21)return Math.round(1e6*e)/1e6;throw Error("unsupported number: "+e)},e}(),nJ={top:72,left:72,bottom:72,right:72},nX={"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]},nQ=function(){function e(e,t){void 0===t&&(t={}),this.document=e,this.size=t.size||"letter",this.layout=t.layout||"portrait",this.userUnit=t.userUnit||1,"number"==typeof t.margin?this.margins={top:t.margin,left:t.margin,bottom:t.margin,right:t.margin}:this.margins=t.margins||nJ;var r=Array.isArray(this.size)?this.size:nX[this.size.toUpperCase()];this.width=r["portrait"===this.layout?0:1],this.height=r["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,UserUnit:this.userUnit}),this.markings=[]}var t=e.prototype;return t.maxY=function(){return this.height-this.margins.bottom},t.write=function(e){return this.content.write(e)},t.end=function(){return this.dictionary.end(),this.resources.end(),this.content.end()},(0,I.Z)(e,[{key:"fonts",get:function(){var e=this.resources.data;return null!=e.Font?e.Font:e.Font={}}},{key:"xobjects",get:function(){var e=this.resources.data;return null!=e.XObject?e.XObject:e.XObject={}}},{key:"ext_gstates",get:function(){var e=this.resources.data;return null!=e.ExtGState?e.ExtGState:e.ExtGState={}}},{key:"patterns",get:function(){var e=this.resources.data;return null!=e.Pattern?e.Pattern:e.Pattern={}}},{key:"colorSpaces",get:function(){var e=this.resources.data;return e.ColorSpace||(e.ColorSpace={})}},{key:"annotations",get:function(){var e=this.dictionary.data;return null!=e.Annots?e.Annots:e.Annots=[]}},{key:"structParentTreeKey",get:function(){var e=this.dictionary.data;return null!=e.StructParents?e.StructParents:e.StructParents=this.document.createStructParentTreeNextKey()}}]),e}(),n$=function(e){for(var t=[],r=0;r>8*(3-r%4)&255);return ea.from(t)},n0=function(){function e(){}return e.generateFileID=function(e){void 0===e&&(e={});var t=e.CreationDate.getTime()+"\n";for(var r in e)e.hasOwnProperty(r)&&(t+=r+": "+e[r].valueOf()+"\n");return n$(N(t))},e}(),n5=nH.number,n1=function(){function e(e){this.doc=e,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}var t=e.prototype;return t.stop=function(e,t,r){if(null==r&&(r=1),t=this.doc._normalizeColor(t),0===this.stops.length){if(3===t.length)this._colorSpace="DeviceRGB";else if(4===t.length)this._colorSpace="DeviceCMYK";else if(1===t.length)this._colorSpace="DeviceGray";else throw Error("Unknown color space")}else if("DeviceRGB"===this._colorSpace&&3!==t.length||"DeviceCMYK"===this._colorSpace&&4!==t.length||"DeviceGray"===this._colorSpace&&1!==t.length)throw Error("All gradient stops must use the same color space");return r=Math.max(0,Math.min(1,r)),this.stops.push([e,t,r]),this},t.setTransform=function(e,t,r,n,i,a){return this.transform=[e,t,r,n,i,a],this},t.embed=function(e){var t=this.stops.length;if(0!==t){this.embedded=!0,this.matrix=e;var r=this.stops[t-1];r[0]<1&&this.stops.push([1,r[1],r[2]]);for(var n=[],i=[],a=[],o=0;o1&&(r*=d=Math.sqrt(d),n*=d);var f=h/r,m=l/r,g=-l/n,p=h/n,v=f*c+m*s,y=g*c+p*s,A=f*e+m*t,b=g*e+p*t,_=1/((A-v)*(A-v)+(b-y)*(b-y))-.25;_<0&&(_=0);var w=Math.sqrt(_);a===i&&(w=-w);var T=.5*(v+A)-w*(b-y),S=.5*(y+b)+w*(A-v),O=Math.atan2(y-S,v-T),x=Math.atan2(b-S,A-T)-O;x<0&&1===a?x+=2*Math.PI:x>0&&0===a&&(x-=2*Math.PI);for(var R=Math.ceil(Math.abs(x/(.5*Math.PI+.001))),C=[],U=0;Ua;i?o++:o--)n.push(o);return n},ig={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},ip=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n\nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n\nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n\ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n\nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n\nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n\nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n\nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/),iv=function(){function e(e){var t=this;"string"==typeof e?(this.contents=e,this.parse()):(this.attributes=e.attributes,this.glyphWidths=e.glyphWidths,this.kernPairs=e.kernPairs),this.charWidths=im(0,255,!0).map(function(e){return t.glyphWidths[ip[e]]}),this.bbox=Array.from(this.attributes.FontBBox.split(/\s+/)).map(function(e){return+e}),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}e.open=function(e){throw Error("AFMFont.open not available on browser build")},e.fromJson=function(t){return new e(t)};var t=e.prototype;return t.parse=function(){var e=function(e){for(var t,r={attributes:{},glyphWidths:{},kernPairs:{}},n="",i=(0,M.Z)(e.split("\n"));!(t=i()).done;){var a,o,c=t.value;if(a=c.match(/^Start(\w+)/)){n=a[1];continue}if(a=c.match(/^End(\w+)/)){n="";continue}switch(n){case"FontMetrics":var s=(a=c.match(/(^\w+)\s+(.*)/))[1],u=a[2];(o=r.attributes[s])?(Array.isArray(o)||(o=r.attributes[s]=[o]),o.push(u)):r.attributes[s]=u;break;case"CharMetrics":if(!/^CH?\s/.test(c))continue;var l=c.match(/\bN\s+(\.?\w+)\s*;/)[1];r.glyphWidths[l]=+c.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(a=c.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(r.kernPairs[a[1]+a[2]]=parseInt(a[3]))}}return r}(this.contents);this.attributes=e.attributes,this.glyphWidths=e.glyphWidths,this.kernPairs=e.kernPairs},t.encodeText=function(e){for(var t=[],r=0,n=e.length,i=0<=n;i?rn;i?r++:r--){var a=e.charCodeAt(r);a=ig[a]||a,t.push(a.toString(16))}return t},t.glyphsForString=function(e){for(var t=[],r=0,n=e.length,i=0<=n;i?rn;i?r++:r--){var a=e.charCodeAt(r);t.push(this.characterToGlyph(a))}return t},t.characterToGlyph=function(e){return ip[ig[e]||e]||".notdef"},t.widthOfGlyph=function(e){return this.glyphWidths[e]||0},t.getKernPair=function(e,t){return this.kernPairs[e+t]||0},t.advancesForGlyphs=function(e){for(var t=[],r=0;r>8,n=0;this.font.post.isFixedPitch&&(n|=1),1<=r&&r<=7&&(n|=2),n|=4,10===r&&(n|=8),this.font.head.macStyle.italic&&(n|=64);var i=[0,1,2,3,4,5].map(function(){return String.fromCharCode(26*Math.random()+65)}).join("")+"+"+this.font.postscriptName,a=this.font.bbox,o=this.document.ref({Type:"FontDescriptor",FontName:i,Flags:n,FontBBox:[a.minX*this.scale,a.minY*this.scale,a.maxX*this.scale,a.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});e?o.data.FontFile3=t:o.data.FontFile2=t,o.end();var c={Type:"Font",Subtype:"CIDFontType0",BaseFont:i,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:o,W:[0,this.widths]};e||(c.Subtype="CIDFontType2",c.CIDToGIDMap="Identity");var s=this.document.ref(c);return s.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:i,Encoding:"Identity-H",DescendantFonts:[s],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()},r.toUnicodeCmap=function(){for(var e,t=this.document.ref(),r=[],n="/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>\nendcodespacerange",i=(0,M.Z)(this.unicode.entries());!(e=i()).done;){var a=e.value,o=a[0],c=a[1],s=[];r.length>=100&&(n+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]);for(var u,l=(0,M.Z)(c);!(u=l()).done;){var h=u.value;h>65535&&(h-=65536,s.push(iA(h>>>10&1023|55296)),h=56320|1023&h),s.push(iA(h))}r.push("<"+iA(o)+"><"+s.join(" ")+">")}return r.length&&(n+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),n+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend",t.end(n),t},t}(ib),iT=nH.number,iS={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"},iO=function(){function e(e,t){if(this.data=e,this.label=t,this.orientation=1,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(var r=W.Z.decode(this.data),n=0;n0){this.options.expanded&&(this.outlineData.Count=this.children.length);var e=this.children[0],t=this.children[this.children.length-1];this.outlineData.First=e.dictionary,this.outlineData.Last=t.dictionary;for(var r=0,n=this.children.length;r0&&(i.outlineData.Prev=this.children[r-1].dictionary),r\n \n \n ')},t.append=function(e,t){void 0===t&&(t=!0),this._metadata=this._metadata.concat(e),t&&(this._metadata=this._metadata.concat("\n"))},t.getXML=function(){return this._metadata},t.getLength=function(){return this._metadata.length},t.end=function(){this._closeTags(),this._metadata=this._metadata.trim()},e}(),iI=function(e){return e[0].toUpperCase()+e.slice(1)},iN=function(e){function t(t){switch(void 0===t&&(t={}),(r=e.call(this)||this).options=t,t.pdfVersion){case"1.4":r.version=1.4;break;case"1.5":r.version=1.5;break;case"1.6":r.version=1.6;break;case"1.7":case"1.7ext3":r.version=1.7;break;default:r.version=1.3}r.compress=null==r.options.compress||r.options.compress,r._pageBuffer=[],r._pageBufferStart=0,r._offsets=[],r._waiting=0,r._ended=!1,r._offset=0;var r,n=r.ref({Type:"Pages",Count:0,Kids:[]}),i=r.ref({Dests:new nq});if(r._root=r.ref({Type:"Catalog",Pages:n,Names:i}),r.options.lang&&(r._root.data.Lang=new String(r.options.lang)),r.options.pageLayout&&(r._root.data.PageLayout=iI(r.options.pageLayout)),r.options.pageMode&&(r._root.data.PageMode=iI(r.options.pageMode)),r.page=null,r.initColor(),r.initVector(),r.initFonts(),r.initText(),r.initImages(),r.initOutline(),r.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},r.options.info)for(var a in r.options.info){var o=r.options.info[a];r.info[a]=o}return r.options.displayTitle&&(r._root.data.ViewerPreferences=r.ref({DisplayDocTitle:!0})),r._id=n0.generateFileID(r.info),r._write("%PDF-"+r.version),r._write("%\xff\xff\xff\xff"),!1!==r.options.autoFirstPage&&r.addPage(),r}(0,U.Z)(t,e);var r=t.prototype;return r.addPage=function(e){null==e&&(e=this.options),this.options.bufferPages||this.flushPages(),this.page=new nQ(this,e),this._pageBuffer.push(this.page);var t=this._root.data.Pages.data;return t.Kids.push(this.page.dictionary),t.Count++,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this},r.flushPages=function(){var e=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=e.length;for(var t=0,r=Array.from(e);t1?t-1:0),n=1;n\n '+this.info.CreationDate.toISOString().split(".")[0]+"Z\n "+this.info.Creator+"\n \n "),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML('\n \n '),this.info.Title&&this.appendXML('\n \n \n '+this.info.Title+"\n \n \n "),this.info.Author&&this.appendXML("\n \n \n "+this.info.Author+"\n \n \n "),this.info.Subject&&this.appendXML('\n \n \n '+this.info.Subject+"\n \n \n "),this.appendXML("\n \n ")),this.appendXML('\n \n '+this.info.Creator+"",!1),this.info.Keywords&&this.appendXML("\n "+this.info.Keywords+"",!1),this.appendXML("\n \n ")},endMetadata:function(){this._addInfo(),this.metadata.end(),1.3!=this.version&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write(ea.from(this.metadata.getXML(),"utf-8")),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}}),iB({initColor:function(){return this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor:function(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 t=parseInt(e.slice(1),16);e=[t>>16,t>>8&255,255&t]}else n7[e]&&(e=n7[e])}return Array.isArray(e)?(3===e.length?e=e.map(function(e){return e/255}):4===e.length&&(e=e.map(function(e){return e/100})),e):null},_setColor:function(e,t){return e instanceof n1?(e.apply(t),!0):Array.isArray(e)&&e[0]instanceof n6?(e[0].apply(t,e[1]),!0):this._setColorCore(e,t)},_setColorCore:function(e,t){if(!(e=this._normalizeColor(e)))return!1;var r=t?"SCN":"scn",n=this._getColorSpace(e);return this._setColorSpace(n,t),e=e.join(" "),this.addContent(e+" "+r),!0},_setColorSpace:function(e,t){return this.addContent("/"+e+" "+(t?"CS":"cs"))},_getColorSpace:function(e){return 4===e.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(e,t){return this._setColor(e,!1)&&this.fillOpacity(t),this._fillColor=[e,t],this},strokeColor:function(e,t){return this._setColor(e,!0)&&this.strokeOpacity(t),this},opacity:function(e){return this._doOpacity(e,e),this},fillOpacity:function(e){return this._doOpacity(e,null),this},strokeOpacity:function(e){return this._doOpacity(null,e),this},_doOpacity:function(e,t){if(null!=e||null!=t){null!=e&&(e=Math.max(0,Math.min(1,e))),null!=t&&(t=Math.max(0,Math.min(1,t)));var r,n,i=e+"_"+t;if(this._opacityRegistry[i]){var a=this._opacityRegistry[i];r=a[0],n=a[1]}else r={Type:"ExtGState"},null!=e&&(r.ca=e),null!=t&&(r.CA=t),(r=this.ref(r)).end(),n="Gs"+ ++this._opacityCount,this._opacityRegistry[i]=[r,n];return this.page.ext_gstates[n]=r,this.addContent("/"+n+" gs")}},linearGradient:function(e,t,r,n){return new n2(this,e,t,r,n)},radialGradient:function(e,t,r,n,i,a){return new n3(this,e,t,r,n,i,a)},pattern:function(e,t,r,n){return new n6(this,e,t,r,n)}}),iB({initVector:function(){return this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save:function(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore:function(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath:function(){return this.addContent("h")},lineWidth:function(e){return this.addContent(il(e)+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function(e){return"string"==typeof e&&(e=this._CAP_STYLES[e.toUpperCase()]),this.addContent(e+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function(e){return"string"==typeof e&&(e=this._JOIN_STYLES[e.toUpperCase()]),this.addContent(e+" j")},miterLimit:function(e){return this.addContent(il(e)+" M")},dash:function(e,t){void 0===t&&(t={});var r=e;if(Array.isArray(e)||(e=[e,t.space||e]),!e.every(function(e){return Number.isFinite(e)&&e>=0}))throw Error("dash("+JSON.stringify(r)+", "+JSON.stringify(t)+") invalid, lengths must be numeric and greater than or equal to zero");return e=e.map(il).join(" "),this.addContent("["+e+"] "+il(t.phase||0)+" d")},undash:function(){return this.addContent("[] 0 d")},moveTo:function(e,t){return this.addContent(il(e)+" "+il(t)+" m")},lineTo:function(e,t){return this.addContent(il(e)+" "+il(t)+" l")},bezierCurveTo:function(e,t,r,n,i,a){return this.addContent(il(e)+" "+il(t)+" "+il(r)+" "+il(n)+" "+il(i)+" "+il(a)+" c")},quadraticCurveTo:function(e,t,r,n){return this.addContent(il(e)+" "+il(t)+" "+il(r)+" "+il(n)+" v")},rect:function(e,t,r,n){return this.addContent(il(e)+" "+il(t)+" "+il(r)+" "+il(n)+" re")},roundedRect:function(e,t,r,n,i){null==i&&(i=0);var a=(i=Math.min(i,.5*r,.5*n))*(1-ih);return this.moveTo(e+i,t),this.lineTo(e+r-i,t),this.bezierCurveTo(e+r-a,t,e+r,t+a,e+r,t+i),this.lineTo(e+r,t+n-i),this.bezierCurveTo(e+r,t+n-a,e+r-a,t+n,e+r-i,t+n),this.lineTo(e+i,t+n),this.bezierCurveTo(e+a,t+n,e,t+n-a,e,t+n-i),this.lineTo(e,t+i),this.bezierCurveTo(e,t+a,e+a,t,e+i,t),this.closePath()},ellipse:function(e,t,r,n){null==n&&(n=r),e-=r,t-=n;var i=r*ih,a=n*ih,o=e+2*r,c=t+2*n,s=e+r,u=t+n;return this.moveTo(e,u),this.bezierCurveTo(e,u-a,s-i,t,s,t),this.bezierCurveTo(s+i,t,o,u-a,o,u),this.bezierCurveTo(o,u+a,s+i,c,s,c),this.bezierCurveTo(s-i,c,e,u+a,e,u),this.closePath()},circle:function(e,t,r){return this.ellipse(e,t,r)},arc:function(e,t,r,n,i,a){null==a&&(a=!1);var o=2*Math.PI,c=.5*Math.PI,s=i-n;Math.abs(s)>o?s=o:0!==s&&a!==s<0&&(s=(a?-1:1)*o+s);var u=Math.ceil(Math.abs(s)/c),l=s/u,h=l/c*ih*r,d=n,f=-Math.sin(d)*h,m=Math.cos(d)*h,g=e+Math.cos(d)*r,p=t+Math.sin(d)*r;this.moveTo(g,p);for(var v=0;v "+iT(-i))}return u=r},f=function(e){if(d(e),c.length>0)return o.addContent("["+c.join(" ")+"] TJ"),c.length=0};for(a=0;a4){var y=[v,p];p=y[0],v=y[1]}var A=n.width||p,b=n.height||v;if(n.width&&!n.height){var _=A/p;A=p*_,b=v*_}else if(n.height&&!n.width){var w=b/v;A=p*w,b=v*w}else if(n.scale)A=p*n.scale,b=v*n.scale;else if(n.fit){var T=n.fit;a=(o=T[0])/(i=T[1]),(s=p/v)>a?(A=o,b=o/s):(b=i,A=i*s)}else if(n.cover){var S=n.cover;a=(o=S[0])/(i=S[1]),(s=p/v)>a?(b=i,A=i*s):(A=o,b=o/s)}if((n.fit||n.cover)&&("center"===n.align?t=t+o/2-A/2:"right"===n.align&&(t=t+o-A),"center"===n.valign?r=r+i/2-b/2:"bottom"===n.valign&&(r=r+i-b)),m)r-=b=-b,h=0;else switch(c.orientation){default:case 1:r-=b=-b,h=0;break;case 2:b=-b,t-=A=-A,r-=b,h=0;break;case 3:d=t,f=r,b=-b,t-=A,h=180;break;case 4:break;case 5:d=t,f=r;var O=[b,A];A=O[0],r-=b=O[1],h=90;break;case 6:d=t,f=r;var x=[b,A];A=x[0],b=-(b=x[1]),h=90;break;case 7:d=t,f=r;var k=[b,A];A=k[0],b=-(b=k[1]),t-=A=-A,h=90;break;case 8:d=t,f=r;var E=[b,A];A=E[0],b=-(b=E[1]),t-=A,r-=b,h=-90}return this.y===r&&(this.y+=b),this.save(),h&&this.rotate(h,{origin:[d,f]}),this.transform(A,0,0,b,t,r),this.addContent("/"+c.label+" Do"),this.restore(),this},openImage:function(e){var t;return"string"==typeof e&&(t=this._imageRegistry[e]),t||(t=ik.open(e,"I"+ ++this._imageCount),"string"!=typeof e||(this._imageRegistry[e]=t)),t}}),iB({annotate:function(e,t,r,n,i){for(var a in i.Type="Annot",i.Rect=this._convertRect(e,t,r,n),i.Border=[0,0,0],"Link"===i.Subtype&&void 0===i.F&&(i.F=4),"Link"!==i.Subtype&&null==i.C&&(i.C=this._normalizeColor(i.color||[0,0,0])),delete i.color,"string"==typeof i.Dest&&(i.Dest=new String(i.Dest)),i){var o=i[a];i[a[0].toUpperCase()+a.slice(1)]=o}var c=this.ref(i);return this.page.annotations.push(c),c.end(),this},note:function(e,t,r,n,i,a){return void 0===a&&(a={}),a.Subtype="Text",a.Contents=new String(i),a.Name="Comment",null==a.color&&(a.color=[243,223,92]),this.annotate(e,t,r,n,a)},goTo:function(e,t,r,n,i,a){return void 0===a&&(a={}),a.Subtype="Link",a.A=this.ref({S:"GoTo",D:new String(i)}),a.A.end(),this.annotate(e,t,r,n,a)},link:function(e,t,r,n,i,a){if(void 0===a&&(a={}),a.Subtype="Link","number"==typeof i){var o=this._root.data.Pages.data;if(i>=0&&i0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}}),iB({initMarkings:function(e){this.structChildren=[],e.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(e,t){if(void 0===t&&(t=null),"Artifact"===e||t&&t.mcid){var r=0;for(this.page.markings.forEach(function(e){(r||e.structContent||"Artifact"===e.tag)&&r++});r--;)this.endMarkedContent()}if(!t)return this.page.markings.push({tag:e}),this.addContent("/"+e+" BMC"),this;this.page.markings.push({tag:e,options:t});var n={};return void 0!==t.mcid&&(n.MCID=t.mcid),"Artifact"===e&&("string"==typeof t.type&&(n.Type=t.type),Array.isArray(t.bbox)&&(n.BBox=[t.bbox[0],this.page.height-t.bbox[3],t.bbox[2],this.page.height-t.bbox[1]]),Array.isArray(t.attached)&&t.attached.every(function(e){return"string"==typeof e})&&(n.Attached=t.attached)),"Span"===e&&(t.lang&&(n.Lang=new String(t.lang)),t.alt&&(n.Alt=new String(t.alt)),t.expanded&&(n.E=new String(t.expanded)),t.actual&&(n.ActualText=new String(t.actual))),this.addContent("/"+e+" "+nH.convert(n)+" BDC"),this},markStructureContent:function(e,t){void 0===t&&(t={});var r=this.getStructParentTree().get(this.page.structParentTreeKey),n=r.length;r.push(null),this.markContent(e,(0,j.Z)({},t,{mcid:n}));var i=new iR(this.page.dictionary,n);return this.page.markings.slice(-1)[0].structContent=i,i},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r=null),new iC(this,e,t,r)},addStructure:function(e){var t=this.getStructTreeRoot();return e.setParent(t),e.setAttached(),this.structChildren.push(e),t.data.K||(t.data.K=[]),t.data.K.push(e.dictionary),this},initPageMarkings:function(e){var t=this;e.forEach(function(e){if(e.structContent){var r=e.structContent,n=t.markStructureContent(e.tag,e.options);r.push(n),t.page.markings.slice(-1)[0].structContent=r}else t.markContent(e.tag,e.options)})},endPageMarkings:function(e){var t=e.markings;return t.forEach(function(){return e.write("EMC")}),e.markings=[],t},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new iU,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var e=this.getStructTreeRoot(),t=e.data.ParentTreeNextKey++;return e.data.ParentTree.add(t,[]),t},endMarkings:function(){var e=this._root.data.StructTreeRoot;e&&(e.end(),this.structChildren.forEach(function(e){return e.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}}),iB({initForm:function(){if(!this._font)throw Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();var e={Fields:[],NeedAppearances:!0,DA:new String("/"+this._font.id+" 0 Tf 0 g"),DR:{Font:{}}};e.DR.Font[this._font.id]=this._font.ref();var t=this.ref(e);return this._root.data.AcroForm=t,this},endAcroForm:function(){var e=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw Error("No fonts specified for PDF form");var t=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(r){t[r]=e._acroform.fonts[r]}),this._root.data.AcroForm.data.Fields.forEach(function(t){e._endChild(t)}),this._root.data.AcroForm.end()}return this},_endChild:function(e){var t=this;return Array.isArray(e.data.Kids)&&(e.data.Kids.forEach(function(e){t._endChild(e)}),e.end()),this},formField:function(e,t){void 0===t&&(t={});var r=this._fieldDict(e,null,t),n=this.ref(r);return this._addToParent(n),n},formAnnotation:function(e,t,r,n,i,a,o){void 0===o&&(o={});var c=this._fieldDict(e,t,o);c.Subtype="Widget",void 0===c.F&&(c.F=4),this.annotate(r,n,i,a,c);var s=this.page.annotations[this.page.annotations.length-1];return this._addToParent(s)},formText:function(e,t,r,n,i,a){return void 0===a&&(a={}),this.formAnnotation(e,"text",t,r,n,i,a)},formPushButton:function(e,t,r,n,i,a){return void 0===a&&(a={}),this.formAnnotation(e,"pushButton",t,r,n,i,a)},formCombo:function(e,t,r,n,i,a){return void 0===a&&(a={}),this.formAnnotation(e,"combo",t,r,n,i,a)},formList:function(e,t,r,n,i,a){return void 0===a&&(a={}),this.formAnnotation(e,"list",t,r,n,i,a)},formRadioButton:function(e,t,r,n,i,a){return void 0===a&&(a={}),this.formAnnotation(e,"radioButton",t,r,n,i,a)},formCheckbox:function(e,t,r,n,i,a){return void 0===a&&(a={}),this.formAnnotation(e,"checkbox",t,r,n,i,a)},_addToParent:function(e){var t=e.data.Parent;return t?(t.data.Kids||(t.data.Kids=[]),t.data.Kids.push(e)):this._root.data.AcroForm.data.Fields.push(e),this},_fieldDict:function(e,t,r){if(void 0===r&&(r={}),!this._acroform)throw Error("Call document.initForms() method before adding form elements to document");var n=Object.assign({},r);return null!==t&&(n=this._resolveType(t,r)),n=this._resolveFlags(n),n=this._resolveJustify(n),n=this._resolveFont(n),n=this._resolveStrings(n),n=this._resolveColors(n),(n=this._resolveFormat(n)).T=new String(e),n.parent&&(n.Parent=n.parent,delete n.parent),n},_resolveType:function(e,t){if("text"===e)t.FT="Tx";else if("pushButton"===e)t.FT="Btn",t.pushButton=!0;else if("radioButton"===e)t.FT="Btn",t.radioButton=!0;else if("checkbox"===e)t.FT="Btn";else if("combo"===e)t.FT="Ch",t.combo=!0;else if("list"===e)t.FT="Ch";else throw Error("Invalid form annotation type '"+e+"'");return t},_resolveFormat:function(e){var t=e.format;if(t&&t.type){var r,n,i="";if(void 0!==iL[t.type])r="AFSpecial_Keystroke",n="AFSpecial_Format",i=iL[t.type];else{var a=t.type.charAt(0).toUpperCase()+t.type.slice(1);if(r="AF"+a+"_Keystroke",n="AF"+a+"_Format","date"===t.type)r+="Ex",i=String(t.param);else if("time"===t.type)i=String(t.param);else if("number"===t.type){var o=Object.assign({},iY.number,t);i=String([String(o.nDec),o.sepComma?"0":"1",'"'+o.negStyle+'"',"null",'"'+o.currency+'"',String(o.currencyPrepend)].join(","))}else if("percent"===t.type){var c=Object.assign({},iY.percent,t);i=String([String(c.nDec),c.sepComma?"0":"1"].join(","))}}e.AA=e.AA?e.AA:{},e.AA.K={S:"JavaScript",JS:new String(r+"("+i+");")},e.AA.F={S:"JavaScript",JS:new String(n+"("+i+");")}}return delete e.format,e},_resolveColors:function(e){var t=this._normalizeColor(e.backgroundColor);return t&&(e.MK||(e.MK={}),e.MK.BG=t),(t=this._normalizeColor(e.borderColor))&&(e.MK||(e.MK={}),e.MK.BC=t),delete e.backgroundColor,delete e.borderColor,e},_resolveFlags:function(e){var t=0;return Object.keys(e).forEach(function(r){iD[r]&&(t|=iD[r],delete e[r])}),0!==t&&(e.Ff=e.Ff?e.Ff:0,e.Ff|=t),e},_resolveJustify:function(e){var t=0;return void 0!==e.align&&("number"==typeof iF[e.align]&&(t=iF[e.align]),delete e.align),0!==t&&(e.Q=t),e},_resolveFont:function(e){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){e.DR={Font:{}};var t=e.fontSize||0;e.DR.Font[this._font.id]=this._font.ref(),e.DA=new String("/"+this._font.id+" "+t+" Tf 0 g")}return e},_resolveStrings:function(e){var t=[];function r(e){if(Array.isArray(e))for(var r=0;r