mdast2docx 0.0.0-beta.0 → 0.1.0
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/README.md +203 -170
- package/dist/chunk-3ZZBJC3M.mjs +1 -0
- package/dist/chunk-7LR5HC5O.mjs +4 -0
- package/dist/chunk-7W4N3GRD.mjs +75 -0
- package/dist/chunk-GM6UUFDK.mjs +2 -0
- package/dist/chunk-TASCVLMX.mjs +1 -0
- package/dist/chunk-UXY5TDOP.mjs +1 -0
- package/dist/chunk-XIRSNIMN.mjs +1 -0
- package/dist/chunk-YKZOUIFR.mjs +1 -0
- package/dist/chunk-Z5DPYROV.mjs +31 -0
- package/dist/chunk-ZKNVKZAF.mjs +1 -0
- package/dist/index.d.ts +7 -8
- package/dist/index.js +2 -38
- package/dist/index.mjs +1 -1
- package/dist/multipart-parser-WKN2UV32.mjs +2 -0
- package/dist/plugins/html.d.ts +0 -0
- package/dist/plugins/html.js +1 -0
- package/dist/plugins/image.d.ts +37 -0
- package/dist/plugins/image.js +1 -0
- package/dist/plugins/image.mjs +1 -0
- package/dist/plugins/index.d.ts +4 -0
- package/dist/plugins/index.js +75 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/plugins/list.d.ts +57 -0
- package/dist/plugins/list.js +1 -0
- package/dist/plugins/list.mjs +1 -0
- package/dist/plugins/math.d.ts +11 -0
- package/dist/plugins/math.js +75 -0
- package/dist/plugins/math.mjs +1 -0
- package/dist/plugins/node-image.d.ts +27 -0
- package/dist/plugins/node-image.js +35 -0
- package/dist/plugins/node-image.mjs +1 -0
- package/dist/plugins/node.d.ts +1 -0
- package/dist/plugins/node.js +35 -0
- package/dist/plugins/node.mjs +1 -0
- package/dist/plugins/table.d.ts +26 -0
- package/dist/plugins/table.js +1 -0
- package/dist/plugins/table.mjs +1 -0
- package/dist/section.d.ts +9 -8
- package/dist/section.js +2 -38
- package/dist/section.mjs +1 -1
- package/dist/utils.d.ts +75 -20
- package/dist/utils.js +1 -37
- package/dist/utils.mjs +1 -1
- package/package.json +6 -20
- package/dist/chunk-KRMGJ4HN.mjs +0 -2
- package/dist/chunk-O6BHSWEF.mjs +0 -37
package/dist/utils.js
CHANGED
|
@@ -1,37 +1 @@
|
|
|
1
|
-
"use strict";var ft=Object.defineProperty;var Vs=Object.getOwnPropertyDescriptor;var $s=Object.getOwnPropertyNames;var Xs=Object.prototype.hasOwnProperty;var Zs=(w,d)=>{for(var s in d)ft(w,s,{get:d[s],enumerable:!0})},Ys=(w,d,s,a)=>{if(d&&typeof d=="object"||typeof d=="function")for(let h of $s(d))!Xs.call(w,h)&&h!==s&&ft(w,h,{get:()=>d[h],enumerable:!(a=Vs(d,h))||a.enumerable});return w};var Js=w=>Ys(ft({},"__esModule",{value:!0}),w);var No={};Zs(No,{convertInchesToTwip:()=>js,convertMillimetersToTwip:()=>Hs,defaultProps:()=>Io,getDefinitions:()=>Ws,getImageMimeType:()=>zs});module.exports=Js(No);var Qs=Object.defineProperty;var ea=(w,d,s)=>d in w?Qs(w,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):w[d]=s;var Se=(w,d,s)=>ea(w,typeof d!="symbol"?d+"":d,s),ta=(w,d,s)=>new Promise((a,h)=>{var c=o=>{try{r(s.next(o))}catch(S){h(S)}},p=o=>{try{r(s.throw(o))}catch(S){h(S)}},r=o=>o.done?a(o.value):Promise.resolve(o.value).then(c,p);r((s=s.apply(w,d)).next())}),Ge=class{constructor(d){Se(this,"rootKey"),this.rootKey=d}},ra=Object.seal({}),st=class extends Ge{constructor(d){super(d),Se(this,"root"),this.root=new Array}prepForXml(d){var s;d.stack.push(this);let a=this.root.map(h=>h instanceof Ge?h.prepForXml(d):h).filter(h=>h!==void 0);return d.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((s=a[0])!=null&&s._attr)?a[0]:a:ra}}addChildElement(d){return this.root.push(d),this}};var Jr=class extends Ge{constructor(d){super("_attr"),Se(this,"xmlKeys"),this.root=d}prepForXml(d){let s={};return Object.entries(this.root).forEach(([a,h])=>{if(h!==void 0){let c=this.xmlKeys&&this.xmlKeys[a]||a;s[c]=h}}),{_attr:s}}};var ye=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hs(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}var dt={},Qe={exports:{}},gn;function on(){if(gn)return Qe.exports;gn=1;var w=typeof Reflect=="object"?Reflect:null,d=w&&typeof w.apply=="function"?w.apply:function(E,P,F){return Function.prototype.apply.call(E,P,F)},s;w&&typeof w.ownKeys=="function"?s=w.ownKeys:Object.getOwnPropertySymbols?s=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:s=function(E){return Object.getOwnPropertyNames(E)};function a(i){console&&console.warn&&console.warn(i)}var h=Number.isNaN||function(E){return E!==E};function c(){c.init.call(this)}Qe.exports=c,Qe.exports.once=n,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var p=10;function r(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(i){if(typeof i!="number"||i<0||h(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");p=i}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||h(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function o(i){return i._maxListeners===void 0?c.defaultMaxListeners:i._maxListeners}c.prototype.getMaxListeners=function(){return o(this)},c.prototype.emit=function(E){for(var P=[],F=1;F<arguments.length;F++)P.push(arguments[F]);var W=E==="error",N=this._events;if(N!==void 0)W=W&&N.error===void 0;else if(!W)return!1;if(W){var X;if(P.length>0&&(X=P[0]),X instanceof Error)throw X;var ae=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw ae.context=X,ae}var k=N[E];if(k===void 0)return!1;if(typeof k=="function")d(k,this,P);else for(var M=k.length,g=I(k,M),F=0;F<M;++F)d(g[F],this,P);return!0};function S(i,E,P,F){var W,N,X;if(r(P),N=i._events,N===void 0?(N=i._events=Object.create(null),i._eventsCount=0):(N.newListener!==void 0&&(i.emit("newListener",E,P.listener?P.listener:P),N=i._events),X=N[E]),X===void 0)X=N[E]=P,++i._eventsCount;else if(typeof X=="function"?X=N[E]=F?[P,X]:[X,P]:F?X.unshift(P):X.push(P),W=o(i),W>0&&X.length>W&&!X.warned){X.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=i,ae.type=E,ae.count=X.length,a(ae)}return i}c.prototype.addListener=function(E,P){return S(this,E,P,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(E,P){return S(this,E,P,!0)};function T(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function R(i,E,P){var F={fired:!1,wrapFn:void 0,target:i,type:E,listener:P},W=T.bind(F);return W.listener=P,F.wrapFn=W,W}c.prototype.once=function(E,P){return r(P),this.on(E,R(this,E,P)),this},c.prototype.prependOnceListener=function(E,P){return r(P),this.prependListener(E,R(this,E,P)),this},c.prototype.removeListener=function(E,P){var F,W,N,X,ae;if(r(P),W=this._events,W===void 0)return this;if(F=W[E],F===void 0)return this;if(F===P||F.listener===P)--this._eventsCount===0?this._events=Object.create(null):(delete W[E],W.removeListener&&this.emit("removeListener",E,F.listener||P));else if(typeof F!="function"){for(N=-1,X=F.length-1;X>=0;X--)if(F[X]===P||F[X].listener===P){ae=F[X].listener,N=X;break}if(N<0)return this;N===0?F.shift():b(F,N),F.length===1&&(W[E]=F[0]),W.removeListener!==void 0&&this.emit("removeListener",E,ae||P)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(E){var P,F,W;if(F=this._events,F===void 0)return this;if(F.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):F[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete F[E]),this;if(arguments.length===0){var N=Object.keys(F),X;for(W=0;W<N.length;++W)X=N[W],X!=="removeListener"&&this.removeAllListeners(X);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(P=F[E],typeof P=="function")this.removeListener(E,P);else if(P!==void 0)for(W=P.length-1;W>=0;W--)this.removeListener(E,P[W]);return this};function O(i,E,P){var F=i._events;if(F===void 0)return[];var W=F[E];return W===void 0?[]:typeof W=="function"?P?[W.listener||W]:[W]:P?A(W):I(W,W.length)}c.prototype.listeners=function(E){return O(this,E,!0)},c.prototype.rawListeners=function(E){return O(this,E,!1)},c.listenerCount=function(i,E){return typeof i.listenerCount=="function"?i.listenerCount(E):x.call(i,E)},c.prototype.listenerCount=x;function x(i){var E=this._events;if(E!==void 0){var P=E[i];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function I(i,E){for(var P=new Array(E),F=0;F<E;++F)P[F]=i[F];return P}function b(i,E){for(;E+1<i.length;E++)i[E]=i[E+1];i.pop()}function A(i){for(var E=new Array(i.length),P=0;P<E.length;++P)E[P]=i[P].listener||i[P];return E}function n(i,E){return new Promise(function(P,F){function W(X){i.removeListener(E,N),F(X)}function N(){typeof i.removeListener=="function"&&i.removeListener("error",W),P([].slice.call(arguments))}m(i,E,N,{once:!0}),E!=="error"&&y(i,W,{once:!0})})}function y(i,E,P){typeof i.on=="function"&&m(i,"error",E,P)}function m(i,E,P,F){if(typeof i.on=="function")F.once?i.once(E,P):i.on(E,P);else if(typeof i.addEventListener=="function")i.addEventListener(E,function W(N){F.once&&i.removeEventListener(E,W),P(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}return Qe.exports}var et={exports:{}},yn;function Ne(){return yn||(yn=1,typeof Object.create=="function"?et.exports=function(d,s){s&&(d.super_=s,d.prototype=Object.create(s.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(d,s){if(s){d.super_=s;var a=function(){};a.prototype=s.prototype,d.prototype=new a,d.prototype.constructor=d}}),et.exports}function na(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}var fs={exports:{}},me=fs.exports={},be,Ee;function Qr(){throw new Error("setTimeout has not been defined")}function en(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?be=setTimeout:be=Qr}catch{be=Qr}try{typeof clearTimeout=="function"?Ee=clearTimeout:Ee=en}catch{Ee=en}})();function ds(w){if(be===setTimeout)return setTimeout(w,0);if((be===Qr||!be)&&setTimeout)return be=setTimeout,setTimeout(w,0);try{return be(w,0)}catch{try{return be.call(null,w,0)}catch{return be.call(this,w,0)}}}function ia(w){if(Ee===clearTimeout)return clearTimeout(w);if((Ee===en||!Ee)&&clearTimeout)return Ee=clearTimeout,clearTimeout(w);try{return Ee(w)}catch{try{return Ee.call(null,w)}catch{return Ee.call(this,w)}}}var Ae=[],Pe=!1,ke,it=-1;function sa(){!Pe||!ke||(Pe=!1,ke.length?Ae=ke.concat(Ae):it=-1,Ae.length&&ps())}function ps(){if(!Pe){var w=ds(sa);Pe=!0;for(var d=Ae.length;d;){for(ke=Ae,Ae=[];++it<d;)ke&&ke[it].run();it=-1,d=Ae.length}ke=null,Pe=!1,ia(w)}}me.nextTick=function(w){var d=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)d[s-1]=arguments[s];Ae.push(new ms(w,d)),Ae.length===1&&!Pe&&ds(ps)};function ms(w,d){this.fun=w,this.array=d}ms.prototype.run=function(){this.fun.apply(null,this.array)};me.title="browser";me.browser=!0;me.env={};me.argv=[];me.version="";me.versions={};function Re(){}me.on=Re;me.addListener=Re;me.once=Re;me.off=Re;me.removeListener=Re;me.removeAllListeners=Re;me.emit=Re;me.prependListener=Re;me.prependOnceListener=Re;me.listeners=function(w){return[]};me.binding=function(w){throw new Error("process.binding is not supported")};me.cwd=function(){return"/"};me.chdir=function(w){throw new Error("process.chdir is not supported")};me.umask=function(){return 0};var aa=fs.exports,he=na(aa),pt,vn;function ws(){return vn||(vn=1,pt=on().EventEmitter),pt}var mt={},je={},_n;function oa(){if(_n)return je;_n=1,je.byteLength=r,je.toByteArray=S,je.fromByteArray=O;for(var w=[],d=[],s=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,c=a.length;h<c;++h)w[h]=a[h],d[a.charCodeAt(h)]=h;d[45]=62,d[95]=63;function p(x){var I=x.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=x.indexOf("=");b===-1&&(b=I);var A=b===I?0:4-b%4;return[b,A]}function r(x){var I=p(x),b=I[0],A=I[1];return(b+A)*3/4-A}function o(x,I,b){return(I+b)*3/4-b}function S(x){var I,b=p(x),A=b[0],n=b[1],y=new s(o(x,A,n)),m=0,i=n>0?A-4:A,E;for(E=0;E<i;E+=4)I=d[x.charCodeAt(E)]<<18|d[x.charCodeAt(E+1)]<<12|d[x.charCodeAt(E+2)]<<6|d[x.charCodeAt(E+3)],y[m++]=I>>16&255,y[m++]=I>>8&255,y[m++]=I&255;return n===2&&(I=d[x.charCodeAt(E)]<<2|d[x.charCodeAt(E+1)]>>4,y[m++]=I&255),n===1&&(I=d[x.charCodeAt(E)]<<10|d[x.charCodeAt(E+1)]<<4|d[x.charCodeAt(E+2)]>>2,y[m++]=I>>8&255,y[m++]=I&255),y}function T(x){return w[x>>18&63]+w[x>>12&63]+w[x>>6&63]+w[x&63]}function R(x,I,b){for(var A,n=[],y=I;y<b;y+=3)A=(x[y]<<16&16711680)+(x[y+1]<<8&65280)+(x[y+2]&255),n.push(T(A));return n.join("")}function O(x){for(var I,b=x.length,A=b%3,n=[],y=16383,m=0,i=b-A;m<i;m+=y)n.push(R(x,m,m+y>i?i:m+y));return A===1?(I=x[b-1],n.push(w[I>>2]+w[I<<4&63]+"==")):A===2&&(I=(x[b-2]<<8)+x[b-1],n.push(w[I>>10]+w[I>>4&63]+w[I<<2&63]+"=")),n.join("")}return je}var tt={};var bn;function ua(){return bn||(bn=1,tt.read=function(w,d,s,a,h){var c,p,r=h*8-a-1,o=(1<<r)-1,S=o>>1,T=-7,R=s?h-1:0,O=s?-1:1,x=w[d+R];for(R+=O,c=x&(1<<-T)-1,x>>=-T,T+=r;T>0;c=c*256+w[d+R],R+=O,T-=8);for(p=c&(1<<-T)-1,c>>=-T,T+=a;T>0;p=p*256+w[d+R],R+=O,T-=8);if(c===0)c=1-S;else{if(c===o)return p?NaN:(x?-1:1)*(1/0);p=p+Math.pow(2,a),c=c-S}return(x?-1:1)*p*Math.pow(2,c-a)},tt.write=function(w,d,s,a,h,c){var p,r,o,S=c*8-h-1,T=(1<<S)-1,R=T>>1,O=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=a?0:c-1,I=a?1:-1,b=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(r=isNaN(d)?1:0,p=T):(p=Math.floor(Math.log(d)/Math.LN2),d*(o=Math.pow(2,-p))<1&&(p--,o*=2),p+R>=1?d+=O/o:d+=O*Math.pow(2,1-R),d*o>=2&&(p++,o/=2),p+R>=T?(r=0,p=T):p+R>=1?(r=(d*o-1)*Math.pow(2,h),p=p+R):(r=d*Math.pow(2,R-1)*Math.pow(2,h),p=0));h>=8;w[s+x]=r&255,x+=I,r/=256,h-=8);for(p=p<<h|r,S+=h;S>0;w[s+x]=p&255,x+=I,p/=256,S-=8);w[s+x-I]|=b*128}),tt}var En;function ot(){return En||(En=1,function(w){var d=oa(),s=ua(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;w.Buffer=r,w.SlowBuffer=y,w.INSPECT_MAX_BYTES=50;var h=2147483647;w.kMaxLength=h,r.TYPED_ARRAY_SUPPORT=c(),!r.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var _=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(_,e),_.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function p(_){if(_>h)throw new RangeError('The value "'+_+'" is invalid for option "size"');var e=new Uint8Array(_);return Object.setPrototypeOf(e,r.prototype),e}function r(_,e,t){if(typeof _=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(_)}return o(_,e,t)}r.poolSize=8192;function o(_,e,t){if(typeof _=="string")return O(_,e);if(ArrayBuffer.isView(_))return I(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(J(_,ArrayBuffer)||_&&J(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(J(_,SharedArrayBuffer)||_&&J(_.buffer,SharedArrayBuffer)))return b(_,e,t);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var l=_.valueOf&&_.valueOf();if(l!=null&&l!==_)return r.from(l,e,t);var B=A(_);if(B)return B;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return r.from(_[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}r.from=function(_,e,t){return o(_,e,t)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function S(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function T(_,e,t){return S(_),_<=0?p(_):e!==void 0?typeof t=="string"?p(_).fill(e,t):p(_).fill(e):p(_)}r.alloc=function(_,e,t){return T(_,e,t)};function R(_){return S(_),p(_<0?0:n(_)|0)}r.allocUnsafe=function(_){return R(_)},r.allocUnsafeSlow=function(_){return R(_)};function O(_,e){if((typeof e!="string"||e==="")&&(e="utf8"),!r.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=m(_,e)|0,l=p(t),B=l.write(_,e);return B!==t&&(l=l.slice(0,B)),l}function x(_){for(var e=_.length<0?0:n(_.length)|0,t=p(e),l=0;l<e;l+=1)t[l]=_[l]&255;return t}function I(_){if(J(_,Uint8Array)){var e=new Uint8Array(_);return b(e.buffer,e.byteOffset,e.byteLength)}return x(_)}function b(_,e,t){if(e<0||_.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var l;return e===void 0&&t===void 0?l=new Uint8Array(_):t===void 0?l=new Uint8Array(_,e):l=new Uint8Array(_,e,t),Object.setPrototypeOf(l,r.prototype),l}function A(_){if(r.isBuffer(_)){var e=n(_.length)|0,t=p(e);return t.length===0||_.copy(t,0,0,e),t}if(_.length!==void 0)return typeof _.length!="number"||u(_.length)?p(0):x(_);if(_.type==="Buffer"&&Array.isArray(_.data))return x(_.data)}function n(_){if(_>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return _|0}function y(_){return+_!=_&&(_=0),r.alloc(+_)}r.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==r.prototype},r.compare=function(e,t){if(J(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var l=e.length,B=t.length,G=0,H=Math.min(l,B);G<H;++G)if(e[G]!==t[G]){l=e[G],B=t[G];break}return l<B?-1:B<l?1:0},r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return r.alloc(0);var l;if(t===void 0)for(t=0,l=0;l<e.length;++l)t+=e[l].length;var B=r.allocUnsafe(t),G=0;for(l=0;l<e.length;++l){var H=e[l];if(J(H,Uint8Array))G+H.length>B.length?r.from(H).copy(B,G):Uint8Array.prototype.set.call(B,H,G);else if(r.isBuffer(H))H.copy(B,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=H.length}return B};function m(_,e){if(r.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||J(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);var t=_.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&t===0)return 0;for(var B=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return f(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return C(_).length;default:if(B)return l?-1:f(_).length;e=(""+e).toLowerCase(),B=!0}}r.byteLength=m;function i(_,e,t){var l=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(_||(_="utf8");;)switch(_){case"hex":return Q(this,e,t);case"utf8":case"utf-8":return g(this,e,t);case"ascii":return z(this,e,t);case"latin1":case"binary":return ne(this,e,t);case"base64":return M(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,e,t);default:if(l)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),l=!0}}r.prototype._isBuffer=!0;function E(_,e,t){var l=_[e];_[e]=_[t],_[t]=l}r.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)E(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?g(this,0,e):i.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:r.compare(this,e)===0},r.prototype.inspect=function(){var e="",t=w.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a&&(r.prototype[a]=r.prototype.inspect),r.prototype.compare=function(e,t,l,B,G){if(J(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),l===void 0&&(l=e?e.length:0),B===void 0&&(B=0),G===void 0&&(G=this.length),t<0||l>e.length||B<0||G>this.length)throw new RangeError("out of range index");if(B>=G&&t>=l)return 0;if(B>=G)return-1;if(t>=l)return 1;if(t>>>=0,l>>>=0,B>>>=0,G>>>=0,this===e)return 0;for(var H=G-B,re=l-t,se=Math.min(H,re),ie=this.slice(B,G),ue=e.slice(t,l),ce=0;ce<se;++ce)if(ie[ce]!==ue[ce]){H=ie[ce],re=ue[ce];break}return H<re?-1:re<H?1:0};function P(_,e,t,l,B){if(_.length===0)return-1;if(typeof t=="string"?(l=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,u(t)&&(t=B?0:_.length-1),t<0&&(t=_.length+t),t>=_.length){if(B)return-1;t=_.length-1}else if(t<0)if(B)t=0;else return-1;if(typeof e=="string"&&(e=r.from(e,l)),r.isBuffer(e))return e.length===0?-1:F(_,e,t,l,B);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?B?Uint8Array.prototype.indexOf.call(_,e,t):Uint8Array.prototype.lastIndexOf.call(_,e,t):F(_,[e],t,l,B);throw new TypeError("val must be string, number or Buffer")}function F(_,e,t,l,B){var G=1,H=_.length,re=e.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(_.length<2||e.length<2)return-1;G=2,H/=2,re/=2,t/=2}function se(we,Ie){return G===1?we[Ie]:we.readUInt16BE(Ie*G)}var ie;if(B){var ue=-1;for(ie=t;ie<H;ie++)if(se(_,ie)===se(e,ue===-1?0:ie-ue)){if(ue===-1&&(ue=ie),ie-ue+1===re)return ue*G}else ue!==-1&&(ie-=ie-ue),ue=-1}else for(t+re>H&&(t=H-re),ie=t;ie>=0;ie--){for(var ce=!0,le=0;le<re;le++)if(se(_,ie+le)!==se(e,le)){ce=!1;break}if(ce)return ie}return-1}r.prototype.includes=function(e,t,l){return this.indexOf(e,t,l)!==-1},r.prototype.indexOf=function(e,t,l){return P(this,e,t,l,!0)},r.prototype.lastIndexOf=function(e,t,l){return P(this,e,t,l,!1)};function W(_,e,t,l){t=Number(t)||0;var B=_.length-t;l?(l=Number(l),l>B&&(l=B)):l=B;var G=e.length;l>G/2&&(l=G/2);for(var H=0;H<l;++H){var re=parseInt(e.substr(H*2,2),16);if(u(re))return H;_[t+H]=re}return H}function N(_,e,t,l){return L(f(e,_.length-t),_,t,l)}function X(_,e,t,l){return L(j(e),_,t,l)}function ae(_,e,t,l){return L(C(e),_,t,l)}function k(_,e,t,l){return L(U(e,_.length-t),_,t,l)}r.prototype.write=function(e,t,l,B){if(t===void 0)B="utf8",l=this.length,t=0;else if(l===void 0&&typeof t=="string")B=t,l=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(l)?(l=l>>>0,B===void 0&&(B="utf8")):(B=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var G=this.length-t;if((l===void 0||l>G)&&(l=G),e.length>0&&(l<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");B||(B="utf8");for(var H=!1;;)switch(B){case"hex":return W(this,e,t,l);case"utf8":case"utf-8":return N(this,e,t,l);case"ascii":case"latin1":case"binary":return X(this,e,t,l);case"base64":return ae(this,e,t,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,l);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),H=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(_,e,t){return e===0&&t===_.length?d.fromByteArray(_):d.fromByteArray(_.slice(e,t))}function g(_,e,t){t=Math.min(_.length,t);for(var l=[],B=e;B<t;){var G=_[B],H=null,re=G>239?4:G>223?3:G>191?2:1;if(B+re<=t){var se,ie,ue,ce;switch(re){case 1:G<128&&(H=G);break;case 2:se=_[B+1],(se&192)===128&&(ce=(G&31)<<6|se&63,ce>127&&(H=ce));break;case 3:se=_[B+1],ie=_[B+2],(se&192)===128&&(ie&192)===128&&(ce=(G&15)<<12|(se&63)<<6|ie&63,ce>2047&&(ce<55296||ce>57343)&&(H=ce));break;case 4:se=_[B+1],ie=_[B+2],ue=_[B+3],(se&192)===128&&(ie&192)===128&&(ue&192)===128&&(ce=(G&15)<<18|(se&63)<<12|(ie&63)<<6|ue&63,ce>65535&&ce<1114112&&(H=ce))}}H===null?(H=65533,re=1):H>65535&&(H-=65536,l.push(H>>>10&1023|55296),H=56320|H&1023),l.push(H),B+=re}return ee(l)}var q=4096;function ee(_){var e=_.length;if(e<=q)return String.fromCharCode.apply(String,_);for(var t="",l=0;l<e;)t+=String.fromCharCode.apply(String,_.slice(l,l+=q));return t}function z(_,e,t){var l="";t=Math.min(_.length,t);for(var B=e;B<t;++B)l+=String.fromCharCode(_[B]&127);return l}function ne(_,e,t){var l="";t=Math.min(_.length,t);for(var B=e;B<t;++B)l+=String.fromCharCode(_[B]);return l}function Q(_,e,t){var l=_.length;(!e||e<0)&&(e=0),(!t||t<0||t>l)&&(t=l);for(var B="",G=e;G<t;++G)B+=Y[_[G]];return B}function oe(_,e,t){for(var l=_.slice(e,t),B="",G=0;G<l.length-1;G+=2)B+=String.fromCharCode(l[G]+l[G+1]*256);return B}r.prototype.slice=function(e,t){var l=this.length;e=~~e,t=t===void 0?l:~~t,e<0?(e+=l,e<0&&(e=0)):e>l&&(e=l),t<0?(t+=l,t<0&&(t=0)):t>l&&(t=l),t<e&&(t=e);var B=this.subarray(e,t);return Object.setPrototypeOf(B,r.prototype),B};function V(_,e,t){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+e>t)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(e,t,l){e=e>>>0,t=t>>>0,l||V(e,t,this.length);for(var B=this[e],G=1,H=0;++H<t&&(G*=256);)B+=this[e+H]*G;return B},r.prototype.readUintBE=r.prototype.readUIntBE=function(e,t,l){e=e>>>0,t=t>>>0,l||V(e,t,this.length);for(var B=this[e+--t],G=1;t>0&&(G*=256);)B+=this[e+--t]*G;return B},r.prototype.readUint8=r.prototype.readUInt8=function(e,t){return e=e>>>0,t||V(e,1,this.length),this[e]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||V(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||V(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||V(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,l){e=e>>>0,t=t>>>0,l||V(e,t,this.length);for(var B=this[e],G=1,H=0;++H<t&&(G*=256);)B+=this[e+H]*G;return G*=128,B>=G&&(B-=Math.pow(2,8*t)),B},r.prototype.readIntBE=function(e,t,l){e=e>>>0,t=t>>>0,l||V(e,t,this.length);for(var B=t,G=1,H=this[e+--B];B>0&&(G*=256);)H+=this[e+--B]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*t)),H},r.prototype.readInt8=function(e,t){return e=e>>>0,t||V(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},r.prototype.readInt16LE=function(e,t){e=e>>>0,t||V(e,2,this.length);var l=this[e]|this[e+1]<<8;return l&32768?l|4294901760:l},r.prototype.readInt16BE=function(e,t){e=e>>>0,t||V(e,2,this.length);var l=this[e+1]|this[e]<<8;return l&32768?l|4294901760:l},r.prototype.readInt32LE=function(e,t){return e=e>>>0,t||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e=e>>>0,t||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e=e>>>0,t||V(e,4,this.length),s.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e=e>>>0,t||V(e,4,this.length),s.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||V(e,8,this.length),s.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||V(e,8,this.length),s.read(this,e,!1,52,8)};function D(_,e,t,l,B,G){if(!r.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>B||e<G)throw new RangeError('"value" argument is out of bounds');if(t+l>_.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(e,t,l,B){if(e=+e,t=t>>>0,l=l>>>0,!B){var G=Math.pow(2,8*l)-1;D(this,e,t,l,G,0)}var H=1,re=0;for(this[t]=e&255;++re<l&&(H*=256);)this[t+re]=e/H&255;return t+l},r.prototype.writeUintBE=r.prototype.writeUIntBE=function(e,t,l,B){if(e=+e,t=t>>>0,l=l>>>0,!B){var G=Math.pow(2,8*l)-1;D(this,e,t,l,G,0)}var H=l-1,re=1;for(this[t+H]=e&255;--H>=0&&(re*=256);)this[t+H]=e/re&255;return t+l},r.prototype.writeUint8=r.prototype.writeUInt8=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,1,255,0),this[t]=e&255,t+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},r.prototype.writeIntLE=function(e,t,l,B){if(e=+e,t=t>>>0,!B){var G=Math.pow(2,8*l-1);D(this,e,t,l,G-1,-G)}var H=0,re=1,se=0;for(this[t]=e&255;++H<l&&(re*=256);)e<0&&se===0&&this[t+H-1]!==0&&(se=1),this[t+H]=(e/re>>0)-se&255;return t+l},r.prototype.writeIntBE=function(e,t,l,B){if(e=+e,t=t>>>0,!B){var G=Math.pow(2,8*l-1);D(this,e,t,l,G-1,-G)}var H=l-1,re=1,se=0;for(this[t+H]=e&255;--H>=0&&(re*=256);)e<0&&se===0&&this[t+H+1]!==0&&(se=1),this[t+H]=(e/re>>0)-se&255;return t+l},r.prototype.writeInt8=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},r.prototype.writeInt16LE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},r.prototype.writeInt32LE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,l){return e=+e,t=t>>>0,l||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function $(_,e,t,l,B,G){if(t+l>_.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Z(_,e,t,l,B){return e=+e,t=t>>>0,B||$(_,e,t,4),s.write(_,e,t,l,23,4),t+4}r.prototype.writeFloatLE=function(e,t,l){return Z(this,e,t,!0,l)},r.prototype.writeFloatBE=function(e,t,l){return Z(this,e,t,!1,l)};function te(_,e,t,l,B){return e=+e,t=t>>>0,B||$(_,e,t,8),s.write(_,e,t,l,52,8),t+8}r.prototype.writeDoubleLE=function(e,t,l){return te(this,e,t,!0,l)},r.prototype.writeDoubleBE=function(e,t,l){return te(this,e,t,!1,l)},r.prototype.copy=function(e,t,l,B){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(l||(l=0),!B&&B!==0&&(B=this.length),t>=e.length&&(t=e.length),t||(t=0),B>0&&B<l&&(B=l),B===l||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("sourceEnd out of bounds");B>this.length&&(B=this.length),e.length-t<B-l&&(B=e.length-t+l);var G=B-l;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,l,B):Uint8Array.prototype.set.call(e,this.subarray(l,B),t),G},r.prototype.fill=function(e,t,l,B){if(typeof e=="string"){if(typeof t=="string"?(B=t,t=0,l=this.length):typeof l=="string"&&(B=l,l=this.length),B!==void 0&&typeof B!="string")throw new TypeError("encoding must be a string");if(typeof B=="string"&&!r.isEncoding(B))throw new TypeError("Unknown encoding: "+B);if(e.length===1){var G=e.charCodeAt(0);(B==="utf8"&&G<128||B==="latin1")&&(e=G)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<l)throw new RangeError("Out of range index");if(l<=t)return this;t=t>>>0,l=l===void 0?this.length:l>>>0,e||(e=0);var H;if(typeof e=="number")for(H=t;H<l;++H)this[H]=e;else{var re=r.isBuffer(e)?e:r.from(e,B),se=re.length;if(se===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(H=0;H<l-t;++H)this[H+t]=re[H%se]}return this};var K=/[^+/0-9A-Za-z-_]/g;function v(_){if(_=_.split("=")[0],_=_.trim().replace(K,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function f(_,e){e=e||1/0;for(var t,l=_.length,B=null,G=[],H=0;H<l;++H){if(t=_.charCodeAt(H),t>55295&&t<57344){if(!B){if(t>56319){(e-=3)>-1&&G.push(239,191,189);continue}else if(H+1===l){(e-=3)>-1&&G.push(239,191,189);continue}B=t;continue}if(t<56320){(e-=3)>-1&&G.push(239,191,189),B=t;continue}t=(B-55296<<10|t-56320)+65536}else B&&(e-=3)>-1&&G.push(239,191,189);if(B=null,t<128){if((e-=1)<0)break;G.push(t)}else if(t<2048){if((e-=2)<0)break;G.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;G.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;G.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return G}function j(_){for(var e=[],t=0;t<_.length;++t)e.push(_.charCodeAt(t)&255);return e}function U(_,e){for(var t,l,B,G=[],H=0;H<_.length&&!((e-=2)<0);++H)t=_.charCodeAt(H),l=t>>8,B=t%256,G.push(B),G.push(l);return G}function C(_){return d.toByteArray(v(_))}function L(_,e,t,l){for(var B=0;B<l&&!(B+t>=e.length||B>=_.length);++B)e[B+t]=_[B];return B}function J(_,e){return _ instanceof e||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===e.name}function u(_){return _!==_}var Y=function(){for(var _="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var l=t*16,B=0;B<16;++B)e[l+B]=_[t]+_[B];return e}()}(mt)),mt}var wt={},gt={},yt,xn;function gs(){return xn||(xn=1,yt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var d={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var h=42;d[s]=h;for(var c in d)return!1;if(typeof Object.keys=="function"&&Object.keys(d).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(d).length!==0)return!1;var p=Object.getOwnPropertySymbols(d);if(p.length!==1||p[0]!==s||!Object.prototype.propertyIsEnumerable.call(d,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var r=Object.getOwnPropertyDescriptor(d,s);if(r.value!==h||r.enumerable!==!0)return!1}return!0}),yt}var vt,Tn;function ut(){if(Tn)return vt;Tn=1;var w=gs();return vt=function(){return w()&&!!Symbol.toStringTag},vt}var _t,An;function ys(){return An||(An=1,_t=Object),_t}var bt,Sn;function ca(){return Sn||(Sn=1,bt=Error),bt}var Et,Rn;function la(){return Rn||(Rn=1,Et=EvalError),Et}var xt,In;function ha(){return In||(In=1,xt=RangeError),xt}var Tt,Nn;function fa(){return Nn||(Nn=1,Tt=ReferenceError),Tt}var At,On;function vs(){return On||(On=1,At=SyntaxError),At}var St,kn;function qe(){return kn||(kn=1,St=TypeError),St}var Rt,Cn;function da(){return Cn||(Cn=1,Rt=URIError),Rt}var It,Dn;function pa(){return Dn||(Dn=1,It=Math.abs),It}var Nt,Ln;function ma(){return Ln||(Ln=1,Nt=Math.floor),Nt}var Ot,Pn;function wa(){return Pn||(Pn=1,Ot=Math.max),Ot}var kt,Fn;function ga(){return Fn||(Fn=1,kt=Math.min),kt}var Ct,Bn;function ya(){return Bn||(Bn=1,Ct=Math.pow),Ct}var Dt,Un;function va(){return Un||(Un=1,Dt=Math.round),Dt}var Lt,Mn;function _a(){return Mn||(Mn=1,Lt=Number.isNaN||function(d){return d!==d}),Lt}var Pt,Hn;function ba(){if(Hn)return Pt;Hn=1;var w=_a();return Pt=function(s){return w(s)||s===0?s:s<0?-1:1},Pt}var Ft,jn;function Ea(){return jn||(jn=1,Ft=Object.getOwnPropertyDescriptor),Ft}var Bt,Wn;function Be(){if(Wn)return Bt;Wn=1;var w=Ea();if(w)try{w([],"length")}catch{w=null}return Bt=w,Bt}var Ut,zn;function ct(){if(zn)return Ut;zn=1;var w=Object.defineProperty||!1;if(w)try{w({},"a",{value:1})}catch{w=!1}return Ut=w,Ut}var Mt,Gn;function xa(){if(Gn)return Mt;Gn=1;var w=typeof Symbol!="undefined"&&Symbol,d=gs();return Mt=function(){return typeof w!="function"||typeof Symbol!="function"||typeof w("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:d()},Mt}var Ht,Kn;function _s(){return Kn||(Kn=1,Ht=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Ht}var jt,qn;function bs(){if(qn)return jt;qn=1;var w=ys();return jt=w.getPrototypeOf||null,jt}var Wt,Vn;function Ta(){if(Vn)return Wt;Vn=1;var w="Function.prototype.bind called on incompatible ",d=Object.prototype.toString,s=Math.max,a="[object Function]",h=function(o,S){for(var T=[],R=0;R<o.length;R+=1)T[R]=o[R];for(var O=0;O<S.length;O+=1)T[O+o.length]=S[O];return T},c=function(o,S){for(var T=[],R=S,O=0;R<o.length;R+=1,O+=1)T[O]=o[R];return T},p=function(r,o){for(var S="",T=0;T<r.length;T+=1)S+=r[T],T+1<r.length&&(S+=o);return S};return Wt=function(o){var S=this;if(typeof S!="function"||d.apply(S)!==a)throw new TypeError(w+S);for(var T=c(arguments,1),R,O=function(){if(this instanceof R){var n=S.apply(this,h(T,arguments));return Object(n)===n?n:this}return S.apply(o,h(T,arguments))},x=s(0,S.length-T.length),I=[],b=0;b<x;b++)I[b]="$"+b;if(R=Function("binder","return function ("+p(I,",")+"){ return binder.apply(this,arguments); }")(O),S.prototype){var A=function(){};A.prototype=S.prototype,R.prototype=new A,A.prototype=null}return R},Wt}var zt,$n;function Ve(){if($n)return zt;$n=1;var w=Ta();return zt=Function.prototype.bind||w,zt}var Gt,Xn;function un(){return Xn||(Xn=1,Gt=Function.prototype.call),Gt}var Kt,Zn;function cn(){return Zn||(Zn=1,Kt=Function.prototype.apply),Kt}var qt,Yn;function Aa(){return Yn||(Yn=1,qt=typeof Reflect!="undefined"&&Reflect&&Reflect.apply),qt}var Vt,Jn;function Es(){if(Jn)return Vt;Jn=1;var w=Ve(),d=cn(),s=un(),a=Aa();return Vt=a||w.call(s,d),Vt}var $t,Qn;function ln(){if(Qn)return $t;Qn=1;var w=Ve(),d=qe(),s=un(),a=Es();return $t=function(c){if(c.length<1||typeof c[0]!="function")throw new d("a function is required");return a(w,s,c)},$t}var Xt,ei;function Sa(){if(ei)return Xt;ei=1;var w=ln(),d=Be(),s;try{s=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var a=!!s&&d&&d(Object.prototype,"__proto__"),h=Object,c=h.getPrototypeOf;return Xt=a&&typeof a.get=="function"?w([a.get]):typeof c=="function"?function(r){return c(r==null?r:h(r))}:!1,Xt}var Zt,ti;function xs(){if(ti)return Zt;ti=1;var w=_s(),d=bs(),s=Sa();return Zt=w?function(h){return w(h)}:d?function(h){if(!h||typeof h!="object"&&typeof h!="function")throw new TypeError("getProto: not an object");return d(h)}:s?function(h){return s(h)}:null,Zt}var Yt,ri;function Ts(){if(ri)return Yt;ri=1;var w=Function.prototype.call,d=Object.prototype.hasOwnProperty,s=Ve();return Yt=s.call(w,d),Yt}var Jt,ni;function As(){if(ni)return Jt;ni=1;var w,d=ys(),s=ca(),a=la(),h=ha(),c=fa(),p=vs(),r=qe(),o=da(),S=pa(),T=ma(),R=wa(),O=ga(),x=ya(),I=va(),b=ba(),A=Function,n=function(j){try{return A('"use strict"; return ('+j+").constructor;")()}catch{}},y=Be(),m=ct(),i=function(){throw new r},E=y?function(){try{return arguments.callee,i}catch{try{return y(arguments,"callee").get}catch{return i}}}():i,P=xa()(),F=xs(),W=bs(),N=_s(),X=cn(),ae=un(),k={},M=typeof Uint8Array=="undefined"||!F?w:F(Uint8Array),g={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?w:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?w:ArrayBuffer,"%ArrayIteratorPrototype%":P&&F?F([][Symbol.iterator]()):w,"%AsyncFromSyncIteratorPrototype%":w,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics=="undefined"?w:Atomics,"%BigInt%":typeof BigInt=="undefined"?w:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?w:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?w:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?w:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array=="undefined"?w:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?w:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?w:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?w:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array=="undefined"?w:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?w:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?w:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&F?F(F([][Symbol.iterator]())):w,"%JSON%":typeof JSON=="object"?JSON:w,"%Map%":typeof Map=="undefined"?w:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!P||!F?w:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":d,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?w:Promise,"%Proxy%":typeof Proxy=="undefined"?w:Proxy,"%RangeError%":h,"%ReferenceError%":c,"%Reflect%":typeof Reflect=="undefined"?w:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?w:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!P||!F?w:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?w:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&F?F(""[Symbol.iterator]()):w,"%Symbol%":P?Symbol:w,"%SyntaxError%":p,"%ThrowTypeError%":E,"%TypedArray%":M,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array=="undefined"?w:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?w:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?w:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?w:Uint32Array,"%URIError%":o,"%WeakMap%":typeof WeakMap=="undefined"?w:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?w:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?w:WeakSet,"%Function.prototype.call%":ae,"%Function.prototype.apply%":X,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":W,"%Math.abs%":S,"%Math.floor%":T,"%Math.max%":R,"%Math.min%":O,"%Math.pow%":x,"%Math.round%":I,"%Math.sign%":b,"%Reflect.getPrototypeOf%":N};if(F)try{null.error}catch(j){var q=F(F(j));g["%Error.prototype%"]=q}var ee=function j(U){var C;if(U==="%AsyncFunction%")C=n("async function () {}");else if(U==="%GeneratorFunction%")C=n("function* () {}");else if(U==="%AsyncGeneratorFunction%")C=n("async function* () {}");else if(U==="%AsyncGenerator%"){var L=j("%AsyncGeneratorFunction%");L&&(C=L.prototype)}else if(U==="%AsyncIteratorPrototype%"){var J=j("%AsyncGenerator%");J&&F&&(C=F(J.prototype))}return g[U]=C,C},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ne=Ve(),Q=Ts(),oe=ne.call(ae,Array.prototype.concat),V=ne.call(X,Array.prototype.splice),D=ne.call(ae,String.prototype.replace),$=ne.call(ae,String.prototype.slice),Z=ne.call(ae,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,v=function(U){var C=$(U,0,1),L=$(U,-1);if(C==="%"&&L!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&C!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var J=[];return D(U,te,function(u,Y,_,e){J[J.length]=_?D(e,K,"$1"):Y||u}),J},f=function(U,C){var L=U,J;if(Q(z,L)&&(J=z[L],L="%"+J[0]+"%"),Q(g,L)){var u=g[L];if(u===k&&(u=ee(L)),typeof u=="undefined"&&!C)throw new r("intrinsic "+U+" exists, but is not available. Please file an issue!");return{alias:J,name:L,value:u}}throw new p("intrinsic "+U+" does not exist!")};return Jt=function(U,C){if(typeof U!="string"||U.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof C!="boolean")throw new r('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,U)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var L=v(U),J=L.length>0?L[0]:"",u=f("%"+J+"%",C),Y=u.name,_=u.value,e=!1,t=u.alias;t&&(J=t[0],V(L,oe([0,1],t)));for(var l=1,B=!0;l<L.length;l+=1){var G=L[l],H=$(G,0,1),re=$(G,-1);if((H==='"'||H==="'"||H==="`"||re==='"'||re==="'"||re==="`")&&H!==re)throw new p("property names with quotes must have matching quotes");if((G==="constructor"||!B)&&(e=!0),J+="."+G,Y="%"+J+"%",Q(g,Y))_=g[Y];else if(_!=null){if(!(G in _)){if(!C)throw new r("base intrinsic for "+U+" exists, but the property is not available.");return}if(y&&l+1>=L.length){var se=y(_,G);B=!!se,B&&"get"in se&&!("originalValue"in se.get)?_=se.get:_=_[G]}else B=Q(_,G),_=_[G];B&&!e&&(g[Y]=_)}}return _},Jt}var Qt,ii;function $e(){if(ii)return Qt;ii=1;var w=As(),d=ln(),s=d([w("%String.prototype.indexOf%")]);return Qt=function(h,c){var p=w(h,!!c);return typeof p=="function"&&s(h,".prototype.")>-1?d([p]):p},Qt}var er,si;function Ra(){if(si)return er;si=1;var w=ut()(),d=$e(),s=d("Object.prototype.toString"),a=function(r){return w&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:s(r)==="[object Arguments]"},h=function(r){return a(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&s(r)!=="[object Array]"&&"callee"in r&&s(r.callee)==="[object Function]"},c=function(){return a(arguments)}();return a.isLegacyArguments=h,er=c?a:h,er}var tr,ai;function Ia(){if(ai)return tr;ai=1;var w=$e(),d=ut()(),s=Ts(),a=Be(),h;if(d){var c=w("RegExp.prototype.exec"),p={},r=function(){throw p},o={toString:r,valueOf:r};typeof Symbol.toPrimitive=="symbol"&&(o[Symbol.toPrimitive]=r),h=function(O){if(!O||typeof O!="object")return!1;var x=a(O,"lastIndex"),I=x&&s(x,"value");if(!I)return!1;try{c(O,o)}catch(b){return b===p}}}else{var S=w("Object.prototype.toString"),T="[object RegExp]";h=function(O){return!O||typeof O!="object"&&typeof O!="function"?!1:S(O)===T}}return tr=h,tr}var rr,oi;function Na(){if(oi)return rr;oi=1;var w=$e(),d=Ia(),s=w("RegExp.prototype.exec"),a=qe();return rr=function(c){if(!d(c))throw new a("`regex` must be a RegExp");return function(r){return s(c,r)!==null}},rr}var nr,ui;function Oa(){if(ui)return nr;ui=1;var w=$e(),d=Na(),s=d(/^\s*(?:function)?\*/),a=ut()(),h=xs(),c=w("Object.prototype.toString"),p=w("Function.prototype.toString"),r=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},o;return nr=function(T){if(typeof T!="function")return!1;if(s(p(T)))return!0;if(!a){var R=c(T);return R==="[object GeneratorFunction]"}if(!h)return!1;if(typeof o=="undefined"){var O=r();o=O?h(O):!1}return h(T)===o},nr}var ir,ci;function ka(){if(ci)return ir;ci=1;var w=Function.prototype.toString,d=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,s,a;if(typeof d=="function"&&typeof Object.defineProperty=="function")try{s=Object.defineProperty({},"length",{get:function(){throw a}}),a={},d(function(){throw 42},null,s)}catch(y){y!==a&&(d=null)}else d=null;var h=/^\s*class\b/,c=function(m){try{var i=w.call(m);return h.test(i)}catch{return!1}},p=function(m){try{return c(m)?!1:(w.call(m),!0)}catch{return!1}},r=Object.prototype.toString,o="[object Object]",S="[object Function]",T="[object GeneratorFunction]",R="[object HTMLAllCollection]",O="[object HTML document.all class]",x="[object HTMLCollection]",I=typeof Symbol=="function"&&!!Symbol.toStringTag,b=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var n=document.all;r.call(n)===r.call(document.all)&&(A=function(m){if((b||!m)&&(typeof m=="undefined"||typeof m=="object"))try{var i=r.call(m);return(i===R||i===O||i===x||i===o)&&m("")==null}catch{}return!1})}return ir=d?function(m){if(A(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{d(m,null,s)}catch(i){if(i!==a)return!1}return!c(m)&&p(m)}:function(m){if(A(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(I)return p(m);if(c(m))return!1;var i=r.call(m);return i!==S&&i!==T&&!/^\[object HTML/.test(i)?!1:p(m)},ir}var sr,li;function Ca(){if(li)return sr;li=1;var w=ka(),d=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=function(o,S,T){for(var R=0,O=o.length;R<O;R++)s.call(o,R)&&(T==null?S(o[R],R,o):S.call(T,o[R],R,o))},h=function(o,S,T){for(var R=0,O=o.length;R<O;R++)T==null?S(o.charAt(R),R,o):S.call(T,o.charAt(R),R,o)},c=function(o,S,T){for(var R in o)s.call(o,R)&&(T==null?S(o[R],R,o):S.call(T,o[R],R,o))};function p(r){return d.call(r)==="[object Array]"}return sr=function(o,S,T){if(!w(S))throw new TypeError("iterator must be a function");var R;arguments.length>=3&&(R=T),p(o)?a(o,S,R):typeof o=="string"?h(o,S,R):c(o,S,R)},sr}var ar,hi;function Da(){return hi||(hi=1,ar=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),ar}var or,fi;function La(){if(fi)return or;fi=1;var w=Da(),d=typeof globalThis=="undefined"?ye:globalThis;return or=function(){for(var a=[],h=0;h<w.length;h++)typeof d[w[h]]=="function"&&(a[a.length]=w[h]);return a},or}var ur={exports:{}},cr,di;function Pa(){if(di)return cr;di=1;var w=ct(),d=vs(),s=qe(),a=Be();return cr=function(c,p,r){if(!c||typeof c!="object"&&typeof c!="function")throw new s("`obj` must be an object or a function`");if(typeof p!="string"&&typeof p!="symbol")throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new s("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,S=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,R=arguments.length>6?arguments[6]:!1,O=!!a&&a(c,p);if(w)w(c,p,{configurable:T===null&&O?O.configurable:!T,enumerable:o===null&&O?O.enumerable:!o,value:r,writable:S===null&&O?O.writable:!S});else if(R||!o&&!S&&!T)c[p]=r;else throw new d("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},cr}var lr,pi;function Fa(){if(pi)return lr;pi=1;var w=ct(),d=function(){return!!w};return d.hasArrayLengthDefineBug=function(){if(!w)return null;try{return w([],"length",{value:1}).length!==1}catch{return!0}},lr=d,lr}var hr,mi;function Ba(){if(mi)return hr;mi=1;var w=As(),d=Pa(),s=Fa()(),a=Be(),h=qe(),c=w("%Math.floor%");return hr=function(r,o){if(typeof r!="function")throw new h("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||c(o)!==o)throw new h("`length` must be a positive 32-bit integer");var S=arguments.length>2&&!!arguments[2],T=!0,R=!0;if("length"in r&&a){var O=a(r,"length");O&&!O.configurable&&(T=!1),O&&!O.writable&&(R=!1)}return(T||R||!S)&&(s?d(r,"length",o,!0,!0):d(r,"length",o)),r},hr}var fr,wi;function Ua(){if(wi)return fr;wi=1;var w=Ve(),d=cn(),s=Es();return fr=function(){return s(w,d,arguments)},fr}var gi;function Ma(){return gi||(gi=1,function(w){var d=Ba(),s=ct(),a=ln(),h=Ua();w.exports=function(p){var r=a(arguments),o=p.length-(arguments.length-1);return d(r,1+(o>0?o:0),!0)},s?s(w.exports,"apply",{value:h}):w.exports.apply=h}(ur)),ur.exports}var dr,yi;function Ss(){if(yi)return dr;yi=1;var w=Ca(),d=La(),s=Ma(),a=$e(),h=Be(),c=a("Object.prototype.toString"),p=ut()(),r=typeof globalThis=="undefined"?ye:globalThis,o=d(),S=a("String.prototype.slice"),T=Object.getPrototypeOf,R=a("Array.prototype.indexOf",!0)||function(A,n){for(var y=0;y<A.length;y+=1)if(A[y]===n)return y;return-1},O={__proto__:null};p&&h&&T?w(o,function(b){var A=new r[b];if(Symbol.toStringTag in A){var n=T(A),y=h(n,Symbol.toStringTag);if(!y){var m=T(n);y=h(m,Symbol.toStringTag)}O["$"+b]=s(y.get)}}):w(o,function(b){var A=new r[b],n=A.slice||A.set;n&&(O["$"+b]=s(n))});var x=function(A){var n=!1;return w(O,function(y,m){if(!n)try{"$"+y(A)===m&&(n=S(m,1))}catch{}}),n},I=function(A){var n=!1;return w(O,function(y,m){if(!n)try{y(A),n=S(m,1)}catch{}}),n};return dr=function(A){if(!A||typeof A!="object")return!1;if(!p){var n=S(c(A),8,-1);return R(o,n)>-1?n:n!=="Object"?!1:I(A)}return h?x(A):null},dr}var pr,vi;function Ha(){if(vi)return pr;vi=1;var w=Ss();return pr=function(s){return!!w(s)},pr}var _i;function ja(){return _i||(_i=1,function(w){var d=Ra(),s=Oa(),a=Ss(),h=Ha();function c(l){return l.call.bind(l)}var p=typeof BigInt!="undefined",r=typeof Symbol!="undefined",o=c(Object.prototype.toString),S=c(Number.prototype.valueOf),T=c(String.prototype.valueOf),R=c(Boolean.prototype.valueOf);if(p)var O=c(BigInt.prototype.valueOf);if(r)var x=c(Symbol.prototype.valueOf);function I(l,B){if(typeof l!="object")return!1;try{return B(l),!0}catch{return!1}}w.isArgumentsObject=d,w.isGeneratorFunction=s,w.isTypedArray=h;function b(l){return typeof Promise!="undefined"&&l instanceof Promise||l!==null&&typeof l=="object"&&typeof l.then=="function"&&typeof l.catch=="function"}w.isPromise=b;function A(l){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(l):h(l)||$(l)}w.isArrayBufferView=A;function n(l){return a(l)==="Uint8Array"}w.isUint8Array=n;function y(l){return a(l)==="Uint8ClampedArray"}w.isUint8ClampedArray=y;function m(l){return a(l)==="Uint16Array"}w.isUint16Array=m;function i(l){return a(l)==="Uint32Array"}w.isUint32Array=i;function E(l){return a(l)==="Int8Array"}w.isInt8Array=E;function P(l){return a(l)==="Int16Array"}w.isInt16Array=P;function F(l){return a(l)==="Int32Array"}w.isInt32Array=F;function W(l){return a(l)==="Float32Array"}w.isFloat32Array=W;function N(l){return a(l)==="Float64Array"}w.isFloat64Array=N;function X(l){return a(l)==="BigInt64Array"}w.isBigInt64Array=X;function ae(l){return a(l)==="BigUint64Array"}w.isBigUint64Array=ae;function k(l){return o(l)==="[object Map]"}k.working=typeof Map!="undefined"&&k(new Map);function M(l){return typeof Map=="undefined"?!1:k.working?k(l):l instanceof Map}w.isMap=M;function g(l){return o(l)==="[object Set]"}g.working=typeof Set!="undefined"&&g(new Set);function q(l){return typeof Set=="undefined"?!1:g.working?g(l):l instanceof Set}w.isSet=q;function ee(l){return o(l)==="[object WeakMap]"}ee.working=typeof WeakMap!="undefined"&&ee(new WeakMap);function z(l){return typeof WeakMap=="undefined"?!1:ee.working?ee(l):l instanceof WeakMap}w.isWeakMap=z;function ne(l){return o(l)==="[object WeakSet]"}ne.working=typeof WeakSet!="undefined"&&ne(new WeakSet);function Q(l){return ne(l)}w.isWeakSet=Q;function oe(l){return o(l)==="[object ArrayBuffer]"}oe.working=typeof ArrayBuffer!="undefined"&&oe(new ArrayBuffer);function V(l){return typeof ArrayBuffer=="undefined"?!1:oe.working?oe(l):l instanceof ArrayBuffer}w.isArrayBuffer=V;function D(l){return o(l)==="[object DataView]"}D.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&D(new DataView(new ArrayBuffer(1),0,1));function $(l){return typeof DataView=="undefined"?!1:D.working?D(l):l instanceof DataView}w.isDataView=$;var Z=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function te(l){return o(l)==="[object SharedArrayBuffer]"}function K(l){return typeof Z=="undefined"?!1:(typeof te.working=="undefined"&&(te.working=te(new Z)),te.working?te(l):l instanceof Z)}w.isSharedArrayBuffer=K;function v(l){return o(l)==="[object AsyncFunction]"}w.isAsyncFunction=v;function f(l){return o(l)==="[object Map Iterator]"}w.isMapIterator=f;function j(l){return o(l)==="[object Set Iterator]"}w.isSetIterator=j;function U(l){return o(l)==="[object Generator]"}w.isGeneratorObject=U;function C(l){return o(l)==="[object WebAssembly.Module]"}w.isWebAssemblyCompiledModule=C;function L(l){return I(l,S)}w.isNumberObject=L;function J(l){return I(l,T)}w.isStringObject=J;function u(l){return I(l,R)}w.isBooleanObject=u;function Y(l){return p&&I(l,O)}w.isBigIntObject=Y;function _(l){return r&&I(l,x)}w.isSymbolObject=_;function e(l){return L(l)||J(l)||u(l)||Y(l)||_(l)}w.isBoxedPrimitive=e;function t(l){return typeof Uint8Array!="undefined"&&(V(l)||K(l))}w.isAnyArrayBuffer=t,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(l){Object.defineProperty(w,l,{enumerable:!1,value:function(){throw new Error(l+" is not supported in userland")}})})}(gt)),gt}var mr,bi;function Wa(){return bi||(bi=1,mr=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}),mr}var Ei;function Rs(){return Ei||(Ei=1,function(w){var d=Object.getOwnPropertyDescriptors||function($){for(var Z=Object.keys($),te={},K=0;K<Z.length;K++)te[Z[K]]=Object.getOwnPropertyDescriptor($,Z[K]);return te},s=/%[sdj%]/g;w.format=function(D){if(!E(D)){for(var $=[],Z=0;Z<arguments.length;Z++)$.push(p(arguments[Z]));return $.join(" ")}for(var Z=1,te=arguments,K=te.length,v=String(D).replace(s,function(j){if(j==="%%")return"%";if(Z>=K)return j;switch(j){case"%s":return String(te[Z++]);case"%d":return Number(te[Z++]);case"%j":try{return JSON.stringify(te[Z++])}catch{return"[Circular]"}default:return j}}),f=te[Z];Z<K;f=te[++Z])y(f)||!N(f)?v+=" "+f:v+=" "+p(f);return v},w.deprecate=function(D,$){if(typeof he!="undefined"&&he.noDeprecation===!0)return D;if(typeof he=="undefined")return function(){return w.deprecate(D,$).apply(this,arguments)};var Z=!1;function te(){if(!Z){if(he.throwDeprecation)throw new Error($);he.traceDeprecation?console.trace($):console.error($),Z=!0}return D.apply(this,arguments)}return te};var a={},h=/^$/;if(he.env.NODE_DEBUG){var c=he.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),h=new RegExp("^"+c+"$","i")}w.debuglog=function(D){if(D=D.toUpperCase(),!a[D])if(h.test(D)){var $=he.pid;a[D]=function(){var Z=w.format.apply(w,arguments);console.error("%s %d: %s",D,$,Z)}}else a[D]=function(){};return a[D]};function p(D,$){var Z={seen:[],stylize:o};return arguments.length>=3&&(Z.depth=arguments[2]),arguments.length>=4&&(Z.colors=arguments[3]),n($)?Z.showHidden=$:$&&w._extend(Z,$),F(Z.showHidden)&&(Z.showHidden=!1),F(Z.depth)&&(Z.depth=2),F(Z.colors)&&(Z.colors=!1),F(Z.customInspect)&&(Z.customInspect=!0),Z.colors&&(Z.stylize=r),T(Z,D,Z.depth)}w.inspect=p,p.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]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(D,$){var Z=p.styles[$];return Z?"\x1B["+p.colors[Z][0]+"m"+D+"\x1B["+p.colors[Z][1]+"m":D}function o(D,$){return D}function S(D){var $={};return D.forEach(function(Z,te){$[Z]=!0}),$}function T(D,$,Z){if(D.customInspect&&$&&k($.inspect)&&$.inspect!==w.inspect&&!($.constructor&&$.constructor.prototype===$)){var te=$.inspect(Z,D);return E(te)||(te=T(D,te,Z)),te}var K=R(D,$);if(K)return K;var v=Object.keys($),f=S(v);if(D.showHidden&&(v=Object.getOwnPropertyNames($)),ae($)&&(v.indexOf("message")>=0||v.indexOf("description")>=0))return O($);if(v.length===0){if(k($)){var j=$.name?": "+$.name:"";return D.stylize("[Function"+j+"]","special")}if(W($))return D.stylize(RegExp.prototype.toString.call($),"regexp");if(X($))return D.stylize(Date.prototype.toString.call($),"date");if(ae($))return O($)}var U="",C=!1,L=["{","}"];if(A($)&&(C=!0,L=["[","]"]),k($)){var J=$.name?": "+$.name:"";U=" [Function"+J+"]"}if(W($)&&(U=" "+RegExp.prototype.toString.call($)),X($)&&(U=" "+Date.prototype.toUTCString.call($)),ae($)&&(U=" "+O($)),v.length===0&&(!C||$.length==0))return L[0]+U+L[1];if(Z<0)return W($)?D.stylize(RegExp.prototype.toString.call($),"regexp"):D.stylize("[Object]","special");D.seen.push($);var u;return C?u=x(D,$,Z,f,v):u=v.map(function(Y){return I(D,$,Z,f,Y,C)}),D.seen.pop(),b(u,U,L)}function R(D,$){if(F($))return D.stylize("undefined","undefined");if(E($)){var Z="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(Z,"string")}if(i($))return D.stylize(""+$,"number");if(n($))return D.stylize(""+$,"boolean");if(y($))return D.stylize("null","null")}function O(D){return"["+Error.prototype.toString.call(D)+"]"}function x(D,$,Z,te,K){for(var v=[],f=0,j=$.length;f<j;++f)ne($,String(f))?v.push(I(D,$,Z,te,String(f),!0)):v.push("");return K.forEach(function(U){U.match(/^\d+$/)||v.push(I(D,$,Z,te,U,!0))}),v}function I(D,$,Z,te,K,v){var f,j,U;if(U=Object.getOwnPropertyDescriptor($,K)||{value:$[K]},U.get?U.set?j=D.stylize("[Getter/Setter]","special"):j=D.stylize("[Getter]","special"):U.set&&(j=D.stylize("[Setter]","special")),ne(te,K)||(f="["+K+"]"),j||(D.seen.indexOf(U.value)<0?(y(Z)?j=T(D,U.value,null):j=T(D,U.value,Z-1),j.indexOf(`
|
|
2
|
-
`)>-1&&(v?j=j.split(`
|
|
3
|
-
`).map(function(C){return" "+C}).join(`
|
|
4
|
-
`).slice(2):j=`
|
|
5
|
-
`+j.split(`
|
|
6
|
-
`).map(function(C){return" "+C}).join(`
|
|
7
|
-
`))):j=D.stylize("[Circular]","special")),F(f)){if(v&&K.match(/^\d+$/))return j;f=JSON.stringify(""+K),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=D.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=D.stylize(f,"string"))}return f+": "+j}function b(D,$,Z){var te=D.reduce(function(K,v){return v.indexOf(`
|
|
8
|
-
`)>=0,K+v.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?Z[0]+($===""?"":$+`
|
|
9
|
-
`)+" "+D.join(`,
|
|
10
|
-
`)+" "+Z[1]:Z[0]+$+" "+D.join(", ")+" "+Z[1]}w.types=ja();function A(D){return Array.isArray(D)}w.isArray=A;function n(D){return typeof D=="boolean"}w.isBoolean=n;function y(D){return D===null}w.isNull=y;function m(D){return D==null}w.isNullOrUndefined=m;function i(D){return typeof D=="number"}w.isNumber=i;function E(D){return typeof D=="string"}w.isString=E;function P(D){return typeof D=="symbol"}w.isSymbol=P;function F(D){return D===void 0}w.isUndefined=F;function W(D){return N(D)&&g(D)==="[object RegExp]"}w.isRegExp=W,w.types.isRegExp=W;function N(D){return typeof D=="object"&&D!==null}w.isObject=N;function X(D){return N(D)&&g(D)==="[object Date]"}w.isDate=X,w.types.isDate=X;function ae(D){return N(D)&&(g(D)==="[object Error]"||D instanceof Error)}w.isError=ae,w.types.isNativeError=ae;function k(D){return typeof D=="function"}w.isFunction=k;function M(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}w.isPrimitive=M,w.isBuffer=Wa();function g(D){return Object.prototype.toString.call(D)}function q(D){return D<10?"0"+D.toString(10):D.toString(10)}var ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var D=new Date,$=[q(D.getHours()),q(D.getMinutes()),q(D.getSeconds())].join(":");return[D.getDate(),ee[D.getMonth()],$].join(" ")}w.log=function(){console.log("%s - %s",z(),w.format.apply(w,arguments))},w.inherits=Ne(),w._extend=function(D,$){if(!$||!N($))return D;for(var Z=Object.keys($),te=Z.length;te--;)D[Z[te]]=$[Z[te]];return D};function ne(D,$){return Object.prototype.hasOwnProperty.call(D,$)}var Q=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;w.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&$[Q]){var Z=$[Q];if(typeof Z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Z,Q,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Z}function Z(){for(var te,K,v=new Promise(function(U,C){te=U,K=C}),f=[],j=0;j<arguments.length;j++)f.push(arguments[j]);f.push(function(U,C){U?K(U):te(C)});try{$.apply(this,f)}catch(U){K(U)}return v}return Object.setPrototypeOf(Z,Object.getPrototypeOf($)),Q&&Object.defineProperty(Z,Q,{value:Z,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Z,d($))},w.promisify.custom=Q;function oe(D,$){if(!D){var Z=new Error("Promise was rejected with a falsy value");Z.reason=D,D=Z}return $(D)}function V(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function $(){for(var Z=[],te=0;te<arguments.length;te++)Z.push(arguments[te]);var K=Z.pop();if(typeof K!="function")throw new TypeError("The last argument must be of type Function");var v=this,f=function(){return K.apply(v,arguments)};D.apply(this,Z).then(function(j){he.nextTick(f.bind(null,null,j))},function(j){he.nextTick(oe.bind(null,j,f))})}return Object.setPrototypeOf($,Object.getPrototypeOf(D)),Object.defineProperties($,d(D)),$}w.callbackify=V}(wt)),wt}var wr,xi;function za(){if(xi)return wr;xi=1;function w(I,b){var A=Object.keys(I);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(I);b&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(I,y).enumerable})),A.push.apply(A,n)}return A}function d(I){for(var b=1;b<arguments.length;b++){var A=arguments[b]!=null?arguments[b]:{};b%2?w(Object(A),!0).forEach(function(n){s(I,n,A[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(A)):w(Object(A)).forEach(function(n){Object.defineProperty(I,n,Object.getOwnPropertyDescriptor(A,n))})}return I}function s(I,b,A){return b=p(b),b in I?Object.defineProperty(I,b,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[b]=A,I}function a(I,b){if(!(I instanceof b))throw new TypeError("Cannot call a class as a function")}function h(I,b){for(var A=0;A<b.length;A++){var n=b[A];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(I,p(n.key),n)}}function c(I,b,A){return b&&h(I.prototype,b),Object.defineProperty(I,"prototype",{writable:!1}),I}function p(I){var b=r(I,"string");return typeof b=="symbol"?b:String(b)}function r(I,b){if(typeof I!="object"||I===null)return I;var A=I[Symbol.toPrimitive];if(A!==void 0){var n=A.call(I,b);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}var o=ot(),S=o.Buffer,T=Rs(),R=T.inspect,O=R&&R.custom||"inspect";function x(I,b,A){S.prototype.copy.call(I,b,A)}return wr=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return c(I,[{key:"push",value:function(A){var n={data:A,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(A){var n={data:A,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var n=this.head,y=""+n.data;n=n.next;)y+=A+n.data;return y}},{key:"concat",value:function(A){if(this.length===0)return S.alloc(0);for(var n=S.allocUnsafe(A>>>0),y=this.head,m=0;y;)x(y.data,n,m),m+=y.data.length,y=y.next;return n}},{key:"consume",value:function(A,n){var y;return A<this.head.data.length?(y=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?y=this.shift():y=n?this._getString(A):this._getBuffer(A),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var n=this.head,y=1,m=n.data;for(A-=m.length;n=n.next;){var i=n.data,E=A>i.length?i.length:A;if(E===i.length?m+=i:m+=i.slice(0,A),A-=E,A===0){E===i.length?(++y,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(E));break}++y}return this.length-=y,m}},{key:"_getBuffer",value:function(A){var n=S.allocUnsafe(A),y=this.head,m=1;for(y.data.copy(n),A-=y.data.length;y=y.next;){var i=y.data,E=A>i.length?i.length:A;if(i.copy(n,n.length-A,0,E),A-=E,A===0){E===i.length?(++m,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=i.slice(E));break}++m}return this.length-=m,n}},{key:O,value:function(A,n){return R(this,d(d({},n),{},{depth:0,customInspect:!1}))}}]),I}(),wr}var gr,Ti;function Is(){if(Ti)return gr;Ti=1;function w(p,r){var o=this,S=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return S||T?(r?r(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,he.nextTick(h,this,p)):he.nextTick(h,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(R){!r&&R?o._writableState?o._writableState.errorEmitted?he.nextTick(s,o):(o._writableState.errorEmitted=!0,he.nextTick(d,o,R)):he.nextTick(d,o,R):r?(he.nextTick(s,o),r(R)):he.nextTick(s,o)}),this)}function d(p,r){h(p,r),s(p)}function s(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function h(p,r){p.emit("error",r)}function c(p,r){var o=p._readableState,S=p._writableState;o&&o.autoDestroy||S&&S.autoDestroy?p.destroy(r):p.emit("error",r)}return gr={destroy:w,undestroy:a,errorOrDestroy:c},gr}var yr={},Ai;function Ue(){if(Ai)return yr;Ai=1;function w(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o}var d={};function s(r,o,S){S||(S=Error);function T(O,x,I){return typeof o=="string"?o:o(O,x,I)}var R=function(O){w(x,O);function x(I,b,A){return O.call(this,T(I,b,A))||this}return x}(S);R.prototype.name=S.name,R.prototype.code=r,d[r]=R}function a(r,o){if(Array.isArray(r)){var S=r.length;return r=r.map(function(T){return String(T)}),S>2?"one of ".concat(o," ").concat(r.slice(0,S-1).join(", "),", or ")+r[S-1]:S===2?"one of ".concat(o," ").concat(r[0]," or ").concat(r[1]):"of ".concat(o," ").concat(r[0])}else return"of ".concat(o," ").concat(String(r))}function h(r,o,S){return r.substr(0,o.length)===o}function c(r,o,S){return(S===void 0||S>r.length)&&(S=r.length),r.substring(S-o.length,S)===o}function p(r,o,S){return typeof S!="number"&&(S=0),S+o.length>r.length?!1:r.indexOf(o,S)!==-1}return s("ERR_INVALID_OPT_VALUE",function(r,o){return'The value "'+o+'" is invalid for option "'+r+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(r,o,S){var T;typeof o=="string"&&h(o,"not ")?(T="must not be",o=o.replace(/^not /,"")):T="must be";var R;if(c(r," argument"))R="The ".concat(r," ").concat(T," ").concat(a(o,"type"));else{var O=p(r,".")?"property":"argument";R='The "'.concat(r,'" ').concat(O," ").concat(T," ").concat(a(o,"type"))}return R+=". Received type ".concat(typeof S),R},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),yr.codes=d,yr}var vr,Si;function Ns(){if(Si)return vr;Si=1;var w=Ue().codes.ERR_INVALID_OPT_VALUE;function d(a,h,c){return a.highWaterMark!=null?a.highWaterMark:h?a[c]:null}function s(a,h,c,p){var r=d(h,p,c);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var o=p?c:"highWaterMark";throw new w(o,r)}return Math.floor(r)}return a.objectMode?16:16*1024}return vr={getHighWaterMark:s},vr}var _r,Ri;function Ga(){if(Ri)return _r;Ri=1,_r=w;function w(s,a){if(d("noDeprecation"))return s;var h=!1;function c(){if(!h){if(d("throwDeprecation"))throw new Error(a);d("traceDeprecation")?console.trace(a):console.warn(a),h=!0}return s.apply(this,arguments)}return c}function d(s){try{if(!ye.localStorage)return!1}catch{return!1}var a=ye.localStorage[s];return a==null?!1:String(a).toLowerCase()==="true"}return _r}var br,Ii;function Os(){if(Ii)return br;Ii=1,br=W;function w(K){var v=this;this.next=null,this.entry=null,this.finish=function(){te(v,K)}}var d;W.WritableState=P;var s={deprecate:Ga()},a=ws(),h=ot().Buffer,c=(typeof ye!="undefined"?ye:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function p(K){return h.from(K)}function r(K){return h.isBuffer(K)||K instanceof c}var o=Is(),S=Ns(),T=S.getHighWaterMark,R=Ue().codes,O=R.ERR_INVALID_ARG_TYPE,x=R.ERR_METHOD_NOT_IMPLEMENTED,I=R.ERR_MULTIPLE_CALLBACK,b=R.ERR_STREAM_CANNOT_PIPE,A=R.ERR_STREAM_DESTROYED,n=R.ERR_STREAM_NULL_VALUES,y=R.ERR_STREAM_WRITE_AFTER_END,m=R.ERR_UNKNOWN_ENCODING,i=o.errorOrDestroy;Ne()(W,a);function E(){}function P(K,v,f){d=d||Fe(),K=K||{},typeof f!="boolean"&&(f=v instanceof d),this.objectMode=!!K.objectMode,f&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=T(this,K,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=K.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=K.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){ee(v,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new w(this)}P.prototype.getBuffer=function(){for(var v=this.bufferedRequest,f=[];v;)f.push(v),v=v.next;return f},function(){try{Object.defineProperty(P.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var F;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(F=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(v){return F.call(this,v)?!0:this!==W?!1:v&&v._writableState instanceof P}})):F=function(v){return v instanceof this};function W(K){d=d||Fe();var v=this instanceof d;if(!v&&!F.call(W,this))return new W(K);this._writableState=new P(K,this,v),this.writable=!0,K&&(typeof K.write=="function"&&(this._write=K.write),typeof K.writev=="function"&&(this._writev=K.writev),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.final=="function"&&(this._final=K.final)),a.call(this)}W.prototype.pipe=function(){i(this,new b)};function N(K,v){var f=new y;i(K,f),he.nextTick(v,f)}function X(K,v,f,j){var U;return f===null?U=new n:typeof f!="string"&&!v.objectMode&&(U=new O("chunk",["string","Buffer"],f)),U?(i(K,U),he.nextTick(j,U),!1):!0}W.prototype.write=function(K,v,f){var j=this._writableState,U=!1,C=!j.objectMode&&r(K);return C&&!h.isBuffer(K)&&(K=p(K)),typeof v=="function"&&(f=v,v=null),C?v="buffer":v||(v=j.defaultEncoding),typeof f!="function"&&(f=E),j.ending?N(this,f):(C||X(this,j,K,f))&&(j.pendingcb++,U=k(this,j,C,K,v,f)),U},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,!K.writing&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&Q(this,K))},W.prototype.setDefaultEncoding=function(v){if(typeof v=="string"&&(v=v.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((v+"").toLowerCase())>-1))throw new m(v);return this._writableState.defaultEncoding=v,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ae(K,v,f){return!K.objectMode&&K.decodeStrings!==!1&&typeof v=="string"&&(v=h.from(v,f)),v}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(K,v,f,j,U,C){if(!f){var L=ae(v,j,U);j!==L&&(f=!0,U="buffer",j=L)}var J=v.objectMode?1:j.length;v.length+=J;var u=v.length<v.highWaterMark;if(u||(v.needDrain=!0),v.writing||v.corked){var Y=v.lastBufferedRequest;v.lastBufferedRequest={chunk:j,encoding:U,isBuf:f,callback:C,next:null},Y?Y.next=v.lastBufferedRequest:v.bufferedRequest=v.lastBufferedRequest,v.bufferedRequestCount+=1}else M(K,v,!1,J,j,U,C);return u}function M(K,v,f,j,U,C,L){v.writelen=j,v.writecb=L,v.writing=!0,v.sync=!0,v.destroyed?v.onwrite(new A("write")):f?K._writev(U,v.onwrite):K._write(U,C,v.onwrite),v.sync=!1}function g(K,v,f,j,U){--v.pendingcb,f?(he.nextTick(U,j),he.nextTick($,K,v),K._writableState.errorEmitted=!0,i(K,j)):(U(j),K._writableState.errorEmitted=!0,i(K,j),$(K,v))}function q(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}function ee(K,v){var f=K._writableState,j=f.sync,U=f.writecb;if(typeof U!="function")throw new I;if(q(f),v)g(K,f,j,v,U);else{var C=oe(f)||K.destroyed;!C&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&Q(K,f),j?he.nextTick(z,K,f,C,U):z(K,f,C,U)}}function z(K,v,f,j){f||ne(K,v),v.pendingcb--,j(),$(K,v)}function ne(K,v){v.length===0&&v.needDrain&&(v.needDrain=!1,K.emit("drain"))}function Q(K,v){v.bufferProcessing=!0;var f=v.bufferedRequest;if(K._writev&&f&&f.next){var j=v.bufferedRequestCount,U=new Array(j),C=v.corkedRequestsFree;C.entry=f;for(var L=0,J=!0;f;)U[L]=f,f.isBuf||(J=!1),f=f.next,L+=1;U.allBuffers=J,M(K,v,!0,v.length,U,"",C.finish),v.pendingcb++,v.lastBufferedRequest=null,C.next?(v.corkedRequestsFree=C.next,C.next=null):v.corkedRequestsFree=new w(v),v.bufferedRequestCount=0}else{for(;f;){var u=f.chunk,Y=f.encoding,_=f.callback,e=v.objectMode?1:u.length;if(M(K,v,!1,e,u,Y,_),f=f.next,v.bufferedRequestCount--,v.writing)break}f===null&&(v.lastBufferedRequest=null)}v.bufferedRequest=f,v.bufferProcessing=!1}W.prototype._write=function(K,v,f){f(new x("_write()"))},W.prototype._writev=null,W.prototype.end=function(K,v,f){var j=this._writableState;return typeof K=="function"?(f=K,K=null,v=null):typeof v=="function"&&(f=v,v=null),K!=null&&this.write(K,v),j.corked&&(j.corked=1,this.uncork()),j.ending||Z(this,j,f),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function oe(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function V(K,v){K._final(function(f){v.pendingcb--,f&&i(K,f),v.prefinished=!0,K.emit("prefinish"),$(K,v)})}function D(K,v){!v.prefinished&&!v.finalCalled&&(typeof K._final=="function"&&!v.destroyed?(v.pendingcb++,v.finalCalled=!0,he.nextTick(V,K,v)):(v.prefinished=!0,K.emit("prefinish")))}function $(K,v){var f=oe(v);if(f&&(D(K,v),v.pendingcb===0&&(v.finished=!0,K.emit("finish"),v.autoDestroy))){var j=K._readableState;(!j||j.autoDestroy&&j.endEmitted)&&K.destroy()}return f}function Z(K,v,f){v.ending=!0,$(K,v),f&&(v.finished?he.nextTick(f):K.once("finish",f)),v.ended=!0,K.writable=!1}function te(K,v,f){var j=K.entry;for(K.entry=null;j;){var U=j.callback;v.pendingcb--,U(f),j=j.next}v.corkedRequestsFree.next=K}return Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(v){this._writableState&&(this._writableState.destroyed=v)}}),W.prototype.destroy=o.destroy,W.prototype._undestroy=o.undestroy,W.prototype._destroy=function(K,v){v(K)},br}var Er,Ni;function Fe(){if(Ni)return Er;Ni=1;var w=Object.keys||function(S){var T=[];for(var R in S)T.push(R);return T};Er=p;var d=ks(),s=Os();Ne()(p,d);for(var a=w(s.prototype),h=0;h<a.length;h++){var c=a[h];p.prototype[c]||(p.prototype[c]=s.prototype[c])}function p(S){if(!(this instanceof p))return new p(S);d.call(this,S),s.call(this,S),this.allowHalfOpen=!0,S&&(S.readable===!1&&(this.readable=!1),S.writable===!1&&(this.writable=!1),S.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",r)))}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function r(){this._writableState.ended||he.nextTick(o,this)}function o(S){S.end()}return Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=T,this._writableState.destroyed=T)}}),Er}var xr={},rt={exports:{}};var Oi;function Ka(){return Oi||(Oi=1,function(w,d){var s=ot(),a=s.Buffer;function h(p,r){for(var o in p)r[o]=p[o]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?w.exports=s:(h(s,d),d.Buffer=c);function c(p,r,o){return a(p,r,o)}c.prototype=Object.create(a.prototype),h(a,c),c.from=function(p,r,o){if(typeof p=="number")throw new TypeError("Argument must not be a number");return a(p,r,o)},c.alloc=function(p,r,o){if(typeof p!="number")throw new TypeError("Argument must be a number");var S=a(p);return r!==void 0?typeof o=="string"?S.fill(r,o):S.fill(r):S.fill(0),S},c.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return a(p)},c.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return s.SlowBuffer(p)}}(rt,rt.exports)),rt.exports}var ki;function tn(){if(ki)return xr;ki=1;var w=Ka().Buffer,d=w.isEncoding||function(n){switch(n=""+n,n&&n.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 s(n){if(!n)return"utf8";for(var y;;)switch(n){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 n;default:if(y)return;n=(""+n).toLowerCase(),y=!0}}function a(n){var y=s(n);if(typeof y!="string"&&(w.isEncoding===d||!d(n)))throw new Error("Unknown encoding: "+n);return y||n}xr.StringDecoder=h;function h(n){this.encoding=a(n);var y;switch(this.encoding){case"utf16le":this.text=R,this.end=O,y=4;break;case"utf8":this.fillLast=o,y=4;break;case"base64":this.text=x,this.end=I,y=3;break;default:this.write=b,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=w.allocUnsafe(y)}h.prototype.write=function(n){if(n.length===0)return"";var y,m;if(this.lastNeed){if(y=this.fillLast(n),y===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<n.length?y?y+this.text(n,m):this.text(n,m):y||""},h.prototype.end=T,h.prototype.text=S,h.prototype.fillLast=function(n){if(this.lastNeed<=n.length)return n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,this.lastTotal-this.lastNeed,0,n.length),this.lastNeed-=n.length};function c(n){return n<=127?0:n>>5===6?2:n>>4===14?3:n>>3===30?4:n>>6===2?-1:-2}function p(n,y,m){var i=y.length-1;if(i<m)return 0;var E=c(y[i]);return E>=0?(E>0&&(n.lastNeed=E-1),E):--i<m||E===-2?0:(E=c(y[i]),E>=0?(E>0&&(n.lastNeed=E-2),E):--i<m||E===-2?0:(E=c(y[i]),E>=0?(E>0&&(E===2?E=0:n.lastNeed=E-3),E):0))}function r(n,y,m){if((y[0]&192)!==128)return n.lastNeed=0,"\uFFFD";if(n.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return n.lastNeed=1,"\uFFFD";if(n.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return n.lastNeed=2,"\uFFFD"}}function o(n){var y=this.lastTotal-this.lastNeed,m=r(this,n);if(m!==void 0)return m;if(this.lastNeed<=n.length)return n.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,y,0,n.length),this.lastNeed-=n.length}function S(n,y){var m=p(this,n,y);if(!this.lastNeed)return n.toString("utf8",y);this.lastTotal=m;var i=n.length-(m-this.lastNeed);return n.copy(this.lastChar,0,i),n.toString("utf8",y,i)}function T(n){var y=n&&n.length?this.write(n):"";return this.lastNeed?y+"\uFFFD":y}function R(n,y){if((n.length-y)%2===0){var m=n.toString("utf16le",y);if(m){var i=m.charCodeAt(m.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",y,n.length-1)}function O(n){var y=n&&n.length?this.write(n):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,m)}return y}function x(n,y){var m=(n.length-y)%3;return m===0?n.toString("base64",y):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",y,n.length-m))}function I(n){var y=n&&n.length?this.write(n):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function b(n){return n.toString(this.encoding)}function A(n){return n&&n.length?this.write(n):""}return xr}var Tr,Ci;function hn(){if(Ci)return Tr;Ci=1;var w=Ue().codes.ERR_STREAM_PREMATURE_CLOSE;function d(c){var p=!1;return function(){if(!p){p=!0;for(var r=arguments.length,o=new Array(r),S=0;S<r;S++)o[S]=arguments[S];c.apply(this,o)}}}function s(){}function a(c){return c.setHeader&&typeof c.abort=="function"}function h(c,p,r){if(typeof p=="function")return h(c,null,p);p||(p={}),r=d(r||s);var o=p.readable||p.readable!==!1&&c.readable,S=p.writable||p.writable!==!1&&c.writable,T=function(){c.writable||O()},R=c._writableState&&c._writableState.finished,O=function(){S=!1,R=!0,o||r.call(c)},x=c._readableState&&c._readableState.endEmitted,I=function(){o=!1,x=!0,S||r.call(c)},b=function(m){r.call(c,m)},A=function(){var m;if(o&&!x)return(!c._readableState||!c._readableState.ended)&&(m=new w),r.call(c,m);if(S&&!R)return(!c._writableState||!c._writableState.ended)&&(m=new w),r.call(c,m)},n=function(){c.req.on("finish",O)};return a(c)?(c.on("complete",O),c.on("abort",A),c.req?n():c.on("request",n)):S&&!c._writableState&&(c.on("end",T),c.on("close",T)),c.on("end",I),c.on("finish",O),p.error!==!1&&c.on("error",b),c.on("close",A),function(){c.removeListener("complete",O),c.removeListener("abort",A),c.removeListener("request",n),c.req&&c.req.removeListener("finish",O),c.removeListener("end",T),c.removeListener("close",T),c.removeListener("finish",O),c.removeListener("end",I),c.removeListener("error",b),c.removeListener("close",A)}}return Tr=h,Tr}var Ar,Di;function qa(){if(Di)return Ar;Di=1;var w;function d(m,i,E){return i=s(i),i in m?Object.defineProperty(m,i,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[i]=E,m}function s(m){var i=a(m,"string");return typeof i=="symbol"?i:String(i)}function a(m,i){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var P=E.call(m,i);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(m)}var h=hn(),c=Symbol("lastResolve"),p=Symbol("lastReject"),r=Symbol("error"),o=Symbol("ended"),S=Symbol("lastPromise"),T=Symbol("handlePromise"),R=Symbol("stream");function O(m,i){return{value:m,done:i}}function x(m){var i=m[c];if(i!==null){var E=m[R].read();E!==null&&(m[S]=null,m[c]=null,m[p]=null,i(O(E,!1)))}}function I(m){he.nextTick(x,m)}function b(m,i){return function(E,P){m.then(function(){if(i[o]){E(O(void 0,!0));return}i[T](E,P)},P)}}var A=Object.getPrototypeOf(function(){}),n=Object.setPrototypeOf((w={get stream(){return this[R]},next:function(){var i=this,E=this[r];if(E!==null)return Promise.reject(E);if(this[o])return Promise.resolve(O(void 0,!0));if(this[R].destroyed)return new Promise(function(N,X){he.nextTick(function(){i[r]?X(i[r]):N(O(void 0,!0))})});var P=this[S],F;if(P)F=new Promise(b(P,this));else{var W=this[R].read();if(W!==null)return Promise.resolve(O(W,!1));F=new Promise(this[T])}return this[S]=F,F}},d(w,Symbol.asyncIterator,function(){return this}),d(w,"return",function(){var i=this;return new Promise(function(E,P){i[R].destroy(null,function(F){if(F){P(F);return}E(O(void 0,!0))})})}),w),A),y=function(i){var E,P=Object.create(n,(E={},d(E,R,{value:i,writable:!0}),d(E,c,{value:null,writable:!0}),d(E,p,{value:null,writable:!0}),d(E,r,{value:null,writable:!0}),d(E,o,{value:i._readableState.endEmitted,writable:!0}),d(E,T,{value:function(W,N){var X=P[R].read();X?(P[S]=null,P[c]=null,P[p]=null,W(O(X,!1))):(P[c]=W,P[p]=N)},writable:!0}),E));return P[S]=null,h(i,function(F){if(F&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"){var W=P[p];W!==null&&(P[S]=null,P[c]=null,P[p]=null,W(F)),P[r]=F;return}var N=P[c];N!==null&&(P[S]=null,P[c]=null,P[p]=null,N(O(void 0,!0))),P[o]=!0}),i.on("readable",I.bind(null,P)),P};return Ar=y,Ar}var Sr,Li;function Va(){return Li||(Li=1,Sr=function(){throw new Error("Readable.from is not available in the browser")}),Sr}var Rr,Pi;function ks(){if(Pi)return Rr;Pi=1,Rr=N;var w;N.ReadableState=W,on().EventEmitter;var d=function(L,J){return L.listeners(J).length},s=ws(),a=ot().Buffer,h=(typeof ye!="undefined"?ye:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function c(C){return a.from(C)}function p(C){return a.isBuffer(C)||C instanceof h}var r=Rs(),o;r&&r.debuglog?o=r.debuglog("stream"):o=function(){};var S=za(),T=Is(),R=Ns(),O=R.getHighWaterMark,x=Ue().codes,I=x.ERR_INVALID_ARG_TYPE,b=x.ERR_STREAM_PUSH_AFTER_EOF,A=x.ERR_METHOD_NOT_IMPLEMENTED,n=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,m,i;Ne()(N,s);var E=T.errorOrDestroy,P=["error","close","destroy","pause","resume"];function F(C,L,J){if(typeof C.prependListener=="function")return C.prependListener(L,J);!C._events||!C._events[L]?C.on(L,J):Array.isArray(C._events[L])?C._events[L].unshift(J):C._events[L]=[J,C._events[L]]}function W(C,L,J){w=w||Fe(),C=C||{},typeof J!="boolean"&&(J=L instanceof w),this.objectMode=!!C.objectMode,J&&(this.objectMode=this.objectMode||!!C.readableObjectMode),this.highWaterMark=O(this,C,"readableHighWaterMark",J),this.buffer=new S,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.paused=!0,this.emitClose=C.emitClose!==!1,this.autoDestroy=!!C.autoDestroy,this.destroyed=!1,this.defaultEncoding=C.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,C.encoding&&(y||(y=tn().StringDecoder),this.decoder=new y(C.encoding),this.encoding=C.encoding)}function N(C){if(w=w||Fe(),!(this instanceof N))return new N(C);var L=this instanceof w;this._readableState=new W(C,this,L),this.readable=!0,C&&(typeof C.read=="function"&&(this._read=C.read),typeof C.destroy=="function"&&(this._destroy=C.destroy)),s.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),N.prototype.destroy=T.destroy,N.prototype._undestroy=T.undestroy,N.prototype._destroy=function(C,L){L(C)},N.prototype.push=function(C,L){var J=this._readableState,u;return J.objectMode?u=!0:typeof C=="string"&&(L=L||J.defaultEncoding,L!==J.encoding&&(C=a.from(C,L),L=""),u=!0),X(this,C,L,!1,u)},N.prototype.unshift=function(C){return X(this,C,null,!0,!1)};function X(C,L,J,u,Y){o("readableAddChunk",L);var _=C._readableState;if(L===null)_.reading=!1,ee(C,_);else{var e;if(Y||(e=k(_,L)),e)E(C,e);else if(_.objectMode||L&&L.length>0)if(typeof L!="string"&&!_.objectMode&&Object.getPrototypeOf(L)!==a.prototype&&(L=c(L)),u)_.endEmitted?E(C,new n):ae(C,_,L,!0);else if(_.ended)E(C,new b);else{if(_.destroyed)return!1;_.reading=!1,_.decoder&&!J?(L=_.decoder.write(L),_.objectMode||L.length!==0?ae(C,_,L,!1):Q(C,_)):ae(C,_,L,!1)}else u||(_.reading=!1,Q(C,_))}return!_.ended&&(_.length<_.highWaterMark||_.length===0)}function ae(C,L,J,u){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,C.emit("data",J)):(L.length+=L.objectMode?1:J.length,u?L.buffer.unshift(J):L.buffer.push(J),L.needReadable&&z(C)),Q(C,L)}function k(C,L){var J;return!p(L)&&typeof L!="string"&&L!==void 0&&!C.objectMode&&(J=new I("chunk",["string","Buffer","Uint8Array"],L)),J}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(C){y||(y=tn().StringDecoder);var L=new y(C);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,u="";J!==null;)u+=L.write(J.data),J=J.next;return this._readableState.buffer.clear(),u!==""&&this._readableState.buffer.push(u),this._readableState.length=u.length,this};var M=1073741824;function g(C){return C>=M?C=M:(C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++),C}function q(C,L){return C<=0||L.length===0&&L.ended?0:L.objectMode?1:C!==C?L.flowing&&L.length?L.buffer.head.data.length:L.length:(C>L.highWaterMark&&(L.highWaterMark=g(C)),C<=L.length?C:L.ended?L.length:(L.needReadable=!0,0))}N.prototype.read=function(C){o("read",C),C=parseInt(C,10);var L=this._readableState,J=C;if(C!==0&&(L.emittedReadable=!1),C===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return o("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?f(this):z(this),null;if(C=q(C,L),C===0&&L.ended)return L.length===0&&f(this),null;var u=L.needReadable;o("need readable",u),(L.length===0||L.length-C<L.highWaterMark)&&(u=!0,o("length less than watermark",u)),L.ended||L.reading?(u=!1,o("reading or ended",u)):u&&(o("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(C=q(J,L)));var Y;return C>0?Y=v(C,L):Y=null,Y===null?(L.needReadable=L.length<=L.highWaterMark,C=0):(L.length-=C,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),J!==C&&L.ended&&f(this)),Y!==null&&this.emit("data",Y),Y};function ee(C,L){if(o("onEofChunk"),!L.ended){if(L.decoder){var J=L.decoder.end();J&&J.length&&(L.buffer.push(J),L.length+=L.objectMode?1:J.length)}L.ended=!0,L.sync?z(C):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,ne(C)))}}function z(C){var L=C._readableState;o("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(o("emitReadable",L.flowing),L.emittedReadable=!0,he.nextTick(ne,C))}function ne(C){var L=C._readableState;o("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(C.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,K(C)}function Q(C,L){L.readingMore||(L.readingMore=!0,he.nextTick(oe,C,L))}function oe(C,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var J=L.length;if(o("maybeReadMore read 0"),C.read(0),J===L.length)break}L.readingMore=!1}N.prototype._read=function(C){E(this,new A("_read()"))},N.prototype.pipe=function(C,L){var J=this,u=this._readableState;switch(u.pipesCount){case 0:u.pipes=C;break;case 1:u.pipes=[u.pipes,C];break;default:u.pipes.push(C);break}u.pipesCount+=1,o("pipe count=%d opts=%j",u.pipesCount,L);var Y=(!L||L.end!==!1)&&C!==he.stdout&&C!==he.stderr,_=Y?t:ue;u.endEmitted?he.nextTick(_):J.once("end",_),C.on("unpipe",e);function e(ce,le){o("onunpipe"),ce===J&&le&&le.hasUnpiped===!1&&(le.hasUnpiped=!0,G())}function t(){o("onend"),C.end()}var l=V(J);C.on("drain",l);var B=!1;function G(){o("cleanup"),C.removeListener("close",se),C.removeListener("finish",ie),C.removeListener("drain",l),C.removeListener("error",re),C.removeListener("unpipe",e),J.removeListener("end",t),J.removeListener("end",ue),J.removeListener("data",H),B=!0,u.awaitDrain&&(!C._writableState||C._writableState.needDrain)&&l()}J.on("data",H);function H(ce){o("ondata");var le=C.write(ce);o("dest.write",le),le===!1&&((u.pipesCount===1&&u.pipes===C||u.pipesCount>1&&U(u.pipes,C)!==-1)&&!B&&(o("false write response, pause",u.awaitDrain),u.awaitDrain++),J.pause())}function re(ce){o("onerror",ce),ue(),C.removeListener("error",re),d(C,"error")===0&&E(C,ce)}F(C,"error",re);function se(){C.removeListener("finish",ie),ue()}C.once("close",se);function ie(){o("onfinish"),C.removeListener("close",se),ue()}C.once("finish",ie);function ue(){o("unpipe"),J.unpipe(C)}return C.emit("pipe",J),u.flowing||(o("pipe resume"),J.resume()),C};function V(C){return function(){var J=C._readableState;o("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&d(C,"data")&&(J.flowing=!0,K(C))}}N.prototype.unpipe=function(C){var L=this._readableState,J={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return C&&C!==L.pipes?this:(C||(C=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,C&&C.emit("unpipe",this,J),this);if(!C){var u=L.pipes,Y=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var _=0;_<Y;_++)u[_].emit("unpipe",this,{hasUnpiped:!1});return this}var e=U(L.pipes,C);return e===-1?this:(L.pipes.splice(e,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),C.emit("unpipe",this,J),this)},N.prototype.on=function(C,L){var J=s.prototype.on.call(this,C,L),u=this._readableState;return C==="data"?(u.readableListening=this.listenerCount("readable")>0,u.flowing!==!1&&this.resume()):C==="readable"&&!u.endEmitted&&!u.readableListening&&(u.readableListening=u.needReadable=!0,u.flowing=!1,u.emittedReadable=!1,o("on readable",u.length,u.reading),u.length?z(this):u.reading||he.nextTick($,this)),J},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(C,L){var J=s.prototype.removeListener.call(this,C,L);return C==="readable"&&he.nextTick(D,this),J},N.prototype.removeAllListeners=function(C){var L=s.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&he.nextTick(D,this),L};function D(C){var L=C._readableState;L.readableListening=C.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:C.listenerCount("data")>0&&C.resume()}function $(C){o("readable nexttick read 0"),C.read(0)}N.prototype.resume=function(){var C=this._readableState;return C.flowing||(o("resume"),C.flowing=!C.readableListening,Z(this,C)),C.paused=!1,this};function Z(C,L){L.resumeScheduled||(L.resumeScheduled=!0,he.nextTick(te,C,L))}function te(C,L){o("resume",L.reading),L.reading||C.read(0),L.resumeScheduled=!1,C.emit("resume"),K(C),L.flowing&&!L.reading&&C.read(0)}N.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(C){var L=C._readableState;for(o("flow",L.flowing);L.flowing&&C.read()!==null;);}N.prototype.wrap=function(C){var L=this,J=this._readableState,u=!1;C.on("end",function(){if(o("wrapped end"),J.decoder&&!J.ended){var e=J.decoder.end();e&&e.length&&L.push(e)}L.push(null)}),C.on("data",function(e){if(o("wrapped data"),J.decoder&&(e=J.decoder.write(e)),!(J.objectMode&&e==null)&&!(!J.objectMode&&(!e||!e.length))){var t=L.push(e);t||(u=!0,C.pause())}});for(var Y in C)this[Y]===void 0&&typeof C[Y]=="function"&&(this[Y]=function(t){return function(){return C[t].apply(C,arguments)}}(Y));for(var _=0;_<P.length;_++)C.on(P[_],this.emit.bind(this,P[_]));return this._read=function(e){o("wrapped _read",e),u&&(u=!1,C.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=qa()),m(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),N._fromList=v,Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function v(C,L){if(L.length===0)return null;var J;return L.objectMode?J=L.buffer.shift():!C||C>=L.length?(L.decoder?J=L.buffer.join(""):L.buffer.length===1?J=L.buffer.first():J=L.buffer.concat(L.length),L.buffer.clear()):J=L.buffer.consume(C,L.decoder),J}function f(C){var L=C._readableState;o("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,he.nextTick(j,L,C))}function j(C,L){if(o("endReadableNT",C.endEmitted,C.length),!C.endEmitted&&C.length===0&&(C.endEmitted=!0,L.readable=!1,L.emit("end"),C.autoDestroy)){var J=L._writableState;(!J||J.autoDestroy&&J.finished)&&L.destroy()}}typeof Symbol=="function"&&(N.from=function(C,L){return i===void 0&&(i=Va()),i(N,C,L)});function U(C,L){for(var J=0,u=C.length;J<u;J++)if(C[J]===L)return J;return-1}return Rr}var Ir,Fi;function Cs(){if(Fi)return Ir;Fi=1,Ir=r;var w=Ue().codes,d=w.ERR_METHOD_NOT_IMPLEMENTED,s=w.ERR_MULTIPLE_CALLBACK,a=w.ERR_TRANSFORM_ALREADY_TRANSFORMING,h=w.ERR_TRANSFORM_WITH_LENGTH_0,c=Fe();Ne()(r,c);function p(T,R){var O=this._transformState;O.transforming=!1;var x=O.writecb;if(x===null)return this.emit("error",new s);O.writechunk=null,O.writecb=null,R!=null&&this.push(R),x(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function r(T){if(!(this instanceof r))return new r(T);c.call(this,T),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&(typeof T.transform=="function"&&(this._transform=T.transform),typeof T.flush=="function"&&(this._flush=T.flush)),this.on("prefinish",o)}function o(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(R,O){S(T,R,O)}):S(this,null,null)}r.prototype.push=function(T,R){return this._transformState.needTransform=!1,c.prototype.push.call(this,T,R)},r.prototype._transform=function(T,R,O){O(new d("_transform()"))},r.prototype._write=function(T,R,O){var x=this._transformState;if(x.writecb=O,x.writechunk=T,x.writeencoding=R,!x.transforming){var I=this._readableState;(x.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},r.prototype._read=function(T){var R=this._transformState;R.writechunk!==null&&!R.transforming?(R.transforming=!0,this._transform(R.writechunk,R.writeencoding,R.afterTransform)):R.needTransform=!0},r.prototype._destroy=function(T,R){c.prototype._destroy.call(this,T,function(O){R(O)})};function S(T,R,O){if(R)return T.emit("error",R);if(O!=null&&T.push(O),T._writableState.length)throw new h;if(T._transformState.transforming)throw new a;return T.push(null)}return Ir}var Nr,Bi;function $a(){if(Bi)return Nr;Bi=1,Nr=d;var w=Cs();Ne()(d,w);function d(s){if(!(this instanceof d))return new d(s);w.call(this,s)}return d.prototype._transform=function(s,a,h){h(null,s)},Nr}var Or,Ui;function Xa(){if(Ui)return Or;Ui=1;var w;function d(O){var x=!1;return function(){x||(x=!0,O.apply(void 0,arguments))}}var s=Ue().codes,a=s.ERR_MISSING_ARGS,h=s.ERR_STREAM_DESTROYED;function c(O){if(O)throw O}function p(O){return O.setHeader&&typeof O.abort=="function"}function r(O,x,I,b){b=d(b);var A=!1;O.on("close",function(){A=!0}),w===void 0&&(w=hn()),w(O,{readable:x,writable:I},function(y){if(y)return b(y);A=!0,b()});var n=!1;return function(y){if(!A&&!n){if(n=!0,p(O))return O.abort();if(typeof O.destroy=="function")return O.destroy();b(y||new h("pipe"))}}}function o(O){O()}function S(O,x){return O.pipe(x)}function T(O){return!O.length||typeof O[O.length-1]!="function"?c:O.pop()}function R(){for(var O=arguments.length,x=new Array(O),I=0;I<O;I++)x[I]=arguments[I];var b=T(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new a("streams");var A,n=x.map(function(y,m){var i=m<x.length-1,E=m>0;return r(y,i,E,function(P){A||(A=P),P&&n.forEach(o),!i&&(n.forEach(o),b(A))})});return x.reduce(S)}return Or=R,Or}var kr,Mi;function fn(){if(Mi)return kr;Mi=1,kr=s;var w=on().EventEmitter,d=Ne();d(s,w),s.Readable=ks(),s.Writable=Os(),s.Duplex=Fe(),s.Transform=Cs(),s.PassThrough=$a(),s.finished=hn(),s.pipeline=Xa(),s.Stream=s;function s(){w.call(this)}return s.prototype.pipe=function(a,h){var c=this;function p(x){a.writable&&a.write(x)===!1&&c.pause&&c.pause()}c.on("data",p);function r(){c.readable&&c.resume&&c.resume()}a.on("drain",r),!a._isStdio&&(!h||h.end!==!1)&&(c.on("end",S),c.on("close",T));var o=!1;function S(){o||(o=!0,a.end())}function T(){o||(o=!0,typeof a.destroy=="function"&&a.destroy())}function R(x){if(O(),w.listenerCount(this,"error")===0)throw x}c.on("error",R),a.on("error",R);function O(){c.removeListener("data",p),a.removeListener("drain",r),c.removeListener("end",S),c.removeListener("close",T),c.removeListener("error",R),a.removeListener("error",R),c.removeListener("end",O),c.removeListener("close",O),a.removeListener("close",O)}return c.on("end",O),c.on("close",O),a.on("close",O),a.emit("pipe",c),a},kr}var Hi;function Za(){return Hi||(Hi=1,function(w){(function(d){d.parser=function(v,f){return new a(v,f)},d.SAXParser=a,d.SAXStream=T,d.createStream=S,d.MAX_BUFFER_LENGTH=64*1024;var s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];d.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(v,f){if(!(this instanceof a))return new a(v,f);var j=this;c(j),j.q=j.c="",j.bufferCheckPosition=d.MAX_BUFFER_LENGTH,j.opt=f||{},j.opt.lowercase=j.opt.lowercase||j.opt.lowercasetags,j.looseCase=j.opt.lowercase?"toLowerCase":"toUpperCase",j.tags=[],j.closed=j.closedRoot=j.sawRoot=!1,j.tag=j.error=null,j.strict=!!v,j.noscript=!!(v||j.opt.noscript),j.state=N.BEGIN,j.strictEntities=j.opt.strictEntities,j.ENTITIES=j.strictEntities?Object.create(d.XML_ENTITIES):Object.create(d.ENTITIES),j.attribList=[],j.opt.xmlns&&(j.ns=Object.create(b)),j.opt.unquotedAttributeValues===void 0&&(j.opt.unquotedAttributeValues=!v),j.trackPosition=j.opt.position!==!1,j.trackPosition&&(j.position=j.line=j.column=0),ae(j,"onready")}Object.create||(Object.create=function(v){function f(){}f.prototype=v;var j=new f;return j}),Object.keys||(Object.keys=function(v){var f=[];for(var j in v)v.hasOwnProperty(j)&&f.push(j);return f});function h(v){for(var f=Math.max(d.MAX_BUFFER_LENGTH,10),j=0,U=0,C=s.length;U<C;U++){var L=v[s[U]].length;if(L>f)switch(s[U]){case"textNode":M(v);break;case"cdata":k(v,"oncdata",v.cdata),v.cdata="";break;case"script":k(v,"onscript",v.script),v.script="";break;default:q(v,"Max buffer length exceeded: "+s[U])}j=Math.max(j,L)}var J=d.MAX_BUFFER_LENGTH-j;v.bufferCheckPosition=J+v.position}function c(v){for(var f=0,j=s.length;f<j;f++)v[s[f]]=""}function p(v){M(v),v.cdata!==""&&(k(v,"oncdata",v.cdata),v.cdata=""),v.script!==""&&(k(v,"onscript",v.script),v.script="")}a.prototype={end:function(){ee(this)},write:K,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var r;try{r=fn().Stream}catch{r=function(){}}r||(r=function(){});var o=d.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});function S(v,f){return new T(v,f)}function T(v,f){if(!(this instanceof T))return new T(v,f);r.apply(this),this._parser=new a(v,f),this.writable=!0,this.readable=!0;var j=this;this._parser.onend=function(){j.emit("end")},this._parser.onerror=function(U){j.emit("error",U),j._parser.error=null},this._decoder=null,o.forEach(function(U){Object.defineProperty(j,"on"+U,{get:function(){return j._parser["on"+U]},set:function(C){if(!C)return j.removeAllListeners(U),j._parser["on"+U]=C,C;j.on(U,C)},enumerable:!0,configurable:!1})})}T.prototype=Object.create(r.prototype,{constructor:{value:T}}),T.prototype.write=function(v){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(v)){if(!this._decoder){var f=tn().StringDecoder;this._decoder=new f("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},T.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},T.prototype.on=function(v,f){var j=this;return!j._parser["on"+v]&&o.indexOf(v)!==-1&&(j._parser["on"+v]=function(){var U=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);U.splice(0,0,v),j.emit.apply(j,U)}),r.prototype.on.call(j,v,f)};var R="[CDATA[",O="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",b={xml:x,xmlns:I},A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function i(v){return v===" "||v===`
|
|
11
|
-
`||v==="\r"||v===" "}function E(v){return v==='"'||v==="'"}function P(v){return v===">"||i(v)}function F(v,f){return v.test(f)}function W(v,f){return!F(v,f)}var N=0;d.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},d.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},d.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(d.ENTITIES).forEach(function(v){var f=d.ENTITIES[v],j=typeof f=="number"?String.fromCharCode(f):f;d.ENTITIES[v]=j});for(var X in d.STATE)d.STATE[d.STATE[X]]=X;N=d.STATE;function ae(v,f,j){v[f]&&v[f](j)}function k(v,f,j){v.textNode&&M(v),ae(v,f,j)}function M(v){v.textNode=g(v.opt,v.textNode),v.textNode&&ae(v,"ontext",v.textNode),v.textNode=""}function g(v,f){return v.trim&&(f=f.trim()),v.normalize&&(f=f.replace(/\s+/g," ")),f}function q(v,f){return M(v),v.trackPosition&&(f+=`
|
|
12
|
-
Line: `+v.line+`
|
|
13
|
-
Column: `+v.column+`
|
|
14
|
-
Char: `+v.c),f=new Error(f),v.error=f,ae(v,"onerror",f),v}function ee(v){return v.sawRoot&&!v.closedRoot&&z(v,"Unclosed root tag"),v.state!==N.BEGIN&&v.state!==N.BEGIN_WHITESPACE&&v.state!==N.TEXT&&q(v,"Unexpected end"),M(v),v.c="",v.closed=!0,ae(v,"onend"),a.call(v,v.strict,v.opt),v}function z(v,f){if(typeof v!="object"||!(v instanceof a))throw new Error("bad call to strictFail");v.strict&&q(v,f)}function ne(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var f=v.tags[v.tags.length-1]||v,j=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(j.ns=f.ns),v.attribList.length=0,k(v,"onopentagstart",j)}function Q(v,f){var j=v.indexOf(":"),U=j<0?["",v]:v.split(":"),C=U[0],L=U[1];return f&&v==="xmlns"&&(C="xmlns",L=""),{prefix:C,local:L}}function oe(v){if(v.strict||(v.attribName=v.attribName[v.looseCase]()),v.attribList.indexOf(v.attribName)!==-1||v.tag.attributes.hasOwnProperty(v.attribName)){v.attribName=v.attribValue="";return}if(v.opt.xmlns){var f=Q(v.attribName,!0),j=f.prefix,U=f.local;if(j==="xmlns")if(U==="xml"&&v.attribValue!==x)z(v,"xml: prefix must be bound to "+x+`
|
|
15
|
-
Actual: `+v.attribValue);else if(U==="xmlns"&&v.attribValue!==I)z(v,"xmlns: prefix must be bound to "+I+`
|
|
16
|
-
Actual: `+v.attribValue);else{var C=v.tag,L=v.tags[v.tags.length-1]||v;C.ns===L.ns&&(C.ns=Object.create(L.ns)),C.ns[U]=v.attribValue}v.attribList.push([v.attribName,v.attribValue])}else v.tag.attributes[v.attribName]=v.attribValue,k(v,"onattribute",{name:v.attribName,value:v.attribValue});v.attribName=v.attribValue=""}function V(v,f){if(v.opt.xmlns){var j=v.tag,U=Q(v.tagName);j.prefix=U.prefix,j.local=U.local,j.uri=j.ns[U.prefix]||"",j.prefix&&!j.uri&&(z(v,"Unbound namespace prefix: "+JSON.stringify(v.tagName)),j.uri=U.prefix);var C=v.tags[v.tags.length-1]||v;j.ns&&C.ns!==j.ns&&Object.keys(j.ns).forEach(function(H){k(v,"onopennamespace",{prefix:H,uri:j.ns[H]})});for(var L=0,J=v.attribList.length;L<J;L++){var u=v.attribList[L],Y=u[0],_=u[1],e=Q(Y,!0),t=e.prefix,l=e.local,B=t===""?"":j.ns[t]||"",G={name:Y,value:_,prefix:t,local:l,uri:B};t&&t!=="xmlns"&&!B&&(z(v,"Unbound namespace prefix: "+JSON.stringify(t)),G.uri=t),v.tag.attributes[Y]=G,k(v,"onattribute",G)}v.attribList.length=0}v.tag.isSelfClosing=!!f,v.sawRoot=!0,v.tags.push(v.tag),k(v,"onopentag",v.tag),f||(!v.noscript&&v.tagName.toLowerCase()==="script"?v.state=N.SCRIPT:v.state=N.TEXT,v.tag=null,v.tagName=""),v.attribName=v.attribValue="",v.attribList.length=0}function D(v){if(!v.tagName){z(v,"Weird empty close tag."),v.textNode+="</>",v.state=N.TEXT;return}if(v.script){if(v.tagName!=="script"){v.script+="</"+v.tagName+">",v.tagName="",v.state=N.SCRIPT;return}k(v,"onscript",v.script),v.script=""}var f=v.tags.length,j=v.tagName;v.strict||(j=j[v.looseCase]());for(var U=j;f--;){var C=v.tags[f];if(C.name!==U)z(v,"Unexpected close tag");else break}if(f<0){z(v,"Unmatched closing tag: "+v.tagName),v.textNode+="</"+v.tagName+">",v.state=N.TEXT;return}v.tagName=j;for(var L=v.tags.length;L-- >f;){var J=v.tag=v.tags.pop();v.tagName=v.tag.name,k(v,"onclosetag",v.tagName);var u={};for(var Y in J.ns)u[Y]=J.ns[Y];var _=v.tags[v.tags.length-1]||v;v.opt.xmlns&&J.ns!==_.ns&&Object.keys(J.ns).forEach(function(e){var t=J.ns[e];k(v,"onclosenamespace",{prefix:e,uri:t})})}f===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=N.TEXT}function $(v){var f=v.entity,j=f.toLowerCase(),U,C="";return v.ENTITIES[f]?v.ENTITIES[f]:v.ENTITIES[j]?v.ENTITIES[j]:(f=j,f.charAt(0)==="#"&&(f.charAt(1)==="x"?(f=f.slice(2),U=parseInt(f,16),C=U.toString(16)):(f=f.slice(1),U=parseInt(f,10),C=U.toString(10))),f=f.replace(/^0+/,""),isNaN(U)||C.toLowerCase()!==f?(z(v,"Invalid character entity"),"&"+v.entity+";"):String.fromCodePoint(U))}function Z(v,f){f==="<"?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):i(f)||(z(v,"Non-whitespace before first tag."),v.textNode=f,v.state=N.TEXT)}function te(v,f){var j="";return f<v.length&&(j=v.charAt(f)),j}function K(v){var f=this;if(this.error)throw this.error;if(f.closed)return q(f,"Cannot write after close. Assign an onready handler.");if(v===null)return ee(f);typeof v=="object"&&(v=v.toString());for(var j=0,U="";U=te(v,j++),f.c=U,!!U;)switch(f.trackPosition&&(f.position++,U===`
|
|
17
|
-
`?(f.line++,f.column=0):f.column++),f.state){case N.BEGIN:if(f.state=N.BEGIN_WHITESPACE,U==="\uFEFF")continue;Z(f,U);continue;case N.BEGIN_WHITESPACE:Z(f,U);continue;case N.TEXT:if(f.sawRoot&&!f.closedRoot){for(var C=j-1;U&&U!=="<"&&U!=="&";)U=te(v,j++),U&&f.trackPosition&&(f.position++,U===`
|
|
18
|
-
`?(f.line++,f.column=0):f.column++);f.textNode+=v.substring(C,j-1)}U==="<"&&!(f.sawRoot&&f.closedRoot&&!f.strict)?(f.state=N.OPEN_WAKA,f.startTagPosition=f.position):(!i(U)&&(!f.sawRoot||f.closedRoot)&&z(f,"Text data outside of root node."),U==="&"?f.state=N.TEXT_ENTITY:f.textNode+=U);continue;case N.SCRIPT:U==="<"?f.state=N.SCRIPT_ENDING:f.script+=U;continue;case N.SCRIPT_ENDING:U==="/"?f.state=N.CLOSE_TAG:(f.script+="<"+U,f.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(U==="!")f.state=N.SGML_DECL,f.sgmlDecl="";else if(!i(U))if(F(A,U))f.state=N.OPEN_TAG,f.tagName=U;else if(U==="/")f.state=N.CLOSE_TAG,f.tagName="";else if(U==="?")f.state=N.PROC_INST,f.procInstName=f.procInstBody="";else{if(z(f,"Unencoded <"),f.startTagPosition+1<f.position){var L=f.position-f.startTagPosition;U=new Array(L).join(" ")+U}f.textNode+="<"+U,f.state=N.TEXT}continue;case N.SGML_DECL:if(f.sgmlDecl+U==="--"){f.state=N.COMMENT,f.comment="",f.sgmlDecl="";continue}f.doctype&&f.doctype!==!0&&f.sgmlDecl?(f.state=N.DOCTYPE_DTD,f.doctype+="<!"+f.sgmlDecl+U,f.sgmlDecl=""):(f.sgmlDecl+U).toUpperCase()===R?(k(f,"onopencdata"),f.state=N.CDATA,f.sgmlDecl="",f.cdata=""):(f.sgmlDecl+U).toUpperCase()===O?(f.state=N.DOCTYPE,(f.doctype||f.sawRoot)&&z(f,"Inappropriately located doctype declaration"),f.doctype="",f.sgmlDecl=""):U===">"?(k(f,"onsgmldeclaration",f.sgmlDecl),f.sgmlDecl="",f.state=N.TEXT):(E(U)&&(f.state=N.SGML_DECL_QUOTED),f.sgmlDecl+=U);continue;case N.SGML_DECL_QUOTED:U===f.q&&(f.state=N.SGML_DECL,f.q=""),f.sgmlDecl+=U;continue;case N.DOCTYPE:U===">"?(f.state=N.TEXT,k(f,"ondoctype",f.doctype),f.doctype=!0):(f.doctype+=U,U==="["?f.state=N.DOCTYPE_DTD:E(U)&&(f.state=N.DOCTYPE_QUOTED,f.q=U));continue;case N.DOCTYPE_QUOTED:f.doctype+=U,U===f.q&&(f.q="",f.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:U==="]"?(f.doctype+=U,f.state=N.DOCTYPE):U==="<"?(f.state=N.OPEN_WAKA,f.startTagPosition=f.position):E(U)?(f.doctype+=U,f.state=N.DOCTYPE_DTD_QUOTED,f.q=U):f.doctype+=U;continue;case N.DOCTYPE_DTD_QUOTED:f.doctype+=U,U===f.q&&(f.state=N.DOCTYPE_DTD,f.q="");continue;case N.COMMENT:U==="-"?f.state=N.COMMENT_ENDING:f.comment+=U;continue;case N.COMMENT_ENDING:U==="-"?(f.state=N.COMMENT_ENDED,f.comment=g(f.opt,f.comment),f.comment&&k(f,"oncomment",f.comment),f.comment=""):(f.comment+="-"+U,f.state=N.COMMENT);continue;case N.COMMENT_ENDED:U!==">"?(z(f,"Malformed comment"),f.comment+="--"+U,f.state=N.COMMENT):f.doctype&&f.doctype!==!0?f.state=N.DOCTYPE_DTD:f.state=N.TEXT;continue;case N.CDATA:U==="]"?f.state=N.CDATA_ENDING:f.cdata+=U;continue;case N.CDATA_ENDING:U==="]"?f.state=N.CDATA_ENDING_2:(f.cdata+="]"+U,f.state=N.CDATA);continue;case N.CDATA_ENDING_2:U===">"?(f.cdata&&k(f,"oncdata",f.cdata),k(f,"onclosecdata"),f.cdata="",f.state=N.TEXT):U==="]"?f.cdata+="]":(f.cdata+="]]"+U,f.state=N.CDATA);continue;case N.PROC_INST:U==="?"?f.state=N.PROC_INST_ENDING:i(U)?f.state=N.PROC_INST_BODY:f.procInstName+=U;continue;case N.PROC_INST_BODY:if(!f.procInstBody&&i(U))continue;U==="?"?f.state=N.PROC_INST_ENDING:f.procInstBody+=U;continue;case N.PROC_INST_ENDING:U===">"?(k(f,"onprocessinginstruction",{name:f.procInstName,body:f.procInstBody}),f.procInstName=f.procInstBody="",f.state=N.TEXT):(f.procInstBody+="?"+U,f.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:F(n,U)?f.tagName+=U:(ne(f),U===">"?V(f):U==="/"?f.state=N.OPEN_TAG_SLASH:(i(U)||z(f,"Invalid character in tag name"),f.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:U===">"?(V(f,!0),D(f)):(z(f,"Forward-slash in opening tag not followed by >"),f.state=N.ATTRIB);continue;case N.ATTRIB:if(i(U))continue;U===">"?V(f):U==="/"?f.state=N.OPEN_TAG_SLASH:F(A,U)?(f.attribName=U,f.attribValue="",f.state=N.ATTRIB_NAME):z(f,"Invalid attribute name");continue;case N.ATTRIB_NAME:U==="="?f.state=N.ATTRIB_VALUE:U===">"?(z(f,"Attribute without value"),f.attribValue=f.attribName,oe(f),V(f)):i(U)?f.state=N.ATTRIB_NAME_SAW_WHITE:F(n,U)?f.attribName+=U:z(f,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(U==="=")f.state=N.ATTRIB_VALUE;else{if(i(U))continue;z(f,"Attribute without value"),f.tag.attributes[f.attribName]="",f.attribValue="",k(f,"onattribute",{name:f.attribName,value:""}),f.attribName="",U===">"?V(f):F(A,U)?(f.attribName=U,f.state=N.ATTRIB_NAME):(z(f,"Invalid attribute name"),f.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(i(U))continue;E(U)?(f.q=U,f.state=N.ATTRIB_VALUE_QUOTED):(f.opt.unquotedAttributeValues||q(f,"Unquoted attribute value"),f.state=N.ATTRIB_VALUE_UNQUOTED,f.attribValue=U);continue;case N.ATTRIB_VALUE_QUOTED:if(U!==f.q){U==="&"?f.state=N.ATTRIB_VALUE_ENTITY_Q:f.attribValue+=U;continue}oe(f),f.q="",f.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:i(U)?f.state=N.ATTRIB:U===">"?V(f):U==="/"?f.state=N.OPEN_TAG_SLASH:F(A,U)?(z(f,"No whitespace between attributes"),f.attribName=U,f.attribValue="",f.state=N.ATTRIB_NAME):z(f,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!P(U)){U==="&"?f.state=N.ATTRIB_VALUE_ENTITY_U:f.attribValue+=U;continue}oe(f),U===">"?V(f):f.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(f.tagName)U===">"?D(f):F(n,U)?f.tagName+=U:f.script?(f.script+="</"+f.tagName,f.tagName="",f.state=N.SCRIPT):(i(U)||z(f,"Invalid tagname in closing tag"),f.state=N.CLOSE_TAG_SAW_WHITE);else{if(i(U))continue;W(A,U)?f.script?(f.script+="</"+U,f.state=N.SCRIPT):z(f,"Invalid tagname in closing tag."):f.tagName=U}continue;case N.CLOSE_TAG_SAW_WHITE:if(i(U))continue;U===">"?D(f):z(f,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var J,u;switch(f.state){case N.TEXT_ENTITY:J=N.TEXT,u="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:J=N.ATTRIB_VALUE_QUOTED,u="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:J=N.ATTRIB_VALUE_UNQUOTED,u="attribValue";break}if(U===";"){var Y=$(f);f.opt.unparsedEntities&&!Object.values(d.XML_ENTITIES).includes(Y)?(f.entity="",f.state=J,f.write(Y)):(f[u]+=Y,f.entity="",f.state=J)}else F(f.entity.length?m:y,U)?f.entity+=U:(z(f,"Invalid character in entity name"),f[u]+="&"+f.entity+U,f.entity="",f.state=J);continue;default:throw new Error(f,"Unknown state: "+f.state)}return f.position>=f.bufferCheckPosition&&h(f),f}String.fromCodePoint||function(){var v=String.fromCharCode,f=Math.floor,j=function(){var U=16384,C=[],L,J,u=-1,Y=arguments.length;if(!Y)return"";for(var _="";++u<Y;){var e=Number(arguments[u]);if(!isFinite(e)||e<0||e>1114111||f(e)!==e)throw RangeError("Invalid code point: "+e);e<=65535?C.push(e):(e-=65536,L=(e>>10)+55296,J=e%1024+56320,C.push(L,J)),(u+1===Y||C.length>U)&&(_+=v.apply(null,C),C.length=0)}return _};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:j,configurable:!0,writable:!0}):String.fromCodePoint=j}()})(w)}(dt)),dt}var Cr,ji;function dn(){return ji||(ji=1,Cr={isArray:function(w){return Array.isArray?Array.isArray(w):Object.prototype.toString.call(w)==="[object Array]"}}),Cr}var Dr,Wi;function pn(){if(Wi)return Dr;Wi=1;var w=dn().isArray;return Dr={copyOptions:function(d){var s,a={};for(s in d)d.hasOwnProperty(s)&&(a[s]=d[s]);return a},ensureFlagExists:function(d,s){(!(d in s)||typeof s[d]!="boolean")&&(s[d]=!1)},ensureSpacesExists:function(d){(!("spaces"in d)||typeof d.spaces!="number"&&typeof d.spaces!="string")&&(d.spaces=0)},ensureAlwaysArrayExists:function(d){(!("alwaysArray"in d)||typeof d.alwaysArray!="boolean"&&!w(d.alwaysArray))&&(d.alwaysArray=!1)},ensureKeyExists:function(d,s){(!(d+"Key"in s)||typeof s[d+"Key"]!="string")&&(s[d+"Key"]=s.compact?"_"+d:d)},checkFnExists:function(d,s){return d+"Fn"in s}},Dr}var Lr,zi;function Ds(){if(zi)return Lr;zi=1;var w=Za(),d=pn(),s=dn().isArray,a,h;function c(n){return a=d.copyOptions(n),d.ensureFlagExists("ignoreDeclaration",a),d.ensureFlagExists("ignoreInstruction",a),d.ensureFlagExists("ignoreAttributes",a),d.ensureFlagExists("ignoreText",a),d.ensureFlagExists("ignoreComment",a),d.ensureFlagExists("ignoreCdata",a),d.ensureFlagExists("ignoreDoctype",a),d.ensureFlagExists("compact",a),d.ensureFlagExists("alwaysChildren",a),d.ensureFlagExists("addParent",a),d.ensureFlagExists("trim",a),d.ensureFlagExists("nativeType",a),d.ensureFlagExists("nativeTypeAttributes",a),d.ensureFlagExists("sanitize",a),d.ensureFlagExists("instructionHasAttributes",a),d.ensureFlagExists("captureSpacesBetweenElements",a),d.ensureAlwaysArrayExists(a),d.ensureKeyExists("declaration",a),d.ensureKeyExists("instruction",a),d.ensureKeyExists("attributes",a),d.ensureKeyExists("text",a),d.ensureKeyExists("comment",a),d.ensureKeyExists("cdata",a),d.ensureKeyExists("doctype",a),d.ensureKeyExists("type",a),d.ensureKeyExists("name",a),d.ensureKeyExists("elements",a),d.ensureKeyExists("parent",a),d.checkFnExists("doctype",a),d.checkFnExists("instruction",a),d.checkFnExists("cdata",a),d.checkFnExists("comment",a),d.checkFnExists("text",a),d.checkFnExists("instructionName",a),d.checkFnExists("elementName",a),d.checkFnExists("attributeName",a),d.checkFnExists("attributeValue",a),d.checkFnExists("attributes",a),a}function p(n){var y=Number(n);if(!isNaN(y))return y;var m=n.toLowerCase();return m==="true"?!0:m==="false"?!1:n}function r(n,y){var m;if(a.compact){if(!h[a[n+"Key"]]&&(s(a.alwaysArray)?a.alwaysArray.indexOf(a[n+"Key"])!==-1:a.alwaysArray)&&(h[a[n+"Key"]]=[]),h[a[n+"Key"]]&&!s(h[a[n+"Key"]])&&(h[a[n+"Key"]]=[h[a[n+"Key"]]]),n+"Fn"in a&&typeof y=="string"&&(y=a[n+"Fn"](y,h)),n==="instruction"&&("instructionFn"in a||"instructionNameFn"in a)){for(m in y)if(y.hasOwnProperty(m))if("instructionFn"in a)y[m]=a.instructionFn(y[m],m,h);else{var i=y[m];delete y[m],y[a.instructionNameFn(m,i,h)]=i}}s(h[a[n+"Key"]])?h[a[n+"Key"]].push(y):h[a[n+"Key"]]=y}else{h[a.elementsKey]||(h[a.elementsKey]=[]);var E={};if(E[a.typeKey]=n,n==="instruction"){for(m in y)if(y.hasOwnProperty(m))break;E[a.nameKey]="instructionNameFn"in a?a.instructionNameFn(m,y,h):m,a.instructionHasAttributes?(E[a.attributesKey]=y[m][a.attributesKey],"instructionFn"in a&&(E[a.attributesKey]=a.instructionFn(E[a.attributesKey],m,h))):("instructionFn"in a&&(y[m]=a.instructionFn(y[m],m,h)),E[a.instructionKey]=y[m])}else n+"Fn"in a&&(y=a[n+"Fn"](y,h)),E[a[n+"Key"]]=y;a.addParent&&(E[a.parentKey]=h),h[a.elementsKey].push(E)}}function o(n){if("attributesFn"in a&&n&&(n=a.attributesFn(n,h)),(a.trim||"attributeValueFn"in a||"attributeNameFn"in a||a.nativeTypeAttributes)&&n){var y;for(y in n)if(n.hasOwnProperty(y)&&(a.trim&&(n[y]=n[y].trim()),a.nativeTypeAttributes&&(n[y]=p(n[y])),"attributeValueFn"in a&&(n[y]=a.attributeValueFn(n[y],y,h)),"attributeNameFn"in a)){var m=n[y];delete n[y],n[a.attributeNameFn(y,n[y],h)]=m}}return n}function S(n){var y={};if(n.body&&(n.name.toLowerCase()==="xml"||a.instructionHasAttributes)){for(var m=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=m.exec(n.body))!==null;)y[i[1]]=i[2]||i[3]||i[4];y=o(y)}if(n.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;h[a.declarationKey]={},Object.keys(y).length&&(h[a.declarationKey][a.attributesKey]=y),a.addParent&&(h[a.declarationKey][a.parentKey]=h)}else{if(a.ignoreInstruction)return;a.trim&&(n.body=n.body.trim());var E={};a.instructionHasAttributes&&Object.keys(y).length?(E[n.name]={},E[n.name][a.attributesKey]=y):E[n.name]=n.body,r("instruction",E)}}function T(n,y){var m;if(typeof n=="object"&&(y=n.attributes,n=n.name),y=o(y),"elementNameFn"in a&&(n=a.elementNameFn(n,h)),a.compact){if(m={},!a.ignoreAttributes&&y&&Object.keys(y).length){m[a.attributesKey]={};var i;for(i in y)y.hasOwnProperty(i)&&(m[a.attributesKey][i]=y[i])}!(n in h)&&(s(a.alwaysArray)?a.alwaysArray.indexOf(n)!==-1:a.alwaysArray)&&(h[n]=[]),h[n]&&!s(h[n])&&(h[n]=[h[n]]),s(h[n])?h[n].push(m):h[n]=m}else h[a.elementsKey]||(h[a.elementsKey]=[]),m={},m[a.typeKey]="element",m[a.nameKey]=n,!a.ignoreAttributes&&y&&Object.keys(y).length&&(m[a.attributesKey]=y),a.alwaysChildren&&(m[a.elementsKey]=[]),h[a.elementsKey].push(m);m[a.parentKey]=h,h=m}function R(n){a.ignoreText||!n.trim()&&!a.captureSpacesBetweenElements||(a.trim&&(n=n.trim()),a.nativeType&&(n=p(n)),a.sanitize&&(n=n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),r("text",n))}function O(n){a.ignoreComment||(a.trim&&(n=n.trim()),r("comment",n))}function x(n){var y=h[a.parentKey];a.addParent||delete h[a.parentKey],h=y}function I(n){a.ignoreCdata||(a.trim&&(n=n.trim()),r("cdata",n))}function b(n){a.ignoreDoctype||(n=n.replace(/^ /,""),a.trim&&(n=n.trim()),r("doctype",n))}function A(n){n.note=n}return Lr=function(n,y){var m=w.parser(!0,{}),i={};if(h=i,a=c(y),m.opt={strictEntities:!0},m.onopentag=T,m.ontext=R,m.oncomment=O,m.onclosetag=x,m.onerror=A,m.oncdata=I,m.ondoctype=b,m.onprocessinginstruction=S,m.write(n).close(),i[a.elementsKey]){var E=i[a.elementsKey];delete i[a.elementsKey],i[a.elementsKey]=E,delete i.text}return i},Lr}var Pr,Gi;function Ya(){if(Gi)return Pr;Gi=1;var w=pn(),d=Ds();function s(a){var h=w.copyOptions(a);return w.ensureSpacesExists(h),h}return Pr=function(a,h){var c,p,r,o;return c=s(h),p=d(a,c),o="compact"in c&&c.compact?"_parent":"parent","addParent"in c&&c.addParent?r=JSON.stringify(p,function(S,T){return S===o?"_":T},c.spaces):r=JSON.stringify(p,null,c.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Pr}var Fr,Ki;function Ls(){if(Ki)return Fr;Ki=1;var w=pn(),d=dn().isArray,s,a;function h(m){var i=w.copyOptions(m);return w.ensureFlagExists("ignoreDeclaration",i),w.ensureFlagExists("ignoreInstruction",i),w.ensureFlagExists("ignoreAttributes",i),w.ensureFlagExists("ignoreText",i),w.ensureFlagExists("ignoreComment",i),w.ensureFlagExists("ignoreCdata",i),w.ensureFlagExists("ignoreDoctype",i),w.ensureFlagExists("compact",i),w.ensureFlagExists("indentText",i),w.ensureFlagExists("indentCdata",i),w.ensureFlagExists("indentAttributes",i),w.ensureFlagExists("indentInstruction",i),w.ensureFlagExists("fullTagEmptyElement",i),w.ensureFlagExists("noQuotesForNativeAttributes",i),w.ensureSpacesExists(i),typeof i.spaces=="number"&&(i.spaces=Array(i.spaces+1).join(" ")),w.ensureKeyExists("declaration",i),w.ensureKeyExists("instruction",i),w.ensureKeyExists("attributes",i),w.ensureKeyExists("text",i),w.ensureKeyExists("comment",i),w.ensureKeyExists("cdata",i),w.ensureKeyExists("doctype",i),w.ensureKeyExists("type",i),w.ensureKeyExists("name",i),w.ensureKeyExists("elements",i),w.checkFnExists("doctype",i),w.checkFnExists("instruction",i),w.checkFnExists("cdata",i),w.checkFnExists("comment",i),w.checkFnExists("text",i),w.checkFnExists("instructionName",i),w.checkFnExists("elementName",i),w.checkFnExists("attributeName",i),w.checkFnExists("attributeValue",i),w.checkFnExists("attributes",i),w.checkFnExists("fullTagEmptyElement",i),i}function c(m,i,E){return(!E&&m.spaces?`
|
|
19
|
-
`:"")+Array(i+1).join(m.spaces)}function p(m,i,E){if(i.ignoreAttributes)return"";"attributesFn"in i&&(m=i.attributesFn(m,a,s));var P,F,W,N,X=[];for(P in m)m.hasOwnProperty(P)&&m[P]!==null&&m[P]!==void 0&&(N=i.noQuotesForNativeAttributes&&typeof m[P]!="string"?"":'"',F=""+m[P],F=F.replace(/"/g,"""),W="attributeNameFn"in i?i.attributeNameFn(P,F,a,s):P,X.push(i.spaces&&i.indentAttributes?c(i,E+1,!1):" "),X.push(W+"="+N+("attributeValueFn"in i?i.attributeValueFn(F,P,a,s):F)+N));return m&&Object.keys(m).length&&i.spaces&&i.indentAttributes&&X.push(c(i,E,!1)),X.join("")}function r(m,i,E){return s=m,a="xml",i.ignoreDeclaration?"":"<?xml"+p(m[i.attributesKey],i,E)+"?>"}function o(m,i,E){if(i.ignoreInstruction)return"";var P;for(P in m)if(m.hasOwnProperty(P))break;var F="instructionNameFn"in i?i.instructionNameFn(P,m[P],a,s):P;if(typeof m[P]=="object")return s=m,a=F,"<?"+F+p(m[P][i.attributesKey],i,E)+"?>";var W=m[P]?m[P]:"";return"instructionFn"in i&&(W=i.instructionFn(W,P,a,s)),"<?"+F+(W?" "+W:"")+"?>"}function S(m,i){return i.ignoreComment?"":"<!--"+("commentFn"in i?i.commentFn(m,a,s):m)+"-->"}function T(m,i){return i.ignoreCdata?"":"<![CDATA["+("cdataFn"in i?i.cdataFn(m,a,s):m.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function R(m,i){return i.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in i?i.doctypeFn(m,a,s):m)+">"}function O(m,i){return i.ignoreText?"":(m=""+m,m=m.replace(/&/g,"&"),m=m.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in i?i.textFn(m,a,s):m)}function x(m,i){var E;if(m.elements&&m.elements.length)for(E=0;E<m.elements.length;++E)switch(m.elements[E][i.typeKey]){case"text":if(i.indentText)return!0;break;case"cdata":if(i.indentCdata)return!0;break;case"instruction":if(i.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function I(m,i,E){s=m,a=m.name;var P=[],F="elementNameFn"in i?i.elementNameFn(m.name,m):m.name;P.push("<"+F),m[i.attributesKey]&&P.push(p(m[i.attributesKey],i,E));var W=m[i.elementsKey]&&m[i.elementsKey].length||m[i.attributesKey]&&m[i.attributesKey]["xml:space"]==="preserve";return W||("fullTagEmptyElementFn"in i?W=i.fullTagEmptyElementFn(m.name,m):W=i.fullTagEmptyElement),W?(P.push(">"),m[i.elementsKey]&&m[i.elementsKey].length&&(P.push(b(m[i.elementsKey],i,E+1)),s=m,a=m.name),P.push(i.spaces&&x(m,i)?`
|
|
20
|
-
`+Array(E+1).join(i.spaces):""),P.push("</"+F+">")):P.push("/>"),P.join("")}function b(m,i,E,P){return m.reduce(function(F,W){var N=c(i,E,P&&!F);switch(W.type){case"element":return F+N+I(W,i,E);case"comment":return F+N+S(W[i.commentKey],i);case"doctype":return F+N+R(W[i.doctypeKey],i);case"cdata":return F+(i.indentCdata?N:"")+T(W[i.cdataKey],i);case"text":return F+(i.indentText?N:"")+O(W[i.textKey],i);case"instruction":var X={};return X[W[i.nameKey]]=W[i.attributesKey]?W:W[i.instructionKey],F+(i.indentInstruction?N:"")+o(X,i,E)}},"")}function A(m,i,E){var P;for(P in m)if(m.hasOwnProperty(P))switch(P){case i.parentKey:case i.attributesKey:break;case i.textKey:if(i.indentText||E)return!0;break;case i.cdataKey:if(i.indentCdata||E)return!0;break;case i.instructionKey:if(i.indentInstruction||E)return!0;break;case i.doctypeKey:case i.commentKey:return!0;default:return!0}return!1}function n(m,i,E,P,F){s=m,a=i;var W="elementNameFn"in E?E.elementNameFn(i,m):i;if(typeof m=="undefined"||m===null||m==="")return"fullTagEmptyElementFn"in E&&E.fullTagEmptyElementFn(i,m)||E.fullTagEmptyElement?"<"+W+"></"+W+">":"<"+W+"/>";var N=[];if(i){if(N.push("<"+W),typeof m!="object")return N.push(">"+O(m,E)+"</"+W+">"),N.join("");m[E.attributesKey]&&N.push(p(m[E.attributesKey],E,P));var X=A(m,E,!0)||m[E.attributesKey]&&m[E.attributesKey]["xml:space"]==="preserve";if(X||("fullTagEmptyElementFn"in E?X=E.fullTagEmptyElementFn(i,m):X=E.fullTagEmptyElement),X)N.push(">");else return N.push("/>"),N.join("")}return N.push(y(m,E,P+1,!1)),s=m,a=i,i&&N.push((F?c(E,P,!1):"")+"</"+W+">"),N.join("")}function y(m,i,E,P){var F,W,N,X=[];for(W in m)if(m.hasOwnProperty(W))for(N=d(m[W])?m[W]:[m[W]],F=0;F<N.length;++F){switch(W){case i.declarationKey:X.push(r(N[F],i,E));break;case i.instructionKey:X.push((i.indentInstruction?c(i,E,P):"")+o(N[F],i,E));break;case i.attributesKey:case i.parentKey:break;case i.textKey:X.push((i.indentText?c(i,E,P):"")+O(N[F],i));break;case i.cdataKey:X.push((i.indentCdata?c(i,E,P):"")+T(N[F],i));break;case i.doctypeKey:X.push(c(i,E,P)+R(N[F],i));break;case i.commentKey:X.push(c(i,E,P)+S(N[F],i));break;default:X.push(c(i,E,P)+n(N[F],W,i,E,A(N[F],i)))}P=P&&!X.length}return X.join("")}return Fr=function(m,i){i=h(i);var E=[];return s=m,a="_root_",i.compact?E.push(y(m,i,0,!0)):(m[i.declarationKey]&&E.push(r(m[i.declarationKey],i,0)),m[i.elementsKey]&&m[i.elementsKey].length&&E.push(b(m[i.elementsKey],i,0,!E.length))),E.join("")},Fr}var Br,qi;function Ja(){if(qi)return Br;qi=1;var w=Ls();return Br=function(d,s){d instanceof Buffer&&(d=d.toString());var a=null;if(typeof d=="string")try{a=JSON.parse(d)}catch{throw new Error("The JSON structure is invalid")}else a=d;return w(a,s)},Br}var Ur,Vi;function Qa(){if(Vi)return Ur;Vi=1;var w=Ds(),d=Ya(),s=Ls(),a=Ja();return Ur={xml2js:w,xml2json:d,js2xml:s,json2xml:a},Ur}var ko=Qa();var eo=w=>{if(isNaN(w))throw new Error(`Invalid value '${w}' specified. Must be an integer.`);return Math.floor(w)},Ps=w=>{let d=eo(w);if(d<0)throw new Error(`Invalid value '${w}' specified. Must be a positive integer.`);return d},to=(w,d)=>{let s=d*2;if(w.length!==s||isNaN(+`0x${w}`))throw new Error(`Invalid hex value '${w}'. Expected ${s} digit hex value`);return w};var ro=w=>{if(w==="auto")return w;let d=w.charAt(0)==="#"?w.substring(1):w;return to(d,3)};var no=Ps,io=Ps;var ge=class extends st{constructor(d,{color:s,size:a,space:h,style:c}){super(d),this.root.push(new rn({style:c,color:s===void 0?void 0:ro(s),size:a===void 0?void 0:no(a),space:h===void 0?void 0:io(h)}))}},rn=class extends Jr{constructor(){super(...arguments),Se(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}},Fs={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};var Mr={},fe={},Hr,$i;function Xe(){if($i)return Hr;$i=1,Hr=w;function w(d,s){if(!d)throw new Error(s||"Assertion failed")}return w.equal=function(s,a,h){if(s!=a)throw new Error(h||"Assertion failed: "+s+" != "+a)},Hr}var Xi;function xe(){if(Xi)return fe;Xi=1;var w=Xe(),d=Ne();fe.inherits=d;function s(k,M){return(k.charCodeAt(M)&64512)!==55296||M<0||M+1>=k.length?!1:(k.charCodeAt(M+1)&64512)===56320}function a(k,M){if(Array.isArray(k))return k.slice();if(!k)return[];var g=[];if(typeof k=="string")if(M){if(M==="hex")for(k=k.replace(/[^a-z0-9]+/ig,""),k.length%2!==0&&(k="0"+k),ee=0;ee<k.length;ee+=2)g.push(parseInt(k[ee]+k[ee+1],16))}else for(var q=0,ee=0;ee<k.length;ee++){var z=k.charCodeAt(ee);z<128?g[q++]=z:z<2048?(g[q++]=z>>6|192,g[q++]=z&63|128):s(k,ee)?(z=65536+((z&1023)<<10)+(k.charCodeAt(++ee)&1023),g[q++]=z>>18|240,g[q++]=z>>12&63|128,g[q++]=z>>6&63|128,g[q++]=z&63|128):(g[q++]=z>>12|224,g[q++]=z>>6&63|128,g[q++]=z&63|128)}else for(ee=0;ee<k.length;ee++)g[ee]=k[ee]|0;return g}fe.toArray=a;function h(k){for(var M="",g=0;g<k.length;g++)M+=r(k[g].toString(16));return M}fe.toHex=h;function c(k){var M=k>>>24|k>>>8&65280|k<<8&16711680|(k&255)<<24;return M>>>0}fe.htonl=c;function p(k,M){for(var g="",q=0;q<k.length;q++){var ee=k[q];M==="little"&&(ee=c(ee)),g+=o(ee.toString(16))}return g}fe.toHex32=p;function r(k){return k.length===1?"0"+k:k}fe.zero2=r;function o(k){return k.length===7?"0"+k:k.length===6?"00"+k:k.length===5?"000"+k:k.length===4?"0000"+k:k.length===3?"00000"+k:k.length===2?"000000"+k:k.length===1?"0000000"+k:k}fe.zero8=o;function S(k,M,g,q){var ee=g-M;w(ee%4===0);for(var z=new Array(ee/4),ne=0,Q=M;ne<z.length;ne++,Q+=4){var oe;q==="big"?oe=k[Q]<<24|k[Q+1]<<16|k[Q+2]<<8|k[Q+3]:oe=k[Q+3]<<24|k[Q+2]<<16|k[Q+1]<<8|k[Q],z[ne]=oe>>>0}return z}fe.join32=S;function T(k,M){for(var g=new Array(k.length*4),q=0,ee=0;q<k.length;q++,ee+=4){var z=k[q];M==="big"?(g[ee]=z>>>24,g[ee+1]=z>>>16&255,g[ee+2]=z>>>8&255,g[ee+3]=z&255):(g[ee+3]=z>>>24,g[ee+2]=z>>>16&255,g[ee+1]=z>>>8&255,g[ee]=z&255)}return g}fe.split32=T;function R(k,M){return k>>>M|k<<32-M}fe.rotr32=R;function O(k,M){return k<<M|k>>>32-M}fe.rotl32=O;function x(k,M){return k+M>>>0}fe.sum32=x;function I(k,M,g){return k+M+g>>>0}fe.sum32_3=I;function b(k,M,g,q){return k+M+g+q>>>0}fe.sum32_4=b;function A(k,M,g,q,ee){return k+M+g+q+ee>>>0}fe.sum32_5=A;function n(k,M,g,q){var ee=k[M],z=k[M+1],ne=q+z>>>0,Q=(ne<q?1:0)+g+ee;k[M]=Q>>>0,k[M+1]=ne}fe.sum64=n;function y(k,M,g,q){var ee=M+q>>>0,z=(ee<M?1:0)+k+g;return z>>>0}fe.sum64_hi=y;function m(k,M,g,q){var ee=M+q;return ee>>>0}fe.sum64_lo=m;function i(k,M,g,q,ee,z,ne,Q){var oe=0,V=M;V=V+q>>>0,oe+=V<M?1:0,V=V+z>>>0,oe+=V<z?1:0,V=V+Q>>>0,oe+=V<Q?1:0;var D=k+g+ee+ne+oe;return D>>>0}fe.sum64_4_hi=i;function E(k,M,g,q,ee,z,ne,Q){var oe=M+q+z+Q;return oe>>>0}fe.sum64_4_lo=E;function P(k,M,g,q,ee,z,ne,Q,oe,V){var D=0,$=M;$=$+q>>>0,D+=$<M?1:0,$=$+z>>>0,D+=$<z?1:0,$=$+Q>>>0,D+=$<Q?1:0,$=$+V>>>0,D+=$<V?1:0;var Z=k+g+ee+ne+oe+D;return Z>>>0}fe.sum64_5_hi=P;function F(k,M,g,q,ee,z,ne,Q,oe,V){var D=M+q+z+Q+V;return D>>>0}fe.sum64_5_lo=F;function W(k,M,g){var q=M<<32-g|k>>>g;return q>>>0}fe.rotr64_hi=W;function N(k,M,g){var q=k<<32-g|M>>>g;return q>>>0}fe.rotr64_lo=N;function X(k,M,g){return k>>>g}fe.shr64_hi=X;function ae(k,M,g){var q=k<<32-g|M>>>g;return q>>>0}return fe.shr64_lo=ae,fe}var jr={},Zi;function Ze(){if(Zi)return jr;Zi=1;var w=xe(),d=Xe();function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return jr.BlockHash=s,s.prototype.update=function(h,c){if(h=w.toArray(h,c),this.pending?this.pending=this.pending.concat(h):this.pending=h,this.pendingTotal+=h.length,this.pending.length>=this._delta8){h=this.pending;var p=h.length%this._delta8;this.pending=h.slice(h.length-p,h.length),this.pending.length===0&&(this.pending=null),h=w.join32(h,0,h.length-p,this.endian);for(var r=0;r<h.length;r+=this._delta32)this._update(h,r,r+this._delta32)}return this},s.prototype.digest=function(h){return this.update(this._pad()),d(this.pending===null),this._digest(h)},s.prototype._pad=function(){var h=this.pendingTotal,c=this._delta8,p=c-(h+this.padLength)%c,r=new Array(p+this.padLength);r[0]=128;for(var o=1;o<p;o++)r[o]=0;if(h<<=3,this.endian==="big"){for(var S=8;S<this.padLength;S++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h>>>24&255,r[o++]=h>>>16&255,r[o++]=h>>>8&255,r[o++]=h&255}else for(r[o++]=h&255,r[o++]=h>>>8&255,r[o++]=h>>>16&255,r[o++]=h>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,S=8;S<this.padLength;S++)r[o++]=0;return r},jr}var Oe={},_e={},Yi;function Bs(){if(Yi)return _e;Yi=1;var w=xe(),d=w.rotr32;function s(T,R,O,x){if(T===0)return a(R,O,x);if(T===1||T===3)return c(R,O,x);if(T===2)return h(R,O,x)}_e.ft_1=s;function a(T,R,O){return T&R^~T&O}_e.ch32=a;function h(T,R,O){return T&R^T&O^R&O}_e.maj32=h;function c(T,R,O){return T^R^O}_e.p32=c;function p(T){return d(T,2)^d(T,13)^d(T,22)}_e.s0_256=p;function r(T){return d(T,6)^d(T,11)^d(T,25)}_e.s1_256=r;function o(T){return d(T,7)^d(T,18)^T>>>3}_e.g0_256=o;function S(T){return d(T,17)^d(T,19)^T>>>10}return _e.g1_256=S,_e}var Wr,Ji;function so(){if(Ji)return Wr;Ji=1;var w=xe(),d=Ze(),s=Bs(),a=w.rotl32,h=w.sum32,c=w.sum32_5,p=s.ft_1,r=d.BlockHash,o=[1518500249,1859775393,2400959708,3395469782];function S(){if(!(this instanceof S))return new S;r.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return w.inherits(S,r),Wr=S,S.blockSize=512,S.outSize=160,S.hmacStrength=80,S.padLength=64,S.prototype._update=function(R,O){for(var x=this.W,I=0;I<16;I++)x[I]=R[O+I];for(;I<x.length;I++)x[I]=a(x[I-3]^x[I-8]^x[I-14]^x[I-16],1);var b=this.h[0],A=this.h[1],n=this.h[2],y=this.h[3],m=this.h[4];for(I=0;I<x.length;I++){var i=~~(I/20),E=c(a(b,5),p(i,A,n,y),m,x[I],o[i]);m=y,y=n,n=a(A,30),A=b,b=E}this.h[0]=h(this.h[0],b),this.h[1]=h(this.h[1],A),this.h[2]=h(this.h[2],n),this.h[3]=h(this.h[3],y),this.h[4]=h(this.h[4],m)},S.prototype._digest=function(R){return R==="hex"?w.toHex32(this.h,"big"):w.split32(this.h,"big")},Wr}var zr,Qi;function Us(){if(Qi)return zr;Qi=1;var w=xe(),d=Ze(),s=Bs(),a=Xe(),h=w.sum32,c=w.sum32_4,p=w.sum32_5,r=s.ch32,o=s.maj32,S=s.s0_256,T=s.s1_256,R=s.g0_256,O=s.g1_256,x=d.BlockHash,I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;x.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}return w.inherits(b,x),zr=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(n,y){for(var m=this.W,i=0;i<16;i++)m[i]=n[y+i];for(;i<m.length;i++)m[i]=c(O(m[i-2]),m[i-7],R(m[i-15]),m[i-16]);var E=this.h[0],P=this.h[1],F=this.h[2],W=this.h[3],N=this.h[4],X=this.h[5],ae=this.h[6],k=this.h[7];for(a(this.k.length===m.length),i=0;i<m.length;i++){var M=p(k,T(N),r(N,X,ae),this.k[i],m[i]),g=h(S(E),o(E,P,F));k=ae,ae=X,X=N,N=h(W,M),W=F,F=P,P=E,E=h(M,g)}this.h[0]=h(this.h[0],E),this.h[1]=h(this.h[1],P),this.h[2]=h(this.h[2],F),this.h[3]=h(this.h[3],W),this.h[4]=h(this.h[4],N),this.h[5]=h(this.h[5],X),this.h[6]=h(this.h[6],ae),this.h[7]=h(this.h[7],k)},b.prototype._digest=function(n){return n==="hex"?w.toHex32(this.h,"big"):w.split32(this.h,"big")},zr}var Gr,es;function ao(){if(es)return Gr;es=1;var w=xe(),d=Us();function s(){if(!(this instanceof s))return new s;d.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return w.inherits(s,d),Gr=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(h){return h==="hex"?w.toHex32(this.h.slice(0,7),"big"):w.split32(this.h.slice(0,7),"big")},Gr}var Kr,ts;function Ms(){if(ts)return Kr;ts=1;var w=xe(),d=Ze(),s=Xe(),a=w.rotr64_hi,h=w.rotr64_lo,c=w.shr64_hi,p=w.shr64_lo,r=w.sum64,o=w.sum64_hi,S=w.sum64_lo,T=w.sum64_4_hi,R=w.sum64_4_lo,O=w.sum64_5_hi,x=w.sum64_5_lo,I=d.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}w.inherits(A,I),Kr=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(g,q){for(var ee=this.W,z=0;z<32;z++)ee[z]=g[q+z];for(;z<ee.length;z+=2){var ne=ae(ee[z-4],ee[z-3]),Q=k(ee[z-4],ee[z-3]),oe=ee[z-14],V=ee[z-13],D=N(ee[z-30],ee[z-29]),$=X(ee[z-30],ee[z-29]),Z=ee[z-32],te=ee[z-31];ee[z]=T(ne,Q,oe,V,D,$,Z,te),ee[z+1]=R(ne,Q,oe,V,D,$,Z,te)}},A.prototype._update=function(g,q){this._prepareBlock(g,q);var ee=this.W,z=this.h[0],ne=this.h[1],Q=this.h[2],oe=this.h[3],V=this.h[4],D=this.h[5],$=this.h[6],Z=this.h[7],te=this.h[8],K=this.h[9],v=this.h[10],f=this.h[11],j=this.h[12],U=this.h[13],C=this.h[14],L=this.h[15];s(this.k.length===ee.length);for(var J=0;J<ee.length;J+=2){var u=C,Y=L,_=F(te,K),e=W(te,K),t=n(te,K,v,f,j),l=y(te,K,v,f,j,U),B=this.k[J],G=this.k[J+1],H=ee[J],re=ee[J+1],se=O(u,Y,_,e,t,l,B,G,H,re),ie=x(u,Y,_,e,t,l,B,G,H,re);u=E(z,ne),Y=P(z,ne),_=m(z,ne,Q,oe,V),e=i(z,ne,Q,oe,V,D);var ue=o(u,Y,_,e),ce=S(u,Y,_,e);C=j,L=U,j=v,U=f,v=te,f=K,te=o($,Z,se,ie),K=S(Z,Z,se,ie),$=V,Z=D,V=Q,D=oe,Q=z,oe=ne,z=o(se,ie,ue,ce),ne=S(se,ie,ue,ce)}r(this.h,0,z,ne),r(this.h,2,Q,oe),r(this.h,4,V,D),r(this.h,6,$,Z),r(this.h,8,te,K),r(this.h,10,v,f),r(this.h,12,j,U),r(this.h,14,C,L)},A.prototype._digest=function(g){return g==="hex"?w.toHex32(this.h,"big"):w.split32(this.h,"big")};function n(M,g,q,ee,z){var ne=M&q^~M&z;return ne<0&&(ne+=4294967296),ne}function y(M,g,q,ee,z,ne){var Q=g&ee^~g≠return Q<0&&(Q+=4294967296),Q}function m(M,g,q,ee,z){var ne=M&q^M&z^q&z;return ne<0&&(ne+=4294967296),ne}function i(M,g,q,ee,z,ne){var Q=g&ee^g&ne^ee≠return Q<0&&(Q+=4294967296),Q}function E(M,g){var q=a(M,g,28),ee=a(g,M,2),z=a(g,M,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function P(M,g){var q=h(M,g,28),ee=h(g,M,2),z=h(g,M,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function F(M,g){var q=a(M,g,14),ee=a(M,g,18),z=a(g,M,9),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function W(M,g){var q=h(M,g,14),ee=h(M,g,18),z=h(g,M,9),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function N(M,g){var q=a(M,g,1),ee=a(M,g,8),z=c(M,g,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function X(M,g){var q=h(M,g,1),ee=h(M,g,8),z=p(M,g,7),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function ae(M,g){var q=a(M,g,19),ee=a(g,M,29),z=c(M,g,6),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}function k(M,g){var q=h(M,g,19),ee=h(g,M,29),z=p(M,g,6),ne=q^ee^z;return ne<0&&(ne+=4294967296),ne}return Kr}var qr,rs;function oo(){if(rs)return qr;rs=1;var w=xe(),d=Ms();function s(){if(!(this instanceof s))return new s;d.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return w.inherits(s,d),qr=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(h){return h==="hex"?w.toHex32(this.h.slice(0,12),"big"):w.split32(this.h.slice(0,12),"big")},qr}var ns;function uo(){return ns||(ns=1,Oe.sha1=so(),Oe.sha224=ao(),Oe.sha256=Us(),Oe.sha384=oo(),Oe.sha512=Ms()),Oe}var Vr={},is;function co(){if(is)return Vr;is=1;var w=xe(),d=Ze(),s=w.rotl32,a=w.sum32,h=w.sum32_3,c=w.sum32_4,p=d.BlockHash;function r(){if(!(this instanceof r))return new r;p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}w.inherits(r,p),Vr.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(A,n){for(var y=this.h[0],m=this.h[1],i=this.h[2],E=this.h[3],P=this.h[4],F=y,W=m,N=i,X=E,ae=P,k=0;k<80;k++){var M=a(s(c(y,o(k,m,i,E),A[R[k]+n],S(k)),x[k]),P);y=P,P=E,E=s(i,10),i=m,m=M,M=a(s(c(F,o(79-k,W,N,X),A[O[k]+n],T(k)),I[k]),ae),F=ae,ae=X,X=s(N,10),N=W,W=M}M=h(this.h[1],i,X),this.h[1]=h(this.h[2],E,ae),this.h[2]=h(this.h[3],P,F),this.h[3]=h(this.h[4],y,W),this.h[4]=h(this.h[0],m,N),this.h[0]=M},r.prototype._digest=function(A){return A==="hex"?w.toHex32(this.h,"little"):w.split32(this.h,"little")};function o(b,A,n,y){return b<=15?A^n^y:b<=31?A&n|~A&y:b<=47?(A|~n)^y:b<=63?A&y|n&~y:A^(n|~y)}function S(b){return b<=15?0:b<=31?1518500249:b<=47?1859775393:b<=63?2400959708:2840853838}function T(b){return b<=15?1352829926:b<=31?1548603684:b<=47?1836072691:b<=63?2053994217:0}var R=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],O=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],x=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Vr}var $r,ss;function lo(){if(ss)return $r;ss=1;var w=xe(),d=Xe();function s(a,h,c){if(!(this instanceof s))return new s(a,h,c);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(w.toArray(h,c))}return $r=s,s.prototype._init=function(h){h.length>this.blockSize&&(h=new this.Hash().update(h).digest()),d(h.length<=this.blockSize);for(var c=h.length;c<this.blockSize;c++)h.push(0);for(c=0;c<h.length;c++)h[c]^=54;for(this.inner=new this.Hash().update(h),c=0;c<h.length;c++)h[c]^=106;this.outer=new this.Hash().update(h)},s.prototype.update=function(h,c){return this.inner.update(h,c),this},s.prototype.digest=function(h){return this.outer.update(this.inner.digest()),this.outer.digest(h)},$r}var as;function ho(){return as||(as=1,function(w){var d=w;d.utils=xe(),d.common=Ze(),d.sha=uo(),d.ripemd=co(),d.hmac=lo(),d.sha1=d.sha.sha1,d.sha256=d.sha.sha256,d.sha224=d.sha.sha224,d.sha384=d.sha.sha384,d.sha512=d.sha.sha512,d.ripemd160=d.ripemd.ripemd160}(Mr)),Mr}var Co=ho();var Hs=w=>Math.floor(w/25.4*72*20),js=w=>Math.floor(w*72*20);var fo={PORTRAIT:"portrait",LANDSCAPE:"landscape"};var Do={WIDTH:11906,HEIGHT:16838,ORIENTATION:fo.PORTRAIT};var Ce={style:Fs.NONE,size:0,color:"auto"},De={style:Fs.SINGLE,size:4,color:"auto"},nn=class extends st{constructor(d){super("w:tblBorders"),d.top?this.root.push(new ge("w:top",d.top)):this.root.push(new ge("w:top",De)),d.left?this.root.push(new ge("w:left",d.left)):this.root.push(new ge("w:left",De)),d.bottom?this.root.push(new ge("w:bottom",d.bottom)):this.root.push(new ge("w:bottom",De)),d.right?this.root.push(new ge("w:right",d.right)):this.root.push(new ge("w:right",De)),d.insideHorizontal?this.root.push(new ge("w:insideH",d.insideHorizontal)):this.root.push(new ge("w:insideH",De)),d.insideVertical?this.root.push(new ge("w:insideV",d.insideVertical)):this.root.push(new ge("w:insideV",De))}};Se(nn,"NONE",{top:Ce,bottom:Ce,left:Ce,right:Ce,insideHorizontal:Ce,insideVertical:Ce});var po=fn();function nt(w){throw new Error('Could not dynamically require "'+w+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xr={exports:{}},os;function mo(){return os||(os=1,function(w,d){(function(s){w.exports=s()})(function(){return function s(a,h,c){function p(S,T){if(!h[S]){if(!a[S]){var R=typeof nt=="function"&&nt;if(!T&&R)return R(S,!0);if(r)return r(S,!0);var O=new Error("Cannot find module '"+S+"'");throw O.code="MODULE_NOT_FOUND",O}var x=h[S]={exports:{}};a[S][0].call(x.exports,function(I){var b=a[S][1][I];return p(b||I)},x,x.exports,s,a,h,c)}return h[S].exports}for(var r=typeof nt=="function"&&nt,o=0;o<c.length;o++)p(c[o]);return p}({1:[function(s,a,h){var c=s("./utils"),p=s("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";h.encode=function(o){for(var S,T,R,O,x,I,b,A=[],n=0,y=o.length,m=y,i=c.getTypeOf(o)!=="string";n<o.length;)m=y-n,R=i?(S=o[n++],T=n<y?o[n++]:0,n<y?o[n++]:0):(S=o.charCodeAt(n++),T=n<y?o.charCodeAt(n++):0,n<y?o.charCodeAt(n++):0),O=S>>2,x=(3&S)<<4|T>>4,I=1<m?(15&T)<<2|R>>6:64,b=2<m?63&R:64,A.push(r.charAt(O)+r.charAt(x)+r.charAt(I)+r.charAt(b));return A.join("")},h.decode=function(o){var S,T,R,O,x,I,b=0,A=0,n="data:";if(o.substr(0,n.length)===n)throw new Error("Invalid base64 input, it looks like a data url.");var y,m=3*(o=o.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(o.charAt(o.length-1)===r.charAt(64)&&m--,o.charAt(o.length-2)===r.charAt(64)&&m--,m%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=p.uint8array?new Uint8Array(0|m):new Array(0|m);b<o.length;)S=r.indexOf(o.charAt(b++))<<2|(O=r.indexOf(o.charAt(b++)))>>4,T=(15&O)<<4|(x=r.indexOf(o.charAt(b++)))>>2,R=(3&x)<<6|(I=r.indexOf(o.charAt(b++))),y[A++]=S,x!==64&&(y[A++]=T),I!==64&&(y[A++]=R);return y}},{"./support":30,"./utils":32}],2:[function(s,a,h){var c=s("./external"),p=s("./stream/DataWorker"),r=s("./stream/Crc32Probe"),o=s("./stream/DataLengthProbe");function S(T,R,O,x,I){this.compressedSize=T,this.uncompressedSize=R,this.crc32=O,this.compression=x,this.compressedContent=I}S.prototype={getContentWorker:function(){var T=new p(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),R=this;return T.on("end",function(){if(this.streamInfo.data_length!==R.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),T},getCompressedWorker:function(){return new p(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(T,R,O){return T.pipe(new r).pipe(new o("uncompressedSize")).pipe(R.compressWorker(O)).pipe(new o("compressedSize")).withStreamInfo("compression",R)},a.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,a,h){var c=s("./stream/GenericWorker");h.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},h.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,a,h){var c=s("./utils"),p=function(){for(var r,o=[],S=0;S<256;S++){r=S;for(var T=0;T<8;T++)r=1&r?3988292384^r>>>1:r>>>1;o[S]=r}return o}();a.exports=function(r,o){return r!==void 0&&r.length?c.getTypeOf(r)!=="string"?function(S,T,R,O){var x=p,I=O+R;S^=-1;for(var b=O;b<I;b++)S=S>>>8^x[255&(S^T[b])];return-1^S}(0|o,r,r.length,0):function(S,T,R,O){var x=p,I=O+R;S^=-1;for(var b=O;b<I;b++)S=S>>>8^x[255&(S^T.charCodeAt(b))];return-1^S}(0|o,r,r.length,0):0}},{"./utils":32}],5:[function(s,a,h){h.base64=!1,h.binary=!1,h.dir=!1,h.createFolders=!0,h.date=null,h.compression=null,h.compressionOptions=null,h.comment=null,h.unixPermissions=null,h.dosPermissions=null},{}],6:[function(s,a,h){var c=null;c=typeof Promise!="undefined"?Promise:s("lie"),a.exports={Promise:c}},{lie:37}],7:[function(s,a,h){var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",p=s("pako"),r=s("./utils"),o=s("./stream/GenericWorker"),S=c?"uint8array":"array";function T(R,O){o.call(this,"FlateWorker/"+R),this._pako=null,this._pakoAction=R,this._pakoOptions=O,this.meta={}}h.magic="\b\0",r.inherits(T,o),T.prototype.processChunk=function(R){this.meta=R.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(S,R.data),!1)},T.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},T.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},T.prototype._createPako=function(){this._pako=new p[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var R=this;this._pako.onData=function(O){R.push({data:O,meta:R.meta})}},h.compressWorker=function(R){return new T("Deflate",R)},h.uncompressWorker=function(){return new T("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,a,h){function c(x,I){var b,A="";for(b=0;b<I;b++)A+=String.fromCharCode(255&x),x>>>=8;return A}function p(x,I,b,A,n,y){var m,i,E=x.file,P=x.compression,F=y!==S.utf8encode,W=r.transformTo("string",y(E.name)),N=r.transformTo("string",S.utf8encode(E.name)),X=E.comment,ae=r.transformTo("string",y(X)),k=r.transformTo("string",S.utf8encode(X)),M=N.length!==E.name.length,g=k.length!==X.length,q="",ee="",z="",ne=E.dir,Q=E.date,oe={crc32:0,compressedSize:0,uncompressedSize:0};I&&!b||(oe.crc32=x.crc32,oe.compressedSize=x.compressedSize,oe.uncompressedSize=x.uncompressedSize);var V=0;I&&(V|=8),F||!M&&!g||(V|=2048);var D=0,$=0;ne&&(D|=16),n==="UNIX"?($=798,D|=function(te,K){var v=te;return te||(v=K?16893:33204),(65535&v)<<16}(E.unixPermissions,ne)):($=20,D|=function(te){return 63&(te||0)}(E.dosPermissions)),m=Q.getUTCHours(),m<<=6,m|=Q.getUTCMinutes(),m<<=5,m|=Q.getUTCSeconds()/2,i=Q.getUTCFullYear()-1980,i<<=4,i|=Q.getUTCMonth()+1,i<<=5,i|=Q.getUTCDate(),M&&(ee=c(1,1)+c(T(W),4)+N,q+="up"+c(ee.length,2)+ee),g&&(z=c(1,1)+c(T(ae),4)+k,q+="uc"+c(z.length,2)+z);var Z="";return Z+=`
|
|
21
|
-
\0`,Z+=c(V,2),Z+=P.magic,Z+=c(m,2),Z+=c(i,2),Z+=c(oe.crc32,4),Z+=c(oe.compressedSize,4),Z+=c(oe.uncompressedSize,4),Z+=c(W.length,2),Z+=c(q.length,2),{fileRecord:R.LOCAL_FILE_HEADER+Z+W+q,dirRecord:R.CENTRAL_FILE_HEADER+c($,2)+Z+c(ae.length,2)+"\0\0\0\0"+c(D,4)+c(A,4)+W+q+ae}}var r=s("../utils"),o=s("../stream/GenericWorker"),S=s("../utf8"),T=s("../crc32"),R=s("../signature");function O(x,I,b,A){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=b,this.encodeFileName=A,this.streamFiles=x,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(O,o),O.prototype.push=function(x){var I=x.meta.percent||0,b=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(x):(this.bytesWritten+=x.data.length,o.prototype.push.call(this,{data:x.data,meta:{currentFile:this.currentFile,percent:b?(I+100*(b-A-1))/b:100}}))},O.prototype.openedSource=function(x){this.currentSourceOffset=this.bytesWritten,this.currentFile=x.file.name;var I=this.streamFiles&&!x.file.dir;if(I){var b=p(x,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},O.prototype.closedSource=function(x){this.accumulate=!1;var I=this.streamFiles&&!x.file.dir,b=p(x,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),I)this.push({data:function(A){return R.DATA_DESCRIPTOR+c(A.crc32,4)+c(A.compressedSize,4)+c(A.uncompressedSize,4)}(x),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},O.prototype.flush=function(){for(var x=this.bytesWritten,I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var b=this.bytesWritten-x,A=function(n,y,m,i,E){var P=r.transformTo("string",E(i));return R.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(n,2)+c(n,2)+c(y,4)+c(m,4)+c(P.length,2)+P}(this.dirRecords.length,b,x,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},O.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},O.prototype.registerPrevious=function(x){this._sources.push(x);var I=this;return x.on("data",function(b){I.processChunk(b)}),x.on("end",function(){I.closedSource(I.previous.streamInfo),I._sources.length?I.prepareNextSource():I.end()}),x.on("error",function(b){I.error(b)}),this},O.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},O.prototype.error=function(x){var I=this._sources;if(!o.prototype.error.call(this,x))return!1;for(var b=0;b<I.length;b++)try{I[b].error(x)}catch{}return!0},O.prototype.lock=function(){o.prototype.lock.call(this);for(var x=this._sources,I=0;I<x.length;I++)x[I].lock()},a.exports=O},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(s,a,h){var c=s("../compressions"),p=s("./ZipFileWorker");h.generateWorker=function(r,o,S){var T=new p(o.streamFiles,S,o.platform,o.encodeFileName),R=0;try{r.forEach(function(O,x){R++;var I=function(y,m){var i=y||m,E=c[i];if(!E)throw new Error(i+" is not a valid compression method !");return E}(x.options.compression,o.compression),b=x.options.compressionOptions||o.compressionOptions||{},A=x.dir,n=x.date;x._compressWorker(I,b).withStreamInfo("file",{name:O,dir:A,date:n,comment:x.comment||"",unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions}).pipe(T)}),T.entriesCount=R}catch(O){T.error(O)}return T}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(s,a,h){function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var p=new c;for(var r in this)typeof this[r]!="function"&&(p[r]=this[r]);return p}}(c.prototype=s("./object")).loadAsync=s("./load"),c.support=s("./support"),c.defaults=s("./defaults"),c.version="3.10.1",c.loadAsync=function(p,r){return new c().loadAsync(p,r)},c.external=s("./external"),a.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(s,a,h){var c=s("./utils"),p=s("./external"),r=s("./utf8"),o=s("./zipEntries"),S=s("./stream/Crc32Probe"),T=s("./nodejsUtils");function R(O){return new p.Promise(function(x,I){var b=O.decompressed.getContentWorker().pipe(new S);b.on("error",function(A){I(A)}).on("end",function(){b.streamInfo.crc32!==O.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):x()}).resume()})}a.exports=function(O,x){var I=this;return x=c.extend(x||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),T.isNode&&T.isStream(O)?p.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",O,!0,x.optimizedBinaryString,x.base64).then(function(b){var A=new o(x);return A.load(b),A}).then(function(b){var A=[p.Promise.resolve(b)],n=b.files;if(x.checkCRC32)for(var y=0;y<n.length;y++)A.push(R(n[y]));return p.Promise.all(A)}).then(function(b){for(var A=b.shift(),n=A.files,y=0;y<n.length;y++){var m=n[y],i=m.fileNameStr,E=c.resolve(m.fileNameStr);I.file(E,m.decompressed,{binary:!0,optimizedBinaryString:!0,date:m.date,dir:m.dir,comment:m.fileCommentStr.length?m.fileCommentStr:null,unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions,createFolders:x.createFolders}),m.dir||(I.file(E).unsafeOriginalName=i)}return A.zipComment.length&&(I.comment=A.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(s,a,h){var c=s("../utils"),p=s("../stream/GenericWorker");function r(o,S){p.call(this,"Nodejs stream input adapter for "+o),this._upstreamEnded=!1,this._bindStream(S)}c.inherits(r,p),r.prototype._bindStream=function(o){var S=this;(this._stream=o).pause(),o.on("data",function(T){S.push({data:T,meta:{percent:0}})}).on("error",function(T){S.isPaused?this.generatedError=T:S.error(T)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},r.prototype.pause=function(){return!!p.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(s,a,h){var c=s("readable-stream").Readable;function p(r,o,S){c.call(this,o),this._helper=r;var T=this;r.on("data",function(R,O){T.push(R)||T._helper.pause(),S&&S(O)}).on("error",function(R){T.emit("error",R)}).on("end",function(){T.push(null)})}s("../utils").inherits(p,c),p.prototype._read=function(){this._helper.resume()},a.exports=p},{"../utils":32,"readable-stream":16}],14:[function(s,a,h){a.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(c,p){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,p);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,p)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var p=new Buffer(c);return p.fill(0),p},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(s,a,h){function c(E,P,F){var W,N=r.getTypeOf(P),X=r.extend(F||{},T);X.date=X.date||new Date,X.compression!==null&&(X.compression=X.compression.toUpperCase()),typeof X.unixPermissions=="string"&&(X.unixPermissions=parseInt(X.unixPermissions,8)),X.unixPermissions&&16384&X.unixPermissions&&(X.dir=!0),X.dosPermissions&&16&X.dosPermissions&&(X.dir=!0),X.dir&&(E=n(E)),X.createFolders&&(W=A(E))&&y.call(this,W,!0);var ae=N==="string"&&X.binary===!1&&X.base64===!1;F&&F.binary!==void 0||(X.binary=!ae),(P instanceof R&&P.uncompressedSize===0||X.dir||!P||P.length===0)&&(X.base64=!1,X.binary=!0,P="",X.compression="STORE",N="string");var k=null;k=P instanceof R||P instanceof o?P:I.isNode&&I.isStream(P)?new b(E,P):r.prepareContent(E,P,X.binary,X.optimizedBinaryString,X.base64);var M=new O(E,k,X);this.files[E]=M}var p=s("./utf8"),r=s("./utils"),o=s("./stream/GenericWorker"),S=s("./stream/StreamHelper"),T=s("./defaults"),R=s("./compressedObject"),O=s("./zipObject"),x=s("./generate"),I=s("./nodejsUtils"),b=s("./nodejs/NodejsStreamInputAdapter"),A=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var P=E.lastIndexOf("/");return 0<P?E.substring(0,P):""},n=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},y=function(E,P){return P=P!==void 0?P:T.createFolders,E=n(E),this.files[E]||c.call(this,E,null,{dir:!0,createFolders:P}),this.files[E]};function m(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var i={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(E){var P,F,W;for(P in this.files)W=this.files[P],(F=P.slice(this.root.length,P.length))&&P.slice(0,this.root.length)===this.root&&E(F,W)},filter:function(E){var P=[];return this.forEach(function(F,W){E(F,W)&&P.push(W)}),P},file:function(E,P,F){if(arguments.length!==1)return E=this.root+E,c.call(this,E,P,F),this;if(m(E)){var W=E;return this.filter(function(X,ae){return!ae.dir&&W.test(X)})}var N=this.files[this.root+E];return N&&!N.dir?N:null},folder:function(E){if(!E)return this;if(m(E))return this.filter(function(N,X){return X.dir&&E.test(N)});var P=this.root+E,F=y.call(this,P),W=this.clone();return W.root=F.name,W},remove:function(E){E=this.root+E;var P=this.files[E];if(P||(E.slice(-1)!=="/"&&(E+="/"),P=this.files[E]),P&&!P.dir)delete this.files[E];else for(var F=this.filter(function(N,X){return X.name.slice(0,E.length)===E}),W=0;W<F.length;W++)delete this.files[F[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(E){var P,F={};try{if((F=r.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:p.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");r.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var W=F.comment||this.comment||"";P=x.generateWorker(this,F,W)}catch(N){(P=new o("error")).error(N)}return new S(P,F.type||"string",F.mimeType)},generateAsync:function(E,P){return this.generateInternalStream(E).accumulate(P)},generateNodeStream:function(E,P){return(E=E||{}).type||(E.type="nodebuffer"),this.generateInternalStream(E).toNodejsStream(P)}};a.exports=i},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(s,a,h){a.exports=s("stream")},{stream:void 0}],17:[function(s,a,h){var c=s("./DataReader");function p(r){c.call(this,r);for(var o=0;o<this.data.length;o++)r[o]=255&r[o]}s("../utils").inherits(p,c),p.prototype.byteAt=function(r){return this.data[this.zero+r]},p.prototype.lastIndexOfSignature=function(r){for(var o=r.charCodeAt(0),S=r.charCodeAt(1),T=r.charCodeAt(2),R=r.charCodeAt(3),O=this.length-4;0<=O;--O)if(this.data[O]===o&&this.data[O+1]===S&&this.data[O+2]===T&&this.data[O+3]===R)return O-this.zero;return-1},p.prototype.readAndCheckSignature=function(r){var o=r.charCodeAt(0),S=r.charCodeAt(1),T=r.charCodeAt(2),R=r.charCodeAt(3),O=this.readData(4);return o===O[0]&&S===O[1]&&T===O[2]&&R===O[3]},p.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var o=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},a.exports=p},{"../utils":32,"./DataReader":18}],18:[function(s,a,h){var c=s("../utils");function p(r){this.data=r,this.length=r.length,this.index=0,this.zero=0}p.prototype={checkOffset:function(r){this.checkIndex(this.index+r)},checkIndex:function(r){if(this.length<this.zero+r||r<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+r+"). Corrupted zip ?")},setIndex:function(r){this.checkIndex(r),this.index=r},skip:function(r){this.setIndex(this.index+r)},byteAt:function(){},readInt:function(r){var o,S=0;for(this.checkOffset(r),o=this.index+r-1;o>=this.index;o--)S=(S<<8)+this.byteAt(o);return this.index+=r,S},readString:function(r){return c.transformTo("string",this.readData(r))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var r=this.readInt(4);return new Date(Date.UTC(1980+(r>>25&127),(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(31&r)<<1))}},a.exports=p},{"../utils":32}],19:[function(s,a,h){var c=s("./Uint8ArrayReader");function p(r){c.call(this,r)}s("../utils").inherits(p,c),p.prototype.readData=function(r){this.checkOffset(r);var o=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},a.exports=p},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(s,a,h){var c=s("./DataReader");function p(r){c.call(this,r)}s("../utils").inherits(p,c),p.prototype.byteAt=function(r){return this.data.charCodeAt(this.zero+r)},p.prototype.lastIndexOfSignature=function(r){return this.data.lastIndexOf(r)-this.zero},p.prototype.readAndCheckSignature=function(r){return r===this.readData(4)},p.prototype.readData=function(r){this.checkOffset(r);var o=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},a.exports=p},{"../utils":32,"./DataReader":18}],21:[function(s,a,h){var c=s("./ArrayReader");function p(r){c.call(this,r)}s("../utils").inherits(p,c),p.prototype.readData=function(r){if(this.checkOffset(r),r===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},a.exports=p},{"../utils":32,"./ArrayReader":17}],22:[function(s,a,h){var c=s("../utils"),p=s("../support"),r=s("./ArrayReader"),o=s("./StringReader"),S=s("./NodeBufferReader"),T=s("./Uint8ArrayReader");a.exports=function(R){var O=c.getTypeOf(R);return c.checkSupport(O),O!=="string"||p.uint8array?O==="nodebuffer"?new S(R):p.uint8array?new T(c.transformTo("uint8array",R)):new r(c.transformTo("array",R)):new o(R)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(s,a,h){h.LOCAL_FILE_HEADER="PK",h.CENTRAL_FILE_HEADER="PK",h.CENTRAL_DIRECTORY_END="PK",h.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",h.ZIP64_CENTRAL_DIRECTORY_END="PK",h.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(s,a,h){var c=s("./GenericWorker"),p=s("../utils");function r(o){c.call(this,"ConvertWorker to "+o),this.destType=o}p.inherits(r,c),r.prototype.processChunk=function(o){this.push({data:p.transformTo(this.destType,o.data),meta:o.meta})},a.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(s,a,h){var c=s("./GenericWorker"),p=s("../crc32");function r(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s("../utils").inherits(r,c),r.prototype.processChunk=function(o){this.streamInfo.crc32=p(o.data,this.streamInfo.crc32||0),this.push(o)},a.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(s,a,h){var c=s("../utils"),p=s("./GenericWorker");function r(o){p.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}c.inherits(r,p),r.prototype.processChunk=function(o){if(o){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+o.data.length}p.prototype.processChunk.call(this,o)},a.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(s,a,h){var c=s("../utils"),p=s("./GenericWorker");function r(o){p.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(T){S.dataIsReady=!0,S.data=T,S.max=T&&T.length||0,S.type=c.getTypeOf(T),S.isPaused||S._tickAndRepeat()},function(T){S.error(T)})}c.inherits(r,p),r.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,S);break;case"uint8array":o=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":o=this.data.slice(this.index,S)}return this.index=S,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(s,a,h){function c(p){this.name=p||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(p){this.emit("data",p)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(p){this.emit("error",p)}return!0},error:function(p){return!this.isFinished&&(this.isPaused?this.generatedError=p:(this.isFinished=!0,this.emit("error",p),this.previous&&this.previous.error(p),this.cleanUp()),!0)},on:function(p,r){return this._listeners[p].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(p,r){if(this._listeners[p])for(var o=0;o<this._listeners[p].length;o++)this._listeners[p][o].call(this,r)},pipe:function(p){return p.registerPrevious(this)},registerPrevious:function(p){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=p.streamInfo,this.mergeStreamInfo(),this.previous=p;var r=this;return p.on("data",function(o){r.processChunk(o)}),p.on("end",function(){r.end()}),p.on("error",function(o){r.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var p=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),p=!0),this.previous&&this.previous.resume(),!p},flush:function(){},processChunk:function(p){this.push(p)},withStreamInfo:function(p,r){return this.extraStreamInfo[p]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var p in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,p)&&(this.streamInfo[p]=this.extraStreamInfo[p])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var p="Worker "+this.name;return this.previous?this.previous+" -> "+p:p}},a.exports=c},{}],29:[function(s,a,h){var c=s("../utils"),p=s("./ConvertWorker"),r=s("./GenericWorker"),o=s("../base64"),S=s("../support"),T=s("../external"),R=null;if(S.nodestream)try{R=s("../nodejs/NodejsStreamOutputAdapter")}catch{}function O(I,b){return new T.Promise(function(A,n){var y=[],m=I._internalType,i=I._outputType,E=I._mimeType;I.on("data",function(P,F){y.push(P),b&&b(F)}).on("error",function(P){y=[],n(P)}).on("end",function(){try{var P=function(F,W,N){switch(F){case"blob":return c.newBlob(c.transformTo("arraybuffer",W),N);case"base64":return o.encode(W);default:return c.transformTo(F,W)}}(i,function(F,W){var N,X=0,ae=null,k=0;for(N=0;N<W.length;N++)k+=W[N].length;switch(F){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ae=new Uint8Array(k),N=0;N<W.length;N++)ae.set(W[N],X),X+=W[N].length;return ae;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+F+"'")}}(m,y),E);A(P)}catch(F){n(F)}y=[]}).resume()})}function x(I,b,A){var n=b;switch(b){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=b,this._mimeType=A,c.checkSupport(n),this._worker=I.pipe(new p(n)),I.lock()}catch(y){this._worker=new r("error"),this._worker.error(y)}}x.prototype={accumulate:function(I){return O(this,I)},on:function(I,b){var A=this;return I==="data"?this._worker.on(I,function(n){b.call(A,n.data,n.meta)}):this._worker.on(I,function(){c.delay(b,arguments,A)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(I){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new R(this,{objectMode:this._outputType!=="nodebuffer"},I)}},a.exports=x},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(s,a,h){if(h.base64=!0,h.array=!0,h.string=!0,h.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",h.nodebuffer=typeof Buffer!="undefined",h.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")h.blob=!1;else{var c=new ArrayBuffer(0);try{h.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);p.append(c),h.blob=p.getBlob("application/zip").size===0}catch{h.blob=!1}}}try{h.nodestream=!!s("readable-stream").Readable}catch{h.nodestream=!1}},{"readable-stream":16}],31:[function(s,a,h){for(var c=s("./utils"),p=s("./support"),r=s("./nodejsUtils"),o=s("./stream/GenericWorker"),S=new Array(256),T=0;T<256;T++)S[T]=252<=T?6:248<=T?5:240<=T?4:224<=T?3:192<=T?2:1;S[254]=S[254]=1;function R(){o.call(this,"utf-8 decode"),this.leftOver=null}function O(){o.call(this,"utf-8 encode")}h.utf8encode=function(x){return p.nodebuffer?r.newBufferFrom(x,"utf-8"):function(I){var b,A,n,y,m,i=I.length,E=0;for(y=0;y<i;y++)(64512&(A=I.charCodeAt(y)))==55296&&y+1<i&&(64512&(n=I.charCodeAt(y+1)))==56320&&(A=65536+(A-55296<<10)+(n-56320),y++),E+=A<128?1:A<2048?2:A<65536?3:4;for(b=p.uint8array?new Uint8Array(E):new Array(E),y=m=0;m<E;y++)(64512&(A=I.charCodeAt(y)))==55296&&y+1<i&&(64512&(n=I.charCodeAt(y+1)))==56320&&(A=65536+(A-55296<<10)+(n-56320),y++),A<128?b[m++]=A:(A<2048?b[m++]=192|A>>>6:(A<65536?b[m++]=224|A>>>12:(b[m++]=240|A>>>18,b[m++]=128|A>>>12&63),b[m++]=128|A>>>6&63),b[m++]=128|63&A);return b}(x)},h.utf8decode=function(x){return p.nodebuffer?c.transformTo("nodebuffer",x).toString("utf-8"):function(I){var b,A,n,y,m=I.length,i=new Array(2*m);for(b=A=0;b<m;)if((n=I[b++])<128)i[A++]=n;else if(4<(y=S[n]))i[A++]=65533,b+=y-1;else{for(n&=y===2?31:y===3?15:7;1<y&&b<m;)n=n<<6|63&I[b++],y--;1<y?i[A++]=65533:n<65536?i[A++]=n:(n-=65536,i[A++]=55296|n>>10&1023,i[A++]=56320|1023&n)}return i.length!==A&&(i.subarray?i=i.subarray(0,A):i.length=A),c.applyFromCharCode(i)}(x=c.transformTo(p.uint8array?"uint8array":"array",x))},c.inherits(R,o),R.prototype.processChunk=function(x){var I=c.transformTo(p.uint8array?"uint8array":"array",x.data);if(this.leftOver&&this.leftOver.length){if(p.uint8array){var b=I;(I=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),I.set(b,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var A=function(y,m){var i;for((m=m||y.length)>y.length&&(m=y.length),i=m-1;0<=i&&(192&y[i])==128;)i--;return i<0||i===0?m:i+S[y[i]]>m?i:m}(I),n=I;A!==I.length&&(p.uint8array?(n=I.subarray(0,A),this.leftOver=I.subarray(A,I.length)):(n=I.slice(0,A),this.leftOver=I.slice(A,I.length))),this.push({data:h.utf8decode(n),meta:x.meta})},R.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:h.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},h.Utf8DecodeWorker=R,c.inherits(O,o),O.prototype.processChunk=function(x){this.push({data:h.utf8encode(x.data),meta:x.meta})},h.Utf8EncodeWorker=O},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(s,a,h){var c=s("./support"),p=s("./base64"),r=s("./nodejsUtils"),o=s("./external");function S(b){return b}function T(b,A){for(var n=0;n<b.length;++n)A[n]=255&b.charCodeAt(n);return A}s("setimmediate"),h.newBlob=function(b,A){h.checkSupport("blob");try{return new Blob([b],{type:A})}catch{try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(b),n.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var R={stringifyByChunk:function(b,A,n){var y=[],m=0,i=b.length;if(i<=n)return String.fromCharCode.apply(null,b);for(;m<i;)A==="array"||A==="nodebuffer"?y.push(String.fromCharCode.apply(null,b.slice(m,Math.min(m+n,i)))):y.push(String.fromCharCode.apply(null,b.subarray(m,Math.min(m+n,i)))),m+=n;return y.join("")},stringifyByChar:function(b){for(var A="",n=0;n<b.length;n++)A+=String.fromCharCode(b[n]);return A},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch{return!1}}()}};function O(b){var A=65536,n=h.getTypeOf(b),y=!0;if(n==="uint8array"?y=R.applyCanBeUsed.uint8array:n==="nodebuffer"&&(y=R.applyCanBeUsed.nodebuffer),y)for(;1<A;)try{return R.stringifyByChunk(b,n,A)}catch{A=Math.floor(A/2)}return R.stringifyByChar(b)}function x(b,A){for(var n=0;n<b.length;n++)A[n]=b[n];return A}h.applyFromCharCode=O;var I={};I.string={string:S,array:function(b){return T(b,new Array(b.length))},arraybuffer:function(b){return I.string.uint8array(b).buffer},uint8array:function(b){return T(b,new Uint8Array(b.length))},nodebuffer:function(b){return T(b,r.allocBuffer(b.length))}},I.array={string:O,array:S,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return r.newBufferFrom(b)}},I.arraybuffer={string:function(b){return O(new Uint8Array(b))},array:function(b){return x(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:S,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return r.newBufferFrom(new Uint8Array(b))}},I.uint8array={string:O,array:function(b){return x(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:S,nodebuffer:function(b){return r.newBufferFrom(b)}},I.nodebuffer={string:O,array:function(b){return x(b,new Array(b.length))},arraybuffer:function(b){return I.nodebuffer.uint8array(b).buffer},uint8array:function(b){return x(b,new Uint8Array(b.length))},nodebuffer:S},h.transformTo=function(b,A){if(A=A||"",!b)return A;h.checkSupport(b);var n=h.getTypeOf(A);return I[n][b](A)},h.resolve=function(b){for(var A=b.split("/"),n=[],y=0;y<A.length;y++){var m=A[y];m==="."||m===""&&y!==0&&y!==A.length-1||(m===".."?n.pop():n.push(m))}return n.join("/")},h.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":c.nodebuffer&&r.isBuffer(b)?"nodebuffer":c.uint8array&&b instanceof Uint8Array?"uint8array":c.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},h.checkSupport=function(b){if(!c[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},h.MAX_VALUE_16BITS=65535,h.MAX_VALUE_32BITS=-1,h.pretty=function(b){var A,n,y="";for(n=0;n<(b||"").length;n++)y+="\\x"+((A=b.charCodeAt(n))<16?"0":"")+A.toString(16).toUpperCase();return y},h.delay=function(b,A,n){setImmediate(function(){b.apply(n||null,A||[])})},h.inherits=function(b,A){function n(){}n.prototype=A.prototype,b.prototype=new n},h.extend=function(){var b,A,n={};for(b=0;b<arguments.length;b++)for(A in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],A)&&n[A]===void 0&&(n[A]=arguments[b][A]);return n},h.prepareContent=function(b,A,n,y,m){return o.Promise.resolve(A).then(function(i){return c.blob&&(i instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(i))!==-1)&&typeof FileReader!="undefined"?new o.Promise(function(E,P){var F=new FileReader;F.onload=function(W){E(W.target.result)},F.onerror=function(W){P(W.target.error)},F.readAsArrayBuffer(i)}):i}).then(function(i){var E=h.getTypeOf(i);return E?(E==="arraybuffer"?i=h.transformTo("uint8array",i):E==="string"&&(m?i=p.decode(i):n&&y!==!0&&(i=function(P){return T(P,c.uint8array?new Uint8Array(P.length):new Array(P.length))}(i))),i):o.Promise.reject(new Error("Can't read the data of '"+b+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(s,a,h){var c=s("./reader/readerFor"),p=s("./utils"),r=s("./signature"),o=s("./zipEntry"),S=s("./support");function T(R){this.files=[],this.loadOptions=R}T.prototype={checkSignature:function(R){if(!this.reader.readAndCheckSignature(R)){this.reader.index-=4;var O=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+p.pretty(O)+", expected "+p.pretty(R)+")")}},isSignature:function(R,O){var x=this.reader.index;this.reader.setIndex(R);var I=this.reader.readString(4)===O;return this.reader.setIndex(x),I},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var R=this.reader.readData(this.zipCommentLength),O=S.uint8array?"uint8array":"array",x=p.transformTo(O,R);this.zipComment=this.loadOptions.decodeFileName(x)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var R,O,x,I=this.zip64EndOfCentralSize-44;0<I;)R=this.reader.readInt(2),O=this.reader.readInt(4),x=this.reader.readData(O),this.zip64ExtensibleData[R]={id:R,length:O,value:x}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var R,O;for(R=0;R<this.files.length;R++)O=this.files[R],this.reader.setIndex(O.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),O.readLocalPart(this.reader),O.handleUTF8(),O.processAttributes()},readCentralDir:function(){var R;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(R=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(R);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var R=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(R<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(R);var O=R;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===p.MAX_VALUE_16BITS||this.diskWithCentralDirStart===p.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===p.MAX_VALUE_16BITS||this.centralDirRecords===p.MAX_VALUE_16BITS||this.centralDirSize===p.MAX_VALUE_32BITS||this.centralDirOffset===p.MAX_VALUE_32BITS){if(this.zip64=!0,(R=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(R),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var x=this.centralDirOffset+this.centralDirSize;this.zip64&&(x+=20,x+=12+this.zip64EndOfCentralSize);var I=O-x;if(0<I)this.isSignature(O,r.CENTRAL_FILE_HEADER)||(this.reader.zero=I);else if(I<0)throw new Error("Corrupted zip: missing "+Math.abs(I)+" bytes.")},prepareReader:function(R){this.reader=c(R)},load:function(R){this.prepareReader(R),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=T},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(s,a,h){var c=s("./reader/readerFor"),p=s("./utils"),r=s("./compressedObject"),o=s("./crc32"),S=s("./utf8"),T=s("./compressions"),R=s("./support");function O(x,I){this.options=x,this.loadOptions=I}O.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(x){var I,b;if(x.skip(22),this.fileNameLength=x.readInt(2),b=x.readInt(2),this.fileName=x.readData(this.fileNameLength),x.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((I=function(A){for(var n in T)if(Object.prototype.hasOwnProperty.call(T,n)&&T[n].magic===A)return T[n];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+p.pretty(this.compressionMethod)+" unknown (inner file : "+p.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,I,x.readData(this.compressedSize))},readCentralPart:function(x){this.versionMadeBy=x.readInt(2),x.skip(2),this.bitFlag=x.readInt(2),this.compressionMethod=x.readString(2),this.date=x.readDate(),this.crc32=x.readInt(4),this.compressedSize=x.readInt(4),this.uncompressedSize=x.readInt(4);var I=x.readInt(2);if(this.extraFieldsLength=x.readInt(2),this.fileCommentLength=x.readInt(2),this.diskNumberStart=x.readInt(2),this.internalFileAttributes=x.readInt(2),this.externalFileAttributes=x.readInt(4),this.localHeaderOffset=x.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");x.skip(I),this.readExtraFields(x),this.parseZIP64ExtraField(x),this.fileComment=x.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var x=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),x==0&&(this.dosPermissions=63&this.externalFileAttributes),x==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var x=c(this.extraFields[1].value);this.uncompressedSize===p.MAX_VALUE_32BITS&&(this.uncompressedSize=x.readInt(8)),this.compressedSize===p.MAX_VALUE_32BITS&&(this.compressedSize=x.readInt(8)),this.localHeaderOffset===p.MAX_VALUE_32BITS&&(this.localHeaderOffset=x.readInt(8)),this.diskNumberStart===p.MAX_VALUE_32BITS&&(this.diskNumberStart=x.readInt(4))}},readExtraFields:function(x){var I,b,A,n=x.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});x.index+4<n;)I=x.readInt(2),b=x.readInt(2),A=x.readData(b),this.extraFields[I]={id:I,length:b,value:A};x.setIndex(n)},handleUTF8:function(){var x=R.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var I=this.findExtraFieldUnicodePath();if(I!==null)this.fileNameStr=I;else{var b=p.transformTo(x,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var n=p.transformTo(x,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var x=this.extraFields[28789];if(x){var I=c(x.value);return I.readInt(1)!==1||o(this.fileName)!==I.readInt(4)?null:S.utf8decode(I.readData(x.length-5))}return null},findExtraFieldUnicodeComment:function(){var x=this.extraFields[25461];if(x){var I=c(x.value);return I.readInt(1)!==1||o(this.fileComment)!==I.readInt(4)?null:S.utf8decode(I.readData(x.length-5))}return null}},a.exports=O},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(s,a,h){function c(I,b,A){this.name=I,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=b,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var p=s("./stream/StreamHelper"),r=s("./stream/DataWorker"),o=s("./utf8"),S=s("./compressedObject"),T=s("./stream/GenericWorker");c.prototype={internalStream:function(I){var b=null,A="string";try{if(!I)throw new Error("No output type specified.");var n=(A=I.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),b=this._decompressWorker();var y=!this._dataBinary;y&&!n&&(b=b.pipe(new o.Utf8EncodeWorker)),!y&&n&&(b=b.pipe(new o.Utf8DecodeWorker))}catch(m){(b=new T("error")).error(m)}return new p(b,A,"")},async:function(I,b){return this.internalStream(I).accumulate(b)},nodeStream:function(I,b){return this.internalStream(I||"nodebuffer").toNodejsStream(b)},_compressWorker:function(I,b){if(this._data instanceof S&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new o.Utf8EncodeWorker)),S.createWorkerFrom(A,I,b)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof T?this._data:new r(this._data)}};for(var R=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],O=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},x=0;x<R.length;x++)c.prototype[R[x]]=O;a.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(s,a,h){(function(c){var p,r,o=c.MutationObserver||c.WebKitMutationObserver;if(o){var S=0,T=new o(I),R=c.document.createTextNode("");T.observe(R,{characterData:!0}),p=function(){R.data=S=++S%2}}else if(c.setImmediate||c.MessageChannel===void 0)p="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var b=c.document.createElement("script");b.onreadystatechange=function(){I(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},c.document.documentElement.appendChild(b)}:function(){setTimeout(I,0)};else{var O=new c.MessageChannel;O.port1.onmessage=I,p=function(){O.port2.postMessage(0)}}var x=[];function I(){var b,A;r=!0;for(var n=x.length;n;){for(A=x,x=[],b=-1;++b<n;)A[b]();n=x.length}r=!1}a.exports=function(b){x.push(b)!==1||r||p()}}).call(this,typeof ye!="undefined"?ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(s,a,h){var c=s("immediate");function p(){}var r={},o=["REJECTED"],S=["FULFILLED"],T=["PENDING"];function R(n){if(typeof n!="function")throw new TypeError("resolver must be a function");this.state=T,this.queue=[],this.outcome=void 0,n!==p&&b(this,n)}function O(n,y,m){this.promise=n,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}function x(n,y,m){c(function(){var i;try{i=y(m)}catch(E){return r.reject(n,E)}i===n?r.reject(n,new TypeError("Cannot resolve promise with itself")):r.resolve(n,i)})}function I(n){var y=n&&n.then;if(n&&(typeof n=="object"||typeof n=="function")&&typeof y=="function")return function(){y.apply(n,arguments)}}function b(n,y){var m=!1;function i(F){m||(m=!0,r.reject(n,F))}function E(F){m||(m=!0,r.resolve(n,F))}var P=A(function(){y(E,i)});P.status==="error"&&i(P.value)}function A(n,y){var m={};try{m.value=n(y),m.status="success"}catch(i){m.status="error",m.value=i}return m}(a.exports=R).prototype.finally=function(n){if(typeof n!="function")return this;var y=this.constructor;return this.then(function(m){return y.resolve(n()).then(function(){return m})},function(m){return y.resolve(n()).then(function(){throw m})})},R.prototype.catch=function(n){return this.then(null,n)},R.prototype.then=function(n,y){if(typeof n!="function"&&this.state===S||typeof y!="function"&&this.state===o)return this;var m=new this.constructor(p);return this.state!==T?x(m,this.state===S?n:y,this.outcome):this.queue.push(new O(m,n,y)),m},O.prototype.callFulfilled=function(n){r.resolve(this.promise,n)},O.prototype.otherCallFulfilled=function(n){x(this.promise,this.onFulfilled,n)},O.prototype.callRejected=function(n){r.reject(this.promise,n)},O.prototype.otherCallRejected=function(n){x(this.promise,this.onRejected,n)},r.resolve=function(n,y){var m=A(I,y);if(m.status==="error")return r.reject(n,m.value);var i=m.value;if(i)b(n,i);else{n.state=S,n.outcome=y;for(var E=-1,P=n.queue.length;++E<P;)n.queue[E].callFulfilled(y)}return n},r.reject=function(n,y){n.state=o,n.outcome=y;for(var m=-1,i=n.queue.length;++m<i;)n.queue[m].callRejected(y);return n},R.resolve=function(n){return n instanceof this?n:r.resolve(new this(p),n)},R.reject=function(n){var y=new this(p);return r.reject(y,n)},R.all=function(n){var y=this;if(Object.prototype.toString.call(n)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=n.length,i=!1;if(!m)return this.resolve([]);for(var E=new Array(m),P=0,F=-1,W=new this(p);++F<m;)N(n[F],F);return W;function N(X,ae){y.resolve(X).then(function(k){E[ae]=k,++P!==m||i||(i=!0,r.resolve(W,E))},function(k){i||(i=!0,r.reject(W,k))})}},R.race=function(n){var y=this;if(Object.prototype.toString.call(n)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=n.length,i=!1;if(!m)return this.resolve([]);for(var E=-1,P=new this(p);++E<m;)F=n[E],y.resolve(F).then(function(W){i||(i=!0,r.resolve(P,W))},function(W){i||(i=!0,r.reject(P,W))});var F;return P}},{immediate:36}],38:[function(s,a,h){var c={};(0,s("./lib/utils/common").assign)(c,s("./lib/deflate"),s("./lib/inflate"),s("./lib/zlib/constants")),a.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(s,a,h){var c=s("./zlib/deflate"),p=s("./utils/common"),r=s("./utils/strings"),o=s("./zlib/messages"),S=s("./zlib/zstream"),T=Object.prototype.toString,R=0,O=-1,x=0,I=8;function b(n){if(!(this instanceof b))return new b(n);this.options=p.assign({level:O,method:I,chunkSize:16384,windowBits:15,memLevel:8,strategy:x,to:""},n||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var m=c.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(m!==R)throw new Error(o[m]);if(y.header&&c.deflateSetHeader(this.strm,y.header),y.dictionary){var i;if(i=typeof y.dictionary=="string"?r.string2buf(y.dictionary):T.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(m=c.deflateSetDictionary(this.strm,i))!==R)throw new Error(o[m]);this._dict_set=!0}}function A(n,y){var m=new b(y);if(m.push(n,!0),m.err)throw m.msg||o[m.err];return m.result}b.prototype.push=function(n,y){var m,i,E=this.strm,P=this.options.chunkSize;if(this.ended)return!1;i=y===~~y?y:y===!0?4:0,typeof n=="string"?E.input=r.string2buf(n):T.call(n)==="[object ArrayBuffer]"?E.input=new Uint8Array(n):E.input=n,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new p.Buf8(P),E.next_out=0,E.avail_out=P),(m=c.deflate(E,i))!==1&&m!==R)return this.onEnd(m),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||i!==4&&i!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(p.shrinkBuf(E.output,E.next_out))):this.onData(p.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&m!==1);return i===4?(m=c.deflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===R):i!==2||(this.onEnd(R),!(E.avail_out=0))},b.prototype.onData=function(n){this.chunks.push(n)},b.prototype.onEnd=function(n){n===R&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg},h.Deflate=b,h.deflate=A,h.deflateRaw=function(n,y){return(y=y||{}).raw=!0,A(n,y)},h.gzip=function(n,y){return(y=y||{}).gzip=!0,A(n,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(s,a,h){var c=s("./zlib/inflate"),p=s("./utils/common"),r=s("./utils/strings"),o=s("./zlib/constants"),S=s("./zlib/messages"),T=s("./zlib/zstream"),R=s("./zlib/gzheader"),O=Object.prototype.toString;function x(b){if(!(this instanceof x))return new x(b);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},b||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||b&&b.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&(15&A.windowBits)==0&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new T,this.strm.avail_out=0;var n=c.inflateInit2(this.strm,A.windowBits);if(n!==o.Z_OK)throw new Error(S[n]);this.header=new R,c.inflateGetHeader(this.strm,this.header)}function I(b,A){var n=new x(A);if(n.push(b,!0),n.err)throw n.msg||S[n.err];return n.result}x.prototype.push=function(b,A){var n,y,m,i,E,P,F=this.strm,W=this.options.chunkSize,N=this.options.dictionary,X=!1;if(this.ended)return!1;y=A===~~A?A:A===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof b=="string"?F.input=r.binstring2buf(b):O.call(b)==="[object ArrayBuffer]"?F.input=new Uint8Array(b):F.input=b,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new p.Buf8(W),F.next_out=0,F.avail_out=W),(n=c.inflate(F,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&N&&(P=typeof N=="string"?r.string2buf(N):O.call(N)==="[object ArrayBuffer]"?new Uint8Array(N):N,n=c.inflateSetDictionary(this.strm,P)),n===o.Z_BUF_ERROR&&X===!0&&(n=o.Z_OK,X=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&n!==o.Z_STREAM_END&&(F.avail_in!==0||y!==o.Z_FINISH&&y!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(m=r.utf8border(F.output,F.next_out),i=F.next_out-m,E=r.buf2string(F.output,m),F.next_out=i,F.avail_out=W-i,i&&p.arraySet(F.output,F.output,m,i,0),this.onData(E)):this.onData(p.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(X=!0)}while((0<F.avail_in||F.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(y=o.Z_FINISH),y===o.Z_FINISH?(n=c.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):y!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(F.avail_out=0))},x.prototype.onData=function(b){this.chunks.push(b)},x.prototype.onEnd=function(b){b===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},h.Inflate=x,h.inflate=I,h.inflateRaw=function(b,A){return(A=A||{}).raw=!0,I(b,A)},h.ungzip=I},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(s,a,h){var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";h.assign=function(o){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var T=S.shift();if(T){if(typeof T!="object")throw new TypeError(T+"must be non-object");for(var R in T)T.hasOwnProperty(R)&&(o[R]=T[R])}}return o},h.shrinkBuf=function(o,S){return o.length===S?o:o.subarray?o.subarray(0,S):(o.length=S,o)};var p={arraySet:function(o,S,T,R,O){if(S.subarray&&o.subarray)o.set(S.subarray(T,T+R),O);else for(var x=0;x<R;x++)o[O+x]=S[T+x]},flattenChunks:function(o){var S,T,R,O,x,I;for(S=R=0,T=o.length;S<T;S++)R+=o[S].length;for(I=new Uint8Array(R),S=O=0,T=o.length;S<T;S++)x=o[S],I.set(x,O),O+=x.length;return I}},r={arraySet:function(o,S,T,R,O){for(var x=0;x<R;x++)o[O+x]=S[T+x]},flattenChunks:function(o){return[].concat.apply([],o)}};h.setTyped=function(o){o?(h.Buf8=Uint8Array,h.Buf16=Uint16Array,h.Buf32=Int32Array,h.assign(h,p)):(h.Buf8=Array,h.Buf16=Array,h.Buf32=Array,h.assign(h,r))},h.setTyped(c)},{}],42:[function(s,a,h){var c=s("./common"),p=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var o=new c.Buf8(256),S=0;S<256;S++)o[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function T(R,O){if(O<65537&&(R.subarray&&r||!R.subarray&&p))return String.fromCharCode.apply(null,c.shrinkBuf(R,O));for(var x="",I=0;I<O;I++)x+=String.fromCharCode(R[I]);return x}o[254]=o[254]=1,h.string2buf=function(R){var O,x,I,b,A,n=R.length,y=0;for(b=0;b<n;b++)(64512&(x=R.charCodeAt(b)))==55296&&b+1<n&&(64512&(I=R.charCodeAt(b+1)))==56320&&(x=65536+(x-55296<<10)+(I-56320),b++),y+=x<128?1:x<2048?2:x<65536?3:4;for(O=new c.Buf8(y),b=A=0;A<y;b++)(64512&(x=R.charCodeAt(b)))==55296&&b+1<n&&(64512&(I=R.charCodeAt(b+1)))==56320&&(x=65536+(x-55296<<10)+(I-56320),b++),x<128?O[A++]=x:(x<2048?O[A++]=192|x>>>6:(x<65536?O[A++]=224|x>>>12:(O[A++]=240|x>>>18,O[A++]=128|x>>>12&63),O[A++]=128|x>>>6&63),O[A++]=128|63&x);return O},h.buf2binstring=function(R){return T(R,R.length)},h.binstring2buf=function(R){for(var O=new c.Buf8(R.length),x=0,I=O.length;x<I;x++)O[x]=R.charCodeAt(x);return O},h.buf2string=function(R,O){var x,I,b,A,n=O||R.length,y=new Array(2*n);for(x=I=0;x<n;)if((b=R[x++])<128)y[I++]=b;else if(4<(A=o[b]))y[I++]=65533,x+=A-1;else{for(b&=A===2?31:A===3?15:7;1<A&&x<n;)b=b<<6|63&R[x++],A--;1<A?y[I++]=65533:b<65536?y[I++]=b:(b-=65536,y[I++]=55296|b>>10&1023,y[I++]=56320|1023&b)}return T(y,I)},h.utf8border=function(R,O){var x;for((O=O||R.length)>R.length&&(O=R.length),x=O-1;0<=x&&(192&R[x])==128;)x--;return x<0||x===0?O:x+o[R[x]]>O?x:O}},{"./common":41}],43:[function(s,a,h){a.exports=function(c,p,r,o){for(var S=65535&c|0,T=c>>>16&65535|0,R=0;r!==0;){for(r-=R=2e3<r?2e3:r;T=T+(S=S+p[o++]|0)|0,--R;);S%=65521,T%=65521}return S|T<<16|0}},{}],44:[function(s,a,h){a.exports={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}},{}],45:[function(s,a,h){var c=function(){for(var p,r=[],o=0;o<256;o++){p=o;for(var S=0;S<8;S++)p=1&p?3988292384^p>>>1:p>>>1;r[o]=p}return r}();a.exports=function(p,r,o,S){var T=c,R=S+o;p^=-1;for(var O=S;O<R;O++)p=p>>>8^T[255&(p^r[O])];return-1^p}},{}],46:[function(s,a,h){var c,p=s("../utils/common"),r=s("./trees"),o=s("./adler32"),S=s("./crc32"),T=s("./messages"),R=0,O=4,x=0,I=-2,b=-1,A=4,n=2,y=8,m=9,i=286,E=30,P=19,F=2*i+1,W=15,N=3,X=258,ae=X+N+1,k=42,M=113,g=1,q=2,ee=3,z=4;function ne(u,Y){return u.msg=T[Y],Y}function Q(u){return(u<<1)-(4<u?9:0)}function oe(u){for(var Y=u.length;0<=--Y;)u[Y]=0}function V(u){var Y=u.state,_=Y.pending;_>u.avail_out&&(_=u.avail_out),_!==0&&(p.arraySet(u.output,Y.pending_buf,Y.pending_out,_,u.next_out),u.next_out+=_,Y.pending_out+=_,u.total_out+=_,u.avail_out-=_,Y.pending-=_,Y.pending===0&&(Y.pending_out=0))}function D(u,Y){r._tr_flush_block(u,0<=u.block_start?u.block_start:-1,u.strstart-u.block_start,Y),u.block_start=u.strstart,V(u.strm)}function $(u,Y){u.pending_buf[u.pending++]=Y}function Z(u,Y){u.pending_buf[u.pending++]=Y>>>8&255,u.pending_buf[u.pending++]=255&Y}function te(u,Y){var _,e,t=u.max_chain_length,l=u.strstart,B=u.prev_length,G=u.nice_match,H=u.strstart>u.w_size-ae?u.strstart-(u.w_size-ae):0,re=u.window,se=u.w_mask,ie=u.prev,ue=u.strstart+X,ce=re[l+B-1],le=re[l+B];u.prev_length>=u.good_match&&(t>>=2),G>u.lookahead&&(G=u.lookahead);do if(re[(_=Y)+B]===le&&re[_+B-1]===ce&&re[_]===re[l]&&re[++_]===re[l+1]){l+=2,_++;do;while(re[++l]===re[++_]&&re[++l]===re[++_]&&re[++l]===re[++_]&&re[++l]===re[++_]&&re[++l]===re[++_]&&re[++l]===re[++_]&&re[++l]===re[++_]&&re[++l]===re[++_]&&l<ue);if(e=X-(ue-l),l=ue-X,B<e){if(u.match_start=Y,G<=(B=e))break;ce=re[l+B-1],le=re[l+B]}}while((Y=ie[Y&se])>H&&--t!=0);return B<=u.lookahead?B:u.lookahead}function K(u){var Y,_,e,t,l,B,G,H,re,se,ie=u.w_size;do{if(t=u.window_size-u.lookahead-u.strstart,u.strstart>=ie+(ie-ae)){for(p.arraySet(u.window,u.window,ie,ie,0),u.match_start-=ie,u.strstart-=ie,u.block_start-=ie,Y=_=u.hash_size;e=u.head[--Y],u.head[Y]=ie<=e?e-ie:0,--_;);for(Y=_=ie;e=u.prev[--Y],u.prev[Y]=ie<=e?e-ie:0,--_;);t+=ie}if(u.strm.avail_in===0)break;if(B=u.strm,G=u.window,H=u.strstart+u.lookahead,re=t,se=void 0,se=B.avail_in,re<se&&(se=re),_=se===0?0:(B.avail_in-=se,p.arraySet(G,B.input,B.next_in,se,H),B.state.wrap===1?B.adler=o(B.adler,G,se,H):B.state.wrap===2&&(B.adler=S(B.adler,G,se,H)),B.next_in+=se,B.total_in+=se,se),u.lookahead+=_,u.lookahead+u.insert>=N)for(l=u.strstart-u.insert,u.ins_h=u.window[l],u.ins_h=(u.ins_h<<u.hash_shift^u.window[l+1])&u.hash_mask;u.insert&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[l+N-1])&u.hash_mask,u.prev[l&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=l,l++,u.insert--,!(u.lookahead+u.insert<N)););}while(u.lookahead<ae&&u.strm.avail_in!==0)}function v(u,Y){for(var _,e;;){if(u.lookahead<ae){if(K(u),u.lookahead<ae&&Y===R)return g;if(u.lookahead===0)break}if(_=0,u.lookahead>=N&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+N-1])&u.hash_mask,_=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),_!==0&&u.strstart-_<=u.w_size-ae&&(u.match_length=te(u,_)),u.match_length>=N)if(e=r._tr_tally(u,u.strstart-u.match_start,u.match_length-N),u.lookahead-=u.match_length,u.match_length<=u.max_lazy_match&&u.lookahead>=N){for(u.match_length--;u.strstart++,u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+N-1])&u.hash_mask,_=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart,--u.match_length!=0;);u.strstart++}else u.strstart+=u.match_length,u.match_length=0,u.ins_h=u.window[u.strstart],u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+1])&u.hash_mask;else e=r._tr_tally(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++;if(e&&(D(u,!1),u.strm.avail_out===0))return g}return u.insert=u.strstart<N-1?u.strstart:N-1,Y===O?(D(u,!0),u.strm.avail_out===0?ee:z):u.last_lit&&(D(u,!1),u.strm.avail_out===0)?g:q}function f(u,Y){for(var _,e,t;;){if(u.lookahead<ae){if(K(u),u.lookahead<ae&&Y===R)return g;if(u.lookahead===0)break}if(_=0,u.lookahead>=N&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+N-1])&u.hash_mask,_=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),u.prev_length=u.match_length,u.prev_match=u.match_start,u.match_length=N-1,_!==0&&u.prev_length<u.max_lazy_match&&u.strstart-_<=u.w_size-ae&&(u.match_length=te(u,_),u.match_length<=5&&(u.strategy===1||u.match_length===N&&4096<u.strstart-u.match_start)&&(u.match_length=N-1)),u.prev_length>=N&&u.match_length<=u.prev_length){for(t=u.strstart+u.lookahead-N,e=r._tr_tally(u,u.strstart-1-u.prev_match,u.prev_length-N),u.lookahead-=u.prev_length-1,u.prev_length-=2;++u.strstart<=t&&(u.ins_h=(u.ins_h<<u.hash_shift^u.window[u.strstart+N-1])&u.hash_mask,_=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),--u.prev_length!=0;);if(u.match_available=0,u.match_length=N-1,u.strstart++,e&&(D(u,!1),u.strm.avail_out===0))return g}else if(u.match_available){if((e=r._tr_tally(u,0,u.window[u.strstart-1]))&&D(u,!1),u.strstart++,u.lookahead--,u.strm.avail_out===0)return g}else u.match_available=1,u.strstart++,u.lookahead--}return u.match_available&&(e=r._tr_tally(u,0,u.window[u.strstart-1]),u.match_available=0),u.insert=u.strstart<N-1?u.strstart:N-1,Y===O?(D(u,!0),u.strm.avail_out===0?ee:z):u.last_lit&&(D(u,!1),u.strm.avail_out===0)?g:q}function j(u,Y,_,e,t){this.good_length=u,this.max_lazy=Y,this.nice_length=_,this.max_chain=e,this.func=t}function U(){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=y,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 p.Buf16(2*F),this.dyn_dtree=new p.Buf16(2*(2*E+1)),this.bl_tree=new p.Buf16(2*(2*P+1)),oe(this.dyn_ltree),oe(this.dyn_dtree),oe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(W+1),this.heap=new p.Buf16(2*i+1),oe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*i+1),oe(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 C(u){var Y;return u&&u.state?(u.total_in=u.total_out=0,u.data_type=n,(Y=u.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?k:M,u.adler=Y.wrap===2?0:1,Y.last_flush=R,r._tr_init(Y),x):ne(u,I)}function L(u){var Y=C(u);return Y===x&&function(_){_.window_size=2*_.w_size,oe(_.head),_.max_lazy_match=c[_.level].max_lazy,_.good_match=c[_.level].good_length,_.nice_match=c[_.level].nice_length,_.max_chain_length=c[_.level].max_chain,_.strstart=0,_.block_start=0,_.lookahead=0,_.insert=0,_.match_length=_.prev_length=N-1,_.match_available=0,_.ins_h=0}(u.state),Y}function J(u,Y,_,e,t,l){if(!u)return I;var B=1;if(Y===b&&(Y=6),e<0?(B=0,e=-e):15<e&&(B=2,e-=16),t<1||m<t||_!==y||e<8||15<e||Y<0||9<Y||l<0||A<l)return ne(u,I);e===8&&(e=9);var G=new U;return(u.state=G).strm=u,G.wrap=B,G.gzhead=null,G.w_bits=e,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=t+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+N-1)/N),G.window=new p.Buf8(2*G.w_size),G.head=new p.Buf16(G.hash_size),G.prev=new p.Buf16(G.w_size),G.lit_bufsize=1<<t+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new p.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=Y,G.strategy=l,G.method=_,L(u)}c=[new j(0,0,0,0,function(u,Y){var _=65535;for(_>u.pending_buf_size-5&&(_=u.pending_buf_size-5);;){if(u.lookahead<=1){if(K(u),u.lookahead===0&&Y===R)return g;if(u.lookahead===0)break}u.strstart+=u.lookahead,u.lookahead=0;var e=u.block_start+_;if((u.strstart===0||u.strstart>=e)&&(u.lookahead=u.strstart-e,u.strstart=e,D(u,!1),u.strm.avail_out===0)||u.strstart-u.block_start>=u.w_size-ae&&(D(u,!1),u.strm.avail_out===0))return g}return u.insert=0,Y===O?(D(u,!0),u.strm.avail_out===0?ee:z):(u.strstart>u.block_start&&(D(u,!1),u.strm.avail_out),g)}),new j(4,4,8,4,v),new j(4,5,16,8,v),new j(4,6,32,32,v),new j(4,4,16,16,f),new j(8,16,32,32,f),new j(8,16,128,128,f),new j(8,32,128,256,f),new j(32,128,258,1024,f),new j(32,258,258,4096,f)],h.deflateInit=function(u,Y){return J(u,Y,y,15,8,0)},h.deflateInit2=J,h.deflateReset=L,h.deflateResetKeep=C,h.deflateSetHeader=function(u,Y){return u&&u.state?u.state.wrap!==2?I:(u.state.gzhead=Y,x):I},h.deflate=function(u,Y){var _,e,t,l;if(!u||!u.state||5<Y||Y<0)return u?ne(u,I):I;if(e=u.state,!u.output||!u.input&&u.avail_in!==0||e.status===666&&Y!==O)return ne(u,u.avail_out===0?-5:I);if(e.strm=u,_=e.last_flush,e.last_flush=Y,e.status===k)if(e.wrap===2)u.adler=0,$(e,31),$(e,139),$(e,8),e.gzhead?($(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),$(e,255&e.gzhead.time),$(e,e.gzhead.time>>8&255),$(e,e.gzhead.time>>16&255),$(e,e.gzhead.time>>24&255),$(e,e.level===9?2:2<=e.strategy||e.level<2?4:0),$(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&($(e,255&e.gzhead.extra.length),$(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(u.adler=S(u.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):($(e,0),$(e,0),$(e,0),$(e,0),$(e,0),$(e,e.level===9?2:2<=e.strategy||e.level<2?4:0),$(e,3),e.status=M);else{var B=y+(e.w_bits-8<<4)<<8;B|=(2<=e.strategy||e.level<2?0:e.level<6?1:e.level===6?2:3)<<6,e.strstart!==0&&(B|=32),B+=31-B%31,e.status=M,Z(e,B),e.strstart!==0&&(Z(e,u.adler>>>16),Z(e,65535&u.adler)),u.adler=1}if(e.status===69)if(e.gzhead.extra){for(t=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>t&&(u.adler=S(u.adler,e.pending_buf,e.pending-t,t)),V(u),t=e.pending,e.pending!==e.pending_buf_size));)$(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>t&&(u.adler=S(u.adler,e.pending_buf,e.pending-t,t)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(e.status===73)if(e.gzhead.name){t=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>t&&(u.adler=S(u.adler,e.pending_buf,e.pending-t,t)),V(u),t=e.pending,e.pending===e.pending_buf_size)){l=1;break}l=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,$(e,l)}while(l!==0);e.gzhead.hcrc&&e.pending>t&&(u.adler=S(u.adler,e.pending_buf,e.pending-t,t)),l===0&&(e.gzindex=0,e.status=91)}else e.status=91;if(e.status===91)if(e.gzhead.comment){t=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>t&&(u.adler=S(u.adler,e.pending_buf,e.pending-t,t)),V(u),t=e.pending,e.pending===e.pending_buf_size)){l=1;break}l=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,$(e,l)}while(l!==0);e.gzhead.hcrc&&e.pending>t&&(u.adler=S(u.adler,e.pending_buf,e.pending-t,t)),l===0&&(e.status=103)}else e.status=103;if(e.status===103&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&V(u),e.pending+2<=e.pending_buf_size&&($(e,255&u.adler),$(e,u.adler>>8&255),u.adler=0,e.status=M)):e.status=M),e.pending!==0){if(V(u),u.avail_out===0)return e.last_flush=-1,x}else if(u.avail_in===0&&Q(Y)<=Q(_)&&Y!==O)return ne(u,-5);if(e.status===666&&u.avail_in!==0)return ne(u,-5);if(u.avail_in!==0||e.lookahead!==0||Y!==R&&e.status!==666){var G=e.strategy===2?function(H,re){for(var se;;){if(H.lookahead===0&&(K(H),H.lookahead===0)){if(re===R)return g;break}if(H.match_length=0,se=r._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,se&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,re===O?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(e,Y):e.strategy===3?function(H,re){for(var se,ie,ue,ce,le=H.window;;){if(H.lookahead<=X){if(K(H),H.lookahead<=X&&re===R)return g;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=N&&0<H.strstart&&(ie=le[ue=H.strstart-1])===le[++ue]&&ie===le[++ue]&&ie===le[++ue]){ce=H.strstart+X;do;while(ie===le[++ue]&&ie===le[++ue]&&ie===le[++ue]&&ie===le[++ue]&&ie===le[++ue]&&ie===le[++ue]&&ie===le[++ue]&&ie===le[++ue]&&ue<ce);H.match_length=X-(ce-ue),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=N?(se=r._tr_tally(H,1,H.match_length-N),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(se=r._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),se&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,re===O?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(e,Y):c[e.level].func(e,Y);if(G!==ee&&G!==z||(e.status=666),G===g||G===ee)return u.avail_out===0&&(e.last_flush=-1),x;if(G===q&&(Y===1?r._tr_align(e):Y!==5&&(r._tr_stored_block(e,0,0,!1),Y===3&&(oe(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),V(u),u.avail_out===0))return e.last_flush=-1,x}return Y!==O?x:e.wrap<=0?1:(e.wrap===2?($(e,255&u.adler),$(e,u.adler>>8&255),$(e,u.adler>>16&255),$(e,u.adler>>24&255),$(e,255&u.total_in),$(e,u.total_in>>8&255),$(e,u.total_in>>16&255),$(e,u.total_in>>24&255)):(Z(e,u.adler>>>16),Z(e,65535&u.adler)),V(u),0<e.wrap&&(e.wrap=-e.wrap),e.pending!==0?x:1)},h.deflateEnd=function(u){var Y;return u&&u.state?(Y=u.state.status)!==k&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==M&&Y!==666?ne(u,I):(u.state=null,Y===M?ne(u,-3):x):I},h.deflateSetDictionary=function(u,Y){var _,e,t,l,B,G,H,re,se=Y.length;if(!u||!u.state||(l=(_=u.state).wrap)===2||l===1&&_.status!==k||_.lookahead)return I;for(l===1&&(u.adler=o(u.adler,Y,se,0)),_.wrap=0,se>=_.w_size&&(l===0&&(oe(_.head),_.strstart=0,_.block_start=0,_.insert=0),re=new p.Buf8(_.w_size),p.arraySet(re,Y,se-_.w_size,_.w_size,0),Y=re,se=_.w_size),B=u.avail_in,G=u.next_in,H=u.input,u.avail_in=se,u.next_in=0,u.input=Y,K(_);_.lookahead>=N;){for(e=_.strstart,t=_.lookahead-(N-1);_.ins_h=(_.ins_h<<_.hash_shift^_.window[e+N-1])&_.hash_mask,_.prev[e&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=e,e++,--t;);_.strstart=e,_.lookahead=N-1,K(_)}return _.strstart+=_.lookahead,_.block_start=_.strstart,_.insert=_.lookahead,_.lookahead=0,_.match_length=_.prev_length=N-1,_.match_available=0,u.next_in=G,u.input=H,u.avail_in=B,_.wrap=l,x},h.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(s,a,h){a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(s,a,h){a.exports=function(c,p){var r,o,S,T,R,O,x,I,b,A,n,y,m,i,E,P,F,W,N,X,ae,k,M,g,q;r=c.state,o=c.next_in,g=c.input,S=o+(c.avail_in-5),T=c.next_out,q=c.output,R=T-(p-c.avail_out),O=T+(c.avail_out-257),x=r.dmax,I=r.wsize,b=r.whave,A=r.wnext,n=r.window,y=r.hold,m=r.bits,i=r.lencode,E=r.distcode,P=(1<<r.lenbits)-1,F=(1<<r.distbits)-1;e:do{m<15&&(y+=g[o++]<<m,m+=8,y+=g[o++]<<m,m+=8),W=i[y&P];t:for(;;){if(y>>>=N=W>>>24,m-=N,(N=W>>>16&255)===0)q[T++]=65535&W;else{if(!(16&N)){if((64&N)==0){W=i[(65535&W)+(y&(1<<N)-1)];continue t}if(32&N){r.mode=12;break e}c.msg="invalid literal/length code",r.mode=30;break e}X=65535&W,(N&=15)&&(m<N&&(y+=g[o++]<<m,m+=8),X+=y&(1<<N)-1,y>>>=N,m-=N),m<15&&(y+=g[o++]<<m,m+=8,y+=g[o++]<<m,m+=8),W=E[y&F];r:for(;;){if(y>>>=N=W>>>24,m-=N,!(16&(N=W>>>16&255))){if((64&N)==0){W=E[(65535&W)+(y&(1<<N)-1)];continue r}c.msg="invalid distance code",r.mode=30;break e}if(ae=65535&W,m<(N&=15)&&(y+=g[o++]<<m,(m+=8)<N&&(y+=g[o++]<<m,m+=8)),x<(ae+=y&(1<<N)-1)){c.msg="invalid distance too far back",r.mode=30;break e}if(y>>>=N,m-=N,(N=T-R)<ae){if(b<(N=ae-N)&&r.sane){c.msg="invalid distance too far back",r.mode=30;break e}if(M=n,(k=0)===A){if(k+=I-N,N<X){for(X-=N;q[T++]=n[k++],--N;);k=T-ae,M=q}}else if(A<N){if(k+=I+A-N,(N-=A)<X){for(X-=N;q[T++]=n[k++],--N;);if(k=0,A<X){for(X-=N=A;q[T++]=n[k++],--N;);k=T-ae,M=q}}}else if(k+=A-N,N<X){for(X-=N;q[T++]=n[k++],--N;);k=T-ae,M=q}for(;2<X;)q[T++]=M[k++],q[T++]=M[k++],q[T++]=M[k++],X-=3;X&&(q[T++]=M[k++],1<X&&(q[T++]=M[k++]))}else{for(k=T-ae;q[T++]=q[k++],q[T++]=q[k++],q[T++]=q[k++],2<(X-=3););X&&(q[T++]=q[k++],1<X&&(q[T++]=q[k++]))}break}}break}}while(o<S&&T<O);o-=X=m>>3,y&=(1<<(m-=X<<3))-1,c.next_in=o,c.next_out=T,c.avail_in=o<S?S-o+5:5-(o-S),c.avail_out=T<O?O-T+257:257-(T-O),r.hold=y,r.bits=m}},{}],49:[function(s,a,h){var c=s("../utils/common"),p=s("./adler32"),r=s("./crc32"),o=s("./inffast"),S=s("./inftrees"),T=1,R=2,O=0,x=-2,I=1,b=852,A=592;function n(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function y(){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 c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(k){var M;return k&&k.state?(M=k.state,k.total_in=k.total_out=M.total=0,k.msg="",M.wrap&&(k.adler=1&M.wrap),M.mode=I,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new c.Buf32(b),M.distcode=M.distdyn=new c.Buf32(A),M.sane=1,M.back=-1,O):x}function i(k){var M;return k&&k.state?((M=k.state).wsize=0,M.whave=0,M.wnext=0,m(k)):x}function E(k,M){var g,q;return k&&k.state?(q=k.state,M<0?(g=0,M=-M):(g=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?x:(q.window!==null&&q.wbits!==M&&(q.window=null),q.wrap=g,q.wbits=M,i(k))):x}function P(k,M){var g,q;return k?(q=new y,(k.state=q).window=null,(g=E(k,M))!==O&&(k.state=null),g):x}var F,W,N=!0;function X(k){if(N){var M;for(F=new c.Buf32(512),W=new c.Buf32(32),M=0;M<144;)k.lens[M++]=8;for(;M<256;)k.lens[M++]=9;for(;M<280;)k.lens[M++]=7;for(;M<288;)k.lens[M++]=8;for(S(T,k.lens,0,288,F,0,k.work,{bits:9}),M=0;M<32;)k.lens[M++]=5;S(R,k.lens,0,32,W,0,k.work,{bits:5}),N=!1}k.lencode=F,k.lenbits=9,k.distcode=W,k.distbits=5}function ae(k,M,g,q){var ee,z=k.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new c.Buf8(z.wsize)),q>=z.wsize?(c.arraySet(z.window,M,g-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(q<(ee=z.wsize-z.wnext)&&(ee=q),c.arraySet(z.window,M,g-q,ee,z.wnext),(q-=ee)?(c.arraySet(z.window,M,g-q,q,0),z.wnext=q,z.whave=z.wsize):(z.wnext+=ee,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=ee))),0}h.inflateReset=i,h.inflateReset2=E,h.inflateResetKeep=m,h.inflateInit=function(k){return P(k,15)},h.inflateInit2=P,h.inflate=function(k,M){var g,q,ee,z,ne,Q,oe,V,D,$,Z,te,K,v,f,j,U,C,L,J,u,Y,_,e,t=0,l=new c.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return x;(g=k.state).mode===12&&(g.mode=13),ne=k.next_out,ee=k.output,oe=k.avail_out,z=k.next_in,q=k.input,Q=k.avail_in,V=g.hold,D=g.bits,$=Q,Z=oe,Y=O;e:for(;;)switch(g.mode){case I:if(g.wrap===0){g.mode=13;break}for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(2&g.wrap&&V===35615){l[g.check=0]=255&V,l[1]=V>>>8&255,g.check=r(g.check,l,2,0),D=V=0,g.mode=2;break}if(g.flags=0,g.head&&(g.head.done=!1),!(1&g.wrap)||(((255&V)<<8)+(V>>8))%31){k.msg="incorrect header check",g.mode=30;break}if((15&V)!=8){k.msg="unknown compression method",g.mode=30;break}if(D-=4,u=8+(15&(V>>>=4)),g.wbits===0)g.wbits=u;else if(u>g.wbits){k.msg="invalid window size",g.mode=30;break}g.dmax=1<<u,k.adler=g.check=1,g.mode=512&V?10:12,D=V=0;break;case 2:for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(g.flags=V,(255&g.flags)!=8){k.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){k.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=V>>8&1),512&g.flags&&(l[0]=255&V,l[1]=V>>>8&255,g.check=r(g.check,l,2,0)),D=V=0,g.mode=3;case 3:for(;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.head&&(g.head.time=V),512&g.flags&&(l[0]=255&V,l[1]=V>>>8&255,l[2]=V>>>16&255,l[3]=V>>>24&255,g.check=r(g.check,l,4,0)),D=V=0,g.mode=4;case 4:for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.head&&(g.head.xflags=255&V,g.head.os=V>>8),512&g.flags&&(l[0]=255&V,l[1]=V>>>8&255,g.check=r(g.check,l,2,0)),D=V=0,g.mode=5;case 5:if(1024&g.flags){for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.length=V,g.head&&(g.head.extra_len=V),512&g.flags&&(l[0]=255&V,l[1]=V>>>8&255,g.check=r(g.check,l,2,0)),D=V=0}else g.head&&(g.head.extra=null);g.mode=6;case 6:if(1024&g.flags&&(Q<(te=g.length)&&(te=Q),te&&(g.head&&(u=g.head.extra_len-g.length,g.head.extra||(g.head.extra=new Array(g.head.extra_len)),c.arraySet(g.head.extra,q,z,te,u)),512&g.flags&&(g.check=r(g.check,q,te,z)),Q-=te,z+=te,g.length-=te),g.length))break e;g.length=0,g.mode=7;case 7:if(2048&g.flags){if(Q===0)break e;for(te=0;u=q[z+te++],g.head&&u&&g.length<65536&&(g.head.name+=String.fromCharCode(u)),u&&te<Q;);if(512&g.flags&&(g.check=r(g.check,q,te,z)),Q-=te,z+=te,u)break e}else g.head&&(g.head.name=null);g.length=0,g.mode=8;case 8:if(4096&g.flags){if(Q===0)break e;for(te=0;u=q[z+te++],g.head&&u&&g.length<65536&&(g.head.comment+=String.fromCharCode(u)),u&&te<Q;);if(512&g.flags&&(g.check=r(g.check,q,te,z)),Q-=te,z+=te,u)break e}else g.head&&(g.head.comment=null);g.mode=9;case 9:if(512&g.flags){for(;D<16;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V!==(65535&g.check)){k.msg="header crc mismatch",g.mode=30;break}D=V=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),k.adler=g.check=0,g.mode=12;break;case 10:for(;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}k.adler=g.check=n(V),D=V=0,g.mode=11;case 11:if(g.havedict===0)return k.next_out=ne,k.avail_out=oe,k.next_in=z,k.avail_in=Q,g.hold=V,g.bits=D,2;k.adler=g.check=1,g.mode=12;case 12:if(M===5||M===6)break e;case 13:if(g.last){V>>>=7&D,D-=7&D,g.mode=27;break}for(;D<3;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}switch(g.last=1&V,D-=1,3&(V>>>=1)){case 0:g.mode=14;break;case 1:if(X(g),g.mode=20,M!==6)break;V>>>=2,D-=2;break e;case 2:g.mode=17;break;case 3:k.msg="invalid block type",g.mode=30}V>>>=2,D-=2;break;case 14:for(V>>>=7&D,D-=7&D;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if((65535&V)!=(V>>>16^65535)){k.msg="invalid stored block lengths",g.mode=30;break}if(g.length=65535&V,D=V=0,g.mode=15,M===6)break e;case 15:g.mode=16;case 16:if(te=g.length){if(Q<te&&(te=Q),oe<te&&(te=oe),te===0)break e;c.arraySet(ee,q,z,te,ne),Q-=te,z+=te,oe-=te,ne+=te,g.length-=te;break}g.mode=12;break;case 17:for(;D<14;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(g.nlen=257+(31&V),V>>>=5,D-=5,g.ndist=1+(31&V),V>>>=5,D-=5,g.ncode=4+(15&V),V>>>=4,D-=4,286<g.nlen||30<g.ndist){k.msg="too many length or distance symbols",g.mode=30;break}g.have=0,g.mode=18;case 18:for(;g.have<g.ncode;){for(;D<3;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.lens[B[g.have++]]=7&V,V>>>=3,D-=3}for(;g.have<19;)g.lens[B[g.have++]]=0;if(g.lencode=g.lendyn,g.lenbits=7,_={bits:g.lenbits},Y=S(0,g.lens,0,19,g.lencode,0,g.work,_),g.lenbits=_.bits,Y){k.msg="invalid code lengths set",g.mode=30;break}g.have=0,g.mode=19;case 19:for(;g.have<g.nlen+g.ndist;){for(;j=(t=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,U=65535&t,!((f=t>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(U<16)V>>>=f,D-=f,g.lens[g.have++]=U;else{if(U===16){for(e=f+2;D<e;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V>>>=f,D-=f,g.have===0){k.msg="invalid bit length repeat",g.mode=30;break}u=g.lens[g.have-1],te=3+(3&V),V>>>=2,D-=2}else if(U===17){for(e=f+3;D<e;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}D-=f,u=0,te=3+(7&(V>>>=f)),V>>>=3,D-=3}else{for(e=f+7;D<e;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}D-=f,u=0,te=11+(127&(V>>>=f)),V>>>=7,D-=7}if(g.have+te>g.nlen+g.ndist){k.msg="invalid bit length repeat",g.mode=30;break}for(;te--;)g.lens[g.have++]=u}}if(g.mode===30)break;if(g.lens[256]===0){k.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,_={bits:g.lenbits},Y=S(T,g.lens,0,g.nlen,g.lencode,0,g.work,_),g.lenbits=_.bits,Y){k.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,_={bits:g.distbits},Y=S(R,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,_),g.distbits=_.bits,Y){k.msg="invalid distances set",g.mode=30;break}if(g.mode=20,M===6)break e;case 20:g.mode=21;case 21:if(6<=Q&&258<=oe){k.next_out=ne,k.avail_out=oe,k.next_in=z,k.avail_in=Q,g.hold=V,g.bits=D,o(k,Z),ne=k.next_out,ee=k.output,oe=k.avail_out,z=k.next_in,q=k.input,Q=k.avail_in,V=g.hold,D=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;j=(t=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,U=65535&t,!((f=t>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(j&&(240&j)==0){for(C=f,L=j,J=U;j=(t=g.lencode[J+((V&(1<<C+L)-1)>>C)])>>>16&255,U=65535&t,!(C+(f=t>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}V>>>=C,D-=C,g.back+=C}if(V>>>=f,D-=f,g.back+=f,g.length=U,j===0){g.mode=26;break}if(32&j){g.back=-1,g.mode=12;break}if(64&j){k.msg="invalid literal/length code",g.mode=30;break}g.extra=15&j,g.mode=22;case 22:if(g.extra){for(e=g.extra;D<e;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.length+=V&(1<<g.extra)-1,V>>>=g.extra,D-=g.extra,g.back+=g.extra}g.was=g.length,g.mode=23;case 23:for(;j=(t=g.distcode[V&(1<<g.distbits)-1])>>>16&255,U=65535&t,!((f=t>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if((240&j)==0){for(C=f,L=j,J=U;j=(t=g.distcode[J+((V&(1<<C+L)-1)>>C)])>>>16&255,U=65535&t,!(C+(f=t>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}V>>>=C,D-=C,g.back+=C}if(V>>>=f,D-=f,g.back+=f,64&j){k.msg="invalid distance code",g.mode=30;break}g.offset=U,g.extra=15&j,g.mode=24;case 24:if(g.extra){for(e=g.extra;D<e;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}g.offset+=V&(1<<g.extra)-1,V>>>=g.extra,D-=g.extra,g.back+=g.extra}if(g.offset>g.dmax){k.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(oe===0)break e;if(te=Z-oe,g.offset>te){if((te=g.offset-te)>g.whave&&g.sane){k.msg="invalid distance too far back",g.mode=30;break}K=te>g.wnext?(te-=g.wnext,g.wsize-te):g.wnext-te,te>g.length&&(te=g.length),v=g.window}else v=ee,K=ne-g.offset,te=g.length;for(oe<te&&(te=oe),oe-=te,g.length-=te;ee[ne++]=v[K++],--te;);g.length===0&&(g.mode=21);break;case 26:if(oe===0)break e;ee[ne++]=g.length,oe--,g.mode=21;break;case 27:if(g.wrap){for(;D<32;){if(Q===0)break e;Q--,V|=q[z++]<<D,D+=8}if(Z-=oe,k.total_out+=Z,g.total+=Z,Z&&(k.adler=g.check=g.flags?r(g.check,ee,Z,ne-Z):p(g.check,ee,Z,ne-Z)),Z=oe,(g.flags?V:n(V))!==g.check){k.msg="incorrect data check",g.mode=30;break}D=V=0}g.mode=28;case 28:if(g.wrap&&g.flags){for(;D<32;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V!==(4294967295&g.total)){k.msg="incorrect length check",g.mode=30;break}D=V=0}g.mode=29;case 29:Y=1;break e;case 30:Y=-3;break e;case 31:return-4;case 32:default:return x}return k.next_out=ne,k.avail_out=oe,k.next_in=z,k.avail_in=Q,g.hold=V,g.bits=D,(g.wsize||Z!==k.avail_out&&g.mode<30&&(g.mode<27||M!==4))&&ae(k,k.output,k.next_out,Z-k.avail_out)?(g.mode=31,-4):($-=k.avail_in,Z-=k.avail_out,k.total_in+=$,k.total_out+=Z,g.total+=Z,g.wrap&&Z&&(k.adler=g.check=g.flags?r(g.check,ee,Z,k.next_out-Z):p(g.check,ee,Z,k.next_out-Z)),k.data_type=g.bits+(g.last?64:0)+(g.mode===12?128:0)+(g.mode===20||g.mode===15?256:0),($==0&&Z===0||M===4)&&Y===O&&(Y=-5),Y)},h.inflateEnd=function(k){if(!k||!k.state)return x;var M=k.state;return M.window&&(M.window=null),k.state=null,O},h.inflateGetHeader=function(k,M){var g;return k&&k.state?(2&(g=k.state).wrap)==0?x:((g.head=M).done=!1,O):x},h.inflateSetDictionary=function(k,M){var g,q=M.length;return k&&k.state?(g=k.state).wrap!==0&&g.mode!==11?x:g.mode===11&&p(1,M,q,0)!==g.check?-3:ae(k,M,q,q)?(g.mode=31,-4):(g.havedict=1,O):x},h.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(s,a,h){var c=s("../utils/common"),p=[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],r=[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],o=[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],S=[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];a.exports=function(T,R,O,x,I,b,A,n){var y,m,i,E,P,F,W,N,X,ae=n.bits,k=0,M=0,g=0,q=0,ee=0,z=0,ne=0,Q=0,oe=0,V=0,D=null,$=0,Z=new c.Buf16(16),te=new c.Buf16(16),K=null,v=0;for(k=0;k<=15;k++)Z[k]=0;for(M=0;M<x;M++)Z[R[O+M]]++;for(ee=ae,q=15;1<=q&&Z[q]===0;q--);if(q<ee&&(ee=q),q===0)return I[b++]=20971520,I[b++]=20971520,n.bits=1,0;for(g=1;g<q&&Z[g]===0;g++);for(ee<g&&(ee=g),k=Q=1;k<=15;k++)if(Q<<=1,(Q-=Z[k])<0)return-1;if(0<Q&&(T===0||q!==1))return-1;for(te[1]=0,k=1;k<15;k++)te[k+1]=te[k]+Z[k];for(M=0;M<x;M++)R[O+M]!==0&&(A[te[R[O+M]]++]=M);if(F=T===0?(D=K=A,19):T===1?(D=p,$-=257,K=r,v-=257,256):(D=o,K=S,-1),k=g,P=b,ne=M=V=0,i=-1,E=(oe=1<<(z=ee))-1,T===1&&852<oe||T===2&&592<oe)return 1;for(;;){for(W=k-ne,X=A[M]<F?(N=0,A[M]):A[M]>F?(N=K[v+A[M]],D[$+A[M]]):(N=96,0),y=1<<k-ne,g=m=1<<z;I[P+(V>>ne)+(m-=y)]=W<<24|N<<16|X|0,m!==0;);for(y=1<<k-1;V&y;)y>>=1;if(y!==0?(V&=y-1,V+=y):V=0,M++,--Z[k]==0){if(k===q)break;k=R[O+A[M]]}if(ee<k&&(V&E)!==i){for(ne===0&&(ne=ee),P+=g,Q=1<<(z=k-ne);z+ne<q&&!((Q-=Z[z+ne])<=0);)z++,Q<<=1;if(oe+=1<<z,T===1&&852<oe||T===2&&592<oe)return 1;I[i=V&E]=ee<<24|z<<16|P-b|0}}return V!==0&&(I[P+V]=k-ne<<24|64<<16|0),n.bits=ee,0}},{"../utils/common":41}],51:[function(s,a,h){a.exports={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"}},{}],52:[function(s,a,h){var c=s("../utils/common"),p=0,r=1;function o(t){for(var l=t.length;0<=--l;)t[l]=0}var S=0,T=29,R=256,O=R+1+T,x=30,I=19,b=2*O+1,A=15,n=16,y=7,m=256,i=16,E=17,P=18,F=[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],W=[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],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],X=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=new Array(2*(O+2));o(ae);var k=new Array(2*x);o(k);var M=new Array(512);o(M);var g=new Array(256);o(g);var q=new Array(T);o(q);var ee,z,ne,Q=new Array(x);function oe(t,l,B,G,H){this.static_tree=t,this.extra_bits=l,this.extra_base=B,this.elems=G,this.max_length=H,this.has_stree=t&&t.length}function V(t,l){this.dyn_tree=t,this.max_code=0,this.stat_desc=l}function D(t){return t<256?M[t]:M[256+(t>>>7)]}function $(t,l){t.pending_buf[t.pending++]=255&l,t.pending_buf[t.pending++]=l>>>8&255}function Z(t,l,B){t.bi_valid>n-B?(t.bi_buf|=l<<t.bi_valid&65535,$(t,t.bi_buf),t.bi_buf=l>>n-t.bi_valid,t.bi_valid+=B-n):(t.bi_buf|=l<<t.bi_valid&65535,t.bi_valid+=B)}function te(t,l,B){Z(t,B[2*l],B[2*l+1])}function K(t,l){for(var B=0;B|=1&t,t>>>=1,B<<=1,0<--l;);return B>>>1}function v(t,l,B){var G,H,re=new Array(A+1),se=0;for(G=1;G<=A;G++)re[G]=se=se+B[G-1]<<1;for(H=0;H<=l;H++){var ie=t[2*H+1];ie!==0&&(t[2*H]=K(re[ie]++,ie))}}function f(t){var l;for(l=0;l<O;l++)t.dyn_ltree[2*l]=0;for(l=0;l<x;l++)t.dyn_dtree[2*l]=0;for(l=0;l<I;l++)t.bl_tree[2*l]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function j(t){8<t.bi_valid?$(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function U(t,l,B,G){var H=2*l,re=2*B;return t[H]<t[re]||t[H]===t[re]&&G[l]<=G[B]}function C(t,l,B){for(var G=t.heap[B],H=B<<1;H<=t.heap_len&&(H<t.heap_len&&U(l,t.heap[H+1],t.heap[H],t.depth)&&H++,!U(l,G,t.heap[H],t.depth));)t.heap[B]=t.heap[H],B=H,H<<=1;t.heap[B]=G}function L(t,l,B){var G,H,re,se,ie=0;if(t.last_lit!==0)for(;G=t.pending_buf[t.d_buf+2*ie]<<8|t.pending_buf[t.d_buf+2*ie+1],H=t.pending_buf[t.l_buf+ie],ie++,G===0?te(t,H,l):(te(t,(re=g[H])+R+1,l),(se=F[re])!==0&&Z(t,H-=q[re],se),te(t,re=D(--G),B),(se=W[re])!==0&&Z(t,G-=Q[re],se)),ie<t.last_lit;);te(t,m,l)}function J(t,l){var B,G,H,re=l.dyn_tree,se=l.stat_desc.static_tree,ie=l.stat_desc.has_stree,ue=l.stat_desc.elems,ce=-1;for(t.heap_len=0,t.heap_max=b,B=0;B<ue;B++)re[2*B]!==0?(t.heap[++t.heap_len]=ce=B,t.depth[B]=0):re[2*B+1]=0;for(;t.heap_len<2;)re[2*(H=t.heap[++t.heap_len]=ce<2?++ce:0)]=1,t.depth[H]=0,t.opt_len--,ie&&(t.static_len-=se[2*H+1]);for(l.max_code=ce,B=t.heap_len>>1;1<=B;B--)C(t,re,B);for(H=ue;B=t.heap[1],t.heap[1]=t.heap[t.heap_len--],C(t,re,1),G=t.heap[1],t.heap[--t.heap_max]=B,t.heap[--t.heap_max]=G,re[2*H]=re[2*B]+re[2*G],t.depth[H]=(t.depth[B]>=t.depth[G]?t.depth[B]:t.depth[G])+1,re[2*B+1]=re[2*G+1]=H,t.heap[1]=H++,C(t,re,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(le,we){var Ie,ve,Me,de,Ye,ht,Te=we.dyn_tree,mn=we.max_code,Gs=we.stat_desc.static_tree,Ks=we.stat_desc.has_stree,qs=we.stat_desc.extra_bits,wn=we.stat_desc.extra_base,He=we.stat_desc.max_length,Je=0;for(de=0;de<=A;de++)le.bl_count[de]=0;for(Te[2*le.heap[le.heap_max]+1]=0,Ie=le.heap_max+1;Ie<b;Ie++)He<(de=Te[2*Te[2*(ve=le.heap[Ie])+1]+1]+1)&&(de=He,Je++),Te[2*ve+1]=de,mn<ve||(le.bl_count[de]++,Ye=0,wn<=ve&&(Ye=qs[ve-wn]),ht=Te[2*ve],le.opt_len+=ht*(de+Ye),Ks&&(le.static_len+=ht*(Gs[2*ve+1]+Ye)));if(Je!==0){do{for(de=He-1;le.bl_count[de]===0;)de--;le.bl_count[de]--,le.bl_count[de+1]+=2,le.bl_count[He]--,Je-=2}while(0<Je);for(de=He;de!==0;de--)for(ve=le.bl_count[de];ve!==0;)mn<(Me=le.heap[--Ie])||(Te[2*Me+1]!==de&&(le.opt_len+=(de-Te[2*Me+1])*Te[2*Me],Te[2*Me+1]=de),ve--)}}(t,l),v(re,ce,t.bl_count)}function u(t,l,B){var G,H,re=-1,se=l[1],ie=0,ue=7,ce=4;for(se===0&&(ue=138,ce=3),l[2*(B+1)+1]=65535,G=0;G<=B;G++)H=se,se=l[2*(G+1)+1],++ie<ue&&H===se||(ie<ce?t.bl_tree[2*H]+=ie:H!==0?(H!==re&&t.bl_tree[2*H]++,t.bl_tree[2*i]++):ie<=10?t.bl_tree[2*E]++:t.bl_tree[2*P]++,re=H,ce=(ie=0)===se?(ue=138,3):H===se?(ue=6,3):(ue=7,4))}function Y(t,l,B){var G,H,re=-1,se=l[1],ie=0,ue=7,ce=4;for(se===0&&(ue=138,ce=3),G=0;G<=B;G++)if(H=se,se=l[2*(G+1)+1],!(++ie<ue&&H===se)){if(ie<ce)for(;te(t,H,t.bl_tree),--ie!=0;);else H!==0?(H!==re&&(te(t,H,t.bl_tree),ie--),te(t,i,t.bl_tree),Z(t,ie-3,2)):ie<=10?(te(t,E,t.bl_tree),Z(t,ie-3,3)):(te(t,P,t.bl_tree),Z(t,ie-11,7));re=H,ce=(ie=0)===se?(ue=138,3):H===se?(ue=6,3):(ue=7,4)}}o(Q);var _=!1;function e(t,l,B,G){Z(t,(S<<1)+(G?1:0),3),function(H,re,se,ie){j(H),$(H,se),$(H,~se),c.arraySet(H.pending_buf,H.window,re,se,H.pending),H.pending+=se}(t,l,B)}h._tr_init=function(t){_||(function(){var l,B,G,H,re,se=new Array(A+1);for(H=G=0;H<T-1;H++)for(q[H]=G,l=0;l<1<<F[H];l++)g[G++]=H;for(g[G-1]=H,H=re=0;H<16;H++)for(Q[H]=re,l=0;l<1<<W[H];l++)M[re++]=H;for(re>>=7;H<x;H++)for(Q[H]=re<<7,l=0;l<1<<W[H]-7;l++)M[256+re++]=H;for(B=0;B<=A;B++)se[B]=0;for(l=0;l<=143;)ae[2*l+1]=8,l++,se[8]++;for(;l<=255;)ae[2*l+1]=9,l++,se[9]++;for(;l<=279;)ae[2*l+1]=7,l++,se[7]++;for(;l<=287;)ae[2*l+1]=8,l++,se[8]++;for(v(ae,O+1,se),l=0;l<x;l++)k[2*l+1]=5,k[2*l]=K(l,5);ee=new oe(ae,F,R+1,O,A),z=new oe(k,W,0,x,A),ne=new oe(new Array(0),N,0,I,y)}(),_=!0),t.l_desc=new V(t.dyn_ltree,ee),t.d_desc=new V(t.dyn_dtree,z),t.bl_desc=new V(t.bl_tree,ne),t.bi_buf=0,t.bi_valid=0,f(t)},h._tr_stored_block=e,h._tr_flush_block=function(t,l,B,G){var H,re,se=0;0<t.level?(t.strm.data_type===2&&(t.strm.data_type=function(ie){var ue,ce=4093624447;for(ue=0;ue<=31;ue++,ce>>>=1)if(1&ce&&ie.dyn_ltree[2*ue]!==0)return p;if(ie.dyn_ltree[18]!==0||ie.dyn_ltree[20]!==0||ie.dyn_ltree[26]!==0)return r;for(ue=32;ue<R;ue++)if(ie.dyn_ltree[2*ue]!==0)return r;return p}(t)),J(t,t.l_desc),J(t,t.d_desc),se=function(ie){var ue;for(u(ie,ie.dyn_ltree,ie.l_desc.max_code),u(ie,ie.dyn_dtree,ie.d_desc.max_code),J(ie,ie.bl_desc),ue=I-1;3<=ue&&ie.bl_tree[2*X[ue]+1]===0;ue--);return ie.opt_len+=3*(ue+1)+5+5+4,ue}(t),H=t.opt_len+3+7>>>3,(re=t.static_len+3+7>>>3)<=H&&(H=re)):H=re=B+5,B+4<=H&&l!==-1?e(t,l,B,G):t.strategy===4||re===H?(Z(t,2+(G?1:0),3),L(t,ae,k)):(Z(t,4+(G?1:0),3),function(ie,ue,ce,le){var we;for(Z(ie,ue-257,5),Z(ie,ce-1,5),Z(ie,le-4,4),we=0;we<le;we++)Z(ie,ie.bl_tree[2*X[we]+1],3);Y(ie,ie.dyn_ltree,ue-1),Y(ie,ie.dyn_dtree,ce-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,se+1),L(t,t.dyn_ltree,t.dyn_dtree)),f(t),G&&j(t)},h._tr_tally=function(t,l,B){return t.pending_buf[t.d_buf+2*t.last_lit]=l>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&l,t.pending_buf[t.l_buf+t.last_lit]=255&B,t.last_lit++,l===0?t.dyn_ltree[2*B]++:(t.matches++,l--,t.dyn_ltree[2*(g[B]+R+1)]++,t.dyn_dtree[2*D(l)]++),t.last_lit===t.lit_bufsize-1},h._tr_align=function(t){Z(t,2,3),te(t,m,ae),function(l){l.bi_valid===16?($(l,l.bi_buf),l.bi_buf=0,l.bi_valid=0):8<=l.bi_valid&&(l.pending_buf[l.pending++]=255&l.bi_buf,l.bi_buf>>=8,l.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(s,a,h){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(s,a,h){(function(c){(function(p,r){if(!p.setImmediate){var o,S,T,R,O=1,x={},I=!1,b=p.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(p);A=A&&A.setTimeout?A:p,o={}.toString.call(p.process)==="[object process]"?function(i){he.nextTick(function(){y(i)})}:function(){if(p.postMessage&&!p.importScripts){var i=!0,E=p.onmessage;return p.onmessage=function(){i=!1},p.postMessage("","*"),p.onmessage=E,i}}()?(R="setImmediate$"+Math.random()+"$",p.addEventListener?p.addEventListener("message",m,!1):p.attachEvent("onmessage",m),function(i){p.postMessage(R+i,"*")}):p.MessageChannel?((T=new MessageChannel).port1.onmessage=function(i){y(i.data)},function(i){T.port2.postMessage(i)}):b&&"onreadystatechange"in b.createElement("script")?(S=b.documentElement,function(i){var E=b.createElement("script");E.onreadystatechange=function(){y(i),E.onreadystatechange=null,S.removeChild(E),E=null},S.appendChild(E)}):function(i){setTimeout(y,0,i)},A.setImmediate=function(i){typeof i!="function"&&(i=new Function(""+i));for(var E=new Array(arguments.length-1),P=0;P<E.length;P++)E[P]=arguments[P+1];var F={callback:i,args:E};return x[O]=F,o(O),O++},A.clearImmediate=n}function n(i){delete x[i]}function y(i){if(I)setTimeout(y,0,i);else{var E=x[i];if(E){I=!0;try{(function(P){var F=P.callback,W=P.args;switch(W.length){case 0:F();break;case 1:F(W[0]);break;case 2:F(W[0],W[1]);break;case 3:F(W[0],W[1],W[2]);break;default:F.apply(r,W)}})(E)}finally{n(i),I=!1}}}}function m(i){i.source===p&&typeof i.data=="string"&&i.data.indexOf(R)===0&&y(+i.data.slice(R.length))}})(typeof self=="undefined"?c===void 0?this:c:self)}).call(this,typeof ye!="undefined"?ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}(Xr)),Xr.exports}var wo=mo(),go=hs(wo),We={exports:{}},Zr,us;function yo(){if(us)return Zr;us=1;var w={"&":"&",'"':""","'":"'","<":"<",">":">"};function d(s){return s&&s.replace?s.replace(/([&"<>'])/g,function(a,h){return w[h]}):s}return Zr=d,Zr}var cs;function vo(){if(cs)return We.exports;cs=1;var w=yo(),d=fn().Stream,s=" ";function a(S,T){typeof T!="object"&&(T={indent:T});var R=T.stream?new d:null,O="",x=!1,I=T.indent?T.indent===!0?s:T.indent:"",b=!0;function A(E){b?he.nextTick(E):E()}function n(E,P){if(P!==void 0&&(O+=P),E&&!x&&(R=R||new d,x=!0),E&&x){var F=O;A(function(){R.emit("data",F)}),O=""}}function y(E,P){r(n,p(E,I,I?1:0),P)}function m(){if(R){var E=O;A(function(){R.emit("data",E),R.emit("end"),R.readable=!1,R.emit("close")})}}function i(E){var P=E.encoding||"UTF-8",F={version:"1.0",encoding:P};E.standalone&&(F.standalone=E.standalone),y({"?xml":{_attr:F}}),O=O.replace("/>","?>")}return A(function(){b=!1}),T.declaration&&i(T.declaration),S&&S.forEach?S.forEach(function(E,P){var F;P+1===S.length&&(F=m),y(E,F)}):y(S,m),R?(R.readable=!0,R):O}function h(){var S=Array.prototype.slice.call(arguments),T={_elem:p(S)};return T.push=function(R){if(!this.append)throw new Error("not assigned to a parent!");var O=this,x=this._elem.indent;r(this.append,p(R,x,this._elem.icount+(x?1:0)),function(){O.append(!0)})},T.close=function(R){R!==void 0&&this.push(R),this.end&&this.end()},T}function c(S,T){return new Array(T||0).join(S||"")}function p(S,T,R){R=R||0;var O=c(T,R),x,I=S,b=!1;if(typeof S=="object"){var A=Object.keys(S);if(x=A[0],I=S[x],I&&I._elem)return I._elem.name=x,I._elem.icount=R,I._elem.indent=T,I._elem.indents=O,I._elem.interrupt=I,I._elem}var n=[],y=[],m;function i(E){var P=Object.keys(E);P.forEach(function(F){n.push(o(F,E[F]))})}switch(typeof I){case"object":if(I===null)break;I._attr&&i(I._attr),I._cdata&&y.push(("<![CDATA["+I._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),I.forEach&&(m=!1,y.push(""),I.forEach(function(E){if(typeof E=="object"){var P=Object.keys(E)[0];P=="_attr"?i(E._attr):y.push(p(E,T,R+1))}else y.pop(),m=!0,y.push(w(E))}),m||y.push(""));break;default:y.push(w(I))}return{name:x,interrupt:b,attributes:n,content:y,icount:R,indents:O,indent:T}}function r(S,T,R){if(typeof T!="object")return S(!1,T);var O=T.interrupt?1:T.content.length;function x(){for(;T.content.length;){var b=T.content.shift();if(b!==void 0){if(I(b))return;r(S,b)}}S(!1,(O>1?T.indents:"")+(T.name?"</"+T.name+">":"")+(T.indent&&!R?`
|
|
22
|
-
`:"")),R&&R()}function I(b){return b.interrupt?(b.interrupt.append=S,b.interrupt.end=x,b.interrupt=!1,S(!0),!0):!1}if(S(!1,T.indents+(T.name?"<"+T.name:"")+(T.attributes.length?" "+T.attributes.join(" "):"")+(O?T.name?">":"":T.name?"/>":"")+(T.indent&&O>1?`
|
|
23
|
-
`:"")),!O)return S(!1,T.indent?`
|
|
24
|
-
`:"");I(T)||x()}function o(S,T){return S+'="'+w(T)+'"'}return We.exports=a,We.exports.element=We.exports.Element=h,We.exports}var _o=vo(),pe=hs(_o),ze=0,Yr=32,bo=32,Eo=(w,d)=>{let s=d.replace(/-/g,"");if(s.length!==bo)throw new Error(`Error: Cannot extract GUID from font filename: ${d}`);let h=s.replace(/(..)/g,"$1 ").trim().split(" ").map(o=>parseInt(o,16));h.reverse();let p=w.slice(ze,Yr).map((o,S)=>o^h[S%h.length]),r=new Uint8Array(ze+p.length+Math.max(0,w.length-Yr));return r.set(w.slice(0,ze)),r.set(p,ze),r.set(w.slice(Yr),ze+p.length),r},Ke=class{format(d,s={stack:[]}){let a=d.prepForXml(s);if(a)return a;throw Error("XMLComponent did not format correctly")}},at=class{replace(d,s,a){let h=d;return s.forEach((c,p)=>{h=h.replace(new RegExp(`{${c.fileName}}`,"g"),(a+p).toString())}),h}getMediaData(d,s){return s.Array.filter(a=>d.search(`{${a.fileName}}`)>0)}},sn=class{replace(d,s){let a=d;for(let h of s)a=a.replace(new RegExp(`{${h.reference}-${h.instance}}`,"g"),h.numId.toString());return a}},an=class{constructor(){Se(this,"formatter"),Se(this,"imageReplacer"),Se(this,"numberingReplacer"),this.formatter=new Ke,this.imageReplacer=new at,this.numberingReplacer=new sn}compile(d,s,a=[]){let h=new go,c=this.xmlifyFile(d,s),p=new Map(Object.entries(c));for(let[,r]of p)if(Array.isArray(r))for(let o of r)h.file(o.path,o.data);else h.file(r.path,r.data);for(let r of a)h.file(r.path,r.data);for(let r of d.Media.Array)r.type!=="svg"?h.file(`word/media/${r.fileName}`,r.data):(h.file(`word/media/${r.fileName}`,r.data),h.file(`word/media/${r.fallback.fileName}`,r.fallback.data));for(let{data:r,name:o,fontKey:S}of d.FontTable.fontOptionsWithKey){let[T]=o.split(".");h.file(`word/fonts/${T}.odttf`,Eo(r,S))}return h}xmlifyFile(d,s){let a=d.Document.Relationships.RelationshipCount+1,h=pe(this.formatter.format(d.Document.View,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(h,d.Media);return{Relationships:{data:(c.forEach((p,r)=>{d.Document.Relationships.createRelationship(a+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${p.fileName}`)}),d.Document.Relationships.createRelationship(d.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),pe(this.formatter.format(d.Document.Relationships,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let p=this.imageReplacer.replace(h,c,a);return this.numberingReplacer.replace(p,d.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let p=pe(this.formatter.format(d.Styles,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(p,d.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:pe(this.formatter.format(d.CoreProperties,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:pe(this.formatter.format(d.Numbering,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:pe(this.formatter.format(d.FileRelationships,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:d.Headers.map((p,r)=>{let o=pe(this.formatter.format(p.View,{viewWrapper:p,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(o,d.Media).forEach((T,R)=>{p.Relationships.createRelationship(R,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),{data:pe(this.formatter.format(p.Relationships,{viewWrapper:p,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${r+1}.xml.rels`}}),FooterRelationships:d.Footers.map((p,r)=>{let o=pe(this.formatter.format(p.View,{viewWrapper:p,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(o,d.Media).forEach((T,R)=>{p.Relationships.createRelationship(R,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${T.fileName}`)}),{data:pe(this.formatter.format(p.Relationships,{viewWrapper:p,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${r+1}.xml.rels`}}),Headers:d.Headers.map((p,r)=>{let o=pe(this.formatter.format(p.View,{viewWrapper:p,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),S=this.imageReplacer.getMediaData(o,d.Media),T=this.imageReplacer.replace(o,S,0);return{data:this.numberingReplacer.replace(T,d.Numbering.ConcreteNumbering),path:`word/header${r+1}.xml`}}),Footers:d.Footers.map((p,r)=>{let o=pe(this.formatter.format(p.View,{viewWrapper:p,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),S=this.imageReplacer.getMediaData(o,d.Media),T=this.imageReplacer.replace(o,S,0);return{data:this.numberingReplacer.replace(T,d.Numbering.ConcreteNumbering),path:`word/footer${r+1}.xml`}}),ContentTypes:{data:pe(this.formatter.format(d.ContentTypes,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:pe(this.formatter.format(d.CustomProperties,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:pe(this.formatter.format(d.AppProperties,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:pe(this.formatter.format(d.FootNotes.View,{viewWrapper:d.FootNotes,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:pe(this.formatter.format(d.FootNotes.Relationships,{viewWrapper:d.FootNotes,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:pe(this.formatter.format(d.Settings,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:pe(this.formatter.format(d.Comments,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:pe(this.formatter.format(d.FontTable.View,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:pe(this.formatter.format(d.FontTable.Relationships,{viewWrapper:d.Document,file:d,stack:[]}),{indent:s,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}},xo={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},ls=w=>w===!0?xo.WITH_2_BLANKS:w===!1?void 0:w,To=class Le{static pack(d,s,a){return ta(this,arguments,function*(h,c,p,r=[]){return this.compiler.compile(h,ls(p),r).generateAsync({type:c,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(d,s,a=[]){return Le.pack(d,"string",s,a)}static toBuffer(d,s,a=[]){return Le.pack(d,"nodebuffer",s,a)}static toBase64String(d,s,a=[]){return Le.pack(d,"base64",s,a)}static toBlob(d,s,a=[]){return Le.pack(d,"blob",s,a)}static toArrayBuffer(d,s,a=[]){return Le.pack(d,"arraybuffer",s,a)}static toStream(d,s,a=[]){let h=new po.Stream;return this.compiler.compile(d,ls(s),a).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(p=>{h.emit("data",p),h.emit("end")}),h}};Se(To,"compiler",new an);var Lo=new Ke;var Po=new Ke;var Fo=new at;var Ws=w=>{let d={},s={};return w.forEach(a=>{var h;a.type==="definition"?d[a.identifier.toUpperCase()]=a.url:a.type==="footnoteDefinition"?s[a.identifier.toUpperCase()]={children:a.children}:(h=a.children)!=null&&h.length&&Object.assign(d,Ws(a.children))}),{definitions:d,footnoteDefinitions:s}};function zs(w){let s=new Uint8Array(w).slice(0,4);if(s[0]===66&&s[1]===77)return"bmp";let a="";switch(s.forEach(h=>{a+=h.toString(16).padStart(2,"0")}),a){case"89504E47":return"png";case"47494638":return"gif";case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":case"FFD8FFE8":return"jpg"}}var lt=3,Ao=async w=>{let d=document.createElement("canvas"),s=d.getContext("2d");if(s){let a=new Image;a.src=w,await new Promise(p=>{a.onload=p});let h=a.width*lt,c=a.height*lt;return d.width=h,d.height=c,s.drawImage(a,0,0,h,c),{data:d.toDataURL("image/png"),type:"png",transformation:{width:h/lt,height:c/lt}}}else throw new Error("Canvas context not available")},So=async w=>{let s=await(await fetch(w)).arrayBuffer(),a=zs(s)||"png",h=await createImageBitmap(new Blob([s],{type:a}));return{type:a,data:s,transformation:{width:h.width,height:h.height}}},Ro=async w=>{try{return w.startsWith("data:")?await Ao(w):await So(w)}catch(d){return console.error(`Error resolving image: ${w}`,d),{type:"png",data:Buffer.from([]),transformation:{width:100,height:100}}}},Io={useTitle:!0,imageResolver:Ro};0&&(module.exports={convertInchesToTwip,convertMillimetersToTwip,defaultProps,getDefinitions,getImageMimeType});
|
|
25
|
-
/*! Bundled license information:
|
|
26
|
-
|
|
27
|
-
@mayank1513/docx/dist/index.mjs:
|
|
28
|
-
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
29
|
-
(*!
|
|
30
|
-
* The buffer module from node.js, for the browser.
|
|
31
|
-
*
|
|
32
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
33
|
-
* @license MIT
|
|
34
|
-
*)
|
|
35
|
-
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
36
|
-
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
|
37
|
-
*/
|
|
1
|
+
"use strict";var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var n in e)s(t,n,{get:e[n],enumerable:!0})},x=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!d.call(t,r)&&r!==n&&s(t,r,{get:()=>e[r],enumerable:!(o=l(e,r))||o.enumerable});return t};var u=t=>x(s({},"__esModule",{value:!0}),t);var y={};P(y,{convertInchesToTwip:()=>i.convertInchesToTwip,convertMillimetersToTwip:()=>i.convertMillimetersToTwip,defaultProps:()=>h,getDefinitions:()=>p,getTextContent:()=>a,uuid:()=>f});module.exports=u(y);var i=require("@mayank1513/docx"),p=t=>{let e={},n={};return t.forEach(o=>{var r;o.type==="definition"?e[o.identifier.toUpperCase()]=o.url:o.type==="footnoteDefinition"?n[o.identifier.toUpperCase()]={children:o.children}:(r=o.children)!=null&&r.length&&Object.assign(e,p(o.children))}),{definitions:e,footnoteDefinitions:n}},a=t=>{var e,n;return(e=t.children)!=null&&e.length?t.children.map(a).join(""):(n=t.value)!=null?n:""},f=()=>Math.random().toString(16).slice(2),h={useTitle:!0,plugins:[]};0&&(module.exports={convertInchesToTwip,convertMillimetersToTwip,defaultProps,getDefinitions,getTextContent,uuid});
|