"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2184],{78419:(e,t,r)=>{let s;r.d(t,{Fmo:()=>nH,Hjg:()=>iD,J1n:()=>nS,MBq:()=>ay,Mf2:()=>n$,ND6:()=>a_,NTc:()=>sw,PBP:()=>sg,XIK:()=>iN,Yus:()=>rY,bjD:()=>nP,fzL:()=>n5,nA6:()=>ix,sQw:()=>oA,tUz:()=>iR,yoT:()=>af});var n,i,o,a,l,h,u,c,p,d,m,f,w,g,v,y,b,x,E,T,k,A,S,R,_,I,N,C,L,D,O,F,P,B,M,H,U,W,G,K,j,V,Y,z,$,q,X,Q=r(55813),J=r(65977),Z=r(49500),ee=r(3432),et=Object.create,er=Object.defineProperty,es=Object.getOwnPropertyDescriptor,en=Object.getOwnPropertyNames,ei=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty,ea=(e,t)=>()=>(e&&(t=e(e=0)),t),el=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eh=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var n,i=en(t),o=0,a=i.length;ot[e]).bind(null,n),enumerable:!(s=es(t,n))||s.enumerable});return e},eu=e=>eo.call(e,"module.exports")?e["module.exports"]:eh(er({},"__esModule",{value:!0}),e);function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ep(e,t,r){var s;return(s=function(e,t){if("object"!=ec(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=ec(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ec(s)?s:s+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ed=class{constructor(e){ep(this,"rootKey",void 0),this.rootKey=e}};let em=Object.seal({});var ef=class extends ed{constructor(e){super(e),ep(this,"root",void 0),this.root=[]}prepForXml(e){e.stack.push(this);let t=[];for(let r of this.root)if(r instanceof ed){let s=r.prepForXml(e);void 0!==s&&t.push(s)}else t.push(r);return e.stack.pop(),{[this.rootKey]:t.length?1===t.length&&t[0]&&"object"==typeof t[0]&&"_attr"in t[0]?t[0]:t:em}}addChildElement(e){return this.root.push(e),this}},ew=class extends ef{constructor(e,t){super(e),ep(this,"includeIfEmpty",void 0),this.includeIfEmpty=t}prepForXml(e){let t=super.prepForXml(e);if(this.includeIfEmpty||t&&("object"!=typeof t[this.rootKey]||Object.keys(t[this.rootKey]).length))return t}},eg=class extends ed{constructor(e){super("_attr"),this.root=e,ep(this,"xmlKeys",void 0)}prepForXml(e){let t={};return Object.entries(this.root).forEach(([e,r])=>{void 0!==r&&(t[this.xmlKeys&&this.xmlKeys[e]||e]=r)}),{_attr:t}}},ev=class extends ed{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:e})=>void 0!==e).reduce((e,{key:t,value:r})=>({...e,[t]:r}),{})}}},ey=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{bottom:"w:bottom",color:"w:color",fill:"w:fill",footer:"w:footer",gutter:"w:gutter",h:"w:h",header:"w:header",left:"w:left",linePitch:"w:linePitch",pos:"w:pos",right:"w:right",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",space:"w:space",sz:"w:sz",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint",top:"w:top",type:"w:type",val:"w:val",w:"w:w"})}},eb=ea(()=>{eb(),i=void 0!==i?i:"u">typeof self?self:"u">typeof window?window:{}});function ex(){h=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t>18&63]+o[s>>12&63]+o[s>>6&63]+o[63&s]);return n.join("")}(e,a,a+16383>l?l:a+16383));return 1===s?(n+=o[(t=e[r-1])>>2],n+=o[t<<4&63],n+="=="):2===s&&(n+=o[(t=(e[r-2]<<8)+e[r-1])>>10],n+=o[t>>4&63],n+=o[t<<2&63],n+="="),i.push(n),i.join("")}function eT(e,t,r,s,n){var i,o,a=8*n-s-1,l=(1<>1,u=-7,c=r?n-1:0,p=r?-1:1,d=e[t+c];for(c+=p,i=d&(1<<-u)-1,d>>=-u,u+=a;u>0;i=256*i+e[t+c],c+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=s;u>0;o=256*o+e[t+c],c+=p,u-=8);if(0===i)i=1-h;else{if(i===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,s),i-=h}return(d?-1:1)*o*Math.pow(2,i-s)}function ek(e,t,r,s,n,i){var o,a,l,h=8*i-n-1,u=(1<>1,p=5960464477539062e-23*(23===n),d=s?0:i-1,m=s?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=p/l:t+=p*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=u?(a=0,o=u):o+c>=1?(a=(t*l-1)*Math.pow(2,n),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[r+d]=255&a,d+=m,a/=256,n-=8);for(o=o<0;e[r+d]=255&o,d+=m,o/=256,h-=8);e[r+d-m]|=128*f}function eA(){return eR.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function eS(e,t){if(eA()typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,s){if(t.byteLength,r<0||t.byteLengthtypeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t){return"number"!=typeof t.length||(r=t.length)!=r?eS(e,0):eC(e,t)}if("Buffer"===t.type&&c(t.data))return eC(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function eI(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function eN(e,t){if(eI(t),e=eS(e,t<0?0:0|eL(t)),!eR.TYPED_ARRAY_SUPPORT)for(var r=0;r=eA())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eA().toString(16)+" bytes");return 0|e}function eD(e){return!!(null!=e&&e._isBuffer)}function eO(e,t){if(eD(e))return e.length;if("u">typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ez(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return eq(e).length;default:if(s)return ez(e).length;t=(""+t).toLowerCase(),s=!0}}function eF(e,t,r){var s,n,i,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var s,n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),isNaN(r*=1)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=eR.from(t,s)),eD(t))return 0===t.length?-1:eM(e,t,r,s,n);if("number"==typeof t){if(t&=255,eR.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return eM(e,[t],r,s,n)}throw TypeError("val must be string, number or Buffer")}function eM(e,t,r,s,n){var i,o=1,a=e.length,l=t.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function h(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(i=r;ia&&(r=a-l),i=r;i>=0;i--){for(var c=!0,p=0;p239?4:h>223?3:h>191?2:1;if(n+c<=r)switch(c){case 1:h<128&&(u=h);break;case 2:(192&(i=e[n+1]))==128&&(l=(31&h)<<6|63&i)>127&&(u=l);break;case 3:i=e[n+1],o=e[n+2],(192&i)==128&&(192&o)==128&&(l=(15&h)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[n+1],o=e[n+2],a=e[n+3],(192&i)==128&&(192&o)==128&&(192&a)==128&&(l=(15&h)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,s.push(u>>>10&1023|55296),u=56320|1023&u),s.push(u),n+=c}var d=s,m=d.length;if(m<=p)return String.fromCharCode.apply(String,d);for(var f="",w=0;wr)throw RangeError("Trying to access beyond buffer length")}function eW(e,t,r,s,n,i){if(!eD(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw RangeError("Index out of range")}function eG(e,t,r,s){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n>>(s?n:1-n)*8}function eK(e,t,r,s){t<0&&(t=0xffffffff+t+1);for(var n=0,i=Math.min(e.length-r,4);n>>(s?n:3-n)*8&255}function ej(e,t,r,s,n,i){if(r+s>e.length||r<0)throw RangeError("Index out of range")}function eV(e,t,r,s,n){return n||ej(e,t,r,4),ek(e,t,r,s,23,4),r+4}function eY(e,t,r,s,n){return n||ej(e,t,r,8),ek(e,t,r,s,52,8),r+8}function ez(e,t){t=t||1/0;for(var r,s=e.length,n=null,i=[],o=0;o55295&&r<57344){if(!n){if(r>56319||o+1===s){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function e$(e){for(var t=[],r=0;r0)throw Error("Invalid string. Length must be a multiple of 4");i="="===e[u-2]?2:+("="===e[u-1]),o=new l(3*u/4-i),s=i>0?u-4:u;var c=0;for(t=0,r=0;t>16&255,o[c++]=n>>8&255,o[c++]=255&n;return 2===i?(n=a[e.charCodeAt(t)]<<2|a[e.charCodeAt(t+1)]>>4,o[c++]=255&n):1===i&&(n=a[e.charCodeAt(t)]<<10|a[e.charCodeAt(t+1)]<<4|a[e.charCodeAt(t+2)]>>2,o[c++]=n>>8&255,o[c++]=255&n),o}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(d,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function eX(e,t,r,s){for(var n=0;n=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function eQ(e){var t;return null!=e&&(!!e._isBuffer||eJ(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&eJ(t.slice(0,0)))}function eJ(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var eZ=ea(()=>{eb(),o=[],a=[],l="u">typeof Uint8Array?Uint8Array:Array,h=!1,u=({}).toString,c=Array.isArray||function(e){return"[object Array]"==u.call(e)},eR.TYPED_ARRAY_SUPPORT=void 0===i.TYPED_ARRAY_SUPPORT||i.TYPED_ARRAY_SUPPORT,eA(),eR.poolSize=8192,eR._augment=function(e){return e.__proto__=eR.prototype,e},eR.from=function(e,t,r){return e_(null,e,t,r)},eR.TYPED_ARRAY_SUPPORT&&(eR.prototype.__proto__=Uint8Array.prototype,eR.__proto__=Uint8Array,"u">typeof Symbol&&Symbol.species&&eR[Symbol.species]),eR.alloc=function(e,t,r){return(eI(e),e<=0)?eS(null,e):void 0!==t?"string"==typeof r?eS(null,e).fill(t,r):eS(null,e).fill(t):eS(null,e)},eR.allocUnsafe=function(e){return eN(null,e)},eR.allocUnsafeSlow=function(e){return eN(null,e)},eR.isBuffer=eQ,eR.compare=function(e,t){if(!eD(e)||!eD(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,s=t.length,n=0,i=Math.min(r,s);n0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},eR.prototype.compare=function(e,t,r,s,n){if(!eD(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),t<0||r>e.length||s<0||n>this.length)throw RangeError("out of range index");if(s>=n&&t>=r)return 0;if(s>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,s>>>=0,n>>>=0,this===e)return 0;for(var i=n-s,o=r-t,a=Math.min(i,o),l=this.slice(s,n),h=e.slice(t,r),u=0;up)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var d=!1;;)switch(s){case"hex":return function(e,t,r,s){r=Number(r)||0;var n=e.length-r;s?(s=Number(s))>n&&(s=n):s=n;var i=t.length;if(i%2!=0)throw TypeError("Invalid hex string");s>i/2&&(s=i/2);for(var o=0;o>8,n.push(r%256),n.push(s);return n}(e,this.length-u),this,u,c);default:if(d)throw TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),d=!0}},eR.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},p=4096,eR.prototype.slice=function(e,t){var r,s=this.length;if(e=~~e,t=void 0===t?s:~~t,e<0?(e+=s)<0&&(e=0):e>s&&(e=s),t<0?(t+=s)<0&&(t=0):t>s&&(t=s),t0&&(n*=256);)s+=this[e+--t]*n;return s},eR.prototype.readUInt8=function(e,t){return t||eU(e,1,this.length),this[e]},eR.prototype.readUInt16LE=function(e,t){return t||eU(e,2,this.length),this[e]|this[e+1]<<8},eR.prototype.readUInt16BE=function(e,t){return t||eU(e,2,this.length),this[e]<<8|this[e+1]},eR.prototype.readUInt32LE=function(e,t){return t||eU(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},eR.prototype.readUInt32BE=function(e,t){return t||eU(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},eR.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||eU(e,t,this.length);for(var s=this[e],n=1,i=0;++i=(n*=128)&&(s-=Math.pow(2,8*t)),s},eR.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||eU(e,t,this.length);for(var s=t,n=1,i=this[e+--s];s>0&&(n*=256);)i+=this[e+--s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},eR.prototype.readInt8=function(e,t){return(t||eU(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},eR.prototype.readInt16LE=function(e,t){t||eU(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},eR.prototype.readInt16BE=function(e,t){t||eU(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},eR.prototype.readInt32LE=function(e,t){return t||eU(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},eR.prototype.readInt32BE=function(e,t){return t||eU(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},eR.prototype.readFloatLE=function(e,t){return t||eU(e,4,this.length),eT(this,e,!0,23,4)},eR.prototype.readFloatBE=function(e,t){return t||eU(e,4,this.length),eT(this,e,!1,23,4)},eR.prototype.readDoubleLE=function(e,t){return t||eU(e,8,this.length),eT(this,e,!0,52,8)},eR.prototype.readDoubleBE=function(e,t){return t||eU(e,8,this.length),eT(this,e,!1,52,8)},eR.prototype.writeUIntLE=function(e,t,r,s){if(e*=1,t|=0,r|=0,!s){var n=Math.pow(2,8*r)-1;eW(this,e,t,r,n,0)}var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},eR.prototype.writeUInt8=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,1,255,0),eR.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},eR.prototype.writeUInt16LE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,2,65535,0),eR.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):eG(this,e,t,!0),t+2},eR.prototype.writeUInt16BE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,2,65535,0),eR.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):eG(this,e,t,!1),t+2},eR.prototype.writeUInt32LE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,4,0xffffffff,0),eR.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):eK(this,e,t,!0),t+4},eR.prototype.writeUInt32BE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,4,0xffffffff,0),eR.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):eK(this,e,t,!1),t+4},eR.prototype.writeIntLE=function(e,t,r,s){if(e*=1,t|=0,!s){var n=Math.pow(2,8*r-1);eW(this,e,t,r,n-1,-n)}var i=0,o=1,a=0;for(this[t]=255&e;++i=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},eR.prototype.writeInt8=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,1,127,-128),eR.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},eR.prototype.writeInt16LE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,2,32767,-32768),eR.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):eG(this,e,t,!0),t+2},eR.prototype.writeInt16BE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,2,32767,-32768),eR.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):eG(this,e,t,!1),t+2},eR.prototype.writeInt32LE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,4,0x7fffffff,-0x80000000),eR.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):eK(this,e,t,!0),t+4},eR.prototype.writeInt32BE=function(e,t,r){return e*=1,t|=0,r||eW(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),eR.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):eK(this,e,t,!1),t+4},eR.prototype.writeFloatLE=function(e,t,r){return eV(this,e,t,!0,r)},eR.prototype.writeFloatBE=function(e,t,r){return eV(this,e,t,!1,r)},eR.prototype.writeDoubleLE=function(e,t,r){return eY(this,e,t,!0,r)},eR.prototype.writeDoubleBE=function(e,t,r){return eY(this,e,t,!1,r)},eR.prototype.copy=function(e,t,r,s){if(r||(r=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s=this.length)throw RangeError("sourceStart out of bounds");if(s<0)throw RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(i<1e3||!eR.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n0&&a.length>i){a.warned=!0;var n,i,o,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,n=l,"function"==typeof console.warn?console.warn(n):console.log(n)}}else a=o[t]=r,++e._eventsCount;return e}function e8(e,t,r){var s=!1;function n(){e.removeListener(t,n),s||(s=!0,r.apply(e,arguments))}return n.listener=r,n}function e5(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function e3(e,t){for(var r=Array(t);t--;)r[t]=e[t];return r}var e4=ea(()=>{e0.prototype=Object.create(null),e1.EventEmitter=e1,e1.usingDomains=!1,e1.prototype.domain=void 0,e1.prototype._events=void 0,e1.prototype._maxListeners=void 0,e1.defaultMaxListeners=10,e1.init=function(){this.domain=null,!e1.usingDomains||!m.active||this instanceof m.Domain||(this.domain=m.active),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new e0,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},e1.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},e1.prototype.getMaxListeners=function(){return e2(this)},e1.prototype.emit=function(e){var t,r,s,n,i,o,a,l="error"===e;if(o=this._events)l=l&&null==o.error;else if(!l)return!1;if(a=this.domain,l){if(t=arguments[1],a)t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t);else if(t instanceof Error)throw t;else{var h=Error('Uncaught, unspecified "error" event. ('+t+")");throw h.context=t,h}return!1}if(!(r=o[e]))return!1;var u="function"==typeof r;switch(s=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var s=e.length,n=e3(e,s),i=0;i0;)if(r[i]===t||r[i].listener&&r[i].listener===t){o=r[i].listener,n=i;break}if(n<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new e0,this;delete s[e]}else{for(var a=r,l=n,h=l,u=h+1,c=a.length;u0?Reflect.ownKeys(this._events):[]}});function e9(){throw Error("setTimeout has not been defined")}function e7(){throw Error("clearTimeout has not been defined")}function te(e){if(f===setTimeout)return setTimeout(e,0);if((f===e9||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function tt(){v&&y&&(v=!1,y.length?g=y.concat(g):b=-1,g.length&&tr())}function tr(){if(!v){var e=te(tt);v=!0;for(var t=g.length;t;){for(y=g,g=[];++b1)for(var r=1;r{eb(),f=e9,w=e7,"function"==typeof i.setTimeout&&(f=setTimeout),"function"==typeof i.clearTimeout&&(w=clearTimeout),g=[],v=!1,b=-1,tn.prototype.run=function(){this.fun.apply(null,this.array)},x={},E=[],T={},k={},A={},S=ti,R=ti,_=ti,I=ti,N=ti,C=ti,L=ti,O=(D=i.performance||{}).now||D.mozNow||D.msNow||D.oNow||D.webkitNow||function(){return new Date().getTime()},F=new Date,P={nextTick:ts,title:"browser",browser:!0,env:x,argv:E,version:"",versions:T,on:S,addListener:R,once:_,off:I,removeListener:N,removeAllListeners:C,emit:L,binding:to,cwd:ta,chdir:tl,umask:th,hrtime:tu,platform:"browser",release:k,config:A,uptime:tc}}),td=ea(()=>{B="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}});function tm(e){if(!tE(e)){for(var t=[],r=0;r=n)return e;switch(e){case"%s":return String(s[r++]);case"%d":return Number(s[r++]);case"%j":try{return JSON.stringify(s[r++])}catch(e){return"[Circular]"}default:return e}}),o=s[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),tx(t)?r.showHidden=t:t&&function(e,t){if(t&&tA(t))for(var r=Object.keys(t),s=r.length;s--;)e[r[s]]=t[r[s]]}(r,t),tT(r.showHidden)&&(r.showHidden=!1),tT(r.depth)&&(r.depth=2),tT(r.colors)&&(r.colors=!1),tT(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=tw),tv(r,e,r.depth)}function tw(e,t){var r=tf.styles[t];return r?"\x1b["+tf.colors[r][0]+"m"+e+"\x1b["+tf.colors[r][1]+"m":e}function tg(e,t){return e}function tv(e,t,r){if(e.customInspect&&t&&t_(t.inspect)&&t.inspect!==tf&&!(t.constructor&&t.constructor.prototype===t)){var s,n,i,o,a,l,h=t.inspect(r,e);return tE(h)||(h=tv(e,h,r)),h}var u=function(e,t){if(tT(t))return e.stylize("undefined","undefined");if(tE(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return"number"==typeof t?e.stylize(""+t,"number"):tx(t)?e.stylize(""+t,"boolean"):function(e){return null===e}(t)?e.stylize("null","null"):void 0}(e,t);if(u)return u;var c=Object.keys(t),p=(a={},c.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(c=Object.getOwnPropertyNames(t)),tR(t)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return ty(t);if(0===c.length){if(t_(t)){var d=t.name?": "+t.name:"";return e.stylize("[Function"+d+"]","special")}if(tk(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(tS(t))return e.stylize(Date.prototype.toString.call(t),"date");if(tR(t))return ty(t)}var m="",f=!1,w=["{","}"];if(Array.isArray(t)&&(f=!0,w=["[","]"]),t_(t)&&(m=" [Function"+(t.name?": "+t.name:"")+"]"),tk(t)&&(m=" "+RegExp.prototype.toString.call(t)),tS(t)&&(m=" "+Date.prototype.toUTCString.call(t)),tR(t)&&(m=" "+ty(t)),0===c.length&&(!f||0==t.length))return w[0]+m+w[1];if(r<0)if(tk(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");else return e.stylize("[Object]","special");return e.seen.push(t),l=f?function(e,t,r,s,n){for(var i=[],o=0,a=t.length;o=0&&o++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===n?"":n+"\n ")+" "+s.join(",\n ")+" "+i[1]:i[0]+n+" "+s.join(", ")+" "+i[1]}function ty(e){return"["+Error.prototype.toString.call(e)+"]"}function tb(e,t,r,s,n,i){var o,a,l=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]};if(l.get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),tN(s,n)||(o="["+n+"]"),!a&&(0>e.seen.indexOf(l.value)?(a=null===r?tv(e,l.value,null):tv(e,l.value,r-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),tT(o)){if(i&&n.match(/^\d+$/))return a;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function tx(e){return"boolean"==typeof e}function tE(e){return"string"==typeof e}function tT(e){return void 0===e}function tk(e){return tA(e)&&"[object RegExp]"===tI(e)}function tA(e){return"object"==typeof e&&null!==e}function tS(e){return tA(e)&&"[object Date]"===tI(e)}function tR(e){return tA(e)&&("[object Error]"===tI(e)||e instanceof Error)}function t_(e){return"function"==typeof e}function tI(e){return Object.prototype.toString.call(e)}function tN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tC(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(G&&e[G]){var t=e[G];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,G,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,s=new Promise(function(e,s){t=e,r=s}),n=[],i=0;i{eb(),tp(),td(),M=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},s=0;stypeof Symbol?Symbol("util.promisify.custom"):void 0});function tD(){this.head=null,this.tail=null,this.length=0}var tO=ea(()=>{eZ(),K=tD,tD.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},tD.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},tD.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},tD.prototype.clear=function(){this.head=this.tail=null,this.length=0},tD.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},tD.prototype.concat=function(e){if(0===this.length)return eR.alloc(0);if(1===this.length)return this.head.data;for(var t=eR.allocUnsafe(e>>>0),r=this.head,s=0;r;)r.data.copy(t,s),s+=r.data.length,r=r.next;return t}});function tF(e){this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,"");if(e&&!j(e))throw Error("Unknown encoding: "+e);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=tB;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=tM;break;default:this.write=tP;return}this.charBuffer=new eR(6),this.charReceived=0,this.charLength=0}function tP(e){return e.toString(this.encoding)}function tB(e){this.charReceived=e.length%2,this.charLength=2*!!this.charReceived}function tM(e){this.charReceived=e.length%3,this.charLength=3*!!this.charReceived}var tH=ea(()=>{eZ(),j=eR.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},tF.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&s<=56319){this.charLength+=this.surrogateSize,t="";continue}if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,s=t.charCodeAt(n);if(s>=55296&&s<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,n)}return t},tF.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},tF.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,s=this.charBuffer,n=this.encoding;t+=s.slice(0,r).toString(n)}return t}});function tU(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof rs&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:s,this.highWaterMark=~~this.highWaterMark,this.buffer=new K,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new tF(e.encoding),this.encoding=e.encoding)}function tW(e){if(!(this instanceof tW))return new tW(e);this._readableState=new tU(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),e1.call(this)}function tG(e,t,r,s,n){var i,o,a,l,h,u,c,p=(l=t,h=r,u=null,eR.isBuffer(h)||"string"==typeof h||null==h||l.objectMode||(u=TypeError("Invalid non-string/buffer chunk")),u);if(p)e.emit("error",p);else if(null===r)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,tj(e)}}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!n){var d=Error("stream.push() after EOF");e.emit("error",d)}else if(t.endEmitted&&n){var m=Error("stream.unshift() after end event");e.emit("error",m)}else{!t.decoder||n||s||(r=t.decoder.write(r),c=!t.objectMode&&0===r.length),n||(t.reading=!1),!c&&(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&tj(e))),i=e,(o=t).readingMore||(o.readingMore=!0,ts(tY,i,o))}else n||(t.reading=!1);return!(a=t).ended&&(a.needReadable||a.lengtht.highWaterMark&&((r=e)>=Y?r=Y:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),t.highWaterMark=r),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function tj(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(V("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ts(tV,e):tV(e))}function tV(e){V("emit readable"),e.emit("readable"),tq(e)}function tY(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(s=e,n=t.buffer,i=t.decoder,si.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++s,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++s}return t.length-=s,n}(s,n):function(e,t){var r=eR.allocUnsafe(e),s=t.head,n=1;for(s.data.copy(r),e-=s.data.length;s=s.next;){var i=s.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0==(e-=o)){o===i.length?(++n,s.next?t.head=s.next:t.head=t.tail=null):(t.head=s,s.data=i.slice(o));break}++n}return t.length-=n,r}(s,n),r=o),r)}function tQ(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ts(tJ,t,e))}function tJ(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function tZ(e,t){for(var r=0,s=e.length;r{var e;eZ(),e4(),tL(),tO(),tH(),ro(),tp(),tW.ReadableState=tU,e="stream",tT(W)&&(W=P.env.NODE_DEBUG||""),U[e=e.toUpperCase()]||(RegExp("\\b"+e+"\\b","i").test(W)?U[e]=function(){var t=tm.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:U[e]=function(){}),V=U[e],B(tW,e1),tW.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=eR.from(e,t),t=""),tG(this,r,e,t,!1)},tW.prototype.unshift=function(e){return tG(this,this._readableState,e,"",!0)},tW.prototype.isPaused=function(){return!1===this._readableState.flowing},tW.prototype.setEncoding=function(e){return this._readableState.decoder=new tF(e),this._readableState.encoding=e,this},Y=8388608,tW.prototype.read=function(e){V("read",e),e=parseInt(e,10);var t,r=this._readableState,s=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return V("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?tQ(this):tj(this),null;if(0===(e=tK(e,r))&&r.ended)return 0===r.length&&tQ(this),null;var n=r.needReadable;return V("need readable",n),(0===r.length||r.length-e0?tX(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),s!==e&&r.ended&&tQ(this)),null!==t&&this.emit("data",t),t},tW.prototype._read=function(e){this.emit("error",Error("not implemented"))},tW.prototype.pipe=function(e,t){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,V("pipe count=%d opts=%j",s.pipesCount,t);var n=t&&!1===t.end?h:o;function i(e){V("onunpipe"),e===r&&h()}function o(){V("onend"),e.end()}s.endEmitted?ts(n):r.once("end",n),e.on("unpipe",i);var a=function(){var e=r._readableState;V("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&r.listeners("data").length&&(e.flowing=!0,tq(r))};e.on("drain",a);var l=!1;function h(){V("cleanup"),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("drain",a),e.removeListener("error",p),e.removeListener("unpipe",i),r.removeListener("end",o),r.removeListener("end",h),r.removeListener("data",c),l=!0,s.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a()}var u=!1;function c(t){V("ondata"),u=!1,!1!==e.write(t)||u||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==tZ(s.pipes,e))&&!l&&(V("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,u=!0),r.pause())}function p(t){V("onerror",t),f(),e.removeListener("error",p),0===e.listeners("error").length&&e.emit("error",t)}function d(){e.removeListener("finish",m),f()}function m(){V("onfinish"),e.removeListener("close",d),f()}function f(){V("unpipe"),r.unpipe(e)}return r.on("data",c),!function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",d),e.once("finish",m),e.emit("pipe",r),s.flowing||(V("pipe resume"),r.resume()),e},tW.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n{tL(),eZ(),e4(),ro(),tp(),t8.WritableState=t6,B(t8,e1),t6.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},t8.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},t8.prototype.write=function(e,t,r){var s,n,i,o,a,l=this._writableState,h=!1;return("function"==typeof t&&(r=t,t=null),eR.isBuffer(e)?t="buffer":t||(t=l.defaultEncoding),"function"!=typeof r&&(r=t1),l.ended)?(s=r,n=Error("write after end"),this.emit("error",n),ts(s,n)):(i=r,o=!0,a=!1,null===e?a=TypeError("May not write null values to stream"):eR.isBuffer(e)||"string"==typeof e||void 0===e||l.objectMode||(a=TypeError("Invalid non-string/buffer chunk")),a&&(this.emit("error",a),ts(i,a),o=!1),o&&(l.pendingcb++,h=function(e,t,r,s,n){i=r,o=s,t.objectMode||!1===t.decodeStrings||"string"!=typeof i||(i=eR.from(i,o)),r=i,eR.isBuffer(r)&&(s="buffer");var i,o,a=t.objectMode?1:r.length;t.length+=a;var l=t.length-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},t8.prototype._write=function(e,t,r){r(Error("not implemented"))},t8.prototype._writev=null,t8.prototype.end=function(e,t,r){var s,n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||(s=r,n.ending=!0,re(this,n),s&&(n.finished?ts(s):this.once("finish",s)),n.ended=!0,this.writable=!1)}});function rs(e){if(!(this instanceof rs))return new rs(e);tW.call(this,e),t8.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",rn)}function rn(){this.allowHalfOpen||this._writableState.ended||ts(ri,this)}function ri(e){e.end()}var ro=ea(()=>{for(tL(),tp(),t0(),rr(),B(rs,tW),z=Object.keys(t8.prototype),$=0;${ro(),tL(),B(rl,rs),rl.prototype.push=function(e,t){return this._transformState.needTransform=!1,rs.prototype.push.call(this,e,t)},rl.prototype._transform=function(e,t,r){throw Error("Not implemented")},rl.prototype._write=function(e,t,r){var s=this._transformState;if(s.writecb=r,s.writechunk=e,s.writeencoding=t,!s.transforming){var n=this._readableState;(s.needTransform||n.needReadable||n.length{ru(),tL(),B(rc,rl),rc.prototype._transform=function(e,t,r){r(null,e)}}),rd=((e,t)=>{let r={};for(var s in e)er(r,s,{get:e[s],enumerable:!0});return t||er(r,Symbol.toStringTag,{value:"Module"}),r})({Duplex:()=>rs,PassThrough:()=>rc,Readable:()=>tW,Stream:()=>rm,Transform:()=>rl,Writable:()=>t8,default:()=>X});function rm(){e1.call(this)}var rf=ea(()=>{e4(),tL(),ro(),t0(),rr(),ru(),rp(),B(rm,e1),rm.Readable=tW,rm.Writable=t8,rm.Duplex=rs,rm.Transform=rl,rm.PassThrough=rc,rm.Stream=rm,X=rm,rm.prototype.pipe=function(e,t){var r=this;function s(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function n(){r.readable&&r.resume&&r.resume()}r.on("data",s),e.on("drain",n),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",a));var i=!1;function o(){i||(i=!0,e.end())}function a(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(h(),0===e1.listenerCount(this,"error"))throw e}function h(){r.removeListener("data",s),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",h),r.removeListener("close",h),e.removeListener("close",h)}return r.on("error",l),e.on("error",l),r.on("end",h),r.on("close",h),e.on("close",h),e.emit("pipe",r),e}}),rw=el(e=>{eZ(),function(e){e.parser=function(e,t){return new o(e,t)},e.SAXParser=o,e.SAXStream=l,e.createStream=function(e,t){return new l(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r,s,n,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(t,r){if(!(this instanceof o))return new o(t,r);(function(e){for(var t=0,r=i.length;t"===s?(T(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=y.TEXT):(g(s)&&(this.state=y.SGML_DECL_QUOTED),this.sgmlDecl+=s);continue;case y.SGML_DECL_QUOTED:s===this.q&&(this.state=y.SGML_DECL,this.q=""),this.sgmlDecl+=s;continue;case y.DOCTYPE:">"===s?(this.state=y.TEXT,T(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=s,"["===s?this.state=y.DOCTYPE_DTD:g(s)&&(this.state=y.DOCTYPE_QUOTED,this.q=s));continue;case y.DOCTYPE_QUOTED:this.doctype+=s,s===this.q&&(this.q="",this.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:"]"===s?(this.doctype+=s,this.state=y.DOCTYPE):"<"===s?(this.state=y.OPEN_WAKA,this.startTagPosition=this.position):g(s)?(this.doctype+=s,this.state=y.DOCTYPE_DTD_QUOTED,this.q=s):this.doctype+=s;continue;case y.DOCTYPE_DTD_QUOTED:this.doctype+=s,s===this.q&&(this.state=y.DOCTYPE_DTD,this.q="");continue;case y.COMMENT:"-"===s?this.state=y.COMMENT_ENDING:this.comment+=s;continue;case y.COMMENT_ENDING:"-"===s?(this.state=y.COMMENT_ENDED,this.comment=A(this.opt,this.comment),this.comment&&T(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+s,this.state=y.COMMENT);continue;case y.COMMENT_ENDED:">"!==s?(_(this,"Malformed comment"),this.comment+="--"+s,this.state=y.COMMENT):this.doctype&&!0!==this.doctype?this.state=y.DOCTYPE_DTD:this.state=y.TEXT;continue;case y.CDATA:for(var n=r-1;s&&"]"!==s;)(s=O(t,r++))&&this.trackPosition&&(this.position++,"\n"===s?(this.line++,this.column=0):this.column++);this.cdata+=t.substring(n,r-1),"]"===s&&(this.state=y.CDATA_ENDING);continue;case y.CDATA_ENDING:"]"===s?this.state=y.CDATA_ENDING_2:(this.cdata+="]"+s,this.state=y.CDATA);continue;case y.CDATA_ENDING_2:">"===s?(this.cdata&&T(this,"oncdata",this.cdata),T(this,"onclosecdata"),this.cdata="",this.state=y.TEXT):"]"===s?this.cdata+="]":(this.cdata+="]]"+s,this.state=y.CDATA);continue;case y.PROC_INST:"?"===s?this.state=y.PROC_INST_ENDING:w(s)?this.state=y.PROC_INST_BODY:this.procInstName+=s;continue;case y.PROC_INST_BODY:!this.procInstBody&&w(s)||("?"===s?this.state=y.PROC_INST_ENDING:this.procInstBody+=s);continue;case y.PROC_INST_ENDING:if(">"===s){let e={name:this.procInstName,body:this.procInstBody};!function(e,t){if(e.strict&&e.encoding&&t&&"xml"===t.name){let o,a;var r,s,n,i=(s=(r=t.body)&&r.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?s[2]:null;i&&(n=e.encoding,o=E(n),a=E(i),o&&a&&("utf16"===a?"utf16le"!==o&&"utf16be"!==o:o!==a))&&_(e,"XML declaration encoding "+i+" does not match detected stream encoding "+e.encoding.toUpperCase())}}(this,e),T(this,"onprocessinginstruction",e),this.procInstName=this.procInstBody="",this.state=y.TEXT}else this.procInstBody+="?"+s,this.state=y.PROC_INST_BODY;continue;case y.OPEN_TAG:v(d,s)?this.tagName+=s:(!function(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,T(e,"onopentagstart",r)}(this),">"===s?C(this):"/"===s?this.state=y.OPEN_TAG_SLASH:(w(s)||_(this,"Invalid character in tag name"),this.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:">"===s?(C(this,!0),L(this)):(_(this,"Forward-slash in opening tag not followed by >"),this.state=y.ATTRIB);continue;case y.ATTRIB:w(s)||(">"===s?C(this):"/"===s?this.state=y.OPEN_TAG_SLASH:v(p,s)?(this.attribName=s,this.attribValue="",this.state=y.ATTRIB_NAME):_(this,"Invalid attribute name"));continue;case y.ATTRIB_NAME:"="===s?this.state=y.ATTRIB_VALUE:">"===s?(_(this,"Attribute without value"),this.attribValue=this.attribName,N(this),C(this)):w(s)?this.state=y.ATTRIB_NAME_SAW_WHITE:v(d,s)?this.attribName+=s:_(this,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if("="===s)this.state=y.ATTRIB_VALUE;else{if(w(s))continue;_(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",T(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===s?C(this):v(p,s)?(this.attribName=s,this.state=y.ATTRIB_NAME):(_(this,"Invalid attribute name"),this.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:w(s)||(g(s)?(this.q=s,this.state=y.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||S(this,"Unquoted attribute value"),this.state=y.ATTRIB_VALUE_UNQUOTED,this.attribValue=s));continue;case y.ATTRIB_VALUE_QUOTED:if(s!==this.q){"&"===s?this.state=y.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=s;continue}N(this),this.q="",this.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:w(s)?this.state=y.ATTRIB:">"===s?C(this):"/"===s?this.state=y.OPEN_TAG_SLASH:v(p,s)?(_(this,"No whitespace between attributes"),this.attribName=s,this.attribValue="",this.state=y.ATTRIB_NAME):_(this,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!(">"===(o=s)||w(o))){"&"===s?this.state=y.ATTRIB_VALUE_ENTITY_U:this.attribValue+=s;continue}N(this),">"===s?C(this):this.state=y.ATTRIB;continue;case y.CLOSE_TAG:this.tagName?">"===s?L(this):v(d,s)?this.tagName+=s:this.script?(this.script+=""===s?L(this):_(this,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:switch(this.state){case y.TEXT_ENTITY:a=y.TEXT,l="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:a=y.ATTRIB_VALUE_QUOTED,l="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:a=y.ATTRIB_VALUE_UNQUOTED,l="attribValue"}if(";"===s){var o,a,l,h=function(e){var t,r=e.entity,s=r.toLowerCase(),n="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[s]?e.ENTITIES[s]:("#"===(r=s).charAt(0)&&(n="x"===r.charAt(1)?(t=parseInt(r=r.slice(2),16)).toString(16):(t=parseInt(r=r.slice(1),10)).toString(10)),r=r.replace(/^0+/,""),isNaN(t)||n.toLowerCase()!==r||t<0||t>1114111)?(_(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t)}(this);this.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(h)?((this.entityCount+=1)>this.opt.maxEntityCount&&S(this,"Parsed entity count exceeds max entity count"),(this.entityDepth+=1)>this.opt.maxEntityDepth&&S(this,"Parsed entity depth exceeds max entity depth"),this.entity="",this.state=a,this.write(h),this.entityDepth-=1):(this[l]+=h,this.entity="",this.state=a)}else v(this.entity.length?f:m,s)?this.entity+=s:(_(this,"Invalid character in entity name"),this[l]+="&"+this.entity+s,this.entity="",this.state=a);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),s=0,n=0,o=i.length;nr)switch(i[n]){case"textNode":k(t);break;case"cdata":T(t,"oncdata",t.cdata),t.cdata="";break;case"script":T(t,"onscript",t.script),t.script="";break;default:S(t,"Max buffer length exceeded: "+i[n])}s=Math.max(s,a)}t.bufferCheckPosition=e.MAX_BUFFER_LENGTH-s+t.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){k(this),""!==this.cdata&&(T(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(T(this,"onscript",this.script),this.script="")}};try{n=(rf(),eu(rd)).Stream}catch(e){n=function(){}}n||(n=function(){});var a=e.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function l(e,t){if(!(this instanceof l))return new l(e,t);n.apply(this),this._parser=new o(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,this._decoderBuffer=null,a.forEach(function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(n.prototype,{constructor:{value:l}}),l.prototype._decodeBuffer=function(e,t){if(this._decoderBuffer&&(e=eR.concat([this._decoderBuffer,e]),this._decoderBuffer=null),!this._decoder){var r=function(e,t){if(e.length>=2){if(255===e[0]&&254===e[1])return"utf-16le";if(254===e[0]&&255===e[1])return"utf-16be"}return e.length>=3&&239===e[0]&&187===e[1]&&191===e[2]?"utf8":e.length>=4?60===e[0]&&0===e[1]&&63===e[2]&&0===e[3]?"utf-16le":0===e[0]&&60===e[1]&&0===e[2]&&63===e[3]?"utf-16be":"utf8":t?"utf8":null}(e,t);if(!r)return this._decoderBuffer=e,"";this._parser.encoding=r,this._decoder=new TextDecoder(r)}return this._decoder.decode(e,{stream:!t})},l.prototype.write=function(e){if("function"==typeof eR.isBuffer&&eR.isBuffer(e))e=this._decodeBuffer(e,!1);else if(this._decoderBuffer){var t=this._decodeBuffer(eR.alloc(0),!0);t&&(this._parser.write(t),this.emit("data",t))}return this._parser.write(e.toString()),this.emit("data",e),!0},l.prototype.end=function(e){if(e&&e.length&&this.write(e),this._decoderBuffer){var t=this._decodeBuffer(eR.alloc(0),!0);t&&(this._parser.write(t),this.emit("data",t))}else if(this._decoder){var r=this._decoder.decode();r&&(this._parser.write(r),this.emit("data",r))}return this._parser.end(),!0},l.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===a.indexOf(e)||(r._parser["on"+e]=function(){var t=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),n.prototype.on.call(r,e,t)};var h="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",c={xml:h,xmlns:u},p=/[:_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]/,d=/[:_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-]/,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]/,f=/[#:_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 w(e){return" "===e||"\n"===e||"\r"===e||" "===e}function g(e){return'"'===e||"'"===e}function v(e,t){return e.test(t)}var y=0;for(var b in e.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},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(t){var r=e.ENTITIES[t],s="number"==typeof r?String.fromCharCode(r):r;e.ENTITIES[t]=s}),e.STATE)e.STATE[e.STATE[b]]=b;function x(e,t,r){e[t]&&e[t](r)}function E(e){return e?e.toLowerCase().replace(/[^a-z0-9]/g,""):null}function T(e,t,r){e.textNode&&k(e),x(e,t,r)}function k(e){e.textNode=A(e.opt,e.textNode),e.textNode&&x(e,"ontext",e.textNode),e.textNode=""}function A(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function S(e,t){return k(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),e.error=t=Error(t),x(e,"onerror",t),e}function R(e){return e.sawRoot&&!e.closedRoot&&_(e,"Unclosed root tag"),e.state!==y.BEGIN&&e.state!==y.BEGIN_WHITESPACE&&e.state!==y.TEXT&&S(e,"Unexpected end"),k(e),e.c="",e.closed=!0,x(e,"onend"),o.call(e,e.strict,e.opt),e}function _(e,t){if("object"!=typeof e||!(e instanceof o))throw Error("bad call to strictFail");e.strict&&S(e,t)}function I(e,t){var r=0>e.indexOf(":")?["",e]:e.split(":"),s=r[0],n=r[1];return t&&"xmlns"===e&&(s="xmlns",n=""),{prefix:s,local:n}}function N(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=I(e.attribName,!0),r=t.prefix,s=t.local;if("xmlns"===r)if("xml"===s&&e.attribValue!==h)_(e,"xml: prefix must be bound to "+h+"\nActual: "+e.attribValue);else if("xmlns"===s&&e.attribValue!==u)_(e,"xmlns: prefix must be bound to "+u+"\nActual: "+e.attribValue);else{var n=e.tag,i=e.tags[e.tags.length-1]||e;n.ns===i.ns&&(n.ns=Object.create(i.ns)),n.ns[s]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,T(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function C(e,t){if(e.opt.xmlns){var r=e.tag,s=I(e.tagName);r.prefix=s.prefix,r.local=s.local,r.uri=r.ns[s.prefix]||"",r.prefix&&!r.uri&&(_(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=s.prefix);var n=e.tags[e.tags.length-1]||e;r.ns&&n.ns!==r.ns&&Object.keys(r.ns).forEach(function(t){T(e,"onopennamespace",{prefix:t,uri:r.ns[t]})});for(var i=0,o=e.attribList.length;i",e.tagName="",e.state=y.SCRIPT;return}T(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var s=r;t--;)if(e.tags[t].name!==s)_(e,"Unexpected close tag");else break;if(t<0){_(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",e.state=y.TEXT;return}e.tagName=r;for(var n=e.tags.length;n-- >t;){var i=e.tag=e.tags.pop();e.tagName=e.tag.name,T(e,"onclosetag",e.tagName);var o={};for(var a in i.ns)o[a]=i.ns[a];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&i.ns!==l.ns&&Object.keys(i.ns).forEach(function(t){var r=i.ns[t];T(e,"onclosenamespace",{prefix:t,uri:r})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=y.TEXT}function D(e,t){"<"===t?(e.state=y.OPEN_WAKA,e.startTagPosition=e.position):w(t)||(_(e,"Non-whitespace before first tag."),e.textNode=t,e.state=y.TEXT)}function O(e,t){var r="";return t1114111||r(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?n.push(l):(l-=65536,e=(l>>10)+55296,s=l%1024+56320,n.push(e,s)),(i+1===o||n.length>16384)&&(a+=t.apply(null,n),n.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:s,configurable:!0,writable:!0}):String.fromCodePoint=s)}(void 0===e?e.sax={}:e)}),rg=el((e,t)=>{t.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}}),rv=el((e,t)=>{var r=rg().isArray;t.exports={copyOptions:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){"spaces"in e&&("number"==typeof e.spaces||"string"==typeof e.spaces)||(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}}),ry=el((e,t)=>{var r,s,n=rw(),i=rv(),o=rg().isArray;function a(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return"true"===r||"false"!==r&&e}function l(e,t){var n;if(r.compact){if(!s[r[e+"Key"]]&&(o(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(s[r[e+"Key"]]=[]),s[r[e+"Key"]]&&!o(s[r[e+"Key"]])&&(s[r[e+"Key"]]=[s[r[e+"Key"]]]),e+"Fn"in r&&"string"==typeof t&&(t=r[e+"Fn"](t,s)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in r)t[n]=r.instructionFn(t[n],n,s);else{var i=t[n];delete t[n],t[r.instructionNameFn(n,i,s)]=i}}o(s[r[e+"Key"]])?s[r[e+"Key"]].push(t):s[r[e+"Key"]]=t}else{s[r.elementsKey]||(s[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(n in t)if(t.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,t,s):n,r.instructionHasAttributes?(a[r.attributesKey]=t[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,s))):("instructionFn"in r&&(t[n]=r.instructionFn(t[n],n,s)),a[r.instructionKey]=t[n])}else e+"Fn"in r&&(t=r[e+"Fn"](t,s)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=s),s[r.elementsKey].push(a)}}function h(e){if("attributesFn"in r&&e&&(e=r.attributesFn(e,s)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=a(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,s)),"attributeNameFn"in r)){var n=e[t];delete e[t],e[r.attributeNameFn(t,e[t],s)]=n}}return e}function u(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){for(var n,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(n=i.exec(e.body));)t[n[1]]=n[2]||n[3]||n[4];t=h(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;s[r.declarationKey]={},Object.keys(t).length&&(s[r.declarationKey][r.attributesKey]=t),r.addParent&&(s[r.declarationKey][r.parentKey]=s)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var o={};r.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][r.attributesKey]=t):o[e.name]=e.body,l("instruction",o)}}function c(e,t){var n,i;if("object"==typeof e&&(t=e.attributes,e=e.name),t=h(t),"elementNameFn"in r&&(e=r.elementNameFn(e,s)),r.compact){if(n={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(i in n[r.attributesKey]={},t)t.hasOwnProperty(i)&&(n[r.attributesKey][i]=t[i]);e in s||(o(r.alwaysArray)?-1===r.alwaysArray.indexOf(e):!r.alwaysArray)||(s[e]=[]),s[e]&&!o(s[e])&&(s[e]=[s[e]]),o(s[e])?s[e].push(n):s[e]=n}else s[r.elementsKey]||(s[r.elementsKey]=[]),(n={})[r.typeKey]="element",n[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(n[r.attributesKey]=t),r.alwaysChildren&&(n[r.elementsKey]=[]),s[r.elementsKey].push(n);n[r.parentKey]=s,s=n}function p(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=a(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),l("text",e))}function d(e){r.ignoreComment||(r.trim&&(e=e.trim()),l("comment",e))}function m(e){var t=s[r.parentKey];r.addParent||delete s[r.parentKey],s=t}function f(e){r.ignoreCdata||(r.trim&&(e=e.trim()),l("cdata",e))}function w(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),l("doctype",e))}function g(e){e.note=e}t.exports=function(e,t){var o=n.parser(!0,{}),a={};if(s=a,r=i.copyOptions(t),i.ensureFlagExists("ignoreDeclaration",r),i.ensureFlagExists("ignoreInstruction",r),i.ensureFlagExists("ignoreAttributes",r),i.ensureFlagExists("ignoreText",r),i.ensureFlagExists("ignoreComment",r),i.ensureFlagExists("ignoreCdata",r),i.ensureFlagExists("ignoreDoctype",r),i.ensureFlagExists("compact",r),i.ensureFlagExists("alwaysChildren",r),i.ensureFlagExists("addParent",r),i.ensureFlagExists("trim",r),i.ensureFlagExists("nativeType",r),i.ensureFlagExists("nativeTypeAttributes",r),i.ensureFlagExists("sanitize",r),i.ensureFlagExists("instructionHasAttributes",r),i.ensureFlagExists("captureSpacesBetweenElements",r),i.ensureAlwaysArrayExists(r),i.ensureKeyExists("declaration",r),i.ensureKeyExists("instruction",r),i.ensureKeyExists("attributes",r),i.ensureKeyExists("text",r),i.ensureKeyExists("comment",r),i.ensureKeyExists("cdata",r),i.ensureKeyExists("doctype",r),i.ensureKeyExists("type",r),i.ensureKeyExists("name",r),i.ensureKeyExists("elements",r),i.ensureKeyExists("parent",r),i.checkFnExists("doctype",r),i.checkFnExists("instruction",r),i.checkFnExists("cdata",r),i.checkFnExists("comment",r),i.checkFnExists("text",r),i.checkFnExists("instructionName",r),i.checkFnExists("elementName",r),i.checkFnExists("attributeName",r),i.checkFnExists("attributeValue",r),i.checkFnExists("attributes",r),o.opt={strictEntities:!0},o.onopentag=c,o.ontext=p,o.oncomment=d,o.onclosetag=m,o.onerror=g,o.oncdata=f,o.ondoctype=w,o.onprocessinginstruction=u,o.write(e).close(),a[r.elementsKey]){var l=a[r.elementsKey];delete a[r.elementsKey],a[r.elementsKey]=l,delete a.text}return a}}),rb=el((e,t)=>{var r=rv(),s=ry();t.exports=function(e,t){var n,i=(n=r.copyOptions(t),r.ensureSpacesExists(n),n),o=s(e,i),a="compact"in i&&i.compact?"_parent":"parent";return("addParent"in i&&i.addParent?JSON.stringify(o,function(e,t){return e===a?"_":t},i.spaces):JSON.stringify(o,null,i.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}),rx=el((e,t)=>{var r,s,n=rv(),i=rg().isArray;function o(e,t,r){return(!r&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function a(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,s,r));var i,a,l,h,u=[];for(i in e)e.hasOwnProperty(i)&&null!==e[i]&&void 0!==e[i]&&(h=t.noQuotesForNativeAttributes&&"string"!=typeof e[i]?"":'"',a=(a=""+e[i]).replace(/"/g,"""),l="attributeNameFn"in t?t.attributeNameFn(i,a,s,r):i,u.push(t.spaces&&t.indentAttributes?o(t,n+1,!1):" "),u.push(l+"="+h+("attributeValueFn"in t?t.attributeValueFn(a,i,s,r):a)+h));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(o(t,n,!1)),u.join("")}function l(e,t,n){return r=e,s="xml",t.ignoreDeclaration?"":""}function h(e,t,n){if(t.ignoreInstruction)return"";for(i in e)if(e.hasOwnProperty(i))break;var i,o="instructionNameFn"in t?t.instructionNameFn(i,e[i],s,r):i;if("object"==typeof e[i])return r=e,s=o,"";var l=e[i]?e[i]:"";return"instructionFn"in t&&(l=t.instructionFn(l,i,s,r)),""}function u(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,s,r):e)+"--\x3e"}function c(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function p(e,t){return t.ignoreDoctype?"":""}function d(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,s,r):e)}function m(e,t,r){var s;for(s in e)if(e.hasOwnProperty(s))switch(s){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||r)return!0;break;case t.cdataKey:if(t.indentCdata||r)return!0;break;case t.instructionKey:if(t.indentInstruction||r)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}t.exports=function(e,t){f=t,w=n.copyOptions(f),n.ensureFlagExists("ignoreDeclaration",w),n.ensureFlagExists("ignoreInstruction",w),n.ensureFlagExists("ignoreAttributes",w),n.ensureFlagExists("ignoreText",w),n.ensureFlagExists("ignoreComment",w),n.ensureFlagExists("ignoreCdata",w),n.ensureFlagExists("ignoreDoctype",w),n.ensureFlagExists("compact",w),n.ensureFlagExists("indentText",w),n.ensureFlagExists("indentCdata",w),n.ensureFlagExists("indentAttributes",w),n.ensureFlagExists("indentInstruction",w),n.ensureFlagExists("fullTagEmptyElement",w),n.ensureFlagExists("noQuotesForNativeAttributes",w),n.ensureSpacesExists(w),"number"==typeof w.spaces&&(w.spaces=Array(w.spaces+1).join(" ")),n.ensureKeyExists("declaration",w),n.ensureKeyExists("instruction",w),n.ensureKeyExists("attributes",w),n.ensureKeyExists("text",w),n.ensureKeyExists("comment",w),n.ensureKeyExists("cdata",w),n.ensureKeyExists("doctype",w),n.ensureKeyExists("type",w),n.ensureKeyExists("name",w),n.ensureKeyExists("elements",w),n.checkFnExists("doctype",w),n.checkFnExists("instruction",w),n.checkFnExists("cdata",w),n.checkFnExists("comment",w),n.checkFnExists("text",w),n.checkFnExists("instructionName",w),n.checkFnExists("elementName",w),n.checkFnExists("attributeName",w),n.checkFnExists("attributeValue",w),n.checkFnExists("attributes",w),n.checkFnExists("fullTagEmptyElement",w),t=w;var f,w,g=[];return r=e,s="_root_",t.compact?g.push(function e(t,n,f,w){var g,v,y,b=[];for(v in t)if(t.hasOwnProperty(v))for(g=0,y=i(t[v])?t[v]:[t[v]];g":"<"+u+"/>";var c=[];if(n){if(c.push("<"+u),"object"!=typeof t)return c.push(">"+d(t,i)+""),c.join("");t[i.attributesKey]&&c.push(a(t[i.attributesKey],i,l));var p=m(t,i,!0)||t[i.attributesKey]&&"preserve"===t[i.attributesKey]["xml:space"];if(p||(p="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(n,t):i.fullTagEmptyElement),!p)return c.push("/>"),c.join("");c.push(">")}return c.push(e(t,i,l+1,!1)),r=t,s=n,n&&c.push((h?o(i,l,!1):"")+""),c.join("")}(y[g],v,n,f,m(y[g],n)))}w=w&&!b.length}return b.join("")}(e,t,0,!0)):(e[t.declarationKey]&&g.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&g.push(function e(t,n,i,l){return t.reduce(function(t,m){var f,w,g,v=o(n,i,l&&!t);switch(m.type){case"element":return t+v+(r=m,s=m.name,f=[],w="elementNameFn"in n?n.elementNameFn(m.name,m):m.name,f.push("<"+w),m[n.attributesKey]&&f.push(a(m[n.attributesKey],n,i)),(g=m[n.elementsKey]&&m[n.elementsKey].length||m[n.attributesKey]&&"preserve"===m[n.attributesKey]["xml:space"])||(g="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(m.name,m):n.fullTagEmptyElement),g?(f.push(">"),m[n.elementsKey]&&m[n.elementsKey].length&&(f.push(e(m[n.elementsKey],n,i+1)),r=m,s=m.name),f.push(n.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r")):f.push("/>"),f.join(""));case"comment":return t+v+u(m[n.commentKey],n);case"doctype":return t+v+p(m[n.doctypeKey],n);case"cdata":return t+(n.indentCdata?v:"")+c(m[n.cdataKey],n);case"text":return t+(n.indentText?v:"")+d(m[n.textKey],n);case"instruction":var y={};return y[m[n.nameKey]]=m[n.attributesKey]?m:m[n.instructionKey],t+(n.indentInstruction?v:"")+h(y,n,i)}},"")}(e[t.elementsKey],t,0,!g.length))),g.join("")}}),rE=el((e,t)=>{eZ();var r=rx();t.exports=function(e,t){e instanceof eR&&(e=e.toString());var s=null;if("string"==typeof e)try{s=JSON.parse(e)}catch(e){throw Error("The JSON structure is invalid")}else s=e;return r(s,t)}}),rT=el((e,t)=>{t.exports={xml2js:ry(),xml2json:rb(),js2xml:rx(),json2xml:rE()}})();let rk=e=>{switch(e.type){case void 0:case"element":{let t=new rS(e.name,e.attributes);for(let r of e.elements||[]){let e=rk(r);void 0!==e&&t.push(e)}return t}case"text":return e.text;default:return}};var rA=class extends eg{},rS=class extends ef{static fromXmlString(e){return rk((0,rT.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new rA(t))}push(e){this.root.push(e)}},rR=class extends ef{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}},r_=class extends ef{constructor(e,t){super(e),t&&(this.root=t.root)}};let rI=e=>{if(isNaN(e))throw Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},rN=e=>{let t=rI(e);if(t<0)throw Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},rC=(e,t)=>{let r=2*t;if(e.length!==r||isNaN(Number(`0x${e}`)))throw Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},rL=e=>{let t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},rD=e=>{let t=rL(e);if(0>parseFloat(t))throw Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},rO=e=>"auto"===e?e:rC("#"===e.charAt(0)?e.substring(1):e,3),rF=e=>"string"==typeof e?rL(e):rI(e),rP=e=>"string"==typeof e?rD(e):rN(e),rB=e=>{if("number"==typeof e)return rI(e);if("%"===e.slice(-1)){let t;return t=e.substring(0,e.length-1),`${Number(t)}%`}return rL(e)};var rM=class extends ef{constructor(e,t=!0){super(e),!0!==t&&this.root.push(new ey({val:t}))}},rH=class extends ef{constructor(e,t){super(e),this.root.push(new ey({val:(e=>"string"==typeof e?rD(e):rN(e))(t)}))}},rU=class extends ef{},rW=class extends ef{constructor(e,t){super(e),this.root.push(new ey({val:t}))}};let rG=(e,t)=>new rV({attributes:{value:{key:"w:val",value:t}},name:e});var rK=class extends ef{constructor(e,t){super(e),this.root.push(new ey({val:t}))}},rj=class extends ef{constructor(e,t){super(e),this.root.push(t)}},rV=class extends ef{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new ev(t)),r&&this.root.push(...r)}};let rY={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"},rz=e=>new rV({attributes:{val:{key:"w:val",value:e}},name:"w:jc"}),r$=(e,{color:t,size:r,space:s,style:n,themeColor:i,themeTint:o,themeShade:a,shadow:l,frame:h})=>new rV({attributes:{color:{key:"w:color",value:void 0===t?void 0:rO(t)},frame:{key:"w:frame",value:h},shadow:{key:"w:shadow",value:l},size:{key:"w:sz",value:void 0===r?void 0:rN(r)},space:{key:"w:space",value:void 0===s?void 0:rN(s)},style:{key:"w:val",value:n},themeColor:{key:"w:themeColor",value:i},themeShade:{key:"w:themeShade",value:void 0===a?void 0:rC(a,1)},themeTint:{key:"w:themeTint",value:void 0===o?void 0:rC(o,1)}},name:e}),rq="single";var rX=class extends ew{constructor(e){super("w:pBdr"),e.top&&this.root.push(r$("w:top",e.top)),e.bottom&&this.root.push(r$("w:bottom",e.bottom)),e.left&&this.root.push(r$("w:left",e.left)),e.right&&this.root.push(r$("w:right",e.right)),e.between&&this.root.push(r$("w:between",e.between))}},rQ=class extends ef{constructor(){super("w:pBdr");const e=r$("w:bottom",{color:"auto",size:6,space:1,style:rq});this.root.push(e)}};let rJ=()=>new rV({name:"w:br"}),rZ=(e,t)=>new rV({attributes:{dirty:{key:"w:dirty",value:t},type:{key:"w:fldCharType",value:e}},name:"w:fldChar"}),r0=e=>rZ("begin",e),r1=e=>rZ("separate",e),r2=e=>rZ("end",e),r6="preserve";var r8=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{space:"xml:space"})}},r5=class extends ef{constructor(){super("w:instrText"),this.root.push(new r8({space:r6})),this.root.push("PAGE")}},r3=class extends ef{constructor(){super("w:instrText"),this.root.push(new r8({space:r6})),this.root.push("NUMPAGES")}},r4=class extends ef{constructor(){super("w:instrText"),this.root.push(new r8({space:r6})),this.root.push("SECTIONPAGES")}},r9=class extends ef{constructor(){super("w:instrText"),this.root.push(new r8({space:r6})),this.root.push("SECTION")}};let r7=({fill:e,color:t,type:r,themeColor:s,themeTint:n,themeShade:i,themeFill:o,themeFillTint:a,themeFillShade:l})=>new rV({attributes:{color:{key:"w:color",value:void 0===t?void 0:rO(t)},fill:{key:"w:fill",value:void 0===e?void 0:rO(e)},themeColor:{key:"w:themeColor",value:s},themeFill:{key:"w:themeFill",value:o},themeFillShade:{key:"w:themeFillShade",value:void 0===l?void 0:rC(l,1)},themeFillTint:{key:"w:themeFillTint",value:void 0===a?void 0:rC(a,1)},themeShade:{key:"w:themeShade",value:void 0===i?void 0:rC(i,1)},themeTint:{key:"w:themeTint",value:void 0===n?void 0:rC(n,1)},type:{key:"w:val",value:r}},name:"w:shd"});var se=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{author:"w:author",date:"w:date",id:"w:id"})}},st=class extends ef{constructor(e){super("w:del"),this.root.push(new se({author:e.author,date:e.date,id:e.id}))}},sr=class extends ef{constructor(e){super("w:ins"),this.root.push(new se({author:e.author,date:e.date,id:e.id}))}};let ss="dot";var sn=class extends ef{constructor(e){super("w:spacing"),this.root.push(new ey({val:rF(e)}))}},si=class extends ef{constructor(e){if(super("w:color"),"string"==typeof e)return void this.root.push(new ey({val:rO(e)}));this.root.push(new ey({val:void 0===e.val?void 0:rO(e.val),themeColor:e.themeColor,themeTint:void 0===e.themeTint?void 0:(e=>rC(e,1))(e.themeTint),themeShade:void 0===e.themeShade?void 0:(e=>rC(e,1))(e.themeShade)}))}},so=class extends ef{constructor(e){super("w:highlight"),this.root.push(new ey({val:e}))}},sa=class extends ef{constructor(e){super("w:highlightCs"),this.root.push(new ey({val:e}))}};let sl=(e,t)=>new rV("string"==typeof e?{attributes:{ascii:{key:"w:ascii",value:e},cs:{key:"w:cs",value:e},eastAsia:{key:"w:eastAsia",value:e},hAnsi:{key:"w:hAnsi",value:e},hint:{key:"w:hint",value:t}},name:"w:rFonts"}:{attributes:{ascii:{key:"w:ascii",value:e.ascii},asciiTheme:{key:"w:asciiTheme",value:e.asciiTheme},cs:{key:"w:cs",value:e.cs},cstheme:{key:"w:cstheme",value:e.cstheme},eastAsia:{key:"w:eastAsia",value:e.eastAsia},eastAsiaTheme:{key:"w:eastAsiaTheme",value:e.eastAsiaTheme},hAnsi:{key:"w:hAnsi",value:e.hAnsi},hAnsiTheme:{key:"w:hAnsiTheme",value:e.hAnsiTheme},hint:{key:"w:hint",value:e.hint}},name:"w:rFonts"}),sh=e=>new rV({attributes:{val:{key:"w:val",value:e}},name:"w:vertAlign"}),su="single";var sc=class extends ew{constructor(e){var t,r;if(super("w:rPr"),!e)return;e.style&&this.push(new rW("w:rStyle",e.style)),e.font&&("string"==typeof e.font?this.push(sl(e.font)):"name"in e.font?this.push(sl(e.font.name,e.font.hint)):this.push(sl(e.font))),void 0!==e.bold&&this.push(new rM("w:b",e.bold)),(void 0===e.boldComplexScript&&void 0!==e.bold||e.boldComplexScript)&&this.push(new rM("w:bCs",null!=(t=e.boldComplexScript)?t:e.bold)),void 0!==e.italics&&this.push(new rM("w:i",e.italics)),(void 0===e.italicsComplexScript&&void 0!==e.italics||e.italicsComplexScript)&&this.push(new rM("w:iCs",null!=(r=e.italicsComplexScript)?r:e.italics)),void 0!==e.smallCaps?this.push(new rM("w:smallCaps",e.smallCaps)):void 0!==e.allCaps&&this.push(new rM("w:caps",e.allCaps)),void 0!==e.strike&&this.push(new rM("w:strike",e.strike)),void 0!==e.doubleStrike&&this.push(new rM("w:dstrike",e.doubleStrike)),void 0!==e.emboss&&this.push(new rM("w:emboss",e.emboss)),void 0!==e.imprint&&this.push(new rM("w:imprint",e.imprint)),void 0!==e.outline&&this.push(new rM("w:outline",e.outline)),void 0!==e.shadow&&this.push(new rM("w:shadow",e.shadow)),void 0!==e.webHidden&&this.push(new rM("w:webHidden",e.webHidden)),void 0!==e.noProof&&this.push(new rM("w:noProof",e.noProof)),void 0!==e.snapToGrid&&this.push(new rM("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new rM("w:vanish",e.vanish)),e.color&&this.push(new si(e.color)),e.characterSpacing&&this.push(new sn(e.characterSpacing)),void 0!==e.scale&&this.push(new rK("w:w",e.scale)),e.kern&&this.push(new rH("w:kern",e.kern)),e.position&&this.push(new rW("w:position",e.position)),void 0!==e.size&&this.push(new rH("w:sz",e.size));const s=void 0===e.sizeComplexScript||!0===e.sizeComplexScript?e.size:e.sizeComplexScript;s&&this.push(new rH("w:szCs",s)),e.highlight&&this.push(new so(e.highlight));const n=void 0===e.highlightComplexScript||!0===e.highlightComplexScript?e.highlight:e.highlightComplexScript;n&&this.push(new sa(n)),e.underline&&this.push(((e=su,t,r,s,n)=>new rV({attributes:{color:{key:"w:color",value:void 0===t?void 0:rO(t)},themeColor:{key:"w:themeColor",value:r},themeShade:{key:"w:themeShade",value:void 0===n?void 0:rC(n,1)},themeTint:{key:"w:themeTint",value:void 0===s?void 0:rC(s,1)},val:{key:"w:val",value:e}},name:"w:u"}))(e.underline.type,e.underline.color)),e.effect&&this.push(new rW("w:effect",e.effect)),e.border&&this.push(r$("w:bdr",e.border)),e.shading&&this.push(r7(e.shading)),e.subScript&&this.push(sh("subscript")),e.superScript&&this.push(sh("superscript")),void 0!==e.rightToLeft&&this.push(new rM("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(((e=ss)=>new rV({attributes:{val:{key:"w:val",value:e}},name:"w:em"}))(e.emphasisMark.type)),e.language&&this.push((e=>new rV({attributes:{bidirectional:{key:"w:bidi",value:e.bidirectional},eastAsia:{key:"w:eastAsia",value:e.eastAsia},value:{key:"w:val",value:e.value}},name:"w:lang"}))(e.language)),e.specVanish&&this.push(new rM("w:specVanish",e.vanish)),e.math&&this.push(new rM("w:oMath",e.math)),void 0!==e.fitText&&this.push(new rK("w:fitText",e.fitText)),void 0!==e.complexScript&&this.push(new rM("w:cs",e.complexScript)),e.eastAsianLayout&&this.push((({id:e,combine:t,combineBrackets:r,vert:s,vertCompress:n})=>new rV({attributes:{combine:{key:"w:combine",value:t},combineBrackets:{key:"w:combineBrackets",value:r},id:{key:"w:id",value:void 0===e?void 0:rI(e)},vert:{key:"w:vert",value:s},vertCompress:{key:"w:vertCompress",value:n}},name:"w:eastAsianLayout"}))(e.eastAsianLayout)),e.revision&&this.push(new sd(e.revision))}push(e){this.root.push(e)}},sp=class extends sc{constructor(e){super(e),(null==e?void 0:e.insertion)&&this.push(new sr(e.insertion)),(null==e?void 0:e.deletion)&&this.push(new st(e.deletion))}},sd=class extends ef{constructor(e){super("w:rPrChange"),this.root.push(new se({author:e.author,date:e.date,id:e.id})),this.addChildElement(new sc(e))}},sm=class extends ef{constructor(e){if(super("w:t"),"string"==typeof e)this.root.push(new r8({space:r6})),this.root.push(e);else{var t,r;this.root.push(new r8({space:null!=(t=e.space)?t:"default"})),this.root.push(null!=(r=e.text)?r:"")}}},sf=class extends ef{constructor(e){if(super("w:r"),ep(this,"properties",void 0),this.properties=new sc(e),this.root.push(this.properties),e.break)for(let t=0;tMath.floor(72*e*20),sv=(e=0)=>{let t=e;return()=>++t},sy=()=>(0,J.A)().toLowerCase(),sb=e=>Q.sha1().update(e instanceof ArrayBuffer?new Uint8Array(e):e).digest("hex"),sx=e=>(0,J.d)("1234567890abcdef",e)(),sE=e=>new rV({children:[e],name:"wp:align"}),sT=e=>new rV({children:[e.toString()],name:"wp:posOffset"}),sk=e=>{let t=[];return void 0!==e.tint&&t.push(new rV({attributes:{val:{key:"val",value:e.tint}},name:"a:tint"})),void 0!==e.shade&&t.push(new rV({attributes:{val:{key:"val",value:e.shade}},name:"a:shade"})),e.comp&&t.push(new rV({name:"a:comp"})),e.inv&&t.push(new rV({name:"a:inv"})),e.gray&&t.push(new rV({name:"a:gray"})),void 0!==e.alpha&&t.push(new rV({attributes:{val:{key:"val",value:e.alpha}},name:"a:alpha"})),void 0!==e.alphaOff&&t.push(new rV({attributes:{val:{key:"val",value:e.alphaOff}},name:"a:alphaOff"})),void 0!==e.alphaMod&&t.push(new rV({attributes:{val:{key:"val",value:e.alphaMod}},name:"a:alphaMod"})),void 0!==e.hue&&t.push(new rV({attributes:{val:{key:"val",value:e.hue}},name:"a:hue"})),void 0!==e.hueOff&&t.push(new rV({attributes:{val:{key:"val",value:e.hueOff}},name:"a:hueOff"})),void 0!==e.hueMod&&t.push(new rV({attributes:{val:{key:"val",value:e.hueMod}},name:"a:hueMod"})),void 0!==e.sat&&t.push(new rV({attributes:{val:{key:"val",value:e.sat}},name:"a:sat"})),void 0!==e.satOff&&t.push(new rV({attributes:{val:{key:"val",value:e.satOff}},name:"a:satOff"})),void 0!==e.satMod&&t.push(new rV({attributes:{val:{key:"val",value:e.satMod}},name:"a:satMod"})),void 0!==e.lum&&t.push(new rV({attributes:{val:{key:"val",value:e.lum}},name:"a:lum"})),void 0!==e.lumOff&&t.push(new rV({attributes:{val:{key:"val",value:e.lumOff}},name:"a:lumOff"})),void 0!==e.lumMod&&t.push(new rV({attributes:{val:{key:"val",value:e.lumMod}},name:"a:lumMod"})),void 0!==e.red&&t.push(new rV({attributes:{val:{key:"val",value:e.red}},name:"a:red"})),void 0!==e.redOff&&t.push(new rV({attributes:{val:{key:"val",value:e.redOff}},name:"a:redOff"})),void 0!==e.redMod&&t.push(new rV({attributes:{val:{key:"val",value:e.redMod}},name:"a:redMod"})),void 0!==e.green&&t.push(new rV({attributes:{val:{key:"val",value:e.green}},name:"a:green"})),void 0!==e.greenOff&&t.push(new rV({attributes:{val:{key:"val",value:e.greenOff}},name:"a:greenOff"})),void 0!==e.greenMod&&t.push(new rV({attributes:{val:{key:"val",value:e.greenMod}},name:"a:greenMod"})),void 0!==e.blue&&t.push(new rV({attributes:{val:{key:"val",value:e.blue}},name:"a:blue"})),void 0!==e.blueOff&&t.push(new rV({attributes:{val:{key:"val",value:e.blueOff}},name:"a:blueOff"})),void 0!==e.blueMod&&t.push(new rV({attributes:{val:{key:"val",value:e.blueMod}},name:"a:blueMod"})),e.gamma&&t.push(new rV({name:"a:gamma"})),e.invGamma&&t.push(new rV({name:"a:invGamma"})),t},sA=new Set(Object.values({SCROLL_BAR:"scrollBar",BACKGROUND:"background",ACTIVE_CAPTION:"activeCaption",INACTIVE_CAPTION:"inactiveCaption",MENU:"menu",WINDOW:"window",WINDOW_FRAME:"windowFrame",MENU_TEXT:"menuText",WINDOW_TEXT:"windowText",CAPTION_TEXT:"captionText",ACTIVE_BORDER:"activeBorder",INACTIVE_BORDER:"inactiveBorder",APP_WORKSPACE:"appWorkspace",HIGHLIGHT:"highlight",HIGHLIGHT_TEXT:"highlightText",BTN_FACE:"btnFace",BTN_SHADOW:"btnShadow",GRAY_TEXT:"grayText",BTN_TEXT:"btnText",INACTIVE_CAPTION_TEXT:"inactiveCaptionText",BTN_HIGHLIGHT:"btnHighlight",THREE_D_DK_SHADOW:"3dDkShadow",THREE_D_LIGHT:"3dLight",INFO_TEXT:"infoText",INFO_BK:"infoBk",HOT_LIGHT:"hotLight",GRADIENT_ACTIVE_CAPTION:"gradientActiveCaption",GRADIENT_INACTIVE_CAPTION:"gradientInactiveCaption",MENU_HIGHLIGHT:"menuHighlight",MENU_BAR:"menuBar"})),sS=new Set(Object.values({ALICE_BLUE:"aliceBlue",ANTIQUE_WHITE:"antiqueWhite",AQUA:"aqua",AQUAMARINE:"aquamarine",AZURE:"azure",BEIGE:"beige",BISQUE:"bisque",BLACK:"black",BLANCHED_ALMOND:"blanchedAlmond",BLUE:"blue",BLUE_VIOLET:"blueViolet",BROWN:"brown",BURLY_WOOD:"burlyWood",CADET_BLUE:"cadetBlue",CHARTREUSE:"chartreuse",CHOCOLATE:"chocolate",CORAL:"coral",CORNFLOWER_BLUE:"cornflowerBlue",CORNSILK:"cornsilk",CRIMSON:"crimson",CYAN:"cyan",DARK_BLUE:"darkBlue",DARK_CYAN:"darkCyan",DARK_GOLDENROD:"darkGoldenrod",DARK_GRAY:"darkGray",DARK_GREY:"darkGrey",DARK_GREEN:"darkGreen",DARK_KHAKI:"darkKhaki",DARK_MAGENTA:"darkMagenta",DARK_OLIVE_GREEN:"darkOliveGreen",DARK_ORANGE:"darkOrange",DARK_ORCHID:"darkOrchid",DARK_RED:"darkRed",DARK_SALMON:"darkSalmon",DARK_SEA_GREEN:"darkSeaGreen",DARK_SLATE_BLUE:"darkSlateBlue",DARK_SLATE_GRAY:"darkSlateGray",DARK_SLATE_GREY:"darkSlateGrey",DARK_TURQUOISE:"darkTurquoise",DARK_VIOLET:"darkViolet",DEEP_PINK:"deepPink",DEEP_SKY_BLUE:"deepSkyBlue",DIM_GRAY:"dimGray",DIM_GREY:"dimGrey",DODGER_BLUE:"dodgerBlue",FIREBRICK:"firebrick",FLORAL_WHITE:"floralWhite",FOREST_GREEN:"forestGreen",FUCHSIA:"fuchsia",GAINSBORO:"gainsboro",GHOST_WHITE:"ghostWhite",GOLD:"gold",GOLDENROD:"goldenrod",GRAY:"gray",GREY:"grey",GREEN:"green",GREEN_YELLOW:"greenYellow",HONEYDEW:"honeydew",HOT_PINK:"hotPink",INDIAN_RED:"indianRed",INDIGO:"indigo",IVORY:"ivory",KHAKI:"khaki",LAVENDER:"lavender",LAVENDER_BLUSH:"lavenderBlush",LAWN_GREEN:"lawnGreen",LEMON_CHIFFON:"lemonChiffon",LIGHT_BLUE:"lightBlue",LIGHT_CORAL:"lightCoral",LIGHT_CYAN:"lightCyan",LIGHT_GOLDENROD_YELLOW:"lightGoldenrodYellow",LIGHT_GRAY:"lightGray",LIGHT_GREY:"lightGrey",LIGHT_GREEN:"lightGreen",LIGHT_PINK:"lightPink",LIGHT_SALMON:"lightSalmon",LIGHT_SEA_GREEN:"lightSeaGreen",LIGHT_SKY_BLUE:"lightSkyBlue",LIGHT_SLATE_GRAY:"lightSlateGray",LIGHT_SLATE_GREY:"lightSlateGrey",LIGHT_STEEL_BLUE:"lightSteelBlue",LIGHT_YELLOW:"lightYellow",LIME:"lime",LIME_GREEN:"limeGreen",LINEN:"linen",MAGENTA:"magenta",MAROON:"maroon",MEDIUM_AQUAMARINE:"mediumAquamarine",MEDIUM_BLUE:"mediumBlue",MEDIUM_ORCHID:"mediumOrchid",MEDIUM_PURPLE:"mediumPurple",MEDIUM_SEA_GREEN:"mediumSeaGreen",MEDIUM_SLATE_BLUE:"mediumSlateBlue",MEDIUM_SPRING_GREEN:"mediumSpringGreen",MEDIUM_TURQUOISE:"mediumTurquoise",MEDIUM_VIOLET_RED:"mediumVioletRed",MIDNIGHT_BLUE:"midnightBlue",MINT_CREAM:"mintCream",MISTY_ROSE:"mistyRose",MOCCASIN:"moccasin",NAVAJO_WHITE:"navajoWhite",NAVY:"navy",OLD_LACE:"oldLace",OLIVE:"olive",OLIVE_DRAB:"oliveDrab",ORANGE:"orange",ORANGE_RED:"orangeRed",ORCHID:"orchid",PALE_GOLDENROD:"paleGoldenrod",PALE_GREEN:"paleGreen",PALE_TURQUOISE:"paleTurquoise",PALE_VIOLET_RED:"paleVioletRed",PAPAYA_WHIP:"papayaWhip",PEACH_PUFF:"peachPuff",PERU:"peru",PINK:"pink",PLUM:"plum",POWDER_BLUE:"powderBlue",PURPLE:"purple",RED:"red",ROSY_BROWN:"rosyBrown",ROYAL_BLUE:"royalBlue",SADDLE_BROWN:"saddleBrown",SALMON:"salmon",SANDY_BROWN:"sandyBrown",SEA_GREEN:"seaGreen",SEA_SHELL:"seaShell",SIENNA:"sienna",SILVER:"silver",SKY_BLUE:"skyBlue",SLATE_BLUE:"slateBlue",SLATE_GRAY:"slateGray",SLATE_GREY:"slateGrey",SNOW:"snow",SPRING_GREEN:"springGreen",STEEL_BLUE:"steelBlue",TAN:"tan",TEAL:"teal",THISTLE:"thistle",TOMATO:"tomato",TURQUOISE:"turquoise",VIOLET:"violet",WHEAT:"wheat",WHITE:"white",WHITE_SMOKE:"whiteSmoke",YELLOW:"yellow",YELLOW_GREEN:"yellowGreen"})),sR=new Set(Object.values({BG1:"bg1",TX1:"tx1",BG2:"bg2",TX2:"tx2",ACCENT1:"accent1",ACCENT2:"accent2",ACCENT3:"accent3",ACCENT4:"accent4",ACCENT5:"accent5",ACCENT6:"accent6",HLINK:"hlink",FOLHLINK:"folHlink",DK1:"dk1",LT1:"lt1",DK2:"dk2",LT2:"lt2",PHCLR:"phClr"})),s_=e=>{let t;if("hue"in e&&"sat"in e&&"lum"in e){let t;return t=e.transforms?sk(e.transforms):[],new rV({attributes:{hue:{key:"hue",value:e.hue},lum:{key:"lum",value:e.lum},sat:{key:"sat",value:e.sat}},children:[...t],name:"a:hslClr"})}let r=e.value;if(sA.has(r)){let t;return t=e.transforms?sk(e.transforms):[],new rV({attributes:{lastClr:{key:"lastClr",value:e.lastClr},value:{key:"val",value:e.value}},children:[...t],name:"a:sysClr"})}if(sS.has(r)){let t;return t=e.transforms?sk(e.transforms):[],new rV({attributes:{value:{key:"val",value:e.value}},children:[...t],name:"a:prstClr"})}if(sR.has(r)){let t;return t=e.transforms?sk(e.transforms):[],new rV({attributes:{value:{key:"val",value:e.value}},children:[...t],name:"a:schemeClr"})}return t=e.transforms?sk(e.transforms):[],new rV({attributes:{value:{key:"val",value:e.value}},children:[...t],name:"a:srgbClr"})},sI=e=>new rV({children:[s_(e)],name:"a:solidFill"}),sN={TOP_LEFT:"tl",TOP:"t",TOP_RIGHT:"tr",LEFT:"l",CENTER:"ctr",RIGHT:"r",BOTTOM_LEFT:"bl",BOTTOM:"b",BOTTOM_RIGHT:"br"},sC={SHDW1:"shdw1",SHDW2:"shdw2",SHDW3:"shdw3",SHDW4:"shdw4",SHDW5:"shdw5",SHDW6:"shdw6",SHDW7:"shdw7",SHDW8:"shdw8",SHDW9:"shdw9",SHDW10:"shdw10",SHDW11:"shdw11",SHDW12:"shdw12",SHDW13:"shdw13",SHDW14:"shdw14",SHDW15:"shdw15",SHDW16:"shdw16",SHDW17:"shdw17",SHDW18:"shdw18",SHDW19:"shdw19",SHDW20:"shdw20"},sL=e=>{var t,r,s,n,i;let o,a,l,h=[];return e.blur&&h.push(new rV(void 0===(t=e.blur).rad&&!1!==t.grow?{name:"a:blur"}:{attributes:{...void 0!==t.rad&&{rad:{key:"rad",value:t.rad}},...!1===t.grow&&{grow:{key:"grow",value:0}}},name:"a:blur"})),e.fillOverlay&&h.push(new rV({attributes:{blend:{key:"blend",value:(o=e.fillOverlay).blend}},children:[sI(o.color)],name:"a:fillOverlay"})),e.glow&&h.push(new rV(void 0===(r=e.glow).rad?{children:[s_(r.color)],name:"a:glow"}:{attributes:{rad:{key:"rad",value:r.rad}},children:[s_(r.color)],name:"a:glow"})),e.innerShadow&&h.push(new rV(void 0===(s=e.innerShadow).blurRad&&void 0===s.dist&&void 0===s.dir?{children:[s_(s.color)],name:"a:innerShdw"}:{attributes:{...void 0!==s.blurRad&&{blurRad:{key:"blurRad",value:s.blurRad}},...void 0!==s.dist&&{dist:{key:"dist",value:s.dist}},...void 0!==s.dir&&{dir:{key:"dir",value:s.dir}}},children:[s_(s.color)],name:"a:innerShdw"})),e.outerShadow&&h.push((n=e.outerShadow,a={},void 0!==n.blurRad&&(a.blurRad={key:"blurRad",value:n.blurRad}),void 0!==n.dist&&(a.dist={key:"dist",value:n.dist}),void 0!==n.dir&&(a.dir={key:"dir",value:n.dir}),void 0!==n.sx&&(a.sx={key:"sx",value:n.sx}),void 0!==n.sy&&(a.sy={key:"sy",value:n.sy}),void 0!==n.kx&&(a.kx={key:"kx",value:n.kx}),void 0!==n.ky&&(a.ky={key:"ky",value:n.ky}),void 0!==n.algn&&(a.algn={key:"algn",value:sN[n.algn]}),!1===n.rotWithShape&&(a.rotWithShape={key:"rotWithShape",value:0}),new rV({attributes:a,children:[s_(n.color)],name:"a:outerShdw"}))),e.presetShadow&&h.push((l={prst:{key:"prst",value:sC[(i=e.presetShadow).prst]}},void 0!==i.dist&&(l.dist={key:"dist",value:i.dist}),void 0!==i.dir&&(l.dir={key:"dir",value:i.dir}),new rV({attributes:l,children:[s_(i.color)],name:"a:prstShdw"}))),e.reflection&&h.push((e=>{if(!e)return new rV({name:"a:reflection"});let t={};return void 0!==e.blurRad&&(t.blurRad={key:"blurRad",value:e.blurRad}),void 0!==e.stA&&(t.stA={key:"stA",value:e.stA}),void 0!==e.stPos&&(t.stPos={key:"stPos",value:e.stPos}),void 0!==e.endA&&(t.endA={key:"endA",value:e.endA}),void 0!==e.endPos&&(t.endPos={key:"endPos",value:e.endPos}),void 0!==e.dist&&(t.dist={key:"dist",value:e.dist}),void 0!==e.dir&&(t.dir={key:"dir",value:e.dir}),void 0!==e.fadeDir&&(t.fadeDir={key:"fadeDir",value:e.fadeDir}),void 0!==e.sx&&(t.sx={key:"sx",value:e.sx}),void 0!==e.sy&&(t.sy={key:"sy",value:e.sy}),void 0!==e.kx&&(t.kx={key:"kx",value:e.kx}),void 0!==e.ky&&(t.ky={key:"ky",value:e.ky}),void 0!==e.algn&&(t.algn={key:"algn",value:e.algn}),!1===e.rotWithShape&&(t.rotWithShape={key:"rotWithShape",value:0}),new rV({attributes:t,name:"a:reflection"})})(!0===e.reflection?void 0:e.reflection)),void 0!==e.softEdge&&h.push(new rV({attributes:{rad:{key:"rad",value:e.softEdge}},name:"a:softEdge"})),new rV({children:h,name:"a:effectLst"})},sD={SHAPE:"shape",CIRCLE:"circle",RECT:"rect"},sO=e=>new rV({attributes:{pos:{key:"pos",value:e.position}},children:[s_(e.color)],name:"a:gs"});var sF=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{cx:"cx",cy:"cy"})}},sP=class extends ef{constructor(e,t){super("a:ext"),ep(this,"attributes",void 0),this.attributes=new sF({cx:e,cy:t}),this.root.push(this.attributes)}},sB=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{x:"x",y:"y"})}},sM=class extends ef{constructor(e,t){super("a:off"),this.root.push(new sB({x:null!=e?e:0,y:null!=t?t:0}))}},sH=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{flipHorizontal:"flipH",flipVertical:"flipV",rotation:"rot"})}},sU=class extends ef{constructor(e){var t,r,s,n;super("a:xfrm"),ep(this,"extents",void 0),ep(this,"offset",void 0),this.root.push(new sH({flipHorizontal:null==(t=e.flip)?void 0:t.horizontal,flipVertical:null==(r=e.flip)?void 0:r.vertical,rotation:e.rotation})),this.offset=new sM(null==(s=e.offset)||null==(s=s.emus)?void 0:s.x,null==(n=e.offset)||null==(n=n.emus)?void 0:n.y),this.extents=new sP(e.emus.x,e.emus.y),this.root.push(this.offset),this.root.push(this.extents)}};let sW=()=>new rV({name:"a:noFill"}),sG={ROUND:"rnd",SQUARE:"sq",FLAT:"flat"},sK={SINGLE:"sng",DOUBLE:"dbl",THICK_THIN:"thickThin",THIN_THICK:"thinThick",TRI:"tri"},sj={CENTER:"ctr",INSET:"in"},sV={SOLID:"solid",DOT:"dot",DASH:"dash",LG_DASH:"lgDash",DASH_DOT:"dashDot",LG_DASH_DOT:"lgDashDot",LG_DASH_DOT_DOT:"lgDashDotDot",SYS_DASH:"sysDash",SYS_DOT:"sysDot",SYS_DASH_DOT:"sysDashDot",SYS_DASH_DOT_DOT:"sysDashDotDot"},sY={ROUND:"round",BEVEL:"bevel",MITER:"miter"};var sz=class extends ef{constructor(){super("a:avLst")}},s$=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{prst:"prst"})}},sq=class extends ef{constructor(){super("a:prstGeom"),this.root.push(new s$({prst:"rect"})),this.root.push(new sz)}},sX=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{bwMode:"bwMode"})}};let sQ={RELAXED_INSET:"relaxedInset",CIRCLE:"circle",SLOPE:"slope",CROSS:"cross",ANGLE:"angle",SOFT_ROUND:"softRound",CONVEX:"convex",COOL_SLANT:"coolSlant",DIVOT:"divot",RIBLET:"riblet",HARD_EDGE:"hardEdge",ART_DECO:"artDeco"},sJ={LEGACY_MATTE:"legacyMatte",LEGACY_PLASTIC:"legacyPlastic",LEGACY_METAL:"legacyMetal",LEGACY_WIREFRAME:"legacyWireframe",MATTE:"matte",PLASTIC:"plastic",METAL:"metal",WARM_MATTE:"warmMatte",TRANSLUCENT_POWDER:"translucentPowder",POWDER:"powder",DK_EDGE:"dkEdge",SOFT_EDGE:"softEdge",CLEAR:"clear",FLAT:"flat",SOFT_METAL:"softmetal"};var sZ=class extends ef{constructor({element:e,effects:t,gradientFill:r,noFill:s,outline:n,shape3d:i,solidFill:o,transform:a}){super(`${e}:spPr`),ep(this,"form",void 0),this.root.push(new sX({bwMode:"auto"})),this.form=new sU(a),this.root.push(this.form),this.root.push(new sq),s?this.root.push(sW()):o?this.root.push(sI(o)):r&&this.root.push((e=>{var t;let r=[];return r.push(new rV({children:e.stops.map(sO),name:"a:gsLst"})),e.shade&&r.push(new rV("angle"in(t=e.shade)?{attributes:{ang:{key:"ang",value:t.angle},scaled:{key:"scaled",value:t.scaled}},name:"a:lin"}:{attributes:{path:{key:"path",value:t.path?sD[t.path]:void 0}},name:"a:path"})),new rV({attributes:{rotWithShape:{key:"rotWithShape",value:e.rotateWithShape}},children:r,name:"a:gradFill"})})(r)),n&&this.root.push((e=>{let t=[],r="noFill"===e.type?sW():"solidFill"===e.type&&e.color?sI(e.color):null;return r&&t.push(r),void 0!==e.dash&&t.push(new rV({attributes:{val:{key:"val",value:sV[e.dash]}},name:"a:prstDash"})),void 0!==e.join&&("MITER"===e.join&&void 0!==e.miterLimit?t.push(new rV({attributes:{lim:{key:"lim",value:e.miterLimit}},name:"a:miter"})):t.push(new rV({name:`a:${sY[e.join]}`}))),new rV({attributes:{align:{key:"algn",value:e.align?sj[e.align]:void 0},cap:{key:"cap",value:e.cap?sG[e.cap]:void 0},compoundLine:{key:"cmpd",value:e.compoundLine?sK[e.compoundLine]:void 0},width:{key:"w",value:e.width}},children:t,name:"a:ln"})})(n)),t&&this.root.push(sL(t)),i&&this.root.push((e=>{let t=[];return e.bevelT&&t.push((e=>{if(!e)return new rV({name:"a:bevelT"});let t={};return void 0!==e.w&&(t.w={key:"w",value:e.w}),void 0!==e.h&&(t.h={key:"h",value:e.h}),void 0!==e.prst&&(t.prst={key:"prst",value:sQ[e.prst]}),new rV({attributes:t,name:"a:bevelT"})})(e.bevelT)),e.bevelB&&t.push((e=>{if(!e)return new rV({name:"a:bevelB"});let t={};return void 0!==e.w&&(t.w={key:"w",value:e.w}),void 0!==e.h&&(t.h={key:"h",value:e.h}),void 0!==e.prst&&(t.prst={key:"prst",value:sQ[e.prst]}),new rV({attributes:t,name:"a:bevelB"})})(e.bevelB)),e.extrusionColor&&t.push(new rV({children:[s_(e.extrusionColor)],name:"a:extrusionClr"})),e.contourColor&&t.push(new rV({children:[s_(e.contourColor)],name:"a:contourClr"})),new rV({attributes:void 0!==e.z||void 0!==e.extrusionH||void 0!==e.contourW||void 0!==e.prstMaterial?{...void 0!==e.z&&{z:{key:"z",value:e.z}},...void 0!==e.extrusionH&&{extrusionH:{key:"extrusionH",value:e.extrusionH}},...void 0!==e.contourW&&{contourW:{key:"contourW",value:e.contourW}},...void 0!==e.prstMaterial&&{prstMaterial:{key:"prstMaterial",value:sJ[e.prstMaterial]}}}:void 0,children:t,name:"a:sp3d"})})(i))}};let s0=e=>new rV({children:[((e={txBox:"1"})=>new rV({attributes:{txBox:{key:"txBox",value:e.txBox}},name:"wps:cNvSpPr"}))(e.nonVisualProperties),new sZ({element:"wps",effects:e.effects,gradientFill:e.gradientFill,noFill:e.noFill,outline:e.outline,shape3d:e.shape3d,solidFill:e.solidFill,transform:e.transformation}),new rV({children:[new rV({children:[...e.children],name:"w:txbxContent"})],name:"wps:txbx"}),((e={})=>{var t,r,s,n;return new rV({attributes:{anchor:{key:"anchor",value:e.verticalAnchor},bIns:{key:"bIns",value:null==(t=e.margins)?void 0:t.bottom},lIns:{key:"lIns",value:null==(r=e.margins)?void 0:r.left},rIns:{key:"rIns",value:null==(s=e.margins)?void 0:s.right},tIns:{key:"tIns",value:null==(n=e.margins)?void 0:n.top}},children:e.noAutoFit?[new rM("a:noAutofit",e.noAutoFit)]:[],name:"wps:bodyPr"})})(e.bodyProperties)],name:"wps:wsp"});var s1=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{uri:"uri"})}},s2=class extends ef{constructor(){super("a:fillRect")}},s6=class extends ef{constructor(){super("a:stretch"),this.root.push(new s2)}};let s8={NONE:"none",X:"x",Y:"y",XY:"xy"},s5={TOP_LEFT:"tl",TOP:"t",TOP_RIGHT:"tr",LEFT:"l",CENTER:"ctr",RIGHT:"r",BOTTOM_LEFT:"bl",BOTTOM:"b",BOTTOM_RIGHT:"br"};var s3=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{preferRelativeResize:"preferRelativeResize"})}},s4=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{noChangeArrowheads:"noChangeArrowheads",noChangeAspect:"noChangeAspect"})}},s9=class extends ef{constructor(){super("a:picLocks"),this.root.push(new s4({noChangeArrowheads:1,noChangeAspect:1}))}},s7=class extends ef{constructor(){super("pic:cNvPicPr"),this.root.push(new s3({preferRelativeResize:!0})),this.root.push(new s9)}};let ne=(e,t)=>new rV({attributes:{...t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{},id:{key:"r:id",value:`rId${e}`}},name:"a:hlinkClick"}),nt=(e,t)=>new rV({attributes:{...t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{},id:{key:"r:id",value:`rId${e}`}},name:"a:hlinkHover"}),nr="External";var ns=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{descr:"descr",id:"id",name:"name"})}};let nn="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";var ni=class extends ef{constructor(e){super("pic:cNvPr"),ep(this,"hyperlink",void 0),this.hyperlink=e,this.root.push(new ns({descr:"",id:0,name:""}))}prepForXml(e){let t=!1;for(let r=e.stack.length-1;r>=0;r--){let s=e.stack[r];if(s instanceof nY){this.root.push(ne(s.linkId,!1)),t=!0;break}}if(this.hyperlink){if(this.hyperlink.click&&!t){let t=sy();e.viewWrapper.Relationships.addRelationship(t,nn,this.hyperlink.click,nr),this.root.push(ne(t,!1))}if(this.hyperlink.hover){let t=sy();e.viewWrapper.Relationships.addRelationship(t,nn,this.hyperlink.hover,nr),this.root.push(nt(t,!1))}}return super.prepForXml(e)}},no=class extends ef{constructor(e){super("pic:nvPicPr"),this.root.push(new ni(e)),this.root.push(new s7)}},na=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{xmlns:"xmlns:pic"})}},nl=class extends ef{constructor({mediaData:e,transform:t,outline:r,solidFill:s,effects:n,blipEffects:i,tile:o,hyperlink:a}){super("pic:pic"),this.root.push(new na({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new no(a)),this.root.push(((e,t)=>{var r;let s,n=[];n.push((r=null==t?void 0:t.blipEffects,s=[],r&&s.push(...(e=>{let t=[];if(e.grayscale&&t.push(new rV({name:"a:grayscl"})),e.luminance){let r={};void 0!==e.luminance.bright&&(r.bright={key:"bright",value:`${e.luminance.bright}%`}),void 0!==e.luminance.contrast&&(r.contrast={key:"contrast",value:`${e.luminance.contrast}%`}),t.push(new rV({attributes:r,name:"a:lum"}))}if(e.hsl){let r={};void 0!==e.hsl.hue&&(r.hue={key:"hue",value:String(e.hsl.hue)}),void 0!==e.hsl.sat&&(r.sat={key:"sat",value:`${e.hsl.sat}%`}),void 0!==e.hsl.lum&&(r.lum={key:"lum",value:`${e.hsl.lum}%`}),t.push(new rV({attributes:r,name:"a:hsl"}))}if(e.tint){let r={};void 0!==e.tint.hue&&(r.hue={key:"hue",value:String(e.tint.hue)}),void 0!==e.tint.amt&&(r.amt={key:"amt",value:`${e.tint.amt}%`}),t.push(new rV({attributes:r,name:"a:tint"}))}if(e.duotone&&t.push(new rV({children:[s_(e.duotone.color1),s_(e.duotone.color2)],name:"a:duotone"})),e.biLevel&&t.push(new rV({attributes:{thresh:{key:"thresh",value:`${e.biLevel.thresh}%`}},name:"a:biLevel"})),e.alphaCeiling&&t.push(new rV({name:"a:alphaCeiling"})),e.alphaFloor&&t.push(new rV({name:"a:alphaFloor"})),void 0!==e.alphaInverse&&("boolean"==typeof e.alphaInverse?t.push(new rV({name:"a:alphaInv"})):t.push(new rV({children:[s_(e.alphaInverse)],name:"a:alphaInv"}))),e.alphaModFix){var r;let s=null!=(r=e.alphaModFix.amount)?r:100;t.push(new rV({attributes:{amt:{key:"amt",value:`${s}%`}},name:"a:alphaModFix"}))}if(e.alphaRepl&&t.push(new rV({attributes:{a:{key:"a",value:`${e.alphaRepl.amount}%`}},name:"a:alphaRepl"})),e.alphaBiLevel&&t.push(new rV({attributes:{thresh:{key:"thresh",value:`${e.alphaBiLevel.thresh}%`}},name:"a:alphaBiLevel"})),e.colorChange){let r={};!1===e.colorChange.useAlpha&&(r.useA={key:"useA",value:"0"}),t.push(new rV({attributes:r,children:[new rV({children:[s_(e.colorChange.from)],name:"a:clrFrom"}),new rV({children:[s_(e.colorChange.to)],name:"a:clrTo"})],name:"a:clrChange"}))}if(e.colorRepl&&t.push(new rV({children:[s_(e.colorRepl.color)],name:"a:clrRepl"})),e.blur){let r={};void 0!==e.blur.rad&&(r.rad={key:"rad",value:e.blur.rad}),!1===e.blur.grow&&(r.grow={key:"grow",value:0}),t.push(new rV({attributes:r,name:"a:blur"}))}return t})(r)),"svg"===e.type&&s.push((e=>new rV({children:[new rV({attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[new rV({attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${e.fileName}}`}},name:"asvg:svgBlip"})],name:"a:ext"})],name:"a:extLst"}))(e)),new rV({attributes:{cstate:{key:"cstate",value:"none"},embed:{key:"r:embed",value:`rId{${"svg"===e.type?e.fallback.fileName:e.fileName}}`}},children:s,name:"a:blip"}))),n.push((e=>{if(!e)return new rV({name:"a:srcRect"});let t={};return void 0!==e.left&&(t.l={key:"l",value:e.left}),void 0!==e.top&&(t.t={key:"t",value:e.top}),void 0!==e.right&&(t.r={key:"r",value:e.right}),void 0!==e.bottom&&(t.b={key:"b",value:e.bottom}),new rV({attributes:t,name:"a:srcRect"})})(e.srcRect)),(null==t?void 0:t.tile)?n.push((e=>{if(!e)return new rV({name:"a:tile"});let t={};return void 0!==e.tx&&(t.tx={key:"tx",value:e.tx}),void 0!==e.ty&&(t.ty={key:"ty",value:e.ty}),void 0!==e.sx&&(t.sx={key:"sx",value:e.sx}),void 0!==e.sy&&(t.sy={key:"sy",value:e.sy}),void 0!==e.flip&&(t.flip={key:"flip",value:s8[e.flip]}),void 0!==e.align&&(t.algn={key:"algn",value:s5[e.align]}),new rV({attributes:Object.keys(t).length>0?t:void 0,name:"a:tile"})})(t.tile)):n.push(new s6);let i={};return(null==t?void 0:t.dpi)!==void 0&&(i.dpi={key:"dpi",value:t.dpi}),(null==t?void 0:t.rotWithShape)!==void 0&&(i.rotWithShape={key:"rotWithShape",value:+!!t.rotWithShape}),new rV({attributes:Object.keys(i).length>0?i:void 0,children:n,name:"pic:blipFill"})})(e,{blipEffects:i,tile:o})),this.root.push(new sZ({element:"pic",effects:n,outline:r,solidFill:s,transform:t}))}},nh=class extends ef{constructor({mediaData:e,transform:t,outline:r,solidFill:s,effects:n,blipEffects:i,tile:o,hyperlink:a}){if(super("a:graphicData"),"wps"===e.type){this.root.push(new s1({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));const n=s0({...e.data,outline:r,solidFill:s,transformation:t});this.root.push(n)}else if("wpg"===e.type){this.root.push(new s1({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"}));const r=(e=>{var t,r,s,n,i,o,a,l,h;let u,c;return new rV({children:[new rV({name:"wpg:cNvGrpSpPr"}),(c=[(t=e.transformation,r=e.chOff,s=e.chExt,u=[new sM(null==(n=t.offset)||null==(n=n.emus)?void 0:n.x,null==(i=t.offset)||null==(i=i.emus)?void 0:i.y),new sP(t.emus.x,t.emus.y)],r&&u.push(new rV({attributes:{x:{key:"x",value:r.x},y:{key:"y",value:r.y}},name:"a:chOff"})),s&&u.push(new rV({attributes:{cx:{key:"cx",value:s.cx},cy:{key:"cy",value:s.cy}},name:"a:chExt"})),new rV({attributes:(null==(o=t.flip)?void 0:o.horizontal)!==void 0||(null==(a=t.flip)?void 0:a.vertical)!==void 0||void 0!==t.rotation?{...(null==(l=t.flip)?void 0:l.horizontal)!==void 0&&{flipH:{key:"flipH",value:t.flip.horizontal}},...(null==(h=t.flip)?void 0:h.vertical)!==void 0&&{flipV:{key:"flipV",value:t.flip.vertical}},...void 0!==t.rotation&&{rot:{key:"rot",value:t.rotation}}}:void 0,children:u,name:"a:xfrm"}))],e.noFill?c.push(sW()):e.solidFill&&c.push(sI(e.solidFill)),e.effects&&c.push(sL(e.effects)),new rV({children:c,name:"wpg:grpSpPr"})),...e.children],name:"wpg:wgp"})})({children:e.children.map(e=>"wps"===e.type?s0({...e.data,outline:e.outline,solidFill:e.solidFill,transformation:e.transformation}):new nl({mediaData:e,outline:e.outline,transform:e.transformation})),transformation:t,chOff:e.chOff,chExt:e.chExt,solidFill:e.solidFill,effects:e.effects});this.root.push(r)}else{this.root.push(new s1({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"}));const l=new nl({blipEffects:i,effects:n,hyperlink:a,mediaData:e,outline:r,solidFill:s,tile:o,transform:t});this.root.push(l)}}},nu=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{a:"xmlns:a"})}},nc=class extends ef{constructor({mediaData:e,transform:t,outline:r,solidFill:s,effects:n,blipEffects:i,tile:o,hyperlink:a}){super("a:graphic"),ep(this,"data",void 0),this.root.push(new nu({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new nh({blipEffects:i,effects:n,hyperlink:a,mediaData:e,outline:r,solidFill:s,tile:o,transform:t}),this.root.push(this.data)}};let np="bothSides",nd=()=>new rV({name:"wp:wrapNone"}),nm="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";var nf=class extends ef{constructor({name:e,description:t,title:r,id:s,hyperlink:n}={description:"",name:"",title:""}){super("wp:docPr"),ep(this,"docPropertiesUniqueNumericId",sv()),ep(this,"hyperlink",void 0),this.hyperlink=n;const i={id:{key:"id",value:null!=s?s:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e}};null!=t&&(i.description={key:"descr",value:t}),null!=r&&(i.title={key:"title",value:r}),this.root.push(new ev(i))}prepForXml(e){let t=!1;for(let r=e.stack.length-1;r>=0;r--){let s=e.stack[r];if(s instanceof nY){this.root.push(ne(s.linkId,!0)),t=!0;break}}if(this.hyperlink){if(this.hyperlink.click&&!t){let t=sy();e.viewWrapper.Relationships.addRelationship(t,nm,this.hyperlink.click,nr),this.root.push(ne(t,!0))}if(this.hyperlink.hover){let t=sy();e.viewWrapper.Relationships.addRelationship(t,nm,this.hyperlink.hover,nr),this.root.push(nt(t,!0))}}return super.prepForXml(e)}};let nw=({top:e,right:t,bottom:r,left:s})=>new rV({attributes:{bottom:{key:"b",value:r},left:{key:"l",value:s},right:{key:"r",value:t},top:{key:"t",value:e}},name:"wp:effectExtent"}),ng=({x:e,y:t})=>new rV({attributes:{x:{key:"cx",value:e},y:{key:"cy",value:t}},name:"wp:extent"});var nv=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{noChangeAspect:"noChangeAspect",xmlns:"xmlns:a"})}},ny=class extends ef{constructor(){super("a:graphicFrameLocks"),this.root.push(new nv({noChangeAspect:1,xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main"}))}};let nb=()=>new rV({children:[new ny],name:"wp:cNvGraphicFramePr"});var nx=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{allowOverlap:"allowOverlap",behindDoc:"behindDoc",distB:"distB",distL:"distL",distR:"distR",distT:"distT",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},nE=class extends ef{constructor({mediaData:e,transform:t,drawingOptions:r}){var s;super("wp:anchor");const n={allowOverlap:!0,behindDocument:!1,horizontalPosition:{},layoutInCell:!0,lockAnchor:!1,verticalPosition:{},...r.floating};if(this.root.push(new nx({distT:n.margins&&n.margins.top||0,distB:n.margins&&n.margins.bottom||0,distL:n.margins&&n.margins.left||0,distR:n.margins&&n.margins.right||0,simplePos:"0",allowOverlap:!0===n.allowOverlap?"1":"0",behindDoc:!0===n.behindDocument?"1":"0",locked:!0===n.lockAnchor?"1":"0",layoutInCell:!0===n.layoutInCell?"1":"0",relativeHeight:n.zIndex?n.zIndex:t.emus.y})),this.root.push(new rV({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}})),this.root.push((({relative:e,align:t,offset:r})=>new rV({attributes:{relativeFrom:{key:"relativeFrom",value:null!=e?e:"page"}},children:[t?sE(t):void 0!==r?sT(r):sE("left")],name:"wp:positionH"}))(n.horizontalPosition)),this.root.push((({relative:e,align:t,offset:r})=>new rV({attributes:{relativeFrom:{key:"relativeFrom",value:null!=e?e:"page"}},children:[t?sE(t):void 0!==r?sT(r):sE("top")],name:"wp:positionV"}))(n.verticalPosition)),this.root.push(ng({x:t.emus.x,y:t.emus.y})),this.root.push(nw({bottom:0,left:0,right:0,top:0})),void 0!==r.floating&&void 0!==r.floating.wrap)switch(r.floating.wrap.type){case 1:this.root.push(((e,t={bottom:0,left:0,right:0,top:0})=>new rV({attributes:{distB:{key:"distB",value:t.bottom},distL:{key:"distL",value:t.left},distR:{key:"distR",value:t.right},distT:{key:"distT",value:t.top},wrapText:{key:"wrapText",value:e.side||np}},name:"wp:wrapSquare"}))(r.floating.wrap,r.floating.margins));break;case 2:this.root.push(((e,t={bottom:0,left:0,right:0,top:0},r)=>{let s,n;return new rV({attributes:{distL:{key:"distL",value:t.left},distR:{key:"distR",value:t.right},wrapText:{key:"wrapText",value:e.side||np}},children:[(s=r.x,n=r.y,new rV({attributes:{edited:{key:"edited",value:"0"}},children:[new rV({attributes:{x:{key:"x",value:0},y:{key:"y",value:0}},name:"wp:start"}),new rV({attributes:{x:{key:"x",value:0},y:{key:"y",value:-n}},name:"wp:lineTo"}),new rV({attributes:{x:{key:"x",value:s},y:{key:"y",value:-n}},name:"wp:lineTo"}),new rV({attributes:{x:{key:"x",value:s},y:{key:"y",value:0}},name:"wp:lineTo"}),new rV({attributes:{x:{key:"x",value:0},y:{key:"y",value:0}},name:"wp:lineTo"})],name:"wp:wrapPolygon"}))],name:"wp:wrapTight"})})(r.floating.wrap,r.floating.margins,{x:t.emus.x,y:t.emus.y}));break;case 4:this.root.push(((e,t={bottom:0,left:0,right:0,top:0},r)=>{let s,n;return new rV({attributes:{distL:{key:"distL",value:t.left},distR:{key:"distR",value:t.right},wrapText:{key:"wrapText",value:e.side||np}},children:[(s=r.x,n=r.y,new rV({attributes:{edited:{key:"edited",value:"0"}},children:[new rV({attributes:{x:{key:"x",value:0},y:{key:"y",value:0}},name:"wp:start"}),new rV({attributes:{x:{key:"x",value:0},y:{key:"y",value:-n}},name:"wp:lineTo"}),new rV({attributes:{x:{key:"x",value:s},y:{key:"y",value:-n}},name:"wp:lineTo"}),new rV({attributes:{x:{key:"x",value:s},y:{key:"y",value:0}},name:"wp:lineTo"}),new rV({attributes:{x:{key:"x",value:0},y:{key:"y",value:0}},name:"wp:lineTo"})],name:"wp:wrapPolygon"}))],name:"wp:wrapThrough"})})(r.floating.wrap,r.floating.margins,{x:t.emus.x,y:t.emus.y}));break;case 3:this.root.push(((e={bottom:0,top:0})=>new rV({attributes:{distB:{key:"distB",value:e.bottom},distT:{key:"distT",value:e.top}},name:"wp:wrapTopAndBottom"}))(r.floating.margins));break;default:this.root.push(nd())}else this.root.push(nd());this.root.push(new nf(r.docProperties)),this.root.push(nb()),this.root.push(new nc({blipEffects:r.blipEffects,effects:r.effects,hyperlink:null==(s=r.docProperties)?void 0:s.hyperlink,mediaData:e,outline:r.outline,solidFill:r.solidFill,tile:r.tile,transform:t}))}},nT=class extends ef{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new nE({drawingOptions:t,mediaData:e,transform:e.transformation})):this.root.push((({mediaData:e,transform:t,docProperties:r,outline:s,solidFill:n,effects:i,blipEffects:o,tile:a})=>{var l,h,u,c;return new rV({attributes:{distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0},distanceTop:{key:"distT",value:0}},children:[ng({x:t.emus.x,y:t.emus.y}),nw(s?{bottom:(null!=(l=s.width)?l:9525)*2,left:(null!=(h=s.width)?h:9525)*2,right:(null!=(u=s.width)?u:9525)*2,top:(null!=(c=s.width)?c:9525)*2}:{bottom:0,left:0,right:0,top:0}),new nf(r),nb(),new nc({blipEffects:o,effects:i,hyperlink:null==r?void 0:r.hyperlink,mediaData:e,outline:s,solidFill:n,tile:a,transform:t})],name:"wp:inline"})})({blipEffects:t.blipEffects,docProperties:t.docProperties,effects:t.effects,mediaData:e,outline:t.outline,solidFill:t.solidFill,tile:t.tile,transform:e.transformation}))}},nk=class{constructor(){ep(this,"map",void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return[...this.map.values()]}};let nA=(e,t,r,s)=>{var n,i,o,a,l,h,u,c;return{data:e,fileName:r,srcRect:s,transformation:{emus:{x:Math.round(9525*t.width),y:Math.round(9525*t.height)},flip:t.flip,offset:{emus:{x:Math.round((null!=(n=null==(i=t.offset)?void 0:i.left)?n:0)*9525),y:Math.round((null!=(o=null==(a=t.offset)?void 0:a.top)?o:0)*9525)},pixels:{x:Math.round(null!=(l=null==(h=t.offset)?void 0:h.left)?l:0),y:Math.round(null!=(u=null==(c=t.offset)?void 0:c.top)?u:0)}},pixels:{x:Math.round(t.width),y:Math.round(t.height)},rotation:t.rotation?6e4*t.rotation:void 0}}};var nS=class extends sf{constructor(e){super({}),ep(this,"imageData",void 0);const t=(0,Z.Fo)(e.data),r=`${sb(t)}.${e.type}`;if("svg"===e.type){const s=(0,Z.Fo)(e.fallback.data);this.imageData={type:e.type,...nA(t,e.transformation,r,e.srcRect),fallback:{type:e.fallback.type,...nA(s,e.transformation,`${sb(s)}.${e.fallback.type}`)}}}else this.imageData={type:e.type,...nA(t,e.transformation,r,e.srcRect)};const s=new nT(this.imageData,{blipEffects:e.blipEffects,docProperties:e.altText,floating:e.floating,outline:e.outline,solidFill:e.solidFill,effects:e.effects,tile:e.tile});this.root.push(s)}prepForXml(e){return e.file.Media.addImage(this.imageData.fileName,this.imageData),"svg"===this.imageData.type&&e.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(e)}},nR=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{xmlns:"xmlns"})}},n_=class extends ef{constructor(){super("Relationships"),this.root.push(new nR({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e,t,r,s){this.root.push(new rV({attributes:{id:{key:"Id",value:`rId${e}`},target:{key:"Target",value:r},targetMode:{key:"TargetMode",value:s},type:{key:"Type",value:t}},name:"Relationship"}))}get RelationshipCount(){return this.root.length-1}},nI=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{author:"w:author",date:"w:date",id:"w:id",initials:"w:initials"})}},nN=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{"xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","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:m":"xmlns:m","xmlns:mc":"xmlns:mc","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:v":"xmlns:v","xmlns:w":"xmlns:w","xmlns:w10":"xmlns:w10","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16":"xmlns:w16","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wne":"xmlns:wne","xmlns:wp":"xmlns:wp","xmlns:wp14":"xmlns:wp14","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wps":"xmlns:wps"})}},nC=class extends ef{constructor({id:e,initials:t,author:r,date:s=new Date,children:n}){for(const i of(super("w:comment"),this.root.push(new nI({author:r,date:s.toISOString(),id:e,initials:t})),n))this.root.push(i)}},nL=class extends ef{constructor({children:e}){for(const t of(super("w:comments"),ep(this,"relationships",void 0),this.root.push(new nN({"xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","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:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"})),e))this.root.push(new nC(t));this.relationships=new n_}get Relationships(){return this.relationships}},nD=class extends rU{constructor(){super("w:endnoteRef")}},nO=class extends rU{constructor(){super("w:tab")}},nF=class extends ef{constructor(e){super("w:br"),this.root.push(new ey({type:e}))}},nP=class extends sf{constructor(){super({}),this.root.push(new nF("page"))}},nB=class extends ef{constructor(){super("w:pageBreakBefore")}};let nM="auto",nH={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"},nU=e=>new rV({attributes:{val:{key:"w:val",value:e}},name:"w:pStyle"});var nW=class extends ef{constructor(e,t){super("w:numPr"),this.root.push(new nG(t)),this.root.push(new nK(e))}},nG=class extends ef{constructor(e){super("w:ilvl"),this.root.push(new ey({val:Math.min(e,9)}))}},nK=class extends ef{constructor(e){super("w:numId"),this.root.push(new ey({val:"string"==typeof e?`{${e}}`:e}))}},nj=class extends ef{constructor(...e){super(...e),ep(this,"fileChild",Symbol())}},nV=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{anchor:"w:anchor",history:"w:history",id:"r:id"})}},nY=class extends ef{constructor(e,t,r){super("w:hyperlink"),ep(this,"linkId",void 0),this.linkId=t;const s=new nV({anchor:r||void 0,history:1,id:r?void 0:`rId${this.linkId}`});this.root.push(s),e.forEach(e=>{this.root.push(e)})}},nz=class extends nY{constructor(e){super(e.children,sy(),e.anchor)}},n$=class extends ef{constructor(e){super("w:externalHyperlink"),this.options=e}},nq=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{id:"w:id",name:"w:name"})}},nX=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{id:"w:id"})}},nQ=class{constructor(e){ep(this,"bookmarkUniqueNumericId",sv()),ep(this,"start",void 0),ep(this,"children",void 0),ep(this,"end",void 0);const t=this.bookmarkUniqueNumericId();this.start=new nJ(e.id,t),this.children=e.children,this.end=new nZ(t)}},nJ=class extends ef{constructor(e,t){super("w:bookmarkStart");const r=new nq({id:t,name:e});this.root.push(r)}},nZ=class extends ef{constructor(e){super("w:bookmarkEnd");const t=new nX({id:e});this.root.push(t)}};let n0=((n={}).NONE="none",n.RELATIVE="relative",n.NO_CONTEXT="no_context",n.FULL_CONTEXT="full_context",n);n0.RELATIVE,n0.NO_CONTEXT,n0.FULL_CONTEXT,n0.NONE;let n1=({id:e,fontKey:t,subsetted:r},s)=>new rV({attributes:{id:{key:"r:id",value:e},...t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}},children:r?[new rM("w:subsetted",r)]:[],name:s});var n2=class{constructor(e){this.options=e,ep(this,"fontTable",void 0),ep(this,"relationships",void 0),ep(this,"fontOptionsWithKey",[]),this.fontOptionsWithKey=e.map(e=>({...e,fontKey:`${sx(8)}-${sx(4)}-${sx(4)}-${sx(4)}-${sx(12)}`})),this.fontTable=(e=>new rV({attributes:{Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"},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"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/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"},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"}},children:e.map((e,t)=>(({name:e,index:t,fontKey:r,characterSet:s})=>(({name:e,altName:t,panose1:r,charset:s,family:n,notTrueType:i,pitch:o,sig:a,embedRegular:l,embedBold:h,embedItalic:u,embedBoldItalic:c})=>new rV({attributes:{name:{key:"w:name",value:e}},children:[...t?[rG("w:altName",t)]:[],...r?[rG("w:panose1",r)]:[],...s?[rG("w:charset",s)]:[],...n?[rG("w:family",n)]:[],...i?[new rM("w:notTrueType",i)]:[],...o?[rG("w:pitch",o)]:[],...a?[new rV({attributes:{csb0:{key:"w:csb0",value:a.csb0},csb1:{key:"w:csb1",value:a.csb1},usb0:{key:"w:usb0",value:a.usb0},usb1:{key:"w:usb1",value:a.usb1},usb2:{key:"w:usb2",value:a.usb2},usb3:{key:"w:usb3",value:a.usb3}},name:"w:sig"})]:[],...l?[n1(l,"w:embedRegular")]:[],...h?[n1(h,"w:embedBold")]:[],...u?[n1(u,"w:embedItalic")]:[],...c?[n1(c,"w:embedBoldItalic")]:[]],name:"w:font"}))({charset:s,embedRegular:{fontKey:r,id:`rId${t}`},family:"auto",name:e,pitch:"variable",sig:{csb0:"000001FF",csb1:"00000000",usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000"}}))({characterSet:e.characterSet,fontKey:e.fontKey,index:t+1,name:e.name})),name:"w:fonts"}))(this.fontOptionsWithKey),this.relationships=new n_;for(let t=0;t{var t,r;return new rV({attributes:{alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorLock:{key:"w:anchorLock",value:e.anchorLock},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},dropCap:{key:"w:dropCap",value:e.dropCap},height:{key:"w:h",value:e.height},lines:{key:"w:lines",value:e.lines},rule:{key:"w:hRule",value:e.rule},spaceHorizontal:{key:"w:hSpace",value:null==(t=e.space)?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:null==(r=e.space)?void 0:r.vertical},width:{key:"w:w",value:e.width},wrap:{key:"w:wrap",value:e.wrap},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0}},name:"w:framePr"})})(e.frame)),void 0!==e.widowControl&&this.push(new rM("w:widowControl",e.widowControl)),e.bullet&&this.push(new nW(1,e.bullet.level)),e.numbering){var t,r;this.numberingReferences.push({instance:null!=(t=e.numbering.instance)?t:0,reference:e.numbering.reference}),this.push(new nW(`${e.numbering.reference}-${null!=(r=e.numbering.instance)?r:0}`,e.numbering.level))}else!1===e.numbering&&this.push(new nW(0,0));e.border&&this.push(new rX(e.border)),e.thematicBreak&&this.push(new rQ),e.shading&&this.push(r7(e.shading)),e.wordWrap&&this.push(new rV({attributes:{val:{key:"w:val",value:0}},name:"w:wordWrap"})),e.overflowPunctuation&&this.push(new rM("w:overflowPunct",e.overflowPunctuation));const s=[...void 0!==e.rightTabStop?[{position:e.rightTabStop,type:"right"}]:[],...e.tabStops?e.tabStops:[],...void 0!==e.leftTabStop?[{position:e.leftTabStop,type:"left"}]:[]];s.length>0&&this.push((e=>new rV({children:e.map(e=>(({type:e,position:t,leader:r})=>new rV({attributes:{leader:{key:"w:leader",value:r},pos:{key:"w:pos",value:t},val:{key:"w:val",value:e}},name:"w:tab"}))(e)),name:"w:tabs"}))(s)),void 0!==e.bidirectional&&this.push(new rM("w:bidi",e.bidirectional)),e.spacing&&this.push((({after:e,before:t,line:r,lineRule:s,beforeAutoSpacing:n,afterAutoSpacing:i,beforeLines:o,afterLines:a})=>new rV({attributes:{after:{key:"w:after",value:e},afterAutoSpacing:{key:"w:afterAutospacing",value:i},afterLines:{key:"w:afterLines",value:void 0===a?void 0:rI(a)},before:{key:"w:before",value:t},beforeAutoSpacing:{key:"w:beforeAutospacing",value:n},beforeLines:{key:"w:beforeLines",value:void 0===o?void 0:rI(o)},line:{key:"w:line",value:r},lineRule:{key:"w:lineRule",value:s}},name:"w:spacing"}))(e.spacing)),e.indent&&this.push((({start:e,startChars:t,end:r,endChars:s,left:n,right:i,hanging:o,hangingChars:a,firstLine:l,firstLineChars:h})=>new rV({attributes:{end:{key:"w:end",value:void 0===r?void 0:rF(r)},endChars:{key:"w:endChars",value:void 0===s?void 0:rI(s)},firstLine:{key:"w:firstLine",value:void 0===l?void 0:rP(l)},firstLineChars:{key:"w:firstLineChars",value:void 0===h?void 0:rI(h)},hanging:{key:"w:hanging",value:void 0===o?void 0:rP(o)},hangingChars:{key:"w:hangingChars",value:void 0===a?void 0:rI(a)},left:{key:"w:left",value:void 0===n?void 0:rF(n)},right:{key:"w:right",value:void 0===i?void 0:rF(i)},start:{key:"w:start",value:void 0===e?void 0:rF(e)},startChars:{key:"w:startChars",value:void 0===t?void 0:rI(t)}},name:"w:ind"}))(e.indent)),void 0!==e.contextualSpacing&&this.push(new rM("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(rz(e.alignment)),void 0!==e.outlineLevel&&this.push((e=>new rV({attributes:{val:{key:"w:val",value:e}},name:"w:outlineLvl"}))(e.outlineLevel)),void 0!==e.suppressLineNumbers&&this.push(new rM("w:suppressLineNumbers",e.suppressLineNumbers)),void 0!==e.autoSpaceEastAsianText&&this.push(new rM("w:autoSpaceDN",e.autoSpaceEastAsianText)),void 0!==e.suppressAutoHyphens&&this.push(new rM("w:suppressAutoHyphens",e.suppressAutoHyphens)),void 0!==e.adjustRightInd&&this.push(new rM("w:adjustRightInd",e.adjustRightInd)),void 0!==e.snapToGrid&&this.push(new rM("w:snapToGrid",e.snapToGrid)),void 0!==e.mirrorIndents&&this.push(new rM("w:mirrorIndents",e.mirrorIndents)),void 0!==e.kinsoku&&this.push(new rM("w:kinsoku",e.kinsoku)),void 0!==e.topLinePunct&&this.push(new rM("w:topLinePunct",e.topLinePunct)),void 0!==e.autoSpaceDE&&this.push(new rM("w:autoSpaceDE",e.autoSpaceDE)),void 0!==e.textAlignment&&this.push(new rV({attributes:{val:{key:"w:val",value:e.textAlignment}},name:"w:textAlignment"})),void 0!==e.textboxTightWrap&&this.push(new rV({attributes:{val:{key:"w:val",value:e.textboxTightWrap}},name:"w:textboxTightWrap"})),e.run&&this.push(new sp(e.run)),e.revision&&this.push(new n8(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof n2))for(let t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},n8=class extends ef{constructor(e){super("w:pPrChange"),this.root.push(new se({author:e.author,date:e.date,id:e.id})),this.root.push(new n6({...e,includeIfEmpty:!0}))}},n5=class extends nj{constructor(e){if(super("w:p"),ep(this,"properties",void 0),"string"==typeof e)return this.properties=new n6({}),this.root.push(this.properties),this.root.push(new sw(e)),this;if(this.properties=new n6(e),this.root.push(this.properties),e.text&&this.root.push(new sw(e.text)),e.children)for(const t of e.children){if(t instanceof nQ){for(const e of(this.root.push(t.start),t.children))this.root.push(e);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(let t of this.root)if(t instanceof n$){let r=this.root.indexOf(t),s=new nY(t.options.children,sy());e.viewWrapper.Relationships.addRelationship(s.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,nr),this.root[r]=s}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}};let n3=e=>new rV({attributes:void 0!==e?{width:{key:"w:w",value:rP(e)}}:void 0,name:"w:gridCol"});var n4=class extends ef{constructor(e,t){for(const t of(super("w:tblGrid"),e))this.root.push(n3(t));t&&this.root.push(new n7(t))}},n9=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{id:"w:id"})}},n7=class extends ef{constructor(e){super("w:tblGridChange"),this.root.push(new n9({id:e.id})),this.root.push(new n4(e.columnWidths))}},ie=class extends ef{constructor(e){super("w:ins"),this.root.push(new se({author:e.author,date:e.date,id:e.id}))}},it=class extends ef{constructor(e){super("w:del"),this.root.push(new se({author:e.author,date:e.date,id:e.id}))}},ir=class extends ef{constructor(e){super("w:cellIns"),this.root.push(new se({author:e.author,date:e.date,id:e.id}))}},is=class extends ef{constructor(e){super("w:cellDel"),this.root.push(new se({author:e.author,date:e.date,id:e.id}))}},ii=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{author:"w:author",date:"w:date",id:"w:id",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},io=class extends ef{constructor(e){super("w:cellMerge"),this.root.push(new ii(e))}};let ia=e=>new rV({attributes:{verticalAlign:{key:"w:val",value:e}},name:"w:vAlign"}),il=({marginUnitType:e=ih.DXA,top:t,left:r,bottom:s,right:n})=>[{name:"w:top",size:t},{name:"w:left",size:r},{name:"w:bottom",size:s},{name:"w:right",size:n}].filter(e=>void 0!==e.size).map(({name:t,size:r})=>iu(t,{size:r,type:e})),ih={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},iu=(e,{type:t=ih.AUTO,size:r})=>{let s=r;return t===ih.PERCENTAGE&&"number"==typeof r&&(s=`${r}%`),new rV({attributes:{size:{key:"w:w",value:rB(s)},type:{key:"w:type",value:t}},name:e})};var ic=class extends ew{constructor(e){super("w:tcBorders"),e.top&&this.root.push(r$("w:top",e.top)),e.start&&this.root.push(r$("w:start",e.start)),e.left&&this.root.push(r$("w:left",e.left)),e.bottom&&this.root.push(r$("w:bottom",e.bottom)),e.end&&this.root.push(r$("w:end",e.end)),e.right&&this.root.push(r$("w:right",e.right))}},ip=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{val:"w:val"})}},id=class extends ef{constructor(e){super("w:gridSpan"),this.root.push(new ip({val:rI(e)}))}},im=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{val:"w:val"})}},iw=class extends ef{constructor(e){super("w:vMerge"),this.root.push(new im({val:e}))}},ig=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{val:"w:val"})}},iv=class extends ef{constructor(e){super("w:textDirection"),this.root.push(new ig({val:e}))}},iy=class extends ew{constructor(e){if(super("w:tcPr",e.includeIfEmpty),e.width&&this.root.push(iu("w:tcW",e.width)),e.columnSpan&&this.root.push(new id(e.columnSpan)),e.verticalMerge?this.root.push(new iw(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new iw("restart")),e.borders&&this.root.push(new ic(e.borders)),e.shading&&this.root.push(r7(e.shading)),e.margins){const t=(e=>{let t=il(e);if(0!==t.length)return new rV({children:t,name:"w:tcMar"})})(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new iv(e.textDirection)),e.verticalAlign&&this.root.push(ia(e.verticalAlign)),e.insertion&&this.root.push(new ir(e.insertion)),e.deletion&&this.root.push(new is(e.deletion)),e.revision&&this.root.push(new ib(e.revision)),e.cellMerge&&this.root.push(new io(e.cellMerge))}},ib=class extends ef{constructor(e){super("w:tcPrChange"),this.root.push(new se({author:e.author,date:e.date,id:e.id})),this.root.push(new iy({...e,includeIfEmpty:!0}))}},ix=class extends ef{constructor(e){for(const t of(super("w:tc"),this.options=e,this.root.push(new iy(e)),e.children))this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof n5||this.root.push(new n5({})),super.prepForXml(e)}};let iE="dxa",iT=({type:e=iE,value:t})=>new rV({attributes:{type:{key:"w:type",value:e},value:{key:"w:w",value:rB(t)}},name:"w:tblCellSpacing"}),ik={color:"auto",size:0,style:"none"},iA={color:"auto",size:4,style:rq};var iS=class extends ef{constructor(e){var t,r,s,n,i,o;super("w:tblBorders"),this.root.push(r$("w:top",null!=(t=e.top)?t:iA)),this.root.push(r$("w:left",null!=(r=e.left)?r:iA)),this.root.push(r$("w:bottom",null!=(s=e.bottom)?s:iA)),this.root.push(r$("w:right",null!=(n=e.right)?n:iA)),this.root.push(r$("w:insideH",null!=(i=e.insideHorizontal)?i:iA)),this.root.push(r$("w:insideV",null!=(o=e.insideVertical)?o:iA))}};ep(iS,"NONE",{bottom:ik,insideHorizontal:ik,insideVertical:ik,left:ik,right:ik,top:ik});let iR={AUTOFIT:"autofit",FIXED:"fixed"};var i_=class extends ew{constructor(e){if(super("w:tblPr",e.includeIfEmpty),e.style&&this.root.push(new rW("w:tblStyle",e.style)),e.float&&this.root.push((({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:r,relativeHorizontalPosition:s,absoluteVerticalPosition:n,relativeVerticalPosition:i,bottomFromText:o,topFromText:a,leftFromText:l,rightFromText:h,overlap:u})=>new rV({attributes:{absoluteHorizontalPosition:{key:"w:tblpX",value:void 0===r?void 0:rF(r)},absoluteVerticalPosition:{key:"w:tblpY",value:void 0===n?void 0:rF(n)},bottomFromText:{key:"w:bottomFromText",value:void 0===o?void 0:rP(o)},horizontalAnchor:{key:"w:horzAnchor",value:e},leftFromText:{key:"w:leftFromText",value:void 0===l?void 0:rP(l)},relativeHorizontalPosition:{key:"w:tblpXSpec",value:s},relativeVerticalPosition:{key:"w:tblpYSpec",value:i},rightFromText:{key:"w:rightFromText",value:void 0===h?void 0:rP(h)},topFromText:{key:"w:topFromText",value:void 0===a?void 0:rP(a)},verticalAnchor:{key:"w:vertAnchor",value:t}},children:u?[new rV({attributes:{val:{key:"w:val",value:u}},name:"w:tblOverlap"})]:void 0,name:"w:tblpPr"}))(e.float)),void 0!==e.visuallyRightToLeft&&this.root.push(new rM("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(iu("w:tblW",e.width)),e.alignment&&this.root.push(rz(e.alignment)),e.indent&&this.root.push(iu("w:tblInd",e.indent)),e.borders&&this.root.push(new iS(e.borders)),e.shading&&this.root.push(r7(e.shading)),e.layout&&this.root.push((e=>new rV({attributes:{type:{key:"w:type",value:e}},name:"w:tblLayout"}))(e.layout)),e.cellMargin){const t=(e=>{let t=il(e);if(0!==t.length)return new rV({children:t,name:"w:tblCellMar"})})(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push((({firstRow:e,lastRow:t,firstColumn:r,lastColumn:s,noHBand:n,noVBand:i})=>new rV({attributes:{firstColumn:{key:"w:firstColumn",value:r},firstRow:{key:"w:firstRow",value:e},lastColumn:{key:"w:lastColumn",value:s},lastRow:{key:"w:lastRow",value:t},noHBand:{key:"w:noHBand",value:n},noVBand:{key:"w:noVBand",value:i}},name:"w:tblLook"}))(e.tableLook)),e.cellSpacing&&this.root.push(iT(e.cellSpacing)),e.revision&&this.root.push(new iI(e.revision))}},iI=class extends ef{constructor(e){super("w:tblPrChange"),this.root.push(new se({author:e.author,date:e.date,id:e.id})),this.root.push(new i_({...e,includeIfEmpty:!0}))}},iN=class extends nj{constructor({rows:e,width:t,columnWidths:r=Array(Math.max(...e.map(e=>e.CellCount))).fill(100),columnWidthsRevision:s,margins:n,indent:i,float:o,layout:a,style:l,borders:h,alignment:u,visuallyRightToLeft:c,tableLook:p,cellSpacing:d,revision:m}){for(const f of(super("w:tbl"),this.root.push(new i_({alignment:u,borders:null!=h?h:{},cellMargin:n,cellSpacing:d,float:o,indent:i,layout:a,revision:m,style:l,tableLook:p,visuallyRightToLeft:c,width:null!=t?t:{size:100}})),this.root.push(new n4(r,s)),e))this.root.push(f);e.forEach((t,r)=>{if(r===e.length-1)return;let s=0;t.cells.forEach(t=>{if(t.options.rowSpan&&t.options.rowSpan>1){let n=new ix({borders:t.options.borders,children:[],columnSpan:t.options.columnSpan,rowSpan:t.options.rowSpan-1,verticalMerge:"continue"});e[r+1].addCellToColumnIndex(n,s)}s+=t.options.columnSpan||1})})}},iC=class extends ew{constructor(e){super("w:trPr",e.includeIfEmpty),void 0!==e.cantSplit&&this.root.push(new rM("w:cantSplit",e.cantSplit)),void 0!==e.tableHeader&&this.root.push(new rM("w:tblHeader",e.tableHeader)),e.height&&this.root.push(((e,t)=>new rV({attributes:{rule:{key:"w:hRule",value:t},value:{key:"w:val",value:rP(e)}},name:"w:trHeight"}))(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(iT(e.cellSpacing)),e.insertion&&this.root.push(new ie(e.insertion)),e.deletion&&this.root.push(new it(e.deletion)),e.revision&&this.root.push(new iL(e.revision))}},iL=class extends ef{constructor(e){super("w:trPrChange"),this.root.push(new se({author:e.author,date:e.date,id:e.id})),this.root.push(new iC({...e,includeIfEmpty:!0}))}},iD=class extends ef{constructor(e){for(const t of(super("w:tr"),this.options=e,this.root.push(new iC(e)),e.children))this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof ix)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){let r=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let r=1;r=this.root.length)if(t)return this.root.length;else throw Error(`cell 'columnIndex' should not great than ${r-1}`);let e=this.root[s];s+=1,r+=e&&e.options.columnSpan||1}return s-1}},iO=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{vt:"xmlns:vt",xmlns:"xmlns"})}},iF=class extends ef{constructor(){super("Properties"),this.root.push(new iO({vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"}))}},iP=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{xmlns:"xmlns"})}};let iB=(e,t)=>new rV({attributes:{contentType:{key:"ContentType",value:e},extension:{key:"Extension",value:t}},name:"Default"}),iM=(e,t)=>new rV({attributes:{contentType:{key:"ContentType",value:e},partName:{key:"PartName",value:t}},name:"Override"});var iH=class extends ef{constructor(){super("Types"),this.root.push(new iP({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(iB("image/png","png")),this.root.push(iB("image/jpeg","jpeg")),this.root.push(iB("image/jpeg","jpg")),this.root.push(iB("image/bmp","bmp")),this.root.push(iB("image/gif","gif")),this.root.push(iB("image/tiff","tif")),this.root.push(iB("image/tiff","tiff")),this.root.push(iB("image/x-emf","emf")),this.root.push(iB("image/x-wmf","wmf")),this.root.push(iB("image/x-icon","ico")),this.root.push(iB("image/svg+xml","svg")),this.root.push(iB("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(iB("application/xml","xml")),this.root.push(iB("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(iM("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(iM("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}};let iU={aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",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",dc:"http://purl.org/dc/elements/1.1/",dcmitype:"http://purl.org/dc/dcmitype/",dcterms:"http://purl.org/dc/terms/",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",v:"urn:schemas-microsoft-com:vml",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w10:"urn:schemas-microsoft-com:office:word",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",xsi:"http://www.w3.org/2001/XMLSchema-instance"};var iW=class extends eg{constructor(e,t){super({Ignorable:t,...Object.fromEntries(e.map(e=>[e,iU[e]]))}),ep(this,"xmlKeys",{Ignorable:"mc:Ignorable",...Object.fromEntries(Object.keys(iU).map(e=>[e,`xmlns:${e}`]))})}},iG=class extends ef{constructor(e){super("cp:coreProperties"),this.root.push(new iW(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new rj("dc:title",e.title)),e.subject&&this.root.push(new rj("dc:subject",e.subject)),e.creator&&this.root.push(new rj("dc:creator",e.creator)),e.keywords&&this.root.push(new rj("cp:keywords",e.keywords)),e.description&&this.root.push(new rj("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new rj("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new rj("cp:revision",String(e.revision))),this.root.push(new ij("dcterms:created")),this.root.push(new ij("dcterms:modified"))}},iK=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{type:"xsi:type"})}},ij=class extends ef{constructor(e){super(e),this.root.push(new iK({type:"dcterms:W3CDTF"})),this.root.push((e=>e.toISOString())(new Date))}},iV=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{vt:"xmlns:vt",xmlns:"xmlns"})}},iY=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{formatId:"fmtid",name:"name",pid:"pid"})}},iz=class extends ef{constructor(e,t){super("property"),this.root.push(new iY({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",name:t.name,pid:e.toString()})),this.root.push(new i$(t.value))}},i$=class extends ef{constructor(e){super("vt:lpwstr"),this.root.push(e)}},iq=class extends ef{constructor(e){for(const t of(super("Properties"),ep(this,"nextId",void 0),ep(this,"properties",[]),this.root.push(new iV({vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"})),this.nextId=2,e))this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(e=>this.root.push(e)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new iz(this.nextId++,e))}},iX=class extends ew{constructor(){super("w:footnotePr",!0)}},iQ=class extends ew{constructor(){super("w:endnotePr",!0)}};let iJ="default",iZ=(e,t)=>new rV({attributes:{id:{key:"r:id",value:`rId${t.id}`},type:{key:"w:type",value:t.type||iJ}},name:e});var i0=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},i1=class extends ew{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new i0({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new i0({})),e.pageBorderTop&&this.root.push(r$("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(r$("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(r$("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(r$("w:right",e.pageBorderRight))}};let i2="landscape";var i6=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{val:"w:val"})}},i8=class extends ef{constructor(e){super("w:textDirection"),this.root.push(new i6({val:e}))}},i5=class extends ef{constructor({page:{size:{width:e=11906,height:t=16838,orientation:r="portrait"}={},margin:{top:s=1440,right:n=1800,bottom:i=1440,left:o=1800,header:a=851,footer:l=992,gutter:h=0}={},pageNumbers:u={},borders:c,textDirection:p}={},grid:{linePitch:d=312,charSpace:m=0,type:f="lines"}={},headerWrapperGroup:w={},footerWrapperGroup:g={},lineNumbers:v,titlePage:y,verticalAlign:b,column:x,type:E,revision:T,noEndnote:k,bidi:A,rtlGutter:S,paperSrc:R,footnotePr:_,endnotePr:I}={}){super("w:sectPr"),this.addHeaderFooterGroup("w:headerReference",w),this.addHeaderFooterGroup("w:footerReference",g),E&&this.root.push((e=>new rV({attributes:{val:{key:"w:val",value:e}},name:"w:type"}))(E)),this.root.push((({width:e,height:t,orientation:r,code:s})=>{let n=rP(e),i=rP(t);return new rV({attributes:{code:{key:"w:code",value:s},height:{key:"w:h",value:r===i2?n:i},orientation:{key:"w:orient",value:r},width:{key:"w:w",value:r===i2?i:n}},name:"w:pgSz"})})({height:t,orientation:r,width:e})),this.root.push(((e,t,r,s,n,i,o)=>new rV({attributes:{bottom:{key:"w:bottom",value:rF(r)},footer:{key:"w:footer",value:rP(i)},gutter:{key:"w:gutter",value:rP(o)},header:{key:"w:header",value:rP(n)},left:{key:"w:left",value:rP(s)},right:{key:"w:right",value:rP(t)},top:{key:"w:top",value:rF(e)}},name:"w:pgMar"}))(s,n,i,o,a,l,h)),c&&this.root.push(new i1(c)),v&&this.root.push((({countBy:e,start:t,restart:r,distance:s})=>new rV({attributes:{countBy:{key:"w:countBy",value:void 0===e?void 0:rI(e)},distance:{key:"w:distance",value:void 0===s?void 0:rP(s)},restart:{key:"w:restart",value:r},start:{key:"w:start",value:void 0===t?void 0:rI(t)}},name:"w:lnNumType"}))(v)),this.root.push((({start:e,formatType:t,separator:r,chapStyle:s})=>new rV({attributes:{chapStyle:{key:"w:chapStyle",value:void 0===s?void 0:rI(s)},formatType:{key:"w:fmt",value:t},separator:{key:"w:chapSep",value:r},start:{key:"w:start",value:void 0===e?void 0:rI(e)}},name:"w:pgNumType"}))(u)),x&&this.root.push((({space:e,count:t,separate:r,equalWidth:s,children:n})=>new rV({attributes:{count:{key:"w:num",value:void 0===t?void 0:rI(t)},equalWidth:{key:"w:equalWidth",value:s},separate:{key:"w:sep",value:r},space:{key:"w:space",value:void 0===e?void 0:rP(e)}},children:!s&&n?n:void 0,name:"w:cols"}))(x)),b&&this.root.push(ia(b)),void 0!==y&&this.root.push(new rM("w:titlePg",y)),p&&this.root.push(new i8(p)),T&&this.root.push(new i3(T)),void 0!==k&&this.root.push(new rM("w:noEndnote",k)),void 0!==A&&this.root.push(new rM("w:bidi",A)),void 0!==S&&this.root.push(new rM("w:rtlGutter",S)),R&&this.root.push(new rV({attributes:{first:{key:"w:first",value:void 0===R.first?void 0:rI(R.first)},other:{key:"w:other",value:void 0===R.other?void 0:rI(R.other)}},name:"w:paperSrc"})),_&&this.root.push((({pos:e,formatType:t,format:r,numStart:s,numRestart:n})=>{let i=new iX;return void 0!==e&&i.addChildElement(new rV({attributes:{val:{key:"w:val",value:e}},name:"w:pos"})),(void 0!==t||void 0!==r)&&i.addChildElement(new rV({attributes:{format:{key:"w:format",value:r},val:{key:"w:fmt",value:t}},name:"w:numFmt"})),void 0!==s&&i.addChildElement(new rV({attributes:{val:{key:"w:val",value:rI(s)}},name:"w:numStart"})),void 0!==n&&i.addChildElement(new rV({attributes:{val:{key:"w:val",value:n}},name:"w:numRestart"})),i})(_)),I&&this.root.push((({pos:e,formatType:t,format:r,numStart:s,numRestart:n})=>{let i=new iQ;return void 0!==e&&i.addChildElement(new rV({attributes:{val:{key:"w:val",value:e}},name:"w:pos"})),(void 0!==t||void 0!==r)&&i.addChildElement(new rV({attributes:{format:{key:"w:format",value:r},val:{key:"w:fmt",value:t}},name:"w:numFmt"})),void 0!==s&&i.addChildElement(new rV({attributes:{val:{key:"w:val",value:rI(s)}},name:"w:numStart"})),void 0!==n&&i.addChildElement(new rV({attributes:{val:{key:"w:val",value:n}},name:"w:numRestart"})),i})(I)),this.root.push((({type:e,linePitch:t,charSpace:r})=>new rV({attributes:{charSpace:{key:"w:charSpace",value:r?rI(r):void 0},linePitch:{key:"w:linePitch",value:rI(t)},type:{key:"w:type",value:e}},name:"w:docGrid"}))({charSpace:m,linePitch:d,type:f}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(iZ(e,{id:t.default.View.ReferenceId,type:iJ})),t.first&&this.root.push(iZ(e,{id:t.first.View.ReferenceId,type:"first"})),t.even&&this.root.push(iZ(e,{id:t.even.View.ReferenceId,type:"even"}))}},i3=class extends ef{constructor(e){super("w:sectPrChange"),this.root.push(new se({author:e.author,date:e.date,id:e.id})),this.root.push(new i5(e))}},i4=class extends ef{constructor(){super("w:body"),ep(this,"sections",[])}addSection(e){let t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new i5(e))}prepForXml(e){return 1===this.sections.length&&(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 n5({}),r=new n6({});return r.push(e),t.addChildElement(r),t}},i9=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},i7=class extends ef{constructor(e){super("w:background"),this.root.push(new i9({color:void 0===e.color?void 0:rO(e.color),themeColor:e.themeColor,themeShade:void 0===e.themeShade?void 0:(e=>rC(e,1))(e.themeShade),themeTint:void 0===e.themeTint?void 0:(e=>rC(e,1))(e.themeTint)}))}},oe=class extends ef{constructor(e){super("w:document"),ep(this,"body",void 0),this.root.push(new iW(["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 i4,e.background&&this.root.push(new i7(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},ot=class{constructor(e){ep(this,"document",void 0),ep(this,"relationships",void 0),this.document=new oe(e),this.relationships=new n_}get View(){return this.document}get Relationships(){return this.relationships}},or=class extends ef{constructor(){super("w:continuationSeparator")}},os=class extends sf{constructor(){super({}),this.root.push(new or)}},on=class extends ef{constructor(){super("w:separator")}},oi=class extends sf{constructor(){super({}),this.root.push(new on)}},oo=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{id:"w:id",type:"w:type"})}},oa=class extends sf{constructor(){super({style:"EndnoteReference"}),this.root.push(new nD)}},ol=class extends ef{constructor(e){super("w:endnote"),this.root.push(new oo({id:e.id,type:e.type}));for(let t=0;tnew rV({attributes:{name:{key:"w:name",value:e},uri:{key:"w:uri",value:r},val:{key:"w:val",value:t}},name:"w:compatSetting"});var oY=class extends ef{constructor(e){super("w:compat"),e.version&&this.root.push(oV("compatibilityMode",e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new rM("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new rM("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new rM("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new rM("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new rM("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new rM("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new rM("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new rM("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new rM("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new rM("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new rM("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new rM("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new rM("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new rM("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new rM("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new rM("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new rM("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new rM("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new rM("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new rM("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new rM("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new rM("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new rM("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new rM("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new rM("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new rM("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new rM("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new rM("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new rM("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new rM("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new rM("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new rM("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new rM("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new rM("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new rM("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new rM("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new rM("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new rM("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new rM("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new rM("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new rM("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new rM("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new rM("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new rM("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new rM("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new rM("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new rM("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new rM("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new rM("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new rM("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new rM("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new rM("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new rM("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new rM("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new rM("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new rM("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new rM("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new rM("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new rM("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new rM("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new rM("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new rM("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new rM("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new rM("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new rM("w:cachedColBalance",e.cachedColumnBalance)),e.overrideTableStyleFontSizeAndJustification&&this.root.push(oV("overrideTableStyleFontSizeAndJustification",1)),e.enableOpenTypeFeatures&&this.root.push(oV("enableOpenTypeFeatures",1)),e.doNotFlipMirrorIndents&&this.root.push(oV("doNotFlipMirrorIndents",1))}},oz=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{Ignorable:"mc:Ignorable",m:"xmlns:m",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",v:"xmlns:v",w:"xmlns:w",w10:"xmlns:w10",w14:"xmlns:w14",w15:"xmlns:w15",wne:"xmlns:wne",wp:"xmlns:wp",wp14:"xmlns:wp14",wpc:"xmlns:wpc",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wps:"xmlns:wps"})}},o$=class extends ef{constructor(e){var t,r,s,n,i,o,a,l,h,u,c,p,d,m,f,w,g,v,y,b,x,E,T,k,A,S,R,_,I;super("w:settings"),this.root.push(new oz({Ignorable:"w14 w15 wp14",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",v:"urn:schemas-microsoft-com:vml",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w10:"urn:schemas-microsoft-com:office:word",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"})),void 0!==e.trackRevisions&&this.root.push(new rM("w:trackRevisions",e.trackRevisions)),void 0!==e.evenAndOddHeaders&&this.root.push(new rM("w:evenAndOddHeaders",e.evenAndOddHeaders)),void 0!==e.updateFields&&this.root.push(new rM("w:updateFields",e.updateFields)),this.root.push(new rK("w:defaultTabStop",null!=(t=e.defaultTabStop)?t:420)),(null==(r=e.hyphenation)?void 0:r.autoHyphenation)!==void 0&&this.root.push(new rM("w:autoHyphenation",e.hyphenation.autoHyphenation)),(null==(s=e.hyphenation)?void 0:s.hyphenationZone)!==void 0&&this.root.push(new rK("w:hyphenationZone",e.hyphenation.hyphenationZone)),(null==(n=e.hyphenation)?void 0:n.consecutiveHyphenLimit)!==void 0&&this.root.push(new rK("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),(null==(i=e.hyphenation)?void 0:i.doNotHyphenateCaps)!==void 0&&this.root.push(new rM("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new rW("w:characterSpacingControl",null!=(o=e.characterSpacingControl)?o:"compressPunctuation")),this.root.push(new oY({...e.compatibility,version:null!=(a=null!=(l=null==(h=e.compatibility)?void 0:h.version)?l:e.compatibilityModeVersion)?a:15,spaceForUnderline:null==(u=null==(c=e.compatibility)?void 0:c.spaceForUnderline)||u,balanceSingleByteDoubleByteWidth:null==(p=null==(d=e.compatibility)?void 0:d.balanceSingleByteDoubleByteWidth)||p,doNotLeaveBackslashAlone:null==(m=null==(f=e.compatibility)?void 0:f.doNotLeaveBackslashAlone)||m,underlineTrailingSpaces:null==(w=null==(g=e.compatibility)?void 0:g.underlineTrailingSpaces)||w,doNotExpandShiftReturn:null==(v=null==(y=e.compatibility)?void 0:y.doNotExpandShiftReturn)||v,adjustLineHeightInTable:null==(b=null==(x=e.compatibility)?void 0:x.adjustLineHeightInTable)||b,useFELayout:null==(E=null==(T=e.compatibility)?void 0:T.useFELayout)||E,overrideTableStyleFontSizeAndJustification:null==(k=null==(A=e.compatibility)?void 0:A.overrideTableStyleFontSizeAndJustification)||k,enableOpenTypeFeatures:null==(S=null==(R=e.compatibility)?void 0:R.enableOpenTypeFeatures)||S,doNotFlipMirrorIndents:null==(_=null==(I=e.compatibility)?void 0:I.doNotFlipMirrorIndents)||_}))}},oq=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{val:"w:val"})}},oX=class extends ef{constructor(e){super("w:name"),this.root.push(new oq({val:e}))}},oQ=class extends ef{constructor(e){super("w:uiPriority"),this.root.push(new oq({val:rI(e)}))}},oJ=class extends eg{constructor(...e){super(...e),ep(this,"xmlKeys",{customStyle:"w:customStyle",default:"w:default",styleId:"w:styleId",type:"w:type"})}},oZ=class extends ef{constructor(e,t){super("w:style"),this.root.push(new oJ(e)),t.name&&this.root.push(new oX(t.name)),t.basedOn&&this.root.push(new rW("w:basedOn",t.basedOn)),t.next&&this.root.push(new rW("w:next",t.next)),t.link&&this.root.push(new rW("w:link",t.link)),void 0!==t.uiPriority&&this.root.push(new oQ(t.uiPriority)),void 0!==t.semiHidden&&this.root.push(new rM("w:semiHidden",t.semiHidden)),void 0!==t.unhideWhenUsed&&this.root.push(new rM("w:unhideWhenUsed",t.unhideWhenUsed)),void 0!==t.quickFormat&&this.root.push(new rM("w:qFormat",t.quickFormat))}},o0=class extends oZ{constructor(e){super({styleId:e.id,type:"paragraph"},e),ep(this,"paragraphProperties",void 0),ep(this,"runProperties",void 0),this.paragraphProperties=new n6(e.paragraph),this.runProperties=new sc(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},o1=class extends oZ{constructor(e){super({styleId:e.id,type:"character"},{uiPriority:99,unhideWhenUsed:!0,...e}),ep(this,"runProperties",void 0),this.runProperties=new sc(e.run),this.root.push(this.runProperties)}},o2=class extends o0{constructor(e){super({basedOn:"Normal",next:"Normal",quickFormat:!0,...e})}},o6=class extends o2{constructor(e){super({id:"Title",name:"Title",...e})}},o8=class extends o2{constructor(e){super({id:"Heading1",name:"Heading 1",...e})}},o5=class extends o2{constructor(e){super({id:"Heading2",name:"Heading 2",...e})}},o3=class extends o2{constructor(e){super({id:"Heading3",name:"Heading 3",...e})}},o4=class extends o2{constructor(e){super({id:"Heading4",name:"Heading 4",...e})}},o9=class extends o2{constructor(e){super({id:"Heading5",name:"Heading 5",...e})}},o7=class extends o2{constructor(e){super({id:"Heading6",name:"Heading 6",...e})}},ae=class extends o2{constructor(e){super({id:"Strong",name:"Strong",...e})}},at=class extends o0{constructor(e){super({basedOn:"Normal",id:"ListParagraph",name:"List Paragraph",quickFormat:!0,...e})}},ar=class extends o0{constructor(e){super({basedOn:"Normal",id:"FootnoteText",link:"FootnoteTextChar",name:"footnote text",paragraph:{spacing:{after:0,line:240,lineRule:nM}},run:{size:20},semiHidden:!0,uiPriority:99,unhideWhenUsed:!0,...e})}},as=class extends o1{constructor(e){super({basedOn:"DefaultParagraphFont",id:"FootnoteReference",name:"footnote reference",run:{superScript:!0},semiHidden:!0,...e})}},an=class extends o1{constructor(e){super({basedOn:"DefaultParagraphFont",id:"FootnoteTextChar",link:"FootnoteText",name:"Footnote Text Char",run:{size:20},semiHidden:!0,...e})}},ai=class extends o0{constructor(e){super({basedOn:"Normal",id:"EndnoteText",link:"EndnoteTextChar",name:"endnote text",paragraph:{spacing:{after:0,line:240,lineRule:nM}},run:{size:20},semiHidden:!0,uiPriority:99,unhideWhenUsed:!0,...e})}},ao=class extends o1{constructor(e){super({basedOn:"DefaultParagraphFont",id:"EndnoteReference",name:"endnote reference",run:{superScript:!0},semiHidden:!0,...e})}},aa=class extends o1{constructor(e){super({basedOn:"DefaultParagraphFont",id:"EndnoteTextChar",link:"EndnoteText",name:"Endnote Text Char",run:{size:20},semiHidden:!0,...e})}},al=class extends o1{constructor(e){super({basedOn:"DefaultParagraphFont",id:"Hyperlink",name:"Hyperlink",run:{color:"0563C1",underline:{type:su}},...e})}},ah=class extends ef{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new o0(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new o1(t))}},au=class extends ef{constructor(e){super("w:pPrDefault"),this.root.push(new n6(e))}},ac=class extends ef{constructor(e){super("w:rPrDefault"),this.root.push(new sc(e))}},ap=class extends ef{constructor(e){super("w:docDefaults"),ep(this,"runPropertiesDefaults",void 0),ep(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new ac(e.run),this.paragraphPropertiesDefaults=new au(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},ad=class{newInstance(e){let t;for(let r of(0,rT.xml2js)(e,{compact:!1}).elements||[])"w:styles"===r.name&&(t=r);return void 0===t?{importedStyles:[],initialStyles:new rR({})}:{importedStyles:(t.elements||[]).map(e=>rk(e)),initialStyles:new rR(t.attributes)}}},am=class{newInstance(e={}){var t;let r=new iW(["mc","r","w","w14","w15"],"w14 w15");return{importedStyles:[new ap(null!=(t=e.document)?t:{}),new o6({run:{size:56},...e.title}),new o8(e.heading1||{}),new o5(e.heading2||{}),new o3(e.heading3||{}),new o4(e.heading4||{}),new o9(e.heading5||{}),new o7(e.heading6||{}),new ae({run:{bold:!0},...e.strong}),new at(e.listParagraph||{}),new al(e.hyperlink||{}),new as(e.footnoteReference||{}),new ar(e.footnoteText||{}),new an(e.footnoteTextChar||{}),new ao(e.endnoteReference||{}),new ai(e.endnoteText||{}),new aa(e.endnoteTextChar||{})],initialStyles:r}}},af=class{constructor(e){var t,r,s,n,i,o,a,l,h,u,c,p,d;if(ep(this,"currentRelationshipId",1),ep(this,"documentWrapper",void 0),ep(this,"headers",[]),ep(this,"footers",[]),ep(this,"coreProperties",void 0),ep(this,"numbering",void 0),ep(this,"media",void 0),ep(this,"fileRelationships",void 0),ep(this,"footnotesWrapper",void 0),ep(this,"endnotesWrapper",void 0),ep(this,"settings",void 0),ep(this,"contentTypes",void 0),ep(this,"customProperties",void 0),ep(this,"appProperties",void 0),ep(this,"styles",void 0),ep(this,"comments",void 0),ep(this,"fontWrapper",void 0),this.coreProperties=new iG({...e,creator:null!=(t=e.creator)?t:"Un-named",lastModifiedBy:null!=(r=e.lastModifiedBy)?r:"Un-named",revision:null!=(s=e.revision)?s:1}),this.numbering=new oj(e.numbering?e.numbering:{config:[]}),this.comments=new nL(null!=(n=e.comments)?n:{children:[]}),this.fileRelationships=new n_,this.customProperties=new iq(null!=(i=e.customProperties)?i:[]),this.appProperties=new iF,this.footnotesWrapper=new ox,this.endnotesWrapper=new oc,this.contentTypes=new iH,this.documentWrapper=new ot({background:e.background}),this.settings=new o$({compatibility:e.compatibility,compatibilityModeVersion:e.compatabilityModeVersion,defaultTabStop:e.defaultTabStop,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,characterSpacingControl:e.characterSpacingControl,hyphenation:{autoHyphenation:null==(o=e.hyphenation)?void 0:o.autoHyphenation,consecutiveHyphenLimit:null==(a=e.hyphenation)?void 0:a.consecutiveHyphenLimit,doNotHyphenateCaps:null==(l=e.hyphenation)?void 0:l.doNotHyphenateCaps,hyphenationZone:null==(h=e.hyphenation)?void 0:h.hyphenationZone},trackRevisions:null==(u=e.features)?void 0:u.trackRevisions,updateFields:null==(c=e.features)?void 0:c.updateFields}),this.media=new nk,void 0!==e.externalStyles){const t=new am().newInstance(null==(d=e.styles)?void 0:d.default),r=new ad().newInstance(e.externalStyles);this.styles=new ah({...r,importedStyles:[...t.importedStyles,...r.importedStyles]})}else e.styles?this.styles=new ah({...new am().newInstance(e.styles.default),...e.styles}):this.styles=new ah(new am().newInstance());for(const t of(this.addDefaultRelationships(),e.sections))this.addSection(t);if(e.footnotes)for(const t in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(t),e.footnotes[t].children);if(e.endnotes)for(const t in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(t),e.endnotes[t].children);this.fontWrapper=new n2(null!=(p=e.fonts)?p:[])}addSection({headers:e={},footers:t={},children:r,properties:s}){for(let n of(this.documentWrapper.View.Body.addSection({...s,footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,even:t.even?this.createFooter(t.even):void 0,first:t.first?this.createFooter(t.first):void 0},headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,even:e.even?this.createHeader(e.even):void 0,first:e.first?this.createHeader(e.first):void 0}}),r))this.documentWrapper.View.add(n)}createHeader(e){let t=new ok(this.media,this.currentRelationshipId++);for(let r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){let t=new om(this.media,this.currentRelationshipId++);for(let r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=iJ){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(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=iJ){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(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.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.addRelationship(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 Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}},aw=class extends ef{constructor(e={}){super("w:instrText"),ep(this,"properties",void 0),this.properties=e,this.root.push(new r8({space:r6}));let t="TOC";if(this.properties.captionLabel&&(t=`${t} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(t=`${t} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(t=`${t} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(t=`${t} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(t=`${t} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(t=`${t} \\h`),this.properties.tcFieldLevelRange&&(t=`${t} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(t=`${t} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(t=`${t} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(t=`${t} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(t=`${t} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length){const e=this.properties.stylesWithLevels.map(e=>`${e.styleName},${e.level}`).join(",");t=`${t} \\t "${e}"`}this.properties.useAppliedParagraphOutlineLevel&&(t=`${t} \\u`),this.properties.preserveTabInEntries&&(t=`${t} \\w`),this.properties.preserveNewLineInEntries&&(t=`${t} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(t=`${t} \\z`),this.root.push(t)}},ag=class extends ef{constructor(){super("w:sdtContent")}},av=class extends ef{constructor(e){super("w:sdtPr"),e&&this.root.push(new rW("w:alias",e))}},ay=class extends nj{constructor(e="Table of Contents",{contentChildren:t=[],cachedEntries:r=[],beginDirty:s=!0,...n}={}){super("w:sdt"),this.root.push(new av(e));const i=new ag,o=[new sf({children:[r0(s),new aw(n),r1()]})],a=[new sf({children:[r2()]})];if(void 0!==r&&r.length>0){const{stylesWithLevels:e}=n,t=r.map((t,s)=>{var i,l;let h=this.buildCachedContentParagraphChild(t,n),u=null!=(i=null==e||null==(l=e.find(e=>e.level===t.level))?void 0:l.styleName)?i:`TOC${t.level}`;return new n5({children:0===s?[...o,h]:s===r.length-1?[h,...a]:[h],style:u,tabStops:this.getTabStopsForLevel(t.level)})});let s=t;for(const e of(r.length<=1&&(s=[...t,new n5({children:a})]),s))i.addChildElement(e)}else{const e=new n5({children:o});for(const r of(i.addChildElement(e),t))i.addChildElement(r);const r=new n5({children:a});i.addChildElement(r)}this.root.push(i)}getTabStopsForLevel(e,t=9025){return[{position:t+1-(e-1)*240,type:"clear"},{leader:"dot",position:t,type:"right"}]}buildCachedContentRun(e,t){var r,s;return new sf({children:[new sm({text:e.title}),new nO,new sm({text:null!=(r=null==(s=e.page)?void 0:s.toString())?r:""})],style:(null==t?void 0:t.hyperlink)&&void 0!==e.href?"IndexLink":void 0})}buildCachedContentParagraphChild(e,t){let r=this.buildCachedContentRun(e,t);return(null==t?void 0:t.hyperlink)&&void 0!==e.href?new nz({anchor:e.href,children:[r]}):r}};rf(),eZ();let ab=(e,t)=>{let r=t.replace(/-/g,"");if(32!==r.length)throw Error(`Error: Cannot extract GUID from font filename: ${t}`);let s=r.replace(/(..)/g,"$1 ").trim().split(" ").map(e=>parseInt(e,16));s.reverse();let n=e.slice(0,32).map((e,t)=>e^s[t%s.length]),i=new Uint8Array(0+n.length+Math.max(0,e.length-32));return i.set(e.slice(0,0)),i.set(n,0),i.set(e.slice(32),0+n.length),i};var ax=el((e,t)=>{var r={"&":"&",'"':""","'":"'","<":"<",">":">"};t.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,function(e,t){return r[t]}):e}}),aE=eh(er(null!=(s=el((e,t)=>{tp();var r=ax(),s=(rf(),eu(rd)).Stream;function n(e,t,s){var i,o,a=Array((s=s||0)||0).join(t||""),l=e;if("object"==typeof e&&(i=Object.keys(e)[0],(l=e[i])&&l._elem))return l._elem.name=i,l._elem.icount=s,l._elem.indent=t,l._elem.indents=a,l._elem.interrupt=l,l._elem;var h=[],u=[];function c(e){Object.keys(e).forEach(function(t){h.push(t+'="'+r(e[t])+'"')})}switch(typeof l){case"object":if(null===l)break;l._attr&&c(l._attr),l._cdata&&u.push(("/g,"]]]]>")+"]]>"),l.forEach&&(o=!1,u.push(""),l.forEach(function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?c(e._attr):u.push(n(e,t,s+1)):(u.pop(),o=!0,u.push(r(e)))}),o||u.push(""));break;default:u.push(r(l))}return{name:i,interrupt:!1,attributes:h,content:u,icount:s,indents:a,indent:t}}function i(e,t,r){if("object"!=typeof t)return e(!1,t);var s=t.interrupt?1:t.content.length;function n(){for(;t.content.length;){var n=t.content.shift();if(void 0!==n){if(o(n))return;i(e,n)}}e(!1,(s>1?t.indents:"")+(t.name?"":"")+(t.indent&&!r?"\n":"")),r&&r()}function o(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=n,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(s?t.name?">":"":t.name?"/>":"")+(t.indent&&s>1?"\n":"")),!s)return e(!1,t.indent?"\n":"");o(t)||n()}t.exports=function(e,t){"object"!=typeof t&&(t={indent:t});var r,o,a=t.stream?new s:null,l="",h=!1,u=t.indent?!0===t.indent?" ":t.indent:"",c=!0;function p(e){c?P.nextTick(e):e()}function d(e,t){if(void 0!==t&&(l+=t),e&&!h&&(a=a||new s,h=!0),e&&h){var r=l;p(function(){a.emit("data",r)}),l=""}}function m(e,t){i(d,n(e,u,+!!u),t)}function f(){if(a){var e=l;p(function(){a.emit("data",e),a.emit("end"),a.readable=!1,a.emit("close")})}}return(p(function(){c=!1}),t.declaration&&(o={version:"1.0",encoding:(r=t.declaration).encoding||"UTF-8"},r.standalone&&(o.standalone=r.standalone),m({"?xml":{_attr:o}}),l=l.replace("/>","?>")),e&&e.forEach?e.forEach(function(t,r){var s;r+1===e.length&&(s=f),m(t,s)}):m(e,f),a)?(a.readable=!0,a):l},t.exports.element=t.exports.Element=function(){var e={_elem:n(Array.prototype.slice.call(arguments))};return e.push=function(e){if(!this.append)throw Error("not assigned to a parent!");var t=this,r=this._elem.indent;i(this.append,n(e,r,this._elem.icount+ +!!r),function(){t.append(!0)})},e.close=function(e){void 0!==e&&this.push(e),this.end&&this.end()},e}})())?et(ei(s)):{},"default",{value:s,enumerable:!0}),s),aT=class{format(e,t={stack:[]}){let r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}},ak=class{replace(e,t,r){let s=e;return t.forEach((e,t)=>{s=s.replace(RegExp(`{${e.fileName}}`,"g"),(r+t).toString())}),s}getMediaData(e,t){return t.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}},aA=class{replace(e,t){let r=e;for(let e of t)r=r.replace(RegExp(`{${e.reference}-${e.instance}}`,"g"),e.numId.toString());return r}},aS=class{constructor(){ep(this,"formatter",void 0),ep(this,"imageReplacer",void 0),ep(this,"numberingReplacer",void 0),this.formatter=new aT,this.imageReplacer=new ak,this.numberingReplacer=new aA}compile(e,t,r=[]){let s={},n=new Map,i=new Map;for(let[,r]of new Map(Object.entries(this.xmlifyFile(e,n,i,t))))if(Array.isArray(r))for(let e of r)s[e.path]=(0,Z.QI)(e.data);else s[r.path]=(0,Z.QI)(r.data);for(let e of r)s[e.path]=(0,Z.QI)(e.data);for(let t of e.Media.Array)s[`word/media/${t.fileName}`]=[(0,Z.Fo)(t.data),{level:0}],"svg"===t.type&&(s[`word/media/${t.fallback.fileName}`]=[(0,Z.Fo)(t.fallback.data),{level:0}]);for(let{data:t,name:r,fontKey:n}of e.FontTable.fontOptionsWithKey){let[e]=r.split(".");s[`word/fonts/${e}.odttf`]=ab(t,n)}return s}xmlifyFile(e,t,r,s){let n,i,o,a,l=e.Document.Relationships.RelationshipCount+1,h=(0,aE.default)(this.formatter.format(e.Document.View,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),u=e.Comments.Relationships.RelationshipCount+1,c=(0,aE.default)(this.formatter.format(e.Comments,{file:e,stack:[],viewWrapper:{Relationships:e.Comments.Relationships,View:e.Comments}}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),p=e.FootNotes.Relationships.RelationshipCount+1,d=(0,aE.default)(this.formatter.format(e.FootNotes.View,{file:e,stack:[],viewWrapper:e.FootNotes}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),m=this.imageReplacer.getMediaData(h,e.Media),f=this.imageReplacer.getMediaData(c,e.Media),w=this.imageReplacer.getMediaData(d,e.Media);return{AppProperties:{data:(0,aE.default)(this.formatter.format(e.AppProperties,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),path:"docProps/app.xml"},Comments:{data:(n=this.imageReplacer.replace(c,f,u),this.numberingReplacer.replace(n,e.Numbering.ConcreteNumbering)),path:"word/comments.xml"},CommentsRelationships:{data:(f.forEach((t,r)=>{e.Comments.Relationships.addRelationship(u+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),(0,aE.default)(this.formatter.format(e.Comments.Relationships,{file:e,stack:[],viewWrapper:{Relationships:e.Comments.Relationships,View:e.Comments}}),{declaration:{encoding:"UTF-8"},indent:s})),path:"word/_rels/comments.xml.rels"},ContentTypes:{data:(0,aE.default)(this.formatter.format(e.ContentTypes,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8"},indent:s}),path:"[Content_Types].xml"},CustomProperties:{data:(0,aE.default)(this.formatter.format(e.CustomProperties,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),path:"docProps/custom.xml"},Document:{data:(i=this.imageReplacer.replace(h,m,l),this.numberingReplacer.replace(i,e.Numbering.ConcreteNumbering)),path:"word/document.xml"},Endnotes:{data:(0,aE.default)(this.formatter.format(e.Endnotes.View,{file:e,stack:[],viewWrapper:e.Endnotes}),{declaration:{encoding:"UTF-8"},indent:s}),path:"word/endnotes.xml"},EndnotesRelationships:{data:(0,aE.default)(this.formatter.format(e.Endnotes.Relationships,{file:e,stack:[],viewWrapper:e.Endnotes}),{declaration:{encoding:"UTF-8"},indent:s}),path:"word/_rels/endnotes.xml.rels"},FileRelationships:{data:(0,aE.default)(this.formatter.format(e.FileRelationships,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8"},indent:s}),path:"_rels/.rels"},FontTable:{data:(0,aE.default)(this.formatter.format(e.FontTable.View,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),path:"word/fontTable.xml"},FontTableRelationships:{data:(0,aE.default)(this.formatter.format(e.FontTable.Relationships,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8"},indent:s}),path:"word/_rels/fontTable.xml.rels"},FootNotes:{data:(o=this.imageReplacer.replace(d,w,p),this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)),path:"word/footnotes.xml"},FootNotesRelationships:{data:(w.forEach((t,r)=>{e.FootNotes.Relationships.addRelationship(p+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),(0,aE.default)(this.formatter.format(e.FootNotes.Relationships,{file:e,stack:[],viewWrapper:e.FootNotes}),{declaration:{encoding:"UTF-8"},indent:s})),path:"word/_rels/footnotes.xml.rels"},FooterRelationships:e.Footers.map((t,n)=>{let i=(0,aE.default)(this.formatter.format(t.View,{file:e,stack:[],viewWrapper:t}),{declaration:{encoding:"UTF-8"},indent:s});return r.set(n,i),this.imageReplacer.getMediaData(i,e.Media).forEach((e,r)=>{t.Relationships.addRelationship(r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),{data:(0,aE.default)(this.formatter.format(t.Relationships,{file:e,stack:[],viewWrapper:t}),{declaration:{encoding:"UTF-8"},indent:s}),path:`word/_rels/footer${n+1}.xml.rels`}}),Footers:e.Footers.map((t,s)=>{let n=r.get(s),i=this.imageReplacer.getMediaData(n,e.Media),o=this.imageReplacer.replace(n,i,0);return{data:this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),HeaderRelationships:e.Headers.map((r,n)=>{let i=(0,aE.default)(this.formatter.format(r.View,{file:e,stack:[],viewWrapper:r}),{declaration:{encoding:"UTF-8"},indent:s});return t.set(n,i),this.imageReplacer.getMediaData(i,e.Media).forEach((e,t)=>{r.Relationships.addRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),{data:(0,aE.default)(this.formatter.format(r.Relationships,{file:e,stack:[],viewWrapper:r}),{declaration:{encoding:"UTF-8"},indent:s}),path:`word/_rels/header${n+1}.xml.rels`}}),Headers:e.Headers.map((r,s)=>{let n=t.get(s),i=this.imageReplacer.getMediaData(n,e.Media),o=this.imageReplacer.replace(n,i,0);return{data:this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Numbering:{data:(0,aE.default)(this.formatter.format(e.Numbering,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),path:"word/numbering.xml"},Properties:{data:(0,aE.default)(this.formatter.format(e.CoreProperties,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),path:"docProps/core.xml"},Relationships:{data:(m.forEach((t,r)=>{e.Document.Relationships.addRelationship(l+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),(0,aE.default)(this.formatter.format(e.Document.Relationships,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8"},indent:s})),path:"word/_rels/document.xml.rels"},Settings:{data:(0,aE.default)(this.formatter.format(e.Settings,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),path:"word/settings.xml"},Styles:{data:(a=(0,aE.default)(this.formatter.format(e.Styles,{file:e,stack:[],viewWrapper:e.Document}),{declaration:{encoding:"UTF-8",standalone:"yes"},indent:s}),this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)),path:"word/styles.xml"}}}};let aR=e=>!0===e?" ":!1===e?void 0:e;var a_=class e{static async pack(e,t,r,s=[]){var n=(0,ee.L)(this.compiler.compile(e,aR(r),s),{level:6});switch(t){case"nodebuffer":return eR.from(n);case"blob":return new Blob([n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});case"arraybuffer":return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength);case"uint8array":default:return n;case"base64":return btoa((0,ee.he)(n,!0));case"string":case"text":case"binarystring":return(0,ee.he)(n,!0);case"array":return[...n]}}static toString(t,r,s=[]){return e.pack(t,"string",r,s)}static toBuffer(t,r,s=[]){return e.pack(t,"nodebuffer",r,s)}static toBase64String(t,r,s=[]){return e.pack(t,"base64",r,s)}static toBlob(t,r,s=[]){return e.pack(t,"blob",r,s)}static toArrayBuffer(t,r,s=[]){return e.pack(t,"arraybuffer",r,s)}static toStream(e,t,r=[]){let s=new tW({read(){}});try{let i=this.compiler.compile(e,aR(t),r),o=new ee.qQ((e,t,r)=>{e?s.destroy(e):(s.destroyed||s.push(t),r&&s.push(null))});for(let[e,t]of Object.entries(i)){var n;let r=Array.isArray(t)?t[0]:t,s=Array.isArray(t)&&null!=(n=t[1].level)?n:6,i=0===s?new ee.uZ(e):new ee.D8(e,{level:s});o.add(i),i.push(r,!0)}o.end()}catch(e){s.destroy(e instanceof Error?e:Error(String(e)))}return s}};ep(a_,"compiler",new aS),new aT,new aT,new ak,new Uint8Array([255,254]),new Uint8Array([254,255])}}]);