(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[31],{Sfth:function(e,t,r){var n;"undefined"!==typeof self&&self,n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=140)}([function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(141),t),o(r(142),t),o(r(50),t),o(r(143),t),o(r(159),t),o(r(160),t),o(r(24),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(48),t),o(r(219),t),o(r(21),t),o(r(7),t),o(r(36),t),o(r(247),t),o(r(278),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(107),t),o(r(108),t),o(r(109),t),o(r(110),t),o(r(111),t),o(r(255),t),o(r(112),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueId=t.uniqueNumericId=t.convertInchesToTwip=t.convertMillimetersToTwip=void 0;const n=r(168);let o=0;t.convertMillimetersToTwip=e=>Math.floor(e/25.4*72*20),t.convertInchesToTwip=e=>Math.floor(72*e*20),t.uniqueNumericId=()=>o++,t.uniqueId=()=>n.nanoid().toLowerCase()},function(e,t,r){"use strict";(function(e){var n=r(145),o=r(146),s=r(52);function i(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,o){var s,i=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,a/=2,c/=2,r/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var l=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){for(var h=!0,p=0;po&&(n=o):n=o;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var i=0;i>8,o=r%256,s.push(o),s.push(n);return s}(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o239?4:u>223?3:u>191?2:1;if(o+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:128===(192&(s=e[o+1]))&&(c=(31&u)<<6|63&s)>127&&(l=c);break;case 3:s=e[o+1],i=e[o+2],128===(192&s)&&128===(192&i)&&(c=(15&u)<<12|(63&s)<<6|63&i)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:s=e[o+1],i=e[o+2],a=e[o+3],128===(192&s)&&128===(192&i)&&128===(192&a)&&(c=(15&u)<<18|(63&s)<<12|(63&i)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;no)&&(r=o);for(var s="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,o,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-r,2);o>>8*(n?o:1-o)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-r,4);o>>8*(n?o:3-o)&255}function D(e,t,r,n,o,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,s){return s||D(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,s){return s||D(e,0,r,8),o.write(e,t,r,n,52,8),r+8}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=i(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"===typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,s=Math.min(r,n);o0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),a=Math.min(s,i),u=this.slice(n,o),l=e.slice(t,r),h=0;ho)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return x(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||k(e,t,this.length);for(var n=this[e],o=1,s=0;++s=(o*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||k(e,t,this.length);for(var n=t,o=1,s=this[e+--n];n>0&&(o*=256);)s+=this[e+--n]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+o]=e/s&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var s=0,i=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var s=r-1,i=1,a=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/i>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&s.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function X(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(t,r(5))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(17),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=h;var s=r(14);s.inherits=r(8);var i=r(54),a=r(28);s.inherits(h,i);for(var c=o(a.prototype),u=0;u1)for(var r=1;r0&&i.length>o&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,a=c,console&&console.warn&&console.warn(a)}return e}function h(){for(var e=[],t=0;t0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)s(c,this,t);else{var u=c.length,l=m(c,u);for(r=0;r=0;s--)if(r[s]===t||r[s].listener===t){i=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(t=e.exports=r(54)).Stream=t,t.Readable=t,t.Writable=r(28),t.Duplex=r(6),t.Transform=r(58),t.PassThrough=r(152)},function(e,t,r){"use strict";(function(t,n,o){var s=r(17);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=w;var a,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:s.nextTick;w.WritableState=y;var u=r(14);u.inherits=r(8);var l,h={deprecate:r(151)},p=r(55),d=r(18).Buffer,f=o.Uint8Array||function(){},m=r(56);function g(){}function y(e,t){a=a||r(6),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(s.nextTick(o,n),s.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),E(e,t))}(e,r,n,t,o);else{var i=x(r);i||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?c(v,e,r,i,o):v(e,r,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function w(e){if(a=a||r(6),!l.call(w,this)&&!(this instanceof a))return new w(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),p.call(this)}function b(e,t,r,n,o,s,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,s,t.onwrite),t.sync=!1}function v(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),E(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,b(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,h=r.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var r=x(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(T,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(w,p),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===w&&e&&e._writableState instanceof y}})):l=function(e){return e instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,a=!o.objectMode&&(n=e,d.isBuffer(n)||n instanceof f);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof r&&(r=g),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),s.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var o=!0,i=!1;return null===r?i=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),s.nextTick(n,i),o=!1),o}(this,o,e,r))&&(o.pendingcb++,i=function(e,t,r,n,o,s){if(!r){var i=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,r)),t}(t,n,o);n!==i&&(r=!0,o="buffer",n=i)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,E(e,t),r&&(t.finished?s.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=m.destroy,w.prototype._undestroy=m.undestroy,w.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(13),r(57).setImmediate,r(5))},function(e,t,r){"use strict";var n=r(18).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=h,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function i(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(e.lastNeed=o-1),o):--n=0?(o>0&&(e.lastNeed=o-2),o):--n=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){var n=r(31).isArray;e.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||n(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}}},function(e,t){e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordsUnderline=t.WavyHeavyUnderline=t.WavyDoubleUnderline=t.WaveUnderline=t.ThickUnderline=t.SingleUnderline=t.DoubleUnderline=t.DottedHeavyUnderline=t.DottedUnderline=t.DotDotDashUnderline=t.DotDashUnderline=t.DashLongHeavyUnderline=t.DashLongUnderline=t.DashDotHeavyUnderline=t.DashDotDotHeavyUnderline=t.DashUnderline=t.Underline=t.BaseUnderline=t.UnderlineType=void 0;const n=r(0);var o;!function(e){e.SINGLE="single",e.WORDS="words",e.DOUBLE="double",e.THICK="thick",e.DOTTED="dotted",e.DOTTEDHEAVY="dottedHeavy",e.DASH="dash",e.DASHEDHEAVY="dashedHeavy",e.DASHLONG="dashLong",e.DASHLONGHEAVY="dashLongHeavy",e.DOTDASH="dotDash",e.DASHDOTHEAVY="dashDotHeavy",e.DOTDOTDASH="dotDotDash",e.DASHDOTDOTHEAVY="dashDotDotHeavy",e.WAVE="wave",e.WAVYHEAVY="wavyHeavy",e.WAVYDOUBLE="wavyDouble"}(o=t.UnderlineType||(t.UnderlineType={}));class s extends n.XmlComponent{constructor(e,t){super("w:u"),this.root.push(new n.Attributes({val:e,color:t}))}}t.BaseUnderline=s,t.Underline=class extends s{constructor(e=o.SINGLE,t){super(e,t)}},t.DashUnderline=class extends s{constructor(){super("dash")}},t.DashDotDotHeavyUnderline=class extends s{constructor(){super("dashDotDotHeavy")}},t.DashDotHeavyUnderline=class extends s{constructor(){super("dashDotHeavy")}},t.DashLongUnderline=class extends s{constructor(){super("dashLong")}},t.DashLongHeavyUnderline=class extends s{constructor(){super("dashLongHeavy")}},t.DotDashUnderline=class extends s{constructor(){super("dotDash")}},t.DotDotDashUnderline=class extends s{constructor(){super("dotDotDash")}},t.DottedUnderline=class extends s{constructor(){super("dotted")}},t.DottedHeavyUnderline=class extends s{constructor(){super("dottedHeavy")}},t.DoubleUnderline=class extends s{constructor(){super("double")}},t.SingleUnderline=class extends s{constructor(){super("single")}},t.ThickUnderline=class extends s{constructor(){super("thick")}},t.WaveUnderline=class extends s{constructor(){super("wave")}},t.WavyDoubleUnderline=class extends s{constructor(){super("wavyDouble")}},t.WavyHeavyUnderline=class extends s{constructor(){super("wavyHeavy")}},t.WordsUnderline=class extends s{constructor(){super("words")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerticalPositionRelativeFrom=t.HorizontalPositionRelativeFrom=void 0,function(e){e.CHARACTER="character",e.COLUMN="column",e.INSIDE_MARGIN="insideMargin",e.LEFT_MARGIN="leftMargin",e.MARGIN="margin",e.OUTSIDE_MARGIN="outsideMargin",e.PAGE="page",e.RIGHT_MARGIN="rightMargin"}(t.HorizontalPositionRelativeFrom||(t.HorizontalPositionRelativeFrom={})),function(e){e.BOTTOM_MARGIN="bottomMargin",e.INSIDE_MARGIN="insideMargin",e.LINE="line",e.MARGIN="margin",e.OUTSIDE_MARGIN="outsideMargin",e.PAGE="page",e.PARAGRAPH="paragraph",e.TOP_MARGIN="topMargin"}(t.VerticalPositionRelativeFrom||(t.VerticalPositionRelativeFrom={}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(203),t),o(r(204),t),o(r(205),t),o(r(206),t),o(r(207),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Relationship=t.TargetModeType=void 0;const n=r(0),o=r(220);!function(e){e.EXTERNAL="External"}(t.TargetModeType||(t.TargetModeType={}));class s extends n.XmlComponent{constructor(e,t,r,n){super("Relationship"),this.root.push(new o.RelationshipAttributes({id:e,type:t,target:r,targetMode:n}))}}t.Relationship=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(221),t),o(r(223),t),o(r(225),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageSizeAttributes=t.PageOrientation=void 0;const n=r(0);!function(e){e.PORTRAIT="portrait",e.LANDSCAPE="landscape"}(t.PageOrientation||(t.PageOrientation={}));class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={width:"w:w",height:"w:h",orientation:"w:orient"}}}t.PageSizeAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellWidth=t.WidthType=t.TDirection=t.TextDirection=t.VAlign=t.VerticalAlign=t.VerticalMerge=t.VerticalMergeType=t.GridSpan=t.TableCellBorders=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={style:"w:val",size:"w:sz",color:"w:color"}}}class s extends n.XmlComponent{setProperties(e,t,r){const n=new o({style:e,size:t,color:r});return this.root.push(n),this}}class i extends n.IgnoreIfEmptyXmlComponent{constructor(){super("w:tcBorders")}addTopBorder(e,t,r){const n=new s("w:top");return n.setProperties(e,t,r),this.root.push(n),this}addStartBorder(e,t,r){const n=new s("w:start");return n.setProperties(e,t,r),this.root.push(n),this}addBottomBorder(e,t,r){const n=new s("w:bottom");return n.setProperties(e,t,r),this.root.push(n),this}addEndBorder(e,t,r){const n=new s("w:end");return n.setProperties(e,t,r),this.root.push(n),this}addLeftBorder(e,t,r){const n=new s("w:left");return n.setProperties(e,t,r),this.root.push(n),this}addRightBorder(e,t,r){const n=new s("w:right");return n.setProperties(e,t,r),this.root.push(n),this}}t.TableCellBorders=i;class a extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class c extends n.XmlComponent{constructor(e){super("w:gridSpan"),this.root.push(new a({val:e}))}}t.GridSpan=c,function(e){e.CONTINUE="continue",e.RESTART="restart"}(t.VerticalMergeType||(t.VerticalMergeType={}));class u extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class l extends n.XmlComponent{constructor(e){super("w:vMerge"),this.root.push(new u({val:e}))}}t.VerticalMerge=l,function(e){e.BOTTOM="bottom",e.CENTER="center",e.TOP="top"}(t.VerticalAlign||(t.VerticalAlign={}));class h extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class p extends n.XmlComponent{constructor(e){super("w:vAlign"),this.root.push(new h({val:e}))}}t.VAlign=p,function(e){e.BOTTOM_TO_TOP_LEFT_TO_RIGHT="btLr",e.LEFT_TO_RIGHT_TOP_TO_BOTTOM="lrTb",e.TOP_TO_BOTTOM_RIGHT_TO_LEFT="tbRl"}(t.TextDirection||(t.TextDirection={}));class d extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class f extends n.XmlComponent{constructor(e){super("w:textDirection"),this.root.push(new d({val:e}))}}t.TDirection=f,function(e){e.AUTO="auto",e.DXA="dxa",e.NIL="nil",e.PERCENTAGE="pct"}(t.WidthType||(t.WidthType={}));class m extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={width:"w:w",type:"w:type"}}}class g extends n.XmlComponent{constructor(e,t){super("w:tcW"),this.root.push(new m({width:e,type:t}))}}t.TableCellWidth=g},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(284),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Style=void 0;const n=r(0),o=r(41);class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"}}}class i extends n.XmlComponent{constructor(e,t){super("w:style"),this.root.push(new s(e)),t&&this.root.push(new o.Name(t))}}t.Style=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemiHidden=t.RsId=t.TableProperties=t.QuickFormat=t.UnhideWhenUsed=t.UiPriority=t.Link=t.Next=t.BasedOn=t.Name=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class s extends n.XmlComponent{constructor(e){super("w:name"),this.root.push(new o({val:e}))}}t.Name=s;class i extends n.XmlComponent{constructor(e){super("w:basedOn"),this.root.push(new o({val:e}))}}t.BasedOn=i;class a extends n.XmlComponent{constructor(e){super("w:next"),this.root.push(new o({val:e}))}}t.Next=a;class c extends n.XmlComponent{constructor(e){super("w:link"),this.root.push(new o({val:e}))}}t.Link=c;class u extends n.XmlComponent{constructor(e){super("w:uiPriority"),this.root.push(new o({val:e}))}}t.UiPriority=u;class l extends n.XmlComponent{constructor(){super("w:unhideWhenUsed")}}t.UnhideWhenUsed=l;class h extends n.XmlComponent{constructor(){super("w:qFormat")}}t.QuickFormat=h;class p extends n.XmlComponent{}t.TableProperties=p;class d extends n.XmlComponent{}t.RsId=d;class f extends n.XmlComponent{constructor(){super("w:semiHidden")}}t.SemiHidden=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleForParagraph=void 0;const n=r(1),o=r(10),s=r(41),i=r(40);class a extends i.Style{constructor(e){super({type:"paragraph",styleId:e.id},e.name),this.paragraphProperties=new n.ParagraphProperties(e.paragraph),this.runProperties=new o.RunProperties(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e.basedOn&&this.root.push(new s.BasedOn(e.basedOn)),e.next&&this.root.push(new s.Next(e.next)),e.quickFormat&&this.root.push(new s.QuickFormat),e.link&&this.root.push(new s.Link(e.link)),e.semiHidden&&this.root.push(new s.SemiHidden),e.uiPriority&&this.root.push(new s.UiPriority(e.uiPriority)),e.unhideWhenUsed&&this.root.push(new s.UnhideWhenUsed)}}t.StyleForParagraph=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleForCharacter=void 0;const n=r(10),o=r(41),s=r(40);class i extends s.Style{constructor(e){super({type:"character",styleId:e.id},e.name),this.runProperties=new n.RunProperties(e.run),this.root.push(this.runProperties),this.root.push(new o.UiPriority(99)),this.root.push(new o.UnhideWhenUsed),e.basedOn&&this.root.push(new o.BasedOn(e.basedOn)),e.link&&this.root.push(new o.Link(e.link)),e.semiHidden&&this.root.push(new o.SemiHidden)}}t.StyleForCharacter=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FooterWrapper=void 0;const n=r(315),o=r(15);t.FooterWrapper=class{constructor(e,t,r){this.media=e,this.footer=new n.Footer(t,r),this.relationships=new o.Relationships}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderWrapper=void 0;const n=r(327),o=r(15);t.HeaderWrapper=class{constructor(e,t,r){this.media=e,this.header=new n.Header(t,r),this.relationships=new o.Relationships}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(329),t),o(r(330),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LevelForOverride=t.Level=t.LevelBase=t.LevelSuffix=t.LevelFormat=void 0;const n=r(0),o=r(48),s=r(21),i=r(10);!function(e){e.BULLET="bullet",e.CARDINAL_TEXT="cardinalText",e.CHICAGO="chicago",e.DECIMAL="decimal",e.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",e.DECIMAL_ENCLOSED_FULLSTOP="decimalEnclosedFullstop",e.DECIMAL_ENCLOSED_PARENTHESES="decimalEnclosedParen",e.DECIMAL_ZERO="decimalZero",e.LOWER_LETTER="lowerLetter",e.LOWER_ROMAN="lowerRoman",e.NONE="none",e.ORDINAL_TEXT="ordinalText",e.UPPER_LETTER="upperLetter",e.UPPER_ROMAN="upperRoman"}(t.LevelFormat||(t.LevelFormat={}));class a extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl",tentative:"w15:tentative"}}}class c extends n.XmlComponent{constructor(e){super("w:start"),this.root.push(new n.Attributes({val:e}))}}class u extends n.XmlComponent{constructor(e){super("w:numFmt"),this.root.push(new n.Attributes({val:e}))}}class l extends n.XmlComponent{constructor(e){super("w:lvlText"),this.root.push(new n.Attributes({val:e}))}}class h extends n.XmlComponent{constructor(e){super("w:lvlJc"),this.root.push(new n.Attributes({val:e}))}}!function(e){e.NOTHING="nothing",e.SPACE="space",e.TAB="tab"}(t.LevelSuffix||(t.LevelSuffix={}));class p extends n.XmlComponent{constructor(e){super("w:suff"),this.root.push(new n.Attributes({val:e}))}}class d extends n.XmlComponent{constructor({level:e,format:t,text:r,alignment:n=o.AlignmentType.START,start:d=1,style:f,suffix:m}){super("w:lvl"),this.root.push(new a({ilvl:e,tentative:1})),this.root.push(new c(d)),this.root.push(new h(n)),t&&this.root.push(new u(t)),r&&this.root.push(new l(r)),this.paragraphProperties=new s.ParagraphProperties(f&&f.paragraph),this.runProperties=new i.RunProperties(f&&f.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),m&&this.root.push(new p(m))}}t.LevelBase=d,t.Level=class extends d{constructor(e){super(e)}},t.LevelForOverride=class extends d{}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(49),t),o(r(60),t),o(r(61),t),o(r(62),t),o(r(63),t),o(r(80),t),o(r(81),t),o(r(82),t),o(r(83),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alignment=t.AlignmentAttributes=t.AlignmentType=void 0;const n=r(0);!function(e){e.START="start",e.END="end",e.CENTER="center",e.BOTH="both",e.JUSTIFIED="both",e.DISTRIBUTE="distribute",e.LEFT="left",e.RIGHT="right"}(t.AlignmentType||(t.AlignmentType={}));class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}t.AlignmentAttributes=o;class s extends n.XmlComponent{constructor(e){super("w:jc"),this.root.push(new o({val:e}))}}t.Alignment=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XmlAttributeComponent=void 0;const n=r(24);class o extends n.BaseXmlComponent{constructor(e){super("_attr"),this.root=e}prepForXml(e){const t={};return Object.keys(this.root).forEach(e=>{const r=this.root[e];if(void 0!==r){const n=this.xmlKeys&&this.xmlKeys[e]||e;t[n]=r}}),{_attr:t}}set(e){this.root=e}}t.XmlAttributeComponent=o},function(e,t,r){var n,o,s=r(144),i=r(30),a=r(31).isArray;function c(e){var t=Number(e);if(!isNaN(t))return t;var r=e.toLowerCase();return"true"===r||"false"!==r&&e}function u(e,t){var r;if(n.compact){if(!o[n[e+"Key"]]&&(a(n.alwaysArray)?-1!==n.alwaysArray.indexOf(n[e+"Key"]):n.alwaysArray)&&(o[n[e+"Key"]]=[]),o[n[e+"Key"]]&&!a(o[n[e+"Key"]])&&(o[n[e+"Key"]]=[o[n[e+"Key"]]]),e+"Fn"in n&&"string"===typeof t&&(t=n[e+"Fn"](t,o)),"instruction"===e&&("instructionFn"in n||"instructionNameFn"in n))for(r in t)if(t.hasOwnProperty(r))if("instructionFn"in n)t[r]=n.instructionFn(t[r],r,o);else{var s=t[r];delete t[r],t[n.instructionNameFn(r,s,o)]=s}a(o[n[e+"Key"]])?o[n[e+"Key"]].push(t):o[n[e+"Key"]]=t}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var i={};if(i[n.typeKey]=e,"instruction"===e){for(r in t)if(t.hasOwnProperty(r))break;i[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(r,t,o):r,n.instructionHasAttributes?(i[n.attributesKey]=t[r][n.attributesKey],"instructionFn"in n&&(i[n.attributesKey]=n.instructionFn(i[n.attributesKey],r,o))):("instructionFn"in n&&(t[r]=n.instructionFn(t[r],r,o)),i[n.instructionKey]=t[r])}else e+"Fn"in n&&(t=n[e+"Fn"](t,o)),i[n[e+"Key"]]=t;n.addParent&&(i[n.parentKey]=o),o[n.elementsKey].push(i)}}function l(e){var t;if("attributesFn"in n&&e&&(e=n.attributesFn(e,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(n.trim&&(e[t]=e[t].trim()),n.nativeTypeAttributes&&(e[t]=c(e[t])),"attributeValueFn"in n&&(e[t]=n.attributeValueFn(e[t],t,o)),"attributeNameFn"in n)){var r=e[t];delete e[t],e[n.attributeNameFn(t,e[t],o)]=r}return e}function h(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||n.instructionHasAttributes)){for(var r,s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(r=s.exec(e.body));)t[r[1]]=r[2]||r[3]||r[4];t=l(t)}if("xml"===e.name.toLowerCase()){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(t).length&&(o[n.declarationKey][n.attributesKey]=t),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(e.body=e.body.trim());var i={};n.instructionHasAttributes&&Object.keys(t).length?(i[e.name]={},i[e.name][n.attributesKey]=t):i[e.name]=e.body,u("instruction",i)}}function p(e,t){var r;if("object"===typeof e&&(t=e.attributes,e=e.name),t=l(t),"elementNameFn"in n&&(e=n.elementNameFn(e,o)),n.compact){var s;if(r={},!n.ignoreAttributes&&t&&Object.keys(t).length)for(s in r[n.attributesKey]={},t)t.hasOwnProperty(s)&&(r[n.attributesKey][s]=t[s]);!(e in o)&&(a(n.alwaysArray)?-1!==n.alwaysArray.indexOf(e):n.alwaysArray)&&(o[e]=[]),o[e]&&!a(o[e])&&(o[e]=[o[e]]),a(o[e])?o[e].push(r):o[e]=r}else o[n.elementsKey]||(o[n.elementsKey]=[]),(r={})[n.typeKey]="element",r[n.nameKey]=e,!n.ignoreAttributes&&t&&Object.keys(t).length&&(r[n.attributesKey]=t),n.alwaysChildren&&(r[n.elementsKey]=[]),o[n.elementsKey].push(r);r[n.parentKey]=o,o=r}function d(e){n.ignoreText||(e.trim()||n.captureSpacesBetweenElements)&&(n.trim&&(e=e.trim()),n.nativeType&&(e=c(e)),n.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),u("text",e))}function f(e){n.ignoreComment||(n.trim&&(e=e.trim()),u("comment",e))}function m(e){var t=o[n.parentKey];n.addParent||delete o[n.parentKey],o=t}function g(e){n.ignoreCdata||(n.trim&&(e=e.trim()),u("cdata",e))}function y(e){n.ignoreDoctype||(e=e.replace(/^ /,""),n.trim&&(e=e.trim()),u("doctype",e))}function w(e){e.note=e}e.exports=function(e,t){var r=s.parser(!0,{}),a={};if(o=a,n=function(e){return n=i.copyOptions(e),i.ensureFlagExists("ignoreDeclaration",n),i.ensureFlagExists("ignoreInstruction",n),i.ensureFlagExists("ignoreAttributes",n),i.ensureFlagExists("ignoreText",n),i.ensureFlagExists("ignoreComment",n),i.ensureFlagExists("ignoreCdata",n),i.ensureFlagExists("ignoreDoctype",n),i.ensureFlagExists("compact",n),i.ensureFlagExists("alwaysChildren",n),i.ensureFlagExists("addParent",n),i.ensureFlagExists("trim",n),i.ensureFlagExists("nativeType",n),i.ensureFlagExists("nativeTypeAttributes",n),i.ensureFlagExists("sanitize",n),i.ensureFlagExists("instructionHasAttributes",n),i.ensureFlagExists("captureSpacesBetweenElements",n),i.ensureAlwaysArrayExists(n),i.ensureKeyExists("declaration",n),i.ensureKeyExists("instruction",n),i.ensureKeyExists("attributes",n),i.ensureKeyExists("text",n),i.ensureKeyExists("comment",n),i.ensureKeyExists("cdata",n),i.ensureKeyExists("doctype",n),i.ensureKeyExists("type",n),i.ensureKeyExists("name",n),i.ensureKeyExists("elements",n),i.ensureKeyExists("parent",n),i.checkFnExists("doctype",n),i.checkFnExists("instruction",n),i.checkFnExists("cdata",n),i.checkFnExists("comment",n),i.checkFnExists("text",n),i.checkFnExists("instructionName",n),i.checkFnExists("elementName",n),i.checkFnExists("attributeName",n),i.checkFnExists("attributeValue",n),i.checkFnExists("attributes",n),n}(t),r.opt={strictEntities:!0},r.onopentag=p,r.ontext=d,r.oncomment=f,r.onclosetag=m,r.onerror=w,r.oncdata=g,r.ondoctype=y,r.onprocessinginstruction=h,r.write(e).close(),a[n.elementsKey]){var c=a[n.elementsKey];delete a[n.elementsKey],a[n.elementsKey]=c,delete a.text}return a}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){e.exports=o;var n=r(26).EventEmitter;function o(){n.call(this)}r(8)(o,n),o.Readable=r(27),o.Writable=r(153),o.Duplex=r(154),o.Transform=r(155),o.PassThrough=r(156),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",s),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",c));var i=!1;function a(){i||(i=!0,e.end())}function c(){i||(i=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",s),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},function(e,t,r){"use strict";(function(t,n){var o=r(17);e.exports=b;var s,i=r(52);b.ReadableState=w,r(26).EventEmitter;var a=function(e,t){return e.listeners(t).length},c=r(55),u=r(18).Buffer,l=t.Uint8Array||function(){},h=r(14);h.inherits=r(8);var p=r(147),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var f,m=r(148),g=r(56);h.inherits(b,c);var y=["error","close","destroy","pause","resume"];function w(e,t){e=e||{};var n=t instanceof(s=s||r(6));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(29).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function b(e){if(s=s||r(6),!(this instanceof b))return new b(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function v(e,t,r,n,o){var s,i=e._readableState;return null===t?(i.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,T(e)}}(e,i)):(o||(s=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof l||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(i,t)),s?e.emit("error",s):i.objectMode||t&&t.length>0?("string"===typeof t||i.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?i.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,i,t,!0):i.ended?e.emit("error",new Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||0!==t.length?_(e,i,t,!1):O(e,i)):_(e,i,t,!1))):n||(i.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(E,e):E(e))}function E(e){d("emit readable"),e.emit("readable"),A(e)}function O(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(P,e,t))}function P(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()):r=function(e,t,r){var n;return es.length?s.length:e;if(i===s.length?o+=s:o+=s.slice(0,e),0===(e-=i)){i===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(i));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,o=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,i=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,i),0===(e-=i)){i===s.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(i));break}++o}return t.length-=o,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function k(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?k(this):T(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&k(this),null;var n,o=t.needReadable;return d("need readable",o),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&k(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.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,d("pipe count=%d opts=%j",s.pipesCount,t);var c=t&&!1===t.end||e===n.stdout||e===n.stderr?b:l;function u(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",w),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",b),r.removeListener("data",m),p=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function l(){d("onend"),e.end()}s.endEmitted?o.nextTick(c):r.once("end",c),e.on("unpipe",u);var h=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",h);var p=!1,f=!1;function m(t){d("ondata"),f=!1,!1!==e.write(t)||f||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==I(s.pipes,e))&&!p&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function g(t){d("onerror",t),b(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",w),b()}function w(){d("onfinish"),e.removeListener("close",y),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",w),e.emit("pipe",r),s.flowing||(d("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(150),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(t,r(5))},function(e,t,r){"use strict";e.exports=i;var n=r(6),o=r(14);function s(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length"}function l(e,t,r){if(t.ignoreInstruction)return"";var s;for(s in e)if(e.hasOwnProperty(s))break;var i="instructionNameFn"in t?t.instructionNameFn(s,e[s],o,n):s;if("object"===typeof e[s])return n=e,o=i,"";var a=e[s]?e[s]:"";return"instructionFn"in t&&(a=t.instructionFn(a,s,o,n)),""}function h(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,o,n):e)+"--\x3e"}function p(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function d(e,t){return t.ignoreDoctype?"":""}function f(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,o,n):e)}function m(e,t,r,s){return e.reduce((function(e,i){var u=a(t,r,s&&!e);switch(i.type){case"element":return e+u+function(e,t,r){n=e,o=e.name;var s=[],i="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;s.push("<"+i),e[t.attributesKey]&&s.push(c(e[t.attributesKey],t,r));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return a||(a="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),a?(s.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(s.push(m(e[t.elementsKey],t,r+1)),n=e,o=e.name),s.push(t.spaces&&function(e,t){var r;if(e.elements&&e.elements.length)for(r=0;r")):s.push("/>"),s.join("")}(i,t,r);case"comment":return e+u+h(i[t.commentKey],t);case"doctype":return e+u+d(i[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?u:"")+p(i[t.cdataKey],t);case"text":return e+(t.indentText?u:"")+f(i[t.textKey],t);case"instruction":var g={};return g[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?u:"")+l(g,t,r)}}),"")}function g(e,t,r){var n;for(n in e)if(e.hasOwnProperty(n))switch(n){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}function y(e,t,r,s,i){n=e,o=t;var u="elementNameFn"in r?r.elementNameFn(t,e):t;if("undefined"===typeof e||null===e||""===e)return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(t,e)||r.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var l=[];if(t){if(l.push("<"+u),"object"!==typeof e)return l.push(">"+f(e,r)+""),l.join("");e[r.attributesKey]&&l.push(c(e[r.attributesKey],r,s));var h=g(e,r,!0)||e[r.attributesKey]&&"preserve"===e[r.attributesKey]["xml:space"];if(h||(h="fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(t,e):r.fullTagEmptyElement),!h)return l.push("/>"),l.join("");l.push(">")}return l.push(w(e,r,s+1,!1)),n=e,o=t,t&&l.push((i?a(r,s,!1):"")+""),l.join("")}function w(e,t,r,n){var o,s,c,m=[];for(s in e)if(e.hasOwnProperty(s))for(c=i(e[s])?e[s]:[e[s]],o=0;o>2,a=(3&t)<<4|r>>4,c=1>6:64,u=2>4,r=(15&i)<<4|(a=s.indexOf(e.charAt(u++)))>>2,n=(3&a)<<6|(c=s.indexOf(e.charAt(u++))),h[l++]=t,64!==a&&(h[l++]=r),64!==c&&(h[l++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),o=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),i=e("./stream/DataLengthProbe");function a(e,t,r,n,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=o}a.prototype={getContentWorker:function(){var e=new o(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new o(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new i("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=o,s=0+r;e^=-1;for(var i=0;i>>8^n[255&(e^t[i])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=o,s=0+r;e^=-1;for(var i=0;i>>8^n[255&(e^t.charCodeAt(i))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),s=e("./utils"),i=e("./stream/GenericWorker"),a=n?"uint8array":"array";function c(e,t){i.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",s.inherits(c,i),c.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(a,e.data),!1)},c.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new c("Deflate",e)},r.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r>>=8;return n}function o(e,t,r,o,i,l){var h,p,d=e.file,f=e.compression,m=l!==a.utf8encode,g=s.transformTo("string",l(d.name)),y=s.transformTo("string",a.utf8encode(d.name)),w=d.comment,b=s.transformTo("string",l(w)),v=s.transformTo("string",a.utf8encode(w)),_=y.length!==d.name.length,x=v.length!==w.length,T="",E="",O="",P=d.dir,S=d.date,C={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),m||!_&&!x||(A|=2048);var R,k=0,M=0;P&&(k|=16),"UNIX"===i?(M=798,k|=((R=d.unixPermissions)||(R=P?16893:33204),(65535&R)<<16)):(M=20,k|=63&(d.dosPermissions||0)),h=S.getUTCHours(),h<<=6,h|=S.getUTCMinutes(),h<<=5,h|=S.getUTCSeconds()/2,p=S.getUTCFullYear()-1980,p<<=4,p|=S.getUTCMonth()+1,p<<=5,p|=S.getUTCDate(),_&&(T+="up"+n((E=n(1,1)+n(c(g),4)+y).length,2)+E),x&&(T+="uc"+n((O=n(1,1)+n(c(b),4)+v).length,2)+O);var I="";return I+="\n\0",I+=n(A,2),I+=f.magic,I+=n(h,2),I+=n(p,2),I+=n(C.crc32,4),I+=n(C.compressedSize,4),I+=n(C.uncompressedSize,4),I+=n(g.length,2),I+=n(T.length,2),{fileRecord:u.LOCAL_FILE_HEADER+I+g+T,dirRecord:u.CENTRAL_FILE_HEADER+n(M,2)+I+n(b.length,2)+"\0\0\0\0"+n(k,4)+n(o,4)+g+T+b}}var s=e("../utils"),i=e("../stream/GenericWorker"),a=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(l,i),l.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,s=o(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(s.dirRecord),r)this.push({data:(t=e,u.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:s.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=o},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function o(e){n.call(this,e)}e("../utils").inherits(o,n),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),o=e("../support"),s=e("./ArrayReader"),i=e("./StringReader"),a=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new a(e):o.uint8array?new c(n.transformTo("uint8array",e)):new s(n.transformTo("array",e)):new i(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),o=e("../utils");function s(e){n.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),o=e("../crc32");function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),o=e("./GenericWorker");function s(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,o),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),o=e("./GenericWorker");function s(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,t,n){"use strict";var o=e("../utils"),s=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),c=e("../support"),u=e("../external"),l=null;if(c.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,o.checkSupport(n),this._worker=e.pipe(new s(n)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return t=this,n=e,new u.Promise((function(e,s){var i=[],c=t._internalType,u=t._outputType,l=t._mimeType;t.on("data",(function(e,t){i.push(e),n&&n(t)})).on("error",(function(e){i=[],s(e)})).on("end",(function(){try{var t=function(e,t,r){switch(e){case"blob":return o.newBlob(o.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return o.transformTo(e,t)}}(u,function(e,t){var n,o=0,s=null,i=0;for(n=0;n>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t}(e)},r.utf8decode=function(e){return o.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,o,s,i=e.length,c=new Array(2*i);for(t=r=0;t>10&1023,c[r++]=56320|1023&o)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(o.uint8array?"uint8array":"array",e))},n.inherits(u,i),u.prototype.processChunk=function(e){var t=n.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var s=t;(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}(t),c=t;i!==t.length&&(o.uint8array?(c=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(c=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:r.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(l,i),l.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),o=e("./base64"),s=e("./nodejsUtils"),i=e("set-immediate-shim"),a=e("./external");function c(e){return e}function u(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r>10&1023,u[n++]=56320|1023&o)}return c(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+i[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var o=65535&e|0,s=e>>>16&65535|0,i=0;0!==r;){for(r-=i=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,o){var s=n,i=o+r;e^=-1;for(var a=o;a>>8^s[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){"use strict";var n,o=e("../utils/common"),s=e("./trees"),i=e("./adler32"),a=e("./crc32"),c=e("./messages"),u=0,l=0,h=-2,p=2,d=8,f=286,m=30,g=19,y=2*f+1,w=15,b=3,v=258,_=v+b+1,x=42,T=113;function E(e,t){return e.msg=c[t],t}function O(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function C(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,S(e.strm)}function A(e,t){e.pending_buf[e.pending++]=t}function R(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t){var r,n,o=e.max_chain_length,s=e.strstart,i=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,u=e.window,l=e.w_mask,h=e.prev,p=e.strstart+v,d=u[s+i-1],f=u[s+i];e.prev_length>=e.good_match&&(o>>=2),a>e.lookahead&&(a=e.lookahead);do{if(u[(r=t)+i]===f&&u[r+i-1]===d&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sc&&0!=--o);return i<=e.lookahead?i:e.lookahead}function M(e){var t,r,n,s,c,u,l,h,p,d,f=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-_)){for(o.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);s+=f}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,h=e.strstart+e.lookahead,d=void 0,(p=s)<(d=u.avail_in)&&(d=p),r=0===d?0:(u.avail_in-=d,o.arraySet(l,u.input,u.next_in,d,h),1===u.state.wrap?u.adler=i(u.adler,l,d,h):2===u.state.wrap&&(u.adler=a(u.adler,l,d,h)),u.next_in+=d,u.total_in+=d,d),e.lookahead+=r,e.lookahead+e.insert>=b)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<=b&&(e.ins_h=(e.ins_h<=b)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-b),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=b&&(e.ins_h=(e.ins_h<=b&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-b,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(M(e),0===e.lookahead&&t===u)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,C(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-_&&(C(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(C(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(C(e,!1),e.strm.avail_out),1)})),new D(4,4,8,4,I),new D(4,5,16,8,I),new D(4,6,32,32,I),new D(4,4,16,16,N),new D(8,16,32,32,N),new D(8,16,128,128,N),new D(8,32,128,256,N),new D(32,128,258,1024,N),new D(32,258,258,4096,N)],r.deflateInit=function(e,t){return L(e,t,d,15,8,0)},r.deflateInit2=L,r.deflateReset=B,r.deflateResetKeep=F,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,l):h},r.deflate=function(e,t){var r,o,i,c;if(!e||!e.state||5>8&255),A(o,o.gzhead.time>>16&255),A(o,o.gzhead.time>>24&255),A(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),A(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(A(o,255&o.gzhead.extra.length),A(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=a(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(A(o,0),A(o,0),A(o,0),A(o,0),A(o,0),A(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),A(o,3),o.status=T);else{var p=d+(o.w_bits-8<<4)<<8;p|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(p|=32),p+=31-p%31,o.status=T,R(o,p),0!==o.strstart&&(R(o,e.adler>>>16),R(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(i=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>i&&(e.adler=a(e.adler,o.pending_buf,o.pending-i,i)),S(e),i=o.pending,o.pending!==o.pending_buf_size));)A(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>i&&(e.adler=a(e.adler,o.pending_buf,o.pending-i,i)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){i=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>i&&(e.adler=a(e.adler,o.pending_buf,o.pending-i,i)),S(e),i=o.pending,o.pending===o.pending_buf_size)){c=1;break}c=o.gzindexi&&(e.adler=a(e.adler,o.pending_buf,o.pending-i,i)),0===c&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){i=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>i&&(e.adler=a(e.adler,o.pending_buf,o.pending-i,i)),S(e),i=o.pending,o.pending===o.pending_buf_size)){c=1;break}c=o.gzindexi&&(e.adler=a(e.adler,o.pending_buf,o.pending-i,i)),0===c&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&S(e),o.pending+2<=o.pending_buf_size&&(A(o,255&e.adler),A(o,e.adler>>8&255),e.adler=0,o.status=T)):o.status=T),0!==o.pending){if(S(e),0===e.avail_out)return o.last_flush=-1,l}else if(0===e.avail_in&&O(t)<=O(r)&&4!==t)return E(e,-5);if(666===o.status&&0!==e.avail_in)return E(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==u&&666!==o.status){var f=2===o.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(M(e),0===e.lookahead)){if(t===u)return 1;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(C(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(C(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(C(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var r,n,o,i,a=e.window;;){if(e.lookahead<=v){if(M(e),e.lookahead<=v&&t===u)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=b&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b?(r=s._tr_tally(e,1,e.match_length-b),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(C(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(C(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(C(e,!1),0===e.strm.avail_out)?1:2}(o,t):n[o.level].func(o,t);if(3!==f&&4!==f||(o.status=666),1===f||3===f)return 0===e.avail_out&&(o.last_flush=-1),l;if(2===f&&(1===t?s._tr_align(o):5!==t&&(s._tr_stored_block(o,0,0,!1),3===t&&(P(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),S(e),0===e.avail_out))return o.last_flush=-1,l}return 4!==t?l:o.wrap<=0?1:(2===o.wrap?(A(o,255&e.adler),A(o,e.adler>>8&255),A(o,e.adler>>16&255),A(o,e.adler>>24&255),A(o,255&e.total_in),A(o,e.total_in>>8&255),A(o,e.total_in>>16&255),A(o,e.total_in>>24&255)):(R(o,e.adler>>>16),R(o,65535&e.adler)),S(e),0=r.w_size&&(0===a&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new o.Buf8(r.w_size),o.arraySet(d,t,f-r.w_size,r.w_size,0),t=d,f=r.w_size),c=e.avail_in,u=e.next_in,p=e.input,e.avail_in=f,e.next_in=0,e.input=t,M(r);r.lookahead>=b;){for(n=r.strstart,s=r.lookahead-(b-1);r.ins_h=(r.ins_h<>>=v=b>>>24,f-=v,0==(v=b>>>16&255))P[s++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=m[(65535&b)+(d&(1<>>=v,f-=v),f<15&&(d+=O[n++]<>>=v=b>>>24,f-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=g[(65535&b)+(d&(1<>>=v,f-=v,(v=s-i)>3,d&=(1<<(f-=_<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=p,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(d),t.distcode=t.distdyn=new n.Buf32(f),t.sane=1,t.back=-1,l):h}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,y(e)):h}function b(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=i.wsize?(n.arraySet(i.window,t,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(o<(s=i.wsize-i.wnext)&&(s=o),n.arraySet(i.window,t,r-o,s,i.wnext),(o-=s)?(n.arraySet(i.window,t,r-o,o,0),i.wnext=o,i.whave=i.wsize):(i.wnext+=s,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,r.check=s(r.check,X,2,0),_=v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,D=8+(15&(v>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(X[0]=255&v,X[1]=v>>>8&255,r.check=s(r.check,X,2,0)),_=v=0,r.mode=3;case 3:for(;_<32;){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}r.head&&(r.head.time=v),512&r.flags&&(X[0]=255&v,X[1]=v>>>8&255,X[2]=v>>>16&255,X[3]=v>>>24&255,r.check=s(r.check,X,4,0)),_=v=0,r.mode=4;case 4:for(;_<16;){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(X[0]=255&v,X[1]=v>>>8&255,r.check=s(r.check,X,2,0)),_=v=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(X[0]=255&v,X[1]=v>>>8&255,r.check=s(r.check,X,2,0)),_=v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(w<(P=r.length)&&(P=w),P&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,d,g,P,D)),512&r.flags&&(r.check=s(r.check,d,P,g)),w-=P,g+=P,r.length-=P),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break e;for(P=0;D=d[g+P++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D)),D&&P>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}e.adler=r.check=m(v),_=v=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=y,e.avail_out=b,e.next_in=g,e.avail_in=w,r.hold=v,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){v>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}switch(r.last=1&v,_-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(E(r),r.mode=20,6!==t)break;v>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}v>>>=2,_-=2;break;case 14:for(v>>>=7&_,_-=7&_;_<32;){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&v,_=v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(P=r.length){if(w>>=5,_-=5,r.ndist=1+(31&v),v>>>=5,_-=5,r.ncode=4+(15&v),v>>>=4,_-=4,286>>=3,_-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},j=a(0,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,j){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,k=65535&L,!((A=L>>>24)<=_);){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}if(k<16)v>>>=A,_-=A,r.lens[r.have++]=k;else{if(16===k){for(B=A+2;_>>=A,_-=A,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}D=r.lens[r.have-1],P=3+(3&v),v>>>=2,_-=2}else if(17===k){for(B=A+3;_>>=A)),v>>>=3,_-=3}else{for(B=A+7;_>>=A)),v>>>=7,_-=7}if(r.have+P>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;P--;)r.lens[r.have++]=D}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,F={bits:r.lenbits},j=a(c,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,j){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},j=a(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,j){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=w&&258<=b){e.next_out=y,e.avail_out=b,e.next_in=g,e.avail_in=w,r.hold=v,r.bits=_,i(e,T),y=e.next_out,f=e.output,b=e.avail_out,g=e.next_in,d=e.input,w=e.avail_in,v=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;R=(L=r.lencode[v&(1<>>16&255,k=65535&L,!((A=L>>>24)<=_);){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}if(R&&0==(240&R)){for(M=A,I=R,N=k;R=(L=r.lencode[N+((v&(1<>M)])>>>16&255,k=65535&L,!(M+(A=L>>>24)<=_);){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}v>>>=M,_-=M,r.back+=M}if(v>>>=A,_-=A,r.back+=A,r.length=k,0===R){r.mode=26;break}if(32&R){r.back=-1,r.mode=12;break}if(64&R){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&R,r.mode=22;case 22:if(r.extra){for(B=r.extra;_>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;R=(L=r.distcode[v&(1<>>16&255,k=65535&L,!((A=L>>>24)<=_);){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}if(0==(240&R)){for(M=A,I=R,N=k;R=(L=r.distcode[N+((v&(1<>M)])>>>16&255,k=65535&L,!(M+(A=L>>>24)<=_);){if(0===w)break e;w--,v+=d[g++]<<_,_+=8}v>>>=M,_-=M,r.back+=M}if(v>>>=A,_-=A,r.back+=A,64&R){e.msg="invalid distance code",r.mode=30;break}r.offset=k,r.extra=15&R,r.mode=24;case 24:if(r.extra){for(B=r.extra;_>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===b)break e;if(P=T-b,r.offset>P){if((P=r.offset-P)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S=P>r.wnext?(P-=r.wnext,r.wsize-P):r.wnext-P,P>r.length&&(P=r.length),C=r.window}else C=f,S=y-r.offset,P=r.length;for(bw?(v=F[B+h[E]],I[N+h[E]]):(v=96,0),d=1<>A)+(f-=d)]=b<<24|v<<16|_|0,0!==f;);for(d=1<>=1;if(0!==d?(M&=d-1,M+=d):M=0,E++,0==--D[T]){if(T===P)break;T=t[r+h[E]]}if(S>>7)]}function T(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function E(e,t,r){e.bi_valid>i-r?(e.bi_buf|=t<>i-e.bi_valid,e.bi_valid+=r-i):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function S(e,t,r){var n,o,i=new Array(s+1),a=0;for(n=1;n<=s;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var c=e[2*o+1];0!==c&&(e[2*o]=P(i[c]++,c))}}function C(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){8>1;1<=r;r--)k(e,i,r);for(o=u;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],k(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*o]=i[2*r]+i[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=o,e.heap[1]=o++,k(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,i,a,c,u=t.dyn_tree,l=t.max_code,h=t.stat_desc.static_tree,p=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(i=0;i<=s;i++)e.bl_count[i]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(i=u[2*u[2*(n=e.heap[r])+1]+1]+1)&&(i=m,g++),u[2*n+1]=i,l>=7;n<30;n++)for(b[n]=o<<7,e=0;e<1<>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),i=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?F(e,t,r,n):4===e.strategy||s===o?(E(e,2+(n?1:0),3),M(e,h,p)):(E(e,4+(n?1:0),3),function(e,t,r,n){var o;for(E(e,t-257,5),E(e,r-1,5),E(e,n-4,4),o=0;o>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(f[r]+256+1)]++,e.dyn_dtree[2*x(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;E(e,2,3),O(e,256,h),16===(t=e).bi_valid?(T(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){"use strict";t.exports="function"==typeof n?n:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}).call(t,r(5),r(4).Buffer,r(57).setImmediate)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var s=r(12);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return s.File}}),o(r(12),t),o(r(362),t),o(r(370),t),o(r(3),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IgnoreIfEmptyXmlComponent=t.XmlComponent=t.EMPTY_OBJECT=void 0;const n=r(24);t.EMPTY_OBJECT=Object.seal({});class o extends n.BaseXmlComponent{constructor(e){super(e),this.root=new Array}prepForXml(e){const r=this.root.filter(e=>e instanceof n.BaseXmlComponent?!e.IsDeleted:void 0!==e).map(t=>t instanceof n.BaseXmlComponent?t.prepForXml(e):t).filter(e=>void 0!==e);return{[this.rootKey]:r.length?1===r.length&&(o=r[0],"object"===typeof o&&o._attr)?r[0]:r:t.EMPTY_OBJECT};var o}addChildElement(e){return this.root.push(e),this}delete(){this.deleted=!0}}t.XmlComponent=o,t.IgnoreIfEmptyXmlComponent=class extends o{prepForXml(e){const t=super.prepForXml(e);if(t&&("object"!==typeof t[this.rootKey]||Object.keys(t[this.rootKey]).length))return t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Attributes=void 0;const n=r(50);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"}}}t.Attributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportedRootElementAttributes=t.ImportedXmlComponent=t.convertToXmlComponent=void 0;const n=r(25),o=r(0);function s(e){switch(e.type){case void 0:case"element":const t=new a(e.name,e.attributes),r=e.elements||[];for(const e of r){const r=s(e);void 0!==r&&t.push(r)}return t;case"text":return e.text;default:return}}t.convertToXmlComponent=s;class i extends o.XmlAttributeComponent{}class a extends o.XmlComponent{static fromXmlString(e){return s(n.xml2js(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new i(t))}push(e){this.root.push(e)}}t.ImportedXmlComponent=a;class c extends o.XmlComponent{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}t.ImportedRootElementAttributes=c},function(e,t,r){(function(e){!function(t){t.parser=function(e,t){return new s(e,t)},t.SAXParser=s,t.SAXStream=a,t.createStream=function(e,t){return new a(e,t)},t.MAX_BUFFER_LENGTH=65536;var n,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(e,r){if(!(this instanceof s))return new s(e,r);!function(e){for(var t=0,r=o.length;t"===n?(x(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=b.TEXT):m(n)?(this.state=b.SGML_DECL_QUOTED,this.sgmlDecl+=n):this.sgmlDecl+=n;continue;case b.SGML_DECL_QUOTED:n===this.q&&(this.state=b.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case b.DOCTYPE:">"===n?(this.state=b.TEXT,x(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=b.DOCTYPE_DTD:m(n)&&(this.state=b.DOCTYPE_QUOTED,this.q=n));continue;case b.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=b.DOCTYPE:m(n)&&(this.state=b.DOCTYPE_DTD_QUOTED,this.q=n);continue;case b.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=b.DOCTYPE_DTD,this.q="");continue;case b.COMMENT:"-"===n?this.state=b.COMMENT_ENDING:this.comment+=n;continue;case b.COMMENT_ENDING:"-"===n?(this.state=b.COMMENT_ENDED,this.comment=E(this.opt,this.comment),this.comment&&x(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=b.COMMENT);continue;case b.COMMENT_ENDED:">"!==n?(S(this,"Malformed comment"),this.comment+="--"+n,this.state=b.COMMENT):this.state=b.TEXT;continue;case b.CDATA:"]"===n?this.state=b.CDATA_ENDING:this.cdata+=n;continue;case b.CDATA_ENDING:"]"===n?this.state=b.CDATA_ENDING_2:(this.cdata+="]"+n,this.state=b.CDATA);continue;case b.CDATA_ENDING_2:">"===n?(this.cdata&&x(this,"oncdata",this.cdata),x(this,"onclosecdata"),this.cdata="",this.state=b.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=b.CDATA);continue;case b.PROC_INST:"?"===n?this.state=b.PROC_INST_ENDING:f(n)?this.state=b.PROC_INST_BODY:this.procInstName+=n;continue;case b.PROC_INST_BODY:if(!this.procInstBody&&f(n))continue;"?"===n?this.state=b.PROC_INST_ENDING:this.procInstBody+=n;continue;case b.PROC_INST_ENDING:">"===n?(x(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=b.TEXT):(this.procInstBody+="?"+n,this.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:y(h,n)?this.tagName+=n:(C(this),">"===n?k(this):"/"===n?this.state=b.OPEN_TAG_SLASH:(f(n)||S(this,"Invalid character in tag name"),this.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:">"===n?(k(this,!0),M(this)):(S(this,"Forward-slash in opening tag not followed by >"),this.state=b.ATTRIB);continue;case b.ATTRIB:if(f(n))continue;">"===n?k(this):"/"===n?this.state=b.OPEN_TAG_SLASH:y(l,n)?(this.attribName=n,this.attribValue="",this.state=b.ATTRIB_NAME):S(this,"Invalid attribute name");continue;case b.ATTRIB_NAME:"="===n?this.state=b.ATTRIB_VALUE:">"===n?(S(this,"Attribute without value"),this.attribValue=this.attribName,R(this),k(this)):f(n)?this.state=b.ATTRIB_NAME_SAW_WHITE:y(h,n)?this.attribName+=n:S(this,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if("="===n)this.state=b.ATTRIB_VALUE;else{if(f(n))continue;S(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",x(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?k(this):y(l,n)?(this.attribName=n,this.state=b.ATTRIB_NAME):(S(this,"Invalid attribute name"),this.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(f(n))continue;m(n)?(this.q=n,this.state=b.ATTRIB_VALUE_QUOTED):(S(this,"Unquoted attribute value"),this.state=b.ATTRIB_VALUE_UNQUOTED,this.attribValue=n);continue;case b.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=b.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}R(this),this.q="",this.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:f(n)?this.state=b.ATTRIB:">"===n?k(this):"/"===n?this.state=b.OPEN_TAG_SLASH:y(l,n)?(S(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=b.ATTRIB_NAME):S(this,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!g(n)){"&"===n?this.state=b.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}R(this),">"===n?k(this):this.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(this.tagName)">"===n?M(this):y(h,n)?this.tagName+=n:this.script?(this.script+=""===n?M(this):S(this,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var a,c;switch(this.state){case b.TEXT_ENTITY:a=b.TEXT,c="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:a=b.ATTRIB_VALUE_QUOTED,c="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:a=b.ATTRIB_VALUE_UNQUOTED,c="attribValue"}";"===n?(this[c]+=I(this),this.entity="",this.state=a):y(this.entity.length?d:p,n)?this.entity+=n:(S(this,"Invalid character in entity name"),this[c]+="&"+this.entity+n,this.entity="",this.state=a);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),n=0,s=0,i=o.length;sr)switch(o[s]){case"textNode":T(e);break;case"cdata":x(e,"oncdata",e.cdata),e.cdata="";break;case"script":x(e,"onscript",e.script),e.script="";break;default:O(e,"Max buffer length exceeded: "+o[s])}n=Math.max(n,a)}var c=t.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=c+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;T(e=this),""!==e.cdata&&(x(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(x(e,"onscript",e.script),e.script="")}};try{n=r(53).Stream}catch(j){n=function(){}}var i=t.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function a(e,t){if(!(this instanceof a))return new a(e,t);n.apply(this),this._parser=new s(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,i.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})}))}a.prototype=Object.create(n.prototype,{constructor:{value:a}}),a.prototype.write=function(t){if("function"===typeof e&&"function"===typeof e.isBuffer&&e.isBuffer(t)){if(!this._decoder){var n=r(29).StringDecoder;this._decoder=new n("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},a.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===i.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 c="http://www.w3.org/XML/1998/namespace",u={xml:c,xmlns:"http://www.w3.org/2000/xmlns/"},l=/[:_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]/,h=/[:_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-]/,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-]/;function f(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function m(e){return'"'===e||"'"===e}function g(e){return">"===e||f(e)}function y(e,t){return e.test(t)}function w(e,t){return!y(e,t)}var b=0;for(var v in t.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],n="number"===typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[v]]=v;function _(e,t,r){e[t]&&e[t](r)}function x(e,t,r){e.textNode&&T(e),_(e,t,r)}function T(e){e.textNode=E(e.opt,e.textNode),e.textNode&&_(e,"ontext",e.textNode),e.textNode=""}function E(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function O(e,t){return T(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,_(e,"onerror",t),e}function P(e){return e.sawRoot&&!e.closedRoot&&S(e,"Unclosed root tag"),e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT&&O(e,"Unexpected end"),T(e),e.c="",e.closed=!0,_(e,"onend"),s.call(e,e.strict,e.opt),e}function S(e,t){if("object"!==typeof e||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&O(e,t)}function C(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,x(e,"onopentagstart",r)}function A(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],o=r[1];return t&&"xmlns"===e&&(n="xmlns",o=""),{prefix:n,local:o}}function R(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="";else{if(e.opt.xmlns){var t=A(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==c)S(e,"xml: prefix must be bound to "+c+"\nActual: "+e.attribValue);else if("xmlns"===n&&"http://www.w3.org/2000/xmlns/"!==e.attribValue)S(e,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+e.attribValue);else{var o=e.tag,s=e.tags[e.tags.length-1]||e;o.ns===s.ns&&(o.ns=Object.create(s.ns)),o.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,x(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function k(e,t){if(e.opt.xmlns){var r=e.tag,n=A(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(S(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var o=e.tags[e.tags.length-1]||e;r.ns&&o.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){x(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var s=0,i=e.attribList.length;s",e.tagName="",void(e.state=b.SCRIPT);x(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--&&e.tags[t].name!==n;)S(e,"Unexpected close tag");if(t<0)return S(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=b.TEXT);e.tagName=r;for(var o=e.tags.length;o-- >t;){var s=e.tag=e.tags.pop();e.tagName=e.tag.name,x(e,"onclosetag",e.tagName);var i={};for(var a in s.ns)i[a]=s.ns[a];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&s.ns!==c.ns&&Object.keys(s.ns).forEach((function(t){var r=s.ns[t];x(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=b.TEXT}function I(e){var t,r=e.entity,n=r.toLowerCase(),o="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),o=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),o=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||o.toLowerCase()!==r?(S(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function N(e,t){"<"===t?(e.state=b.OPEN_WAKA,e.startTagPosition=e.position):f(t)||(S(e,"Non-whitespace before first tag."),e.textNode=t,e.state=b.TEXT)}function D(e,t){var r="";return t1114111||t(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?s.push(u):(r=55296+((u-=65536)>>10),n=u%1024+56320,s.push(r,n)),(i+1===a||s.length>o)&&(c+=e.apply(null,s),s.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:r,configurable:!0,writable:!0}):String.fromCodePoint=r}()}(t)}).call(t,r(4).Buffer)},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=u(e),n=r[0],i=r[1],a=new s(function(e,t,r){return 3*(t+r)/4-r}(0,n,i)),c=0,l=i>0?n-4:n,h=0;h>16&255,a[c++]=t>>8&255,a[c++]=255&t;return 2===i&&(t=o[e.charCodeAt(h)]<<2|o[e.charCodeAt(h+1)]>>4,a[c++]=255&t),1===i&&(t=o[e.charCodeAt(h)]<<10|o[e.charCodeAt(h+1)]<<4|o[e.charCodeAt(h+2)]>>2,a[c++]=t>>8&255,a[c++]=255&t),a},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,s=[],i=0,a=r-o;ia?a:i+16383));return 1===o?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],o=[],s="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var o,s,i=[],a=t;a>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,o){var s,i,a=8*o-n-1,c=(1<>1,l=-7,h=r?o-1:0,p=r?-1:1,d=e[t+h];for(h+=p,s=d&(1<<-l)-1,d>>=-l,l+=a;l>0;s=256*s+e[t+h],h+=p,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=n;l>0;i=256*i+e[t+h],h+=p,l-=8);if(0===s)s=1-u;else{if(s===c)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),s-=u}return(d?-1:1)*i*Math.pow(2,s-n)},t.write=function(e,t,r,n,o,s){var i,a,c,u=8*s-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:s-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),(t+=i+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(i++,c/=2),i+h>=l?(a=0,i=l):i+h>=1?(a=(t*c-1)*Math.pow(2,o),i+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),i=0));o>=8;e[r+d]=255&a,d+=f,a/=256,o-=8);for(i=i<0;e[r+d]=255&i,d+=f,i/=256,u-=8);e[r+d-f]|=128*m}},function(e,t){},function(e,t,r){"use strict";var n=r(18).Buffer,o=r(149);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.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},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,o,s=n.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=s,o=a,t.copy(r,o),a+=i.data.length,i=i.next;return s},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,o=1,s={},i=!1,a=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){l(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"===typeof r.data&&0===r.data.indexOf(t)&&l(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){l(e.data)},n=function(t){e.port2.postMessage(t)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var e=a.documentElement;n=function(t){var r=a.createElement("script");r.onreadystatechange=function(){l(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():n=function(e){setTimeout(l,0,e)},c.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;re.charCodeAt(0))):new(r(4).Buffer)(e,"base64")}}t.ImageRun=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"nanoid",(function(){return o})),r.d(t,"customAlphabet",(function(){return n}));let n=(e,t)=>()=>{let r="",n=t;for(;n--;)r+=e[Math.random()*e.length|0];return r},o=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Drawing=void 0;const n=r(0),o=r(170),s=r(213);class i extends n.XmlComponent{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new o.Anchor(e,e.transformation,t)):(this.inline=new s.Inline(e,e.transformation),this.root.push(this.inline))}scale(e,t){this.inline.scale(e,t)}}t.Drawing=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(171),t),o(r(79),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Anchor=void 0;const n=r(0),o=r(71),s=r(74),i=r(34),a=r(75),c=r(76),u=r(77),l=r(78),h=r(79);class p extends n.XmlComponent{constructor(e,t,r){super("wp:anchor");const n=Object.assign({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},r.floating);if(this.root.push(new h.AnchorAttributes({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 o.SimplePos),this.root.push(new o.HorizontalPosition(n.horizontalPosition)),this.root.push(new o.VerticalPosition(n.verticalPosition)),this.root.push(new u.Extent(t.emus.x,t.emus.y)),this.root.push(new c.EffectExtent),void 0!==r.floating&&void 0!==r.floating.wrap)switch(r.floating.wrap.type){case i.TextWrappingType.SQUARE:this.root.push(new i.WrapSquare(r.floating.wrap,r.floating.margins));break;case i.TextWrappingType.TIGHT:this.root.push(new i.WrapTight(r.floating.margins));break;case i.TextWrappingType.TOP_AND_BOTTOM:this.root.push(new i.WrapTopAndBottom(r.floating.margins));break;case i.TextWrappingType.NONE:default:this.root.push(new i.WrapNone)}else this.root.push(new i.WrapNone);this.root.push(new a.DocProperties),this.root.push(new l.GraphicFrameProperties),this.root.push(new s.Graphic(e,t))}}t.Anchor=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimplePos=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class s extends n.XmlComponent{constructor(){super("wp:simplePos"),this.root.push(new o({x:0,y:0}))}}t.SimplePos=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HorizontalPosition=void 0;const n=r(0),o=r(72),s=r(33),i=r(73);class a extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class c extends n.XmlComponent{constructor(e){if(super("wp:positionH"),this.root.push(new a({relativeFrom:e.relative||s.HorizontalPositionRelativeFrom.PAGE})),e.align)this.root.push(new o.Align(e.align));else{if(void 0===e.offset)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new i.PositionOffset(e.offset))}}}t.HorizontalPosition=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerticalPosition=void 0;const n=r(0),o=r(72),s=r(33),i=r(73);class a extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class c extends n.XmlComponent{constructor(e){if(super("wp:positionV"),this.root.push(new a({relativeFrom:e.relative||s.VerticalPositionRelativeFrom.PAGE})),e.align)this.root.push(new o.Align(e.align));else{if(void 0===e.offset)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new i.PositionOffset(e.offset))}}}t.VerticalPosition=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Graphic=void 0;const n=r(0),o=r(176);class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={a:"xmlns:a"}}}class i extends n.XmlComponent{constructor(e,t){super("a:graphic"),this.root.push(new s({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new o.GraphicData(e,t),this.root.push(this.data)}setXY(e,t){this.data.setXY(e,t)}}t.Graphic=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(177),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicData=void 0;const n=r(0),o=r(178),s=r(179);class i extends n.XmlComponent{constructor(e,t){super("a:graphicData"),this.root.push(new o.GraphicDataAttributes({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new s.Pic(e,t),this.root.push(this.pic)}setXY(e,t){this.pic.setXY(e,t)}}t.GraphicData=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicDataAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={uri:"uri"}}}t.GraphicDataAttributes=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(180),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pic=void 0;const n=r(0),o=r(181),s=r(185),i=r(191),a=r(192);class c extends n.XmlComponent{constructor(e,t){super("pic:pic"),this.root.push(new i.PicAttributes({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.shapeProperties=new a.ShapeProperties(t),this.root.push(new s.NonVisualPicProperties),this.root.push(new o.BlipFill(e)),this.root.push(new a.ShapeProperties(t))}setXY(e,t){this.shapeProperties.setXY(e,t)}}t.Pic=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlipFill=void 0;const n=r(0),o=r(182),s=r(183),i=r(184);class a extends n.XmlComponent{constructor(e){super("pic:blipFill"),this.root.push(new o.Blip(e)),this.root.push(new s.SourceRectangle),this.root.push(new i.Stretch)}}t.BlipFill=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Blip=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={embed:"r:embed",cstate:"cstate"}}}class s extends n.XmlComponent{constructor(e){super("a:blip"),this.root.push(new o({embed:`rId{${e.fileName}}`,cstate:"none"}))}}t.Blip=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceRectangle=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("a:srcRect")}}t.SourceRectangle=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stretch=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("a:fillRect")}}class s extends n.XmlComponent{constructor(){super("a:stretch"),this.root.push(new o)}}t.Stretch=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonVisualPicProperties=void 0;const n=r(0),o=r(186),s=r(189);class i extends n.XmlComponent{constructor(){super("pic:nvPicPr"),this.root.push(new s.NonVisualProperties),this.root.push(new o.ChildNonVisualProperties)}}t.NonVisualPicProperties=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildNonVisualProperties=void 0;const n=r(0),o=r(187);class s extends n.XmlComponent{constructor(){super("pic:cNvPicPr"),this.root.push(new o.PicLocks)}}t.ChildNonVisualProperties=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PicLocks=void 0;const n=r(0),o=r(188);class s extends n.XmlComponent{constructor(){super("a:picLocks"),this.root.push(new o.PicLocksAttributes({noChangeAspect:1,noChangeArrowheads:1}))}}t.PicLocks=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PicLocksAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"}}}t.PicLocksAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonVisualProperties=void 0;const n=r(0),o=r(190);class s extends n.XmlComponent{constructor(){super("pic:cNvPr"),this.root.push(new o.NonVisualPropertiesAttributes({id:0,name:"",descr:""}))}}t.NonVisualProperties=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonVisualPropertiesAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",descr:"desc"}}}t.NonVisualPropertiesAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PicAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:pic"}}}t.PicAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeProperties=void 0;const n=r(0),o=r(193),s=r(199),i=r(202);class a extends n.XmlComponent{constructor(e){super("pic:spPr"),this.root.push(new i.ShapePropertiesAttributes({bwMode:"auto"})),this.form=new o.Form(e),this.root.push(this.form),this.root.push(new s.PresetGeometry)}setXY(e,t){this.form.setXY(e,t)}}t.ShapeProperties=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(194),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Form=t.FormAttributes=void 0;const n=r(0),o=r(195),s=r(197);class i extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"}}}t.FormAttributes=i;class a extends n.XmlComponent{constructor(e){var t,r;super("a:xfrm"),this.root.push(new i({flipVertical:null===(t=e.flip)||void 0===t?void 0:t.vertical,flipHorizontal:null===(r=e.flip)||void 0===r?void 0:r.horizontal,rotation:e.rotation})),this.extents=new o.Extents(e.emus.x,e.emus.y),this.root.push(this.extents),this.root.push(new s.Offset)}setXY(e,t){this.extents.setXY(e,t)}}t.Form=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extents=void 0;const n=r(0),o=r(196);class s extends n.XmlComponent{constructor(e,t){super("a:ext"),this.attributes=new o.ExtentsAttributes({cx:e,cy:t}),this.root.push(this.attributes)}setXY(e,t){this.attributes.set({cx:e,cy:t})}}t.Extents=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtentsAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}t.ExtentsAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Offset=void 0;const n=r(0),o=r(198);class s extends n.XmlComponent{constructor(){super("a:off"),this.root.push(new o.OffsetAttributes({x:0,y:0}))}}t.Offset=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffsetAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}t.OffsetAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetGeometry=void 0;const n=r(0),o=r(200),s=r(201);class i extends n.XmlComponent{constructor(){super("a:prstGeom"),this.root.push(new s.PresetGeometryAttributes({prst:"rect"})),this.root.push(new o.AdjustmentValues)}}t.PresetGeometry=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdjustmentValues=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("a:avLst")}}t.AdjustmentValues=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetGeometryAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={prst:"prst"}}}t.PresetGeometryAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShapePropertiesAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={bwMode:"bwMode"}}}t.ShapePropertiesAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextWrappingSide=t.TextWrappingType=void 0,function(e){e[e.NONE=0]="NONE",e[e.SQUARE=1]="SQUARE",e[e.TIGHT=2]="TIGHT",e[e.TOP_AND_BOTTOM=3]="TOP_AND_BOTTOM"}(t.TextWrappingType||(t.TextWrappingType={})),function(e){e.BOTH_SIDES="bothSides",e.LEFT="left",e.RIGHT="right",e.LARGEST="largest"}(t.TextWrappingSide||(t.TextWrappingSide={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrapNone=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("wp:wrapNone")}}t.WrapNone=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrapSquare=void 0;const n=r(0),o=r(34);class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"}}}class i extends n.XmlComponent{constructor(e,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new s({wrapText:e.side||o.TextWrappingSide.BOTH_SIDES,distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}}t.WrapSquare=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrapTight=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class s extends n.XmlComponent{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new o({distT:e.top,distB:e.bottom}))}}t.WrapTight=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrapTopAndBottom=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class s extends n.XmlComponent{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new o({distT:e.top,distB:e.bottom}))}}t.WrapTopAndBottom=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocPropertiesAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",descr:"descr"}}}t.DocPropertiesAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EffectExtentAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={b:"b",l:"l",r:"r",t:"t"}}}t.EffectExtentAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtentAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}t.ExtentAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicFrameLocks=void 0;const n=r(0),o=r(212);class s extends n.XmlComponent{constructor(){super("a:graphicFrameLocks"),this.root.push(new o.GraphicFrameLockAttributes({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}t.GraphicFrameLocks=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicFrameLockAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"}}}t.GraphicFrameLockAttributes=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(214),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Inline=void 0;const n=r(0),o=r(75),s=r(76),i=r(77),a=r(78),c=r(74),u=r(215);class l extends n.XmlComponent{constructor(e,t){super("wp:inline"),this.transform=t,this.root.push(new u.InlineAttributes({distT:0,distB:0,distL:0,distR:0})),this.extent=new i.Extent(t.emus.x,t.emus.y),this.graphic=new c.Graphic(e,t),this.root.push(this.extent),this.root.push(new s.EffectExtent),this.root.push(new o.DocProperties),this.root.push(new a.GraphicFrameProperties),this.root.push(this.graphic)}scale(e,t){const r=Math.round(this.transform.emus.x*e),n=Math.round(this.transform.emus.y*t);this.extent.setXY(r,n),this.graphic.setXY(r,n)}}t.Inline=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR"}}}t.InlineAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequentialIdentifier=void 0;const n=r(7),o=r(20),s=r(217);class i extends n.Run{constructor(e){super({}),this.root.push(new o.Begin(!0)),this.root.push(new s.SequentialIdentifierInstruction(e)),this.root.push(new o.Separate),this.root.push(new o.End)}}t.SequentialIdentifier=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequentialIdentifierInstruction=void 0;const n=r(9),o=r(0);class s extends o.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class i extends o.XmlComponent{constructor(e){super("w:instrText"),this.root.push(new s({space:n.SpaceType.PRESERVE})),this.root.push("SEQ "+e)}}t.SequentialIdentifierInstruction=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:tab")}}t.Tab=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Paragraph=void 0;const n=r(3),o=r(0),s=r(35),i=r(36),a=r(21),c=r(7);class u extends o.XmlComponent{constructor(e){if(super("w:p"),"string"===typeof e)return this.properties=new a.ParagraphProperties({}),this.root.push(this.properties),void this.root.push(new c.TextRun(e));if(this.properties=new a.ParagraphProperties(e),this.root.push(this.properties),e.text&&this.root.push(new c.TextRun(e.text)),e.children)for(const t of e.children)if(t instanceof i.Bookmark){this.root.push(t.start);for(const e of t.children)this.root.push(e);this.root.push(t.end)}else this.root.push(t)}prepForXml(e){for(const t of this.root)if(t instanceof i.ExternalHyperlink){const r=this.root.indexOf(t),o=new i.ConcreteHyperlink(t.options.child,n.uniqueId());e.viewWrapper.Relationships.createRelationship(o.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,s.TargetModeType.EXTERNAL),this.root[r]=o}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}t.Paragraph=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"}}}t.RelationshipAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalHyperlink=t.InternalHyperlink=t.ConcreteHyperlink=t.HyperlinkType=void 0;const n=r(3),o=r(0),s=r(222);!function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(t.HyperlinkType||(t.HyperlinkType={}));class i extends o.XmlComponent{constructor(e,t,r){super("w:hyperlink"),this.linkId=t;const n={history:1,anchor:r||void 0,id:r?void 0:"rId"+this.linkId},o=new s.HyperlinkAttributes(n);this.root.push(o),this.root.push(e)}}t.ConcreteHyperlink=i,t.InternalHyperlink=class extends i{constructor(e){super(e.child,n.uniqueId(),e.anchor)}},t.ExternalHyperlink=class{constructor(e){this.options=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HyperlinkAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"r:id",history:"w:history",anchor:"w:anchor"}}}t.HyperlinkAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BookmarkEnd=t.BookmarkStart=t.Bookmark=void 0;const n=r(3),o=r(0),s=r(224);t.Bookmark=class{constructor(e){const t=n.uniqueId();this.start=new i(e.id,t),this.children=e.children,this.end=new a(t)}};class i extends o.XmlComponent{constructor(e,t){super("w:bookmarkStart");const r=new s.BookmarkStartAttributes({name:e,id:t});this.root.push(r)}}t.BookmarkStart=i;class a extends o.XmlComponent{constructor(e){super("w:bookmarkEnd");const t=new s.BookmarkEndAttributes({id:e});this.root.push(t)}}t.BookmarkEnd=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BookmarkEndAttributes=t.BookmarkStartAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"w:id",name:"w:name"}}}t.BookmarkStartAttributes=o;class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}t.BookmarkEndAttributes=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutlineLevel=void 0;const n=r(0);class o extends n.XmlComponent{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new n.Attributes({val:e}))}}t.OutlineLevel=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;const n=r(0),o=r(86),s=r(11),i=r(103);class a extends n.XmlComponent{constructor(e){super("w:document"),this.root.push(new s.DocumentAttributes({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.body=new o.Body,this.root.push(new i.DocumentBackground(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}getTablesOfContents(){return this.body.getTablesOfContents()}}t.Document=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Body=void 0;const n=r(0),o=r(12),s=r(87);class i extends n.XmlComponent{constructor(){super("w:body"),this.sections=[]}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new s.SectionProperties(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)}getTablesOfContents(){return this.root.filter(e=>e instanceof o.TableOfContents)}createSectionParagraph(e){const t=new o.Paragraph({}),r=new o.ParagraphProperties({});return r.push(e),t.addChildElement(r),t}}t.Body=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Columns=void 0;const n=r(0),o=r(229);class s extends n.XmlComponent{constructor(e,t,r){super("w:cols"),this.root.push(new o.ColumnsAttributes({space:e,num:t,separate:r}))}}t.Columns=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnsAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={space:"w:space",num:"w:num",separate:"w:sep"}}}t.ColumnsAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentGrid=void 0;const n=r(0),o=r(231);class s extends n.XmlComponent{constructor(e){super("w:docGrid"),this.root.push(new o.DocGridAttributes({linePitch:e}))}}t.DocumentGrid=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocGridAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={linePitch:"w:linePitch"}}}t.DocGridAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LineNumberType=t.LineNumberAttributes=t.LineNumberRestartFormat=void 0;const n=r(0);!function(e){e.CONTINUOUS="continuous",e.NEW_SECTION="newSection",e.NEW_PAGE="newPage"}(t.LineNumberRestartFormat||(t.LineNumberRestartFormat={}));class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={countBy:"w:countBy",start:"w:start",restart:"w:restart",distance:"w:distance"}}}t.LineNumberAttributes=o;class s extends n.XmlComponent{constructor(e,t,r,n){super("w:lnNumType"),this.root.push(new o({countBy:e,start:t,restart:r,distance:n}))}}t.LineNumberType=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageBorders=t.PageBorderZOrder=t.PageBorderOffsetFrom=t.PageBorderDisplay=void 0;const n=r(0);!function(e){e.ALL_PAGES="allPages",e.FIRST_PAGE="firstPage",e.NOT_FIRST_PAGE="notFirstPage"}(t.PageBorderDisplay||(t.PageBorderDisplay={})),function(e){e.PAGE="page",e.TEXT="text"}(t.PageBorderOffsetFrom||(t.PageBorderOffsetFrom={})),function(e){e.BACK="back",e.FRONT="front"}(t.PageBorderZOrder||(t.PageBorderZOrder={}));class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={style:"w:val",size:"w:size",color:"w:color",space:"w:space"}}}class s extends n.XmlComponent{constructor(e,t){super(e),this.root.push(new o(t))}}class i extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"}}}class a extends n.IgnoreIfEmptyXmlComponent{constructor(e){super("w:pgBorders"),e&&(e.pageBorders?this.root.push(new i({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new i({})),e.pageBorderTop&&this.root.push(new s("w:top",e.pageBorderTop)),e.pageBorderRight&&this.root.push(new s("w:right",e.pageBorderRight)),e.pageBorderBottom&&this.root.push(new s("w:bottom",e.pageBorderBottom)),e.pageBorderLeft&&this.root.push(new s("w:left",e.pageBorderLeft)))}}t.PageBorders=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageMargin=void 0;const n=r(0),o=r(235);class s extends n.XmlComponent{constructor(e,t,r,n,s,i,a,c){super("w:pgMar"),this.root.push(new o.PageMarginAttributes({top:e,right:t,bottom:r,left:n,header:s,footer:i,gutter:a,mirror:c}))}}t.PageMargin=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageMarginAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",mirror:"w:mirrorMargins"}}}t.PageMarginAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageNumberType=t.PageNumberTypeAttributes=t.PageNumberSeparator=t.PageNumberFormat=void 0;const n=r(0);!function(e){e.CARDINAL_TEXT="cardinalText",e.DECIMAL="decimal",e.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",e.DECIMAL_ENCLOSED_FULL_STOP="decimalEnclosedFullstop",e.DECIMAL_ENCLOSED_PAREN="decimalEnclosedParen",e.DECIMAL_ZERO="decimalZero",e.LOWER_LETTER="lowerLetter",e.LOWER_ROMAN="lowerRoman",e.NONE="none",e.ORDINAL_TEXT="ordinalText",e.UPPER_LETTER="upperLetter",e.UPPER_ROMAN="upperRoman",e.DECIMAL_FULL_WIDTH="decimalFullWidth"}(t.PageNumberFormat||(t.PageNumberFormat={})),function(e){e.COLON="colon",e.EM_DASH="emDash",e.EN_DASH="endash",e.HYPHEN="hyphen",e.PERIOD="period"}(t.PageNumberSeparator||(t.PageNumberSeparator={}));class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={start:"w:start",formatType:"w:fmt",separator:"w:chapSep"}}}t.PageNumberTypeAttributes=o;class s extends n.XmlComponent{constructor(e,t,r){super("w:pgNumType"),this.root.push(new o({start:e,formatType:t,separator:r}))}}t.PageNumberType=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitlePage=void 0;const n=r(0),o=r(238);class s extends n.XmlComponent{constructor(){super("w:titlePg"),this.root.push(new o.TitlePageAttributes({value:"1"}))}}t.TitlePage=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitlePageAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={value:"w:val"}}}t.TitlePageAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SectionVerticalAlign=t.SectionVerticalAlignValue=void 0;const n=r(0),o=r(101);!function(e){e.BOTH="both",e.BOTTOM="bottom",e.CENTER="center",e.TOP="top"}(t.SectionVerticalAlignValue||(t.SectionVerticalAlignValue={}));class s extends n.XmlComponent{constructor(e){super("w:vAlign"),this.root.push(new o.SectionVerticalAlignAttributes({verticalAlign:e}))}}t.SectionVerticalAlign=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(97),t),o(r(37),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(98),t),o(r(99),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentBackground=t.DocumentBackgroundAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"}}}t.DocumentBackgroundAttributes=o;class s extends n.XmlComponent{constructor(e){super("w:background"),this.root.push(new o({color:e.color?e.color:"FFFFFF",themeColor:e.themeColor,themeShade:e.themeShade,themeTint:e.themeTint}))}}t.DocumentBackground=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Relationships=void 0;const n=r(0),o=r(244),s=r(35);class i extends n.XmlComponent{constructor(){super("Relationships"),this.root.push(new o.RelationshipsAttributes({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e){this.root.push(e)}createRelationship(e,t,r,n){const o=new s.Relationship("rId"+e,t,r,n);return this.addRelationship(o),o}get RelationshipCount(){return this.root.length-1}}t.Relationships=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipsAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}t.RelationshipsAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bidirectional=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:bidi")}}t.Bidirectional=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidowControl=t.WidowControlAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}t.WidowControlAttributes=o;class s extends n.XmlComponent{constructor(e){super("w:widowControl"),this.root.push(new o({val:e}))}}t.WidowControl=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(248),t),o(r(249),t),o(r(251),t),o(r(2),t),o(r(256),t),o(r(265),t),o(r(266),t),o(r(269),t),o(r(271),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Math=void 0;const n=r(0);class o extends n.XmlComponent{constructor(e){super("m:oMath");for(const t of e.children)this.root.push(t)}}t.Math=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathRun=void 0;const n=r(0),o=r(250);class s extends n.XmlComponent{constructor(e){super("m:r"),this.root.push(new o.MathText(e))}}t.MathRun=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathText=void 0;const n=r(0);class o extends n.XmlComponent{constructor(e){super("m:t"),this.root.push(e)}}t.MathText=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(252),t),o(r(105),t),o(r(106),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathFraction=void 0;const n=r(0),o=r(105),s=r(106);class i extends n.XmlComponent{constructor(e){super("m:f"),this.root.push(new s.MathNumerator(e.numerator)),this.root.push(new o.MathDenominator(e.denominator))}}t.MathFraction=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSubScriptHide=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class s extends n.XmlComponent{constructor(){super("m:subHide"),this.root.push(new o({hide:1}))}}t.MathSubScriptHide=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSuperScriptHide=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class s extends n.XmlComponent{constructor(){super("m:supHide"),this.root.push(new o({hide:1}))}}t.MathSuperScriptHide=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSum=void 0;const n=r(0),o=r(108),s=r(110),i=r(111),a=r(112);class c extends n.XmlComponent{constructor(e){super("m:nary"),this.root.push(new s.MathNArayProperties("\u2211",!!e.superScript,!!e.subScript)),e.subScript&&this.root.push(new i.MathSubScriptElement(e.subScript)),e.superScript&&this.root.push(new a.MathSuperScriptElement(e.superScript)),this.root.push(new o.MathBase(e.children))}}t.MathSum=c},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(257),t),o(r(259),t),o(r(261),t),o(r(263),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(258),t),o(r(113),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSuperScript=void 0;const n=r(0),o=r(2),s=r(113);class i extends n.XmlComponent{constructor(e){super("m:sSup"),this.root.push(new s.MathSuperScriptProperties),this.root.push(new o.MathBase(e.children)),this.root.push(new o.MathSuperScriptElement(e.superScript))}}t.MathSuperScript=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(260),t),o(r(114),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSubScript=void 0;const n=r(0),o=r(2),s=r(114);class i extends n.XmlComponent{constructor(e){super("m:sSub"),this.root.push(new s.MathSubScriptProperties),this.root.push(new o.MathBase(e.children)),this.root.push(new o.MathSubScriptElement(e.subScript))}}t.MathSubScript=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(262),t),o(r(115),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSubSuperScript=void 0;const n=r(0),o=r(2),s=r(115);class i extends n.XmlComponent{constructor(e){super("m:sSubSup"),this.root.push(new s.MathSubSuperScriptProperties),this.root.push(new o.MathBase(e.children)),this.root.push(new o.MathSubScriptElement(e.subScript)),this.root.push(new o.MathSuperScriptElement(e.superScript))}}t.MathSubSuperScript=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(264),t),o(r(116),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathPreSubSuperScript=void 0;const n=r(0),o=r(2),s=r(116);class i extends n.XmlComponent{constructor(e){super("m:sPre"),this.root.push(new s.MathPreSubSuperScriptProperties),this.root.push(new o.MathBase(e.children)),this.root.push(new o.MathSubScriptElement(e.subScript)),this.root.push(new o.MathSuperScriptElement(e.superScript))}}t.MathPreSubSuperScript=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORKAROUND4=void 0,t.WORKAROUND4=""},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(117),t),o(r(267),t),o(r(118),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathRadical=void 0;const n=r(0),o=r(2),s=r(117),i=r(118);class a extends n.XmlComponent{constructor(e){super("m:rad"),this.root.push(new i.MathRadicalProperties(!!e.degree)),this.root.push(new s.MathDegree(e.degree)),this.root.push(new o.MathBase(e.children))}}t.MathRadical=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathDegreeHide=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class s extends n.XmlComponent{constructor(){super("m:degHide"),this.root.push(new o({hide:1}))}}t.MathDegreeHide=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(270),t),o(r(119),t),o(r(120),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathFunction=void 0;const n=r(0),o=r(2),s=r(119),i=r(120);class a extends n.XmlComponent{constructor(e){super("m:func"),this.root.push(new i.MathFunctionProperties),this.root.push(new s.MathFunctionName(e.name)),this.root.push(new o.MathBase(e.children))}}t.MathFunction=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(272),t),o(r(275),t),o(r(276),t),o(r(277),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathRoundBrackets=void 0;const n=r(0),o=r(2),s=r(22);class i extends n.XmlComponent{constructor(e){super("m:d"),this.root.push(new s.MathBracketProperties),this.root.push(new o.MathBase(e.children))}}t.MathRoundBrackets=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathBeginningCharacter=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class s extends n.XmlComponent{constructor(e){super("m:begChr"),this.root.push(new o({character:e}))}}t.MathBeginningCharacter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathEndingCharacter=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class s extends n.XmlComponent{constructor(e){super("m:endChr"),this.root.push(new o({character:e}))}}t.MathEndingCharacter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathSquareBrackets=void 0;const n=r(0),o=r(2),s=r(22);class i extends n.XmlComponent{constructor(e){super("m:d"),this.root.push(new s.MathBracketProperties({beginningCharacter:"[",endingCharacter:"]"})),this.root.push(new o.MathBase(e.children))}}t.MathSquareBrackets=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathCurlyBrackets=void 0;const n=r(0),o=r(2),s=r(22);class i extends n.XmlComponent{constructor(e){super("m:d"),this.root.push(new s.MathBracketProperties({beginningCharacter:"{",endingCharacter:"}"})),this.root.push(new o.MathBase(e.children))}}t.MathCurlyBrackets=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathAngledBrackets=void 0;const n=r(0),o=r(2),s=r(22);class i extends n.XmlComponent{constructor(e){super("m:d"),this.root.push(new s.MathBracketProperties({beginningCharacter:"\u2329",endingCharacter:"\u232a"})),this.root.push(new o.MathBase(e.children))}}t.MathAngledBrackets=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(104),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(280),t),o(r(16),t),o(r(121),t),o(r(39),t),o(r(297),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Table=void 0;const n=r(0),o=r(281),s=r(16),i=r(121);class a extends n.XmlComponent{constructor({rows:e,width:t,columnWidths:r=Array(Math.max(...e.map(e=>e.CellCount))).fill(100),margins:{marginUnitType:n,top:a,bottom:c,right:u,left:l}={marginUnitType:s.WidthType.AUTO,top:0,bottom:0,right:0,left:0},float:h,layout:p,style:d,borders:f,alignment:m,visuallyRightToLeft:g}){super("w:tbl"),this.root.push(new i.TableProperties({borders:null!==f&&void 0!==f?f:{},width:null!==t&&void 0!==t?t:{size:100},float:h,layout:p,style:d,alignment:m,cellMargin:{bottom:{value:c||0,type:n},top:{value:a||0,type:n},left:{value:l||0,type:n},right:{value:u||0,type:n}},visuallyRightToLeft:g})),this.root.push(new o.TableGrid(r));for(const o of e)this.root.push(o);e.forEach((t,r)=>{if(r===e.length-1)return;let n=0;t.cells.forEach(t=>{if(t.options.rowSpan&&t.options.rowSpan>1){const o=new s.TableCell({rowSpan:t.options.rowSpan-1,columnSpan:t.options.columnSpan,borders:t.options.borders,children:[],verticalMerge:s.VerticalMergeType.CONTINUE});e[r+1].addCellToColumnIndex(o,n)}n+=t.options.columnSpan||1})})}}t.Table=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridCol=t.TableGrid=void 0;const n=r(0);class o extends n.XmlComponent{constructor(e){super("w:tblGrid");for(const t of e)this.root.push(new i(t))}}t.TableGrid=o;class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={w:"w:w"}}}class i extends n.XmlComponent{constructor(e){super("w:gridCol"),void 0!==e&&this.root.push(new s({w:e}))}}t.GridCol=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=void 0;const n=r(1),o=r(0),s=r(38),i=r(283);class a extends o.XmlComponent{constructor(e){super("w:tc"),this.options=e;const t=new i.TableCellProperties;this.root.push(t);for(const r of e.children)this.root.push(r);e.verticalAlign&&t.setVerticalAlign(e.verticalAlign),e.textDirection&&t.setTextDirection(e.textDirection),e.verticalMerge?t.addVerticalMerge(e.verticalMerge):e.rowSpan&&e.rowSpan>1&&t.addVerticalMerge(s.VerticalMergeType.RESTART),e.margins&&t.addMargins(e.margins),e.shading&&t.setShading(e.shading),e.columnSpan&&t.addGridSpan(e.columnSpan),e.width&&t.setWidth(e.width.size,e.width.type),e.borders&&(e.borders.top&&t.Borders.addTopBorder(e.borders.top.style,e.borders.top.size,e.borders.top.color),e.borders.bottom&&t.Borders.addBottomBorder(e.borders.bottom.style,e.borders.bottom.size,e.borders.bottom.color),e.borders.left&&t.Borders.addLeftBorder(e.borders.left.style,e.borders.left.size,e.borders.left.color),e.borders.right&&t.Borders.addRightBorder(e.borders.right.style,e.borders.right.size,e.borders.right.color))}prepForXml(e){return this.root[this.root.length-1]instanceof n.Paragraph||this.root.push(new n.Paragraph({})),super.prepForXml(e)}}t.TableCell=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellProperties=void 0;const n=r(0),o=r(39),s=r(285),i=r(38);class a extends n.IgnoreIfEmptyXmlComponent{constructor(){super("w:tcPr"),this.cellBorder=new i.TableCellBorders,this.root.push(this.cellBorder)}get Borders(){return this.cellBorder}addGridSpan(e){return this.root.push(new i.GridSpan(e)),this}addVerticalMerge(e){return this.root.push(new i.VerticalMerge(e)),this}setVerticalAlign(e){return this.root.push(new i.VAlign(e)),this}setWidth(e,t=i.WidthType.AUTO){return this.root.push(new i.TableCellWidth(e,t)),this}setShading(e){return this.root.push(new o.TableShading(e)),this}addMargins(e){return this.root.push(new s.TableCellMargin(e)),this}setTextDirection(e){return this.root.push(new i.TDirection(e)),this}}t.TableCellProperties=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShadingType=t.TableShading=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={fill:"w:fill",color:"w:color",val:"w:val"}}}class s extends n.XmlComponent{constructor(e){super("w:shd"),this.root.push(new o(e))}}t.TableShading=s,function(e){e.CLEAR="clear",e.DIAGONAL_CROSS="diagCross",e.DIAGONAL_STRIPE="diagStripe",e.HORIZONTAL_CROSS="horzCross",e.HORIZONTAL_STRIPE="horzStripe",e.NIL="nil",e.PERCENT_5="pct5",e.PERCENT_10="pct10",e.PERCENT_12="pct12",e.PERCENT_15="pct15",e.PERCENT_20="pct20",e.PERCENT_25="pct25",e.PERCENT_30="pct30",e.PERCENT_35="pct35",e.PERCENT_37="pct37",e.PERCENT_40="pct40",e.PERCENT_45="pct45",e.PERCENT_50="pct50",e.PERCENT_55="pct55",e.PERCENT_60="pct60",e.PERCENT_62="pct62",e.PERCENT_65="pct65",e.PERCENT_70="pct70",e.PERCENT_75="pct75",e.PERCENT_80="pct80",e.PERCENT_85="pct85",e.PERCENT_87="pct87",e.PERCENT_90="pct90",e.PERCENT_95="pct95",e.REVERSE_DIAGONAL_STRIPE="reverseDiagStripe",e.SOLID="solid",e.THIN_DIAGONAL_CROSS="thinDiagCross",e.THIN_DIAGONAL_STRIPE="thinDiagStripe",e.THIN_HORIZONTAL_CROSS="thinHorzCross",e.THIN_REVERSE_DIAGONAL_STRIPE="thinReverseDiagStripe",e.THIN_VERTICAL_STRIPE="thinVertStripe",e.VERTICAL_STRIPE="vertStripe"}(t.ShadingType||(t.ShadingType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellMargin=void 0;const n=r(0),o=r(286);class s extends n.XmlComponent{constructor({top:e=0,left:t=0,right:r=0,bottom:n=0}){super("w:tcMar"),this.root.push(new o.TopCellMargin(e)),this.root.push(new o.BottomCellMargin(n)),this.root.push(new o.RightCellMargin(r)),this.root.push(new o.LeftCellMargin(t))}}t.TableCellMargin=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RightCellMargin=t.LeftCellMargin=t.BottomCellMargin=t.TopCellMargin=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={width:"w:w",type:"w:type"}}}class s extends n.XmlComponent{constructor(e){super("w:top"),this.root.push(new o({width:e,type:"dxa"}))}}t.TopCellMargin=s;class i extends n.XmlComponent{constructor(e){super("w:bottom"),this.root.push(new o({width:e,type:"dxa"}))}}t.BottomCellMargin=i;class a extends n.XmlComponent{constructor(e){super("w:start"),this.root.push(new o({width:e,type:"dxa"}))}}t.LeftCellMargin=a;class c extends n.XmlComponent{constructor(e){super("w:end"),this.root.push(new o({width:e,type:"dxa"}))}}t.RightCellMargin=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableProperties=void 0;const n=r(0),o=r(1),s=r(39),i=r(122),a=r(293),c=r(127),u=r(129),l=r(294),h=r(295),p=r(296);class d extends n.IgnoreIfEmptyXmlComponent{constructor(e){super("w:tblPr"),e.style&&this.root.push(new l.TableStyle(e.style)),this.root.push(new a.TableCellMargin(e.cellMargin||{})),e.borders&&this.root.push(new i.TableBorders(e.borders)),e.width&&this.root.push(new h.PreferredTableWidth(e.width.type,e.width.size)),e.float&&this.root.push(new c.TableFloatProperties(e.float)),e.layout&&this.root.push(new u.TableLayout(e.layout)),e.alignment&&this.root.push(new o.Alignment(e.alignment)),e.shading&&this.root.push(new s.TableShading(e.shading)),e.visuallyRightToLeft&&this.root.push(new p.VisuallyRightToLeft)}}t.TableProperties=d},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Styles=void 0;const s=r(0),i=r(123);o(r(290),t);class a extends s.XmlComponent{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 i.StyleForParagraph(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new i.StyleForCharacter(t))}}t.Styles=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HyperlinkStyle=t.FootnoteTextChar=t.FootnoteReferenceStyle=t.FootnoteText=t.ListParagraph=t.StrongStyle=t.Heading6Style=t.Heading5Style=t.Heading4Style=t.Heading3Style=t.Heading2Style=t.Heading1Style=t.TitleStyle=t.HeadingStyle=void 0;const n=r(32),o=r(1),s=r(43),i=r(42);class a extends i.StyleForParagraph{constructor(e){super(Object.assign(Object.assign({},e),{basedOn:"Normal",next:"Normal",quickFormat:!0}))}}t.HeadingStyle=a,t.TitleStyle=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Title",name:"Title"}))}},t.Heading1Style=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Heading1",name:"Heading 1"}))}},t.Heading2Style=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Heading2",name:"Heading 2"}))}},t.Heading3Style=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Heading3",name:"Heading 3"}))}},t.Heading4Style=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Heading4",name:"Heading 4"}))}},t.Heading5Style=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Heading5",name:"Heading 5"}))}},t.Heading6Style=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Heading6",name:"Heading 6"}))}},t.StrongStyle=class extends a{constructor(e){super(Object.assign(Object.assign({},e),{id:"Strong",name:"Strong"}))}};class c extends i.StyleForParagraph{constructor(e){super(Object.assign(Object.assign({},e),{id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0}))}}t.ListParagraph=c;class u extends i.StyleForParagraph{constructor(e){super(Object.assign(Object.assign({},e),{id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:o.LineRuleType.AUTO}},run:{size:20}}))}}t.FootnoteText=u;class l extends s.StyleForCharacter{constructor(e){super(Object.assign(Object.assign({},e),{id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}}))}}t.FootnoteReferenceStyle=l;class h extends s.StyleForCharacter{constructor(e){super(Object.assign(Object.assign({},e),{id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}}))}}t.FootnoteTextChar=h;class p extends s.StyleForCharacter{constructor(e){super(Object.assign(Object.assign({},e),{id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:n.UnderlineType.SINGLE}}}))}}t.HyperlinkStyle=p},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(291),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderStyle=void 0,function(e){e.SINGLE="single",e.DASH_DOT_STROKED="dashDotStroked",e.DASHED="dashed",e.DASH_SMALL_GAP="dashSmallGap",e.DOT_DASH="dotDash",e.DOT_DOT_DASH="dotDotDash",e.DOTTED="dotted",e.DOUBLE="double",e.DOUBLE_WAVE="doubleWave",e.INSET="inset",e.NIL="nil",e.NONE="none",e.OUTSET="outset",e.THICK="thick",e.THICK_THIN_LARGE_GAP="thickThinLargeGap",e.THICK_THIN_MEDIUM_GAP="thickThinMediumGap",e.THICK_THIN_SMALL_GAP="thickThinSmallGap",e.THIN_THICK_LARGE_GAP="thinThickLargeGap",e.THIN_THICK_MEDIUM_GAP="thinThickMediumGap",e.THIN_THICK_SMALL_GAP="thinThickSmallGap",e.THIN_THICK_THIN_LARGE_GAP="thinThickThinLargeGap",e.THIN_THICK_THIN_MEDIUM_GAP="thinThickThinMediumGap",e.THIN_THICK_THIN_SMALL_GAP="thinThickThinSmallGap",e.THREE_D_EMBOSS="threeDEmboss",e.THREE_D_ENGRAVE="threeDEngrave",e.TRIPLE="triple",e.WAVE="wave"}(t.BorderStyle||(t.BorderStyle={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentDefaults=void 0;const n=r(0),o=r(125),s=r(126);class i extends n.XmlComponent{constructor(e){super("w:docDefaults"),this.runPropertiesDefaults=new s.RunPropertiesDefaults(e.run),this.paragraphPropertiesDefaults=new o.ParagraphPropertiesDefaults(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}t.DocumentDefaults=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellMargin=void 0;const n=r(0),o=r(16);class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={value:"w:w",type:"w:type"}}}class i extends n.XmlComponent{constructor(e,t){var r;super(e),this.root.push(new s({type:null!==(r=t.type)&&void 0!==r?r:o.WidthType.DXA,value:t.value}))}}class a extends n.IgnoreIfEmptyXmlComponent{constructor(e){super("w:tblCellMar"),e.bottom&&this.root.push(new i("w:bottom",e.bottom)),e.top&&this.root.push(new i("w:top",e.top)),e.left&&this.root.push(new i("w:left",e.left)),e.right&&this.root.push(new i("w:right",e.right))}}t.TableCellMargin=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableStyle=void 0;const n=r(0);class o extends n.XmlComponent{constructor(e){super("w:tblStyle"),this.root.push(new n.Attributes({val:e}))}}t.TableStyle=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreferredTableWidth=void 0;const n=r(0),o=r(16);class s extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={type:"w:type",w:"w:w"}}}class i extends n.XmlComponent{constructor(e=o.WidthType.AUTO,t){super("w:tblW");const r=e===o.WidthType.PERCENTAGE?t+"%":t;this.root.push(new s({type:e,w:r}))}}t.PreferredTableWidth=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisuallyRightToLeft=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:bidiVisual")}}t.VisuallyRightToLeft=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(298),t),o(r(130),t),o(r(131),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableRow=void 0;const n=r(0),o=r(16),s=r(130);class i extends n.XmlComponent{constructor(e){super("w:tr"),this.options=e,this.properties=new s.TableRowProperties,this.root.push(this.properties);for(const t of e.children)this.root.push(t);e.cantSplit&&this.properties.setCantSplit(),e.tableHeader&&this.properties.setTableHeader(),e.height&&this.properties.setHeight(e.height.value,e.height.rule)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof o.TableCell)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const r=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new 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;throw new Error("cell 'columnIndex' should not great than "+(r-1))}const e=this.root[n];n+=1,r+=e&&e.options.columnSpan||1}return n-1}}t.TableRow=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.File=void 0;const n=r(300),o=r(302),s=r(308),i=r(311),a=r(84),c=r(102),u=r(44),l=r(317),h=r(45),p=r(46),d=r(134),f=r(15),m=r(333),g=r(23),y=r(340),w=r(341);t.File=class{constructor(e,t={}){var r,c,u,h;if(this.currentRelationshipId=1,this.headers=[],this.footers=[],this.coreProperties=new s.CoreProperties(Object.assign(Object.assign({},e),{creator:null!==(r=e.creator)&&void 0!==r?r:"Un-named",revision:null!==(c=e.revision)&&void 0!==c?c:"1",lastModifiedBy:null!==(u=e.lastModifiedBy)&&void 0!==u?u:"Un-named"})),this.numbering=new d.Numbering(e.numbering?e.numbering:{config:[]}),this.fileRelationships=new f.Relationships,this.customProperties=new i.CustomProperties(null!==(h=e.customProperties)&&void 0!==h?h:[]),this.appProperties=new n.AppProperties,this.footnotesWrapper=new l.FootnotesWrapper,this.contentTypes=new o.ContentTypes,this.documentWrapper=new a.DocumentWrapper({background:e.background||{}}),this.settings=new m.Settings({compatabilityModeVersion:e.compatabilityModeVersion,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters}),this.media=t.template&&t.template.media?t.template.media:new p.Media,t.template&&(this.currentRelationshipId=t.template.currentRelationshipId+1),t.template&&e.externalStyles)throw Error("can not use both template and external styles");if(t.template){const e=new y.ExternalStylesFactory;this.styles=e.newInstance(t.template.styles)}else if(e.externalStyles){const t=new y.ExternalStylesFactory;this.styles=t.newInstance(e.externalStyles)}else if(e.styles){const t=(new w.DefaultStylesFactory).newInstance(e.styles.default);this.styles=new g.Styles(Object.assign(Object.assign({},t),e.styles))}else{const e=new w.DefaultStylesFactory;this.styles=new g.Styles(e.newInstance())}if(this.addDefaultRelationships(),t.template&&t.template.headers)for(const n of t.template.headers)this.addHeaderToDocument(n.header,n.type);if(t.template&&t.template.footers)for(const n of t.template.footers)this.addFooterToDocument(n.footer,n.type);for(const n of e.sections)this.addSection(n);if(e.footnotes)for(const n in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(n),e.footnotes[n].children);e.features&&e.features.trackRevisions&&this.settings.addTrackRevisions()}verifyUpdateFields(){this.documentWrapper.View.getTablesOfContents().length&&this.settings.addUpdateFields()}addSection({headers:e={},footers:t={},children:r,properties:n}){this.documentWrapper.View.Body.addSection(Object.assign(Object.assign({},n),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const o of r)this.documentWrapper.View.add(o)}createHeader(e){const t=new h.HeaderWrapper(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){const t=new u.FooterWrapper(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=c.HeaderReferenceType.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=c.FooterReferenceType.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppProperties=void 0;const n=r(0),o=r(301);class s extends n.XmlComponent{constructor(){super("Properties"),this.root.push(new o.AppPropertiesAttributes({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}t.AppProperties=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppPropertiesAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}t.AppPropertiesAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentTypes=void 0;const n=r(0),o=r(303),s=r(304),i=r(306);class a extends n.XmlComponent{constructor(){super("Types"),this.root.push(new o.ContentTypeAttributes({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new s.Default("image/png","png")),this.root.push(new s.Default("image/jpeg","jpeg")),this.root.push(new s.Default("image/jpeg","jpg")),this.root.push(new s.Default("image/bmp","bmp")),this.root.push(new s.Default("image/gif","gif")),this.root.push(new s.Default("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new s.Default("application/xml","xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml"))}addFooter(e){this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new i.Override("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}t.ContentTypes=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentTypeAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}t.ContentTypeAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Default=void 0;const n=r(0),o=r(305);class s extends n.XmlComponent{constructor(e,t){super("Default"),this.root.push(new o.DefaultAttributes({contentType:e,extension:t}))}}t.Default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",extension:"Extension"}}}t.DefaultAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Override=void 0;const n=r(0),o=r(307);class s extends n.XmlComponent{constructor(e,t){super("Override"),this.root.push(new o.OverrideAttributes({contentType:e,partName:t}))}}t.Override=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverrideAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",partName:"PartName"}}}t.OverrideAttributes=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(309),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoreProperties=void 0;const n=r(0),o=r(11),s=r(310);class i extends n.XmlComponent{constructor(e){super("cp:coreProperties"),this.root.push(new o.DocumentAttributes({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new s.Title(e.title)),e.subject&&this.root.push(new s.Subject(e.subject)),e.creator&&this.root.push(new s.Creator(e.creator)),e.keywords&&this.root.push(new s.Keywords(e.keywords)),e.description&&this.root.push(new s.Description(e.description)),e.lastModifiedBy&&this.root.push(new s.LastModifiedBy(e.lastModifiedBy)),e.revision&&this.root.push(new s.Revision(e.revision)),this.root.push(new s.Created),this.root.push(new s.Modified)}}t.CoreProperties=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modified=t.Created=t.DateComponent=t.Revision=t.LastModifiedBy=t.Description=t.Keywords=t.Creator=t.Subject=t.Title=void 0;const n=r(0),o=r(11);class s extends n.XmlComponent{constructor(e){super("dc:title"),this.root.push(e)}}t.Title=s;class i extends n.XmlComponent{constructor(e){super("dc:subject"),this.root.push(e)}}t.Subject=i;class a extends n.XmlComponent{constructor(e){super("dc:creator"),this.root.push(e)}}t.Creator=a;class c extends n.XmlComponent{constructor(e){super("cp:keywords"),this.root.push(e)}}t.Keywords=c;class u extends n.XmlComponent{constructor(e){super("dc:description"),this.root.push(e)}}t.Description=u;class l extends n.XmlComponent{constructor(e){super("cp:lastModifiedBy"),this.root.push(e)}}t.LastModifiedBy=l;class h extends n.XmlComponent{constructor(e){super("cp:revision"),this.root.push(e)}}t.Revision=h;class p extends n.XmlComponent{getCurrentDate(){const e=new Date;return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+"Z"}}t.DateComponent=p,t.Created=class extends p{constructor(){super("dcterms:created"),this.root.push(new o.DocumentAttributes({type:"dcterms:W3CDTF"})),this.root.push(this.getCurrentDate())}},t.Modified=class extends p{constructor(){super("dcterms:modified"),this.root.push(new o.DocumentAttributes({type:"dcterms:W3CDTF"})),this.root.push(this.getCurrentDate())}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(312),t),o(r(132),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomProperties=void 0;const n=r(0),o=r(313),s=r(132);class i extends n.XmlComponent{constructor(e){super("Properties"),this.properties=[],this.root.push(new o.CustomPropertiesAttributes({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(e=>this.root.push(e)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new s.CustomProperty(this.nextId++,e))}}t.CustomProperties=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropertiesAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}t.CustomPropertiesAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropertyAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={fmtid:"fmtid",pid:"pid",name:"name"}}}t.CustomPropertyAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=void 0;const n=r(0),o=r(316);class s extends n.InitializableXmlComponent{constructor(e,t){super("w:ftr",t),this.refId=e,t||this.root.push(new o.FooterAttributes({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}}t.Footer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FooterAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"}}}t.FooterAttributes=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FootnotesWrapper=void 0;const n=r(133),o=r(15);t.FootnotesWrapper=class{constructor(){this.footnotess=new n.FootNotes,this.relationships=new o.Relationships}get View(){return this.footnotess}get Relationships(){return this.relationships}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Footnote=t.FootnoteType=void 0;const n=r(0),o=r(319),s=r(320);!function(e){e.SEPERATOR="separator",e.CONTINUATION_SEPERATOR="continuationSeparator"}(t.FootnoteType||(t.FootnoteType={}));class i extends n.XmlComponent{constructor(e){super("w:footnote"),this.root.push(new o.FootnoteAttributes({type:e.type,id:e.id}));for(let t=0;te.charCodeAt(0))):new(r(4).Buffer)(e,"base64")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORKAROUND2=void 0,t.WORKAROUND2=""},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Numbering=void 0;const n=r(3),o=r(1),s=r(0),i=r(11),a=r(135),c=r(47),u=r(136);class l extends s.XmlComponent{constructor(e){super("w:numbering"),this.abstractNumberingMap=new Map,this.concreteNumberingMap=new Map,this.root.push(new i.DocumentAttributes({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new a.AbstractNumbering(n.uniqueNumericId(),[{level:0,format:c.LevelFormat.BULLET,text:"\u25cf",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:n.convertInchesToTwip(.5),hanging:n.convertInchesToTwip(.25)}}}},{level:1,format:c.LevelFormat.BULLET,text:"\u25cb",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:n.convertInchesToTwip(1),hanging:n.convertInchesToTwip(.25)}}}},{level:2,format:c.LevelFormat.BULLET,text:"\u25a0",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:2160,hanging:n.convertInchesToTwip(.25)}}}},{level:3,format:c.LevelFormat.BULLET,text:"\u25cf",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:2880,hanging:n.convertInchesToTwip(.25)}}}},{level:4,format:c.LevelFormat.BULLET,text:"\u25cb",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:3600,hanging:n.convertInchesToTwip(.25)}}}},{level:5,format:c.LevelFormat.BULLET,text:"\u25a0",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:4320,hanging:n.convertInchesToTwip(.25)}}}},{level:6,format:c.LevelFormat.BULLET,text:"\u25cf",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:5040,hanging:n.convertInchesToTwip(.25)}}}},{level:7,format:c.LevelFormat.BULLET,text:"\u25cf",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:5760,hanging:n.convertInchesToTwip(.25)}}}},{level:8,format:c.LevelFormat.BULLET,text:"\u25cf",alignment:o.AlignmentType.LEFT,style:{paragraph:{indent:{left:6480,hanging:n.convertInchesToTwip(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new u.ConcreteNumbering({numId:0,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevel:{num:0,start:1}})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new a.AbstractNumbering(n.uniqueNumericId(),r.levels))}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const r=this.abstractNumberingMap.get(e);if(!r)return;const o=`${e}-${t}`;this.concreteNumberingMap.has(o)||this.concreteNumberingMap.set(o,new u.ConcreteNumbering({numId:n.uniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevel:{num:0,start:1}}))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}}t.Numbering=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiLevelType=void 0;const n=r(0);class o extends n.XmlComponent{constructor(e){super("w:multiLevelType"),this.root.push(new n.Attributes({val:e}))}}t.MultiLevelType=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(334),t),o(r(137),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.SettingsAttributes=void 0;const n=r(0),o=r(335),s=r(337),i=r(338),a=r(339),c=r(137);class u extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"}}}t.SettingsAttributes=u;class l extends n.XmlComponent{constructor(e){super("w:settings"),this.root.push(new u({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new o.Compatibility({version:e.compatabilityModeVersion||15})),e.evenAndOddHeaders&&this.root.push(new i.EvenAndOddHeadersAndFooters),this.trackRevisions=new a.TrackRevisions,this.root.push(new s.DisplayBackgroundShape)}addUpdateFields(){this.root.find(e=>e instanceof c.UpdateFields)||this.addChildElement(new c.UpdateFields)}addTrackRevisions(){return this.root.find(e=>e instanceof a.TrackRevisions)||this.addChildElement(this.trackRevisions),this.trackRevisions}}t.Settings=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compatibility=void 0;const n=r(0),o=r(336);class s extends n.XmlComponent{constructor(){super("w:doNotExpandShiftReturn")}}class i extends n.XmlComponent{constructor(e){super("w:compat"),e.doNotExpandShiftReturn&&this.root.push(new s),e.version&&this.root.push(new o.CompatibilitySetting(e.version))}}t.Compatibility=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompatibilitySetting=t.CompatibilitySettingAttributes=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={version:"w:val",name:"w:name",uri:"w:uri"}}}t.CompatibilitySettingAttributes=o;class s extends n.XmlComponent{constructor(e){super("w:compatSetting"),this.root.push(new o({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}t.CompatibilitySetting=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayBackgroundShape=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:displayBackgroundShape")}}t.DisplayBackgroundShape=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvenAndOddHeadersAndFooters=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:evenAndOddHeaders")}}t.EvenAndOddHeadersAndFooters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TrackRevisions=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:trackRevisions")}}t.TrackRevisions=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalStylesFactory=void 0;const n=r(0),o=r(25),s=r(23);t.ExternalStylesFactory=class{newInstance(e){const t=o.xml2js(e,{compact:!1});let r;for(const n of t.elements||[])"w:styles"===n.name&&(r=n);if(void 0===r)throw new Error("can not find styles element");const i=r.elements||[];return new s.Styles({initialStyles:new n.ImportedRootElementAttributes(r.attributes),importedStyles:i.map(e=>n.convertToXmlComponent(e))})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultStylesFactory=void 0;const n=r(11),o=r(124),s=r(123);t.DefaultStylesFactory=class{newInstance(e={}){var t;return{initialStyles:new n.DocumentAttributes({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new o.DocumentDefaults(null!==(t=e.document)&&void 0!==t?t:{}),new s.TitleStyle(Object.assign({run:{size:56}},e.title)),new s.Heading1Style(Object.assign({run:{color:"2E74B5",size:32}},e.heading1)),new s.Heading2Style(Object.assign({run:{color:"2E74B5",size:26}},e.heading2)),new s.Heading3Style(Object.assign({run:{color:"1F4D78",size:24}},e.heading3)),new s.Heading4Style(Object.assign({run:{color:"2E74B5",italics:!0}},e.heading4)),new s.Heading5Style(Object.assign({run:{color:"2E74B5"}},e.heading5)),new s.Heading6Style(Object.assign({run:{color:"1F4D78"}},e.heading6)),new s.StrongStyle(Object.assign({run:{bold:!0}},e.strong)),new s.ListParagraph(e.listParagraph||{}),new s.HyperlinkStyle(e.hyperlink||{}),new s.FootnoteReferenceStyle(e.footnoteReference||{}),new s.FootnoteText(e.footnoteText||{}),new s.FootnoteTextChar(e.footnoteTextChar||{})]}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORKAROUND=void 0,t.WORKAROUND=""},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(344),t),o(r(349),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableOfContents=void 0;const n=r(1),o=r(7),s=r(20),i=r(0),a=r(345),c=r(346),u=r(347);class l extends i.XmlComponent{constructor(e="Table of Contents",t){super("w:sdt"),this.root.push(new u.StructuredDocumentTagProperties(e));const r=new c.StructuredDocumentTagContent,i=new n.Paragraph({children:[new o.Run({children:[new s.Begin(!0),new a.FieldInstruction(t),new s.Separate]})]});r.addChildElement(i);const l=new n.Paragraph({children:[new o.Run({children:[new s.End]})]});r.addChildElement(l),this.root.push(r)}}t.TableOfContents=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldInstruction=void 0;const n=r(9),o=r(0);class s extends o.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class i extends o.XmlComponent{constructor(e={}){super("w:instrText"),this.properties=e,this.root.push(new s({space:n.SpaceType.PRESERVE}));let t="TOC";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+=" \\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&&(t=`${t} \\t "${this.properties.stylesWithLevels.map(e=>`${e.styleName},${e.level}`).join(",")}"`),this.properties.useAppliedParagraphOutlineLevel&&(t+=" \\u"),this.properties.preserveTabInEntries&&(t+=" \\w"),this.properties.preserveNewLineInEntries&&(t+=" \\x"),this.properties.hideTabAndPageNumbersInWebView&&(t+=" \\z"),this.root.push(t)}}t.FieldInstruction=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructuredDocumentTagContent=void 0;const n=r(0);class o extends n.XmlComponent{constructor(){super("w:sdtContent")}}t.StructuredDocumentTagContent=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructuredDocumentTagProperties=void 0;const n=r(0),o=r(348);class s extends n.XmlComponent{constructor(e){super("w:sdtPr"),this.root.push(new o.Alias(e))}}t.StructuredDocumentTagProperties=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;const n=r(0);class o extends n.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={alias:"w:val"}}}class s extends n.XmlComponent{constructor(e){super("w:alias"),this.root.push(new o({alias:e}))}}t.Alias=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleLevel=void 0,t.StyleLevel=class{constructor(e,t){this.styleName=e,this.level=t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=t.Header=void 0,t.Header=class{constructor(e={children:[]}){this.options=e}},t.Footer=class{constructor(e={children:[]}){this.options=e}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(133),t),o(r(352),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(353),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(354),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FootnoteReferenceRun=t.FootnoteReference=t.FootNoteReferenceRunAttributes=void 0;const n=r(7),o=r(68),s=r(0);class i extends s.XmlAttributeComponent{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}t.FootNoteReferenceRunAttributes=i;class a extends s.XmlComponent{constructor(e){super("w:footnoteReference"),this.root.push(new i({id:e}))}}t.FootnoteReference=a;class c extends n.Run{constructor(e){super({}),this.properties.push(new o.Style("FootnoteReference")),this.root.push(new a(e))}}t.FootnoteReferenceRun=c},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(356),t),o(r(357),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertedTextRun=void 0;const n=r(0),o=r(12),s=r(138);class i extends n.XmlComponent{constructor(e){super("w:ins"),this.root.push(new s.ChangeAttributes({id:e.id,author:e.author,date:e.date})),this.addChildElement(new o.TextRun(e))}}t.InsertedTextRun=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeletedTextRun=void 0;const n=r(0),o=r(12),s=r(64),i=r(20),a=r(19),c=r(138),u=r(358),l=r(359);class h extends n.XmlComponent{constructor(e){super("w:del"),this.root.push(new c.ChangeAttributes({id:e.id,author:e.author,date:e.date})),this.deletedTextRunWrapper=new p(e),this.addChildElement(this.deletedTextRunWrapper)}}t.DeletedTextRun=h;class p extends n.XmlComponent{constructor(e){if(super("w:r"),this.root.push(new o.RunProperties(e)),e.children)for(const t of e.children)if("string"!==typeof t)this.root.push(t);else switch(t){case a.PageNumber.CURRENT:this.root.push(new i.Begin),this.root.push(new u.DeletedPage),this.root.push(new i.Separate),this.root.push(new i.End);break;case a.PageNumber.TOTAL_PAGES:this.root.push(new i.Begin),this.root.push(new u.DeletedNumberOfPages),this.root.push(new i.Separate),this.root.push(new i.End);break;case a.PageNumber.TOTAL_PAGES_IN_SECTION:this.root.push(new i.Begin),this.root.push(new u.DeletedNumberOfPagesSection),this.root.push(new i.Separate),this.root.push(new i.End);break;default:this.root.push(new l.DeletedText(t))}else e.text&&this.root.push(new l.DeletedText(e.text));if(e.break)for(let t=0;t(s.forEach((t,n)=>{e.Document.Relationships.createRelationship(r+n,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/"+t.fileName)}),o(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e}),t)))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const t=this.imageReplacer.replace(n,s,r);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:o(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e}),t),path:"word/styles.xml"},Properties:{data:o(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e}),{declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:o(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e}),t),path:"word/numbering.xml"},FileRelationships:{data:o(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e}),t),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((r,n)=>{const s=o(this.formatter.format(r.View,{viewWrapper:r,file:e}),t);return this.imageReplacer.getMediaData(s,e.Media).forEach((e,t)=>{r.Relationships.createRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/"+e.fileName)}),{data:o(this.formatter.format(r.Relationships,{viewWrapper:r,file:e}),t),path:`word/_rels/header${n+1}.xml.rels`}}),FooterRelationships:e.Footers.map((r,n)=>{const s=o(this.formatter.format(r.View,{viewWrapper:r,file:e}),t);return this.imageReplacer.getMediaData(s,e.Media).forEach((e,t)=>{r.Relationships.createRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/"+e.fileName)}),{data:o(this.formatter.format(r.Relationships,{viewWrapper:r,file:e}),t),path:`word/_rels/footer${n+1}.xml.rels`}}),Headers:e.Headers.map((r,n)=>{const s=o(this.formatter.format(r.View,{viewWrapper:r,file:e}),t),i=this.imageReplacer.getMediaData(s,e.Media);return{data:this.imageReplacer.replace(s,i,0),path:`word/header${n+1}.xml`}}),Footers:e.Footers.map((r,n)=>{const s=o(this.formatter.format(r.View,{viewWrapper:r,file:e}),t),i=this.imageReplacer.getMediaData(s,e.Media);return{data:this.imageReplacer.replace(s,i,0),path:`word/footer${n+1}.xml`}}),ContentTypes:{data:o(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e}),t),path:"[Content_Types].xml"},CustomProperties:{data:o(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e}),t),path:"docProps/custom.xml"},AppProperties:{data:o(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e}),t),path:"docProps/app.xml"},FootNotes:{data:o(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e}),t),path:"word/footnotes.xml"},FootNotesRelationships:{data:o(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e}),t),path:"word/_rels/footnotes.xml.rels"},Settings:{data:o(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e}),t),path:"word/settings.xml"}}}}},function(e,t,r){(function(t){var n=r(366),o=r(53).Stream;function s(e,t,r){r=r||0;var o,i,a=(o=t,new Array(r||0).join(o||"")),c=e;if("object"===typeof e&&(c=e[i=Object.keys(e)[0]])&&c._elem)return c._elem.name=i,c._elem.icount=r,c._elem.indent=t,c._elem.indents=a,c._elem.interrupt=c,c._elem;var u,l=[],h=[];function p(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return e+'="'+n(t)+'"'}(t,e[t]))}))}switch(typeof c){case"object":if(null===c)break;c._attr&&p(c._attr),c._cdata&&h.push(("/g,"]]]]>")+"]]>"),c.forEach&&(u=!1,h.push(""),c.forEach((function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?p(e._attr):h.push(s(e,t,r+1)):(h.pop(),u=!0,h.push(n(e)))})),u||h.push(""));break;default:h.push(n(c))}return{name:i,interrupt:!1,attributes:l,content:h,icount:r,indents:a,indent:t}}function i(e,t,r){if("object"!=typeof t)return e(!1,t);var n=t.interrupt?1:t.content.length;function o(){for(;t.content.length;){var o=t.content.shift();if(void 0!==o){if(s(o))return;i(e,o)}}e(!1,(n>1?t.indents:"")+(t.name?"":"")+(t.indent&&!r?"\n":"")),r&&r()}function s(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=o,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?"\n":"")),!n)return e(!1,t.indent?"\n":"");s(t)||o()}e.exports=function(e,r){"object"!==typeof r&&(r={indent:r});var n=r.stream?new o:null,a="",c=!1,u=r.indent?!0===r.indent?" ":r.indent:"",l=!0;function h(e){l?t.nextTick(e):e()}function p(e,t){if(void 0!==t&&(a+=t),e&&!c&&(n=n||new o,c=!0),e&&c){var r=a;h((function(){n.emit("data",r)})),a=""}}function d(e,t){i(p,s(e,u,u?1:0),t)}function f(){if(n){var e=a;h((function(){n.emit("data",e),n.emit("end"),n.readable=!1,n.emit("close")}))}}return h((function(){l=!1})),r.declaration&&function(e){var t={version:"1.0",encoding:e.encoding||"UTF-8"};e.standalone&&(t.standalone=e.standalone),d({"?xml":{_attr:t}}),a=a.replace("/>","?>")}(r.declaration),e&&e.forEach?e.forEach((function(t,r){var n;r+1===e.length&&(n=f),d(t,n)})):d(e,f),n?(n.readable=!0,n):a},e.exports.element=e.exports.Element=function(){var e=Array.prototype.slice.call(arguments),t={_elem:s(e),push:function(e){if(!this.append)throw new Error("not assigned to a parent!");var t=this,r=this._elem.indent;i(this.append,s(e,r,this._elem.icount+(r?1:0)),(function(){t.append(!0)}))},close:function(e){void 0!==e&&this.push(e),this.end&&this.end()}};return t}}).call(t,r(13))},function(e,t){var r={"&":"&",'"':""","'":"'","<":"<",">":">"};e.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,t){return r[t]})):e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formatter=void 0,t.Formatter=class{format(e,t={}){const r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageReplacer=void 0,t.ImageReplacer=class{replace(e,t,r){let n=e;return t.forEach((e,t)=>{n=n.replace(new RegExp(`{${e.fileName}}`,"g"),(r+t).toString())}),n}getMediaData(e,t){return t.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingReplacer=void 0,t.NumberingReplacer=class{replace(e,t){let r=e;for(const n of t)r=r.replace(new RegExp(`{${n.reference}-${n.instance}}`,"g"),n.numId.toString());return r}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(371),t)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,s){function i(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ImportDotx=void 0;const o=r(139),s=r(25),i=r(44),a=r(45),c=r(46),u=r(35),l=r(0),h={"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header":"header","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer":"footer","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":"image","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink":"hyperlink"};var p;!function(e){e.HEADER="header",e.FOOTER="footer",e.IMAGE="image",e.HYPERLINK="hyperlink"}(p||(p={})),t.ImportDotx=class{extract(e){return n(this,void 0,void 0,(function*(){const t=yield o.loadAsync(e),r=yield t.files["word/document.xml"].async("text"),n=yield t.files["word/_rels/document.xml.rels"].async("text"),s=this.extractDocumentRefs(r),i=this.findReferenceFiles(n),a=new c.Media;return{headers:yield this.createHeaders(t,s,i,a,0),footers:yield this.createFooters(t,s,i,a,s.headers.length),currentRelationshipId:s.footers.length+s.headers.length,styles:yield t.files["word/styles.xml"].async("text"),titlePageIsDefined:this.checkIfTitlePageIsDefined(r),media:a}}))}createFooters(e,t,r,o,a){return n(this,void 0,void 0,(function*(){const c=t.footers.map((t,c)=>n(this,void 0,void 0,(function*(){const n=r.find(e=>e.id===t.id);if(null===n||!n)throw new Error("Can not find target file for id "+t.id);const u=yield e.files["word/"+n.target].async("text"),h=s.xml2js(u,{compact:!1,captureSpacesBetweenElements:!0});if(!h.elements)return;const p=h.elements.reduce((e,t)=>"w:ftr"===t.name?t:e),d=l.convertToXmlComponent(p),f=new i.FooterWrapper(o,a+c,d);return yield this.addRelationshipToWrapper(n,e,f,o),{type:t.type,footer:f}}))).filter(e=>!!e);return Promise.all(c)}))}createHeaders(e,t,r,o,i){return n(this,void 0,void 0,(function*(){const c=t.headers.map((t,c)=>n(this,void 0,void 0,(function*(){const n=r.find(e=>e.id===t.id);if(null===n||!n)throw new Error("Can not find target file for id "+t.id);const u=yield e.files["word/"+n.target].async("text"),h=s.xml2js(u,{compact:!1,captureSpacesBetweenElements:!0});if(!h.elements)return;const p=h.elements.reduce((e,t)=>"w:hdr"===t.name?t:e),d=l.convertToXmlComponent(p),f=new a.HeaderWrapper(o,i+c,d);return yield this.addRelationshipToWrapper(n,e,f,o),{type:t.type,header:f}}))).filter(e=>!!e);return Promise.all(c)}))}addRelationshipToWrapper(e,t,r,o){return n(this,void 0,void 0,(function*(){const n=t.files[`word/_rels/${e.target}.rels`];if(!n)return;const s=yield n.async("text"),i=this.findReferenceFiles(s).filter(e=>e.type===p.IMAGE),a=this.findReferenceFiles(s).filter(e=>e.type===p.HYPERLINK);for(const e of i){const n=yield t.files["word/"+e.target].async("nodebuffer"),s=o.addMedia(n,{width:100,height:100});r.Relationships.createRelationship(e.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/"+s.fileName)}for(const e of a)r.Relationships.createRelationship(e.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.target,u.TargetModeType.EXTERNAL)}))}findReferenceFiles(e){const t=s.xml2js(e,{compact:!0});return(Array.isArray(t.Relationships.Relationship)?t.Relationships.Relationship:[t.Relationships.Relationship]).map(e=>{if(void 0===e._attributes)throw Error("relationship element has no attributes");return{id:this.parseRefId(e._attributes.Id),type:h[e._attributes.Type],target:e._attributes.Target}}).filter(e=>null!==e.type)}extractDocumentRefs(e){const t=s.xml2js(e,{compact:!0})["w:document"]["w:body"]["w:sectPr"],r=t["w:headerReference"];let n;n=void 0===r?[]:Array.isArray(r)?r:[r];const o=n.map(e=>{if(void 0===e._attributes)throw Error("header referecne element has no attributes");return{type:e._attributes["w:type"],id:this.parseRefId(e._attributes["r:id"])}}),i=t["w:footerReference"];let a;return a=void 0===i?[]:Array.isArray(i)?i:[i],{headers:o,footers:a.map(e=>{if(void 0===e._attributes)throw Error("footer referecne element has no attributes");return{type:e._attributes["w:type"],id:this.parseRefId(e._attributes["r:id"])}})}}checkIfTitlePageIsDefined(e){return void 0!==s.xml2js(e,{compact:!0})["w:document"]["w:body"]["w:sectPr"]["w:titlePg"]}parseRefId(e){const t=/^rId(\d+)$/.exec(e);if(null===t)throw new Error("Invalid ref id");return parseInt(t[1],10)}}}])},e.exports=n()}}]);