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/index.js
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
"use strict";var Fr=Object.defineProperty;var hh=Object.getOwnPropertyDescriptor;var fh=Object.getOwnPropertyNames;var dh=Object.prototype.hasOwnProperty;var ph=(r,e)=>{for(var t in e)Fr(r,t,{get:e[t],enumerable:!0})},mh=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of fh(e))!dh.call(r,u)&&u!==t&&Fr(r,u,{get:()=>e[u],enumerable:!(a=hh(e,u))||a.enumerable});return r};var wh=r=>mh(Fr({},"__esModule",{value:!0}),r);var Nd={};ph(Nd,{toDocx:()=>Id});module.exports=wh(Nd);var gh=Object.defineProperty,yh=Object.defineProperties,vh=Object.getOwnPropertyDescriptors,_u=Object.getOwnPropertySymbols,_h=Object.prototype.hasOwnProperty,bh=Object.prototype.propertyIsEnumerable,Ai=(r,e,t)=>e in r?gh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,we=(r,e)=>{for(var t in e||(e={}))_h.call(e,t)&&Ai(r,t,e[t]);if(_u)for(var t of _u(e))bh.call(e,t)&&Ai(r,t,e[t]);return r},$e=(r,e)=>yh(r,vh(e));var re=(r,e,t)=>Ai(r,typeof e!="symbol"?e+"":e,t),Eh=(r,e,t)=>new Promise((a,u)=>{var c=f=>{try{n(t.next(f))}catch(A){u(A)}},h=f=>{try{n(t.throw(f))}catch(A){u(A)}},n=f=>f.done?a(f.value):Promise.resolve(f.value).then(c,h);n((t=t.apply(r,e)).next())}),pt=class{constructor(e){re(this,"rootKey"),this.rootKey=e}},xh=Object.seal({}),ne=class extends pt{constructor(e){super(e),re(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);let a=this.root.map(u=>u instanceof pt?u.prepForXml(e):u).filter(u=>u!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((t=a[0])!=null&&t._attr)?a[0]:a:xh}}addChildElement(e){return this.root.push(e),this}},mt=class extends ne{prepForXml(e){let t=super.prepForXml(e);if(t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}},fe=class extends pt{constructor(e){super("_attr"),re(this,"xmlKeys"),this.root=e}prepForXml(e){let t={};return Object.entries(this.root).forEach(([a,u])=>{if(u!==void 0){let c=this.xmlKeys&&this.xmlKeys[a]||a;t[c]=u}}),{_attr:t}}},Xe=class extends pt{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:u,value:c})=>$e(we({},a),{[u]:c}),{})}}},ve=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},Ie=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function su(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Br={},Xt={exports:{}},bu;function au(){if(bu)return Xt.exports;bu=1;var r=typeof Reflect=="object"?Reflect:null,e=r&&typeof r.apply=="function"?r.apply:function(E,P,F){return Function.prototype.apply.call(E,P,F)},t;r&&typeof r.ownKeys=="function"?t=r.ownKeys:Object.getOwnPropertySymbols?t=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:t=function(E){return Object.getOwnPropertyNames(E)};function a(l){console&&console.warn&&console.warn(l)}var u=Number.isNaN||function(E){return E!==E};function c(){c.init.call(this)}Xt.exports=c,Xt.exports.once=o,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var h=10;function n(l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(l){if(typeof l!="number"||l<0||u(l))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+l+".");h=l}}),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||u(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 f(l){return l._maxListeners===void 0?c.defaultMaxListeners:l._maxListeners}c.prototype.getMaxListeners=function(){return f(this)},c.prototype.emit=function(E){for(var P=[],F=1;F<arguments.length;F++)P.push(arguments[F]);var W=E==="error",k=this._events;if(k!==void 0)W=W&&k.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 ue=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw ue.context=X,ue}var O=k[E];if(O===void 0)return!1;if(typeof O=="function")e(O,this,P);else for(var M=O.length,g=I(O,M),F=0;F<M;++F)e(g[F],this,P);return!0};function A(l,E,P,F){var W,k,X;if(n(P),k=l._events,k===void 0?(k=l._events=Object.create(null),l._eventsCount=0):(k.newListener!==void 0&&(l.emit("newListener",E,P.listener?P.listener:P),k=l._events),X=k[E]),X===void 0)X=k[E]=P,++l._eventsCount;else if(typeof X=="function"?X=k[E]=F?[P,X]:[X,P]:F?X.unshift(P):X.push(P),W=f(l),W>0&&X.length>W&&!X.warned){X.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=l,ue.type=E,ue.count=X.length,a(ue)}return l}c.prototype.addListener=function(E,P){return A(this,E,P,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(E,P){return A(this,E,P,!0)};function x(){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 S(l,E,P){var F={fired:!1,wrapFn:void 0,target:l,type:E,listener:P},W=x.bind(F);return W.listener=P,F.wrapFn=W,W}c.prototype.once=function(E,P){return n(P),this.on(E,S(this,E,P)),this},c.prototype.prependOnceListener=function(E,P){return n(P),this.prependListener(E,S(this,E,P)),this},c.prototype.removeListener=function(E,P){var F,W,k,X,ue;if(n(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(k=-1,X=F.length-1;X>=0;X--)if(F[X]===P||F[X].listener===P){ue=F[X].listener,k=X;break}if(k<0)return this;k===0?F.shift():_(F,k),F.length===1&&(W[E]=F[0]),W.removeListener!==void 0&&this.emit("removeListener",E,ue||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 k=Object.keys(F),X;for(W=0;W<k.length;++W)X=k[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 N(l,E,P){var F=l._events;if(F===void 0)return[];var W=F[E];return W===void 0?[]:typeof W=="function"?P?[W.listener||W]:[W]:P?R(W):I(W,W.length)}c.prototype.listeners=function(E){return N(this,E,!0)},c.prototype.rawListeners=function(E){return N(this,E,!1)},c.listenerCount=function(l,E){return typeof l.listenerCount=="function"?l.listenerCount(E):T.call(l,E)},c.prototype.listenerCount=T;function T(l){var E=this._events;if(E!==void 0){var P=E[l];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function I(l,E){for(var P=new Array(E),F=0;F<E;++F)P[F]=l[F];return P}function _(l,E){for(;E+1<l.length;E++)l[E]=l[E+1];l.pop()}function R(l){for(var E=new Array(l.length),P=0;P<E.length;++P)E[P]=l[P].listener||l[P];return E}function o(l,E){return new Promise(function(P,F){function W(X){l.removeListener(E,k),F(X)}function k(){typeof l.removeListener=="function"&&l.removeListener("error",W),P([].slice.call(arguments))}m(l,E,k,{once:!0}),E!=="error"&&y(l,W,{once:!0})})}function y(l,E,P){typeof l.on=="function"&&m(l,"error",E,P)}function m(l,E,P,F){if(typeof l.on=="function")F.once?l.once(E,P):l.on(E,P);else if(typeof l.addEventListener=="function")l.addEventListener(E,function W(k){F.once&&l.removeEventListener(E,W),P(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof l)}return Xt.exports}var Zt={exports:{}},Eu;function et(){return Eu||(Eu=1,typeof Object.create=="function"?Zt.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Zt.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}),Zt.exports}function Th(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var El={exports:{}},xe=El.exports={},Le,Pe;function Si(){throw new Error("setTimeout has not been defined")}function Ri(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Le=setTimeout:Le=Si}catch{Le=Si}try{typeof clearTimeout=="function"?Pe=clearTimeout:Pe=Ri}catch{Pe=Ri}})();function xl(r){if(Le===setTimeout)return setTimeout(r,0);if((Le===Si||!Le)&&setTimeout)return Le=setTimeout,setTimeout(r,0);try{return Le(r,0)}catch{try{return Le.call(null,r,0)}catch{return Le.call(this,r,0)}}}function Ah(r){if(Pe===clearTimeout)return clearTimeout(r);if((Pe===Ri||!Pe)&&clearTimeout)return Pe=clearTimeout,clearTimeout(r);try{return Pe(r)}catch{try{return Pe.call(null,r)}catch{return Pe.call(this,r)}}}var ze=[],ft=!1,nt,ir=-1;function Sh(){!ft||!nt||(ft=!1,nt.length?ze=nt.concat(ze):ir=-1,ze.length&&Tl())}function Tl(){if(!ft){var r=xl(Sh);ft=!0;for(var e=ze.length;e;){for(nt=ze,ze=[];++ir<e;)nt&&nt[ir].run();ir=-1,e=ze.length}nt=null,ft=!1,Ah(r)}}xe.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];ze.push(new Al(r,e)),ze.length===1&&!ft&&xl(Tl)};function Al(r,e){this.fun=r,this.array=e}Al.prototype.run=function(){this.fun.apply(null,this.array)};xe.title="browser";xe.browser=!0;xe.env={};xe.argv=[];xe.version="";xe.versions={};function Ke(){}xe.on=Ke;xe.addListener=Ke;xe.once=Ke;xe.off=Ke;xe.removeListener=Ke;xe.removeAllListeners=Ke;xe.emit=Ke;xe.prependListener=Ke;xe.prependOnceListener=Ke;xe.listeners=function(r){return[]};xe.binding=function(r){throw new Error("process.binding is not supported")};xe.cwd=function(){return"/"};xe.chdir=function(r){throw new Error("process.chdir is not supported")};xe.umask=function(){return 0};var Rh=El.exports,me=Th(Rh),Ur,xu;function Sl(){return xu||(xu=1,Ur=au().EventEmitter),Ur}var Mr={},Rt={},Tu;function Ih(){if(Tu)return Rt;Tu=1,Rt.byteLength=n,Rt.toByteArray=A,Rt.fromByteArray=N;for(var r=[],e=[],t=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)r[u]=a[u],e[a.charCodeAt(u)]=u;e[45]=62,e[95]=63;function h(T){var I=T.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=T.indexOf("=");_===-1&&(_=I);var R=_===I?0:4-_%4;return[_,R]}function n(T){var I=h(T),_=I[0],R=I[1];return(_+R)*3/4-R}function f(T,I,_){return(I+_)*3/4-_}function A(T){var I,_=h(T),R=_[0],o=_[1],y=new t(f(T,R,o)),m=0,l=o>0?R-4:R,E;for(E=0;E<l;E+=4)I=e[T.charCodeAt(E)]<<18|e[T.charCodeAt(E+1)]<<12|e[T.charCodeAt(E+2)]<<6|e[T.charCodeAt(E+3)],y[m++]=I>>16&255,y[m++]=I>>8&255,y[m++]=I&255;return o===2&&(I=e[T.charCodeAt(E)]<<2|e[T.charCodeAt(E+1)]>>4,y[m++]=I&255),o===1&&(I=e[T.charCodeAt(E)]<<10|e[T.charCodeAt(E+1)]<<4|e[T.charCodeAt(E+2)]>>2,y[m++]=I>>8&255,y[m++]=I&255),y}function x(T){return r[T>>18&63]+r[T>>12&63]+r[T>>6&63]+r[T&63]}function S(T,I,_){for(var R,o=[],y=I;y<_;y+=3)R=(T[y]<<16&16711680)+(T[y+1]<<8&65280)+(T[y+2]&255),o.push(x(R));return o.join("")}function N(T){for(var I,_=T.length,R=_%3,o=[],y=16383,m=0,l=_-R;m<l;m+=y)o.push(S(T,m,m+y>l?l:m+y));return R===1?(I=T[_-1],o.push(r[I>>2]+r[I<<4&63]+"==")):R===2&&(I=(T[_-2]<<8)+T[_-1],o.push(r[I>>10]+r[I>>4&63]+r[I<<2&63]+"=")),o.join("")}return Rt}var Yt={};var Au;function Nh(){return Au||(Au=1,Yt.read=function(r,e,t,a,u){var c,h,n=u*8-a-1,f=(1<<n)-1,A=f>>1,x=-7,S=t?u-1:0,N=t?-1:1,T=r[e+S];for(S+=N,c=T&(1<<-x)-1,T>>=-x,x+=n;x>0;c=c*256+r[e+S],S+=N,x-=8);for(h=c&(1<<-x)-1,c>>=-x,x+=a;x>0;h=h*256+r[e+S],S+=N,x-=8);if(c===0)c=1-A;else{if(c===f)return h?NaN:(T?-1:1)*(1/0);h=h+Math.pow(2,a),c=c-A}return(T?-1:1)*h*Math.pow(2,c-a)},Yt.write=function(r,e,t,a,u,c){var h,n,f,A=c*8-u-1,x=(1<<A)-1,S=x>>1,N=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=a?0:c-1,I=a?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(n=isNaN(e)?1:0,h=x):(h=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-h))<1&&(h--,f*=2),h+S>=1?e+=N/f:e+=N*Math.pow(2,1-S),e*f>=2&&(h++,f/=2),h+S>=x?(n=0,h=x):h+S>=1?(n=(e*f-1)*Math.pow(2,u),h=h+S):(n=e*Math.pow(2,S-1)*Math.pow(2,u),h=0));u>=8;r[t+T]=n&255,T+=I,n/=256,u-=8);for(h=h<<u|n,A+=u;A>0;r[t+T]=h&255,T+=I,h/=256,A-=8);r[t+T-I]|=_*128}),Yt}var Su;function Nr(){return Su||(Su=1,function(r){var e=Ih(),t=Nh(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=n,r.SlowBuffer=y,r.INSPECT_MAX_BYTES=50;var u=2147483647;r.kMaxLength=u,n.TYPED_ARRAY_SUPPORT=c(),!n.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 b=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(b,i),b.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function h(b){if(b>u)throw new RangeError('The value "'+b+'" is invalid for option "size"');var i=new Uint8Array(b);return Object.setPrototypeOf(i,n.prototype),i}function n(b,i,s){if(typeof b=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(b)}return f(b,i,s)}n.poolSize=8192;function f(b,i,s){if(typeof b=="string")return N(b,i);if(ArrayBuffer.isView(b))return I(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(J(b,ArrayBuffer)||b&&J(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(J(b,SharedArrayBuffer)||b&&J(b.buffer,SharedArrayBuffer)))return _(b,i,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var p=b.valueOf&&b.valueOf();if(p!=null&&p!==b)return n.from(p,i,s);var B=R(b);if(B)return B;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return n.from(b[Symbol.toPrimitive]("string"),i,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}n.from=function(b,i,s){return f(b,i,s)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function A(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function x(b,i,s){return A(b),b<=0?h(b):i!==void 0?typeof s=="string"?h(b).fill(i,s):h(b).fill(i):h(b)}n.alloc=function(b,i,s){return x(b,i,s)};function S(b){return A(b),h(b<0?0:o(b)|0)}n.allocUnsafe=function(b){return S(b)},n.allocUnsafeSlow=function(b){return S(b)};function N(b,i){if((typeof i!="string"||i==="")&&(i="utf8"),!n.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var s=m(b,i)|0,p=h(s),B=p.write(b,i);return B!==s&&(p=p.slice(0,B)),p}function T(b){for(var i=b.length<0?0:o(b.length)|0,s=h(i),p=0;p<i;p+=1)s[p]=b[p]&255;return s}function I(b){if(J(b,Uint8Array)){var i=new Uint8Array(b);return _(i.buffer,i.byteOffset,i.byteLength)}return T(b)}function _(b,i,s){if(i<0||b.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(b.byteLength<i+(s||0))throw new RangeError('"length" is outside of buffer bounds');var p;return i===void 0&&s===void 0?p=new Uint8Array(b):s===void 0?p=new Uint8Array(b,i):p=new Uint8Array(b,i,s),Object.setPrototypeOf(p,n.prototype),p}function R(b){if(n.isBuffer(b)){var i=o(b.length)|0,s=h(i);return s.length===0||b.copy(s,0,0,i),s}if(b.length!==void 0)return typeof b.length!="number"||d(b.length)?h(0):T(b);if(b.type==="Buffer"&&Array.isArray(b.data))return T(b.data)}function o(b){if(b>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return b|0}function y(b){return+b!=b&&(b=0),n.alloc(+b)}n.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==n.prototype},n.compare=function(i,s){if(J(i,Uint8Array)&&(i=n.from(i,i.offset,i.byteLength)),J(s,Uint8Array)&&(s=n.from(s,s.offset,s.byteLength)),!n.isBuffer(i)||!n.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===s)return 0;for(var p=i.length,B=s.length,G=0,H=Math.min(p,B);G<H;++G)if(i[G]!==s[G]){p=i[G],B=s[G];break}return p<B?-1:B<p?1:0},n.isEncoding=function(i){switch(String(i).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}},n.concat=function(i,s){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return n.alloc(0);var p;if(s===void 0)for(s=0,p=0;p<i.length;++p)s+=i[p].length;var B=n.allocUnsafe(s),G=0;for(p=0;p<i.length;++p){var H=i[p];if(J(H,Uint8Array))G+H.length>B.length?n.from(H).copy(B,G):Uint8Array.prototype.set.call(B,H,G);else if(n.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(b,i){if(n.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||J(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,p=arguments.length>2&&arguments[2]===!0;if(!p&&s===0)return 0;for(var B=!1;;)switch(i){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return w(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return C(b).length;default:if(B)return p?-1:w(b).length;i=(""+i).toLowerCase(),B=!0}}n.byteLength=m;function l(b,i,s){var p=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,i>>>=0,s<=i))return"";for(b||(b="utf8");;)switch(b){case"hex":return Q(this,i,s);case"utf8":case"utf-8":return g(this,i,s);case"ascii":return z(this,i,s);case"latin1":case"binary":return se(this,i,s);case"base64":return M(this,i,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,i,s);default:if(p)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),p=!0}}n.prototype._isBuffer=!0;function E(b,i,s){var p=b[i];b[i]=b[s],b[s]=p}n.prototype.swap16=function(){var i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<i;s+=2)E(this,s,s+1);return this},n.prototype.swap32=function(){var i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<i;s+=4)E(this,s,s+3),E(this,s+1,s+2);return this},n.prototype.swap64=function(){var i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<i;s+=8)E(this,s,s+7),E(this,s+1,s+6),E(this,s+2,s+5),E(this,s+3,s+4);return this},n.prototype.toString=function(){var i=this.length;return i===0?"":arguments.length===0?g(this,0,i):l.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(i){if(!n.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:n.compare(this,i)===0},n.prototype.inspect=function(){var i="",s=r.INSPECT_MAX_BYTES;return i=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(i+=" ... "),"<Buffer "+i+">"},a&&(n.prototype[a]=n.prototype.inspect),n.prototype.compare=function(i,s,p,B,G){if(J(i,Uint8Array)&&(i=n.from(i,i.offset,i.byteLength)),!n.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(s===void 0&&(s=0),p===void 0&&(p=i?i.length:0),B===void 0&&(B=0),G===void 0&&(G=this.length),s<0||p>i.length||B<0||G>this.length)throw new RangeError("out of range index");if(B>=G&&s>=p)return 0;if(B>=G)return-1;if(s>=p)return 1;if(s>>>=0,p>>>=0,B>>>=0,G>>>=0,this===i)return 0;for(var H=G-B,ie=p-s,oe=Math.min(H,ie),ae=this.slice(B,G),he=i.slice(s,p),de=0;de<oe;++de)if(ae[de]!==he[de]){H=ae[de],ie=he[de];break}return H<ie?-1:ie<H?1:0};function P(b,i,s,p,B){if(b.length===0)return-1;if(typeof s=="string"?(p=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,d(s)&&(s=B?0:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(B)return-1;s=b.length-1}else if(s<0)if(B)s=0;else return-1;if(typeof i=="string"&&(i=n.from(i,p)),n.isBuffer(i))return i.length===0?-1:F(b,i,s,p,B);if(typeof i=="number")return i=i&255,typeof Uint8Array.prototype.indexOf=="function"?B?Uint8Array.prototype.indexOf.call(b,i,s):Uint8Array.prototype.lastIndexOf.call(b,i,s):F(b,[i],s,p,B);throw new TypeError("val must be string, number or Buffer")}function F(b,i,s,p,B){var G=1,H=b.length,ie=i.length;if(p!==void 0&&(p=String(p).toLowerCase(),p==="ucs2"||p==="ucs-2"||p==="utf16le"||p==="utf-16le")){if(b.length<2||i.length<2)return-1;G=2,H/=2,ie/=2,s/=2}function oe(Te,qe){return G===1?Te[qe]:Te.readUInt16BE(qe*G)}var ae;if(B){var he=-1;for(ae=s;ae<H;ae++)if(oe(b,ae)===oe(i,he===-1?0:ae-he)){if(he===-1&&(he=ae),ae-he+1===ie)return he*G}else he!==-1&&(ae-=ae-he),he=-1}else for(s+ie>H&&(s=H-ie),ae=s;ae>=0;ae--){for(var de=!0,pe=0;pe<ie;pe++)if(oe(b,ae+pe)!==oe(i,pe)){de=!1;break}if(de)return ae}return-1}n.prototype.includes=function(i,s,p){return this.indexOf(i,s,p)!==-1},n.prototype.indexOf=function(i,s,p){return P(this,i,s,p,!0)},n.prototype.lastIndexOf=function(i,s,p){return P(this,i,s,p,!1)};function W(b,i,s,p){s=Number(s)||0;var B=b.length-s;p?(p=Number(p),p>B&&(p=B)):p=B;var G=i.length;p>G/2&&(p=G/2);for(var H=0;H<p;++H){var ie=parseInt(i.substr(H*2,2),16);if(d(ie))return H;b[s+H]=ie}return H}function k(b,i,s,p){return L(w(i,b.length-s),b,s,p)}function X(b,i,s,p){return L(j(i),b,s,p)}function ue(b,i,s,p){return L(C(i),b,s,p)}function O(b,i,s,p){return L(U(i,b.length-s),b,s,p)}n.prototype.write=function(i,s,p,B){if(s===void 0)B="utf8",p=this.length,s=0;else if(p===void 0&&typeof s=="string")B=s,p=this.length,s=0;else if(isFinite(s))s=s>>>0,isFinite(p)?(p=p>>>0,B===void 0&&(B="utf8")):(B=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var G=this.length-s;if((p===void 0||p>G)&&(p=G),i.length>0&&(p<0||s<0)||s>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,i,s,p);case"utf8":case"utf-8":return k(this,i,s,p);case"ascii":case"latin1":case"binary":return X(this,i,s,p);case"base64":return ue(this,i,s,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,i,s,p);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),H=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(b,i,s){return i===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(i,s))}function g(b,i,s){s=Math.min(b.length,s);for(var p=[],B=i;B<s;){var G=b[B],H=null,ie=G>239?4:G>223?3:G>191?2:1;if(B+ie<=s){var oe,ae,he,de;switch(ie){case 1:G<128&&(H=G);break;case 2:oe=b[B+1],(oe&192)===128&&(de=(G&31)<<6|oe&63,de>127&&(H=de));break;case 3:oe=b[B+1],ae=b[B+2],(oe&192)===128&&(ae&192)===128&&(de=(G&15)<<12|(oe&63)<<6|ae&63,de>2047&&(de<55296||de>57343)&&(H=de));break;case 4:oe=b[B+1],ae=b[B+2],he=b[B+3],(oe&192)===128&&(ae&192)===128&&(he&192)===128&&(de=(G&15)<<18|(oe&63)<<12|(ae&63)<<6|he&63,de>65535&&de<1114112&&(H=de))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,p.push(H>>>10&1023|55296),H=56320|H&1023),p.push(H),B+=ie}return ee(p)}var q=4096;function ee(b){var i=b.length;if(i<=q)return String.fromCharCode.apply(String,b);for(var s="",p=0;p<i;)s+=String.fromCharCode.apply(String,b.slice(p,p+=q));return s}function z(b,i,s){var p="";s=Math.min(b.length,s);for(var B=i;B<s;++B)p+=String.fromCharCode(b[B]&127);return p}function se(b,i,s){var p="";s=Math.min(b.length,s);for(var B=i;B<s;++B)p+=String.fromCharCode(b[B]);return p}function Q(b,i,s){var p=b.length;(!i||i<0)&&(i=0),(!s||s<0||s>p)&&(s=p);for(var B="",G=i;G<s;++G)B+=Y[b[G]];return B}function le(b,i,s){for(var p=b.slice(i,s),B="",G=0;G<p.length-1;G+=2)B+=String.fromCharCode(p[G]+p[G+1]*256);return B}n.prototype.slice=function(i,s){var p=this.length;i=~~i,s=s===void 0?p:~~s,i<0?(i+=p,i<0&&(i=0)):i>p&&(i=p),s<0?(s+=p,s<0&&(s=0)):s>p&&(s=p),s<i&&(s=i);var B=this.subarray(i,s);return Object.setPrototypeOf(B,n.prototype),B};function V(b,i,s){if(b%1!==0||b<0)throw new RangeError("offset is not uint");if(b+i>s)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(i,s,p){i=i>>>0,s=s>>>0,p||V(i,s,this.length);for(var B=this[i],G=1,H=0;++H<s&&(G*=256);)B+=this[i+H]*G;return B},n.prototype.readUintBE=n.prototype.readUIntBE=function(i,s,p){i=i>>>0,s=s>>>0,p||V(i,s,this.length);for(var B=this[i+--s],G=1;s>0&&(G*=256);)B+=this[i+--s]*G;return B},n.prototype.readUint8=n.prototype.readUInt8=function(i,s){return i=i>>>0,s||V(i,1,this.length),this[i]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(i,s){return i=i>>>0,s||V(i,2,this.length),this[i]|this[i+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(i,s){return i=i>>>0,s||V(i,2,this.length),this[i]<<8|this[i+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(i,s){return i=i>>>0,s||V(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(i,s){return i=i>>>0,s||V(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},n.prototype.readIntLE=function(i,s,p){i=i>>>0,s=s>>>0,p||V(i,s,this.length);for(var B=this[i],G=1,H=0;++H<s&&(G*=256);)B+=this[i+H]*G;return G*=128,B>=G&&(B-=Math.pow(2,8*s)),B},n.prototype.readIntBE=function(i,s,p){i=i>>>0,s=s>>>0,p||V(i,s,this.length);for(var B=s,G=1,H=this[i+--B];B>0&&(G*=256);)H+=this[i+--B]*G;return G*=128,H>=G&&(H-=Math.pow(2,8*s)),H},n.prototype.readInt8=function(i,s){return i=i>>>0,s||V(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},n.prototype.readInt16LE=function(i,s){i=i>>>0,s||V(i,2,this.length);var p=this[i]|this[i+1]<<8;return p&32768?p|4294901760:p},n.prototype.readInt16BE=function(i,s){i=i>>>0,s||V(i,2,this.length);var p=this[i+1]|this[i]<<8;return p&32768?p|4294901760:p},n.prototype.readInt32LE=function(i,s){return i=i>>>0,s||V(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},n.prototype.readInt32BE=function(i,s){return i=i>>>0,s||V(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},n.prototype.readFloatLE=function(i,s){return i=i>>>0,s||V(i,4,this.length),t.read(this,i,!0,23,4)},n.prototype.readFloatBE=function(i,s){return i=i>>>0,s||V(i,4,this.length),t.read(this,i,!1,23,4)},n.prototype.readDoubleLE=function(i,s){return i=i>>>0,s||V(i,8,this.length),t.read(this,i,!0,52,8)},n.prototype.readDoubleBE=function(i,s){return i=i>>>0,s||V(i,8,this.length),t.read(this,i,!1,52,8)};function D(b,i,s,p,B,G){if(!n.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>B||i<G)throw new RangeError('"value" argument is out of bounds');if(s+p>b.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(i,s,p,B){if(i=+i,s=s>>>0,p=p>>>0,!B){var G=Math.pow(2,8*p)-1;D(this,i,s,p,G,0)}var H=1,ie=0;for(this[s]=i&255;++ie<p&&(H*=256);)this[s+ie]=i/H&255;return s+p},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(i,s,p,B){if(i=+i,s=s>>>0,p=p>>>0,!B){var G=Math.pow(2,8*p)-1;D(this,i,s,p,G,0)}var H=p-1,ie=1;for(this[s+H]=i&255;--H>=0&&(ie*=256);)this[s+H]=i/ie&255;return s+p},n.prototype.writeUint8=n.prototype.writeUInt8=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,1,255,0),this[s]=i&255,s+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,2,65535,0),this[s]=i&255,this[s+1]=i>>>8,s+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,2,65535,0),this[s]=i>>>8,this[s+1]=i&255,s+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,4,4294967295,0),this[s+3]=i>>>24,this[s+2]=i>>>16,this[s+1]=i>>>8,this[s]=i&255,s+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,4,4294967295,0),this[s]=i>>>24,this[s+1]=i>>>16,this[s+2]=i>>>8,this[s+3]=i&255,s+4},n.prototype.writeIntLE=function(i,s,p,B){if(i=+i,s=s>>>0,!B){var G=Math.pow(2,8*p-1);D(this,i,s,p,G-1,-G)}var H=0,ie=1,oe=0;for(this[s]=i&255;++H<p&&(ie*=256);)i<0&&oe===0&&this[s+H-1]!==0&&(oe=1),this[s+H]=(i/ie>>0)-oe&255;return s+p},n.prototype.writeIntBE=function(i,s,p,B){if(i=+i,s=s>>>0,!B){var G=Math.pow(2,8*p-1);D(this,i,s,p,G-1,-G)}var H=p-1,ie=1,oe=0;for(this[s+H]=i&255;--H>=0&&(ie*=256);)i<0&&oe===0&&this[s+H+1]!==0&&(oe=1),this[s+H]=(i/ie>>0)-oe&255;return s+p},n.prototype.writeInt8=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,1,127,-128),i<0&&(i=255+i+1),this[s]=i&255,s+1},n.prototype.writeInt16LE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,2,32767,-32768),this[s]=i&255,this[s+1]=i>>>8,s+2},n.prototype.writeInt16BE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,2,32767,-32768),this[s]=i>>>8,this[s+1]=i&255,s+2},n.prototype.writeInt32LE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,4,2147483647,-2147483648),this[s]=i&255,this[s+1]=i>>>8,this[s+2]=i>>>16,this[s+3]=i>>>24,s+4},n.prototype.writeInt32BE=function(i,s,p){return i=+i,s=s>>>0,p||D(this,i,s,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[s]=i>>>24,this[s+1]=i>>>16,this[s+2]=i>>>8,this[s+3]=i&255,s+4};function $(b,i,s,p,B,G){if(s+p>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function Z(b,i,s,p,B){return i=+i,s=s>>>0,B||$(b,i,s,4),t.write(b,i,s,p,23,4),s+4}n.prototype.writeFloatLE=function(i,s,p){return Z(this,i,s,!0,p)},n.prototype.writeFloatBE=function(i,s,p){return Z(this,i,s,!1,p)};function te(b,i,s,p,B){return i=+i,s=s>>>0,B||$(b,i,s,8),t.write(b,i,s,p,52,8),s+8}n.prototype.writeDoubleLE=function(i,s,p){return te(this,i,s,!0,p)},n.prototype.writeDoubleBE=function(i,s,p){return te(this,i,s,!1,p)},n.prototype.copy=function(i,s,p,B){if(!n.isBuffer(i))throw new TypeError("argument should be a Buffer");if(p||(p=0),!B&&B!==0&&(B=this.length),s>=i.length&&(s=i.length),s||(s=0),B>0&&B<p&&(B=p),B===p||i.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=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),i.length-s<B-p&&(B=i.length-s+p);var G=B-p;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(s,p,B):Uint8Array.prototype.set.call(i,this.subarray(p,B),s),G},n.prototype.fill=function(i,s,p,B){if(typeof i=="string"){if(typeof s=="string"?(B=s,s=0,p=this.length):typeof p=="string"&&(B=p,p=this.length),B!==void 0&&typeof B!="string")throw new TypeError("encoding must be a string");if(typeof B=="string"&&!n.isEncoding(B))throw new TypeError("Unknown encoding: "+B);if(i.length===1){var G=i.charCodeAt(0);(B==="utf8"&&G<128||B==="latin1")&&(i=G)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(s<0||this.length<s||this.length<p)throw new RangeError("Out of range index");if(p<=s)return this;s=s>>>0,p=p===void 0?this.length:p>>>0,i||(i=0);var H;if(typeof i=="number")for(H=s;H<p;++H)this[H]=i;else{var ie=n.isBuffer(i)?i:n.from(i,B),oe=ie.length;if(oe===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(H=0;H<p-s;++H)this[H+s]=ie[H%oe]}return this};var K=/[^+/0-9A-Za-z-_]/g;function v(b){if(b=b.split("=")[0],b=b.trim().replace(K,""),b.length<2)return"";for(;b.length%4!==0;)b=b+"=";return b}function w(b,i){i=i||1/0;for(var s,p=b.length,B=null,G=[],H=0;H<p;++H){if(s=b.charCodeAt(H),s>55295&&s<57344){if(!B){if(s>56319){(i-=3)>-1&&G.push(239,191,189);continue}else if(H+1===p){(i-=3)>-1&&G.push(239,191,189);continue}B=s;continue}if(s<56320){(i-=3)>-1&&G.push(239,191,189),B=s;continue}s=(B-55296<<10|s-56320)+65536}else B&&(i-=3)>-1&&G.push(239,191,189);if(B=null,s<128){if((i-=1)<0)break;G.push(s)}else if(s<2048){if((i-=2)<0)break;G.push(s>>6|192,s&63|128)}else if(s<65536){if((i-=3)<0)break;G.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((i-=4)<0)break;G.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return G}function j(b){for(var i=[],s=0;s<b.length;++s)i.push(b.charCodeAt(s)&255);return i}function U(b,i){for(var s,p,B,G=[],H=0;H<b.length&&!((i-=2)<0);++H)s=b.charCodeAt(H),p=s>>8,B=s%256,G.push(B),G.push(p);return G}function C(b){return e.toByteArray(v(b))}function L(b,i,s,p){for(var B=0;B<p&&!(B+s>=i.length||B>=b.length);++B)i[B+s]=b[B];return B}function J(b,i){return b instanceof i||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===i.name}function d(b){return b!==b}var Y=function(){for(var b="0123456789abcdef",i=new Array(256),s=0;s<16;++s)for(var p=s*16,B=0;B<16;++B)i[p+B]=b[s]+b[B];return i}()}(Mr)),Mr}var Hr={},jr={},Wr,Ru;function Rl(){return Ru||(Ru=1,Wr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var u=42;e[t]=u;for(var c in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var h=Object.getOwnPropertySymbols(e);if(h.length!==1||h[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(e,t);if(n.value!==u||n.enumerable!==!0)return!1}return!0}),Wr}var zr,Iu;function kr(){if(Iu)return zr;Iu=1;var r=Rl();return zr=function(){return r()&&!!Symbol.toStringTag},zr}var Gr,Nu;function Il(){return Nu||(Nu=1,Gr=Object),Gr}var Kr,ku;function kh(){return ku||(ku=1,Kr=Error),Kr}var qr,Ou;function Oh(){return Ou||(Ou=1,qr=EvalError),qr}var Vr,Cu;function Ch(){return Cu||(Cu=1,Vr=RangeError),Vr}var $r,Du;function Dh(){return Du||(Du=1,$r=ReferenceError),$r}var Xr,Lu;function Nl(){return Lu||(Lu=1,Xr=SyntaxError),Xr}var Zr,Pu;function jt(){return Pu||(Pu=1,Zr=TypeError),Zr}var Yr,Fu;function Lh(){return Fu||(Fu=1,Yr=URIError),Yr}var Jr,Bu;function Ph(){return Bu||(Bu=1,Jr=Math.abs),Jr}var Qr,Uu;function Fh(){return Uu||(Uu=1,Qr=Math.floor),Qr}var en,Mu;function Bh(){return Mu||(Mu=1,en=Math.max),en}var tn,Hu;function Uh(){return Hu||(Hu=1,tn=Math.min),tn}var rn,ju;function Mh(){return ju||(ju=1,rn=Math.pow),rn}var nn,Wu;function Hh(){return Wu||(Wu=1,nn=Math.round),nn}var sn,zu;function jh(){return zu||(zu=1,sn=Number.isNaN||function(e){return e!==e}),sn}var an,Gu;function Wh(){if(Gu)return an;Gu=1;var r=jh();return an=function(t){return r(t)||t===0?t:t<0?-1:1},an}var on,Ku;function zh(){return Ku||(Ku=1,on=Object.getOwnPropertyDescriptor),on}var un,qu;function xt(){if(qu)return un;qu=1;var r=zh();if(r)try{r([],"length")}catch{r=null}return un=r,un}var cn,Vu;function Or(){if(Vu)return cn;Vu=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return cn=r,cn}var ln,$u;function Gh(){if($u)return ln;$u=1;var r=typeof Symbol!="undefined"&&Symbol,e=Rl();return ln=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ln}var hn,Xu;function kl(){return Xu||(Xu=1,hn=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),hn}var fn,Zu;function Ol(){if(Zu)return fn;Zu=1;var r=Il();return fn=r.getPrototypeOf||null,fn}var dn,Yu;function Kh(){if(Yu)return dn;Yu=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,a="[object Function]",u=function(f,A){for(var x=[],S=0;S<f.length;S+=1)x[S]=f[S];for(var N=0;N<A.length;N+=1)x[N+f.length]=A[N];return x},c=function(f,A){for(var x=[],S=A,N=0;S<f.length;S+=1,N+=1)x[N]=f[S];return x},h=function(n,f){for(var A="",x=0;x<n.length;x+=1)A+=n[x],x+1<n.length&&(A+=f);return A};return dn=function(f){var A=this;if(typeof A!="function"||e.apply(A)!==a)throw new TypeError(r+A);for(var x=c(arguments,1),S,N=function(){if(this instanceof S){var o=A.apply(this,u(x,arguments));return Object(o)===o?o:this}return A.apply(f,u(x,arguments))},T=t(0,A.length-x.length),I=[],_=0;_<T;_++)I[_]="$"+_;if(S=Function("binder","return function ("+h(I,",")+"){ return binder.apply(this,arguments); }")(N),A.prototype){var R=function(){};R.prototype=A.prototype,S.prototype=new R,R.prototype=null}return S},dn}var pn,Ju;function Wt(){if(Ju)return pn;Ju=1;var r=Kh();return pn=Function.prototype.bind||r,pn}var mn,Qu;function ou(){return Qu||(Qu=1,mn=Function.prototype.call),mn}var wn,ec;function uu(){return ec||(ec=1,wn=Function.prototype.apply),wn}var gn,tc;function qh(){return tc||(tc=1,gn=typeof Reflect!="undefined"&&Reflect&&Reflect.apply),gn}var yn,rc;function Cl(){if(rc)return yn;rc=1;var r=Wt(),e=uu(),t=ou(),a=qh();return yn=a||r.call(t,e),yn}var vn,nc;function cu(){if(nc)return vn;nc=1;var r=Wt(),e=jt(),t=ou(),a=Cl();return vn=function(c){if(c.length<1||typeof c[0]!="function")throw new e("a function is required");return a(r,t,c)},vn}var _n,ic;function Vh(){if(ic)return _n;ic=1;var r=cu(),e=xt(),t;try{t=[].__proto__===Array.prototype}catch(h){if(!h||typeof h!="object"||!("code"in h)||h.code!=="ERR_PROTO_ACCESS")throw h}var a=!!t&&e&&e(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;return _n=a&&typeof a.get=="function"?r([a.get]):typeof c=="function"?function(n){return c(n==null?n:u(n))}:!1,_n}var bn,sc;function Dl(){if(sc)return bn;sc=1;var r=kl(),e=Ol(),t=Vh();return bn=r?function(u){return r(u)}:e?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return e(u)}:t?function(u){return t(u)}:null,bn}var En,ac;function Ll(){if(ac)return En;ac=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Wt();return En=t.call(r,e),En}var xn,oc;function Pl(){if(oc)return xn;oc=1;var r,e=Il(),t=kh(),a=Oh(),u=Ch(),c=Dh(),h=Nl(),n=jt(),f=Lh(),A=Ph(),x=Fh(),S=Bh(),N=Uh(),T=Mh(),I=Hh(),_=Wh(),R=Function,o=function(j){try{return R('"use strict"; return ('+j+").constructor;")()}catch{}},y=xt(),m=Or(),l=function(){throw new n},E=y?function(){try{return arguments.callee,l}catch{try{return y(arguments,"callee").get}catch{return l}}}():l,P=Gh()(),F=Dl(),W=Ol(),k=kl(),X=uu(),ue=ou(),O={},M=typeof Uint8Array=="undefined"||!F?r:F(Uint8Array),g={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?r:ArrayBuffer,"%ArrayIteratorPrototype%":P&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics=="undefined"?r:Atomics,"%BigInt%":typeof BigInt=="undefined"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array=="undefined"?r:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?r:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?r:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array=="undefined"?r:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?r:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map=="undefined"?r:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!P||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?r:Promise,"%Proxy%":typeof Proxy=="undefined"?r:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":typeof Reflect=="undefined"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?r:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!P||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&F?F(""[Symbol.iterator]()):r,"%Symbol%":P?Symbol:r,"%SyntaxError%":h,"%ThrowTypeError%":E,"%TypedArray%":M,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array=="undefined"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?r:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap=="undefined"?r:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?r:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?r:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":X,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":W,"%Math.abs%":A,"%Math.floor%":x,"%Math.max%":S,"%Math.min%":N,"%Math.pow%":T,"%Math.round%":I,"%Math.sign%":_,"%Reflect.getPrototypeOf%":k};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=o("async function () {}");else if(U==="%GeneratorFunction%")C=o("function* () {}");else if(U==="%AsyncGeneratorFunction%")C=o("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"]},se=Wt(),Q=Ll(),le=se.call(ue,Array.prototype.concat),V=se.call(X,Array.prototype.splice),D=se.call(ue,String.prototype.replace),$=se.call(ue,String.prototype.slice),Z=se.call(ue,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 h("invalid intrinsic syntax, expected closing `%`");if(L==="%"&&C!=="%")throw new h("invalid intrinsic syntax, expected opening `%`");var J=[];return D(U,te,function(d,Y,b,i){J[J.length]=b?D(i,K,"$1"):Y||d}),J},w=function(U,C){var L=U,J;if(Q(z,L)&&(J=z[L],L="%"+J[0]+"%"),Q(g,L)){var d=g[L];if(d===O&&(d=ee(L)),typeof d=="undefined"&&!C)throw new n("intrinsic "+U+" exists, but is not available. Please file an issue!");return{alias:J,name:L,value:d}}throw new h("intrinsic "+U+" does not exist!")};return xn=function(U,C){if(typeof U!="string"||U.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof C!="boolean")throw new n('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,U)===null)throw new h("`%` 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]:"",d=w("%"+J+"%",C),Y=d.name,b=d.value,i=!1,s=d.alias;s&&(J=s[0],V(L,le([0,1],s)));for(var p=1,B=!0;p<L.length;p+=1){var G=L[p],H=$(G,0,1),ie=$(G,-1);if((H==='"'||H==="'"||H==="`"||ie==='"'||ie==="'"||ie==="`")&&H!==ie)throw new h("property names with quotes must have matching quotes");if((G==="constructor"||!B)&&(i=!0),J+="."+G,Y="%"+J+"%",Q(g,Y))b=g[Y];else if(b!=null){if(!(G in b)){if(!C)throw new n("base intrinsic for "+U+" exists, but the property is not available.");return}if(y&&p+1>=L.length){var oe=y(b,G);B=!!oe,B&&"get"in oe&&!("originalValue"in oe.get)?b=oe.get:b=b[G]}else B=Q(b,G),b=b[G];B&&!i&&(g[Y]=b)}}return b},xn}var Tn,uc;function zt(){if(uc)return Tn;uc=1;var r=Pl(),e=cu(),t=e([r("%String.prototype.indexOf%")]);return Tn=function(u,c){var h=r(u,!!c);return typeof h=="function"&&t(u,".prototype.")>-1?e([h]):h},Tn}var An,cc;function $h(){if(cc)return An;cc=1;var r=kr()(),e=zt(),t=e("Object.prototype.toString"),a=function(n){return r&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:t(n)==="[object Arguments]"},u=function(n){return a(n)?!0:n!==null&&typeof n=="object"&&"length"in n&&typeof n.length=="number"&&n.length>=0&&t(n)!=="[object Array]"&&"callee"in n&&t(n.callee)==="[object Function]"},c=function(){return a(arguments)}();return a.isLegacyArguments=u,An=c?a:u,An}var Sn,lc;function Xh(){if(lc)return Sn;lc=1;var r=zt(),e=kr()(),t=Ll(),a=xt(),u;if(e){var c=r("RegExp.prototype.exec"),h={},n=function(){throw h},f={toString:n,valueOf:n};typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=n),u=function(N){if(!N||typeof N!="object")return!1;var T=a(N,"lastIndex"),I=T&&t(T,"value");if(!I)return!1;try{c(N,f)}catch(_){return _===h}}}else{var A=r("Object.prototype.toString"),x="[object RegExp]";u=function(N){return!N||typeof N!="object"&&typeof N!="function"?!1:A(N)===x}}return Sn=u,Sn}var Rn,hc;function Zh(){if(hc)return Rn;hc=1;var r=zt(),e=Xh(),t=r("RegExp.prototype.exec"),a=jt();return Rn=function(c){if(!e(c))throw new a("`regex` must be a RegExp");return function(n){return t(c,n)!==null}},Rn}var In,fc;function Yh(){if(fc)return In;fc=1;var r=zt(),e=Zh(),t=e(/^\s*(?:function)?\*/),a=kr()(),u=Dl(),c=r("Object.prototype.toString"),h=r("Function.prototype.toString"),n=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},f;return In=function(x){if(typeof x!="function")return!1;if(t(h(x)))return!0;if(!a){var S=c(x);return S==="[object GeneratorFunction]"}if(!u)return!1;if(typeof f=="undefined"){var N=n();f=N?u(N):!1}return u(x)===f},In}var Nn,dc;function Jh(){if(dc)return Nn;dc=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,t)}catch(y){y!==a&&(e=null)}else e=null;var u=/^\s*class\b/,c=function(m){try{var l=r.call(m);return u.test(l)}catch{return!1}},h=function(m){try{return c(m)?!1:(r.call(m),!0)}catch{return!1}},n=Object.prototype.toString,f="[object Object]",A="[object Function]",x="[object GeneratorFunction]",S="[object HTMLAllCollection]",N="[object HTML document.all class]",T="[object HTMLCollection]",I=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),R=function(){return!1};if(typeof document=="object"){var o=document.all;n.call(o)===n.call(document.all)&&(R=function(m){if((_||!m)&&(typeof m=="undefined"||typeof m=="object"))try{var l=n.call(m);return(l===S||l===N||l===T||l===f)&&m("")==null}catch{}return!1})}return Nn=e?function(m){if(R(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{e(m,null,t)}catch(l){if(l!==a)return!1}return!c(m)&&h(m)}:function(m){if(R(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(I)return h(m);if(c(m))return!1;var l=n.call(m);return l!==A&&l!==x&&!/^\[object HTML/.test(l)?!1:h(m)},Nn}var kn,pc;function Qh(){if(pc)return kn;pc=1;var r=Jh(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,a=function(f,A,x){for(var S=0,N=f.length;S<N;S++)t.call(f,S)&&(x==null?A(f[S],S,f):A.call(x,f[S],S,f))},u=function(f,A,x){for(var S=0,N=f.length;S<N;S++)x==null?A(f.charAt(S),S,f):A.call(x,f.charAt(S),S,f)},c=function(f,A,x){for(var S in f)t.call(f,S)&&(x==null?A(f[S],S,f):A.call(x,f[S],S,f))};function h(n){return e.call(n)==="[object Array]"}return kn=function(f,A,x){if(!r(A))throw new TypeError("iterator must be a function");var S;arguments.length>=3&&(S=x),h(f)?a(f,A,S):typeof f=="string"?u(f,A,S):c(f,A,S)},kn}var On,mc;function ef(){return mc||(mc=1,On=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),On}var Cn,wc;function tf(){if(wc)return Cn;wc=1;var r=ef(),e=typeof globalThis=="undefined"?Ie:globalThis;return Cn=function(){for(var a=[],u=0;u<r.length;u++)typeof e[r[u]]=="function"&&(a[a.length]=r[u]);return a},Cn}var Dn={exports:{}},Ln,gc;function rf(){if(gc)return Ln;gc=1;var r=Or(),e=Nl(),t=jt(),a=xt();return Ln=function(c,h,n){if(!c||typeof c!="object"&&typeof c!="function")throw new t("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,A=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,N=!!a&&a(c,h);if(r)r(c,h,{configurable:x===null&&N?N.configurable:!x,enumerable:f===null&&N?N.enumerable:!f,value:n,writable:A===null&&N?N.writable:!A});else if(S||!f&&!A&&!x)c[h]=n;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ln}var Pn,yc;function nf(){if(yc)return Pn;yc=1;var r=Or(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},Pn=e,Pn}var Fn,vc;function sf(){if(vc)return Fn;vc=1;var r=Pl(),e=rf(),t=nf()(),a=xt(),u=jt(),c=r("%Math.floor%");return Fn=function(n,f){if(typeof n!="function")throw new u("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||c(f)!==f)throw new u("`length` must be a positive 32-bit integer");var A=arguments.length>2&&!!arguments[2],x=!0,S=!0;if("length"in n&&a){var N=a(n,"length");N&&!N.configurable&&(x=!1),N&&!N.writable&&(S=!1)}return(x||S||!A)&&(t?e(n,"length",f,!0,!0):e(n,"length",f)),n},Fn}var Bn,_c;function af(){if(_c)return Bn;_c=1;var r=Wt(),e=uu(),t=Cl();return Bn=function(){return t(r,e,arguments)},Bn}var bc;function of(){return bc||(bc=1,function(r){var e=sf(),t=Or(),a=cu(),u=af();r.exports=function(h){var n=a(arguments),f=h.length-(arguments.length-1);return e(n,1+(f>0?f:0),!0)},t?t(r.exports,"apply",{value:u}):r.exports.apply=u}(Dn)),Dn.exports}var Un,Ec;function Fl(){if(Ec)return Un;Ec=1;var r=Qh(),e=tf(),t=of(),a=zt(),u=xt(),c=a("Object.prototype.toString"),h=kr()(),n=typeof globalThis=="undefined"?Ie:globalThis,f=e(),A=a("String.prototype.slice"),x=Object.getPrototypeOf,S=a("Array.prototype.indexOf",!0)||function(R,o){for(var y=0;y<R.length;y+=1)if(R[y]===o)return y;return-1},N={__proto__:null};h&&u&&x?r(f,function(_){var R=new n[_];if(Symbol.toStringTag in R){var o=x(R),y=u(o,Symbol.toStringTag);if(!y){var m=x(o);y=u(m,Symbol.toStringTag)}N["$"+_]=t(y.get)}}):r(f,function(_){var R=new n[_],o=R.slice||R.set;o&&(N["$"+_]=t(o))});var T=function(R){var o=!1;return r(N,function(y,m){if(!o)try{"$"+y(R)===m&&(o=A(m,1))}catch{}}),o},I=function(R){var o=!1;return r(N,function(y,m){if(!o)try{y(R),o=A(m,1)}catch{}}),o};return Un=function(R){if(!R||typeof R!="object")return!1;if(!h){var o=A(c(R),8,-1);return S(f,o)>-1?o:o!=="Object"?!1:I(R)}return u?T(R):null},Un}var Mn,xc;function uf(){if(xc)return Mn;xc=1;var r=Fl();return Mn=function(t){return!!r(t)},Mn}var Tc;function cf(){return Tc||(Tc=1,function(r){var e=$h(),t=Yh(),a=Fl(),u=uf();function c(p){return p.call.bind(p)}var h=typeof BigInt!="undefined",n=typeof Symbol!="undefined",f=c(Object.prototype.toString),A=c(Number.prototype.valueOf),x=c(String.prototype.valueOf),S=c(Boolean.prototype.valueOf);if(h)var N=c(BigInt.prototype.valueOf);if(n)var T=c(Symbol.prototype.valueOf);function I(p,B){if(typeof p!="object")return!1;try{return B(p),!0}catch{return!1}}r.isArgumentsObject=e,r.isGeneratorFunction=t,r.isTypedArray=u;function _(p){return typeof Promise!="undefined"&&p instanceof Promise||p!==null&&typeof p=="object"&&typeof p.then=="function"&&typeof p.catch=="function"}r.isPromise=_;function R(p){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(p):u(p)||$(p)}r.isArrayBufferView=R;function o(p){return a(p)==="Uint8Array"}r.isUint8Array=o;function y(p){return a(p)==="Uint8ClampedArray"}r.isUint8ClampedArray=y;function m(p){return a(p)==="Uint16Array"}r.isUint16Array=m;function l(p){return a(p)==="Uint32Array"}r.isUint32Array=l;function E(p){return a(p)==="Int8Array"}r.isInt8Array=E;function P(p){return a(p)==="Int16Array"}r.isInt16Array=P;function F(p){return a(p)==="Int32Array"}r.isInt32Array=F;function W(p){return a(p)==="Float32Array"}r.isFloat32Array=W;function k(p){return a(p)==="Float64Array"}r.isFloat64Array=k;function X(p){return a(p)==="BigInt64Array"}r.isBigInt64Array=X;function ue(p){return a(p)==="BigUint64Array"}r.isBigUint64Array=ue;function O(p){return f(p)==="[object Map]"}O.working=typeof Map!="undefined"&&O(new Map);function M(p){return typeof Map=="undefined"?!1:O.working?O(p):p instanceof Map}r.isMap=M;function g(p){return f(p)==="[object Set]"}g.working=typeof Set!="undefined"&&g(new Set);function q(p){return typeof Set=="undefined"?!1:g.working?g(p):p instanceof Set}r.isSet=q;function ee(p){return f(p)==="[object WeakMap]"}ee.working=typeof WeakMap!="undefined"&&ee(new WeakMap);function z(p){return typeof WeakMap=="undefined"?!1:ee.working?ee(p):p instanceof WeakMap}r.isWeakMap=z;function se(p){return f(p)==="[object WeakSet]"}se.working=typeof WeakSet!="undefined"&&se(new WeakSet);function Q(p){return se(p)}r.isWeakSet=Q;function le(p){return f(p)==="[object ArrayBuffer]"}le.working=typeof ArrayBuffer!="undefined"&&le(new ArrayBuffer);function V(p){return typeof ArrayBuffer=="undefined"?!1:le.working?le(p):p instanceof ArrayBuffer}r.isArrayBuffer=V;function D(p){return f(p)==="[object DataView]"}D.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&D(new DataView(new ArrayBuffer(1),0,1));function $(p){return typeof DataView=="undefined"?!1:D.working?D(p):p instanceof DataView}r.isDataView=$;var Z=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function te(p){return f(p)==="[object SharedArrayBuffer]"}function K(p){return typeof Z=="undefined"?!1:(typeof te.working=="undefined"&&(te.working=te(new Z)),te.working?te(p):p instanceof Z)}r.isSharedArrayBuffer=K;function v(p){return f(p)==="[object AsyncFunction]"}r.isAsyncFunction=v;function w(p){return f(p)==="[object Map Iterator]"}r.isMapIterator=w;function j(p){return f(p)==="[object Set Iterator]"}r.isSetIterator=j;function U(p){return f(p)==="[object Generator]"}r.isGeneratorObject=U;function C(p){return f(p)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=C;function L(p){return I(p,A)}r.isNumberObject=L;function J(p){return I(p,x)}r.isStringObject=J;function d(p){return I(p,S)}r.isBooleanObject=d;function Y(p){return h&&I(p,N)}r.isBigIntObject=Y;function b(p){return n&&I(p,T)}r.isSymbolObject=b;function i(p){return L(p)||J(p)||d(p)||Y(p)||b(p)}r.isBoxedPrimitive=i;function s(p){return typeof Uint8Array!="undefined"&&(V(p)||K(p))}r.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(p){Object.defineProperty(r,p,{enumerable:!1,value:function(){throw new Error(p+" is not supported in userland")}})})}(jr)),jr}var Hn,Ac;function lf(){return Ac||(Ac=1,Hn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),Hn}var Sc;function Bl(){return Sc||(Sc=1,function(r){var e=Object.getOwnPropertyDescriptors||function($){for(var Z=Object.keys($),te={},K=0;K<Z.length;K++)te[Z[K]]=Object.getOwnPropertyDescriptor($,Z[K]);return te},t=/%[sdj%]/g;r.format=function(D){if(!E(D)){for(var $=[],Z=0;Z<arguments.length;Z++)$.push(h(arguments[Z]));return $.join(" ")}for(var Z=1,te=arguments,K=te.length,v=String(D).replace(t,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}}),w=te[Z];Z<K;w=te[++Z])y(w)||!k(w)?v+=" "+w:v+=" "+h(w);return v},r.deprecate=function(D,$){if(typeof me!="undefined"&&me.noDeprecation===!0)return D;if(typeof me=="undefined")return function(){return r.deprecate(D,$).apply(this,arguments)};var Z=!1;function te(){if(!Z){if(me.throwDeprecation)throw new Error($);me.traceDeprecation?console.trace($):console.error($),Z=!0}return D.apply(this,arguments)}return te};var a={},u=/^$/;if(me.env.NODE_DEBUG){var c=me.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}r.debuglog=function(D){if(D=D.toUpperCase(),!a[D])if(u.test(D)){var $=me.pid;a[D]=function(){var Z=r.format.apply(r,arguments);console.error("%s %d: %s",D,$,Z)}}else a[D]=function(){};return a[D]};function h(D,$){var Z={seen:[],stylize:f};return arguments.length>=3&&(Z.depth=arguments[2]),arguments.length>=4&&(Z.colors=arguments[3]),o($)?Z.showHidden=$:$&&r._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=n),x(Z,D,Z.depth)}r.inspect=h,h.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]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(D,$){var Z=h.styles[$];return Z?"\x1B["+h.colors[Z][0]+"m"+D+"\x1B["+h.colors[Z][1]+"m":D}function f(D,$){return D}function A(D){var $={};return D.forEach(function(Z,te){$[Z]=!0}),$}function x(D,$,Z){if(D.customInspect&&$&&O($.inspect)&&$.inspect!==r.inspect&&!($.constructor&&$.constructor.prototype===$)){var te=$.inspect(Z,D);return E(te)||(te=x(D,te,Z)),te}var K=S(D,$);if(K)return K;var v=Object.keys($),w=A(v);if(D.showHidden&&(v=Object.getOwnPropertyNames($)),ue($)&&(v.indexOf("message")>=0||v.indexOf("description")>=0))return N($);if(v.length===0){if(O($)){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(ue($))return N($)}var U="",C=!1,L=["{","}"];if(R($)&&(C=!0,L=["[","]"]),O($)){var J=$.name?": "+$.name:"";U=" [Function"+J+"]"}if(W($)&&(U=" "+RegExp.prototype.toString.call($)),X($)&&(U=" "+Date.prototype.toUTCString.call($)),ue($)&&(U=" "+N($)),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 d;return C?d=T(D,$,Z,w,v):d=v.map(function(Y){return I(D,$,Z,w,Y,C)}),D.seen.pop(),_(d,U,L)}function S(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(l($))return D.stylize(""+$,"number");if(o($))return D.stylize(""+$,"boolean");if(y($))return D.stylize("null","null")}function N(D){return"["+Error.prototype.toString.call(D)+"]"}function T(D,$,Z,te,K){for(var v=[],w=0,j=$.length;w<j;++w)se($,String(w))?v.push(I(D,$,Z,te,String(w),!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 w,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")),se(te,K)||(w="["+K+"]"),j||(D.seen.indexOf(U.value)<0?(y(Z)?j=x(D,U.value,null):j=x(D,U.value,Z-1),j.indexOf(`
|
|
2
|
-
`)
|
|
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(w)){if(v&&K.match(/^\d+$/))return j;w=JSON.stringify(""+K),w.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(w=w.slice(1,-1),w=D.stylize(w,"name")):(w=w.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),w=D.stylize(w,"string"))}return w+": "+j}function _(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]}r.types=cf();function R(D){return Array.isArray(D)}r.isArray=R;function o(D){return typeof D=="boolean"}r.isBoolean=o;function y(D){return D===null}r.isNull=y;function m(D){return D==null}r.isNullOrUndefined=m;function l(D){return typeof D=="number"}r.isNumber=l;function E(D){return typeof D=="string"}r.isString=E;function P(D){return typeof D=="symbol"}r.isSymbol=P;function F(D){return D===void 0}r.isUndefined=F;function W(D){return k(D)&&g(D)==="[object RegExp]"}r.isRegExp=W,r.types.isRegExp=W;function k(D){return typeof D=="object"&&D!==null}r.isObject=k;function X(D){return k(D)&&g(D)==="[object Date]"}r.isDate=X,r.types.isDate=X;function ue(D){return k(D)&&(g(D)==="[object Error]"||D instanceof Error)}r.isError=ue,r.types.isNativeError=ue;function O(D){return typeof D=="function"}r.isFunction=O;function M(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}r.isPrimitive=M,r.isBuffer=lf();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(" ")}r.log=function(){console.log("%s - %s",z(),r.format.apply(r,arguments))},r.inherits=et(),r._extend=function(D,$){if(!$||!k($))return D;for(var Z=Object.keys($),te=Z.length;te--;)D[Z[te]]=$[Z[te]];return D};function se(D,$){return Object.prototype.hasOwnProperty.call(D,$)}var Q=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;r.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}),w=[],j=0;j<arguments.length;j++)w.push(arguments[j]);w.push(function(U,C){U?K(U):te(C)});try{$.apply(this,w)}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,e($))},r.promisify.custom=Q;function le(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,w=function(){return K.apply(v,arguments)};D.apply(this,Z).then(function(j){me.nextTick(w.bind(null,null,j))},function(j){me.nextTick(le.bind(null,j,w))})}return Object.setPrototypeOf($,Object.getPrototypeOf(D)),Object.defineProperties($,e(D)),$}r.callbackify=V}(Hr)),Hr}var jn,Rc;function hf(){if(Rc)return jn;Rc=1;function r(I,_){var R=Object.keys(I);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(I);_&&(o=o.filter(function(y){return Object.getOwnPropertyDescriptor(I,y).enumerable})),R.push.apply(R,o)}return R}function e(I){for(var _=1;_<arguments.length;_++){var R=arguments[_]!=null?arguments[_]:{};_%2?r(Object(R),!0).forEach(function(o){t(I,o,R[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(R)):r(Object(R)).forEach(function(o){Object.defineProperty(I,o,Object.getOwnPropertyDescriptor(R,o))})}return I}function t(I,_,R){return _=h(_),_ in I?Object.defineProperty(I,_,{value:R,enumerable:!0,configurable:!0,writable:!0}):I[_]=R,I}function a(I,_){if(!(I instanceof _))throw new TypeError("Cannot call a class as a function")}function u(I,_){for(var R=0;R<_.length;R++){var o=_[R];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(I,h(o.key),o)}}function c(I,_,R){return _&&u(I.prototype,_),Object.defineProperty(I,"prototype",{writable:!1}),I}function h(I){var _=n(I,"string");return typeof _=="symbol"?_:String(_)}function n(I,_){if(typeof I!="object"||I===null)return I;var R=I[Symbol.toPrimitive];if(R!==void 0){var o=R.call(I,_);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}var f=Nr(),A=f.Buffer,x=Bl(),S=x.inspect,N=S&&S.custom||"inspect";function T(I,_,R){A.prototype.copy.call(I,_,R)}return jn=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return c(I,[{key:"push",value:function(R){var o={data:R,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}},{key:"unshift",value:function(R){var o={data:R,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}},{key:"shift",value:function(){if(this.length!==0){var R=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,R}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(R){if(this.length===0)return"";for(var o=this.head,y=""+o.data;o=o.next;)y+=R+o.data;return y}},{key:"concat",value:function(R){if(this.length===0)return A.alloc(0);for(var o=A.allocUnsafe(R>>>0),y=this.head,m=0;y;)T(y.data,o,m),m+=y.data.length,y=y.next;return o}},{key:"consume",value:function(R,o){var y;return R<this.head.data.length?(y=this.head.data.slice(0,R),this.head.data=this.head.data.slice(R)):R===this.head.data.length?y=this.shift():y=o?this._getString(R):this._getBuffer(R),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(R){var o=this.head,y=1,m=o.data;for(R-=m.length;o=o.next;){var l=o.data,E=R>l.length?l.length:R;if(E===l.length?m+=l:m+=l.slice(0,R),R-=E,R===0){E===l.length?(++y,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=l.slice(E));break}++y}return this.length-=y,m}},{key:"_getBuffer",value:function(R){var o=A.allocUnsafe(R),y=this.head,m=1;for(y.data.copy(o),R-=y.data.length;y=y.next;){var l=y.data,E=R>l.length?l.length:R;if(l.copy(o,o.length-R,0,E),R-=E,R===0){E===l.length?(++m,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=l.slice(E));break}++m}return this.length-=m,o}},{key:N,value:function(R,o){return S(this,e(e({},o),{},{depth:0,customInspect:!1}))}}]),I}(),jn}var Wn,Ic;function Ul(){if(Ic)return Wn;Ic=1;function r(h,n){var f=this,A=this._readableState&&this._readableState.destroyed,x=this._writableState&&this._writableState.destroyed;return A||x?(n?n(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(u,this,h)):me.nextTick(u,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(S){!n&&S?f._writableState?f._writableState.errorEmitted?me.nextTick(t,f):(f._writableState.errorEmitted=!0,me.nextTick(e,f,S)):me.nextTick(e,f,S):n?(me.nextTick(t,f),n(S)):me.nextTick(t,f)}),this)}function e(h,n){u(h,n),t(h)}function t(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.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 u(h,n){h.emit("error",n)}function c(h,n){var f=h._readableState,A=h._writableState;f&&f.autoDestroy||A&&A.autoDestroy?h.destroy(n):h.emit("error",n)}return Wn={destroy:r,undestroy:a,errorOrDestroy:c},Wn}var zn={},Nc;function Tt(){if(Nc)return zn;Nc=1;function r(n,f){n.prototype=Object.create(f.prototype),n.prototype.constructor=n,n.__proto__=f}var e={};function t(n,f,A){A||(A=Error);function x(N,T,I){return typeof f=="string"?f:f(N,T,I)}var S=function(N){r(T,N);function T(I,_,R){return N.call(this,x(I,_,R))||this}return T}(A);S.prototype.name=A.name,S.prototype.code=n,e[n]=S}function a(n,f){if(Array.isArray(n)){var A=n.length;return n=n.map(function(x){return String(x)}),A>2?"one of ".concat(f," ").concat(n.slice(0,A-1).join(", "),", or ")+n[A-1]:A===2?"one of ".concat(f," ").concat(n[0]," or ").concat(n[1]):"of ".concat(f," ").concat(n[0])}else return"of ".concat(f," ").concat(String(n))}function u(n,f,A){return n.substr(0,f.length)===f}function c(n,f,A){return(A===void 0||A>n.length)&&(A=n.length),n.substring(A-f.length,A)===f}function h(n,f,A){return typeof A!="number"&&(A=0),A+f.length>n.length?!1:n.indexOf(f,A)!==-1}return t("ERR_INVALID_OPT_VALUE",function(n,f){return'The value "'+f+'" is invalid for option "'+n+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(n,f,A){var x;typeof f=="string"&&u(f,"not ")?(x="must not be",f=f.replace(/^not /,"")):x="must be";var S;if(c(n," argument"))S="The ".concat(n," ").concat(x," ").concat(a(f,"type"));else{var N=h(n,".")?"property":"argument";S='The "'.concat(n,'" ').concat(N," ").concat(x," ").concat(a(f,"type"))}return S+=". Received type ".concat(typeof A),S},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),zn.codes=e,zn}var Gn,kc;function Ml(){if(kc)return Gn;kc=1;var r=Tt().codes.ERR_INVALID_OPT_VALUE;function e(a,u,c){return a.highWaterMark!=null?a.highWaterMark:u?a[c]:null}function t(a,u,c,h){var n=e(u,h,c);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var f=h?c:"highWaterMark";throw new r(f,n)}return Math.floor(n)}return a.objectMode?16:16*1024}return Gn={getHighWaterMark:t},Gn}var Kn,Oc;function ff(){if(Oc)return Kn;Oc=1,Kn=r;function r(t,a){if(e("noDeprecation"))return t;var u=!1;function c(){if(!u){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),u=!0}return t.apply(this,arguments)}return c}function e(t){try{if(!Ie.localStorage)return!1}catch{return!1}var a=Ie.localStorage[t];return a==null?!1:String(a).toLowerCase()==="true"}return Kn}var qn,Cc;function Hl(){if(Cc)return qn;Cc=1,qn=W;function r(K){var v=this;this.next=null,this.entry=null,this.finish=function(){te(v,K)}}var e;W.WritableState=P;var t={deprecate:ff()},a=Sl(),u=Nr().Buffer,c=(typeof Ie!="undefined"?Ie:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function h(K){return u.from(K)}function n(K){return u.isBuffer(K)||K instanceof c}var f=Ul(),A=Ml(),x=A.getHighWaterMark,S=Tt().codes,N=S.ERR_INVALID_ARG_TYPE,T=S.ERR_METHOD_NOT_IMPLEMENTED,I=S.ERR_MULTIPLE_CALLBACK,_=S.ERR_STREAM_CANNOT_PIPE,R=S.ERR_STREAM_DESTROYED,o=S.ERR_STREAM_NULL_VALUES,y=S.ERR_STREAM_WRITE_AFTER_END,m=S.ERR_UNKNOWN_ENCODING,l=f.errorOrDestroy;et()(W,a);function E(){}function P(K,v,w){e=e||wt(),K=K||{},typeof w!="boolean"&&(w=v instanceof e),this.objectMode=!!K.objectMode,w&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=x(this,K,"writableHighWaterMark",w),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 r(this)}P.prototype.getBuffer=function(){for(var v=this.bufferedRequest,w=[];v;)w.push(v),v=v.next;return w},function(){try{Object.defineProperty(P.prototype,"buffer",{get:t.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){e=e||wt();var v=this instanceof e;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(){l(this,new _)};function k(K,v){var w=new y;l(K,w),me.nextTick(v,w)}function X(K,v,w,j){var U;return w===null?U=new o:typeof w!="string"&&!v.objectMode&&(U=new N("chunk",["string","Buffer"],w)),U?(l(K,U),me.nextTick(j,U),!1):!0}W.prototype.write=function(K,v,w){var j=this._writableState,U=!1,C=!j.objectMode&&n(K);return C&&!u.isBuffer(K)&&(K=h(K)),typeof v=="function"&&(w=v,v=null),C?v="buffer":v||(v=j.defaultEncoding),typeof w!="function"&&(w=E),j.ending?k(this,w):(C||X(this,j,K,w))&&(j.pendingcb++,U=O(this,j,C,K,v,w)),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 ue(K,v,w){return!K.objectMode&&K.decodeStrings!==!1&&typeof v=="string"&&(v=u.from(v,w)),v}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function O(K,v,w,j,U,C){if(!w){var L=ue(v,j,U);j!==L&&(w=!0,U="buffer",j=L)}var J=v.objectMode?1:j.length;v.length+=J;var d=v.length<v.highWaterMark;if(d||(v.needDrain=!0),v.writing||v.corked){var Y=v.lastBufferedRequest;v.lastBufferedRequest={chunk:j,encoding:U,isBuf:w,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 d}function M(K,v,w,j,U,C,L){v.writelen=j,v.writecb=L,v.writing=!0,v.sync=!0,v.destroyed?v.onwrite(new R("write")):w?K._writev(U,v.onwrite):K._write(U,C,v.onwrite),v.sync=!1}function g(K,v,w,j,U){--v.pendingcb,w?(me.nextTick(U,j),me.nextTick($,K,v),K._writableState.errorEmitted=!0,l(K,j)):(U(j),K._writableState.errorEmitted=!0,l(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 w=K._writableState,j=w.sync,U=w.writecb;if(typeof U!="function")throw new I;if(q(w),v)g(K,w,j,v,U);else{var C=le(w)||K.destroyed;!C&&!w.corked&&!w.bufferProcessing&&w.bufferedRequest&&Q(K,w),j?me.nextTick(z,K,w,C,U):z(K,w,C,U)}}function z(K,v,w,j){w||se(K,v),v.pendingcb--,j(),$(K,v)}function se(K,v){v.length===0&&v.needDrain&&(v.needDrain=!1,K.emit("drain"))}function Q(K,v){v.bufferProcessing=!0;var w=v.bufferedRequest;if(K._writev&&w&&w.next){var j=v.bufferedRequestCount,U=new Array(j),C=v.corkedRequestsFree;C.entry=w;for(var L=0,J=!0;w;)U[L]=w,w.isBuf||(J=!1),w=w.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 r(v),v.bufferedRequestCount=0}else{for(;w;){var d=w.chunk,Y=w.encoding,b=w.callback,i=v.objectMode?1:d.length;if(M(K,v,!1,i,d,Y,b),w=w.next,v.bufferedRequestCount--,v.writing)break}w===null&&(v.lastBufferedRequest=null)}v.bufferedRequest=w,v.bufferProcessing=!1}W.prototype._write=function(K,v,w){w(new T("_write()"))},W.prototype._writev=null,W.prototype.end=function(K,v,w){var j=this._writableState;return typeof K=="function"?(w=K,K=null,v=null):typeof v=="function"&&(w=v,v=null),K!=null&&this.write(K,v),j.corked&&(j.corked=1,this.uncork()),j.ending||Z(this,j,w),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function le(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function V(K,v){K._final(function(w){v.pendingcb--,w&&l(K,w),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,me.nextTick(V,K,v)):(v.prefinished=!0,K.emit("prefinish")))}function $(K,v){var w=le(v);if(w&&(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 w}function Z(K,v,w){v.ending=!0,$(K,v),w&&(v.finished?me.nextTick(w):K.once("finish",w)),v.ended=!0,K.writable=!1}function te(K,v,w){var j=K.entry;for(K.entry=null;j;){var U=j.callback;v.pendingcb--,U(w),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=f.destroy,W.prototype._undestroy=f.undestroy,W.prototype._destroy=function(K,v){v(K)},qn}var Vn,Dc;function wt(){if(Dc)return Vn;Dc=1;var r=Object.keys||function(A){var x=[];for(var S in A)x.push(S);return x};Vn=h;var e=jl(),t=Hl();et()(h,e);for(var a=r(t.prototype),u=0;u<a.length;u++){var c=a[u];h.prototype[c]||(h.prototype[c]=t.prototype[c])}function h(A){if(!(this instanceof h))return new h(A);e.call(this,A),t.call(this,A),this.allowHalfOpen=!0,A&&(A.readable===!1&&(this.readable=!1),A.writable===!1&&(this.writable=!1),A.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",n)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function n(){this._writableState.ended||me.nextTick(f,this)}function f(A){A.end()}return Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),Vn}var $n={},Jt={exports:{}};var Lc;function df(){return Lc||(Lc=1,function(r,e){var t=Nr(),a=t.Buffer;function u(h,n){for(var f in h)n[f]=h[f]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=t:(u(t,e),e.Buffer=c);function c(h,n,f){return a(h,n,f)}c.prototype=Object.create(a.prototype),u(a,c),c.from=function(h,n,f){if(typeof h=="number")throw new TypeError("Argument must not be a number");return a(h,n,f)},c.alloc=function(h,n,f){if(typeof h!="number")throw new TypeError("Argument must be a number");var A=a(h);return n!==void 0?typeof f=="string"?A.fill(n,f):A.fill(n):A.fill(0),A},c.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return a(h)},c.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(h)}}(Jt,Jt.exports)),Jt.exports}var Pc;function Ii(){if(Pc)return $n;Pc=1;var r=df().Buffer,e=r.isEncoding||function(o){switch(o=""+o,o&&o.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 t(o){if(!o)return"utf8";for(var y;;)switch(o){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 o;default:if(y)return;o=(""+o).toLowerCase(),y=!0}}function a(o){var y=t(o);if(typeof y!="string"&&(r.isEncoding===e||!e(o)))throw new Error("Unknown encoding: "+o);return y||o}$n.StringDecoder=u;function u(o){this.encoding=a(o);var y;switch(this.encoding){case"utf16le":this.text=S,this.end=N,y=4;break;case"utf8":this.fillLast=f,y=4;break;case"base64":this.text=T,this.end=I,y=3;break;default:this.write=_,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}u.prototype.write=function(o){if(o.length===0)return"";var y,m;if(this.lastNeed){if(y=this.fillLast(o),y===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<o.length?y?y+this.text(o,m):this.text(o,m):y||""},u.prototype.end=x,u.prototype.text=A,u.prototype.fillLast=function(o){if(this.lastNeed<=o.length)return o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,o.length),this.lastNeed-=o.length};function c(o){return o<=127?0:o>>5===6?2:o>>4===14?3:o>>3===30?4:o>>6===2?-1:-2}function h(o,y,m){var l=y.length-1;if(l<m)return 0;var E=c(y[l]);return E>=0?(E>0&&(o.lastNeed=E-1),E):--l<m||E===-2?0:(E=c(y[l]),E>=0?(E>0&&(o.lastNeed=E-2),E):--l<m||E===-2?0:(E=c(y[l]),E>=0?(E>0&&(E===2?E=0:o.lastNeed=E-3),E):0))}function n(o,y,m){if((y[0]&192)!==128)return o.lastNeed=0,"\uFFFD";if(o.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return o.lastNeed=1,"\uFFFD";if(o.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return o.lastNeed=2,"\uFFFD"}}function f(o){var y=this.lastTotal-this.lastNeed,m=n(this,o);if(m!==void 0)return m;if(this.lastNeed<=o.length)return o.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,y,0,o.length),this.lastNeed-=o.length}function A(o,y){var m=h(this,o,y);if(!this.lastNeed)return o.toString("utf8",y);this.lastTotal=m;var l=o.length-(m-this.lastNeed);return o.copy(this.lastChar,0,l),o.toString("utf8",y,l)}function x(o){var y=o&&o.length?this.write(o):"";return this.lastNeed?y+"\uFFFD":y}function S(o,y){if((o.length-y)%2===0){var m=o.toString("utf16le",y);if(m){var l=m.charCodeAt(m.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",y,o.length-1)}function N(o){var y=o&&o.length?this.write(o):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,m)}return y}function T(o,y){var m=(o.length-y)%3;return m===0?o.toString("base64",y):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",y,o.length-m))}function I(o){var y=o&&o.length?this.write(o):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function _(o){return o.toString(this.encoding)}function R(o){return o&&o.length?this.write(o):""}return $n}var Xn,Fc;function lu(){if(Fc)return Xn;Fc=1;var r=Tt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(c){var h=!1;return function(){if(!h){h=!0;for(var n=arguments.length,f=new Array(n),A=0;A<n;A++)f[A]=arguments[A];c.apply(this,f)}}}function t(){}function a(c){return c.setHeader&&typeof c.abort=="function"}function u(c,h,n){if(typeof h=="function")return u(c,null,h);h||(h={}),n=e(n||t);var f=h.readable||h.readable!==!1&&c.readable,A=h.writable||h.writable!==!1&&c.writable,x=function(){c.writable||N()},S=c._writableState&&c._writableState.finished,N=function(){A=!1,S=!0,f||n.call(c)},T=c._readableState&&c._readableState.endEmitted,I=function(){f=!1,T=!0,A||n.call(c)},_=function(m){n.call(c,m)},R=function(){var m;if(f&&!T)return(!c._readableState||!c._readableState.ended)&&(m=new r),n.call(c,m);if(A&&!S)return(!c._writableState||!c._writableState.ended)&&(m=new r),n.call(c,m)},o=function(){c.req.on("finish",N)};return a(c)?(c.on("complete",N),c.on("abort",R),c.req?o():c.on("request",o)):A&&!c._writableState&&(c.on("end",x),c.on("close",x)),c.on("end",I),c.on("finish",N),h.error!==!1&&c.on("error",_),c.on("close",R),function(){c.removeListener("complete",N),c.removeListener("abort",R),c.removeListener("request",o),c.req&&c.req.removeListener("finish",N),c.removeListener("end",x),c.removeListener("close",x),c.removeListener("finish",N),c.removeListener("end",I),c.removeListener("error",_),c.removeListener("close",R)}}return Xn=u,Xn}var Zn,Bc;function pf(){if(Bc)return Zn;Bc=1;var r;function e(m,l,E){return l=t(l),l in m?Object.defineProperty(m,l,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[l]=E,m}function t(m){var l=a(m,"string");return typeof l=="symbol"?l:String(l)}function a(m,l){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var P=E.call(m,l);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(m)}var u=lu(),c=Symbol("lastResolve"),h=Symbol("lastReject"),n=Symbol("error"),f=Symbol("ended"),A=Symbol("lastPromise"),x=Symbol("handlePromise"),S=Symbol("stream");function N(m,l){return{value:m,done:l}}function T(m){var l=m[c];if(l!==null){var E=m[S].read();E!==null&&(m[A]=null,m[c]=null,m[h]=null,l(N(E,!1)))}}function I(m){me.nextTick(T,m)}function _(m,l){return function(E,P){m.then(function(){if(l[f]){E(N(void 0,!0));return}l[x](E,P)},P)}}var R=Object.getPrototypeOf(function(){}),o=Object.setPrototypeOf((r={get stream(){return this[S]},next:function(){var l=this,E=this[n];if(E!==null)return Promise.reject(E);if(this[f])return Promise.resolve(N(void 0,!0));if(this[S].destroyed)return new Promise(function(k,X){me.nextTick(function(){l[n]?X(l[n]):k(N(void 0,!0))})});var P=this[A],F;if(P)F=new Promise(_(P,this));else{var W=this[S].read();if(W!==null)return Promise.resolve(N(W,!1));F=new Promise(this[x])}return this[A]=F,F}},e(r,Symbol.asyncIterator,function(){return this}),e(r,"return",function(){var l=this;return new Promise(function(E,P){l[S].destroy(null,function(F){if(F){P(F);return}E(N(void 0,!0))})})}),r),R),y=function(l){var E,P=Object.create(o,(E={},e(E,S,{value:l,writable:!0}),e(E,c,{value:null,writable:!0}),e(E,h,{value:null,writable:!0}),e(E,n,{value:null,writable:!0}),e(E,f,{value:l._readableState.endEmitted,writable:!0}),e(E,x,{value:function(W,k){var X=P[S].read();X?(P[A]=null,P[c]=null,P[h]=null,W(N(X,!1))):(P[c]=W,P[h]=k)},writable:!0}),E));return P[A]=null,u(l,function(F){if(F&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"){var W=P[h];W!==null&&(P[A]=null,P[c]=null,P[h]=null,W(F)),P[n]=F;return}var k=P[c];k!==null&&(P[A]=null,P[c]=null,P[h]=null,k(N(void 0,!0))),P[f]=!0}),l.on("readable",I.bind(null,P)),P};return Zn=y,Zn}var Yn,Uc;function mf(){return Uc||(Uc=1,Yn=function(){throw new Error("Readable.from is not available in the browser")}),Yn}var Jn,Mc;function jl(){if(Mc)return Jn;Mc=1,Jn=k;var r;k.ReadableState=W,au().EventEmitter;var e=function(L,J){return L.listeners(J).length},t=Sl(),a=Nr().Buffer,u=(typeof Ie!="undefined"?Ie:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function c(C){return a.from(C)}function h(C){return a.isBuffer(C)||C instanceof u}var n=Bl(),f;n&&n.debuglog?f=n.debuglog("stream"):f=function(){};var A=hf(),x=Ul(),S=Ml(),N=S.getHighWaterMark,T=Tt().codes,I=T.ERR_INVALID_ARG_TYPE,_=T.ERR_STREAM_PUSH_AFTER_EOF,R=T.ERR_METHOD_NOT_IMPLEMENTED,o=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,m,l;et()(k,t);var E=x.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){r=r||wt(),C=C||{},typeof J!="boolean"&&(J=L instanceof r),this.objectMode=!!C.objectMode,J&&(this.objectMode=this.objectMode||!!C.readableObjectMode),this.highWaterMark=N(this,C,"readableHighWaterMark",J),this.buffer=new A,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=Ii().StringDecoder),this.decoder=new y(C.encoding),this.encoding=C.encoding)}function k(C){if(r=r||wt(),!(this instanceof k))return new k(C);var L=this instanceof r;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)),t.call(this)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),k.prototype.destroy=x.destroy,k.prototype._undestroy=x.undestroy,k.prototype._destroy=function(C,L){L(C)},k.prototype.push=function(C,L){var J=this._readableState,d;return J.objectMode?d=!0:typeof C=="string"&&(L=L||J.defaultEncoding,L!==J.encoding&&(C=a.from(C,L),L=""),d=!0),X(this,C,L,!1,d)},k.prototype.unshift=function(C){return X(this,C,null,!0,!1)};function X(C,L,J,d,Y){f("readableAddChunk",L);var b=C._readableState;if(L===null)b.reading=!1,ee(C,b);else{var i;if(Y||(i=O(b,L)),i)E(C,i);else if(b.objectMode||L&&L.length>0)if(typeof L!="string"&&!b.objectMode&&Object.getPrototypeOf(L)!==a.prototype&&(L=c(L)),d)b.endEmitted?E(C,new o):ue(C,b,L,!0);else if(b.ended)E(C,new _);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!J?(L=b.decoder.write(L),b.objectMode||L.length!==0?ue(C,b,L,!1):Q(C,b)):ue(C,b,L,!1)}else d||(b.reading=!1,Q(C,b))}return!b.ended&&(b.length<b.highWaterMark||b.length===0)}function ue(C,L,J,d){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,C.emit("data",J)):(L.length+=L.objectMode?1:J.length,d?L.buffer.unshift(J):L.buffer.push(J),L.needReadable&&z(C)),Q(C,L)}function O(C,L){var J;return!h(L)&&typeof L!="string"&&L!==void 0&&!C.objectMode&&(J=new I("chunk",["string","Buffer","Uint8Array"],L)),J}k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(C){y||(y=Ii().StringDecoder);var L=new y(C);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,d="";J!==null;)d+=L.write(J.data),J=J.next;return this._readableState.buffer.clear(),d!==""&&this._readableState.buffer.push(d),this._readableState.length=d.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))}k.prototype.read=function(C){f("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 f("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?w(this):z(this),null;if(C=q(C,L),C===0&&L.ended)return L.length===0&&w(this),null;var d=L.needReadable;f("need readable",d),(L.length===0||L.length-C<L.highWaterMark)&&(d=!0,f("length less than watermark",d)),L.ended||L.reading?(d=!1,f("reading or ended",d)):d&&(f("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&&w(this)),Y!==null&&this.emit("data",Y),Y};function ee(C,L){if(f("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,se(C)))}}function z(C){var L=C._readableState;f("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(f("emitReadable",L.flowing),L.emittedReadable=!0,me.nextTick(se,C))}function se(C){var L=C._readableState;f("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,me.nextTick(le,C,L))}function le(C,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var J=L.length;if(f("maybeReadMore read 0"),C.read(0),J===L.length)break}L.readingMore=!1}k.prototype._read=function(C){E(this,new R("_read()"))},k.prototype.pipe=function(C,L){var J=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=C;break;case 1:d.pipes=[d.pipes,C];break;default:d.pipes.push(C);break}d.pipesCount+=1,f("pipe count=%d opts=%j",d.pipesCount,L);var Y=(!L||L.end!==!1)&&C!==me.stdout&&C!==me.stderr,b=Y?s:he;d.endEmitted?me.nextTick(b):J.once("end",b),C.on("unpipe",i);function i(de,pe){f("onunpipe"),de===J&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,G())}function s(){f("onend"),C.end()}var p=V(J);C.on("drain",p);var B=!1;function G(){f("cleanup"),C.removeListener("close",oe),C.removeListener("finish",ae),C.removeListener("drain",p),C.removeListener("error",ie),C.removeListener("unpipe",i),J.removeListener("end",s),J.removeListener("end",he),J.removeListener("data",H),B=!0,d.awaitDrain&&(!C._writableState||C._writableState.needDrain)&&p()}J.on("data",H);function H(de){f("ondata");var pe=C.write(de);f("dest.write",pe),pe===!1&&((d.pipesCount===1&&d.pipes===C||d.pipesCount>1&&U(d.pipes,C)!==-1)&&!B&&(f("false write response, pause",d.awaitDrain),d.awaitDrain++),J.pause())}function ie(de){f("onerror",de),he(),C.removeListener("error",ie),e(C,"error")===0&&E(C,de)}F(C,"error",ie);function oe(){C.removeListener("finish",ae),he()}C.once("close",oe);function ae(){f("onfinish"),C.removeListener("close",oe),he()}C.once("finish",ae);function he(){f("unpipe"),J.unpipe(C)}return C.emit("pipe",J),d.flowing||(f("pipe resume"),J.resume()),C};function V(C){return function(){var J=C._readableState;f("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&e(C,"data")&&(J.flowing=!0,K(C))}}k.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 d=L.pipes,Y=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var b=0;b<Y;b++)d[b].emit("unpipe",this,{hasUnpiped:!1});return this}var i=U(L.pipes,C);return i===-1?this:(L.pipes.splice(i,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),C.emit("unpipe",this,J),this)},k.prototype.on=function(C,L){var J=t.prototype.on.call(this,C,L),d=this._readableState;return C==="data"?(d.readableListening=this.listenerCount("readable")>0,d.flowing!==!1&&this.resume()):C==="readable"&&!d.endEmitted&&!d.readableListening&&(d.readableListening=d.needReadable=!0,d.flowing=!1,d.emittedReadable=!1,f("on readable",d.length,d.reading),d.length?z(this):d.reading||me.nextTick($,this)),J},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(C,L){var J=t.prototype.removeListener.call(this,C,L);return C==="readable"&&me.nextTick(D,this),J},k.prototype.removeAllListeners=function(C){var L=t.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&me.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){f("readable nexttick read 0"),C.read(0)}k.prototype.resume=function(){var C=this._readableState;return C.flowing||(f("resume"),C.flowing=!C.readableListening,Z(this,C)),C.paused=!1,this};function Z(C,L){L.resumeScheduled||(L.resumeScheduled=!0,me.nextTick(te,C,L))}function te(C,L){f("resume",L.reading),L.reading||C.read(0),L.resumeScheduled=!1,C.emit("resume"),K(C),L.flowing&&!L.reading&&C.read(0)}k.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(C){var L=C._readableState;for(f("flow",L.flowing);L.flowing&&C.read()!==null;);}k.prototype.wrap=function(C){var L=this,J=this._readableState,d=!1;C.on("end",function(){if(f("wrapped end"),J.decoder&&!J.ended){var i=J.decoder.end();i&&i.length&&L.push(i)}L.push(null)}),C.on("data",function(i){if(f("wrapped data"),J.decoder&&(i=J.decoder.write(i)),!(J.objectMode&&i==null)&&!(!J.objectMode&&(!i||!i.length))){var s=L.push(i);s||(d=!0,C.pause())}});for(var Y in C)this[Y]===void 0&&typeof C[Y]=="function"&&(this[Y]=function(s){return function(){return C[s].apply(C,arguments)}}(Y));for(var b=0;b<P.length;b++)C.on(P[b],this.emit.bind(this,P[b]));return this._read=function(i){f("wrapped _read",i),d&&(d=!1,C.resume())},this},typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=pf()),m(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),k._fromList=v,Object.defineProperty(k.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 w(C){var L=C._readableState;f("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,me.nextTick(j,L,C))}function j(C,L){if(f("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"&&(k.from=function(C,L){return l===void 0&&(l=mf()),l(k,C,L)});function U(C,L){for(var J=0,d=C.length;J<d;J++)if(C[J]===L)return J;return-1}return Jn}var Qn,Hc;function Wl(){if(Hc)return Qn;Hc=1,Qn=n;var r=Tt().codes,e=r.ERR_METHOD_NOT_IMPLEMENTED,t=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=r.ERR_TRANSFORM_WITH_LENGTH_0,c=wt();et()(n,c);function h(x,S){var N=this._transformState;N.transforming=!1;var T=N.writecb;if(T===null)return this.emit("error",new t);N.writechunk=null,N.writecb=null,S!=null&&this.push(S),T(x);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function n(x){if(!(this instanceof n))return new n(x);c.call(this,x),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform=="function"&&(this._transform=x.transform),typeof x.flush=="function"&&(this._flush=x.flush)),this.on("prefinish",f)}function f(){var x=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,N){A(x,S,N)}):A(this,null,null)}n.prototype.push=function(x,S){return this._transformState.needTransform=!1,c.prototype.push.call(this,x,S)},n.prototype._transform=function(x,S,N){N(new e("_transform()"))},n.prototype._write=function(x,S,N){var T=this._transformState;if(T.writecb=N,T.writechunk=x,T.writeencoding=S,!T.transforming){var I=this._readableState;(T.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},n.prototype._read=function(x){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},n.prototype._destroy=function(x,S){c.prototype._destroy.call(this,x,function(N){S(N)})};function A(x,S,N){if(S)return x.emit("error",S);if(N!=null&&x.push(N),x._writableState.length)throw new u;if(x._transformState.transforming)throw new a;return x.push(null)}return Qn}var ei,jc;function wf(){if(jc)return ei;jc=1,ei=e;var r=Wl();et()(e,r);function e(t){if(!(this instanceof e))return new e(t);r.call(this,t)}return e.prototype._transform=function(t,a,u){u(null,t)},ei}var ti,Wc;function gf(){if(Wc)return ti;Wc=1;var r;function e(N){var T=!1;return function(){T||(T=!0,N.apply(void 0,arguments))}}var t=Tt().codes,a=t.ERR_MISSING_ARGS,u=t.ERR_STREAM_DESTROYED;function c(N){if(N)throw N}function h(N){return N.setHeader&&typeof N.abort=="function"}function n(N,T,I,_){_=e(_);var R=!1;N.on("close",function(){R=!0}),r===void 0&&(r=lu()),r(N,{readable:T,writable:I},function(y){if(y)return _(y);R=!0,_()});var o=!1;return function(y){if(!R&&!o){if(o=!0,h(N))return N.abort();if(typeof N.destroy=="function")return N.destroy();_(y||new u("pipe"))}}}function f(N){N()}function A(N,T){return N.pipe(T)}function x(N){return!N.length||typeof N[N.length-1]!="function"?c:N.pop()}function S(){for(var N=arguments.length,T=new Array(N),I=0;I<N;I++)T[I]=arguments[I];var _=x(T);if(Array.isArray(T[0])&&(T=T[0]),T.length<2)throw new a("streams");var R,o=T.map(function(y,m){var l=m<T.length-1,E=m>0;return n(y,l,E,function(P){R||(R=P),P&&o.forEach(f),!l&&(o.forEach(f),_(R))})});return T.reduce(A)}return ti=S,ti}var ri,zc;function hu(){if(zc)return ri;zc=1,ri=t;var r=au().EventEmitter,e=et();e(t,r),t.Readable=jl(),t.Writable=Hl(),t.Duplex=wt(),t.Transform=Wl(),t.PassThrough=wf(),t.finished=lu(),t.pipeline=gf(),t.Stream=t;function t(){r.call(this)}return t.prototype.pipe=function(a,u){var c=this;function h(T){a.writable&&a.write(T)===!1&&c.pause&&c.pause()}c.on("data",h);function n(){c.readable&&c.resume&&c.resume()}a.on("drain",n),!a._isStdio&&(!u||u.end!==!1)&&(c.on("end",A),c.on("close",x));var f=!1;function A(){f||(f=!0,a.end())}function x(){f||(f=!0,typeof a.destroy=="function"&&a.destroy())}function S(T){if(N(),r.listenerCount(this,"error")===0)throw T}c.on("error",S),a.on("error",S);function N(){c.removeListener("data",h),a.removeListener("drain",n),c.removeListener("end",A),c.removeListener("close",x),c.removeListener("error",S),a.removeListener("error",S),c.removeListener("end",N),c.removeListener("close",N),a.removeListener("close",N)}return c.on("end",N),c.on("close",N),a.on("close",N),a.emit("pipe",c),a},ri}var Gc;function yf(){return Gc||(Gc=1,function(r){(function(e){e.parser=function(v,w){return new a(v,w)},e.SAXParser=a,e.SAXStream=x,e.createStream=A,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(v,w){if(!(this instanceof a))return new a(v,w);var j=this;c(j),j.q=j.c="",j.bufferCheckPosition=e.MAX_BUFFER_LENGTH,j.opt=w||{},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=k.BEGIN,j.strictEntities=j.opt.strictEntities,j.ENTITIES=j.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),j.attribList=[],j.opt.xmlns&&(j.ns=Object.create(_)),j.opt.unquotedAttributeValues===void 0&&(j.opt.unquotedAttributeValues=!v),j.trackPosition=j.opt.position!==!1,j.trackPosition&&(j.position=j.line=j.column=0),ue(j,"onready")}Object.create||(Object.create=function(v){function w(){}w.prototype=v;var j=new w;return j}),Object.keys||(Object.keys=function(v){var w=[];for(var j in v)v.hasOwnProperty(j)&&w.push(j);return w});function u(v){for(var w=Math.max(e.MAX_BUFFER_LENGTH,10),j=0,U=0,C=t.length;U<C;U++){var L=v[t[U]].length;if(L>w)switch(t[U]){case"textNode":M(v);break;case"cdata":O(v,"oncdata",v.cdata),v.cdata="";break;case"script":O(v,"onscript",v.script),v.script="";break;default:q(v,"Max buffer length exceeded: "+t[U])}j=Math.max(j,L)}var J=e.MAX_BUFFER_LENGTH-j;v.bufferCheckPosition=J+v.position}function c(v){for(var w=0,j=t.length;w<j;w++)v[t[w]]=""}function h(v){M(v),v.cdata!==""&&(O(v,"oncdata",v.cdata),v.cdata=""),v.script!==""&&(O(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(){h(this)}};var n;try{n=hu().Stream}catch{n=function(){}}n||(n=function(){});var f=e.EVENTS.filter(function(v){return v!=="error"&&v!=="end"});function A(v,w){return new x(v,w)}function x(v,w){if(!(this instanceof x))return new x(v,w);n.apply(this),this._parser=new a(v,w),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,f.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})})}x.prototype=Object.create(n.prototype,{constructor:{value:x}}),x.prototype.write=function(v){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(v)){if(!this._decoder){var w=Ii().StringDecoder;this._decoder=new w("utf8")}v=this._decoder.write(v)}return this._parser.write(v.toString()),this.emit("data",v),!0},x.prototype.end=function(v){return v&&v.length&&this.write(v),this._parser.end(),!0},x.prototype.on=function(v,w){var j=this;return!j._parser["on"+v]&&f.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)}),n.prototype.on.call(j,v,w)};var S="[CDATA[",N="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",_={xml:T,xmlns:I},R=/[:_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]/,o=/[:_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 l(v){return v===" "||v===`
|
|
11
|
-
`||v==="\r"||v===" "}function E(v){return v==='"'||v==="'"}function P(v){return v===">"||l(v)}function F(v,w){return v.test(w)}function W(v,w){return!F(v,w)}var k=0;e.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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(e.ENTITIES).forEach(function(v){var w=e.ENTITIES[v],j=typeof w=="number"?String.fromCharCode(w):w;e.ENTITIES[v]=j});for(var X in e.STATE)e.STATE[e.STATE[X]]=X;k=e.STATE;function ue(v,w,j){v[w]&&v[w](j)}function O(v,w,j){v.textNode&&M(v),ue(v,w,j)}function M(v){v.textNode=g(v.opt,v.textNode),v.textNode&&ue(v,"ontext",v.textNode),v.textNode=""}function g(v,w){return v.trim&&(w=w.trim()),v.normalize&&(w=w.replace(/\s+/g," ")),w}function q(v,w){return M(v),v.trackPosition&&(w+=`
|
|
12
|
-
Line: `+v.line+`
|
|
13
|
-
Column: `+v.column+`
|
|
14
|
-
Char: `+v.c),w=new Error(w),v.error=w,ue(v,"onerror",w),v}function ee(v){return v.sawRoot&&!v.closedRoot&&z(v,"Unclosed root tag"),v.state!==k.BEGIN&&v.state!==k.BEGIN_WHITESPACE&&v.state!==k.TEXT&&q(v,"Unexpected end"),M(v),v.c="",v.closed=!0,ue(v,"onend"),a.call(v,v.strict,v.opt),v}function z(v,w){if(typeof v!="object"||!(v instanceof a))throw new Error("bad call to strictFail");v.strict&&q(v,w)}function se(v){v.strict||(v.tagName=v.tagName[v.looseCase]());var w=v.tags[v.tags.length-1]||v,j=v.tag={name:v.tagName,attributes:{}};v.opt.xmlns&&(j.ns=w.ns),v.attribList.length=0,O(v,"onopentagstart",j)}function Q(v,w){var j=v.indexOf(":"),U=j<0?["",v]:v.split(":"),C=U[0],L=U[1];return w&&v==="xmlns"&&(C="xmlns",L=""),{prefix:C,local:L}}function le(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 w=Q(v.attribName,!0),j=w.prefix,U=w.local;if(j==="xmlns")if(U==="xml"&&v.attribValue!==T)z(v,"xml: prefix must be bound to "+T+`
|
|
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,O(v,"onattribute",{name:v.attribName,value:v.attribValue});v.attribName=v.attribValue=""}function V(v,w){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){O(v,"onopennamespace",{prefix:H,uri:j.ns[H]})});for(var L=0,J=v.attribList.length;L<J;L++){var d=v.attribList[L],Y=d[0],b=d[1],i=Q(Y,!0),s=i.prefix,p=i.local,B=s===""?"":j.ns[s]||"",G={name:Y,value:b,prefix:s,local:p,uri:B};s&&s!=="xmlns"&&!B&&(z(v,"Unbound namespace prefix: "+JSON.stringify(s)),G.uri=s),v.tag.attributes[Y]=G,O(v,"onattribute",G)}v.attribList.length=0}v.tag.isSelfClosing=!!w,v.sawRoot=!0,v.tags.push(v.tag),O(v,"onopentag",v.tag),w||(!v.noscript&&v.tagName.toLowerCase()==="script"?v.state=k.SCRIPT:v.state=k.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=k.TEXT;return}if(v.script){if(v.tagName!=="script"){v.script+="</"+v.tagName+">",v.tagName="",v.state=k.SCRIPT;return}O(v,"onscript",v.script),v.script=""}var w=v.tags.length,j=v.tagName;v.strict||(j=j[v.looseCase]());for(var U=j;w--;){var C=v.tags[w];if(C.name!==U)z(v,"Unexpected close tag");else break}if(w<0){z(v,"Unmatched closing tag: "+v.tagName),v.textNode+="</"+v.tagName+">",v.state=k.TEXT;return}v.tagName=j;for(var L=v.tags.length;L-- >w;){var J=v.tag=v.tags.pop();v.tagName=v.tag.name,O(v,"onclosetag",v.tagName);var d={};for(var Y in J.ns)d[Y]=J.ns[Y];var b=v.tags[v.tags.length-1]||v;v.opt.xmlns&&J.ns!==b.ns&&Object.keys(J.ns).forEach(function(i){var s=J.ns[i];O(v,"onclosenamespace",{prefix:i,uri:s})})}w===0&&(v.closedRoot=!0),v.tagName=v.attribValue=v.attribName="",v.attribList.length=0,v.state=k.TEXT}function $(v){var w=v.entity,j=w.toLowerCase(),U,C="";return v.ENTITIES[w]?v.ENTITIES[w]:v.ENTITIES[j]?v.ENTITIES[j]:(w=j,w.charAt(0)==="#"&&(w.charAt(1)==="x"?(w=w.slice(2),U=parseInt(w,16),C=U.toString(16)):(w=w.slice(1),U=parseInt(w,10),C=U.toString(10))),w=w.replace(/^0+/,""),isNaN(U)||C.toLowerCase()!==w?(z(v,"Invalid character entity"),"&"+v.entity+";"):String.fromCodePoint(U))}function Z(v,w){w==="<"?(v.state=k.OPEN_WAKA,v.startTagPosition=v.position):l(w)||(z(v,"Non-whitespace before first tag."),v.textNode=w,v.state=k.TEXT)}function te(v,w){var j="";return w<v.length&&(j=v.charAt(w)),j}function K(v){var w=this;if(this.error)throw this.error;if(w.closed)return q(w,"Cannot write after close. Assign an onready handler.");if(v===null)return ee(w);typeof v=="object"&&(v=v.toString());for(var j=0,U="";U=te(v,j++),w.c=U,!!U;)switch(w.trackPosition&&(w.position++,U===`
|
|
17
|
-
`?(w.line++,w.column=0):w.column++),w.state){case k.BEGIN:if(w.state=k.BEGIN_WHITESPACE,U==="\uFEFF")continue;Z(w,U);continue;case k.BEGIN_WHITESPACE:Z(w,U);continue;case k.TEXT:if(w.sawRoot&&!w.closedRoot){for(var C=j-1;U&&U!=="<"&&U!=="&";)U=te(v,j++),U&&w.trackPosition&&(w.position++,U===`
|
|
18
|
-
`?(w.line++,w.column=0):w.column++);w.textNode+=v.substring(C,j-1)}U==="<"&&!(w.sawRoot&&w.closedRoot&&!w.strict)?(w.state=k.OPEN_WAKA,w.startTagPosition=w.position):(!l(U)&&(!w.sawRoot||w.closedRoot)&&z(w,"Text data outside of root node."),U==="&"?w.state=k.TEXT_ENTITY:w.textNode+=U);continue;case k.SCRIPT:U==="<"?w.state=k.SCRIPT_ENDING:w.script+=U;continue;case k.SCRIPT_ENDING:U==="/"?w.state=k.CLOSE_TAG:(w.script+="<"+U,w.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(U==="!")w.state=k.SGML_DECL,w.sgmlDecl="";else if(!l(U))if(F(R,U))w.state=k.OPEN_TAG,w.tagName=U;else if(U==="/")w.state=k.CLOSE_TAG,w.tagName="";else if(U==="?")w.state=k.PROC_INST,w.procInstName=w.procInstBody="";else{if(z(w,"Unencoded <"),w.startTagPosition+1<w.position){var L=w.position-w.startTagPosition;U=new Array(L).join(" ")+U}w.textNode+="<"+U,w.state=k.TEXT}continue;case k.SGML_DECL:if(w.sgmlDecl+U==="--"){w.state=k.COMMENT,w.comment="",w.sgmlDecl="";continue}w.doctype&&w.doctype!==!0&&w.sgmlDecl?(w.state=k.DOCTYPE_DTD,w.doctype+="<!"+w.sgmlDecl+U,w.sgmlDecl=""):(w.sgmlDecl+U).toUpperCase()===S?(O(w,"onopencdata"),w.state=k.CDATA,w.sgmlDecl="",w.cdata=""):(w.sgmlDecl+U).toUpperCase()===N?(w.state=k.DOCTYPE,(w.doctype||w.sawRoot)&&z(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):U===">"?(O(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=k.TEXT):(E(U)&&(w.state=k.SGML_DECL_QUOTED),w.sgmlDecl+=U);continue;case k.SGML_DECL_QUOTED:U===w.q&&(w.state=k.SGML_DECL,w.q=""),w.sgmlDecl+=U;continue;case k.DOCTYPE:U===">"?(w.state=k.TEXT,O(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=U,U==="["?w.state=k.DOCTYPE_DTD:E(U)&&(w.state=k.DOCTYPE_QUOTED,w.q=U));continue;case k.DOCTYPE_QUOTED:w.doctype+=U,U===w.q&&(w.q="",w.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:U==="]"?(w.doctype+=U,w.state=k.DOCTYPE):U==="<"?(w.state=k.OPEN_WAKA,w.startTagPosition=w.position):E(U)?(w.doctype+=U,w.state=k.DOCTYPE_DTD_QUOTED,w.q=U):w.doctype+=U;continue;case k.DOCTYPE_DTD_QUOTED:w.doctype+=U,U===w.q&&(w.state=k.DOCTYPE_DTD,w.q="");continue;case k.COMMENT:U==="-"?w.state=k.COMMENT_ENDING:w.comment+=U;continue;case k.COMMENT_ENDING:U==="-"?(w.state=k.COMMENT_ENDED,w.comment=g(w.opt,w.comment),w.comment&&O(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+U,w.state=k.COMMENT);continue;case k.COMMENT_ENDED:U!==">"?(z(w,"Malformed comment"),w.comment+="--"+U,w.state=k.COMMENT):w.doctype&&w.doctype!==!0?w.state=k.DOCTYPE_DTD:w.state=k.TEXT;continue;case k.CDATA:U==="]"?w.state=k.CDATA_ENDING:w.cdata+=U;continue;case k.CDATA_ENDING:U==="]"?w.state=k.CDATA_ENDING_2:(w.cdata+="]"+U,w.state=k.CDATA);continue;case k.CDATA_ENDING_2:U===">"?(w.cdata&&O(w,"oncdata",w.cdata),O(w,"onclosecdata"),w.cdata="",w.state=k.TEXT):U==="]"?w.cdata+="]":(w.cdata+="]]"+U,w.state=k.CDATA);continue;case k.PROC_INST:U==="?"?w.state=k.PROC_INST_ENDING:l(U)?w.state=k.PROC_INST_BODY:w.procInstName+=U;continue;case k.PROC_INST_BODY:if(!w.procInstBody&&l(U))continue;U==="?"?w.state=k.PROC_INST_ENDING:w.procInstBody+=U;continue;case k.PROC_INST_ENDING:U===">"?(O(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=k.TEXT):(w.procInstBody+="?"+U,w.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:F(o,U)?w.tagName+=U:(se(w),U===">"?V(w):U==="/"?w.state=k.OPEN_TAG_SLASH:(l(U)||z(w,"Invalid character in tag name"),w.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:U===">"?(V(w,!0),D(w)):(z(w,"Forward-slash in opening tag not followed by >"),w.state=k.ATTRIB);continue;case k.ATTRIB:if(l(U))continue;U===">"?V(w):U==="/"?w.state=k.OPEN_TAG_SLASH:F(R,U)?(w.attribName=U,w.attribValue="",w.state=k.ATTRIB_NAME):z(w,"Invalid attribute name");continue;case k.ATTRIB_NAME:U==="="?w.state=k.ATTRIB_VALUE:U===">"?(z(w,"Attribute without value"),w.attribValue=w.attribName,le(w),V(w)):l(U)?w.state=k.ATTRIB_NAME_SAW_WHITE:F(o,U)?w.attribName+=U:z(w,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(U==="=")w.state=k.ATTRIB_VALUE;else{if(l(U))continue;z(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",O(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",U===">"?V(w):F(R,U)?(w.attribName=U,w.state=k.ATTRIB_NAME):(z(w,"Invalid attribute name"),w.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(l(U))continue;E(U)?(w.q=U,w.state=k.ATTRIB_VALUE_QUOTED):(w.opt.unquotedAttributeValues||q(w,"Unquoted attribute value"),w.state=k.ATTRIB_VALUE_UNQUOTED,w.attribValue=U);continue;case k.ATTRIB_VALUE_QUOTED:if(U!==w.q){U==="&"?w.state=k.ATTRIB_VALUE_ENTITY_Q:w.attribValue+=U;continue}le(w),w.q="",w.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:l(U)?w.state=k.ATTRIB:U===">"?V(w):U==="/"?w.state=k.OPEN_TAG_SLASH:F(R,U)?(z(w,"No whitespace between attributes"),w.attribName=U,w.attribValue="",w.state=k.ATTRIB_NAME):z(w,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!P(U)){U==="&"?w.state=k.ATTRIB_VALUE_ENTITY_U:w.attribValue+=U;continue}le(w),U===">"?V(w):w.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(w.tagName)U===">"?D(w):F(o,U)?w.tagName+=U:w.script?(w.script+="</"+w.tagName,w.tagName="",w.state=k.SCRIPT):(l(U)||z(w,"Invalid tagname in closing tag"),w.state=k.CLOSE_TAG_SAW_WHITE);else{if(l(U))continue;W(R,U)?w.script?(w.script+="</"+U,w.state=k.SCRIPT):z(w,"Invalid tagname in closing tag."):w.tagName=U}continue;case k.CLOSE_TAG_SAW_WHITE:if(l(U))continue;U===">"?D(w):z(w,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var J,d;switch(w.state){case k.TEXT_ENTITY:J=k.TEXT,d="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:J=k.ATTRIB_VALUE_QUOTED,d="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:J=k.ATTRIB_VALUE_UNQUOTED,d="attribValue";break}if(U===";"){var Y=$(w);w.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Y)?(w.entity="",w.state=J,w.write(Y)):(w[d]+=Y,w.entity="",w.state=J)}else F(w.entity.length?m:y,U)?w.entity+=U:(z(w,"Invalid character in entity name"),w[d]+="&"+w.entity+U,w.entity="",w.state=J);continue;default:throw new Error(w,"Unknown state: "+w.state)}return w.position>=w.bufferCheckPosition&&u(w),w}String.fromCodePoint||function(){var v=String.fromCharCode,w=Math.floor,j=function(){var U=16384,C=[],L,J,d=-1,Y=arguments.length;if(!Y)return"";for(var b="";++d<Y;){var i=Number(arguments[d]);if(!isFinite(i)||i<0||i>1114111||w(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?C.push(i):(i-=65536,L=(i>>10)+55296,J=i%1024+56320,C.push(L,J)),(d+1===Y||C.length>U)&&(b+=v.apply(null,C),C.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:j,configurable:!0,writable:!0}):String.fromCodePoint=j}()})(r)}(Br)),Br}var ni,Kc;function fu(){return Kc||(Kc=1,ni={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),ni}var ii,qc;function du(){if(qc)return ii;qc=1;var r=fu().isArray;return ii={copyOptions:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);return a},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!r(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}},ii}var si,Vc;function zl(){if(Vc)return si;Vc=1;var r=yf(),e=du(),t=fu().isArray,a,u;function c(o){return a=e.copyOptions(o),e.ensureFlagExists("ignoreDeclaration",a),e.ensureFlagExists("ignoreInstruction",a),e.ensureFlagExists("ignoreAttributes",a),e.ensureFlagExists("ignoreText",a),e.ensureFlagExists("ignoreComment",a),e.ensureFlagExists("ignoreCdata",a),e.ensureFlagExists("ignoreDoctype",a),e.ensureFlagExists("compact",a),e.ensureFlagExists("alwaysChildren",a),e.ensureFlagExists("addParent",a),e.ensureFlagExists("trim",a),e.ensureFlagExists("nativeType",a),e.ensureFlagExists("nativeTypeAttributes",a),e.ensureFlagExists("sanitize",a),e.ensureFlagExists("instructionHasAttributes",a),e.ensureFlagExists("captureSpacesBetweenElements",a),e.ensureAlwaysArrayExists(a),e.ensureKeyExists("declaration",a),e.ensureKeyExists("instruction",a),e.ensureKeyExists("attributes",a),e.ensureKeyExists("text",a),e.ensureKeyExists("comment",a),e.ensureKeyExists("cdata",a),e.ensureKeyExists("doctype",a),e.ensureKeyExists("type",a),e.ensureKeyExists("name",a),e.ensureKeyExists("elements",a),e.ensureKeyExists("parent",a),e.checkFnExists("doctype",a),e.checkFnExists("instruction",a),e.checkFnExists("cdata",a),e.checkFnExists("comment",a),e.checkFnExists("text",a),e.checkFnExists("instructionName",a),e.checkFnExists("elementName",a),e.checkFnExists("attributeName",a),e.checkFnExists("attributeValue",a),e.checkFnExists("attributes",a),a}function h(o){var y=Number(o);if(!isNaN(y))return y;var m=o.toLowerCase();return m==="true"?!0:m==="false"?!1:o}function n(o,y){var m;if(a.compact){if(!u[a[o+"Key"]]&&(t(a.alwaysArray)?a.alwaysArray.indexOf(a[o+"Key"])!==-1:a.alwaysArray)&&(u[a[o+"Key"]]=[]),u[a[o+"Key"]]&&!t(u[a[o+"Key"]])&&(u[a[o+"Key"]]=[u[a[o+"Key"]]]),o+"Fn"in a&&typeof y=="string"&&(y=a[o+"Fn"](y,u)),o==="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,u);else{var l=y[m];delete y[m],y[a.instructionNameFn(m,l,u)]=l}}t(u[a[o+"Key"]])?u[a[o+"Key"]].push(y):u[a[o+"Key"]]=y}else{u[a.elementsKey]||(u[a.elementsKey]=[]);var E={};if(E[a.typeKey]=o,o==="instruction"){for(m in y)if(y.hasOwnProperty(m))break;E[a.nameKey]="instructionNameFn"in a?a.instructionNameFn(m,y,u):m,a.instructionHasAttributes?(E[a.attributesKey]=y[m][a.attributesKey],"instructionFn"in a&&(E[a.attributesKey]=a.instructionFn(E[a.attributesKey],m,u))):("instructionFn"in a&&(y[m]=a.instructionFn(y[m],m,u)),E[a.instructionKey]=y[m])}else o+"Fn"in a&&(y=a[o+"Fn"](y,u)),E[a[o+"Key"]]=y;a.addParent&&(E[a.parentKey]=u),u[a.elementsKey].push(E)}}function f(o){if("attributesFn"in a&&o&&(o=a.attributesFn(o,u)),(a.trim||"attributeValueFn"in a||"attributeNameFn"in a||a.nativeTypeAttributes)&&o){var y;for(y in o)if(o.hasOwnProperty(y)&&(a.trim&&(o[y]=o[y].trim()),a.nativeTypeAttributes&&(o[y]=h(o[y])),"attributeValueFn"in a&&(o[y]=a.attributeValueFn(o[y],y,u)),"attributeNameFn"in a)){var m=o[y];delete o[y],o[a.attributeNameFn(y,o[y],u)]=m}}return o}function A(o){var y={};if(o.body&&(o.name.toLowerCase()==="xml"||a.instructionHasAttributes)){for(var m=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,l;(l=m.exec(o.body))!==null;)y[l[1]]=l[2]||l[3]||l[4];y=f(y)}if(o.name.toLowerCase()==="xml"){if(a.ignoreDeclaration)return;u[a.declarationKey]={},Object.keys(y).length&&(u[a.declarationKey][a.attributesKey]=y),a.addParent&&(u[a.declarationKey][a.parentKey]=u)}else{if(a.ignoreInstruction)return;a.trim&&(o.body=o.body.trim());var E={};a.instructionHasAttributes&&Object.keys(y).length?(E[o.name]={},E[o.name][a.attributesKey]=y):E[o.name]=o.body,n("instruction",E)}}function x(o,y){var m;if(typeof o=="object"&&(y=o.attributes,o=o.name),y=f(y),"elementNameFn"in a&&(o=a.elementNameFn(o,u)),a.compact){if(m={},!a.ignoreAttributes&&y&&Object.keys(y).length){m[a.attributesKey]={};var l;for(l in y)y.hasOwnProperty(l)&&(m[a.attributesKey][l]=y[l])}!(o in u)&&(t(a.alwaysArray)?a.alwaysArray.indexOf(o)!==-1:a.alwaysArray)&&(u[o]=[]),u[o]&&!t(u[o])&&(u[o]=[u[o]]),t(u[o])?u[o].push(m):u[o]=m}else u[a.elementsKey]||(u[a.elementsKey]=[]),m={},m[a.typeKey]="element",m[a.nameKey]=o,!a.ignoreAttributes&&y&&Object.keys(y).length&&(m[a.attributesKey]=y),a.alwaysChildren&&(m[a.elementsKey]=[]),u[a.elementsKey].push(m);m[a.parentKey]=u,u=m}function S(o){a.ignoreText||!o.trim()&&!a.captureSpacesBetweenElements||(a.trim&&(o=o.trim()),a.nativeType&&(o=h(o)),a.sanitize&&(o=o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),n("text",o))}function N(o){a.ignoreComment||(a.trim&&(o=o.trim()),n("comment",o))}function T(o){var y=u[a.parentKey];a.addParent||delete u[a.parentKey],u=y}function I(o){a.ignoreCdata||(a.trim&&(o=o.trim()),n("cdata",o))}function _(o){a.ignoreDoctype||(o=o.replace(/^ /,""),a.trim&&(o=o.trim()),n("doctype",o))}function R(o){o.note=o}return si=function(o,y){var m=r.parser(!0,{}),l={};if(u=l,a=c(y),m.opt={strictEntities:!0},m.onopentag=x,m.ontext=S,m.oncomment=N,m.onclosetag=T,m.onerror=R,m.oncdata=I,m.ondoctype=_,m.onprocessinginstruction=A,m.write(o).close(),l[a.elementsKey]){var E=l[a.elementsKey];delete l[a.elementsKey],l[a.elementsKey]=E,delete l.text}return l},si}var ai,$c;function vf(){if($c)return ai;$c=1;var r=du(),e=zl();function t(a){var u=r.copyOptions(a);return r.ensureSpacesExists(u),u}return ai=function(a,u){var c,h,n,f;return c=t(u),h=e(a,c),f="compact"in c&&c.compact?"_parent":"parent","addParent"in c&&c.addParent?n=JSON.stringify(h,function(A,x){return A===f?"_":x},c.spaces):n=JSON.stringify(h,null,c.spaces),n.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},ai}var oi,Xc;function Gl(){if(Xc)return oi;Xc=1;var r=du(),e=fu().isArray,t,a;function u(m){var l=r.copyOptions(m);return r.ensureFlagExists("ignoreDeclaration",l),r.ensureFlagExists("ignoreInstruction",l),r.ensureFlagExists("ignoreAttributes",l),r.ensureFlagExists("ignoreText",l),r.ensureFlagExists("ignoreComment",l),r.ensureFlagExists("ignoreCdata",l),r.ensureFlagExists("ignoreDoctype",l),r.ensureFlagExists("compact",l),r.ensureFlagExists("indentText",l),r.ensureFlagExists("indentCdata",l),r.ensureFlagExists("indentAttributes",l),r.ensureFlagExists("indentInstruction",l),r.ensureFlagExists("fullTagEmptyElement",l),r.ensureFlagExists("noQuotesForNativeAttributes",l),r.ensureSpacesExists(l),typeof l.spaces=="number"&&(l.spaces=Array(l.spaces+1).join(" ")),r.ensureKeyExists("declaration",l),r.ensureKeyExists("instruction",l),r.ensureKeyExists("attributes",l),r.ensureKeyExists("text",l),r.ensureKeyExists("comment",l),r.ensureKeyExists("cdata",l),r.ensureKeyExists("doctype",l),r.ensureKeyExists("type",l),r.ensureKeyExists("name",l),r.ensureKeyExists("elements",l),r.checkFnExists("doctype",l),r.checkFnExists("instruction",l),r.checkFnExists("cdata",l),r.checkFnExists("comment",l),r.checkFnExists("text",l),r.checkFnExists("instructionName",l),r.checkFnExists("elementName",l),r.checkFnExists("attributeName",l),r.checkFnExists("attributeValue",l),r.checkFnExists("attributes",l),r.checkFnExists("fullTagEmptyElement",l),l}function c(m,l,E){return(!E&&m.spaces?`
|
|
19
|
-
`:"")+Array(l+1).join(m.spaces)}function h(m,l,E){if(l.ignoreAttributes)return"";"attributesFn"in l&&(m=l.attributesFn(m,a,t));var P,F,W,k,X=[];for(P in m)m.hasOwnProperty(P)&&m[P]!==null&&m[P]!==void 0&&(k=l.noQuotesForNativeAttributes&&typeof m[P]!="string"?"":'"',F=""+m[P],F=F.replace(/"/g,"""),W="attributeNameFn"in l?l.attributeNameFn(P,F,a,t):P,X.push(l.spaces&&l.indentAttributes?c(l,E+1,!1):" "),X.push(W+"="+k+("attributeValueFn"in l?l.attributeValueFn(F,P,a,t):F)+k));return m&&Object.keys(m).length&&l.spaces&&l.indentAttributes&&X.push(c(l,E,!1)),X.join("")}function n(m,l,E){return t=m,a="xml",l.ignoreDeclaration?"":"<?xml"+h(m[l.attributesKey],l,E)+"?>"}function f(m,l,E){if(l.ignoreInstruction)return"";var P;for(P in m)if(m.hasOwnProperty(P))break;var F="instructionNameFn"in l?l.instructionNameFn(P,m[P],a,t):P;if(typeof m[P]=="object")return t=m,a=F,"<?"+F+h(m[P][l.attributesKey],l,E)+"?>";var W=m[P]?m[P]:"";return"instructionFn"in l&&(W=l.instructionFn(W,P,a,t)),"<?"+F+(W?" "+W:"")+"?>"}function A(m,l){return l.ignoreComment?"":"<!--"+("commentFn"in l?l.commentFn(m,a,t):m)+"-->"}function x(m,l){return l.ignoreCdata?"":"<![CDATA["+("cdataFn"in l?l.cdataFn(m,a,t):m.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function S(m,l){return l.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in l?l.doctypeFn(m,a,t):m)+">"}function N(m,l){return l.ignoreText?"":(m=""+m,m=m.replace(/&/g,"&"),m=m.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in l?l.textFn(m,a,t):m)}function T(m,l){var E;if(m.elements&&m.elements.length)for(E=0;E<m.elements.length;++E)switch(m.elements[E][l.typeKey]){case"text":if(l.indentText)return!0;break;case"cdata":if(l.indentCdata)return!0;break;case"instruction":if(l.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function I(m,l,E){t=m,a=m.name;var P=[],F="elementNameFn"in l?l.elementNameFn(m.name,m):m.name;P.push("<"+F),m[l.attributesKey]&&P.push(h(m[l.attributesKey],l,E));var W=m[l.elementsKey]&&m[l.elementsKey].length||m[l.attributesKey]&&m[l.attributesKey]["xml:space"]==="preserve";return W||("fullTagEmptyElementFn"in l?W=l.fullTagEmptyElementFn(m.name,m):W=l.fullTagEmptyElement),W?(P.push(">"),m[l.elementsKey]&&m[l.elementsKey].length&&(P.push(_(m[l.elementsKey],l,E+1)),t=m,a=m.name),P.push(l.spaces&&T(m,l)?`
|
|
20
|
-
`+Array(E+1).join(l.spaces):""),P.push("</"+F+">")):P.push("/>"),P.join("")}function _(m,l,E,P){return m.reduce(function(F,W){var k=c(l,E,P&&!F);switch(W.type){case"element":return F+k+I(W,l,E);case"comment":return F+k+A(W[l.commentKey],l);case"doctype":return F+k+S(W[l.doctypeKey],l);case"cdata":return F+(l.indentCdata?k:"")+x(W[l.cdataKey],l);case"text":return F+(l.indentText?k:"")+N(W[l.textKey],l);case"instruction":var X={};return X[W[l.nameKey]]=W[l.attributesKey]?W:W[l.instructionKey],F+(l.indentInstruction?k:"")+f(X,l,E)}},"")}function R(m,l,E){var P;for(P in m)if(m.hasOwnProperty(P))switch(P){case l.parentKey:case l.attributesKey:break;case l.textKey:if(l.indentText||E)return!0;break;case l.cdataKey:if(l.indentCdata||E)return!0;break;case l.instructionKey:if(l.indentInstruction||E)return!0;break;case l.doctypeKey:case l.commentKey:return!0;default:return!0}return!1}function o(m,l,E,P,F){t=m,a=l;var W="elementNameFn"in E?E.elementNameFn(l,m):l;if(typeof m=="undefined"||m===null||m==="")return"fullTagEmptyElementFn"in E&&E.fullTagEmptyElementFn(l,m)||E.fullTagEmptyElement?"<"+W+"></"+W+">":"<"+W+"/>";var k=[];if(l){if(k.push("<"+W),typeof m!="object")return k.push(">"+N(m,E)+"</"+W+">"),k.join("");m[E.attributesKey]&&k.push(h(m[E.attributesKey],E,P));var X=R(m,E,!0)||m[E.attributesKey]&&m[E.attributesKey]["xml:space"]==="preserve";if(X||("fullTagEmptyElementFn"in E?X=E.fullTagEmptyElementFn(l,m):X=E.fullTagEmptyElement),X)k.push(">");else return k.push("/>"),k.join("")}return k.push(y(m,E,P+1,!1)),t=m,a=l,l&&k.push((F?c(E,P,!1):"")+"</"+W+">"),k.join("")}function y(m,l,E,P){var F,W,k,X=[];for(W in m)if(m.hasOwnProperty(W))for(k=e(m[W])?m[W]:[m[W]],F=0;F<k.length;++F){switch(W){case l.declarationKey:X.push(n(k[F],l,E));break;case l.instructionKey:X.push((l.indentInstruction?c(l,E,P):"")+f(k[F],l,E));break;case l.attributesKey:case l.parentKey:break;case l.textKey:X.push((l.indentText?c(l,E,P):"")+N(k[F],l));break;case l.cdataKey:X.push((l.indentCdata?c(l,E,P):"")+x(k[F],l));break;case l.doctypeKey:X.push(c(l,E,P)+S(k[F],l));break;case l.commentKey:X.push(c(l,E,P)+A(k[F],l));break;default:X.push(c(l,E,P)+o(k[F],W,l,E,R(k[F],l)))}P=P&&!X.length}return X.join("")}return oi=function(m,l){l=u(l);var E=[];return t=m,a="_root_",l.compact?E.push(y(m,l,0,!0)):(m[l.declarationKey]&&E.push(n(m[l.declarationKey],l,0)),m[l.elementsKey]&&m[l.elementsKey].length&&E.push(_(m[l.elementsKey],l,0,!E.length))),E.join("")},oi}var ui,Zc;function _f(){if(Zc)return ui;Zc=1;var r=Gl();return ui=function(e,t){e instanceof Buffer&&(e=e.toString());var a=null;if(typeof e=="string")try{a=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else a=e;return r(a,t)},ui}var ci,Yc;function bf(){if(Yc)return ci;Yc=1;var r=zl(),e=vf(),t=Gl(),a=_f();return ci={xml2js:r,xml2json:e,js2xml:t,json2xml:a},ci}var Kl=bf(),pu=r=>{switch(r.type){case void 0:case"element":let e=new ki(r.name,r.attributes),t=r.elements||[];for(let a of t){let u=pu(a);u!==void 0&&e.push(u)}return e;case"text":return r.text;default:return}},Ni=class extends fe{},ki=class extends ne{static fromXmlString(e){let t=Kl.xml2js(e,{compact:!1});return pu(t)}constructor(e,t){super(e),t&&this.root.push(new Ni(t))}push(e){this.root.push(e)}},Oi=class extends ne{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}};var sr=class extends ne{constructor(e,t){super(e),t&&(this.root=t.root)}},Se=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},Cr=r=>{let e=Se(r);if(e<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return e},ql=(r,e)=>{let t=e*2;if(r.length!==t||isNaN(+`0x${r}`))throw new Error(`Invalid hex value '${r}'. Expected ${t} digit hex value`);return r};var Jc=r=>ql(r,1),Vl=r=>{let e=r.slice(-2),t=r.substring(0,r.length-2);return`${Number(t)}${e}`},$l=r=>{let e=Vl(r);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},gt=r=>{if(r==="auto")return r;let e=r.charAt(0)==="#"?r.substring(1):r;return ql(e,3)},it=r=>typeof r=="string"?Vl(r):Se(r),Ef=r=>typeof r=="string"?$l(r):Cr(r);var ke=r=>typeof r=="string"?$l(r):Cr(r);var xf=Cr,Tf=Cr,Af=r=>r.toISOString(),ce=class extends ne{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new ve({val:t}))}},Ct=class extends ne{constructor(e,t){super(e),this.root.push(new ve({val:Ef(t)}))}};var Ve=class extends ne{constructor(e,t){super(e),this.root.push(new ve({val:t}))}},It=(r,e)=>new _e({name:r,attributes:{value:{key:"w:val",value:e}}}),st=class extends ne{constructor(e,t){super(e),this.root.push(new ve({val:t}))}};var We=class extends ne{constructor(e,t){super(e),this.root.push(t)}},_e=class extends ne{constructor({name:e,attributes:t,children:a}){super(e),t&&this.root.push(new Xe(t)),a&&this.root.push(...a)}},De={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"},Ci=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Di=class extends ne{constructor(e){super("w:jc"),this.root.push(new Ci({val:e}))}},ye=class extends ne{constructor(e,{color:t,size:a,space:u,style:c}){super(e),this.root.push(new Li({style:c,color:t===void 0?void 0:gt(t),size:a===void 0?void 0:xf(a),space:u===void 0?void 0:Tf(u)}))}},Li=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}},Gt={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"},Pi=class extends mt{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ye("w:top",e.top)),e.bottom&&this.root.push(new ye("w:bottom",e.bottom)),e.left&&this.root.push(new ye("w:left",e.left)),e.right&&this.root.push(new ye("w:right",e.right))}},Fi=class extends ne{constructor(){super("w:pBdr");let e=new ye("w:bottom",{color:"auto",space:1,style:Gt.SINGLE,size:6});this.root.push(e)}},Bi=class extends ne{constructor({start:e,end:t,left:a,right:u,hanging:c,firstLine:h}){super("w:ind"),this.root.push(new Xe({start:{key:"w:start",value:e===void 0?void 0:it(e)},end:{key:"w:end",value:t===void 0?void 0:it(t)},left:{key:"w:left",value:a===void 0?void 0:it(a)},right:{key:"w:right",value:u===void 0?void 0:it(u)},hanging:{key:"w:hanging",value:c===void 0?void 0:ke(c)},firstLine:{key:"w:firstLine",value:h===void 0?void 0:ke(h)}}))}},Sf=class extends ne{constructor(){super("w:br")}},mu={BEGIN:"begin",END:"end",SEPARATE:"separate"},Bt=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}},ct=class extends ne{constructor(e){super("w:fldChar"),this.root.push(new Bt({type:mu.BEGIN,dirty:e}))}},lt=class extends ne{constructor(e){super("w:fldChar"),this.root.push(new Bt({type:mu.SEPARATE,dirty:e}))}},ht=class extends ne{constructor(e){super("w:fldChar"),this.root.push(new Bt({type:mu.END,dirty:e}))}};var yt={DEFAULT:"default",PRESERVE:"preserve"},Ze=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{space:"xml:space"})}},Ui=class extends ne{constructor(){super("w:instrText"),this.root.push(new Ze({space:yt.PRESERVE})),this.root.push("PAGE")}},Mi=class extends ne{constructor(){super("w:instrText"),this.root.push(new Ze({space:yt.PRESERVE})),this.root.push("NUMPAGES")}},Hi=class extends ne{constructor(){super("w:instrText"),this.root.push(new Ze({space:yt.PRESERVE})),this.root.push("SECTIONPAGES")}},ji=class extends ne{constructor(){super("w:instrText"),this.root.push(new Ze({space:yt.PRESERVE})),this.root.push("SECTION")}},Wi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}},ar=class extends ne{constructor({fill:e,color:t,type:a}){super("w:shd"),this.root.push(new Wi({fill:e===void 0?void 0:gt(e),color:t===void 0?void 0:gt(t),type:a}))}};var zi=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},Rf={DOT:"dot"},Gi=class extends ne{constructor(e){super("w:em"),this.root.push(new ve({val:e}))}},Ki=class extends Gi{constructor(e=Rf.DOT){super(e)}};var qi=class extends ne{constructor(e){super("w:spacing"),this.root.push(new ve({val:it(e)}))}},Vi=class extends ne{constructor(e){super("w:color"),this.root.push(new ve({val:gt(e)}))}},$i=class extends ne{constructor(e){super("w:highlight"),this.root.push(new ve({val:e}))}},Xi=class extends ne{constructor(e){super("w:highlightCs"),this.root.push(new ve({val:e}))}},If=r=>new _e({name:"w:lang",attributes:{value:{key:"w:val",value:r.value},eastAsia:{key:"w:eastAsia",value:r.eastAsia},bidirectional:{key:"w:bidi",value:r.bidirectional}}}),or=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}},Dt=class extends ne{constructor(e,t){if(super("w:rFonts"),typeof e=="string"){let a=e;this.root.push(new or({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:t}))}else{let a=e;this.root.push(new or(a))}}},Xl=class extends ne{constructor(e){super("w:vertAlign"),this.root.push(new ve({val:e}))}},Zi=class extends Xl{constructor(){super("superscript")}},Yi=class extends Xl{constructor(){super("subscript")}},Zl={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"},Ji=class extends ne{constructor(e=Zl.SINGLE,t){super("w:u"),this.root.push(new ve({val:e,color:t===void 0?void 0:gt(t)}))}};var Ge=class extends mt{constructor(e){var t,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new ce("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new ce("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new ce("w:bCs",(t=e.boldComplexScript)!=null?t:e.bold)),e.italics!==void 0&&this.push(new ce("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new ce("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Ji(e.underline.type,e.underline.color)),e.effect&&this.push(new Ve("w:effect",e.effect)),e.emphasisMark&&this.push(new Ki(e.emphasisMark.type)),e.color&&this.push(new Vi(e.color)),e.kern&&this.push(new Ct("w:kern",e.kern)),e.position&&this.push(new Ve("w:position",e.position)),e.size!==void 0&&this.push(new Ct("w:sz",e.size));let u=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;u&&this.push(new Ct("w:szCs",u)),e.rightToLeft!==void 0&&this.push(new ce("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new ce("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new ce("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new ce("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new ce("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Yi),e.superScript&&this.push(new Zi),e.style&&this.push(new Ve("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Dt(e.font)):"name"in e.font?this.push(new Dt(e.font.name,e.font.hint)):this.push(new Dt(e.font))),e.highlight&&this.push(new $i(e.highlight));let c=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;c&&this.push(new Xi(c)),e.characterSpacing&&this.push(new qi(e.characterSpacing)),e.emboss!==void 0&&this.push(new ce("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new ce("w:imprint",e.imprint)),e.shading&&this.push(new ar(e.shading)),e.revision&&this.push(new Qi(e.revision)),e.border&&this.push(new ye("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new ce("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new ce("w:vanish",e.vanish)),e.specVanish&&this.push(new ce("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new st("w:w",e.scale)),e.language&&this.push(If(e.language)),e.math&&this.push(new ce("w:oMath",e.math))}push(e){this.root.push(e)}},Qi=class extends ne{constructor(e){super("w:rPrChange"),this.root.push(new zi({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ge(e))}},ur=class extends ne{constructor(e){var t;super("w:t"),typeof e=="string"?(this.root.push(new Ze({space:yt.PRESERVE})),this.root.push(e)):(this.root.push(new Ze({space:(t=e.space)!=null?t:yt.DEFAULT})),this.root.push(e.text))}},Qt={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},Ye=class extends ne{constructor(e){if(super("w:r"),re(this,"properties"),this.properties=new Ge(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new Sf);if(e.children)for(let t of e.children){if(typeof t=="string"){switch(t){case Qt.CURRENT:this.root.push(new ct),this.root.push(new Ui),this.root.push(new lt),this.root.push(new ht);break;case Qt.TOTAL_PAGES:this.root.push(new ct),this.root.push(new Mi),this.root.push(new lt),this.root.push(new ht);break;case Qt.TOTAL_PAGES_IN_SECTION:this.root.push(new ct),this.root.push(new Hi),this.root.push(new lt),this.root.push(new ht);break;case Qt.CURRENT_SECTION:this.root.push(new ct),this.root.push(new ji),this.root.push(new lt),this.root.push(new ht);break;default:this.root.push(new ur(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new ur(e.text))}},Fe=class extends Ye{constructor(e){super(typeof e=="string"?{text:e}:e)}};var li={},ge={},hi,Qc;function Kt(){if(Qc)return hi;Qc=1,hi=r;function r(e,t){if(!e)throw new Error(t||"Assertion failed")}return r.equal=function(t,a,u){if(t!=a)throw new Error(u||"Assertion failed: "+t+" != "+a)},hi}var el;function Me(){if(el)return ge;el=1;var r=Kt(),e=et();ge.inherits=e;function t(O,M){return(O.charCodeAt(M)&64512)!==55296||M<0||M+1>=O.length?!1:(O.charCodeAt(M+1)&64512)===56320}function a(O,M){if(Array.isArray(O))return O.slice();if(!O)return[];var g=[];if(typeof O=="string")if(M){if(M==="hex")for(O=O.replace(/[^a-z0-9]+/ig,""),O.length%2!==0&&(O="0"+O),ee=0;ee<O.length;ee+=2)g.push(parseInt(O[ee]+O[ee+1],16))}else for(var q=0,ee=0;ee<O.length;ee++){var z=O.charCodeAt(ee);z<128?g[q++]=z:z<2048?(g[q++]=z>>6|192,g[q++]=z&63|128):t(O,ee)?(z=65536+((z&1023)<<10)+(O.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<O.length;ee++)g[ee]=O[ee]|0;return g}ge.toArray=a;function u(O){for(var M="",g=0;g<O.length;g++)M+=n(O[g].toString(16));return M}ge.toHex=u;function c(O){var M=O>>>24|O>>>8&65280|O<<8&16711680|(O&255)<<24;return M>>>0}ge.htonl=c;function h(O,M){for(var g="",q=0;q<O.length;q++){var ee=O[q];M==="little"&&(ee=c(ee)),g+=f(ee.toString(16))}return g}ge.toHex32=h;function n(O){return O.length===1?"0"+O:O}ge.zero2=n;function f(O){return O.length===7?"0"+O:O.length===6?"00"+O:O.length===5?"000"+O:O.length===4?"0000"+O:O.length===3?"00000"+O:O.length===2?"000000"+O:O.length===1?"0000000"+O:O}ge.zero8=f;function A(O,M,g,q){var ee=g-M;r(ee%4===0);for(var z=new Array(ee/4),se=0,Q=M;se<z.length;se++,Q+=4){var le;q==="big"?le=O[Q]<<24|O[Q+1]<<16|O[Q+2]<<8|O[Q+3]:le=O[Q+3]<<24|O[Q+2]<<16|O[Q+1]<<8|O[Q],z[se]=le>>>0}return z}ge.join32=A;function x(O,M){for(var g=new Array(O.length*4),q=0,ee=0;q<O.length;q++,ee+=4){var z=O[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}ge.split32=x;function S(O,M){return O>>>M|O<<32-M}ge.rotr32=S;function N(O,M){return O<<M|O>>>32-M}ge.rotl32=N;function T(O,M){return O+M>>>0}ge.sum32=T;function I(O,M,g){return O+M+g>>>0}ge.sum32_3=I;function _(O,M,g,q){return O+M+g+q>>>0}ge.sum32_4=_;function R(O,M,g,q,ee){return O+M+g+q+ee>>>0}ge.sum32_5=R;function o(O,M,g,q){var ee=O[M],z=O[M+1],se=q+z>>>0,Q=(se<q?1:0)+g+ee;O[M]=Q>>>0,O[M+1]=se}ge.sum64=o;function y(O,M,g,q){var ee=M+q>>>0,z=(ee<M?1:0)+O+g;return z>>>0}ge.sum64_hi=y;function m(O,M,g,q){var ee=M+q;return ee>>>0}ge.sum64_lo=m;function l(O,M,g,q,ee,z,se,Q){var le=0,V=M;V=V+q>>>0,le+=V<M?1:0,V=V+z>>>0,le+=V<z?1:0,V=V+Q>>>0,le+=V<Q?1:0;var D=O+g+ee+se+le;return D>>>0}ge.sum64_4_hi=l;function E(O,M,g,q,ee,z,se,Q){var le=M+q+z+Q;return le>>>0}ge.sum64_4_lo=E;function P(O,M,g,q,ee,z,se,Q,le,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=O+g+ee+se+le+D;return Z>>>0}ge.sum64_5_hi=P;function F(O,M,g,q,ee,z,se,Q,le,V){var D=M+q+z+Q+V;return D>>>0}ge.sum64_5_lo=F;function W(O,M,g){var q=M<<32-g|O>>>g;return q>>>0}ge.rotr64_hi=W;function k(O,M,g){var q=O<<32-g|M>>>g;return q>>>0}ge.rotr64_lo=k;function X(O,M,g){return O>>>g}ge.shr64_hi=X;function ue(O,M,g){var q=O<<32-g|M>>>g;return q>>>0}return ge.shr64_lo=ue,ge}var fi={},tl;function qt(){if(tl)return fi;tl=1;var r=Me(),e=Kt();function t(){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 fi.BlockHash=t,t.prototype.update=function(u,c){if(u=r.toArray(u,c),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){u=this.pending;var h=u.length%this._delta8;this.pending=u.slice(u.length-h,u.length),this.pending.length===0&&(this.pending=null),u=r.join32(u,0,u.length-h,this.endian);for(var n=0;n<u.length;n+=this._delta32)this._update(u,n,n+this._delta32)}return this},t.prototype.digest=function(u){return this.update(this._pad()),e(this.pending===null),this._digest(u)},t.prototype._pad=function(){var u=this.pendingTotal,c=this._delta8,h=c-(u+this.padLength)%c,n=new Array(h+this.padLength);n[0]=128;for(var f=1;f<h;f++)n[f]=0;if(u<<=3,this.endian==="big"){for(var A=8;A<this.padLength;A++)n[f++]=0;n[f++]=0,n[f++]=0,n[f++]=0,n[f++]=0,n[f++]=u>>>24&255,n[f++]=u>>>16&255,n[f++]=u>>>8&255,n[f++]=u&255}else for(n[f++]=u&255,n[f++]=u>>>8&255,n[f++]=u>>>16&255,n[f++]=u>>>24&255,n[f++]=0,n[f++]=0,n[f++]=0,n[f++]=0,A=8;A<this.padLength;A++)n[f++]=0;return n},fi}var tt={},Ce={},rl;function Yl(){if(rl)return Ce;rl=1;var r=Me(),e=r.rotr32;function t(x,S,N,T){if(x===0)return a(S,N,T);if(x===1||x===3)return c(S,N,T);if(x===2)return u(S,N,T)}Ce.ft_1=t;function a(x,S,N){return x&S^~x&N}Ce.ch32=a;function u(x,S,N){return x&S^x&N^S&N}Ce.maj32=u;function c(x,S,N){return x^S^N}Ce.p32=c;function h(x){return e(x,2)^e(x,13)^e(x,22)}Ce.s0_256=h;function n(x){return e(x,6)^e(x,11)^e(x,25)}Ce.s1_256=n;function f(x){return e(x,7)^e(x,18)^x>>>3}Ce.g0_256=f;function A(x){return e(x,17)^e(x,19)^x>>>10}return Ce.g1_256=A,Ce}var di,nl;function Nf(){if(nl)return di;nl=1;var r=Me(),e=qt(),t=Yl(),a=r.rotl32,u=r.sum32,c=r.sum32_5,h=t.ft_1,n=e.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function A(){if(!(this instanceof A))return new A;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return r.inherits(A,n),di=A,A.blockSize=512,A.outSize=160,A.hmacStrength=80,A.padLength=64,A.prototype._update=function(S,N){for(var T=this.W,I=0;I<16;I++)T[I]=S[N+I];for(;I<T.length;I++)T[I]=a(T[I-3]^T[I-8]^T[I-14]^T[I-16],1);var _=this.h[0],R=this.h[1],o=this.h[2],y=this.h[3],m=this.h[4];for(I=0;I<T.length;I++){var l=~~(I/20),E=c(a(_,5),h(l,R,o,y),m,T[I],f[l]);m=y,y=o,o=a(R,30),R=_,_=E}this.h[0]=u(this.h[0],_),this.h[1]=u(this.h[1],R),this.h[2]=u(this.h[2],o),this.h[3]=u(this.h[3],y),this.h[4]=u(this.h[4],m)},A.prototype._digest=function(S){return S==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},di}var pi,il;function Jl(){if(il)return pi;il=1;var r=Me(),e=qt(),t=Yl(),a=Kt(),u=r.sum32,c=r.sum32_4,h=r.sum32_5,n=t.ch32,f=t.maj32,A=t.s0_256,x=t.s1_256,S=t.g0_256,N=t.g1_256,T=e.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 _(){if(!(this instanceof _))return new _;T.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}return r.inherits(_,T),pi=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(o,y){for(var m=this.W,l=0;l<16;l++)m[l]=o[y+l];for(;l<m.length;l++)m[l]=c(N(m[l-2]),m[l-7],S(m[l-15]),m[l-16]);var E=this.h[0],P=this.h[1],F=this.h[2],W=this.h[3],k=this.h[4],X=this.h[5],ue=this.h[6],O=this.h[7];for(a(this.k.length===m.length),l=0;l<m.length;l++){var M=h(O,x(k),n(k,X,ue),this.k[l],m[l]),g=u(A(E),f(E,P,F));O=ue,ue=X,X=k,k=u(W,M),W=F,F=P,P=E,E=u(M,g)}this.h[0]=u(this.h[0],E),this.h[1]=u(this.h[1],P),this.h[2]=u(this.h[2],F),this.h[3]=u(this.h[3],W),this.h[4]=u(this.h[4],k),this.h[5]=u(this.h[5],X),this.h[6]=u(this.h[6],ue),this.h[7]=u(this.h[7],O)},_.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},pi}var mi,sl;function kf(){if(sl)return mi;sl=1;var r=Me(),e=Jl();function t(){if(!(this instanceof t))return new t;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return r.inherits(t,e),mi=t,t.blockSize=512,t.outSize=224,t.hmacStrength=192,t.padLength=64,t.prototype._digest=function(u){return u==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")},mi}var wi,al;function Ql(){if(al)return wi;al=1;var r=Me(),e=qt(),t=Kt(),a=r.rotr64_hi,u=r.rotr64_lo,c=r.shr64_hi,h=r.shr64_lo,n=r.sum64,f=r.sum64_hi,A=r.sum64_lo,x=r.sum64_4_hi,S=r.sum64_4_lo,N=r.sum64_5_hi,T=r.sum64_5_lo,I=e.BlockHash,_=[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 R(){if(!(this instanceof R))return new R;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=new Array(160)}r.inherits(R,I),wi=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.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 se=ue(ee[z-4],ee[z-3]),Q=O(ee[z-4],ee[z-3]),le=ee[z-14],V=ee[z-13],D=k(ee[z-30],ee[z-29]),$=X(ee[z-30],ee[z-29]),Z=ee[z-32],te=ee[z-31];ee[z]=x(se,Q,le,V,D,$,Z,te),ee[z+1]=S(se,Q,le,V,D,$,Z,te)}},R.prototype._update=function(g,q){this._prepareBlock(g,q);var ee=this.W,z=this.h[0],se=this.h[1],Q=this.h[2],le=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],w=this.h[11],j=this.h[12],U=this.h[13],C=this.h[14],L=this.h[15];t(this.k.length===ee.length);for(var J=0;J<ee.length;J+=2){var d=C,Y=L,b=F(te,K),i=W(te,K),s=o(te,K,v,w,j),p=y(te,K,v,w,j,U),B=this.k[J],G=this.k[J+1],H=ee[J],ie=ee[J+1],oe=N(d,Y,b,i,s,p,B,G,H,ie),ae=T(d,Y,b,i,s,p,B,G,H,ie);d=E(z,se),Y=P(z,se),b=m(z,se,Q,le,V),i=l(z,se,Q,le,V,D);var he=f(d,Y,b,i),de=A(d,Y,b,i);C=j,L=U,j=v,U=w,v=te,w=K,te=f($,Z,oe,ae),K=A(Z,Z,oe,ae),$=V,Z=D,V=Q,D=le,Q=z,le=se,z=f(oe,ae,he,de),se=A(oe,ae,he,de)}n(this.h,0,z,se),n(this.h,2,Q,le),n(this.h,4,V,D),n(this.h,6,$,Z),n(this.h,8,te,K),n(this.h,10,v,w),n(this.h,12,j,U),n(this.h,14,C,L)},R.prototype._digest=function(g){return g==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function o(M,g,q,ee,z){var se=M&q^~M&z;return se<0&&(se+=4294967296),se}function y(M,g,q,ee,z,se){var Q=g&ee^~g&se;return Q<0&&(Q+=4294967296),Q}function m(M,g,q,ee,z){var se=M&q^M&z^q&z;return se<0&&(se+=4294967296),se}function l(M,g,q,ee,z,se){var Q=g&ee^g&se^ee&se;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),se=q^ee^z;return se<0&&(se+=4294967296),se}function P(M,g){var q=u(M,g,28),ee=u(g,M,2),z=u(g,M,7),se=q^ee^z;return se<0&&(se+=4294967296),se}function F(M,g){var q=a(M,g,14),ee=a(M,g,18),z=a(g,M,9),se=q^ee^z;return se<0&&(se+=4294967296),se}function W(M,g){var q=u(M,g,14),ee=u(M,g,18),z=u(g,M,9),se=q^ee^z;return se<0&&(se+=4294967296),se}function k(M,g){var q=a(M,g,1),ee=a(M,g,8),z=c(M,g,7),se=q^ee^z;return se<0&&(se+=4294967296),se}function X(M,g){var q=u(M,g,1),ee=u(M,g,8),z=h(M,g,7),se=q^ee^z;return se<0&&(se+=4294967296),se}function ue(M,g){var q=a(M,g,19),ee=a(g,M,29),z=c(M,g,6),se=q^ee^z;return se<0&&(se+=4294967296),se}function O(M,g){var q=u(M,g,19),ee=u(g,M,29),z=h(M,g,6),se=q^ee^z;return se<0&&(se+=4294967296),se}return wi}var gi,ol;function Of(){if(ol)return gi;ol=1;var r=Me(),e=Ql();function t(){if(!(this instanceof t))return new t;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return r.inherits(t,e),gi=t,t.blockSize=1024,t.outSize=384,t.hmacStrength=192,t.padLength=128,t.prototype._digest=function(u){return u==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")},gi}var ul;function Cf(){return ul||(ul=1,tt.sha1=Nf(),tt.sha224=kf(),tt.sha256=Jl(),tt.sha384=Of(),tt.sha512=Ql()),tt}var yi={},cl;function Df(){if(cl)return yi;cl=1;var r=Me(),e=qt(),t=r.rotl32,a=r.sum32,u=r.sum32_3,c=r.sum32_4,h=e.BlockHash;function n(){if(!(this instanceof n))return new n;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r.inherits(n,h),yi.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(R,o){for(var y=this.h[0],m=this.h[1],l=this.h[2],E=this.h[3],P=this.h[4],F=y,W=m,k=l,X=E,ue=P,O=0;O<80;O++){var M=a(t(c(y,f(O,m,l,E),R[S[O]+o],A(O)),T[O]),P);y=P,P=E,E=t(l,10),l=m,m=M,M=a(t(c(F,f(79-O,W,k,X),R[N[O]+o],x(O)),I[O]),ue),F=ue,ue=X,X=t(k,10),k=W,W=M}M=u(this.h[1],l,X),this.h[1]=u(this.h[2],E,ue),this.h[2]=u(this.h[3],P,F),this.h[3]=u(this.h[4],y,W),this.h[4]=u(this.h[0],m,k),this.h[0]=M},n.prototype._digest=function(R){return R==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};function f(_,R,o,y){return _<=15?R^o^y:_<=31?R&o|~R&y:_<=47?(R|~o)^y:_<=63?R&y|o&~y:R^(o|~y)}function A(_){return _<=15?0:_<=31?1518500249:_<=47?1859775393:_<=63?2400959708:2840853838}function x(_){return _<=15?1352829926:_<=31?1548603684:_<=47?1836072691:_<=63?2053994217:0}var S=[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],N=[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],T=[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 yi}var vi,ll;function Lf(){if(ll)return vi;ll=1;var r=Me(),e=Kt();function t(a,u,c){if(!(this instanceof t))return new t(a,u,c);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(u,c))}return vi=t,t.prototype._init=function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),e(u.length<=this.blockSize);for(var c=u.length;c<this.blockSize;c++)u.push(0);for(c=0;c<u.length;c++)u[c]^=54;for(this.inner=new this.Hash().update(u),c=0;c<u.length;c++)u[c]^=106;this.outer=new this.Hash().update(u)},t.prototype.update=function(u,c){return this.inner.update(u,c),this},t.prototype.digest=function(u){return this.outer.update(this.inner.digest()),this.outer.digest(u)},vi}var hl;function Pf(){return hl||(hl=1,function(r){var e=r;e.utils=Me(),e.common=qt(),e.sha=Cf(),e.ripemd=Df(),e.hmac=Lf(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(li)),li}var Ff=Pf(),Bf=su(Ff),Uf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Mf=(r,e=21)=>(t=e)=>{let a="",u=t|0;for(;u--;)a+=r[Math.random()*r.length|0];return a},Hf=(r=21)=>{let e="",t=r|0;for(;t--;)e+=Uf[Math.random()*64|0];return e};var Re=r=>Math.floor(r*72*20),Dr=(r=0)=>{let e=r;return()=>++e},jf=()=>Dr(),Wf=()=>Dr(1),zf=()=>Dr(),Gf=()=>Dr(),eh=()=>Hf().toLowerCase(),fl=r=>Bf.sha1().update(r instanceof ArrayBuffer?new Uint8Array(r):r).digest("hex"),Nt=r=>Mf("1234567890abcdef",r)(),Kf=()=>`${Nt(8)}-${Nt(4)}-${Nt(4)}-${Nt(4)}-${Nt(12)}`,qf={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},Vf={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"},es=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{x:"x",y:"y"})}},ts=class extends ne{constructor(){super("wp:simplePos"),this.root.push(new es({x:0,y:0}))}},cr=class extends ne{constructor(e){super("wp:align"),this.root.push(e)}},lr=class extends ne{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}},rs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{relativeFrom:"relativeFrom"})}},ns=class extends ne{constructor(e){if(super("wp:positionH"),this.root.push(new rs({relativeFrom:e.relative||qf.PAGE})),e.align)this.root.push(new cr(e.align));else if(e.offset!==void 0)this.root.push(new lr(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}},is=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{relativeFrom:"relativeFrom"})}},ss=class extends ne{constructor(e){if(super("wp:positionV"),this.root.push(new is({relativeFrom:e.relative||Vf.PAGE})),e.align)this.root.push(new cr(e.align));else if(e.offset!==void 0)this.root.push(new lr(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}},as=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{uri:"uri"})}},$f=r=>new _e({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${r.fileName}}`}}}),Xf=r=>new _e({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[$f(r)]}),Zf=r=>new _e({name:"a:extLst",children:[Xf(r)]}),Yf=r=>new _e({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${r.type==="svg"?r.fallback.fileName:r.fileName}}`},cstate:{key:"cstate",value:"none"}},children:r.type==="svg"?[Zf(r)]:[]}),os=class extends ne{constructor(){super("a:srcRect")}},us=class extends ne{constructor(){super("a:fillRect")}},cs=class extends ne{constructor(){super("a:stretch"),this.root.push(new us)}},ls=class extends ne{constructor(e){super("pic:blipFill"),this.root.push(Yf(e)),this.root.push(new os),this.root.push(new cs)}},hs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},fs=class extends ne{constructor(){super("a:picLocks"),this.root.push(new hs({noChangeAspect:1,noChangeArrowheads:1}))}},ds=class extends ne{constructor(){super("pic:cNvPicPr"),this.root.push(new fs)}},th=(r,e)=>new _e({name:"a:hlinkClick",attributes:$e(we({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})}),ps=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},ms=class extends ne{constructor(){super("pic:cNvPr"),this.root.push(new ps({id:0,name:"",descr:""}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let a=e.stack[t];if(a instanceof vt){this.root.push(th(a.linkId,!1));break}}return super.prepForXml(e)}},ws=class extends ne{constructor(){super("pic:nvPicPr"),this.root.push(new ms),this.root.push(new ds)}},gs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns:pic"})}},ys=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{cx:"cx",cy:"cy"})}},vs=class extends ne{constructor(e,t){super("a:ext"),re(this,"attributes"),this.attributes=new ys({cx:e,cy:t}),this.root.push(this.attributes)}},_s=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{x:"x",y:"y"})}},bs=class extends ne{constructor(){super("a:off"),this.root.push(new _s({x:0,y:0}))}},Es=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},xs=class extends ne{constructor(e){var t,a;super("a:xfrm"),re(this,"extents"),this.root.push(new Es({flipVertical:(t=e.flip)==null?void 0:t.vertical,flipHorizontal:(a=e.flip)==null?void 0:a.horizontal,rotation:e.rotation})),this.extents=new vs(e.emus.x,e.emus.y),this.root.push(new bs),this.root.push(this.extents)}},rh=()=>new _e({name:"a:noFill"}),Jf=r=>new _e({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),Qf=r=>new _e({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),dl=r=>new _e({name:"a:solidFill",children:[r.type==="rgb"?Jf(r):Qf(r)]}),ed=r=>new _e({name:"a:ln",attributes:{width:{key:"w",value:r.width},cap:{key:"cap",value:r.cap},compoundLine:{key:"cmpd",value:r.compoundLine},align:{key:"algn",value:r.align}},children:[r.type==="noFill"?rh():r.solidFillType==="rgb"?dl({type:"rgb",value:r.value}):dl({type:"scheme",value:r.value})]}),Ts=class extends ne{constructor(){super("a:avLst")}},As=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{prst:"prst"})}},Ss=class extends ne{constructor(){super("a:prstGeom"),this.root.push(new As({prst:"rect"})),this.root.push(new Ts)}},Rs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{bwMode:"bwMode"})}},Is=class extends ne{constructor({outline:e,transform:t}){super("pic:spPr"),re(this,"form"),this.root.push(new Rs({bwMode:"auto"})),this.form=new xs(t),this.root.push(this.form),this.root.push(new Ss),e&&(this.root.push(rh()),this.root.push(ed(e)))}},Ns=class extends ne{constructor({mediaData:e,transform:t,outline:a}){super("pic:pic"),this.root.push(new gs({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new ws),this.root.push(new ls(e)),this.root.push(new Is({transform:t,outline:a}))}},ks=class extends ne{constructor({mediaData:e,transform:t,outline:a}){super("a:graphicData"),re(this,"pic"),this.root.push(new as({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new Ns({mediaData:e,transform:t,outline:a}),this.root.push(this.pic)}},Os=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{a:"xmlns:a"})}},hr=class extends ne{constructor({mediaData:e,transform:t,outline:a}){super("a:graphic"),re(this,"data"),this.root.push(new Os({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new ks({mediaData:e,transform:t,outline:a}),this.root.push(this.data)}},er={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},td={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"},fr=class extends ne{constructor(){super("wp:wrapNone")}},Cs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}},Ds=class extends ne{constructor(e,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new Cs({wrapText:e.side||td.BOTH_SIDES,distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}},Ls=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB"})}},Ps=class extends ne{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new Ls({distT:e.top,distB:e.bottom}))}},Fs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB"})}},Bs=class extends ne{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new Fs({distT:e.top,distB:e.bottom}))}},dr=class extends ne{constructor({name:e,description:t,title:a}={name:"",description:"",title:""}){super("wp:docPr"),re(this,"docPropertiesUniqueNumericId",zf()),this.root.push(new Xe({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:t},title:{key:"title",value:a}}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let a=e.stack[t];if(a instanceof vt){this.root.push(th(a.linkId,!0));break}}return super.prepForXml(e)}},nh=({top:r,right:e,bottom:t,left:a})=>new _e({name:"wp:effectExtent",attributes:{top:{key:"t",value:r},right:{key:"r",value:e},bottom:{key:"b",value:t},left:{key:"l",value:a}}}),Us=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{cx:"cx",cy:"cy"})}},pr=class extends ne{constructor(e,t){super("wp:extent"),re(this,"attributes"),this.attributes=new Us({cx:e,cy:t}),this.root.push(this.attributes)}},Ms=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},Hs=class extends ne{constructor(){super("a:graphicFrameLocks"),this.root.push(new Ms({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},mr=class extends ne{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new Hs)}},js=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},Ws=class extends ne{constructor({mediaData:e,transform:t,drawingOptions:a}){super("wp:anchor");let u=we({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},a.floating);if(this.root.push(new js({distT:u.margins&&u.margins.top||0,distB:u.margins&&u.margins.bottom||0,distL:u.margins&&u.margins.left||0,distR:u.margins&&u.margins.right||0,simplePos:"0",allowOverlap:u.allowOverlap===!0?"1":"0",behindDoc:u.behindDocument===!0?"1":"0",locked:u.lockAnchor===!0?"1":"0",layoutInCell:u.layoutInCell===!0?"1":"0",relativeHeight:u.zIndex?u.zIndex:t.emus.y})),this.root.push(new ts),this.root.push(new ns(u.horizontalPosition)),this.root.push(new ss(u.verticalPosition)),this.root.push(new pr(t.emus.x,t.emus.y)),this.root.push(nh({top:0,right:0,bottom:0,left:0})),a.floating!==void 0&&a.floating.wrap!==void 0)switch(a.floating.wrap.type){case er.SQUARE:this.root.push(new Ds(a.floating.wrap,a.floating.margins));break;case er.TIGHT:this.root.push(new Ps(a.floating.margins));break;case er.TOP_AND_BOTTOM:this.root.push(new Bs(a.floating.margins));break;case er.NONE:default:this.root.push(new fr)}else this.root.push(new fr);this.root.push(new dr(a.docProperties)),this.root.push(new mr),this.root.push(new hr({mediaData:e,transform:t,outline:a.outline}))}},rd=({mediaData:r,transform:e,docProperties:t,outline:a})=>{var u,c,h,n;return new _e({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[new pr(e.emus.x,e.emus.y),nh(a?{top:((u=a.width)!=null?u:9525)*2,right:((c=a.width)!=null?c:9525)*2,bottom:((h=a.width)!=null?h:9525)*2,left:((n=a.width)!=null?n:9525)*2}:{top:0,right:0,bottom:0,left:0}),new dr(t),new mr,new hr({mediaData:r,transform:e,outline:a})]})},zs=class extends ne{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new Ws({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(rd({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline}))}},nd=r=>{if(typeof atob=="function"){let e=";base64,",t=r.indexOf(e),a=t===-1?0:t+e.length;return new Uint8Array(atob(r.substring(a)).split("").map(u=>u.charCodeAt(0)))}else{let e=require("buffer");return new e.Buffer(r,"base64")}},id=r=>typeof r=="string"?nd(r):r,_i=(r,e)=>({data:id(r.data),fileName:e,transformation:{pixels:{x:Math.round(r.transformation.width),y:Math.round(r.transformation.height)},emus:{x:Math.round(r.transformation.width*9525),y:Math.round(r.transformation.height*9525)},flip:r.transformation.flip,rotation:r.transformation.rotation?r.transformation.rotation*6e4:void 0}}),wr=class extends Ye{constructor(e){super({}),re(this,"imageData");let a=`${fl(e.data)}.${e.type}`;this.imageData=e.type==="svg"?$e(we({type:e.type},_i(e,a)),{fallback:we({type:e.fallback.type},_i($e(we({},e.fallback),{transformation:e.transformation}),`${fl(e.fallback.data)}.${e.fallback.type}`))}):we({type:e.type},_i(e,a));let u=new zs(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(u)}prepForXml(e){return e.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&e.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(e)}};var Gs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}};var Ks=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}};var qs=class extends ne{constructor({id:e,initials:t,author:a,date:u=new Date,children:c}){super("w:comment"),this.root.push(new Gs({id:e,initials:t,author:a,date:u.toISOString()}));for(let h of c)this.root.push(h)}},Vs=class extends ne{constructor({children:e}){super("w:comments"),this.root.push(new Ks({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(let t of e)this.root.push(new qs(t))}};var $s=class extends ne{constructor(){super("w:pageBreakBefore")}},Xs={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"},Zs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutoSpacing"})}},Ys=class extends ne{constructor(e){super("w:spacing"),this.root.push(new Zs(e))}};var tr=class extends ne{constructor(e){super("w:pStyle"),this.root.push(new ve({val:e}))}},Js=class extends ne{constructor(e){super("w:tabs");for(let t of e)this.root.push(new ea(t))}},pl={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};var Qs=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}},ea=class extends ne{constructor({type:e,position:t,leader:a}){super("w:tab"),this.root.push(new Qs({val:e,pos:t,leader:a}))}},Lt=class extends ne{constructor(e,t){super("w:numPr"),this.root.push(new ta(t)),this.root.push(new ra(e))}},ta=class extends ne{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new ve({val:e}))}},ra=class extends ne{constructor(e){super("w:numId"),this.root.push(new ve({val:typeof e=="string"?`{${e}}`:e}))}},na=class extends ne{constructor(){super(...arguments),re(this,"fileChild",Symbol())}},ia=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}},sd={EXTERNAL:"External"},sa=class extends ne{constructor(e,t,a,u){super("Relationship"),this.root.push(new ia({id:e,type:t,target:a,targetMode:u}))}},aa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}};var vt=class extends ne{constructor(e,t,a){super("w:hyperlink"),re(this,"linkId"),this.linkId=t;let u={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},c=new aa(u);this.root.push(c),e.forEach(h=>{this.root.push(h)})}},gr=class extends vt{constructor(e){super(e.children,eh(),e.anchor)}},Ut=class extends ne{constructor(e){super("w:externalHyperlink"),this.options=e}},oa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",name:"w:name"})}},ua=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id"})}},ca=class{constructor(e){re(this,"bookmarkUniqueNumericId",Gf()),re(this,"start"),re(this,"children"),re(this,"end");let t=this.bookmarkUniqueNumericId();this.start=new la(e.id,t),this.children=e.children,this.end=new ha(t)}},la=class extends ne{constructor(e,t){super("w:bookmarkStart");let a=new oa({name:e,id:t});this.root.push(a)}},ha=class extends ne{constructor(e){super("w:bookmarkEnd");let t=new ua({id:e});this.root.push(t)}},fa=class extends ne{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new ve({val:e}))}};var da=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{verticalAlign:"w:val"})}},pa=class extends ne{constructor(e){super("w:vAlign"),this.root.push(new da({verticalAlign:e}))}},ma=class extends ne{constructor({space:e,count:t,separate:a,equalWidth:u,children:c}){super("w:cols"),this.root.push(new Xe({space:{key:"w:space",value:e===void 0?void 0:ke(e)},count:{key:"w:num",value:t===void 0?void 0:Se(t)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:u}})),!u&&c&&c.forEach(h=>this.addChildElement(h))}};var wa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}},ga=class extends ne{constructor(e,t,a){super("w:docGrid"),this.root.push(new wa({type:a,linePitch:Se(e),charSpace:t?Se(t):void 0}))}},dt={DEFAULT:"default",FIRST:"first",EVEN:"even"},ya=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",id:"r:id"})}},ml={HEADER:"w:headerReference",FOOTER:"w:footerReference"},Pt=class extends ne{constructor(e,t){super(e),this.root.push(new ya({type:t.type||dt.DEFAULT,id:`rId${t.id}`}))}};var ad=({countBy:r,start:e,restart:t,distance:a})=>new _e({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:Se(r)},start:{key:"w:start",value:e===void 0?void 0:Se(e)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:a===void 0?void 0:ke(a)}}});var yr=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},va=class extends mt{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new yr({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new yr({})),e.pageBorderTop&&this.root.push(new ye("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ye("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ye("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ye("w:right",e.pageBorderRight))}},_a=class extends ne{constructor(e,t,a,u,c,h,n){super("w:pgMar"),this.root.push(new Xe({top:{key:"w:top",value:it(e)},right:{key:"w:right",value:ke(t)},bottom:{key:"w:bottom",value:it(a)},left:{key:"w:left",value:ke(u)},header:{key:"w:header",value:ke(c)},footer:{key:"w:footer",value:ke(h)},gutter:{key:"w:gutter",value:ke(n)}}))}};var ba=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}},Ea=class extends ne{constructor({start:e,formatType:t,separator:a}){super("w:pgNumType"),this.root.push(new ba({start:e===void 0?void 0:Se(e),formatType:t,separator:a}))}},ih={PORTRAIT:"portrait",LANDSCAPE:"landscape"},xa=class extends ne{constructor(e,t,a){super("w:pgSz");let u=a===ih.LANDSCAPE,c=ke(e),h=ke(t);this.root.push(new Xe({width:{key:"w:w",value:u?h:c},height:{key:"w:h",value:u?c:h},orientation:{key:"w:orient",value:a}}))}};var Ta=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Aa=class extends ne{constructor(e){super("w:textDirection"),this.root.push(new Ta({val:e}))}};var Sa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Ra=class extends ne{constructor(e){super("w:type"),this.root.push(new Sa({val:e}))}},rt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},bi={WIDTH:11906,HEIGHT:16838,ORIENTATION:ih.PORTRAIT},Ia=class extends ne{constructor({page:{size:{width:e=bi.WIDTH,height:t=bi.HEIGHT,orientation:a=bi.ORIENTATION}={},margin:{top:u=rt.TOP,right:c=rt.RIGHT,bottom:h=rt.BOTTOM,left:n=rt.LEFT,header:f=rt.HEADER,footer:A=rt.FOOTER,gutter:x=rt.GUTTER}={},pageNumbers:S={},borders:N,textDirection:T}={},grid:{linePitch:I=360,charSpace:_,type:R}={},headerWrapperGroup:o={},footerWrapperGroup:y={},lineNumbers:m,titlePage:l,verticalAlign:E,column:P,type:F}={}){super("w:sectPr"),this.addHeaderFooterGroup(ml.HEADER,o),this.addHeaderFooterGroup(ml.FOOTER,y),F&&this.root.push(new Ra(F)),this.root.push(new xa(e,t,a)),this.root.push(new _a(u,c,h,n,f,A,x)),N&&this.root.push(new va(N)),m&&this.root.push(ad(m)),this.root.push(new Ea(S)),P&&this.root.push(new ma(P)),E&&this.root.push(new pa(E)),l!==void 0&&this.root.push(new ce("w:titlePg",l)),T&&this.root.push(new Aa(T)),this.root.push(new ga(I,_,R))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new Pt(e,{type:dt.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(new Pt(e,{type:dt.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(new Pt(e,{type:dt.EVEN,id:t.even.View.ReferenceId}))}},Na=class extends ne{constructor(){super("w:body"),re(this,"sections",[])}addSection(e){let t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new Ia(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){let t=new Be({}),a=new Qe({});return a.push(e),t.addChildElement(a),t}};var wl={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},_t=class extends fe{constructor(e,t){super(we({Ignorable:t},Object.fromEntries(e.map(a=>[a,wl[a]])))),re(this,"xmlKeys",we({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(wl).map(a=>[a,`xmlns:${a}`]))))}},ka=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},Oa=class extends ne{constructor(e){super("w:background"),this.root.push(new ka({color:e.color===void 0?void 0:gt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Jc(e.themeShade),themeTint:e.themeTint===void 0?void 0:Jc(e.themeTint)}))}},Ca=class extends ne{constructor(e){super("w:document"),re(this,"body"),this.root.push(new _t(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new Na,e.background&&this.root.push(new Oa(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},Da=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns"})}},Je=class extends ne{constructor(){super("Relationships"),this.root.push(new Da({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,a,u){let c=new sa(`rId${e}`,t,a,u);return this.root.push(c),c}get RelationshipCount(){return this.root.length-1}},vr=class{constructor(e){re(this,"document"),re(this,"relationships"),this.document=new Ca(e),this.relationships=new Je}get View(){return this.document}get Relationships(){return this.relationships}},La=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Pa=class extends ne{constructor(){super("w:wordWrap"),this.root.push(new La({val:0}))}};var od=r=>{var e,t;return new _e({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:r.anchorLock},dropCap:{key:"w:dropCap",value:r.dropCap},width:{key:"w:w",value:r.width},height:{key:"w:h",value:r.height},x:{key:"w:x",value:r.position?r.position.x:void 0},y:{key:"w:y",value:r.position?r.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:r.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:r.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=r.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(t=r.space)==null?void 0:t.vertical},rule:{key:"w:hRule",value:r.rule},alignmentX:{key:"w:xAlign",value:r.alignment?r.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:r.alignment?r.alignment.y:void 0},lines:{key:"w:lines",value:r.lines},wrap:{key:"w:wrap",value:r.wrap}}})},Qe=class extends mt{constructor(e){var t,a;if(super("w:pPr"),re(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new tr(e.heading)),e.bullet&&this.push(new tr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new tr("ListParagraph"))),e.style&&this.push(new tr(e.style)),e.keepNext!==void 0&&this.push(new ce("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new ce("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new $s),e.frame&&this.push(od(e.frame)),e.widowControl!==void 0&&this.push(new ce("w:widowControl",e.widowControl)),e.bullet&&this.push(new Lt(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!=null?t:0}),this.push(new Lt(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))):e.numbering===!1&&this.push(new Lt(0,0)),e.border&&this.push(new Pi(e.border)),e.thematicBreak&&this.push(new Fi),e.shading&&this.push(new ar(e.shading)),e.wordWrap&&this.push(new Pa),e.overflowPunctuation&&this.push(new ce("w:overflowPunct",e.overflowPunctuation));let u=[...e.rightTabStop!==void 0?[{type:pl.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:pl.LEFT,position:e.leftTabStop}]:[]];u.length>0&&this.push(new Js(u)),e.bidirectional!==void 0&&this.push(new ce("w:bidi",e.bidirectional)),e.spacing&&this.push(new Ys(e.spacing)),e.indent&&this.push(new Bi(e.indent)),e.contextualSpacing!==void 0&&this.push(new ce("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Di(e.alignment)),e.outlineLevel!==void 0&&this.push(new fa(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new ce("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new ce("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ge(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof vr)for(let t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},Be=class extends na{constructor(e){if(super("w:p"),re(this,"properties"),typeof e=="string")return this.properties=new Qe({}),this.root.push(this.properties),this.root.push(new Fe(e)),this;if(this.properties=new Qe(e),this.root.push(this.properties),e.text&&this.root.push(new Fe(e.text)),e.children)for(let t of e.children){if(t instanceof ca){this.root.push(t.start);for(let a of t.children)this.root.push(a);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(let t of this.root)if(t instanceof Ut){let a=this.root.indexOf(t),u=new vt(t.options.children,eh());e.viewWrapper.Relationships.createRelationship(u.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,sd.EXTERNAL),this.root[a]=u}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}};var at={style:Gt.NONE,size:0,color:"auto"},ot={style:Gt.SINGLE,size:4,color:"auto"},Fa=class extends ne{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ye("w:top",e.top)):this.root.push(new ye("w:top",ot)),e.left?this.root.push(new ye("w:left",e.left)):this.root.push(new ye("w:left",ot)),e.bottom?this.root.push(new ye("w:bottom",e.bottom)):this.root.push(new ye("w:bottom",ot)),e.right?this.root.push(new ye("w:right",e.right)):this.root.push(new ye("w:right",ot)),e.insideHorizontal?this.root.push(new ye("w:insideH",e.insideHorizontal)):this.root.push(new ye("w:insideH",ot)),e.insideVertical?this.root.push(new ye("w:insideV",e.insideVertical)):this.root.push(new ye("w:insideV",ot))}};re(Fa,"NONE",{top:at,bottom:at,left:at,right:at,insideHorizontal:at,insideVertical:at});var Ba=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ua=class extends ne{constructor(){super("Properties"),this.root.push(new Ba({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},Ma=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns"})}},Ha=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}},Ne=class extends ne{constructor(e,t){super("Default"),this.root.push(new Ha({contentType:e,extension:t}))}},ja=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}},Ae=class extends ne{constructor(e,t){super("Override"),this.root.push(new ja({contentType:e,partName:t}))}},Wa=class extends ne{constructor(){super("Types"),this.root.push(new Ma({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Ne("image/png","png")),this.root.push(new Ne("image/jpeg","jpeg")),this.root.push(new Ne("image/jpeg","jpg")),this.root.push(new Ne("image/bmp","bmp")),this.root.push(new Ne("image/gif","gif")),this.root.push(new Ne("image/svg+xml","svg")),this.root.push(new Ne("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Ne("application/xml","xml")),this.root.push(new Ne("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Ae("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new Ae("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},za=class extends ne{constructor(e){super("cp:coreProperties"),this.root.push(new _t(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new We("dc:title",e.title)),e.subject&&this.root.push(new We("dc:subject",e.subject)),e.creator&&this.root.push(new We("dc:creator",e.creator)),e.keywords&&this.root.push(new We("cp:keywords",e.keywords)),e.description&&this.root.push(new We("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new We("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new We("cp:revision",String(e.revision))),this.root.push(new _r("dcterms:created")),this.root.push(new _r("dcterms:modified"))}},Ga=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"xsi:type"})}},_r=class extends ne{constructor(e){super(e),this.root.push(new Ga({type:"dcterms:W3CDTF"})),this.root.push(Af(new Date))}},Ka=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},qa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}},Va=class extends ne{constructor(e,t){super("property"),this.root.push(new qa({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new $a(t.value))}},$a=class extends ne{constructor(e){super("vt:lpwstr"),this.root.push(e)}},Xa=class extends ne{constructor(e){super("Properties"),re(this,"nextId"),re(this,"properties",[]),this.root.push(new Ka({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(let t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new Va(this.nextId++,e))}};var rr=({id:r,fontKey:e,subsetted:t},a)=>new _e({name:a,attributes:we({id:{key:"r:id",value:r}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...t?[new ce("w:subsetted",t)]:[]]}),ud=({name:r,altName:e,panose1:t,charset:a,family:u,notTrueType:c,pitch:h,sig:n,embedRegular:f,embedBold:A,embedItalic:x,embedBoldItalic:S})=>new _e({name:"w:font",attributes:{name:{key:"w:name",value:r}},children:[...e?[It("w:altName",e)]:[],...t?[It("w:panose1",t)]:[],...a?[It("w:charset",a)]:[],It("w:family",u),...c?[new ce("w:notTrueType",c)]:[],It("w:pitch",h),...n?[new _e({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:n.usb0},usb1:{key:"w:usb1",value:n.usb1},usb2:{key:"w:usb2",value:n.usb2},usb3:{key:"w:usb3",value:n.usb3},csb0:{key:"w:csb0",value:n.csb0},csb1:{key:"w:csb1",value:n.csb1}}})]:[],...f?[rr(f,"w:embedRegular")]:[],...A?[rr(A,"w:embedBold")]:[],...x?[rr(x,"w:embedItalic")]:[],...S?[rr(S,"w:embedBoldItalic")]:[]]}),cd=({name:r,index:e,fontKey:t,characterSet:a})=>ud({name:r,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:t,id:`rId${e}`}}),ld=r=>new _e({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:r.map((e,t)=>cd({name:e.name,index:t+1,fontKey:e.fontKey}))}),Za=class{constructor(e){re(this,"fontTable"),re(this,"relationships"),re(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>$e(we({},t),{fontKey:Kf()})),this.fontTable=ld(this.fontOptionsWithKey),this.relationships=new Je;for(let t=0;t<e.length;t++)this.relationships.createRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[t].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},Ya=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},hd=class extends sr{constructor(e,t){super("w:ftr",t),re(this,"refId"),this.refId=e,t||this.root.push(new Ya({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},Ja=class{constructor(e,t,a){re(this,"footer"),re(this,"relationships"),this.media=e,this.footer=new hd(t,a),this.relationships=new Je}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},Qa=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",id:"w:id"})}},eo=class extends ne{constructor(){super("w:footnoteRef")}},to=class extends Ye{constructor(){super({style:"FootnoteReference"}),this.root.push(new eo)}},gl={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},Ft=class extends ne{constructor(e){super("w:footnote"),this.root.push(new Qa({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){let a=e.children[t];t===0&&a.addRunToFront(new to),this.root.push(a)}}},ro=class extends ne{constructor(){super("w:continuationSeparator")}},no=class extends Ye{constructor(){super({}),this.root.push(new ro)}},io=class extends ne{constructor(){super("w:separator")}},so=class extends Ye{constructor(){super({}),this.root.push(new io)}},ao=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},oo=class extends ne{constructor(){super("w:footnotes"),this.root.push(new ao({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));let e=new Ft({id:-1,type:gl.SEPERATOR,children:[new Be({spacing:{after:0,line:240,lineRule:Xs.AUTO},children:[new so]})]});this.root.push(e);let t=new Ft({id:0,type:gl.CONTINUATION_SEPERATOR,children:[new Be({spacing:{after:0,line:240,lineRule:Xs.AUTO},children:[new no]})]});this.root.push(t)}createFootNote(e,t){let a=new Ft({id:e,children:t});this.root.push(a)}},uo=class{constructor(){re(this,"footnotess"),re(this,"relationships"),this.footnotess=new oo,this.relationships=new Je}get View(){return this.footnotess}get Relationships(){return this.relationships}},co=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},fd=class extends sr{constructor(e,t){super("w:hdr",t),re(this,"refId"),this.refId=e,t||this.root.push(new co({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},lo=class{constructor(e,t,a){re(this,"header"),re(this,"relationships"),this.media=e,this.header=new fd(t,a),this.relationships=new Je}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},ho=class{constructor(){re(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}};var je={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"},fo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},po=class extends ne{constructor(e){super("w:numFmt"),this.root.push(new ve({val:e}))}},mo=class extends ne{constructor(e){super("w:lvlText"),this.root.push(new ve({val:e}))}},wo=class extends ne{constructor(e){super("w:lvlJc"),this.root.push(new ve({val:e}))}};var go=class extends ne{constructor(e){super("w:suff"),this.root.push(new ve({val:e}))}},yo=class extends ne{constructor(){super("w:isLgl")}},vo=class extends ne{constructor({level:e,format:t,text:a,alignment:u=De.START,start:c=1,style:h,suffix:n,isLegalNumberingStyle:f}){if(super("w:lvl"),re(this,"paragraphProperties"),re(this,"runProperties"),this.root.push(new st("w:start",Se(c))),t&&this.root.push(new po(t)),n&&this.root.push(new go(n)),f&&this.root.push(new yo),a&&this.root.push(new mo(a)),this.root.push(new wo(u)),this.paragraphProperties=new Qe(h&&h.paragraph),this.runProperties=new Ge(h&&h.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new fo({ilvl:Se(e),tentative:1}))}},_o=class extends vo{};var bo=class extends ne{constructor(e){super("w:multiLevelType"),this.root.push(new ve({val:e}))}},Eo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},br=class extends ne{constructor(e,t){super("w:abstractNum"),re(this,"id"),this.root.push(new Eo({abstractNumId:Se(e),restartNumberingAfterBreak:0})),this.root.push(new bo("hybridMultilevel")),this.id=e;for(let a of t)this.root.push(new _o(a))}},xo=class extends ne{constructor(e){super("w:abstractNumId"),this.root.push(new ve({val:e}))}},To=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{numId:"w:numId"})}},Er=class extends ne{constructor(e){if(super("w:num"),re(this,"numId"),re(this,"reference"),re(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new To({numId:Se(e.numId)})),this.root.push(new xo(Se(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(let t of e.overrideLevels)this.root.push(new So(t.num,t.start))}},Ao=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{ilvl:"w:ilvl"})}},So=class extends ne{constructor(e,t){super("w:lvlOverride"),this.root.push(new Ao({ilvl:e})),t!==void 0&&this.root.push(new Io(t))}},Ro=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Io=class extends ne{constructor(e){super("w:startOverride"),this.root.push(new Ro({val:e}))}},No=class extends ne{constructor(e){super("w:numbering"),re(this,"abstractNumberingMap",new Map),re(this,"concreteNumberingMap",new Map),re(this,"referenceConfigMap",new Map),re(this,"abstractNumUniqueNumericId",jf()),re(this,"concreteNumUniqueNumericId",Wf()),this.root.push(new _t(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));let t=new br(this.abstractNumUniqueNumericId(),[{level:0,format:je.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:Re(.5),hanging:Re(.25)}}}},{level:1,format:je.BULLET,text:"\u25CB",alignment:De.LEFT,style:{paragraph:{indent:{left:Re(1),hanging:Re(.25)}}}},{level:2,format:je.BULLET,text:"\u25A0",alignment:De.LEFT,style:{paragraph:{indent:{left:2160,hanging:Re(.25)}}}},{level:3,format:je.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:2880,hanging:Re(.25)}}}},{level:4,format:je.BULLET,text:"\u25CB",alignment:De.LEFT,style:{paragraph:{indent:{left:3600,hanging:Re(.25)}}}},{level:5,format:je.BULLET,text:"\u25A0",alignment:De.LEFT,style:{paragraph:{indent:{left:4320,hanging:Re(.25)}}}},{level:6,format:je.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:5040,hanging:Re(.25)}}}},{level:7,format:je.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:5760,hanging:Re(.25)}}}},{level:8,format:je.BULLET,text:"\u25CF",alignment:De.LEFT,style:{paragraph:{indent:{left:6480,hanging:Re(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Er({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(let a of e.config)this.abstractNumberingMap.set(a.reference,new br(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(let t of this.abstractNumberingMap.values())this.root.push(t);for(let t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){let a=this.abstractNumberingMap.get(e);if(!a)return;let u=`${e}-${t}`;if(this.concreteNumberingMap.has(u))return;let c=this.referenceConfigMap.get(e),h=c&&c[0].start,n={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:t,overrideLevels:[h&&Number.isInteger(h)?{num:0,start:h}:{num:0,start:1}]};this.concreteNumberingMap.set(u,new Er(n))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},ko=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}},Oo=class extends ne{constructor(e){super("w:compatSetting"),this.root.push(new ko({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}},Co=class extends ne{constructor(e){super("w:compat"),e.version&&this.root.push(new Oo(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new ce("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new ce("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new ce("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new ce("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new ce("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new ce("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new ce("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new ce("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new ce("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new ce("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new ce("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new ce("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new ce("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new ce("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new ce("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new ce("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new ce("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new ce("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new ce("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new ce("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new ce("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new ce("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new ce("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new ce("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new ce("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new ce("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new ce("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new ce("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new ce("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new ce("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new ce("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new ce("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new ce("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new ce("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new ce("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new ce("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new ce("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new ce("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new ce("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new ce("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new ce("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new ce("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new ce("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new ce("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new ce("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new ce("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new ce("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new ce("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new ce("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new ce("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new ce("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new ce("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new ce("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new ce("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new ce("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new ce("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new ce("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new ce("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new ce("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new ce("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new ce("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new ce("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new ce("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new ce("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new ce("w:cachedColBalance",e.cachedColumnBalance))}},Do=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Lo=class extends ne{constructor(e){var t,a,u,c,h,n,f,A;super("w:settings"),this.root.push(new Do({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new ce("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new ce("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new ce("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new ce("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new st("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)==null?void 0:t.autoHyphenation)!==void 0&&this.root.push(new ce("w:autoHyphenation",e.hyphenation.autoHyphenation)),((a=e.hyphenation)==null?void 0:a.hyphenationZone)!==void 0&&this.root.push(new st("w:hyphenationZone",e.hyphenation.hyphenationZone)),((u=e.hyphenation)==null?void 0:u.consecutiveHyphenLimit)!==void 0&&this.root.push(new st("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((c=e.hyphenation)==null?void 0:c.doNotHyphenateCaps)!==void 0&&this.root.push(new ce("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new Co($e(we({},(h=e.compatibility)!=null?h:{}),{version:(A=(f=(n=e.compatibility)==null?void 0:n.version)!=null?f:e.compatibilityModeVersion)!=null?A:15})))}},xr=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}},Po=class extends ne{constructor(e){super("w:name"),this.root.push(new xr({val:e}))}},Fo=class extends ne{constructor(e){super("w:uiPriority"),this.root.push(new xr({val:Se(e)}))}},Bo=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},Tr=class extends ne{constructor(e,t){super("w:style"),this.root.push(new Bo(e)),t.name&&this.root.push(new Po(t.name)),t.basedOn&&this.root.push(new Ve("w:basedOn",t.basedOn)),t.next&&this.root.push(new Ve("w:next",t.next)),t.link&&this.root.push(new Ve("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new Fo(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new ce("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new ce("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new ce("w:qFormat",t.quickFormat))}},bt=class extends Tr{constructor(e){super({type:"paragraph",styleId:e.id},e),re(this,"paragraphProperties"),re(this,"runProperties"),this.paragraphProperties=new Qe(e.paragraph),this.runProperties=new Ge(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},Et=class extends Tr{constructor(e){super({type:"character",styleId:e.id},we({uiPriority:99,unhideWhenUsed:!0},e)),re(this,"runProperties"),this.runProperties=new Ge(e.run),this.root.push(this.runProperties)}},Ue=class extends bt{constructor(e){super(we({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},Uo=class extends Ue{constructor(e){super(we({id:"Title",name:"Title"},e))}},Mo=class extends Ue{constructor(e){super(we({id:"Heading1",name:"Heading 1"},e))}},Ho=class extends Ue{constructor(e){super(we({id:"Heading2",name:"Heading 2"},e))}},jo=class extends Ue{constructor(e){super(we({id:"Heading3",name:"Heading 3"},e))}},Wo=class extends Ue{constructor(e){super(we({id:"Heading4",name:"Heading 4"},e))}},zo=class extends Ue{constructor(e){super(we({id:"Heading5",name:"Heading 5"},e))}},Go=class extends Ue{constructor(e){super(we({id:"Heading6",name:"Heading 6"},e))}},Ko=class extends Ue{constructor(e){super(we({id:"Strong",name:"Strong"},e))}},qo=class extends bt{constructor(e){super(we({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}},Vo=class extends bt{constructor(e){super(we({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Xs.AUTO}},run:{size:20}},e))}},$o=class extends Et{constructor(e){super(we({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},Xo=class extends Et{constructor(e){super(we({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},Zo=class extends Et{constructor(e){super(we({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:Zl.SINGLE}}},e))}},Mt=class extends ne{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(let t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(let t of e.paragraphStyles)this.root.push(new bt(t));if(e.characterStyles)for(let t of e.characterStyles)this.root.push(new Et(t))}},Yo=class extends ne{constructor(e){super("w:pPrDefault"),this.root.push(new Qe(e))}},Jo=class extends ne{constructor(e){super("w:rPrDefault"),this.root.push(new Ge(e))}},Qo=class extends ne{constructor(e){super("w:docDefaults"),re(this,"runPropertiesDefaults"),re(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new Jo(e.run),this.paragraphPropertiesDefaults=new Yo(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},eu=class{newInstance(e){let t=Kl.xml2js(e,{compact:!1}),a;for(let h of t.elements||[])h.name==="w:styles"&&(a=h);if(a===void 0)throw new Error("can not find styles element");let u=a.elements||[];return new Mt({initialStyles:new Oi(a.attributes),importedStyles:u.map(h=>pu(h))})}},Ar=class{newInstance(e={}){var t;return{initialStyles:new _t(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new Qo((t=e.document)!=null?t:{}),new Uo(we({run:{size:56}},e.title)),new Mo(we({run:{color:"2E74B5",size:32}},e.heading1)),new Ho(we({run:{color:"2E74B5",size:26}},e.heading2)),new jo(we({run:{color:"1F4D78",size:24}},e.heading3)),new Wo(we({run:{color:"2E74B5",italics:!0}},e.heading4)),new zo(we({run:{color:"2E74B5"}},e.heading5)),new Go(we({run:{color:"1F4D78"}},e.heading6)),new Ko(we({run:{bold:!0}},e.strong)),new qo(e.listParagraph||{}),new Zo(e.hyperlink||{}),new $o(e.footnoteReference||{}),new Vo(e.footnoteText||{}),new Xo(e.footnoteTextChar||{})]}}},Sr=class{constructor(e){re(this,"currentRelationshipId",1),re(this,"documentWrapper"),re(this,"headers",[]),re(this,"footers",[]),re(this,"coreProperties"),re(this,"numbering"),re(this,"media"),re(this,"fileRelationships"),re(this,"footnotesWrapper"),re(this,"settings"),re(this,"contentTypes"),re(this,"customProperties"),re(this,"appProperties"),re(this,"styles"),re(this,"comments"),re(this,"fontWrapper");var t,a,u,c,h,n,f,A,x,S,N,T;if(this.coreProperties=new za($e(we({},e),{creator:(t=e.creator)!=null?t:"Un-named",revision:(a=e.revision)!=null?a:1,lastModifiedBy:(u=e.lastModifiedBy)!=null?u:"Un-named"})),this.numbering=new No(e.numbering?e.numbering:{config:[]}),this.comments=new Vs((c=e.comments)!=null?c:{children:[]}),this.fileRelationships=new Je,this.customProperties=new Xa((h=e.customProperties)!=null?h:[]),this.appProperties=new Ua,this.footnotesWrapper=new uo,this.contentTypes=new Wa,this.documentWrapper=new vr({background:e.background}),this.settings=new Lo({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(n=e.features)==null?void 0:n.trackRevisions,updateFields:(f=e.features)==null?void 0:f.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(A=e.hyphenation)==null?void 0:A.autoHyphenation,hyphenationZone:(x=e.hyphenation)==null?void 0:x.hyphenationZone,consecutiveHyphenLimit:(S=e.hyphenation)==null?void 0:S.consecutiveHyphenLimit,doNotHyphenateCaps:(N=e.hyphenation)==null?void 0:N.doNotHyphenateCaps}}),this.media=new ho,e.externalStyles!==void 0){let I=new eu;this.styles=I.newInstance(e.externalStyles)}else if(e.styles){let _=new Ar().newInstance(e.styles.default);this.styles=new Mt(we(we({},_),e.styles))}else{let I=new Ar;this.styles=new Mt(I.newInstance())}this.addDefaultRelationships();for(let I of e.sections)this.addSection(I);if(e.footnotes)for(let I in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(I),e.footnotes[I].children);this.fontWrapper=new Za((T=e.fonts)!=null?T:[])}addSection({headers:e={},footers:t={},children:a,properties:u}){this.documentWrapper.View.Body.addSection($e(we({},u),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(let c of a)this.documentWrapper.View.add(c)}createHeader(e){let t=new lo(this.media,this.currentRelationshipId++);for(let a of e.options.children)t.add(a);return this.addHeaderToDocument(t),t}createFooter(e){let t=new Ja(this.media,this.currentRelationshipId++);for(let a of e.options.children)t.add(a);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=dt.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=dt.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}};var tu=class extends fe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id"})}},ru=class extends ne{constructor(e){super("w:footnoteReference"),this.root.push(new tu({id:e}))}},Rr=class extends Ye{constructor(e){super({style:"FootnoteReference"}),this.root.push(new ru(e))}};var dd=hu();function nr(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ei={exports:{}},yl;function pd(){return yl||(yl=1,function(r,e){(function(t){r.exports=t()})(function(){return function t(a,u,c){function h(A,x){if(!u[A]){if(!a[A]){var S=typeof nr=="function"&&nr;if(!x&&S)return S(A,!0);if(n)return n(A,!0);var N=new Error("Cannot find module '"+A+"'");throw N.code="MODULE_NOT_FOUND",N}var T=u[A]={exports:{}};a[A][0].call(T.exports,function(I){var _=a[A][1][I];return h(_||I)},T,T.exports,t,a,u,c)}return u[A].exports}for(var n=typeof nr=="function"&&nr,f=0;f<c.length;f++)h(c[f]);return h}({1:[function(t,a,u){var c=t("./utils"),h=t("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";u.encode=function(f){for(var A,x,S,N,T,I,_,R=[],o=0,y=f.length,m=y,l=c.getTypeOf(f)!=="string";o<f.length;)m=y-o,S=l?(A=f[o++],x=o<y?f[o++]:0,o<y?f[o++]:0):(A=f.charCodeAt(o++),x=o<y?f.charCodeAt(o++):0,o<y?f.charCodeAt(o++):0),N=A>>2,T=(3&A)<<4|x>>4,I=1<m?(15&x)<<2|S>>6:64,_=2<m?63&S:64,R.push(n.charAt(N)+n.charAt(T)+n.charAt(I)+n.charAt(_));return R.join("")},u.decode=function(f){var A,x,S,N,T,I,_=0,R=0,o="data:";if(f.substr(0,o.length)===o)throw new Error("Invalid base64 input, it looks like a data url.");var y,m=3*(f=f.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(f.charAt(f.length-1)===n.charAt(64)&&m--,f.charAt(f.length-2)===n.charAt(64)&&m--,m%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=h.uint8array?new Uint8Array(0|m):new Array(0|m);_<f.length;)A=n.indexOf(f.charAt(_++))<<2|(N=n.indexOf(f.charAt(_++)))>>4,x=(15&N)<<4|(T=n.indexOf(f.charAt(_++)))>>2,S=(3&T)<<6|(I=n.indexOf(f.charAt(_++))),y[R++]=A,T!==64&&(y[R++]=x),I!==64&&(y[R++]=S);return y}},{"./support":30,"./utils":32}],2:[function(t,a,u){var c=t("./external"),h=t("./stream/DataWorker"),n=t("./stream/Crc32Probe"),f=t("./stream/DataLengthProbe");function A(x,S,N,T,I){this.compressedSize=x,this.uncompressedSize=S,this.crc32=N,this.compression=T,this.compressedContent=I}A.prototype={getContentWorker:function(){var x=new h(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),S=this;return x.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),x},getCompressedWorker:function(){return new h(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},A.createWorkerFrom=function(x,S,N){return x.pipe(new n).pipe(new f("uncompressedSize")).pipe(S.compressWorker(N)).pipe(new f("compressedSize")).withStreamInfo("compression",S)},a.exports=A},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,a,u){var c=t("./stream/GenericWorker");u.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},u.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,a,u){var c=t("./utils"),h=function(){for(var n,f=[],A=0;A<256;A++){n=A;for(var x=0;x<8;x++)n=1&n?3988292384^n>>>1:n>>>1;f[A]=n}return f}();a.exports=function(n,f){return n!==void 0&&n.length?c.getTypeOf(n)!=="string"?function(A,x,S,N){var T=h,I=N+S;A^=-1;for(var _=N;_<I;_++)A=A>>>8^T[255&(A^x[_])];return-1^A}(0|f,n,n.length,0):function(A,x,S,N){var T=h,I=N+S;A^=-1;for(var _=N;_<I;_++)A=A>>>8^T[255&(A^x.charCodeAt(_))];return-1^A}(0|f,n,n.length,0):0}},{"./utils":32}],5:[function(t,a,u){u.base64=!1,u.binary=!1,u.dir=!1,u.createFolders=!0,u.date=null,u.compression=null,u.compressionOptions=null,u.comment=null,u.unixPermissions=null,u.dosPermissions=null},{}],6:[function(t,a,u){var c=null;c=typeof Promise!="undefined"?Promise:t("lie"),a.exports={Promise:c}},{lie:37}],7:[function(t,a,u){var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",h=t("pako"),n=t("./utils"),f=t("./stream/GenericWorker"),A=c?"uint8array":"array";function x(S,N){f.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=N,this.meta={}}u.magic="\b\0",n.inherits(x,f),x.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(A,S.data),!1)},x.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},x.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},x.prototype._createPako=function(){this._pako=new h[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(N){S.push({data:N,meta:S.meta})}},u.compressWorker=function(S){return new x("Deflate",S)},u.uncompressWorker=function(){return new x("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,a,u){function c(T,I){var _,R="";for(_=0;_<I;_++)R+=String.fromCharCode(255&T),T>>>=8;return R}function h(T,I,_,R,o,y){var m,l,E=T.file,P=T.compression,F=y!==A.utf8encode,W=n.transformTo("string",y(E.name)),k=n.transformTo("string",A.utf8encode(E.name)),X=E.comment,ue=n.transformTo("string",y(X)),O=n.transformTo("string",A.utf8encode(X)),M=k.length!==E.name.length,g=O.length!==X.length,q="",ee="",z="",se=E.dir,Q=E.date,le={crc32:0,compressedSize:0,uncompressedSize:0};I&&!_||(le.crc32=T.crc32,le.compressedSize=T.compressedSize,le.uncompressedSize=T.uncompressedSize);var V=0;I&&(V|=8),F||!M&&!g||(V|=2048);var D=0,$=0;se&&(D|=16),o==="UNIX"?($=798,D|=function(te,K){var v=te;return te||(v=K?16893:33204),(65535&v)<<16}(E.unixPermissions,se)):($=20,D|=function(te){return 63&(te||0)}(E.dosPermissions)),m=Q.getUTCHours(),m<<=6,m|=Q.getUTCMinutes(),m<<=5,m|=Q.getUTCSeconds()/2,l=Q.getUTCFullYear()-1980,l<<=4,l|=Q.getUTCMonth()+1,l<<=5,l|=Q.getUTCDate(),M&&(ee=c(1,1)+c(x(W),4)+k,q+="up"+c(ee.length,2)+ee),g&&(z=c(1,1)+c(x(ue),4)+O,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(l,2),Z+=c(le.crc32,4),Z+=c(le.compressedSize,4),Z+=c(le.uncompressedSize,4),Z+=c(W.length,2),Z+=c(q.length,2),{fileRecord:S.LOCAL_FILE_HEADER+Z+W+q,dirRecord:S.CENTRAL_FILE_HEADER+c($,2)+Z+c(ue.length,2)+"\0\0\0\0"+c(D,4)+c(R,4)+W+q+ue}}var n=t("../utils"),f=t("../stream/GenericWorker"),A=t("../utf8"),x=t("../crc32"),S=t("../signature");function N(T,I,_,R){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=_,this.encodeFileName=R,this.streamFiles=T,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(N,f),N.prototype.push=function(T){var I=T.meta.percent||0,_=this.entriesCount,R=this._sources.length;this.accumulate?this.contentBuffer.push(T):(this.bytesWritten+=T.data.length,f.prototype.push.call(this,{data:T.data,meta:{currentFile:this.currentFile,percent:_?(I+100*(_-R-1))/_:100}}))},N.prototype.openedSource=function(T){this.currentSourceOffset=this.bytesWritten,this.currentFile=T.file.name;var I=this.streamFiles&&!T.file.dir;if(I){var _=h(T,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:_.fileRecord,meta:{percent:0}})}else this.accumulate=!0},N.prototype.closedSource=function(T){this.accumulate=!1;var I=this.streamFiles&&!T.file.dir,_=h(T,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(_.dirRecord),I)this.push({data:function(R){return S.DATA_DESCRIPTOR+c(R.crc32,4)+c(R.compressedSize,4)+c(R.uncompressedSize,4)}(T),meta:{percent:100}});else for(this.push({data:_.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},N.prototype.flush=function(){for(var T=this.bytesWritten,I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var _=this.bytesWritten-T,R=function(o,y,m,l,E){var P=n.transformTo("string",E(l));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(o,2)+c(o,2)+c(y,4)+c(m,4)+c(P.length,2)+P}(this.dirRecords.length,_,T,this.zipComment,this.encodeFileName);this.push({data:R,meta:{percent:100}})},N.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},N.prototype.registerPrevious=function(T){this._sources.push(T);var I=this;return T.on("data",function(_){I.processChunk(_)}),T.on("end",function(){I.closedSource(I.previous.streamInfo),I._sources.length?I.prepareNextSource():I.end()}),T.on("error",function(_){I.error(_)}),this},N.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},N.prototype.error=function(T){var I=this._sources;if(!f.prototype.error.call(this,T))return!1;for(var _=0;_<I.length;_++)try{I[_].error(T)}catch{}return!0},N.prototype.lock=function(){f.prototype.lock.call(this);for(var T=this._sources,I=0;I<T.length;I++)T[I].lock()},a.exports=N},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,a,u){var c=t("../compressions"),h=t("./ZipFileWorker");u.generateWorker=function(n,f,A){var x=new h(f.streamFiles,A,f.platform,f.encodeFileName),S=0;try{n.forEach(function(N,T){S++;var I=function(y,m){var l=y||m,E=c[l];if(!E)throw new Error(l+" is not a valid compression method !");return E}(T.options.compression,f.compression),_=T.options.compressionOptions||f.compressionOptions||{},R=T.dir,o=T.date;T._compressWorker(I,_).withStreamInfo("file",{name:N,dir:R,date:o,comment:T.comment||"",unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions}).pipe(x)}),x.entriesCount=S}catch(N){x.error(N)}return x}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,a,u){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 h=new c;for(var n in this)typeof this[n]!="function"&&(h[n]=this[n]);return h}}(c.prototype=t("./object")).loadAsync=t("./load"),c.support=t("./support"),c.defaults=t("./defaults"),c.version="3.10.1",c.loadAsync=function(h,n){return new c().loadAsync(h,n)},c.external=t("./external"),a.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,a,u){var c=t("./utils"),h=t("./external"),n=t("./utf8"),f=t("./zipEntries"),A=t("./stream/Crc32Probe"),x=t("./nodejsUtils");function S(N){return new h.Promise(function(T,I){var _=N.decompressed.getContentWorker().pipe(new A);_.on("error",function(R){I(R)}).on("end",function(){_.streamInfo.crc32!==N.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):T()}).resume()})}a.exports=function(N,T){var I=this;return T=c.extend(T||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),x.isNode&&x.isStream(N)?h.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",N,!0,T.optimizedBinaryString,T.base64).then(function(_){var R=new f(T);return R.load(_),R}).then(function(_){var R=[h.Promise.resolve(_)],o=_.files;if(T.checkCRC32)for(var y=0;y<o.length;y++)R.push(S(o[y]));return h.Promise.all(R)}).then(function(_){for(var R=_.shift(),o=R.files,y=0;y<o.length;y++){var m=o[y],l=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:T.createFolders}),m.dir||(I.file(E).unsafeOriginalName=l)}return R.zipComment.length&&(I.comment=R.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,a,u){var c=t("../utils"),h=t("../stream/GenericWorker");function n(f,A){h.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(A)}c.inherits(n,h),n.prototype._bindStream=function(f){var A=this;(this._stream=f).pause(),f.on("data",function(x){A.push({data:x,meta:{percent:0}})}).on("error",function(x){A.isPaused?this.generatedError=x:A.error(x)}).on("end",function(){A.isPaused?A._upstreamEnded=!0:A.end()})},n.prototype.pause=function(){return!!h.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,a,u){var c=t("readable-stream").Readable;function h(n,f,A){c.call(this,f),this._helper=n;var x=this;n.on("data",function(S,N){x.push(S)||x._helper.pause(),A&&A(N)}).on("error",function(S){x.emit("error",S)}).on("end",function(){x.push(null)})}t("../utils").inherits(h,c),h.prototype._read=function(){this._helper.resume()},a.exports=h},{"../utils":32,"readable-stream":16}],14:[function(t,a,u){a.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(c,h){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,h);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,h)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var h=new Buffer(c);return h.fill(0),h},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(t,a,u){function c(E,P,F){var W,k=n.getTypeOf(P),X=n.extend(F||{},x);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=o(E)),X.createFolders&&(W=R(E))&&y.call(this,W,!0);var ue=k==="string"&&X.binary===!1&&X.base64===!1;F&&F.binary!==void 0||(X.binary=!ue),(P instanceof S&&P.uncompressedSize===0||X.dir||!P||P.length===0)&&(X.base64=!1,X.binary=!0,P="",X.compression="STORE",k="string");var O=null;O=P instanceof S||P instanceof f?P:I.isNode&&I.isStream(P)?new _(E,P):n.prepareContent(E,P,X.binary,X.optimizedBinaryString,X.base64);var M=new N(E,O,X);this.files[E]=M}var h=t("./utf8"),n=t("./utils"),f=t("./stream/GenericWorker"),A=t("./stream/StreamHelper"),x=t("./defaults"),S=t("./compressedObject"),N=t("./zipObject"),T=t("./generate"),I=t("./nodejsUtils"),_=t("./nodejs/NodejsStreamInputAdapter"),R=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var P=E.lastIndexOf("/");return 0<P?E.substring(0,P):""},o=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},y=function(E,P){return P=P!==void 0?P:x.createFolders,E=o(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 l={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,ue){return!ue.dir&&W.test(X)})}var k=this.files[this.root+E];return k&&!k.dir?k:null},folder:function(E){if(!E)return this;if(m(E))return this.filter(function(k,X){return X.dir&&E.test(k)});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(k,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=n.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:h.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.");n.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=T.generateWorker(this,F,W)}catch(k){(P=new f("error")).error(k)}return new A(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=l},{"./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(t,a,u){a.exports=t("stream")},{stream:void 0}],17:[function(t,a,u){var c=t("./DataReader");function h(n){c.call(this,n);for(var f=0;f<this.data.length;f++)n[f]=255&n[f]}t("../utils").inherits(h,c),h.prototype.byteAt=function(n){return this.data[this.zero+n]},h.prototype.lastIndexOfSignature=function(n){for(var f=n.charCodeAt(0),A=n.charCodeAt(1),x=n.charCodeAt(2),S=n.charCodeAt(3),N=this.length-4;0<=N;--N)if(this.data[N]===f&&this.data[N+1]===A&&this.data[N+2]===x&&this.data[N+3]===S)return N-this.zero;return-1},h.prototype.readAndCheckSignature=function(n){var f=n.charCodeAt(0),A=n.charCodeAt(1),x=n.charCodeAt(2),S=n.charCodeAt(3),N=this.readData(4);return f===N[0]&&A===N[1]&&x===N[2]&&S===N[3]},h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,f},a.exports=h},{"../utils":32,"./DataReader":18}],18:[function(t,a,u){var c=t("../utils");function h(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}h.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var f,A=0;for(this.checkOffset(n),f=this.index+n-1;f>=this.index;f--)A=(A<<8)+this.byteAt(f);return this.index+=n,A},readString:function(n){return c.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},a.exports=h},{"../utils":32}],19:[function(t,a,u){var c=t("./Uint8ArrayReader");function h(n){c.call(this,n)}t("../utils").inherits(h,c),h.prototype.readData=function(n){this.checkOffset(n);var f=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,f},a.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,a,u){var c=t("./DataReader");function h(n){c.call(this,n)}t("../utils").inherits(h,c),h.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},h.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},h.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},h.prototype.readData=function(n){this.checkOffset(n);var f=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,f},a.exports=h},{"../utils":32,"./DataReader":18}],21:[function(t,a,u){var c=t("./ArrayReader");function h(n){c.call(this,n)}t("../utils").inherits(h,c),h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,f},a.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(t,a,u){var c=t("../utils"),h=t("../support"),n=t("./ArrayReader"),f=t("./StringReader"),A=t("./NodeBufferReader"),x=t("./Uint8ArrayReader");a.exports=function(S){var N=c.getTypeOf(S);return c.checkSupport(N),N!=="string"||h.uint8array?N==="nodebuffer"?new A(S):h.uint8array?new x(c.transformTo("uint8array",S)):new n(c.transformTo("array",S)):new f(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,a,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,a,u){var c=t("./GenericWorker"),h=t("../utils");function n(f){c.call(this,"ConvertWorker to "+f),this.destType=f}h.inherits(n,c),n.prototype.processChunk=function(f){this.push({data:h.transformTo(this.destType,f.data),meta:f.meta})},a.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(t,a,u){var c=t("./GenericWorker"),h=t("../crc32");function n(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(n,c),n.prototype.processChunk=function(f){this.streamInfo.crc32=h(f.data,this.streamInfo.crc32||0),this.push(f)},a.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,a,u){var c=t("../utils"),h=t("./GenericWorker");function n(f){h.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}c.inherits(n,h),n.prototype.processChunk=function(f){if(f){var A=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=A+f.data.length}h.prototype.processChunk.call(this,f)},a.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(t,a,u){var c=t("../utils"),h=t("./GenericWorker");function n(f){h.call(this,"DataWorker");var A=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(x){A.dataIsReady=!0,A.data=x,A.max=x&&x.length||0,A.type=c.getTypeOf(x),A.isPaused||A._tickAndRepeat()},function(x){A.error(x)})}c.inherits(n,h),n.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,A=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,A);break;case"uint8array":f=this.data.subarray(this.index,A);break;case"array":case"nodebuffer":f=this.data.slice(this.index,A)}return this.index=A,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(t,a,u){function c(h){this.name=h||"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(h){this.emit("data",h)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(h){this.emit("error",h)}return!0},error:function(h){return!this.isFinished&&(this.isPaused?this.generatedError=h:(this.isFinished=!0,this.emit("error",h),this.previous&&this.previous.error(h),this.cleanUp()),!0)},on:function(h,n){return this._listeners[h].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(h,n){if(this._listeners[h])for(var f=0;f<this._listeners[h].length;f++)this._listeners[h][f].call(this,n)},pipe:function(h){return h.registerPrevious(this)},registerPrevious:function(h){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=h.streamInfo,this.mergeStreamInfo(),this.previous=h;var n=this;return h.on("data",function(f){n.processChunk(f)}),h.on("end",function(){n.end()}),h.on("error",function(f){n.error(f)}),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 h=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),h=!0),this.previous&&this.previous.resume(),!h},flush:function(){},processChunk:function(h){this.push(h)},withStreamInfo:function(h,n){return this.extraStreamInfo[h]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var h in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,h)&&(this.streamInfo[h]=this.extraStreamInfo[h])},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 h="Worker "+this.name;return this.previous?this.previous+" -> "+h:h}},a.exports=c},{}],29:[function(t,a,u){var c=t("../utils"),h=t("./ConvertWorker"),n=t("./GenericWorker"),f=t("../base64"),A=t("../support"),x=t("../external"),S=null;if(A.nodestream)try{S=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function N(I,_){return new x.Promise(function(R,o){var y=[],m=I._internalType,l=I._outputType,E=I._mimeType;I.on("data",function(P,F){y.push(P),_&&_(F)}).on("error",function(P){y=[],o(P)}).on("end",function(){try{var P=function(F,W,k){switch(F){case"blob":return c.newBlob(c.transformTo("arraybuffer",W),k);case"base64":return f.encode(W);default:return c.transformTo(F,W)}}(l,function(F,W){var k,X=0,ue=null,O=0;for(k=0;k<W.length;k++)O+=W[k].length;switch(F){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ue=new Uint8Array(O),k=0;k<W.length;k++)ue.set(W[k],X),X+=W[k].length;return ue;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+F+"'")}}(m,y),E);R(P)}catch(F){o(F)}y=[]}).resume()})}function T(I,_,R){var o=_;switch(_){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=_,this._mimeType=R,c.checkSupport(o),this._worker=I.pipe(new h(o)),I.lock()}catch(y){this._worker=new n("error"),this._worker.error(y)}}T.prototype={accumulate:function(I){return N(this,I)},on:function(I,_){var R=this;return I==="data"?this._worker.on(I,function(o){_.call(R,o.data,o.meta)}):this._worker.on(I,function(){c.delay(_,arguments,R)}),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 S(this,{objectMode:this._outputType!=="nodebuffer"},I)}},a.exports=T},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,a,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",u.nodebuffer=typeof Buffer!="undefined",u.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")u.blob=!1;else{var c=new ArrayBuffer(0);try{u.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);h.append(c),u.blob=h.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!t("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(t,a,u){for(var c=t("./utils"),h=t("./support"),n=t("./nodejsUtils"),f=t("./stream/GenericWorker"),A=new Array(256),x=0;x<256;x++)A[x]=252<=x?6:248<=x?5:240<=x?4:224<=x?3:192<=x?2:1;A[254]=A[254]=1;function S(){f.call(this,"utf-8 decode"),this.leftOver=null}function N(){f.call(this,"utf-8 encode")}u.utf8encode=function(T){return h.nodebuffer?n.newBufferFrom(T,"utf-8"):function(I){var _,R,o,y,m,l=I.length,E=0;for(y=0;y<l;y++)(64512&(R=I.charCodeAt(y)))==55296&&y+1<l&&(64512&(o=I.charCodeAt(y+1)))==56320&&(R=65536+(R-55296<<10)+(o-56320),y++),E+=R<128?1:R<2048?2:R<65536?3:4;for(_=h.uint8array?new Uint8Array(E):new Array(E),y=m=0;m<E;y++)(64512&(R=I.charCodeAt(y)))==55296&&y+1<l&&(64512&(o=I.charCodeAt(y+1)))==56320&&(R=65536+(R-55296<<10)+(o-56320),y++),R<128?_[m++]=R:(R<2048?_[m++]=192|R>>>6:(R<65536?_[m++]=224|R>>>12:(_[m++]=240|R>>>18,_[m++]=128|R>>>12&63),_[m++]=128|R>>>6&63),_[m++]=128|63&R);return _}(T)},u.utf8decode=function(T){return h.nodebuffer?c.transformTo("nodebuffer",T).toString("utf-8"):function(I){var _,R,o,y,m=I.length,l=new Array(2*m);for(_=R=0;_<m;)if((o=I[_++])<128)l[R++]=o;else if(4<(y=A[o]))l[R++]=65533,_+=y-1;else{for(o&=y===2?31:y===3?15:7;1<y&&_<m;)o=o<<6|63&I[_++],y--;1<y?l[R++]=65533:o<65536?l[R++]=o:(o-=65536,l[R++]=55296|o>>10&1023,l[R++]=56320|1023&o)}return l.length!==R&&(l.subarray?l=l.subarray(0,R):l.length=R),c.applyFromCharCode(l)}(T=c.transformTo(h.uint8array?"uint8array":"array",T))},c.inherits(S,f),S.prototype.processChunk=function(T){var I=c.transformTo(h.uint8array?"uint8array":"array",T.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var _=I;(I=new Uint8Array(_.length+this.leftOver.length)).set(this.leftOver,0),I.set(_,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var R=function(y,m){var l;for((m=m||y.length)>y.length&&(m=y.length),l=m-1;0<=l&&(192&y[l])==128;)l--;return l<0||l===0?m:l+A[y[l]]>m?l:m}(I),o=I;R!==I.length&&(h.uint8array?(o=I.subarray(0,R),this.leftOver=I.subarray(R,I.length)):(o=I.slice(0,R),this.leftOver=I.slice(R,I.length))),this.push({data:u.utf8decode(o),meta:T.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=S,c.inherits(N,f),N.prototype.processChunk=function(T){this.push({data:u.utf8encode(T.data),meta:T.meta})},u.Utf8EncodeWorker=N},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,a,u){var c=t("./support"),h=t("./base64"),n=t("./nodejsUtils"),f=t("./external");function A(_){return _}function x(_,R){for(var o=0;o<_.length;++o)R[o]=255&_.charCodeAt(o);return R}t("setimmediate"),u.newBlob=function(_,R){u.checkSupport("blob");try{return new Blob([_],{type:R})}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(_),o.getBlob(R)}catch{throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(_,R,o){var y=[],m=0,l=_.length;if(l<=o)return String.fromCharCode.apply(null,_);for(;m<l;)R==="array"||R==="nodebuffer"?y.push(String.fromCharCode.apply(null,_.slice(m,Math.min(m+o,l)))):y.push(String.fromCharCode.apply(null,_.subarray(m,Math.min(m+o,l)))),m+=o;return y.join("")},stringifyByChar:function(_){for(var R="",o=0;o<_.length;o++)R+=String.fromCharCode(_[o]);return R},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,n.allocBuffer(1)).length===1}catch{return!1}}()}};function N(_){var R=65536,o=u.getTypeOf(_),y=!0;if(o==="uint8array"?y=S.applyCanBeUsed.uint8array:o==="nodebuffer"&&(y=S.applyCanBeUsed.nodebuffer),y)for(;1<R;)try{return S.stringifyByChunk(_,o,R)}catch{R=Math.floor(R/2)}return S.stringifyByChar(_)}function T(_,R){for(var o=0;o<_.length;o++)R[o]=_[o];return R}u.applyFromCharCode=N;var I={};I.string={string:A,array:function(_){return x(_,new Array(_.length))},arraybuffer:function(_){return I.string.uint8array(_).buffer},uint8array:function(_){return x(_,new Uint8Array(_.length))},nodebuffer:function(_){return x(_,n.allocBuffer(_.length))}},I.array={string:N,array:A,arraybuffer:function(_){return new Uint8Array(_).buffer},uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return n.newBufferFrom(_)}},I.arraybuffer={string:function(_){return N(new Uint8Array(_))},array:function(_){return T(new Uint8Array(_),new Array(_.byteLength))},arraybuffer:A,uint8array:function(_){return new Uint8Array(_)},nodebuffer:function(_){return n.newBufferFrom(new Uint8Array(_))}},I.uint8array={string:N,array:function(_){return T(_,new Array(_.length))},arraybuffer:function(_){return _.buffer},uint8array:A,nodebuffer:function(_){return n.newBufferFrom(_)}},I.nodebuffer={string:N,array:function(_){return T(_,new Array(_.length))},arraybuffer:function(_){return I.nodebuffer.uint8array(_).buffer},uint8array:function(_){return T(_,new Uint8Array(_.length))},nodebuffer:A},u.transformTo=function(_,R){if(R=R||"",!_)return R;u.checkSupport(_);var o=u.getTypeOf(R);return I[o][_](R)},u.resolve=function(_){for(var R=_.split("/"),o=[],y=0;y<R.length;y++){var m=R[y];m==="."||m===""&&y!==0&&y!==R.length-1||(m===".."?o.pop():o.push(m))}return o.join("/")},u.getTypeOf=function(_){return typeof _=="string"?"string":Object.prototype.toString.call(_)==="[object Array]"?"array":c.nodebuffer&&n.isBuffer(_)?"nodebuffer":c.uint8array&&_ instanceof Uint8Array?"uint8array":c.arraybuffer&&_ instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(_){if(!c[_.toLowerCase()])throw new Error(_+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(_){var R,o,y="";for(o=0;o<(_||"").length;o++)y+="\\x"+((R=_.charCodeAt(o))<16?"0":"")+R.toString(16).toUpperCase();return y},u.delay=function(_,R,o){setImmediate(function(){_.apply(o||null,R||[])})},u.inherits=function(_,R){function o(){}o.prototype=R.prototype,_.prototype=new o},u.extend=function(){var _,R,o={};for(_=0;_<arguments.length;_++)for(R in arguments[_])Object.prototype.hasOwnProperty.call(arguments[_],R)&&o[R]===void 0&&(o[R]=arguments[_][R]);return o},u.prepareContent=function(_,R,o,y,m){return f.Promise.resolve(R).then(function(l){return c.blob&&(l instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(l))!==-1)&&typeof FileReader!="undefined"?new f.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(l)}):l}).then(function(l){var E=u.getTypeOf(l);return E?(E==="arraybuffer"?l=u.transformTo("uint8array",l):E==="string"&&(m?l=h.decode(l):o&&y!==!0&&(l=function(P){return x(P,c.uint8array?new Uint8Array(P.length):new Array(P.length))}(l))),l):f.Promise.reject(new Error("Can't read the data of '"+_+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,a,u){var c=t("./reader/readerFor"),h=t("./utils"),n=t("./signature"),f=t("./zipEntry"),A=t("./support");function x(S){this.files=[],this.loadOptions=S}x.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var N=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+h.pretty(N)+", expected "+h.pretty(S)+")")}},isSignature:function(S,N){var T=this.reader.index;this.reader.setIndex(S);var I=this.reader.readString(4)===N;return this.reader.setIndex(T),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 S=this.reader.readData(this.zipCommentLength),N=A.uint8array?"uint8array":"array",T=h.transformTo(N,S);this.zipComment=this.loadOptions.decodeFileName(T)},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 S,N,T,I=this.zip64EndOfCentralSize-44;0<I;)S=this.reader.readInt(2),N=this.reader.readInt(4),T=this.reader.readData(N),this.zip64ExtensibleData[S]={id:S,length:N,value:T}},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 S,N;for(S=0;S<this.files.length;S++)N=this.files[S],this.reader.setIndex(N.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),N.readLocalPart(this.reader),N.handleUTF8(),N.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(S=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);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 S=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,n.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(S);var N=S;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===h.MAX_VALUE_16BITS||this.diskWithCentralDirStart===h.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===h.MAX_VALUE_16BITS||this.centralDirRecords===h.MAX_VALUE_16BITS||this.centralDirSize===h.MAX_VALUE_32BITS||this.centralDirOffset===h.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var T=this.centralDirOffset+this.centralDirSize;this.zip64&&(T+=20,T+=12+this.zip64EndOfCentralSize);var I=N-T;if(0<I)this.isSignature(N,n.CENTRAL_FILE_HEADER)||(this.reader.zero=I);else if(I<0)throw new Error("Corrupted zip: missing "+Math.abs(I)+" bytes.")},prepareReader:function(S){this.reader=c(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=x},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,a,u){var c=t("./reader/readerFor"),h=t("./utils"),n=t("./compressedObject"),f=t("./crc32"),A=t("./utf8"),x=t("./compressions"),S=t("./support");function N(T,I){this.options=T,this.loadOptions=I}N.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(T){var I,_;if(T.skip(22),this.fileNameLength=T.readInt(2),_=T.readInt(2),this.fileName=T.readData(this.fileNameLength),T.skip(_),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(R){for(var o in x)if(Object.prototype.hasOwnProperty.call(x,o)&&x[o].magic===R)return x[o];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+h.pretty(this.compressionMethod)+" unknown (inner file : "+h.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,I,T.readData(this.compressedSize))},readCentralPart:function(T){this.versionMadeBy=T.readInt(2),T.skip(2),this.bitFlag=T.readInt(2),this.compressionMethod=T.readString(2),this.date=T.readDate(),this.crc32=T.readInt(4),this.compressedSize=T.readInt(4),this.uncompressedSize=T.readInt(4);var I=T.readInt(2);if(this.extraFieldsLength=T.readInt(2),this.fileCommentLength=T.readInt(2),this.diskNumberStart=T.readInt(2),this.internalFileAttributes=T.readInt(2),this.externalFileAttributes=T.readInt(4),this.localHeaderOffset=T.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");T.skip(I),this.readExtraFields(T),this.parseZIP64ExtraField(T),this.fileComment=T.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var T=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),T==0&&(this.dosPermissions=63&this.externalFileAttributes),T==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var T=c(this.extraFields[1].value);this.uncompressedSize===h.MAX_VALUE_32BITS&&(this.uncompressedSize=T.readInt(8)),this.compressedSize===h.MAX_VALUE_32BITS&&(this.compressedSize=T.readInt(8)),this.localHeaderOffset===h.MAX_VALUE_32BITS&&(this.localHeaderOffset=T.readInt(8)),this.diskNumberStart===h.MAX_VALUE_32BITS&&(this.diskNumberStart=T.readInt(4))}},readExtraFields:function(T){var I,_,R,o=T.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});T.index+4<o;)I=T.readInt(2),_=T.readInt(2),R=T.readData(_),this.extraFields[I]={id:I,length:_,value:R};T.setIndex(o)},handleUTF8:function(){var T=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=A.utf8decode(this.fileName),this.fileCommentStr=A.utf8decode(this.fileComment);else{var I=this.findExtraFieldUnicodePath();if(I!==null)this.fileNameStr=I;else{var _=h.transformTo(T,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(_)}var R=this.findExtraFieldUnicodeComment();if(R!==null)this.fileCommentStr=R;else{var o=h.transformTo(T,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var T=this.extraFields[28789];if(T){var I=c(T.value);return I.readInt(1)!==1||f(this.fileName)!==I.readInt(4)?null:A.utf8decode(I.readData(T.length-5))}return null},findExtraFieldUnicodeComment:function(){var T=this.extraFields[25461];if(T){var I=c(T.value);return I.readInt(1)!==1||f(this.fileComment)!==I.readInt(4)?null:A.utf8decode(I.readData(T.length-5))}return null}},a.exports=N},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,a,u){function c(I,_,R){this.name=I,this.dir=R.dir,this.date=R.date,this.comment=R.comment,this.unixPermissions=R.unixPermissions,this.dosPermissions=R.dosPermissions,this._data=_,this._dataBinary=R.binary,this.options={compression:R.compression,compressionOptions:R.compressionOptions}}var h=t("./stream/StreamHelper"),n=t("./stream/DataWorker"),f=t("./utf8"),A=t("./compressedObject"),x=t("./stream/GenericWorker");c.prototype={internalStream:function(I){var _=null,R="string";try{if(!I)throw new Error("No output type specified.");var o=(R=I.toLowerCase())==="string"||R==="text";R!=="binarystring"&&R!=="text"||(R="string"),_=this._decompressWorker();var y=!this._dataBinary;y&&!o&&(_=_.pipe(new f.Utf8EncodeWorker)),!y&&o&&(_=_.pipe(new f.Utf8DecodeWorker))}catch(m){(_=new x("error")).error(m)}return new h(_,R,"")},async:function(I,_){return this.internalStream(I).accumulate(_)},nodeStream:function(I,_){return this.internalStream(I||"nodebuffer").toNodejsStream(_)},_compressWorker:function(I,_){if(this._data instanceof A&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var R=this._decompressWorker();return this._dataBinary||(R=R.pipe(new f.Utf8EncodeWorker)),A.createWorkerFrom(R,I,_)},_decompressWorker:function(){return this._data instanceof A?this._data.getContentWorker():this._data instanceof x?this._data:new n(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],N=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},T=0;T<S.length;T++)c.prototype[S[T]]=N;a.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,a,u){(function(c){var h,n,f=c.MutationObserver||c.WebKitMutationObserver;if(f){var A=0,x=new f(I),S=c.document.createTextNode("");x.observe(S,{characterData:!0}),h=function(){S.data=A=++A%2}}else if(c.setImmediate||c.MessageChannel===void 0)h="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var _=c.document.createElement("script");_.onreadystatechange=function(){I(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},c.document.documentElement.appendChild(_)}:function(){setTimeout(I,0)};else{var N=new c.MessageChannel;N.port1.onmessage=I,h=function(){N.port2.postMessage(0)}}var T=[];function I(){var _,R;n=!0;for(var o=T.length;o;){for(R=T,T=[],_=-1;++_<o;)R[_]();o=T.length}n=!1}a.exports=function(_){T.push(_)!==1||n||h()}}).call(this,typeof Ie!="undefined"?Ie:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(t,a,u){var c=t("immediate");function h(){}var n={},f=["REJECTED"],A=["FULFILLED"],x=["PENDING"];function S(o){if(typeof o!="function")throw new TypeError("resolver must be a function");this.state=x,this.queue=[],this.outcome=void 0,o!==h&&_(this,o)}function N(o,y,m){this.promise=o,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}function T(o,y,m){c(function(){var l;try{l=y(m)}catch(E){return n.reject(o,E)}l===o?n.reject(o,new TypeError("Cannot resolve promise with itself")):n.resolve(o,l)})}function I(o){var y=o&&o.then;if(o&&(typeof o=="object"||typeof o=="function")&&typeof y=="function")return function(){y.apply(o,arguments)}}function _(o,y){var m=!1;function l(F){m||(m=!0,n.reject(o,F))}function E(F){m||(m=!0,n.resolve(o,F))}var P=R(function(){y(E,l)});P.status==="error"&&l(P.value)}function R(o,y){var m={};try{m.value=o(y),m.status="success"}catch(l){m.status="error",m.value=l}return m}(a.exports=S).prototype.finally=function(o){if(typeof o!="function")return this;var y=this.constructor;return this.then(function(m){return y.resolve(o()).then(function(){return m})},function(m){return y.resolve(o()).then(function(){throw m})})},S.prototype.catch=function(o){return this.then(null,o)},S.prototype.then=function(o,y){if(typeof o!="function"&&this.state===A||typeof y!="function"&&this.state===f)return this;var m=new this.constructor(h);return this.state!==x?T(m,this.state===A?o:y,this.outcome):this.queue.push(new N(m,o,y)),m},N.prototype.callFulfilled=function(o){n.resolve(this.promise,o)},N.prototype.otherCallFulfilled=function(o){T(this.promise,this.onFulfilled,o)},N.prototype.callRejected=function(o){n.reject(this.promise,o)},N.prototype.otherCallRejected=function(o){T(this.promise,this.onRejected,o)},n.resolve=function(o,y){var m=R(I,y);if(m.status==="error")return n.reject(o,m.value);var l=m.value;if(l)_(o,l);else{o.state=A,o.outcome=y;for(var E=-1,P=o.queue.length;++E<P;)o.queue[E].callFulfilled(y)}return o},n.reject=function(o,y){o.state=f,o.outcome=y;for(var m=-1,l=o.queue.length;++m<l;)o.queue[m].callRejected(y);return o},S.resolve=function(o){return o instanceof this?o:n.resolve(new this(h),o)},S.reject=function(o){var y=new this(h);return n.reject(y,o)},S.all=function(o){var y=this;if(Object.prototype.toString.call(o)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=o.length,l=!1;if(!m)return this.resolve([]);for(var E=new Array(m),P=0,F=-1,W=new this(h);++F<m;)k(o[F],F);return W;function k(X,ue){y.resolve(X).then(function(O){E[ue]=O,++P!==m||l||(l=!0,n.resolve(W,E))},function(O){l||(l=!0,n.reject(W,O))})}},S.race=function(o){var y=this;if(Object.prototype.toString.call(o)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=o.length,l=!1;if(!m)return this.resolve([]);for(var E=-1,P=new this(h);++E<m;)F=o[E],y.resolve(F).then(function(W){l||(l=!0,n.resolve(P,W))},function(W){l||(l=!0,n.reject(P,W))});var F;return P}},{immediate:36}],38:[function(t,a,u){var c={};(0,t("./lib/utils/common").assign)(c,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),a.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,a,u){var c=t("./zlib/deflate"),h=t("./utils/common"),n=t("./utils/strings"),f=t("./zlib/messages"),A=t("./zlib/zstream"),x=Object.prototype.toString,S=0,N=-1,T=0,I=8;function _(o){if(!(this instanceof _))return new _(o);this.options=h.assign({level:N,method:I,chunkSize:16384,windowBits:15,memLevel:8,strategy:T,to:""},o||{});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 A,this.strm.avail_out=0;var m=c.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(m!==S)throw new Error(f[m]);if(y.header&&c.deflateSetHeader(this.strm,y.header),y.dictionary){var l;if(l=typeof y.dictionary=="string"?n.string2buf(y.dictionary):x.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(m=c.deflateSetDictionary(this.strm,l))!==S)throw new Error(f[m]);this._dict_set=!0}}function R(o,y){var m=new _(y);if(m.push(o,!0),m.err)throw m.msg||f[m.err];return m.result}_.prototype.push=function(o,y){var m,l,E=this.strm,P=this.options.chunkSize;if(this.ended)return!1;l=y===~~y?y:y===!0?4:0,typeof o=="string"?E.input=n.string2buf(o):x.call(o)==="[object ArrayBuffer]"?E.input=new Uint8Array(o):E.input=o,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new h.Buf8(P),E.next_out=0,E.avail_out=P),(m=c.deflate(E,l))!==1&&m!==S)return this.onEnd(m),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||l!==4&&l!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(h.shrinkBuf(E.output,E.next_out))):this.onData(h.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&m!==1);return l===4?(m=c.deflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===S):l!==2||(this.onEnd(S),!(E.avail_out=0))},_.prototype.onData=function(o){this.chunks.push(o)},_.prototype.onEnd=function(o){o===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg},u.Deflate=_,u.deflate=R,u.deflateRaw=function(o,y){return(y=y||{}).raw=!0,R(o,y)},u.gzip=function(o,y){return(y=y||{}).gzip=!0,R(o,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,a,u){var c=t("./zlib/inflate"),h=t("./utils/common"),n=t("./utils/strings"),f=t("./zlib/constants"),A=t("./zlib/messages"),x=t("./zlib/zstream"),S=t("./zlib/gzheader"),N=Object.prototype.toString;function T(_){if(!(this instanceof T))return new T(_);this.options=h.assign({chunkSize:16384,windowBits:0,to:""},_||{});var R=this.options;R.raw&&0<=R.windowBits&&R.windowBits<16&&(R.windowBits=-R.windowBits,R.windowBits===0&&(R.windowBits=-15)),!(0<=R.windowBits&&R.windowBits<16)||_&&_.windowBits||(R.windowBits+=32),15<R.windowBits&&R.windowBits<48&&(15&R.windowBits)==0&&(R.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new x,this.strm.avail_out=0;var o=c.inflateInit2(this.strm,R.windowBits);if(o!==f.Z_OK)throw new Error(A[o]);this.header=new S,c.inflateGetHeader(this.strm,this.header)}function I(_,R){var o=new T(R);if(o.push(_,!0),o.err)throw o.msg||A[o.err];return o.result}T.prototype.push=function(_,R){var o,y,m,l,E,P,F=this.strm,W=this.options.chunkSize,k=this.options.dictionary,X=!1;if(this.ended)return!1;y=R===~~R?R:R===!0?f.Z_FINISH:f.Z_NO_FLUSH,typeof _=="string"?F.input=n.binstring2buf(_):N.call(_)==="[object ArrayBuffer]"?F.input=new Uint8Array(_):F.input=_,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new h.Buf8(W),F.next_out=0,F.avail_out=W),(o=c.inflate(F,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&k&&(P=typeof k=="string"?n.string2buf(k):N.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,o=c.inflateSetDictionary(this.strm,P)),o===f.Z_BUF_ERROR&&X===!0&&(o=f.Z_OK,X=!1),o!==f.Z_STREAM_END&&o!==f.Z_OK)return this.onEnd(o),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&o!==f.Z_STREAM_END&&(F.avail_in!==0||y!==f.Z_FINISH&&y!==f.Z_SYNC_FLUSH)||(this.options.to==="string"?(m=n.utf8border(F.output,F.next_out),l=F.next_out-m,E=n.buf2string(F.output,m),F.next_out=l,F.avail_out=W-l,l&&h.arraySet(F.output,F.output,m,l,0),this.onData(E)):this.onData(h.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)&&o!==f.Z_STREAM_END);return o===f.Z_STREAM_END&&(y=f.Z_FINISH),y===f.Z_FINISH?(o=c.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===f.Z_OK):y!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),!(F.avail_out=0))},T.prototype.onData=function(_){this.chunks.push(_)},T.prototype.onEnd=function(_){_===f.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},u.Inflate=T,u.inflate=I,u.inflateRaw=function(_,R){return(R=R||{}).raw=!0,I(_,R)},u.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(t,a,u){var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";u.assign=function(f){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var x=A.shift();if(x){if(typeof x!="object")throw new TypeError(x+"must be non-object");for(var S in x)x.hasOwnProperty(S)&&(f[S]=x[S])}}return f},u.shrinkBuf=function(f,A){return f.length===A?f:f.subarray?f.subarray(0,A):(f.length=A,f)};var h={arraySet:function(f,A,x,S,N){if(A.subarray&&f.subarray)f.set(A.subarray(x,x+S),N);else for(var T=0;T<S;T++)f[N+T]=A[x+T]},flattenChunks:function(f){var A,x,S,N,T,I;for(A=S=0,x=f.length;A<x;A++)S+=f[A].length;for(I=new Uint8Array(S),A=N=0,x=f.length;A<x;A++)T=f[A],I.set(T,N),N+=T.length;return I}},n={arraySet:function(f,A,x,S,N){for(var T=0;T<S;T++)f[N+T]=A[x+T]},flattenChunks:function(f){return[].concat.apply([],f)}};u.setTyped=function(f){f?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,h)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,n))},u.setTyped(c)},{}],42:[function(t,a,u){var c=t("./common"),h=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{h=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var f=new c.Buf8(256),A=0;A<256;A++)f[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;function x(S,N){if(N<65537&&(S.subarray&&n||!S.subarray&&h))return String.fromCharCode.apply(null,c.shrinkBuf(S,N));for(var T="",I=0;I<N;I++)T+=String.fromCharCode(S[I]);return T}f[254]=f[254]=1,u.string2buf=function(S){var N,T,I,_,R,o=S.length,y=0;for(_=0;_<o;_++)(64512&(T=S.charCodeAt(_)))==55296&&_+1<o&&(64512&(I=S.charCodeAt(_+1)))==56320&&(T=65536+(T-55296<<10)+(I-56320),_++),y+=T<128?1:T<2048?2:T<65536?3:4;for(N=new c.Buf8(y),_=R=0;R<y;_++)(64512&(T=S.charCodeAt(_)))==55296&&_+1<o&&(64512&(I=S.charCodeAt(_+1)))==56320&&(T=65536+(T-55296<<10)+(I-56320),_++),T<128?N[R++]=T:(T<2048?N[R++]=192|T>>>6:(T<65536?N[R++]=224|T>>>12:(N[R++]=240|T>>>18,N[R++]=128|T>>>12&63),N[R++]=128|T>>>6&63),N[R++]=128|63&T);return N},u.buf2binstring=function(S){return x(S,S.length)},u.binstring2buf=function(S){for(var N=new c.Buf8(S.length),T=0,I=N.length;T<I;T++)N[T]=S.charCodeAt(T);return N},u.buf2string=function(S,N){var T,I,_,R,o=N||S.length,y=new Array(2*o);for(T=I=0;T<o;)if((_=S[T++])<128)y[I++]=_;else if(4<(R=f[_]))y[I++]=65533,T+=R-1;else{for(_&=R===2?31:R===3?15:7;1<R&&T<o;)_=_<<6|63&S[T++],R--;1<R?y[I++]=65533:_<65536?y[I++]=_:(_-=65536,y[I++]=55296|_>>10&1023,y[I++]=56320|1023&_)}return x(y,I)},u.utf8border=function(S,N){var T;for((N=N||S.length)>S.length&&(N=S.length),T=N-1;0<=T&&(192&S[T])==128;)T--;return T<0||T===0?N:T+f[S[T]]>N?T:N}},{"./common":41}],43:[function(t,a,u){a.exports=function(c,h,n,f){for(var A=65535&c|0,x=c>>>16&65535|0,S=0;n!==0;){for(n-=S=2e3<n?2e3:n;x=x+(A=A+h[f++]|0)|0,--S;);A%=65521,x%=65521}return A|x<<16|0}},{}],44:[function(t,a,u){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(t,a,u){var c=function(){for(var h,n=[],f=0;f<256;f++){h=f;for(var A=0;A<8;A++)h=1&h?3988292384^h>>>1:h>>>1;n[f]=h}return n}();a.exports=function(h,n,f,A){var x=c,S=A+f;h^=-1;for(var N=A;N<S;N++)h=h>>>8^x[255&(h^n[N])];return-1^h}},{}],46:[function(t,a,u){var c,h=t("../utils/common"),n=t("./trees"),f=t("./adler32"),A=t("./crc32"),x=t("./messages"),S=0,N=4,T=0,I=-2,_=-1,R=4,o=2,y=8,m=9,l=286,E=30,P=19,F=2*l+1,W=15,k=3,X=258,ue=X+k+1,O=42,M=113,g=1,q=2,ee=3,z=4;function se(d,Y){return d.msg=x[Y],Y}function Q(d){return(d<<1)-(4<d?9:0)}function le(d){for(var Y=d.length;0<=--Y;)d[Y]=0}function V(d){var Y=d.state,b=Y.pending;b>d.avail_out&&(b=d.avail_out),b!==0&&(h.arraySet(d.output,Y.pending_buf,Y.pending_out,b,d.next_out),d.next_out+=b,Y.pending_out+=b,d.total_out+=b,d.avail_out-=b,Y.pending-=b,Y.pending===0&&(Y.pending_out=0))}function D(d,Y){n._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,Y),d.block_start=d.strstart,V(d.strm)}function $(d,Y){d.pending_buf[d.pending++]=Y}function Z(d,Y){d.pending_buf[d.pending++]=Y>>>8&255,d.pending_buf[d.pending++]=255&Y}function te(d,Y){var b,i,s=d.max_chain_length,p=d.strstart,B=d.prev_length,G=d.nice_match,H=d.strstart>d.w_size-ue?d.strstart-(d.w_size-ue):0,ie=d.window,oe=d.w_mask,ae=d.prev,he=d.strstart+X,de=ie[p+B-1],pe=ie[p+B];d.prev_length>=d.good_match&&(s>>=2),G>d.lookahead&&(G=d.lookahead);do if(ie[(b=Y)+B]===pe&&ie[b+B-1]===de&&ie[b]===ie[p]&&ie[++b]===ie[p+1]){p+=2,b++;do;while(ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&ie[++p]===ie[++b]&&p<he);if(i=X-(he-p),p=he-X,B<i){if(d.match_start=Y,G<=(B=i))break;de=ie[p+B-1],pe=ie[p+B]}}while((Y=ae[Y&oe])>H&&--s!=0);return B<=d.lookahead?B:d.lookahead}function K(d){var Y,b,i,s,p,B,G,H,ie,oe,ae=d.w_size;do{if(s=d.window_size-d.lookahead-d.strstart,d.strstart>=ae+(ae-ue)){for(h.arraySet(d.window,d.window,ae,ae,0),d.match_start-=ae,d.strstart-=ae,d.block_start-=ae,Y=b=d.hash_size;i=d.head[--Y],d.head[Y]=ae<=i?i-ae:0,--b;);for(Y=b=ae;i=d.prev[--Y],d.prev[Y]=ae<=i?i-ae:0,--b;);s+=ae}if(d.strm.avail_in===0)break;if(B=d.strm,G=d.window,H=d.strstart+d.lookahead,ie=s,oe=void 0,oe=B.avail_in,ie<oe&&(oe=ie),b=oe===0?0:(B.avail_in-=oe,h.arraySet(G,B.input,B.next_in,oe,H),B.state.wrap===1?B.adler=f(B.adler,G,oe,H):B.state.wrap===2&&(B.adler=A(B.adler,G,oe,H)),B.next_in+=oe,B.total_in+=oe,oe),d.lookahead+=b,d.lookahead+d.insert>=k)for(p=d.strstart-d.insert,d.ins_h=d.window[p],d.ins_h=(d.ins_h<<d.hash_shift^d.window[p+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[p+k-1])&d.hash_mask,d.prev[p&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=p,p++,d.insert--,!(d.lookahead+d.insert<k)););}while(d.lookahead<ue&&d.strm.avail_in!==0)}function v(d,Y){for(var b,i;;){if(d.lookahead<ue){if(K(d),d.lookahead<ue&&Y===S)return g;if(d.lookahead===0)break}if(b=0,d.lookahead>=k&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+k-1])&d.hash_mask,b=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),b!==0&&d.strstart-b<=d.w_size-ue&&(d.match_length=te(d,b)),d.match_length>=k)if(i=n._tr_tally(d,d.strstart-d.match_start,d.match_length-k),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=k){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+k-1])&d.hash_mask,b=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else i=n._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(i&&(D(d,!1),d.strm.avail_out===0))return g}return d.insert=d.strstart<k-1?d.strstart:k-1,Y===N?(D(d,!0),d.strm.avail_out===0?ee:z):d.last_lit&&(D(d,!1),d.strm.avail_out===0)?g:q}function w(d,Y){for(var b,i,s;;){if(d.lookahead<ue){if(K(d),d.lookahead<ue&&Y===S)return g;if(d.lookahead===0)break}if(b=0,d.lookahead>=k&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+k-1])&d.hash_mask,b=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=k-1,b!==0&&d.prev_length<d.max_lazy_match&&d.strstart-b<=d.w_size-ue&&(d.match_length=te(d,b),d.match_length<=5&&(d.strategy===1||d.match_length===k&&4096<d.strstart-d.match_start)&&(d.match_length=k-1)),d.prev_length>=k&&d.match_length<=d.prev_length){for(s=d.strstart+d.lookahead-k,i=n._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-k),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=s&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+k-1])&d.hash_mask,b=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=k-1,d.strstart++,i&&(D(d,!1),d.strm.avail_out===0))return g}else if(d.match_available){if((i=n._tr_tally(d,0,d.window[d.strstart-1]))&&D(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return g}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(i=n._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<k-1?d.strstart:k-1,Y===N?(D(d,!0),d.strm.avail_out===0?ee:z):d.last_lit&&(D(d,!1),d.strm.avail_out===0)?g:q}function j(d,Y,b,i,s){this.good_length=d,this.max_lazy=Y,this.nice_length=b,this.max_chain=i,this.func=s}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 h.Buf16(2*F),this.dyn_dtree=new h.Buf16(2*(2*E+1)),this.bl_tree=new h.Buf16(2*(2*P+1)),le(this.dyn_ltree),le(this.dyn_dtree),le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(W+1),this.heap=new h.Buf16(2*l+1),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*l+1),le(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(d){var Y;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=o,(Y=d.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?O:M,d.adler=Y.wrap===2?0:1,Y.last_flush=S,n._tr_init(Y),T):se(d,I)}function L(d){var Y=C(d);return Y===T&&function(b){b.window_size=2*b.w_size,le(b.head),b.max_lazy_match=c[b.level].max_lazy,b.good_match=c[b.level].good_length,b.nice_match=c[b.level].nice_length,b.max_chain_length=c[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=k-1,b.match_available=0,b.ins_h=0}(d.state),Y}function J(d,Y,b,i,s,p){if(!d)return I;var B=1;if(Y===_&&(Y=6),i<0?(B=0,i=-i):15<i&&(B=2,i-=16),s<1||m<s||b!==y||i<8||15<i||Y<0||9<Y||p<0||R<p)return se(d,I);i===8&&(i=9);var G=new U;return(d.state=G).strm=d,G.wrap=B,G.gzhead=null,G.w_bits=i,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=s+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+k-1)/k),G.window=new h.Buf8(2*G.w_size),G.head=new h.Buf16(G.hash_size),G.prev=new h.Buf16(G.w_size),G.lit_bufsize=1<<s+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new h.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=Y,G.strategy=p,G.method=b,L(d)}c=[new j(0,0,0,0,function(d,Y){var b=65535;for(b>d.pending_buf_size-5&&(b=d.pending_buf_size-5);;){if(d.lookahead<=1){if(K(d),d.lookahead===0&&Y===S)return g;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var i=d.block_start+b;if((d.strstart===0||d.strstart>=i)&&(d.lookahead=d.strstart-i,d.strstart=i,D(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-ue&&(D(d,!1),d.strm.avail_out===0))return g}return d.insert=0,Y===N?(D(d,!0),d.strm.avail_out===0?ee:z):(d.strstart>d.block_start&&(D(d,!1),d.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,w),new j(8,16,32,32,w),new j(8,16,128,128,w),new j(8,32,128,256,w),new j(32,128,258,1024,w),new j(32,258,258,4096,w)],u.deflateInit=function(d,Y){return J(d,Y,y,15,8,0)},u.deflateInit2=J,u.deflateReset=L,u.deflateResetKeep=C,u.deflateSetHeader=function(d,Y){return d&&d.state?d.state.wrap!==2?I:(d.state.gzhead=Y,T):I},u.deflate=function(d,Y){var b,i,s,p;if(!d||!d.state||5<Y||Y<0)return d?se(d,I):I;if(i=d.state,!d.output||!d.input&&d.avail_in!==0||i.status===666&&Y!==N)return se(d,d.avail_out===0?-5:I);if(i.strm=d,b=i.last_flush,i.last_flush=Y,i.status===O)if(i.wrap===2)d.adler=0,$(i,31),$(i,139),$(i,8),i.gzhead?($(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),$(i,255&i.gzhead.time),$(i,i.gzhead.time>>8&255),$(i,i.gzhead.time>>16&255),$(i,i.gzhead.time>>24&255),$(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),$(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&($(i,255&i.gzhead.extra.length),$(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(d.adler=A(d.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):($(i,0),$(i,0),$(i,0),$(i,0),$(i,0),$(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),$(i,3),i.status=M);else{var B=y+(i.w_bits-8<<4)<<8;B|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(B|=32),B+=31-B%31,i.status=M,Z(i,B),i.strstart!==0&&(Z(i,d.adler>>>16),Z(i,65535&d.adler)),d.adler=1}if(i.status===69)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(d.adler=A(d.adler,i.pending_buf,i.pending-s,s)),V(d),s=i.pending,i.pending!==i.pending_buf_size));)$(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(d.adler=A(d.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(d.adler=A(d.adler,i.pending_buf,i.pending-s,s)),V(d),s=i.pending,i.pending===i.pending_buf_size)){p=1;break}p=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,$(i,p)}while(p!==0);i.gzhead.hcrc&&i.pending>s&&(d.adler=A(d.adler,i.pending_buf,i.pending-s,s)),p===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(d.adler=A(d.adler,i.pending_buf,i.pending-s,s)),V(d),s=i.pending,i.pending===i.pending_buf_size)){p=1;break}p=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,$(i,p)}while(p!==0);i.gzhead.hcrc&&i.pending>s&&(d.adler=A(d.adler,i.pending_buf,i.pending-s,s)),p===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&V(d),i.pending+2<=i.pending_buf_size&&($(i,255&d.adler),$(i,d.adler>>8&255),d.adler=0,i.status=M)):i.status=M),i.pending!==0){if(V(d),d.avail_out===0)return i.last_flush=-1,T}else if(d.avail_in===0&&Q(Y)<=Q(b)&&Y!==N)return se(d,-5);if(i.status===666&&d.avail_in!==0)return se(d,-5);if(d.avail_in!==0||i.lookahead!==0||Y!==S&&i.status!==666){var G=i.strategy===2?function(H,ie){for(var oe;;){if(H.lookahead===0&&(K(H),H.lookahead===0)){if(ie===S)return g;break}if(H.match_length=0,oe=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,oe&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,ie===N?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(i,Y):i.strategy===3?function(H,ie){for(var oe,ae,he,de,pe=H.window;;){if(H.lookahead<=X){if(K(H),H.lookahead<=X&&ie===S)return g;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=k&&0<H.strstart&&(ae=pe[he=H.strstart-1])===pe[++he]&&ae===pe[++he]&&ae===pe[++he]){de=H.strstart+X;do;while(ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&ae===pe[++he]&&he<de);H.match_length=X-(de-he),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=k?(oe=n._tr_tally(H,1,H.match_length-k),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(oe=n._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),oe&&(D(H,!1),H.strm.avail_out===0))return g}return H.insert=0,ie===N?(D(H,!0),H.strm.avail_out===0?ee:z):H.last_lit&&(D(H,!1),H.strm.avail_out===0)?g:q}(i,Y):c[i.level].func(i,Y);if(G!==ee&&G!==z||(i.status=666),G===g||G===ee)return d.avail_out===0&&(i.last_flush=-1),T;if(G===q&&(Y===1?n._tr_align(i):Y!==5&&(n._tr_stored_block(i,0,0,!1),Y===3&&(le(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),V(d),d.avail_out===0))return i.last_flush=-1,T}return Y!==N?T:i.wrap<=0?1:(i.wrap===2?($(i,255&d.adler),$(i,d.adler>>8&255),$(i,d.adler>>16&255),$(i,d.adler>>24&255),$(i,255&d.total_in),$(i,d.total_in>>8&255),$(i,d.total_in>>16&255),$(i,d.total_in>>24&255)):(Z(i,d.adler>>>16),Z(i,65535&d.adler)),V(d),0<i.wrap&&(i.wrap=-i.wrap),i.pending!==0?T:1)},u.deflateEnd=function(d){var Y;return d&&d.state?(Y=d.state.status)!==O&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==M&&Y!==666?se(d,I):(d.state=null,Y===M?se(d,-3):T):I},u.deflateSetDictionary=function(d,Y){var b,i,s,p,B,G,H,ie,oe=Y.length;if(!d||!d.state||(p=(b=d.state).wrap)===2||p===1&&b.status!==O||b.lookahead)return I;for(p===1&&(d.adler=f(d.adler,Y,oe,0)),b.wrap=0,oe>=b.w_size&&(p===0&&(le(b.head),b.strstart=0,b.block_start=0,b.insert=0),ie=new h.Buf8(b.w_size),h.arraySet(ie,Y,oe-b.w_size,b.w_size,0),Y=ie,oe=b.w_size),B=d.avail_in,G=d.next_in,H=d.input,d.avail_in=oe,d.next_in=0,d.input=Y,K(b);b.lookahead>=k;){for(i=b.strstart,s=b.lookahead-(k-1);b.ins_h=(b.ins_h<<b.hash_shift^b.window[i+k-1])&b.hash_mask,b.prev[i&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=i,i++,--s;);b.strstart=i,b.lookahead=k-1,K(b)}return b.strstart+=b.lookahead,b.block_start=b.strstart,b.insert=b.lookahead,b.lookahead=0,b.match_length=b.prev_length=k-1,b.match_available=0,d.next_in=G,d.input=H,d.avail_in=B,b.wrap=p,T},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,a,u){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(t,a,u){a.exports=function(c,h){var n,f,A,x,S,N,T,I,_,R,o,y,m,l,E,P,F,W,k,X,ue,O,M,g,q;n=c.state,f=c.next_in,g=c.input,A=f+(c.avail_in-5),x=c.next_out,q=c.output,S=x-(h-c.avail_out),N=x+(c.avail_out-257),T=n.dmax,I=n.wsize,_=n.whave,R=n.wnext,o=n.window,y=n.hold,m=n.bits,l=n.lencode,E=n.distcode,P=(1<<n.lenbits)-1,F=(1<<n.distbits)-1;e:do{m<15&&(y+=g[f++]<<m,m+=8,y+=g[f++]<<m,m+=8),W=l[y&P];t:for(;;){if(y>>>=k=W>>>24,m-=k,(k=W>>>16&255)===0)q[x++]=65535&W;else{if(!(16&k)){if((64&k)==0){W=l[(65535&W)+(y&(1<<k)-1)];continue t}if(32&k){n.mode=12;break e}c.msg="invalid literal/length code",n.mode=30;break e}X=65535&W,(k&=15)&&(m<k&&(y+=g[f++]<<m,m+=8),X+=y&(1<<k)-1,y>>>=k,m-=k),m<15&&(y+=g[f++]<<m,m+=8,y+=g[f++]<<m,m+=8),W=E[y&F];r:for(;;){if(y>>>=k=W>>>24,m-=k,!(16&(k=W>>>16&255))){if((64&k)==0){W=E[(65535&W)+(y&(1<<k)-1)];continue r}c.msg="invalid distance code",n.mode=30;break e}if(ue=65535&W,m<(k&=15)&&(y+=g[f++]<<m,(m+=8)<k&&(y+=g[f++]<<m,m+=8)),T<(ue+=y&(1<<k)-1)){c.msg="invalid distance too far back",n.mode=30;break e}if(y>>>=k,m-=k,(k=x-S)<ue){if(_<(k=ue-k)&&n.sane){c.msg="invalid distance too far back",n.mode=30;break e}if(M=o,(O=0)===R){if(O+=I-k,k<X){for(X-=k;q[x++]=o[O++],--k;);O=x-ue,M=q}}else if(R<k){if(O+=I+R-k,(k-=R)<X){for(X-=k;q[x++]=o[O++],--k;);if(O=0,R<X){for(X-=k=R;q[x++]=o[O++],--k;);O=x-ue,M=q}}}else if(O+=R-k,k<X){for(X-=k;q[x++]=o[O++],--k;);O=x-ue,M=q}for(;2<X;)q[x++]=M[O++],q[x++]=M[O++],q[x++]=M[O++],X-=3;X&&(q[x++]=M[O++],1<X&&(q[x++]=M[O++]))}else{for(O=x-ue;q[x++]=q[O++],q[x++]=q[O++],q[x++]=q[O++],2<(X-=3););X&&(q[x++]=q[O++],1<X&&(q[x++]=q[O++]))}break}}break}}while(f<A&&x<N);f-=X=m>>3,y&=(1<<(m-=X<<3))-1,c.next_in=f,c.next_out=x,c.avail_in=f<A?A-f+5:5-(f-A),c.avail_out=x<N?N-x+257:257-(x-N),n.hold=y,n.bits=m}},{}],49:[function(t,a,u){var c=t("../utils/common"),h=t("./adler32"),n=t("./crc32"),f=t("./inffast"),A=t("./inftrees"),x=1,S=2,N=0,T=-2,I=1,_=852,R=592;function o(O){return(O>>>24&255)+(O>>>8&65280)+((65280&O)<<8)+((255&O)<<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(O){var M;return O&&O.state?(M=O.state,O.total_in=O.total_out=M.total=0,O.msg="",M.wrap&&(O.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(_),M.distcode=M.distdyn=new c.Buf32(R),M.sane=1,M.back=-1,N):T}function l(O){var M;return O&&O.state?((M=O.state).wsize=0,M.whave=0,M.wnext=0,m(O)):T}function E(O,M){var g,q;return O&&O.state?(q=O.state,M<0?(g=0,M=-M):(g=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?T:(q.window!==null&&q.wbits!==M&&(q.window=null),q.wrap=g,q.wbits=M,l(O))):T}function P(O,M){var g,q;return O?(q=new y,(O.state=q).window=null,(g=E(O,M))!==N&&(O.state=null),g):T}var F,W,k=!0;function X(O){if(k){var M;for(F=new c.Buf32(512),W=new c.Buf32(32),M=0;M<144;)O.lens[M++]=8;for(;M<256;)O.lens[M++]=9;for(;M<280;)O.lens[M++]=7;for(;M<288;)O.lens[M++]=8;for(A(x,O.lens,0,288,F,0,O.work,{bits:9}),M=0;M<32;)O.lens[M++]=5;A(S,O.lens,0,32,W,0,O.work,{bits:5}),k=!1}O.lencode=F,O.lenbits=9,O.distcode=W,O.distbits=5}function ue(O,M,g,q){var ee,z=O.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}u.inflateReset=l,u.inflateReset2=E,u.inflateResetKeep=m,u.inflateInit=function(O){return P(O,15)},u.inflateInit2=P,u.inflate=function(O,M){var g,q,ee,z,se,Q,le,V,D,$,Z,te,K,v,w,j,U,C,L,J,d,Y,b,i,s=0,p=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(!O||!O.state||!O.output||!O.input&&O.avail_in!==0)return T;(g=O.state).mode===12&&(g.mode=13),se=O.next_out,ee=O.output,le=O.avail_out,z=O.next_in,q=O.input,Q=O.avail_in,V=g.hold,D=g.bits,$=Q,Z=le,Y=N;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){p[g.check=0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,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){O.msg="incorrect header check",g.mode=30;break}if((15&V)!=8){O.msg="unknown compression method",g.mode=30;break}if(D-=4,d=8+(15&(V>>>=4)),g.wbits===0)g.wbits=d;else if(d>g.wbits){O.msg="invalid window size",g.mode=30;break}g.dmax=1<<d,O.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){O.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){O.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=V>>8&1),512&g.flags&&(p[0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,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&&(p[0]=255&V,p[1]=V>>>8&255,p[2]=V>>>16&255,p[3]=V>>>24&255,g.check=n(g.check,p,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&&(p[0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,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&&(p[0]=255&V,p[1]=V>>>8&255,g.check=n(g.check,p,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&&(d=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,d)),512&g.flags&&(g.check=n(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;d=q[z+te++],g.head&&d&&g.length<65536&&(g.head.name+=String.fromCharCode(d)),d&&te<Q;);if(512&g.flags&&(g.check=n(g.check,q,te,z)),Q-=te,z+=te,d)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;d=q[z+te++],g.head&&d&&g.length<65536&&(g.head.comment+=String.fromCharCode(d)),d&&te<Q;);if(512&g.flags&&(g.check=n(g.check,q,te,z)),Q-=te,z+=te,d)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)){O.msg="header crc mismatch",g.mode=30;break}D=V=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),O.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}O.adler=g.check=o(V),D=V=0,g.mode=11;case 11:if(g.havedict===0)return O.next_out=se,O.avail_out=le,O.next_in=z,O.avail_in=Q,g.hold=V,g.bits=D,2;O.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:O.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)){O.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),le<te&&(te=le),te===0)break e;c.arraySet(ee,q,z,te,se),Q-=te,z+=te,le-=te,se+=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){O.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,b={bits:g.lenbits},Y=A(0,g.lens,0,19,g.lencode,0,g.work,b),g.lenbits=b.bits,Y){O.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=(s=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,U=65535&s,!((w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(U<16)V>>>=w,D-=w,g.lens[g.have++]=U;else{if(U===16){for(i=w+2;D<i;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(V>>>=w,D-=w,g.have===0){O.msg="invalid bit length repeat",g.mode=30;break}d=g.lens[g.have-1],te=3+(3&V),V>>>=2,D-=2}else if(U===17){for(i=w+3;D<i;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}D-=w,d=0,te=3+(7&(V>>>=w)),V>>>=3,D-=3}else{for(i=w+7;D<i;){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}D-=w,d=0,te=11+(127&(V>>>=w)),V>>>=7,D-=7}if(g.have+te>g.nlen+g.ndist){O.msg="invalid bit length repeat",g.mode=30;break}for(;te--;)g.lens[g.have++]=d}}if(g.mode===30)break;if(g.lens[256]===0){O.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,b={bits:g.lenbits},Y=A(x,g.lens,0,g.nlen,g.lencode,0,g.work,b),g.lenbits=b.bits,Y){O.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,b={bits:g.distbits},Y=A(S,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,b),g.distbits=b.bits,Y){O.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<=le){O.next_out=se,O.avail_out=le,O.next_in=z,O.avail_in=Q,g.hold=V,g.bits=D,f(O,Z),se=O.next_out,ee=O.output,le=O.avail_out,z=O.next_in,q=O.input,Q=O.avail_in,V=g.hold,D=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;j=(s=g.lencode[V&(1<<g.lenbits)-1])>>>16&255,U=65535&s,!((w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if(j&&(240&j)==0){for(C=w,L=j,J=U;j=(s=g.lencode[J+((V&(1<<C+L)-1)>>C)])>>>16&255,U=65535&s,!(C+(w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}V>>>=C,D-=C,g.back+=C}if(V>>>=w,D-=w,g.back+=w,g.length=U,j===0){g.mode=26;break}if(32&j){g.back=-1,g.mode=12;break}if(64&j){O.msg="invalid literal/length code",g.mode=30;break}g.extra=15&j,g.mode=22;case 22:if(g.extra){for(i=g.extra;D<i;){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=(s=g.distcode[V&(1<<g.distbits)-1])>>>16&255,U=65535&s,!((w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}if((240&j)==0){for(C=w,L=j,J=U;j=(s=g.distcode[J+((V&(1<<C+L)-1)>>C)])>>>16&255,U=65535&s,!(C+(w=s>>>24)<=D);){if(Q===0)break e;Q--,V+=q[z++]<<D,D+=8}V>>>=C,D-=C,g.back+=C}if(V>>>=w,D-=w,g.back+=w,64&j){O.msg="invalid distance code",g.mode=30;break}g.offset=U,g.extra=15&j,g.mode=24;case 24:if(g.extra){for(i=g.extra;D<i;){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){O.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(le===0)break e;if(te=Z-le,g.offset>te){if((te=g.offset-te)>g.whave&&g.sane){O.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=se-g.offset,te=g.length;for(le<te&&(te=le),le-=te,g.length-=te;ee[se++]=v[K++],--te;);g.length===0&&(g.mode=21);break;case 26:if(le===0)break e;ee[se++]=g.length,le--,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-=le,O.total_out+=Z,g.total+=Z,Z&&(O.adler=g.check=g.flags?n(g.check,ee,Z,se-Z):h(g.check,ee,Z,se-Z)),Z=le,(g.flags?V:o(V))!==g.check){O.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)){O.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 T}return O.next_out=se,O.avail_out=le,O.next_in=z,O.avail_in=Q,g.hold=V,g.bits=D,(g.wsize||Z!==O.avail_out&&g.mode<30&&(g.mode<27||M!==4))&&ue(O,O.output,O.next_out,Z-O.avail_out)?(g.mode=31,-4):($-=O.avail_in,Z-=O.avail_out,O.total_in+=$,O.total_out+=Z,g.total+=Z,g.wrap&&Z&&(O.adler=g.check=g.flags?n(g.check,ee,Z,O.next_out-Z):h(g.check,ee,Z,O.next_out-Z)),O.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===N&&(Y=-5),Y)},u.inflateEnd=function(O){if(!O||!O.state)return T;var M=O.state;return M.window&&(M.window=null),O.state=null,N},u.inflateGetHeader=function(O,M){var g;return O&&O.state?(2&(g=O.state).wrap)==0?T:((g.head=M).done=!1,N):T},u.inflateSetDictionary=function(O,M){var g,q=M.length;return O&&O.state?(g=O.state).wrap!==0&&g.mode!==11?T:g.mode===11&&h(1,M,q,0)!==g.check?-3:ue(O,M,q,q)?(g.mode=31,-4):(g.havedict=1,N):T},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,a,u){var c=t("../utils/common"),h=[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],n=[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],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],A=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(x,S,N,T,I,_,R,o){var y,m,l,E,P,F,W,k,X,ue=o.bits,O=0,M=0,g=0,q=0,ee=0,z=0,se=0,Q=0,le=0,V=0,D=null,$=0,Z=new c.Buf16(16),te=new c.Buf16(16),K=null,v=0;for(O=0;O<=15;O++)Z[O]=0;for(M=0;M<T;M++)Z[S[N+M]]++;for(ee=ue,q=15;1<=q&&Z[q]===0;q--);if(q<ee&&(ee=q),q===0)return I[_++]=20971520,I[_++]=20971520,o.bits=1,0;for(g=1;g<q&&Z[g]===0;g++);for(ee<g&&(ee=g),O=Q=1;O<=15;O++)if(Q<<=1,(Q-=Z[O])<0)return-1;if(0<Q&&(x===0||q!==1))return-1;for(te[1]=0,O=1;O<15;O++)te[O+1]=te[O]+Z[O];for(M=0;M<T;M++)S[N+M]!==0&&(R[te[S[N+M]]++]=M);if(F=x===0?(D=K=R,19):x===1?(D=h,$-=257,K=n,v-=257,256):(D=f,K=A,-1),O=g,P=_,se=M=V=0,l=-1,E=(le=1<<(z=ee))-1,x===1&&852<le||x===2&&592<le)return 1;for(;;){for(W=O-se,X=R[M]<F?(k=0,R[M]):R[M]>F?(k=K[v+R[M]],D[$+R[M]]):(k=96,0),y=1<<O-se,g=m=1<<z;I[P+(V>>se)+(m-=y)]=W<<24|k<<16|X|0,m!==0;);for(y=1<<O-1;V&y;)y>>=1;if(y!==0?(V&=y-1,V+=y):V=0,M++,--Z[O]==0){if(O===q)break;O=S[N+R[M]]}if(ee<O&&(V&E)!==l){for(se===0&&(se=ee),P+=g,Q=1<<(z=O-se);z+se<q&&!((Q-=Z[z+se])<=0);)z++,Q<<=1;if(le+=1<<z,x===1&&852<le||x===2&&592<le)return 1;I[l=V&E]=ee<<24|z<<16|P-_|0}}return V!==0&&(I[P+V]=O-se<<24|64<<16|0),o.bits=ee,0}},{"../utils/common":41}],51:[function(t,a,u){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(t,a,u){var c=t("../utils/common"),h=0,n=1;function f(s){for(var p=s.length;0<=--p;)s[p]=0}var A=0,x=29,S=256,N=S+1+x,T=30,I=19,_=2*N+1,R=15,o=16,y=7,m=256,l=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],k=[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],ue=new Array(2*(N+2));f(ue);var O=new Array(2*T);f(O);var M=new Array(512);f(M);var g=new Array(256);f(g);var q=new Array(x);f(q);var ee,z,se,Q=new Array(T);function le(s,p,B,G,H){this.static_tree=s,this.extra_bits=p,this.extra_base=B,this.elems=G,this.max_length=H,this.has_stree=s&&s.length}function V(s,p){this.dyn_tree=s,this.max_code=0,this.stat_desc=p}function D(s){return s<256?M[s]:M[256+(s>>>7)]}function $(s,p){s.pending_buf[s.pending++]=255&p,s.pending_buf[s.pending++]=p>>>8&255}function Z(s,p,B){s.bi_valid>o-B?(s.bi_buf|=p<<s.bi_valid&65535,$(s,s.bi_buf),s.bi_buf=p>>o-s.bi_valid,s.bi_valid+=B-o):(s.bi_buf|=p<<s.bi_valid&65535,s.bi_valid+=B)}function te(s,p,B){Z(s,B[2*p],B[2*p+1])}function K(s,p){for(var B=0;B|=1&s,s>>>=1,B<<=1,0<--p;);return B>>>1}function v(s,p,B){var G,H,ie=new Array(R+1),oe=0;for(G=1;G<=R;G++)ie[G]=oe=oe+B[G-1]<<1;for(H=0;H<=p;H++){var ae=s[2*H+1];ae!==0&&(s[2*H]=K(ie[ae]++,ae))}}function w(s){var p;for(p=0;p<N;p++)s.dyn_ltree[2*p]=0;for(p=0;p<T;p++)s.dyn_dtree[2*p]=0;for(p=0;p<I;p++)s.bl_tree[2*p]=0;s.dyn_ltree[2*m]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function j(s){8<s.bi_valid?$(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function U(s,p,B,G){var H=2*p,ie=2*B;return s[H]<s[ie]||s[H]===s[ie]&&G[p]<=G[B]}function C(s,p,B){for(var G=s.heap[B],H=B<<1;H<=s.heap_len&&(H<s.heap_len&&U(p,s.heap[H+1],s.heap[H],s.depth)&&H++,!U(p,G,s.heap[H],s.depth));)s.heap[B]=s.heap[H],B=H,H<<=1;s.heap[B]=G}function L(s,p,B){var G,H,ie,oe,ae=0;if(s.last_lit!==0)for(;G=s.pending_buf[s.d_buf+2*ae]<<8|s.pending_buf[s.d_buf+2*ae+1],H=s.pending_buf[s.l_buf+ae],ae++,G===0?te(s,H,p):(te(s,(ie=g[H])+S+1,p),(oe=F[ie])!==0&&Z(s,H-=q[ie],oe),te(s,ie=D(--G),B),(oe=W[ie])!==0&&Z(s,G-=Q[ie],oe)),ae<s.last_lit;);te(s,m,p)}function J(s,p){var B,G,H,ie=p.dyn_tree,oe=p.stat_desc.static_tree,ae=p.stat_desc.has_stree,he=p.stat_desc.elems,de=-1;for(s.heap_len=0,s.heap_max=_,B=0;B<he;B++)ie[2*B]!==0?(s.heap[++s.heap_len]=de=B,s.depth[B]=0):ie[2*B+1]=0;for(;s.heap_len<2;)ie[2*(H=s.heap[++s.heap_len]=de<2?++de:0)]=1,s.depth[H]=0,s.opt_len--,ae&&(s.static_len-=oe[2*H+1]);for(p.max_code=de,B=s.heap_len>>1;1<=B;B--)C(s,ie,B);for(H=he;B=s.heap[1],s.heap[1]=s.heap[s.heap_len--],C(s,ie,1),G=s.heap[1],s.heap[--s.heap_max]=B,s.heap[--s.heap_max]=G,ie[2*H]=ie[2*B]+ie[2*G],s.depth[H]=(s.depth[B]>=s.depth[G]?s.depth[B]:s.depth[G])+1,ie[2*B+1]=ie[2*G+1]=H,s.heap[1]=H++,C(s,ie,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(pe,Te){var qe,Oe,At,be,Vt,Pr,He=Te.dyn_tree,yu=Te.max_code,uh=Te.stat_desc.static_tree,ch=Te.stat_desc.has_stree,lh=Te.stat_desc.extra_bits,vu=Te.stat_desc.extra_base,St=Te.stat_desc.max_length,$t=0;for(be=0;be<=R;be++)pe.bl_count[be]=0;for(He[2*pe.heap[pe.heap_max]+1]=0,qe=pe.heap_max+1;qe<_;qe++)St<(be=He[2*He[2*(Oe=pe.heap[qe])+1]+1]+1)&&(be=St,$t++),He[2*Oe+1]=be,yu<Oe||(pe.bl_count[be]++,Vt=0,vu<=Oe&&(Vt=lh[Oe-vu]),Pr=He[2*Oe],pe.opt_len+=Pr*(be+Vt),ch&&(pe.static_len+=Pr*(uh[2*Oe+1]+Vt)));if($t!==0){do{for(be=St-1;pe.bl_count[be]===0;)be--;pe.bl_count[be]--,pe.bl_count[be+1]+=2,pe.bl_count[St]--,$t-=2}while(0<$t);for(be=St;be!==0;be--)for(Oe=pe.bl_count[be];Oe!==0;)yu<(At=pe.heap[--qe])||(He[2*At+1]!==be&&(pe.opt_len+=(be-He[2*At+1])*He[2*At],He[2*At+1]=be),Oe--)}}(s,p),v(ie,de,s.bl_count)}function d(s,p,B){var G,H,ie=-1,oe=p[1],ae=0,he=7,de=4;for(oe===0&&(he=138,de=3),p[2*(B+1)+1]=65535,G=0;G<=B;G++)H=oe,oe=p[2*(G+1)+1],++ae<he&&H===oe||(ae<de?s.bl_tree[2*H]+=ae:H!==0?(H!==ie&&s.bl_tree[2*H]++,s.bl_tree[2*l]++):ae<=10?s.bl_tree[2*E]++:s.bl_tree[2*P]++,ie=H,de=(ae=0)===oe?(he=138,3):H===oe?(he=6,3):(he=7,4))}function Y(s,p,B){var G,H,ie=-1,oe=p[1],ae=0,he=7,de=4;for(oe===0&&(he=138,de=3),G=0;G<=B;G++)if(H=oe,oe=p[2*(G+1)+1],!(++ae<he&&H===oe)){if(ae<de)for(;te(s,H,s.bl_tree),--ae!=0;);else H!==0?(H!==ie&&(te(s,H,s.bl_tree),ae--),te(s,l,s.bl_tree),Z(s,ae-3,2)):ae<=10?(te(s,E,s.bl_tree),Z(s,ae-3,3)):(te(s,P,s.bl_tree),Z(s,ae-11,7));ie=H,de=(ae=0)===oe?(he=138,3):H===oe?(he=6,3):(he=7,4)}}f(Q);var b=!1;function i(s,p,B,G){Z(s,(A<<1)+(G?1:0),3),function(H,ie,oe,ae){j(H),$(H,oe),$(H,~oe),c.arraySet(H.pending_buf,H.window,ie,oe,H.pending),H.pending+=oe}(s,p,B)}u._tr_init=function(s){b||(function(){var p,B,G,H,ie,oe=new Array(R+1);for(H=G=0;H<x-1;H++)for(q[H]=G,p=0;p<1<<F[H];p++)g[G++]=H;for(g[G-1]=H,H=ie=0;H<16;H++)for(Q[H]=ie,p=0;p<1<<W[H];p++)M[ie++]=H;for(ie>>=7;H<T;H++)for(Q[H]=ie<<7,p=0;p<1<<W[H]-7;p++)M[256+ie++]=H;for(B=0;B<=R;B++)oe[B]=0;for(p=0;p<=143;)ue[2*p+1]=8,p++,oe[8]++;for(;p<=255;)ue[2*p+1]=9,p++,oe[9]++;for(;p<=279;)ue[2*p+1]=7,p++,oe[7]++;for(;p<=287;)ue[2*p+1]=8,p++,oe[8]++;for(v(ue,N+1,oe),p=0;p<T;p++)O[2*p+1]=5,O[2*p]=K(p,5);ee=new le(ue,F,S+1,N,R),z=new le(O,W,0,T,R),se=new le(new Array(0),k,0,I,y)}(),b=!0),s.l_desc=new V(s.dyn_ltree,ee),s.d_desc=new V(s.dyn_dtree,z),s.bl_desc=new V(s.bl_tree,se),s.bi_buf=0,s.bi_valid=0,w(s)},u._tr_stored_block=i,u._tr_flush_block=function(s,p,B,G){var H,ie,oe=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(ae){var he,de=4093624447;for(he=0;he<=31;he++,de>>>=1)if(1&de&&ae.dyn_ltree[2*he]!==0)return h;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return n;for(he=32;he<S;he++)if(ae.dyn_ltree[2*he]!==0)return n;return h}(s)),J(s,s.l_desc),J(s,s.d_desc),oe=function(ae){var he;for(d(ae,ae.dyn_ltree,ae.l_desc.max_code),d(ae,ae.dyn_dtree,ae.d_desc.max_code),J(ae,ae.bl_desc),he=I-1;3<=he&&ae.bl_tree[2*X[he]+1]===0;he--);return ae.opt_len+=3*(he+1)+5+5+4,he}(s),H=s.opt_len+3+7>>>3,(ie=s.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=B+5,B+4<=H&&p!==-1?i(s,p,B,G):s.strategy===4||ie===H?(Z(s,2+(G?1:0),3),L(s,ue,O)):(Z(s,4+(G?1:0),3),function(ae,he,de,pe){var Te;for(Z(ae,he-257,5),Z(ae,de-1,5),Z(ae,pe-4,4),Te=0;Te<pe;Te++)Z(ae,ae.bl_tree[2*X[Te]+1],3);Y(ae,ae.dyn_ltree,he-1),Y(ae,ae.dyn_dtree,de-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,oe+1),L(s,s.dyn_ltree,s.dyn_dtree)),w(s),G&&j(s)},u._tr_tally=function(s,p,B){return s.pending_buf[s.d_buf+2*s.last_lit]=p>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&p,s.pending_buf[s.l_buf+s.last_lit]=255&B,s.last_lit++,p===0?s.dyn_ltree[2*B]++:(s.matches++,p--,s.dyn_ltree[2*(g[B]+S+1)]++,s.dyn_dtree[2*D(p)]++),s.last_lit===s.lit_bufsize-1},u._tr_align=function(s){Z(s,2,3),te(s,m,ue),function(p){p.bi_valid===16?($(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):8<=p.bi_valid&&(p.pending_buf[p.pending++]=255&p.bi_buf,p.bi_buf>>=8,p.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(t,a,u){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(t,a,u){(function(c){(function(h,n){if(!h.setImmediate){var f,A,x,S,N=1,T={},I=!1,_=h.document,R=Object.getPrototypeOf&&Object.getPrototypeOf(h);R=R&&R.setTimeout?R:h,f={}.toString.call(h.process)==="[object process]"?function(l){me.nextTick(function(){y(l)})}:function(){if(h.postMessage&&!h.importScripts){var l=!0,E=h.onmessage;return h.onmessage=function(){l=!1},h.postMessage("","*"),h.onmessage=E,l}}()?(S="setImmediate$"+Math.random()+"$",h.addEventListener?h.addEventListener("message",m,!1):h.attachEvent("onmessage",m),function(l){h.postMessage(S+l,"*")}):h.MessageChannel?((x=new MessageChannel).port1.onmessage=function(l){y(l.data)},function(l){x.port2.postMessage(l)}):_&&"onreadystatechange"in _.createElement("script")?(A=_.documentElement,function(l){var E=_.createElement("script");E.onreadystatechange=function(){y(l),E.onreadystatechange=null,A.removeChild(E),E=null},A.appendChild(E)}):function(l){setTimeout(y,0,l)},R.setImmediate=function(l){typeof l!="function"&&(l=new Function(""+l));for(var E=new Array(arguments.length-1),P=0;P<E.length;P++)E[P]=arguments[P+1];var F={callback:l,args:E};return T[N]=F,f(N),N++},R.clearImmediate=o}function o(l){delete T[l]}function y(l){if(I)setTimeout(y,0,l);else{var E=T[l];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(n,W)}})(E)}finally{o(l),I=!1}}}}function m(l){l.source===h&&typeof l.data=="string"&&l.data.indexOf(S)===0&&y(+l.data.slice(S.length))}})(typeof self=="undefined"?c===void 0?this:c:self)}).call(this,typeof Ie!="undefined"?Ie:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}(Ei)),Ei.exports}var md=pd(),wd=su(md),kt={exports:{}},xi,vl;function gd(){if(vl)return xi;vl=1;var r={"&":"&",'"':""","'":"'","<":"<",">":">"};function e(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(a,u){return r[u]}):t}return xi=e,xi}var _l;function yd(){if(_l)return kt.exports;_l=1;var r=gd(),e=hu().Stream,t=" ";function a(A,x){typeof x!="object"&&(x={indent:x});var S=x.stream?new e:null,N="",T=!1,I=x.indent?x.indent===!0?t:x.indent:"",_=!0;function R(E){_?me.nextTick(E):E()}function o(E,P){if(P!==void 0&&(N+=P),E&&!T&&(S=S||new e,T=!0),E&&T){var F=N;R(function(){S.emit("data",F)}),N=""}}function y(E,P){n(o,h(E,I,I?1:0),P)}function m(){if(S){var E=N;R(function(){S.emit("data",E),S.emit("end"),S.readable=!1,S.emit("close")})}}function l(E){var P=E.encoding||"UTF-8",F={version:"1.0",encoding:P};E.standalone&&(F.standalone=E.standalone),y({"?xml":{_attr:F}}),N=N.replace("/>","?>")}return R(function(){_=!1}),x.declaration&&l(x.declaration),A&&A.forEach?A.forEach(function(E,P){var F;P+1===A.length&&(F=m),y(E,F)}):y(A,m),S?(S.readable=!0,S):N}function u(){var A=Array.prototype.slice.call(arguments),x={_elem:h(A)};return x.push=function(S){if(!this.append)throw new Error("not assigned to a parent!");var N=this,T=this._elem.indent;n(this.append,h(S,T,this._elem.icount+(T?1:0)),function(){N.append(!0)})},x.close=function(S){S!==void 0&&this.push(S),this.end&&this.end()},x}function c(A,x){return new Array(x||0).join(A||"")}function h(A,x,S){S=S||0;var N=c(x,S),T,I=A,_=!1;if(typeof A=="object"){var R=Object.keys(A);if(T=R[0],I=A[T],I&&I._elem)return I._elem.name=T,I._elem.icount=S,I._elem.indent=x,I._elem.indents=N,I._elem.interrupt=I,I._elem}var o=[],y=[],m;function l(E){var P=Object.keys(E);P.forEach(function(F){o.push(f(F,E[F]))})}switch(typeof I){case"object":if(I===null)break;I._attr&&l(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"?l(E._attr):y.push(h(E,x,S+1))}else y.pop(),m=!0,y.push(r(E))}),m||y.push(""));break;default:y.push(r(I))}return{name:T,interrupt:_,attributes:o,content:y,icount:S,indents:N,indent:x}}function n(A,x,S){if(typeof x!="object")return A(!1,x);var N=x.interrupt?1:x.content.length;function T(){for(;x.content.length;){var _=x.content.shift();if(_!==void 0){if(I(_))return;n(A,_)}}A(!1,(N>1?x.indents:"")+(x.name?"</"+x.name+">":"")+(x.indent&&!S?`
|
|
22
|
-
`:"")),S&&S()}function I(_){return _.interrupt?(_.interrupt.append=A,_.interrupt.end=T,_.interrupt=!1,A(!0),!0):!1}if(A(!1,x.indents+(x.name?"<"+x.name:"")+(x.attributes.length?" "+x.attributes.join(" "):"")+(N?x.name?">":"":x.name?"/>":"")+(x.indent&&N>1?`
|
|
23
|
-
`:"")),!N)return A(!1,x.indent?`
|
|
24
|
-
`:"");I(x)||T()}function f(A,x){return A+'="'+r(x)+'"'}return kt.exports=a,kt.exports.element=kt.exports.Element=u,kt.exports}var vd=yd(),Ee=su(vd),Ot=0,Ti=32,_d=32,bd=(r,e)=>{let t=e.replace(/-/g,"");if(t.length!==_d)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);let u=t.replace(/(..)/g,"$1 ").trim().split(" ").map(f=>parseInt(f,16));u.reverse();let h=r.slice(Ot,Ti).map((f,A)=>f^u[A%u.length]),n=new Uint8Array(Ot+h.length+Math.max(0,r.length-Ti));return n.set(r.slice(0,Ot)),n.set(h,Ot),n.set(r.slice(Ti),Ot+h.length),n},Ht=class{format(e,t={stack:[]}){let a=e.prepForXml(t);if(a)return a;throw Error("XMLComponent did not format correctly")}},Ir=class{replace(e,t,a){let u=e;return t.forEach((c,h)=>{u=u.replace(new RegExp(`{${c.fileName}}`,"g"),(a+h).toString())}),u}getMediaData(e,t){return t.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}},nu=class{replace(e,t){let a=e;for(let u of t)a=a.replace(new RegExp(`{${u.reference}-${u.instance}}`,"g"),u.numId.toString());return a}},iu=class{constructor(){re(this,"formatter"),re(this,"imageReplacer"),re(this,"numberingReplacer"),this.formatter=new Ht,this.imageReplacer=new Ir,this.numberingReplacer=new nu}compile(e,t,a=[]){let u=new wd,c=this.xmlifyFile(e,t),h=new Map(Object.entries(c));for(let[,n]of h)if(Array.isArray(n))for(let f of n)u.file(f.path,f.data);else u.file(n.path,n.data);for(let n of a)u.file(n.path,n.data);for(let n of e.Media.Array)n.type!=="svg"?u.file(`word/media/${n.fileName}`,n.data):(u.file(`word/media/${n.fileName}`,n.data),u.file(`word/media/${n.fallback.fileName}`,n.fallback.data));for(let{data:n,name:f,fontKey:A}of e.FontTable.fontOptionsWithKey){let[x]=f.split(".");u.file(`word/fonts/${x}.odttf`,bd(n,A))}return u}xmlifyFile(e,t){let a=e.Document.Relationships.RelationshipCount+1,u=Ee(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(u,e.Media);return{Relationships:{data:(c.forEach((h,n)=>{e.Document.Relationships.createRelationship(a+n,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${h.fileName}`)}),e.Document.Relationships.createRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),Ee(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let h=this.imageReplacer.replace(u,c,a);return this.numberingReplacer.replace(h,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let h=Ee(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(h,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ee(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ee(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ee(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((h,n)=>{let f=Ee(this.formatter.format(h.View,{viewWrapper:h,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(f,e.Media).forEach((x,S)=>{h.Relationships.createRelationship(S,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${x.fileName}`)}),{data:Ee(this.formatter.format(h.Relationships,{viewWrapper:h,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${n+1}.xml.rels`}}),FooterRelationships:e.Footers.map((h,n)=>{let f=Ee(this.formatter.format(h.View,{viewWrapper:h,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(f,e.Media).forEach((x,S)=>{h.Relationships.createRelationship(S,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${x.fileName}`)}),{data:Ee(this.formatter.format(h.Relationships,{viewWrapper:h,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${n+1}.xml.rels`}}),Headers:e.Headers.map((h,n)=>{let f=Ee(this.formatter.format(h.View,{viewWrapper:h,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),A=this.imageReplacer.getMediaData(f,e.Media),x=this.imageReplacer.replace(f,A,0);return{data:this.numberingReplacer.replace(x,e.Numbering.ConcreteNumbering),path:`word/header${n+1}.xml`}}),Footers:e.Footers.map((h,n)=>{let f=Ee(this.formatter.format(h.View,{viewWrapper:h,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),A=this.imageReplacer.getMediaData(f,e.Media),x=this.imageReplacer.replace(f,A,0);return{data:this.numberingReplacer.replace(x,e.Numbering.ConcreteNumbering),path:`word/footer${n+1}.xml`}}),ContentTypes:{data:Ee(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ee(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ee(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ee(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ee(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ee(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Ee(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Ee(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Ee(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}},Ed={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},bl=r=>r===!0?Ed.WITH_2_BLANKS:r===!1?void 0:r,sh=class ut{static pack(e,t,a){return Eh(this,arguments,function*(u,c,h,n=[]){return this.compiler.compile(u,bl(h),n).generateAsync({type:c,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(e,t,a=[]){return ut.pack(e,"string",t,a)}static toBuffer(e,t,a=[]){return ut.pack(e,"nodebuffer",t,a)}static toBase64String(e,t,a=[]){return ut.pack(e,"base64",t,a)}static toBlob(e,t,a=[]){return ut.pack(e,"blob",t,a)}static toArrayBuffer(e,t,a=[]){return ut.pack(e,"arraybuffer",t,a)}static toStream(e,t,a=[]){let u=new dd.Stream;return this.compiler.compile(e,bl(t),a).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(h=>{u.emit("data",h),u.emit("end")}),u}};re(sh,"compiler",new iu);var ah=sh,Fd=new Ht;var Bd=new Ht;var Ud=new Ir;var wu=r=>{let e={},t={};return r.forEach(a=>{var u;a.type==="definition"?e[a.identifier.toUpperCase()]=a.url:a.type==="footnoteDefinition"?t[a.identifier.toUpperCase()]={children:a.children}:(u=a.children)!=null&&u.length&&Object.assign(e,wu(a.children))}),{definitions:e,footnoteDefinitions:t}};function xd(r){let t=new Uint8Array(r).slice(0,4);if(t[0]===66&&t[1]===77)return"bmp";let a="";switch(t.forEach(u=>{a+=u.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 Lr=3,Td=async r=>{let e=document.createElement("canvas"),t=e.getContext("2d");if(t){let a=new Image;a.src=r,await new Promise(h=>{a.onload=h});let u=a.width*Lr,c=a.height*Lr;return e.width=u,e.height=c,t.drawImage(a,0,0,u,c),{data:e.toDataURL("image/png"),type:"png",transformation:{width:u/Lr,height:c/Lr}}}else throw new Error("Canvas context not available")},Ad=async r=>{let t=await(await fetch(r)).arrayBuffer(),a=xd(t)||"png",u=await createImageBitmap(new Blob([t],{type:a}));return{type:a,data:t,transformation:{width:u.width,height:u.height}}},Sd=async r=>{try{return r.startsWith("data:")?await Td(r):await Ad(r)}catch(e){return console.error(`Error resolving image: ${r}`,e),{type:"png",data:Buffer.from([]),transformation:{width:100,height:100}}}},oh={useTitle:!0,imageResolver:Sd};var Rd=(r,e,t)=>{let a=async(c,h)=>{var S,N,T;let n=new Set(h),f={bold:h.has("strong"),italics:h.has("emphasis"),strike:h.has("delete")},A=(N=c.url)!=null?N:r[(S=c.identifier)==null?void 0:S.toUpperCase()],x=(T=c.alt)!=null?T:A==null?void 0:A.split("/").pop();switch(c.type){case"text":return[new Fe({text:c.value,...f})];case"break":return[new Fe({break:1})];case"inlineCode":return[new Fe({text:c.value,...f,style:"code"})];case"emphasis":case"strong":case"delete":return n.add(c.type),u(c,n);case"link":case"linkReference":return n.add("link"),[A.startsWith("#")?new gr({anchor:A,children:await u(c,n)}):new Ut({link:A,children:await u(c,n)})];case"image":case"imageReference":return[new wr({...await t(A),altText:{description:x,name:x,title:x}})];case"footnoteReference":return[new Rr(e[c.identifier].id)];default:return[new Fe("")]}},u=async(c,h=new Set)=>{var n;return(await Promise.all((n=c.children)==null?void 0:n.map(f=>a(f,h)))).flat()};return u},gu=async(r,e,t,a)=>{let{imageResolver:u,useTitle:c,...h}={...oh,...a},n=Rd(e,t,u),f=async(x,S)=>{let N=[...S],T={};switch(S.includes("list")&&(T.bullet={level:S.filter(I=>I==="list").length-1}),S.includes("blockquote")&&(T.style="Quote"),x.type){case"paragraph":return[new Be({...T,children:await n(x)})];case"heading":return[new Be({heading:c?x.depth===1?"Title":`Heading${x.depth-1}`:`Heading${x.depth}`,children:await n(x)})];case"code":return[new Be({alignment:"start",style:"blockCode",children:x.value.split(`
|
|
25
|
-
`).map(I=>new Fe({text:I,break:1,style:"code"}))})];case"list":case"blockquote":case"listItem":return N.push(x.type),A(x,N);case"thematicBreak":return[new Be({border:{top:{style:Gt.SINGLE,size:6}}})];case"table":case"tableRow":case"tableCell":case"yaml":case"html":default:return console.warn(`Unsupported node type: ${x.type}`,x),[]}},A=async(x,S)=>{var N;return(await Promise.all((N=x.children)==null?void 0:N.map(T=>f(T,S)))).flat()};return{...h,children:await A(r,[])}};var Id=async(r,e,t,a="blob")=>{let u=1,c={},h=await Promise.all((Array.isArray(r)?r:[{ast:r}]).map(async({ast:A,props:x})=>{let{definitions:S,footnoteDefinitions:N}=wu(A.children);return await Promise.all(Object.entries(N).map(async([,T])=>{T.id=u,c[u]=await gu({type:"root",children:T.children},S,{}),u++})),{ast:A,props:{...t,...x},definitions:S,footnoteDefinitions:N}})),n=await Promise.all(h.map(({ast:A,props:x,definitions:S,footnoteDefinitions:N})=>gu(A,S,N,x))),f=new Sr({...e,footnotes:c,sections:n});return ah.pack(f,a)};0&&(module.exports={toDocx});
|
|
26
|
-
/*! Bundled license information:
|
|
27
|
-
|
|
28
|
-
@mayank1513/docx/dist/index.mjs:
|
|
29
|
-
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
30
|
-
(*!
|
|
31
|
-
* The buffer module from node.js, for the browser.
|
|
32
|
-
*
|
|
33
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
34
|
-
* @license MIT
|
|
35
|
-
*)
|
|
36
|
-
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
37
|
-
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
|
38
|
-
*/
|
|
1
|
+
"use strict";var S=Object.create;var I=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var H=(e,o)=>{for(var n in o)I(e,n,{get:o[n],enumerable:!0})},g=(e,o,n,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of v(o))!F.call(e,r)&&r!==n&&I(e,r,{get:()=>o[r],enumerable:!(p=B(o,r))||p.enumerable});return e};var A=(e,o,n)=>(n=e!=null?S(E(e)):{},g(o||!e||!e.__esModule?I(n,"default",{value:e,enumerable:!0}):n,e)),j=e=>g(I({},"__esModule",{value:!0}),e);var U={};H(U,{toDocx:()=>X});module.exports=j(U);var D=require("@mayank1513/docx");var b=e=>{let o={},n={};return e.forEach(p=>{var r;p.type==="definition"?o[p.identifier.toUpperCase()]=p.url:p.type==="footnoteDefinition"?n[p.identifier.toUpperCase()]={children:p.children}:(r=p.children)!=null&&r.length&&Object.assign(o,b(p.children))}),{definitions:o,footnoteDefinitions:n}},w=e=>{var o,n;return(o=e.children)!=null&&o.length?e.children.map(w).join(""):(n=e.value)!=null?n:""};var O={useTitle:!0,plugins:[]};var N=A(require("@mayank1513/docx")),K=(e,o,n)=>{let p=async(l,m)=>{var t,d,c;let s=Object.assign({},m),u=(await Promise.all(n.map(i=>{var f,h;return(h=(f=i.inline)==null?void 0:f.call(i,N,l,s,e,o,r))!=null?h:[]}))).flat(),P=(d=l.url)!=null?d:e[(t=l.identifier)==null?void 0:t.toUpperCase()];switch(l.type){case"text":return[...u,new D.TextRun({text:l.value,...s})];case"break":return[...u,new D.TextRun({break:1})];case"inlineCode":return[...u,new D.TextRun({text:l.value,...s,style:"code",font:{name:"Consolas"}})];case"emphasis":return s.italics=!0,[...u,...await r(l,s)];case"strong":return s.bold=!0,[...u,...await r(l,s)];case"delete":return s.strike=!0,[...u,...await r(l,s)];case"link":case"linkReference":return[...u,P.startsWith("#")?new D.InternalHyperlink({anchor:P.slice(1),children:await r(l,s)}):new D.ExternalHyperlink({link:P,children:await r(l,s)})];case"footnoteReference":return[...u,new D.FootnoteReferenceRun((c=o[l.identifier].id)!=null?c:0)];default:return[...u]}},r=async(l,m=new Set)=>{var s;return(await Promise.all((s=l.children)==null?void 0:s.map(u=>p(u,m)))).flat()};return r},C=async(e,o,n,p)=>{let{plugins:r,useTitle:l,...m}={...O,...p},s=K(o,n,r),u=async(t,d)=>{var f,h,y,T;let c=Object.assign({},d),i=(await Promise.all(r.map(x=>{var k,R;return(R=(k=x.block)==null?void 0:k.call(x,N,t,c,P,s))!=null?R:[]}))).flat();switch(t.type){case"paragraph":return[...i,new D.Paragraph({...d,children:await s(t)})];case"heading":return[new D.Paragraph({...i,heading:l?t.depth===1?"Title":`Heading${t.depth-1}`:`Heading${t.depth}`,children:[new D.Bookmark({id:w(t).replace(/[. ]+/g,"-").toLowerCase(),children:await s(t)})]})];case"code":return[...i,new D.Paragraph({alignment:"start",style:"blockCode",children:t.value.split(`
|
|
2
|
+
`).map(x=>new D.TextRun({text:x,break:1,style:"code",font:{name:"Consolas"}}))})];case"list":return t.ordered?(c.bullet={level:((h=(f=c.bullet)==null?void 0:f.level)!=null?h:-1)+1},console.warn("Please add numbering plugin to support ordered lists. For now, we use only bullets for both the ordered and the unordered list.")):c.bullet={level:((T=(y=c.bullet)==null?void 0:y.level)!=null?T:-1)+1},[...i,...await P(t,c)];case"blockquote":return[...i,...await P(t,c)];case"listItem":return[...i,...await P(t,c)];case"thematicBreak":return[...i,new D.Paragraph({border:{top:{style:D.BorderStyle.SINGLE,size:6}}})];case"definition":case"footnoteDefinition":return i;case"table":return console.warn("Please add table plugin to support tables."),i;case"":return i;case"yaml":case"html":default:return console.warn(`May be an unsupported node type: ${t.type}`,t),i}},P=async(t,d)=>{var c;return(await Promise.all((c=t.children)==null?void 0:c.map(i=>u(i,d)))).flat()};return{...m,children:await P(e,{})}};var X=async(e,o={},n={},p="blob")=>{var P;let r=1,l={};(P=n==null?void 0:n.plugins)==null||P.forEach(t=>{var d;return(d=t.root)==null?void 0:d.call(t,o)});let m=await Promise.all((Array.isArray(e)?e:[{ast:e}]).map(async({ast:t,props:d})=>{var f;let{definitions:c,footnoteDefinitions:i}=b(t.children);return await Promise.all(Object.values(i).map(async h=>{h.id=r,l[r]=await C({type:"root",children:h.children},c,{}),r++})),(f=d==null?void 0:d.plugins)==null||f.forEach(h=>{var y;return(y=h.root)==null?void 0:y.call(h,o)}),{ast:t,props:{...n,...d},definitions:c,footnoteDefinitions:i}})),s=await Promise.all(m.map(({ast:t,props:d,definitions:c,footnoteDefinitions:i})=>C(t,c,i,d))),u=new D.Document({...o,footnotes:l,sections:s});return D.Packer.pack(u,p)};0&&(module.exports={toDocx});
|