1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./x7jrRvoU.js","./BpPWnWoA.js","./entry.C-j0FPjg.css","./DZw1i4Sq.js"])))=>i.map(i=>d[i]); 2import{al as Sn,am as _s,c as Fe,b as mr,o as be,w as Ze,h as ge,j as We,at as Va,k as Se,ap as Ga,n as qa,bb as $a,T as _t,c3 as wt,ce as Gt,cf as qt,cr as $t,cs as Bn,r as Ve,u as Pn,z as _e,M as De,B as ve,F as Me,A as dt,bB as xs,ct as Ln,cu as Xa,cv as Za,J as Ya,ab as Ja,ch as Qa,L as eo,cw as to,s as Nr,cx as Mt,cy as er,cz as ro,bf as no,cA as tr,V as jt,bn as io,cB as so,cC as ao,c4 as rr,v as oo,cD as uo,cE as lo}from"#entry";import{a as co,_ as fo}from"./CGe_xyEl.js";import{_ as nr}from"./DD4XQldF.js";import{m as _r,j as ho,i as po,b as mo,t as wo,n as li}from"./4ZFq2pOT.js";import{r as Ft,a as Un,n as Mn,u as go}from"./IWwiQ3ZK.js";import{r as yo}from"./TVqaU9bK.js";import"./BrLhZk-K.js";import"./C65s_fHi.js";import"./C5Y1Aug-.js";import"./TG6Vq8Xg.js";import"./DQyxhsdq.js";import"./BYfu-SCU.js";import"./lfMCpk41.js";import"./B7KryvF9.js";import"./CLMpSiT6.js";import"./1AlW6HdF.js";import"./6qLrMlnH.js";import"./BRRLZ7MH.js";import"./B7fMlV7y.js";import"./g8GAfrL0.js";import"./CMvwrFTt.js";import"./CNr1nkuz.js";import"./TDtrdbi3.js";const vo={class:"flex flex-grow flex-nowrap"},bo={__name:"BaseButtonOpenable",props:Sn({disabled:{type:Boolean,default:!1},type:{type:String,default:"primary"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:Sn(["open","close"],["update:modelValue"]),setup(t,{emit:e}){const r=_s(t,"modelValue"),a=e,l=t,o={primary:"bg-black hover:bg-gray-800","neutral-light":"bg-tertiary hover:bg-gray-200",secondary:"bg-primary hover:bg-secondary",tertiary:" "},u={primary:"stroke-icon-white",secondary:"stroke-icon-black","neutral-light":"stroke-icon-gray-darker",tertiary:"stroke-icon-black"},s=Fe(()=>o[l.type]||o.primary),c=Fe(()=>r.value?s.value:""),v=Fe(()=>u[l.type]||u.primary),b=()=>{r.value?a("close"):a("open"),r.value=!r.value};return(S,A)=>(be(),mr(_t,$a(S.$props,{class:[c.value],type:l.type,disabled:l.disabled,onClick:A[0]||(A[0]=w=>l?.disabled||b())}),{default:Ze(()=>[ge("div",vo,[Va(S.$slots,"default")]),We(Se(Ga),{class:qa(["ml-2.5 h-5 w-5 transition-transform",[v.value,{"rotate-90":!r.value,"-rotate-90":r.value}]])},null,8,["class"])]),_:3},16,["class","type","disabled"]))}};var _o=Object.defineProperty,xo=Object.defineProperties,Eo=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Tn=(t,e,r)=>e in t?_o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,xe=(t,e)=>{for(var r in e||(e={}))Ao.call(e,r)&&Tn(t,r,e[r]);if(ci)for(var r of ci(e))So.call(e,r)&&Tn(t,r,e[r]);return t},Vt=(t,e)=>xo(t,Eo(e)),re=(t,e,r)=>(Tn(t,typeof e!="symbol"?e+"":e,r),r),ir=(t,e,r)=>new Promise((a,l)=>{var o=c=>{try{s(r.next(c))}catch(v){l(v)}},u=c=>{try{s(r.throw(c))}catch(v){l(v)}},s=c=>c.done?a(c.value):Promise.resolve(c.value).then(o,u);s((r=r.apply(t,e)).next())});class yr{constructor(e){re(this,"rootKey"),this.rootKey=e}}const To=Object.seal({});class se extends yr{constructor(e){super(e),re(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const a=this.root.map(l=>l instanceof yr?l.prepForXml(e):l).filter(l=>l!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((r=a[0])!=null&&r._attr)?a[0]:a:To}}addChildElement(e){return this.root.push(e),this}}class xr extends se{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class pe extends yr{constructor(e){super("_attr"),re(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(a=>{const l=this.root[a];if(l!==void 0){const o=this.xmlKeys&&this.xmlKeys[a]||a;r[o]=l}}),{_attr:r}}}class Xt extends yr{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:l,value:o})=>Vt(xe({},a),{[l]:o}),{})}}}class Ne extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Es(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var As={},jn={exports:{}},xt=typeof Reflect=="object"?Reflect:null,fi=xt&&typeof xt.apply=="function"?xt.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},wr;xt&&typeof xt.ownKeys=="function"?wr=xt.ownKeys:Object.getOwnPropertySymbols?wr=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:wr=function(e){return Object.getOwnPropertyNames(e)};function ko(t){console&&console.warn&&console.warn(t)}var Ss=Number.isNaN||function(e){return e!==e};function Ae(){Ae.init.call(this)}jn.exports=Ae;jn.exports.once=No;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var hi=10;function Er(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return hi}
vendor: 11,123 bytes, lines 2-7
2,set:function(t){if(typeof t!="number"||t<0||Ss(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");hi=t}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Ss(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ts(t){return t._maxListeners===void 0?Ae.defaultMaxListeners:t._maxListeners}Ae.prototype.getMaxListeners=function(){return Ts(this)};Ae.prototype.emit=function(e){for(var r=[],a=1;a<arguments.length;a++)r.push(arguments[a]);var l=e==="error",o=this._events;if(o!==void 0)l=l&&o.error===void 0;else if(!l)return!1;if(l){var u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var s=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw s.context=u,s}var c=o[e];if(c===void 0)return!1;if(typeof c=="function")fi(c,this,r);else for(var v=c.length,b=Ns(c,v),a=0;a<v;++a)fi(b[a],this,r);return!0};function ks(t,e,r,a){var l,o,u;if(Er(r),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),u=o[e]),u===void 0)u=o[e]=r,++t._eventsCount;else if(typeof u=="function"?u=o[e]=a?[r,u]:[u,r]:a?u.unshift(r):u.push(r),l=Ts(t),l>0&&u.length>l&&!u.warned){u.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=u.length,ko(s)}return t}Ae.prototype.addListener=function(e,r){return ks(this,e,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(e,r){return ks(this,e,r,!0)};function Ro(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Rs(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=Ro.bind(a);return l.listener=r,a.wrapFn=l,l}Ae.prototype.once=function(e,r){return Er(r),this.on(e,Rs(this,e,r)),this};Ae.prototype.prependOnceListener=function(e,r){return Er(r),this.prependListener(e,Rs(this,e,r)),this};Ae.prototype.removeListener=function(e,r){var a,l,o,u,s;if(Er(r),l=this._events,l===void 0)return this;if(a=l[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(o=-1,u=a.length-1;u>=0;u--)if(a[u]===r||a[u].listener===r){s=a[u].listener,o=u;break}if(o<0)return this;o===0?a.shift():Co(a,o),a.length===1&&(l[e]=a[0]),l.removeListener!==void 0&&this.emit("removeListener",e,s||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(e){var r,a,l;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var o=Object.keys(a),u;for(l=0;l<o.length;++l)u=o[l],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=a[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(l=r.length-1;l>=0;l--)this.removeListener(e,r[l]);return this};function Cs(t,e,r){var a=t._events;if(a===void 0)return[];var l=a[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?Io(l):Ns(l,l.length)}Ae.prototype.listeners=function(e){return Cs(this,e,!0)};Ae.prototype.rawListeners=function(e){return Cs(this,e,!1)};Ae.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Is.call(t,e)};Ae.prototype.listenerCount=Is;function Is(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?wr(this._events):[]};function Ns(t,e){for(var r=new Array(e),a=0;a<e;++a)r[a]=t[a];return r}function Co(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Io(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function No(t,e){return new Promise(function(r,a){function l(u){t.removeListener(e,o),a(u)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",l),r([].slice.call(arguments))}Os(t,e,o,{once:!0}),e!=="error"&&Oo(t,l,{once:!0})})}function Oo(t,e,r){typeof t.on=="function"&&Os(t,"error",e,r)}function Os(t,e,r,a){if(typeof t.on=="function")a.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function l(o){a.once&&t.removeEventListener(e,l),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var zn=jn.exports,kn={exports:{}};typeof Object.create=="function"?kn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:kn.exports=function(e,r){if(r){e.super_=r;var a=function(){};a.prototype=r.prototype,e.prototype=new a,e.prototype.constructor=e}};var gt=kn.exports;function Fo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fs={exports:{}},Oe=Fs.exports={},Je,Qe;function Rn(){throw new Error("setTimeout has not been defined")}function Cn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Je=setTimeout:Je=Rn}catch{Je=Rn}try{typeof clearTimeout=="function"?Qe=clearTimeout:Qe=Cn}catch{Qe=Cn}})();function Ds(t){if(Je===setTimeout)return setTimeout(t,0);if((Je===Rn||!Je)&&setTimeout)return Je=setTimeout,setTimeout(t,0);try{return Je(t,0)}catch{try{return Je.call(null,t,0)}catch{return Je.call(this,t,0)}}}function Do(t){if(Qe===clearTimeout)return clearTimeout(t);if((Qe===Cn||!Qe)&&clearTimeout)return Qe=clearTimeout,clearTimeout(t);try{return Qe(t)}catch{try{return Qe.call(null,t)}catch{return Qe.call(this,t)}}}var it=[],Et=!1,pt,gr=-1;function Bo(){!Et||!pt||(Et=!1,pt.length?it=pt.concat(it):gr=-1,it.length&&Bs())}function Bs(){if(!Et){var t=Ds(Bo);Et=!0;for(var e=it.length;e;){for(pt=it,it=[];++gr<e;)pt&&pt[gr].run();gr=-1,e=it.length}pt=null,Et=!1,Do(t)}}Oe.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];it.push(new Ps(t,e)),it.length===1&&!Et&&Ds(Bs)};function Ps(t,e){this.fun=t,this.array=e}Ps.prototype.run=function(){this.fun.apply(null,this.array)};Oe.title="browser";Oe.browser=!0;Oe.env={};Oe.argv=[];Oe.version="";Oe.versions={};function at(){}Oe.on=at;Oe.addListener=at;Oe.once=at;Oe.off=at;Oe.removeListener=at;Oe.removeAllListeners=at;Oe.emit=at;Oe.prependListener=at;Oe.prependOnceListener=at;Oe.listeners=function(t){return[]};Oe.binding=function(t){throw new Error("process.binding is not supported")};Oe.cwd=function(){return"/"};Oe.chdir=function(t){throw new Error("process.chdir is not supported")};Oe.umask=function(){return 0};var Po=Fs.exports;const ye=Fo(Po);var Or,di;function Ls(){return di||(di=1,Or=zn.EventEmitter),Or}var Fr={},zt={},pi;function Lo(){if(pi)return zt;pi=1,zt.byteLength=s,zt.toByteArray=v,zt.fromByteArray=A;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,o=a.length;l<o;++l)t[l]=a[l],e[a.charCodeAt(l)]=l;e[45]=62,e[95]=63;function u(w){var E=w.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=w.indexOf("=");y===-1&&(y=E);var T=y===E?0:4-y%4;return[y,T]}function s(w){var E=u(w),y=E[0],T=E[1];return(y+T)*3/4-T}function c(w,E,y){return(E+y)*3/4-y}function v(w){var E,y=u(w),T=y[0],p=y[1],x=new r(c(w,T,p)),R=0,F=p>0?T-4:T,P;for(P=0;P<F;P+=4)E=e[w.charCodeAt(P)]<<18|e[w.charCodeAt(P+1)]<<12|e[w.charCodeAt(P+2)]<<6|e[w.charCodeAt(P+3)],x[R++]=E>>16&255,x[R++]=E>>8&255,x[R++]=E&255;return p===2&&(E=e[w.charCodeAt(P)]<<2|e[w.charCodeAt(P+1)]>>4,x[R++]=E&255),p===1&&(E=e[w.charCodeAt(P)]<<10|e[w.charCodeAt(P+1)]<<4|e[w.charCodeAt(P+2)]>>2,x[R++]=E>>8&255,x[R++]=E&255),x}function b(w){return t[w>>18&63]+t[w>>12&63]+t[w>>6&63]+t[w&63]}function S(w,E,y){for(var T,p=[],x=E;x<y;x+=3)T=(w[x]<<16&16711680)+(w[x+1]<<8&65280)+(w[x+2]&255),p.push(b(T));return p.join("")}function A(w){for(var E,y=w.length,T=y%3,p=[],x=16383,R=0,F=y-T;R<F;R+=x)p.push(S(w,R,R+x>F?F:R+x));return T===1?(E=w[y-1],p.push(t[E>>2]+t[E<<4&63]+"==")):T===2&&(E=(w[y-2]<<8)+w[y-1],p.push(t[E>>10]+t[E>>4&63]+t[E<<2&63]+"=")),p.join("")}return zt}var sr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var mi;function Uo(){return mi||(mi=1,sr.read=function(t,e,r,a,l){var o,u,s=l*8-a-1,c=(1<<s)-1,v=c>>1,b=-7,S=r?l-1:0,A=r?-1:1,w=t[e+S];for(S+=A,o=w&(1<<-b)-1,w>>=-b,b+=s;b>0;o=o*256+t[e+S],S+=A,b-=8);for(u=o&(1<<-b)-1,o>>=-b,b+=a;b>0;u=u*256+t[e+S],S+=A,b-=8);if(o===0)o=1-v;else{if(o===c)return u?NaN:(w?-1:1)*(1/0);u=u+Math.pow(2,a),o=o-v}return(w?-1:1)*u*Math.pow(2,o-a)},sr.write=function(t,e,r,a,l,o){var u,s,c,v=o*8-l-1,b=(1<<v)-1,S=b>>1,A=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=a?0:o-1,E=a?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,u=b):(u=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+S>=1?e+=A/c:e+=A*Math.pow(2,1-S),e*c>=2&&(u++,c/=2),u+S>=b?(s=0,u=b):u+S>=1?(s=(e*c-1)*Math.pow(2,l),u=u+S):(s=e*Math.pow(2,S-1)*Math.pow(2,l),u=0));l>=8;t[r+w]=s&255,w+=E,s/=256,l-=8);for(u=u<<l|s,v+=l;v>0;t[r+w]=u&255,w+=E,u/=256,v-=8);t[r+w-E]|=y*128}),sr}/*! 3 * The buffer module from node.js, for the browser. 4 * 5 * @author Feross Aboukhadijeh <https://feross.org> 6 * @license MIT 7 */var wi;function Ar(){return wi||(wi=1,(function(t){var e=Lo(),r=Uo(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=x,t.INSPECT_MAX_BYTES=50;var l=2147483647;t.kMaxLength=l,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var g=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(g,n),g.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function u(g){if(g>
vendor: 18,580 bytes, line 7
7l)throw new RangeError('The value "'+g+'" is invalid for option "size"');var n=new Uint8Array(g);return Object.setPrototypeOf(n,s.prototype),n}function s(g,n,i){if(typeof g=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(g)}return c(g,n,i)}s.poolSize=8192;function c(g,n,i){if(typeof g=="string")return A(g,n);if(ArrayBuffer.isView(g))return E(g);if(g==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(Y(g,ArrayBuffer)||g&&Y(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Y(g,SharedArrayBuffer)||g&&Y(g.buffer,SharedArrayBuffer)))return y(g,n,i);if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=g.valueOf&&g.valueOf();if(f!=null&&f!==g)return s.from(f,n,i);var O=T(g);if(O)return O;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof g[Symbol.toPrimitive]=="function")return s.from(g[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}s.from=function(g,n,i){return c(g,n,i)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function v(g){if(typeof g!="number")throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function b(g,n,i){return v(g),g<=0?u(g):n!==void 0?typeof i=="string"?u(g).fill(n,i):u(g).fill(n):u(g)}s.alloc=function(g,n,i){return b(g,n,i)};function S(g){return v(g),u(g<0?0:p(g)|0)}s.allocUnsafe=function(g){return S(g)},s.allocUnsafeSlow=function(g){return S(g)};function A(g,n){if((typeof n!="string"||n==="")&&(n="utf8"),!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var i=R(g,n)|0,f=u(i),O=f.write(g,n);return O!==i&&(f=f.slice(0,O)),f}function w(g){for(var n=g.length<0?0:p(g.length)|0,i=u(n),f=0;f<n;f+=1)i[f]=g[f]&255;return i}function E(g){if(Y(g,Uint8Array)){var n=new Uint8Array(g);return y(n.buffer,n.byteOffset,n.byteLength)}return w(g)}function y(g,n,i){if(n<0||g.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<n+(i||0))throw new RangeError('"length" is outside of buffer bounds');var f;return n===void 0&&i===void 0?f=new Uint8Array(g):i===void 0?f=new Uint8Array(g,n):f=new Uint8Array(g,n,i),Object.setPrototypeOf(f,s.prototype),f}function T(g){if(s.isBuffer(g)){var n=p(g.length)|0,i=u(n);return i.length===0||g.copy(i,0,0,n),i}if(g.length!==void 0)return typeof g.length!="number"||h(g.length)?u(0):w(g);if(g.type==="Buffer"&&Array.isArray(g.data))return w(g.data)}function p(g){if(g>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return g|0}function x(g){return+g!=g&&(g=0),s.alloc(+g)}s.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==s.prototype},s.compare=function(n,i){if(Y(n,Uint8Array)&&(n=s.from(n,n.offset,n.byteLength)),Y(i,Uint8Array)&&(i=s.from(i,i.offset,i.byteLength)),!s.isBuffer(n)||!s.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;for(var f=n.length,O=i.length,W=0,L=Math.min(f,O);W<L;++W)if(n[W]!==i[W]){f=n[W],O=i[W];break}return f<O?-1:O<f?1:0},s.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(n,i){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return s.alloc(0);var f;if(i===void 0)for(i=0,f=0;f<n.length;++f)i+=n[f].length;var O=s.allocUnsafe(i),W=0;for(f=0;f<n.length;++f){var L=n[f];if(Y(L,Uint8Array))W+L.length>O.length?s.from(L).copy(O,W):Uint8Array.prototype.set.call(O,L,W);else if(s.isBuffer(L))L.copy(O,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=L.length}return O};function R(g,n){if(s.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||Y(g,ArrayBuffer))return g.byteLength;if(typeof g!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);var i=g.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&i===0)return 0;for(var O=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return d(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return I(g).length;default:if(O)return f?-1:d(g).length;n=(""+n).toLowerCase(),O=!0}}s.byteLength=R;function F(g,n,i){var f=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(g||(g="utf8");;)switch(g){case"hex":return ee(this,n,i);case"utf8":case"utf-8":return _(this,n,i);case"ascii":return X(this,n,i);case"latin1":case"binary":return he(this,n,i);case"base64":return V(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,n,i);default:if(f)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),f=!0}}s.prototype._isBuffer=!0;function P(g,n,i){var f=g[n];g[n]=g[i],g[i]=f}s.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<n;i+=2)P(this,i,i+1);return this},s.prototype.swap32=function(){var n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<n;i+=4)P(this,i,i+3),P(this,i+1,i+2);return this},s.prototype.swap64=function(){var n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<n;i+=8)P(this,i,i+7),P(this,i+1,i+6),P(this,i+2,i+5),P(this,i+3,i+4);return this},s.prototype.toString=function(){var n=this.length;return n===0?"":arguments.length===0?_(this,0,n):F.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(n){if(!s.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:s.compare(this,n)===0},s.prototype.inspect=function(){var n="",i=t.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(n,i,f,O,W){if(Y(n,Uint8Array)&&(n=s.from(n,n.offset,n.byteLength)),!s.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(i===void 0&&(i=0),f===void 0&&(f=n?n.length:0),O===void 0&&(O=0),W===void 0&&(W=this.length),i<0||f>n.length||O<0||W>this.length)throw new RangeError("out of range index");if(O>=W&&i>=f)return 0;if(O>=W)return-1;if(i>=f)return 1;if(i>>>=0,f>>>=0,O>>>=0,W>>>=0,this===n)return 0;for(var L=W-O,te=f-i,oe=Math.min(L,te),ne=this.slice(O,W),ce=n.slice(i,f),de=0;de<oe;++de)if(ne[de]!==ce[de]){L=ne[de],te=ce[de];break}return L<te?-1:te<L?1:0};function $(g,n,i,f,O){if(g.length===0)return-1;if(typeof i=="string"?(f=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,h(i)&&(i=O?0:g.length-1),i<0&&(i=g.length+i),i>=g.length){if(O)return-1;i=g.length-1}else if(i<0)if(O)i=0;else return-1;if(typeof n=="string"&&(n=s.from(n,f)),s.isBuffer(n))return n.length===0?-1:K(g,n,i,f,O);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?O?Uint8Array.prototype.indexOf.call(g,n,i):Uint8Array.prototype.lastIndexOf.call(g,n,i):K(g,[n],i,f,O);throw new TypeError("val must be string, number or Buffer")}function K(g,n,i,f,O){var W=1,L=g.length,te=n.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(g.length<2||n.length<2)return-1;W=2,L/=2,te/=2,i/=2}function oe(Le,ot){return W===1?Le[ot]:Le.readUInt16BE(ot*W)}var ne;if(O){var ce=-1;for(ne=i;ne<L;ne++)if(oe(g,ne)===oe(n,ce===-1?0:ne-ce)){if(ce===-1&&(ce=ne),ne-ce+1===te)return ce*W}else ce!==-1&&(ne-=ne-ce),ce=-1}else for(i+te>L&&(i=L-te),ne=i;ne>=0;ne--){for(var de=!0,me=0;me<te;me++)if(oe(g,ne+me)!==oe(n,me)){de=!1;break}if(de)return ne}return-1}s.prototype.includes=function(n,i,f){return this.indexOf(n,i,f)!==-1},s.prototype.indexOf=function(n,i,f){return $(this,n,i,f,!0)},s.prototype.lastIndexOf=function(n,i,f){return $(this,n,i,f,!1)};function J(g,n,i,f){i=Number(i)||0;var O=g.length-i;f?(f=Number(f),f>O&&(f=O)):f=O;var W=n.length;f>W/2&&(f=W/2);for(var L=0;L<f;++L){var te=parseInt(n.substr(L*2,2),16);if(h(te))return L;g[i+L]=te}return L}function C(g,n,i,f){return N(d(n,g.length-i),g,i,f)}function ie(g,n,i,f){return N(M(n),g,i,f)}function ue(g,n,i,f){return N(I(n),g,i,f)}function D(g,n,i,f){return N(B(n,g.length-i),g,i,f)}s.prototype.write=function(n,i,f,O){if(i===void 0)O="utf8",f=this.length,i=0;else if(f===void 0&&typeof i=="string")O=i,f=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(f)?(f=f>>>0,O===void 0&&(O="utf8")):(O=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-i;if((f===void 0||f>W)&&(f=W),n.length>0&&(f<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");O||(O="utf8");for(var L=!1;;)switch(O){case"hex":return J(this,n,i,f);case"utf8":case"utf-8":return C(this,n,i,f);case"ascii":case"latin1":case"binary":return ie(this,n,i,f);case"base64":return ue(this,n,i,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,n,i,f);default:if(L)throw new TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),L=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(g,n,i){return n===0&&i===g.length?e.fromByteArray(g):e.fromByteArray(g.slice(n,i))}function _(g,n,i){i=Math.min(g.length,i);for(var f=[],O=n;O<i;){var W=g[O],L=null,te=W>239?4:W>223?3:W>191?2:1;if(O+te<=i){var oe,ne,ce,de;switch(te){case 1:W<128&&(L=W);break;case 2:oe=g[O+1],(oe&192)===128&&(de=(W&31)<<6|oe&63,de>127&&(L=de));break;case 3:oe=g[O+1],ne=g[O+2],(oe&192)===128&&(ne&192)===128&&(de=(W&15)<<12|(oe&63)<<6|ne&63,de>2047&&(de<55296||de>57343)&&(L=de));break;case 4:oe=g[O+1],ne=g[O+2],ce=g[O+3],(oe&192)===128&&(ne&192)===128&&(ce&192)===128&&(de=(W&15)<<18|(oe&63)<<12|(ne&63)<<6|ce&63,de>65535&&de<1114112&&(L=de))}}L===null?(L=65533,te=1):L>65535&&(L-=65536,f.push(L>>>10&1023|55296),L=56320|L&1023),f.push(L),O+=te}return le(f)}var q=4096;function le(g){var n=g.length;if(n<=q)return String.fromCharCode.apply(String,g);for(var i="",f=0;f<n;)i+=String.fromCharCode.apply(String,g.slice(f,f+=q));return i}function X(g,n,i){var f="";i=Math.min(g.length,i);for(var O=n;O<i;++O)f+=String.fromCharCode(g[O]&127);return f}function he(g,n,i){var f="";i=Math.min(g.length,i);for(var O=n;O<i;++O)f+=String.fromCharCode(g[O]);return f}function ee(g,n,i){var f=g.length;(!n||n<0)&&(n=0),(!i||i<0||i>f)&&(i=f);for(var O="",W=n;W<i;++W)O+=G[g[W]];return O}function fe(g,n,i){for(var f=g.slice(n,i),O="",W=0;W<f.length-1;W+=2)O+=String.fromCharCode(f[W]+f[W+1]*256);return O}s.prototype.slice=function(n,i){var f=this.length;n=~~n,i=i===void 0?f:~~i,n<0?(n+=f,n<0&&(n=0)):n>f&&(n=f),i<0?(i+=f,i<0&&(i=0)):i>f&&(i=f),i<n&&(i=n);var O=this.subarray(n,i);return Object.setPrototypeOf(O,s.prototype),O};function U(g,n,i){if(g%1!==0||g<0)throw new RangeError("offset is not uint");if(g+n>i)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(n,i,f){n=n>>>0,i=i>>>0,f||U(n,i,this.length);for(var O=this[n],W=1,L=0;++L<i&&(W*=256);)O+=this[n+L]*W;return O},s.prototype.readUintBE=s.prototype.readUIntBE=function(n,i,f){n=n>>>0,i=i>>>0,f||U(n,i,this.length);for(var O=this[n+--i],W=1;i>0&&(W*=256);)O+=this[n+--i]*W;return O},s.prototype.readUint8=s.prototype.readUInt8=function(n,i){return n=n>>>0,i||U(n,1,this.length),this[n]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(n,i){return n=n>>>0,i||U(n,2,this.length),this[n]|this[n+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(n,i){return n=n>>>0,i||U(n,2,this.length),this[n]<<8|this[n+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(n,i){return n=n>>>0,i||U(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(n,i){return n=n>>>0,i||U(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},s.prototype.readIntLE=function(n,i,f){n=n>>>0,i=i>>>0,f||U(n,i,this.length);for(var O=this[n],W=1,L=0;++L<i&&(W*=256);)O+=this[n+L]*W;return W*=128,O>=W&&(O-=Math.pow(2,8*i)),O},s.prototype.readIntBE=function(n,i,f){n=n>>>0,i=i>>>0,f||U(n,i,this.length);for(var O=i,W=1,L=this[n+--O];O>0&&(W*=256);)L+=this[n+--O]*W;return W*=128,L>=W&&(L-=Math.pow(2,8*i)),L},s.prototype.readInt8=function(n,i){return n=n>>>0,i||U(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},s.prototype.readInt16LE=function(n,i){n=n>>>0,i||U(n,2,this.length);var f=this[n]|this[n+1]<<8;return f&32768?f|4294901760:f},s.prototype.readInt16BE=function(n,i){n=n>>>0,i||U(n,2,this.length);var f=this[n+1]|this[n]<<8;return f&32768?f|4294901760:f},s.prototype.readInt32LE=function(n,i){return n=n>>>0,i||U(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},s.prototype.readInt32BE=function(n,i){return n=n>>>0,i||U(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},s.prototype.readFloatLE=function(n,i){return n=n>>>0,i||U(n,4,this.length),r.read(this,n,!0,23,4)},s.prototype.readFloatBE=function(n,i){return n=n>>>0,i||U(n,4,this.length),r.read(this,n,!1,23,4)},s.prototype.readDoubleLE=function(n,i){return n=n>>>0,i||U(n,8,this.length),r.read(this,n,!0,52,8)},s.prototype.readDoubleBE=function(n,i){return n=n>>>0,i||U(n,8,this.length),r.read(this,n,!1,52,8)};function k(g,n,i,f,O,W){if(!s.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>O||n<W)throw new RangeError('"value" argument is out of bounds');if(i+f>g.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(n,i,f,O){if(n=+n,i=i>>>0,f=f>>>0,!O){var W=Math.pow(2,8*f)-1;k(this,n,i,f,W,0)}var L=1,te=0;for(this[i]=n&255;++te<f&&(L*=256);)this[i+te]=n/L&255;return i+f},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(n,i,f,O){if(n=+n,i=i>>>0,f=f>>>0,!O){var W=Math.pow(2,8*f)-1;k(this,n,i,f,W,0)}var L=f-1,te=1;for(this[i+L]=n&255;--L>=0&&(te*=256);)this[i+L]=n/te&255;return i+f},s.prototype.writeUint8=s.prototype.writeUInt8=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,1,255,0),this[i]=n&255,i+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,2,65535,0),this[i]=n&255,this[i+1]=n>>>8,i+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=n&255,i+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255,i+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4},s.prototype.writeIntLE=function(n,i,f,O){if(n=+n,i=i>>>0,!O){var W=Math.pow(2,8*f-1);k(this,n,i,f,W-1,-W)}var L=0,te=1,oe=0;for(this[i]=n&255;++L<f&&(te*=256);)n<0&&oe===0&&this[i+L-1]!==0&&(oe=1),this[i+L]=(n/te>>0)-oe&255;return i+f},s.prototype.writeIntBE=function(n,i,f,O){if(n=+n,i=i>>>0,!O){var W=Math.pow(2,8*f-1);k(this,n,i,f,W-1,-W)}var L=f-1,te=1,oe=0;for(this[i+L]=n&255;--L>=0&&(te*=256);)n<0&&oe===0&&this[i+L+1]!==0&&(oe=1),this[i+L]=(n/te>>0)-oe&255;return i+f},s.prototype.writeInt8=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=n&255,i+1},s.prototype.writeInt16LE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,2,32767,-32768),this[i]=n&255,this[i+1]=n>>>8,i+2},s.prototype.writeInt16BE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=n&255,i+2},s.prototype.writeInt32LE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,4,2147483647,-2147483648),this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},s.prototype.writeInt32BE=function(n,i,f){return n=+n,i=i>>>0,f||k(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4};function j(g,n,i,f,O,W){if(i+f>g.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function H(g,n,i,f,O){return n=+n,i=i>>>0,O||j(g,n,i,4),r.write(g,n,i,f,23,4),i+4}s.prototype.writeFloatLE=function(n,i,f){return H(this,n,i,!0,f)},s.prototype.writeFloatBE=function(n,i,f){return H(this,n,i,!1,f)};function Z(g,n,i,f,O){return n=+n,i=i>>>0,O||j(g,n,i,8),r.write(g,n,i,f,52,8),i+8}s.prototype.writeDoubleLE=function(n,i,f){return Z(this,n,i,!0,f)},s.prototype.writeDoubleBE=function(n,i,f){return Z(this,n,i,!1,f)},s.prototype.copy=function(n,i,f,O){if(!s.isBuffer(n))throw new TypeError("argument should be a Buffer");if(f||(f=0),!O&&O!==0&&(O=this.length),i>=n.length&&(i=n.length),i||(i=0),O>0&&O<f&&(O=f),O===f||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(f<0||f>=this.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("sourceEnd out of bounds");O>this.length&&(O=this.length),n.length-i<O-f&&(O=n.length-i+f);var W=O-f;return this===n&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,f,O):Uint8Array.prototype.set.call(n,this.subarray(f,O),i),W},s.prototype.fill=function(n,i,f,O){if(typeof n=="string"){if(typeof i=="string"?(O=i,i=0,f=this.length):typeof f=="string"&&(O=f,f=this.length),O!==void 0&&typeof O!="string")throw new TypeError("encoding must be a string");if(typeof O=="string"&&!s.isEncoding(O))throw new TypeError("Unknown encoding: "+O);if(n.length===1){var W=n.charCodeAt(0);(O==="utf8"&&W<128||O==="latin1")&&(n=W)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(i<0||this.length<i||this.length<f)throw new RangeError("Out of range index");if(f<=i)return this;i=i>>>0,f=f===void 0?this.length:f>>>0,n||(n=0);var L;if(typeof n=="number")for(L=i;L<f;++L)this[L]=n;else{var te=s.isBuffer(n)?n:s.from(n,O),oe=te.length;
7if(oe===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(L=0;L<f-i;++L)this[L+i]=te[L%oe]}return this};var z=/[^+/0-9A-Za-z-_]/g;function m(g){if(g=g.split("=")[0],g=g.trim().replace(z,""),g.length<2)return"";for(;g.length%4!==0;)g=g+"=";return g}function d(g,n){n=n||1/0;for(var i,f=g.length,O=null,W=[],L=0;L<f;++L){if(i=g.charCodeAt(L),i>55295&&i<57344){if(!O){if(i>56319){(n-=3)>-1&&W.push(239,191,189);continue}else if(L+1===f){(n-=3)>-1&&W.push(239,191,189);continue}O=i;continue}if(i<56320){(n-=3)>-1&&W.push(239,191,189),O=i;continue}i=(O-55296<<10|i-56320)+65536}else O&&(n-=3)>-1&&W.push(239,191,189);if(O=null,i<128){if((n-=1)<0)break;W.push(i)}else if(i<2048){if((n-=2)<0)break;W.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;W.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;W.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return W}function M(g){for(var n=[],i=0;i<g.length;++i)n.push(g.charCodeAt(i)&255);return n}function B(g,n){for(var i,f,O,W=[],L=0;L<g.length&&!((n-=2)<0);++L)i=g.charCodeAt(L),f=i>>8,O=i%256,W.push(O),W.push(f);return W}function I(g){return e.toByteArray(m(g))}function N(g,n,i,f){for(var O=0;O<f&&!(O+i>=n.length||O>=g.length);++O)n[O+i]=g[O];return O}function Y(g,n){return g instanceof n||g!=null&&g.constructor!=null&&g.constructor.name!=null&&g.constructor.name===n.name}function h(g){return g!==g}var G=(function(){for(var g="0123456789abcdef",n=new Array(256),i=0;i<16;++i)for(var f=i*16,O=0;O<16;++O)n[f+O]=g[i]+g[O];return n})()})(Fr)),Fr}var Dr={},Br={},Pr,gi;function Us(){return gi||(gi=1,Pr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[r]=l;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==l||u.enumerable!==!0)return!1}return!0}),Pr}var Lr,yi;function Wn(){if(yi)return Lr;yi=1;var t=Us();return Lr=function(){return t()&&!!Symbol.toStringTag},Lr}var Ur,vi;function Mo(){if(vi)return Ur;vi=1;var t=typeof Symbol<"u"&&Symbol,e=Us();return Ur=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ur}var Mr,bi;function jo(){if(bi)return Mr;bi=1;var t={foo:{}},e=Object;return Mr=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Mr}var jr,_i;function zo(){if(_i)return jr;_i=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,a="[object Function]",l=function(c,v){for(var b=[],S=0;S<c.length;S+=1)b[S]=c[S];for(var A=0;A<v.length;A+=1)b[A+c.length]=v[A];return b},o=function(c,v){for(var b=[],S=v,A=0;S<c.length;S+=1,A+=1)b[A]=c[S];return b},u=function(s,c){for(var v="",b=0;b<s.length;b+=1)v+=s[b],b+1<s.length&&(v+=c);return v};return jr=function(c){var v=this;if(typeof v!="function"||e.apply(v)!==a)throw new TypeError(t+v);for(var b=o(arguments,1),S,A=function(){if(this instanceof S){var p=v.apply(this,l(b,arguments));return Object(p)===p?p:this}return v.apply(c,l(b,arguments))},w=r(0,v.length-b.length),E=[],y=0;y<w;y++)E[y]="$"+y;if(S=Function("binder","return function ("+u(E,",")+"){ return binder.apply(this,arguments); }")(A),v.prototype){var T=function(){};T.prototype=v.prototype,S.prototype=new T,T.prototype=null}return S},jr}var zr,xi;function Hn(){if(xi)return zr;xi=1;var t=zo();return zr=Function.prototype.bind||t,zr}var Wr,Ei;function Wo(){if(Ei)return Wr;Ei=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Hn();return Wr=r.call(t,e),Wr}var Hr,Ai;
vendor: 6,417 bytes, line 7
7function Dt(){if(Ai)return Hr;Ai=1;var t,e=SyntaxError,r=Function,a=TypeError,l=function(D){try{return r('"use strict"; return ('+D+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var u=function(){throw new a},s=o?(function(){try{return arguments.callee,u}catch{try{return o(arguments,"callee").get}catch{return u}}})():u,c=Mo()(),v=jo()(),b=Object.getPrototypeOf||(v?function(D){return D.__proto__}:null),S={},A=typeof Uint8Array>"u"||!b?t:b(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&b?b([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":S,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&b?b(b([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!b?t:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!b?t:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&b?b(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":s,"%TypedArray%":A,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(b)try{null.error}catch(D){var E=b(b(D));w["%Error.prototype%"]=E}var y=function D(V){var _;if(V==="%AsyncFunction%")_=l("async function () {}");else if(V==="%GeneratorFunction%")_=l("function* () {}");else if(V==="%AsyncGeneratorFunction%")_=l("async function* () {}");else if(V==="%AsyncGenerator%"){var q=D("%AsyncGeneratorFunction%");q&&(_=q.prototype)}else if(V==="%AsyncIteratorPrototype%"){var le=D("%AsyncGenerator%");le&&b&&(_=b(le.prototype))}return w[V]=_,_},T={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},p=Hn(),x=Wo(),R=p.call(Function.call,Array.prototype.concat),F=p.call(Function.apply,Array.prototype.splice),P=p.call(Function.call,String.prototype.replace),$=p.call(Function.call,String.prototype.slice),K=p.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,ie=function(V){var _=$(V,0,1),q=$(V,-1);if(_==="%"&&q!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");
7if(q==="%"&&_!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var le=[];return P(V,J,function(X,he,ee,fe){le[le.length]=ee?P(fe,C,"$1"):he||X}),le},ue=function(V,_){var q=V,le;if(x(T,q)&&(le=T[q],q="%"+le[0]+"%"),x(w,q)){var X=w[q];if(X===S&&(X=y(q)),typeof X>"u"&&!_)throw new a("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:le,name:q,value:X}}throw new e("intrinsic "+V+" does not exist!")};return Hr=function(V,_){if(typeof V!="string"||V.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _!="boolean")throw new a('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,V)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q=ie(V),le=q.length>0?q[0]:"",X=ue("%"+le+"%",_),he=X.name,ee=X.value,fe=!1,U=X.alias;U&&(le=U[0],F(q,R([0,1],U)));for(var k=1,j=!0;k<q.length;k+=1){var H=q[k],Z=$(H,0,1),z=$(H,-1);if((Z==='"'||Z==="'"||Z==="`"||z==='"'||z==="'"||z==="`")&&Z!==z)throw new e("property names with quotes must have matching quotes");if((H==="constructor"||!j)&&(fe=!0),le+="."+H,he="%"+le+"%",x(w,he))ee=w[he];else if(ee!=null){if(!(H in ee)){if(!_)throw new a("base intrinsic for "+V+" exists, but the property is not available.");return}if(o&&k+1>=q.length){var m=o(ee,H);j=!!m,j&&"get"in m&&!("originalValue"in m.get)?ee=m.get:ee=ee[H]}else j=x(ee,H),ee=ee[H];j&&!fe&&(w[he]=ee)}}return ee},Hr}var Kr={exports:{}},Vr,Si;function Ms(){if(Si)return Vr;Si=1;var t=Dt(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Vr=r,Vr}var Gr,Ti;function Kn(){if(Ti)return Gr;Ti=1;var t=Dt(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return Gr=e,Gr}var qr,ki;function Ho(){if(ki)return qr;ki=1;var t=Ms()(),e=Dt(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var a=e("%SyntaxError%"),l=e("%TypeError%"),o=Kn();return qr=function(s,c,v){if(!s||typeof s!="object"&&typeof s!="function")throw new l("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var b=arguments.length>3?arguments[3]:null,S=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,E=!!o&&o(s,c);if(r)r(s,c,{configurable:A===null&&E?E.configurable:!A,enumerable:b===null&&E?E.enumerable:!b,value:v,writable:S===null&&E?E.writable:!S});else if(w||!b&&!S&&!A)s[c]=v;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qr}var $r,Ri;function Ko(){if(Ri)return $r;Ri=1;var t=Dt(),e=Ho(),r=Ms()(),a=Kn(),l=t("%TypeError%"),o=t("%Math.floor%");return $r=function(s,c){if(typeof s!="function")throw new l("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new l("`length` must be a positive 32-bit integer");var v=arguments.length>2&&!!arguments[2],b=!0,S=!0;if("length"in s&&a){var A=a(s,"length");A&&!A.configurable&&(b=!1),A&&!A.writable&&(S=!1)}return(b||S||!v)&&(r?e(s,"length",c,!0,!0):e(s,"length",c)),s},$r}var Ci;function js(){return Ci||(Ci=1,(function(t){var e=Hn(),r=Dt(),a=Ko(),l=r("%TypeError%"),o=r("%Function.prototype.apply%"),u=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||e.call(u,o),c=r("%Object.defineProperty%",!0),v=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(A){if(typeof A!="function")throw new l("a function is required");var w=s(e,u,arguments);return a(w,1+v(0,A.length-(arguments.length-1)),!0)};var b=function(){return s(e,o,arguments)};c?c(t.exports,"apply",{value:b}):t.exports.apply=b})(Kr)),Kr.exports}var Xr,Ii;function zs(){if(Ii)return Xr;Ii=1;var t=Dt(),e=js(),r=e(t("String.prototype.indexOf"));return Xr=function(l,o){var u=t(l,!!o);return typeof u=="function"&&r(l,".prototype.")>-1?e(u):u},Xr}var Zr,Ni;function Vo(){if(Ni)return Zr;Ni=1;var t=Wn()(),e=zs(),r=e("Object.prototype.toString"),a=function(s){return t&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},l=function(s){return a(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&r(s.callee)==="[object Function]"},o=(function(){return a(arguments)})();return a.isLegacyArguments=l,Zr=o?a:l,Zr}var Yr,Oi;function Go(){if(Oi)return Yr;Oi=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,a=Wn()(),l=Object.getPrototypeOf,o=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},u;return Yr=function(c){if(typeof c!="function")return!1;if(r.test(e.call(c)))return!0;
7if(!a){var v=t.call(c);return v==="[object GeneratorFunction]"}if(!l)return!1;if(typeof u>"u"){var b=o();u=b?l(b):!1}return l(c)===u},Yr}var Jr,Fi;function qo(){if(Fi)return Jr;Fi=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,r)}catch(x){x!==a&&(e=null)}else e=null;var l=/^\s*class\b/,o=function(R){try{var F=t.call(R);return l.test(F)}catch{return!1}},u=function(R){try{return o(R)?!1:(t.call(R),!0)}catch{return!1}},s=Object.prototype.toString,c="[object Object]",v="[object Function]",b="[object GeneratorFunction]",S="[object HTMLAllCollection]",A="[object HTML document.all class]",w="[object HTMLCollection]",E=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var p=document.all;s.call(p)===s.call(document.all)&&(T=function(R){if((y||!R)&&(typeof R>"u"||typeof R=="object"))try{var F=s.call(R);return(F===S||F===A||F===w||F===c)&&R("")==null}catch{}return!1})}return Jr=e?function(R){if(T(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{e(R,null,r)}catch(F){if(F!==a)return!1}return!o(R)&&u(R)}:function(R){if(T(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(E)return u(R);if(o(R))return!1;var F=s.call(R);return F!==v&&F!==b&&!/^\[object HTML/.test(F)?!1:u(R)},Jr}var Qr,Di;function $o(){if(Di)return Qr;Di=1;var t=qo(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(c,v,b){for(var S=0,A=c.length;S<A;S++)r.call(c,S)&&(b==null?v(c[S],S,c):v.call(b,c[S],S,c))},l=function(c,v,b){for(var S=0,A=c.length;S<A;S++)b==null?v(c.charAt(S),S,c):v.call(b,c.charAt(S),S,c)},o=function(c,v,b){for(var S in c)r.call(c,S)&&(b==null?v(c[S],S,c):v.call(b,c[S],S,c))},u=function(c,v,b){if(!t(v))throw new TypeError("iterator must be a function");var S;arguments.length>=3&&(S=b),e.call(c)==="[object Array]"?a(c,v,S):typeof c=="string"?l(c,v,S):o(c,v,S)};return Qr=u,Qr}var en,Bi;function Xo(){if(Bi)return en;Bi=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?tt:globalThis;return en=function(){for(var a=[],l=0;l<t.length;l++)typeof e[t[l]]=="function"&&(a[a.length]=t[l]);return a},en}var tn,Pi;function Ws(){if(Pi)return tn;Pi=1;var t=$o(),e=Xo(),r=js(),a=zs(),l=Kn(),o=a("Object.prototype.toString"),u=Wn()(),s=typeof globalThis>"u"?tt:globalThis,c=e(),v=a("String.prototype.slice"),b=Object.getPrototypeOf,S=a("Array.prototype.indexOf",!0)||function(T,p){for(var x=0;x<T.length;x+=1)if(T[x]===p)return x;return-1},A={__proto__:null};u&&l&&b?t(c,function(y){var T=new s[y];if(Symbol.toStringTag in T){var p=b(T),x=l(p,Symbol.toStringTag);if(!x){var R=b(p);x=l(R,Symbol.toStringTag)}A["$"+y]=r(x.get)}}):t(c,function(y){var T=new s[y],p=T.slice||T.set;p&&(A["$"+y]=r(p))});var w=function(T){var p=!1;return t(A,function(x,R){if(!p)try{"$"+x(T)===R&&(p=v(R,1))}catch{}}),p},E=function(T){var p=!1;return t(A,function(x,R){if(!p)try{x(T),p=v(R,1)}catch{}}),p};return tn=function(T){if(!T||typeof T!="object")return!1;if(!u){var p=v(o(T),8,-1);return S(c,p)>-1?p:p!=="Object"?!1:E(T)}return l?w(T):null},tn}var rn,Li;function Zo(){if(Li)return rn;Li=1;var t=Ws();return rn=function(r){return!!t(r)},rn}var Ui;function Yo(){return Ui||(Ui=1,(function(t){var e=Vo(),r=Go(),a=Ws(),l=Zo();function o(f){return f.call.bind(f)}var u=typeof BigInt<"u",s=typeof Symbol<"u",c=o(Object.prototype.toString),v=o(Number.prototype.valueOf),b=o(String.prototype.valueOf),S=o(Boolean.prototype.valueOf);if(u)var A=o(BigInt.prototype.valueOf);if(s)var w=o(Symbol.prototype.valueOf);function E(f,O){if(typeof f!="object")return!1;try{return O(f),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=l;function y(f){return typeof Promise<"u"&&f instanceof Promise||f!==null&&typeof f=="object"&&typeof f.then=="function"&&typeof f.catch=="function"}t.isPromise=y;function T(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):l(f)||j(f)}t.isArrayBufferView=T;function p(f){return a(f)==="Uint8Array"}t.isUint8Array=p;function x(f){return a(f)==="Uint8ClampedArray"}t.isUint8ClampedArray=x;function R(f){return a(f)==="Uint16Array"}t.isUint16Array=R;function F(f){return a(f)==="Uint32Array"}t.isUint32Array=F;function P(f){return a(f)==="Int8Array"}t.isInt8Array=P;function $(f){return a(f)==="Int16Array"}t.isInt16Array=$;function K(f){return a(f)==="Int32Array"}t.isInt32Array=K;function J(f){return a(f)==="Float32Array"}t.isFloat32Array=J;function C(f){return a(f)==="Float64Array"}t.isFloat64Array=C;function ie(f){return a(f)==="BigInt64Array"}t.isBigInt64Array=ie;function ue(f){return a(f)==="BigUint64Array"}t.isBigUint64Array=ue;function D(f){return c(f)==="[object Map]"}D.working=typeof Map<"u"&&D(new Map);function V(f){return typeof Map>"u"?!1:D.working?D(f):f instanceof Map}t.isMap=V;function _(f){return c(f)==="[object Set]"}_.working=typeof Set<"u"&&_(new Set);function q(f){return typeof Set>"u"?!1:_.working?_(f):f instanceof Set}t.isSet=q;function le(f){return c(f)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function X(f){return typeof WeakMap>"u"?!1:le.working?le(f):f instanceof WeakMap}t.isWeakMap=X;function he(f){return c(f)==="[object WeakSet]"}he.working=typeof WeakSet<"u"&&he(new WeakSet);function ee(f){return he(f)}
7t.isWeakSet=ee;function fe(f){return c(f)==="[object ArrayBuffer]"}fe.working=typeof ArrayBuffer<"u"&&fe(new ArrayBuffer);function U(f){return typeof ArrayBuffer>"u"?!1:fe.working?fe(f):f instanceof ArrayBuffer}t.isArrayBuffer=U;function k(f){return c(f)==="[object DataView]"}k.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&k(new DataView(new ArrayBuffer(1),0,1));function j(f){return typeof DataView>"u"?!1:k.working?k(f):f instanceof DataView}t.isDataView=j;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Z(f){return c(f)==="[object SharedArrayBuffer]"}function z(f){return typeof H>"u"?!1:(typeof Z.working>"u"&&(Z.working=Z(new H)),Z.working?Z(f):f instanceof H)}t.isSharedArrayBuffer=z;function m(f){return c(f)==="[object AsyncFunction]"}t.isAsyncFunction=m;function d(f){return c(f)==="[object Map Iterator]"}t.isMapIterator=d;function M(f){return c(f)==="[object Set Iterator]"}t.isSetIterator=M;function B(f){return c(f)==="[object Generator]"}t.isGeneratorObject=B;function I(f){return c(f)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=I;function N(f){return E(f,v)}t.isNumberObject=N;function Y(f){return E(f,b)}t.isStringObject=Y;function h(f){return E(f,S)}t.isBooleanObject=h;function G(f){return u&&E(f,A)}t.isBigIntObject=G;function g(f){return s&&E(f,w)}t.isSymbolObject=g;function n(f){return N(f)||Y(f)||h(f)||G(f)||g(f)}t.isBoxedPrimitive=n;function i(f){return typeof Uint8Array<"u"&&(U(f)||z(f))}t.isAnyArrayBuffer=i,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(t,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})})(Br)),Br}var nn,Mi;function Jo(){return Mi||(Mi=1,nn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),nn}var ji;function Hs(){return ji||(ji=1,(function(t){var e=Object.getOwnPropertyDescriptors||function(j){for(var H=Object.keys(j),Z={},z=0;z<H.length;z++)Z[H[z]]=Object.getOwnPropertyDescriptor(j,H[z]);return Z},r=/%[sdj%]/g;t.format=function(k){if(!P(k)){for(var j=[],H=0;H<arguments.length;H++)j.push(u(arguments[H]));return j.join(" ")}for(var H=1,Z=arguments,z=Z.length,m=String(k).replace(r,function(M){if(M==="%%")return"%";if(H>=z)return M;switch(M){case"%s":return String(Z[H++]);case"%d":return Number(Z[H++]);case"%j":try{return JSON.stringify(Z[H++])}catch{return"[Circular]"}default:return M}}),d=Z[H];H<z;d=Z[++H])x(d)||!C(d)?m+=" "+d:m+=" "+u(d);return m},t.deprecate=function(k,j){if(typeof ye<"u"&&ye.noDeprecation===!0)return k;if(typeof ye>"u")return function(){return t.deprecate(k,j).apply(this,arguments)};var H=!1;function Z(){if(!H){if(ye.throwDeprecation)throw new Error(j);ye.traceDeprecation?console.trace(j):console.error(j),H=!0}return k.apply(this,arguments)}return Z};var a={},l=/^$/;if(ye.env.NODE_DEBUG){var o=ye.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+o+"$","i")}t.debuglog=function(k){if(k=k.toUpperCase(),!a[k])if(l.test(k)){var j=ye.pid;a[k]=function(){var H=t.format.apply(t,arguments);console.error("%s %d: %s",k,j,H)}}else a[k]=function(){};return a[k]};function u(k,j){var H={seen:[],stylize:c};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),p(j)?H.showHidden=j:j&&t._extend(H,j),K(H.showHidden)&&(H.showHidden=!1),K(H.depth)&&(H.depth=2),K(H.colors)&&(H.colors=!1),K(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=s),b(H,k,H.depth)}t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(k,j){var H=u.styles[j];return H?"\x1B["+u.colors[H][0]+"m"+k+"\x1B["+u.colors[H][1]+"m":k}function c(k,j){return k}function v(k){var j={};return k.forEach(function(H,Z){j[H]=!0}),j}function b(k,j,H){if(k.customInspect&&j&&D(j.inspect)&&j.inspect!==t.inspect&&!(j.constructor&&j.constructor.prototype===j)){var Z=j.inspect(H,k);return P(Z)||(Z=b(k,Z,H)),Z}var z=S(k,j);if(z)return z;var m=Object.keys(j),d=v(m);if(k.showHidden&&(m=Object.getOwnPropertyNames(j)),ue(j)&&(m.indexOf("message")>=0||m.indexOf("description")>=0))return A(j);if(m.length===0){if(D(j)){var M=j.name?": "+j.name:"";return k.stylize("[Function"+M+"]","special")}if(J(j))return k.stylize(RegExp.prototype.toString.call(j),"regexp");if(ie(j))return k.stylize(Date.prototype.toString.call(j),"date");if(ue(j))return A(j)}var B="",I=!1,N=["{","}"];if(T(j)&&(I=!0,N=["[","]"]),D(j)){var Y=j.name?": "+j.name:"";B=" [Function"+Y+"]"}if(J(j)&&(B=" "+RegExp.prototype.toString.call(j)),ie(j)&&(B=" "+Date.prototype.toUTCString.call(j)),ue(j)&&(B=" "+A(j)),m.length===0&&(!I||j.length==0))return N[0]+B+N[1];if(H<0)return J(j)?k.stylize(RegExp.prototype.toString.call(j),"regexp"):k.stylize("[Object]","special");k.seen.push(j);var h;return I?h=w(k,j,H,d,m):h=m.map(function(G){return E(k,j,H,d,G,I)}),k.seen.pop(),y(h,B,N)}
vendor: 4,953 bytes, lines 7-16
7function S(k,j){if(K(j))return k.stylize("undefined","undefined");if(P(j)){var H="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return k.stylize(H,"string")}if(F(j))return k.stylize(""+j,"number");if(p(j))return k.stylize(""+j,"boolean");if(x(j))return k.stylize("null","null")}function A(k){return"["+Error.prototype.toString.call(k)+"]"}function w(k,j,H,Z,z){for(var m=[],d=0,M=j.length;d<M;++d)he(j,String(d))?m.push(E(k,j,H,Z,String(d),!0)):m.push("");return z.forEach(function(B){B.match(/^\d+$/)||m.push(E(k,j,H,Z,B,!0))}),m}function E(k,j,H,Z,z,m){var d,M,B;if(B=Object.getOwnPropertyDescriptor(j,z)||{value:j[z]},B.get?B.set?M=k.stylize("[Getter/Setter]","special"):M=k.stylize("[Getter]","special"):B.set&&(M=k.stylize("[Setter]","special")),he(Z,z)||(d="["+z+"]"),M||(k.seen.indexOf(B.value)<0?(x(H)?M=b(k,B.value,null):M=b(k,B.value,H-1),M.indexOf(` 8`)>-1&&(m?M=M.split(` 9`).map(function(I){return" "+I}).join(` 10`).slice(2):M=` 11`+M.split(` 12`).map(function(I){return" "+I}).join(` 13`))):M=k.stylize("[Circular]","special")),K(d)){if(m&&z.match(/^\d+$/))return M;d=JSON.stringify(""+z),d.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(d=d.slice(1,-1),d=k.stylize(d,"name")):(d=d.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),d=k.stylize(d,"string"))}return d+": "+M}function y(k,j,H){var Z=k.reduce(function(z,m){return m.indexOf(` 14`)>=0,z+m.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Z>60?H[0]+(j===""?"":j+` 15 `)+" "+k.join(`, 16 `)+" "+H[1]:H[0]+j+" "+k.join(", ")+" "+H[1]}t.types=Yo();function T(k){return Array.isArray(k)}t.isArray=T;function p(k){return typeof k=="boolean"}t.isBoolean=p;function x(k){return k===null}t.isNull=x;function R(k){return k==null}t.isNullOrUndefined=R;function F(k){return typeof k=="number"}t.isNumber=F;function P(k){return typeof k=="string"}t.isString=P;function $(k){return typeof k=="symbol"}t.isSymbol=$;function K(k){return k===void 0}t.isUndefined=K;function J(k){return C(k)&&_(k)==="[object RegExp]"}t.isRegExp=J,t.types.isRegExp=J;function C(k){return typeof k=="object"&&k!==null}t.isObject=C;function ie(k){return C(k)&&_(k)==="[object Date]"}t.isDate=ie,t.types.isDate=ie;function ue(k){return C(k)&&(_(k)==="[object Error]"||k instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function D(k){return typeof k=="function"}t.isFunction=D;function V(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||typeof k=="symbol"||typeof k>"u"}t.isPrimitive=V,t.isBuffer=Jo();function _(k){return Object.prototype.toString.call(k)}function q(k){return k<10?"0"+k.toString(10):k.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var k=new Date,j=[q(k.getHours()),q(k.getMinutes()),q(k.getSeconds())].join(":");return[k.getDate(),le[k.getMonth()],j].join(" ")}t.log=function(){console.log("%s - %s",X(),t.format.apply(t,arguments))},t.inherits=gt,t._extend=function(k,j){if(!j||!C(j))return k;for(var H=Object.keys(j),Z=H.length;Z--;)k[H[Z]]=j[H[Z]];return k};function he(k,j){return Object.prototype.hasOwnProperty.call(k,j)}var ee=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(ee&&j[ee]){var H=j[ee];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,ee,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var Z,z,m=new Promise(function(B,I){Z=B,z=I}),d=[],M=0;M<arguments.length;M++)d.push(arguments[M]);d.push(function(B,I){B?z(B):Z(I)});try{j.apply(this,d)}catch(B){z(B)}return m}return Object.setPrototypeOf(H,Object.getPrototypeOf(j)),ee&&Object.defineProperty(H,ee,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,e(j))},t.promisify.custom=ee;function fe(k,j){if(!k){var H=new Error("Promise was rejected with a falsy value");H.reason=k,k=H}return j(k)}function U(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var H=[],Z=0;Z<arguments.length;Z++)H.push(arguments[Z]);var z=H.pop();if(typeof z!="function")throw new TypeError("The last argument must be of type Function");var m=this,d=function(){return z.apply(m,arguments)};k.apply(this,H).then(function(M){ye.nextTick(d.bind(null,null,M))},function(M){ye.nextTick(fe.bind(null,M,d))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(k)),Object.defineProperties(j,e(k)),j}t.callbackify=U})(Dr)),Dr}var sn,zi;function Qo(){if(zi)return sn;zi=1;function t(A,w){var E=Object.keys(A);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(A);w&&(y=y.filter(function(T){return Object.getOwnPropertyDescriptor(A,T).enumerable})),E.push.apply(E,y)}return E}function e(A){for(var w=1;w<arguments.length;w++){var E=arguments[w]!=null?arguments[w]:{};
vendor: 5,174 bytes, line 16
16w%2?t(Object(E),!0).forEach(function(y){r(A,y,E[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(E)):t(Object(E)).forEach(function(y){Object.defineProperty(A,y,Object.getOwnPropertyDescriptor(E,y))})}return A}function r(A,w,E){return w in A?Object.defineProperty(A,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):A[w]=E,A}function a(A,w){if(!(A instanceof w))throw new TypeError("Cannot call a class as a function")}function l(A,w){for(var E=0;E<w.length;E++){var y=w[E];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(A,y.key,y)}}function o(A,w,E){return w&&l(A.prototype,w),A}var u=Ar(),s=u.Buffer,c=Hs(),v=c.inspect,b=v&&v.custom||"inspect";function S(A,w,E){s.prototype.copy.call(A,w,E)}return sn=(function(){function A(){a(this,A),this.head=null,this.tail=null,this.length=0}return o(A,[{key:"push",value:function(E){var y={data:E,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(E){var y={data:E,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(this.length===0)return"";for(var y=this.head,T=""+y.data;y=y.next;)T+=E+y.data;return T}},{key:"concat",value:function(E){if(this.length===0)return s.alloc(0);for(var y=s.allocUnsafe(E>>>0),T=this.head,p=0;T;)S(T.data,y,p),p+=T.data.length,T=T.next;return y}},{key:"consume",value:function(E,y){var T;return E<this.head.data.length?(T=this.head.data.slice(0,E),this.head.data=this.head.data.slice(E)):E===this.head.data.length?T=this.shift():T=y?this._getString(E):this._getBuffer(E),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(E){var y=this.head,T=1,p=y.data;for(E-=p.length;y=y.next;){var x=y.data,R=E>x.length?x.length:E;if(R===x.length?p+=x:p+=x.slice(0,E),E-=R,E===0){R===x.length?(++T,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=x.slice(R));break}++T}return this.length-=T,p}},{key:"_getBuffer",value:function(E){var y=s.allocUnsafe(E),T=this.head,p=1;for(T.data.copy(y),E-=T.data.length;T=T.next;){var x=T.data,R=E>x.length?x.length:E;if(x.copy(y,y.length-E,0,R),E-=R,E===0){R===x.length?(++p,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=x.slice(R));break}++p}return this.length-=p,y}},{key:b,value:function(E,y){return v(this,e({},y,{depth:0,customInspect:!1}))}}]),A})(),sn}var an,Wi;function Ks(){if(Wi)return an;Wi=1;function t(u,s){var c=this,v=this._readableState&&this._readableState.destroyed,b=this._writableState&&this._writableState.destroyed;return v||b?(s?s(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ye.nextTick(l,this,u)):ye.nextTick(l,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(S){!s&&S?c._writableState?c._writableState.errorEmitted?ye.nextTick(r,c):(c._writableState.errorEmitted=!0,ye.nextTick(e,c,S)):ye.nextTick(e,c,S):s?(ye.nextTick(r,c),s(S)):ye.nextTick(r,c)}),this)}function e(u,s){l(u,s),r(u)}function r(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(u,s){u.emit("error",s)}function o(u,s){var c=u._readableState,v=u._writableState;c&&c.autoDestroy||v&&v.autoDestroy?u.destroy(s):u.emit("error",s)}return an={destroy:t,undestroy:a,errorOrDestroy:o},an}var on={},Hi;function Bt(){if(Hi)return on;Hi=1;function t(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var e={};function r(s,c,v){v||(v=Error);function b(A,w,E){return typeof c=="string"?c:c(A,w,E)}var S=(function(A){t(w,A);function w(E,y,T){return A.call(this,b(E,y,T))||this}return w})(v);S.prototype.name=v.name,S.prototype.code=s,e[s]=S}function a(s,c){if(Array.isArray(s)){var v=s.length;return s=s.map(function(b){return String(b)}),v>2?"one of ".concat(c," ").concat(s.slice(0,v-1).join(", "),", or ")+s[v-1]:v===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function l(s,c,v){return s.substr(0,c.length)===c}function o(s,c,v){return(v===void 0||v>s.length)&&(v=s.length),s.substring(v-c.length,v)===c}function u(s,c,v){return typeof v!="number"&&(v=0),v+c.length>s.length?!1:s.indexOf(c,v)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is
16invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,c,v){var b;typeof c=="string"&&l(c,"not ")?(b="must not be",c=c.replace(/^not /,"")):b="must be";var S;if(o(s," argument"))S="The ".concat(s," ").concat(b," ").concat(a(c,"type"));else{var A=u(s,".")?"property":"argument";S='The "'.concat(s,'" ').concat(A," ").concat(b," ").concat(a(c,"type"))}return S+=". Received type ".concat(typeof v),S},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),on.codes=e,on}var un,Ki;function Vs(){if(Ki)return un;Ki=1;var t=Bt().codes.ERR_INVALID_OPT_VALUE;function e(a,l,o){return a.highWaterMark!=null?a.highWaterMark:l?a[o]:null}function r(a,l,o,u){var s=e(l,u,o);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=u?o:"highWaterMark";throw new t(c,s)}return Math.floor(s)}return a.objectMode?16:16*1024}return un={getHighWaterMark:r},un}var ln,Vi;function eu(){if(Vi)return ln;Vi=1,ln=t;function t(r,a){if(e("noDeprecation"))return r;var l=!1;function o(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return r.apply(this,arguments)}return o}function e(r){try{if(!tt.localStorage)return!1}catch{return!1}var a=tt.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return ln}var cn,Gi;function Gs(){if(Gi)return cn;Gi=1,cn=J;function t(z){var m=this;this.next=null,this.entry=null,this.finish=function(){Z(m,z)}}var e;J.WritableState=$;var r={deprecate:eu()},a=Ls(),l=Ar().Buffer,o=tt.Uint8Array||function(){};function u(z){return l.from(z)}function s(z){return l.isBuffer(z)||z instanceof o}var c=Ks(),v=Vs(),b=v.getHighWaterMark,S=Bt().codes,A=S.ERR_INVALID_ARG_TYPE,w=S.ERR_METHOD_NOT_IMPLEMENTED,E=S.ERR_MULTIPLE_CALLBACK,y=S.ERR_STREAM_CANNOT_PIPE,T=S.ERR_STREAM_DESTROYED,p=S.ERR_STREAM_NULL_VALUES,x=S.ERR_STREAM_WRITE_AFTER_END,R=S.ERR_UNKNOWN_ENCODING,F=c.errorOrDestroy;gt(J,a);function P(){}function $(z,m,d){e=e||kt(),z=z||{},typeof d!="boolean"&&(d=m instanceof e),this.objectMode=!!z.objectMode,d&&(this.objectMode=this.objectMode||!!z.writableObjectMode),this.highWaterMark=b(this,z,"writableHighWaterMark",d),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=z.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){le(m,B)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=z.emitClose!==!1,this.autoDestroy=!!z.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}$.prototype.getBuffer=function(){for(var m=this.bufferedRequest,d=[];m;)d.push(m),m=m.next;return d},(function(){try{Object.defineProperty($.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var K;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(K=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(m){return K.call(this,m)?!0:this!==J?!1:m&&m._writableState instanceof $}})):K=function(m){return m instanceof this};function J(z){e=e||kt();var m=this instanceof e;if(!m&&!K.call(J,this))return new J(z);this._writableState=new $(z,this,m),this.writable=!0,z&&(typeof z.write=="function"&&(this._write=z.write),typeof z.writev=="function"&&(this._writev=z.writev),typeof z.destroy=="function"&&(this._destroy=z.destroy),typeof z.final=="function"&&(this._final=z.final)),a.call(this)}J.prototype.pipe=function(){F(this,new y)};function C(z,m){var d=new x;F(z,d),ye.nextTick(m,d)}function ie(z,m,d,M){var B;return d===null?B=new p:typeof d!="string"&&!m.objectMode&&(B=new A("chunk",["string","Buffer"],d)),B?(F(z,B),ye.nextTick(M,B),!1):!0}J.prototype.write=function(z,m,d){var M=this._writableState,B=!1,I=!M.objectMode&&s(z);return I&&!l.isBuffer(z)&&(z=u(z)),typeof m=="function"&&(d=m,m=null),I?m="buffer":m||(m=M.defaultEncoding),typeof d!="function"&&(d=P),M.ending?C(this,d):(I||ie(this,M,z,d))&&(M.pendingcb++,B=D(this,M,I,z,m,d)),B},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var z=this._writableState;z.corked&&(z.corked--,!z.writing&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&ee(this,z))},J.prototype.setDefaultEncoding=function(m){if(typeof m=="string"&&(m=m.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((m+"").toLowerCase())>-1))throw new R(m);return this._writableState.defaultEncoding=m,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(z,m,d){return!z.objectMode&&z.decodeStrings!==!1&&typeof m=="string"&&(m=l.from(m,d)),m}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function D(z,m,d,M,B,I){if(!d){var N=ue(m,M,B);M!==N&&(d=!0,B="buffer",M=N)}var Y=m.objectMode?1:M.length;m.length+=Y;var h=m.length<m.highWaterMark;if(h||(m.needDrain=!0),m.writing||m.corked){var G=m.lastBufferedRequest;
vendor: 10,454 bytes, line 16
16m.lastBufferedRequest={chunk:M,encoding:B,isBuf:d,callback:I,next:null},G?G.next=m.lastBufferedRequest:m.bufferedRequest=m.lastBufferedRequest,m.bufferedRequestCount+=1}else V(z,m,!1,Y,M,B,I);return h}function V(z,m,d,M,B,I,N){m.writelen=M,m.writecb=N,m.writing=!0,m.sync=!0,m.destroyed?m.onwrite(new T("write")):d?z._writev(B,m.onwrite):z._write(B,I,m.onwrite),m.sync=!1}function _(z,m,d,M,B){--m.pendingcb,d?(ye.nextTick(B,M),ye.nextTick(j,z,m),z._writableState.errorEmitted=!0,F(z,M)):(B(M),z._writableState.errorEmitted=!0,F(z,M),j(z,m))}function q(z){z.writing=!1,z.writecb=null,z.length-=z.writelen,z.writelen=0}function le(z,m){var d=z._writableState,M=d.sync,B=d.writecb;if(typeof B!="function")throw new E;if(q(d),m)_(z,d,M,m,B);else{var I=fe(d)||z.destroyed;!I&&!d.corked&&!d.bufferProcessing&&d.bufferedRequest&&ee(z,d),M?ye.nextTick(X,z,d,I,B):X(z,d,I,B)}}function X(z,m,d,M){d||he(z,m),m.pendingcb--,M(),j(z,m)}function he(z,m){m.length===0&&m.needDrain&&(m.needDrain=!1,z.emit("drain"))}function ee(z,m){m.bufferProcessing=!0;var d=m.bufferedRequest;if(z._writev&&d&&d.next){var M=m.bufferedRequestCount,B=new Array(M),I=m.corkedRequestsFree;I.entry=d;for(var N=0,Y=!0;d;)B[N]=d,d.isBuf||(Y=!1),d=d.next,N+=1;B.allBuffers=Y,V(z,m,!0,m.length,B,"",I.finish),m.pendingcb++,m.lastBufferedRequest=null,I.next?(m.corkedRequestsFree=I.next,I.next=null):m.corkedRequestsFree=new t(m),m.bufferedRequestCount=0}else{for(;d;){var h=d.chunk,G=d.encoding,g=d.callback,n=m.objectMode?1:h.length;if(V(z,m,!1,n,h,G,g),d=d.next,m.bufferedRequestCount--,m.writing)break}d===null&&(m.lastBufferedRequest=null)}m.bufferedRequest=d,m.bufferProcessing=!1}J.prototype._write=function(z,m,d){d(new w("_write()"))},J.prototype._writev=null,J.prototype.end=function(z,m,d){var M=this._writableState;return typeof z=="function"?(d=z,z=null,m=null):typeof m=="function"&&(d=m,m=null),z!=null&&this.write(z,m),M.corked&&(M.corked=1,this.uncork()),M.ending||H(this,M,d),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function fe(z){return z.ending&&z.length===0&&z.bufferedRequest===null&&!z.finished&&!z.writing}function U(z,m){z._final(function(d){m.pendingcb--,d&&F(z,d),m.prefinished=!0,z.emit("prefinish"),j(z,m)})}function k(z,m){!m.prefinished&&!m.finalCalled&&(typeof z._final=="function"&&!m.destroyed?(m.pendingcb++,m.finalCalled=!0,ye.nextTick(U,z,m)):(m.prefinished=!0,z.emit("prefinish")))}function j(z,m){var d=fe(m);if(d&&(k(z,m),m.pendingcb===0&&(m.finished=!0,z.emit("finish"),m.autoDestroy))){var M=z._readableState;(!M||M.autoDestroy&&M.endEmitted)&&z.destroy()}return d}function H(z,m,d){m.ending=!0,j(z,m),d&&(m.finished?ye.nextTick(d):z.once("finish",d)),m.ended=!0,z.writable=!1}function Z(z,m,d){var M=z.entry;for(z.entry=null;M;){var B=M.callback;m.pendingcb--,B(d),M=M.next}m.corkedRequestsFree.next=z}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(m){this._writableState&&(this._writableState.destroyed=m)}}),J.prototype.destroy=c.destroy,J.prototype._undestroy=c.undestroy,J.prototype._destroy=function(z,m){m(z)},cn}var fn,qi;function kt(){if(qi)return fn;qi=1;var t=Object.keys||function(v){var b=[];for(var S in v)b.push(S);return b};fn=u;var e=qs(),r=Gs();gt(u,e);for(var a=t(r.prototype),l=0;l<a.length;l++){var o=a[l];u.prototype[o]||(u.prototype[o]=r.prototype[o])}function u(v){if(!(this instanceof u))return new u(v);e.call(this,v),r.call(this,v),this.allowHalfOpen=!0,v&&(v.readable===!1&&(this.readable=!1),v.writable===!1&&(this.writable=!1),v.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||ye.nextTick(c,this)}function c(v){v.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(b){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=b,this._writableState.destroyed=b)}}),fn}var hn={},ar={exports:{}},$i;function tu(){return $i||($i=1,(function(t,e){var r=Ar(),a=r.Buffer;function l(u,s){for(var c in u)s[c]=u[c]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=r:(l(r,e),e.Buffer=o);function o(u,s,c){return a(u,s,c)}l(a,o),o.from=function(u,s,c){if(typeof u=="number")throw new TypeError("Argument must not be a number");return a(u,s,c)},o.alloc=function(u,s,c){if(typeof u!="number")throw new TypeError("Argument must be a number");var v=a(u);return s!==void 0?typeof c=="string"?v.fill(s,c):v.fill(s):v.fill(0),v},o.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return a(u)},o.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(u)}})(ar,ar.exports)),ar.exports}var Xi;function In(){if(Xi)return hn;Xi=1;var t=tu().Buffer,e=t.isEncoding||function(p){switch(p=""+p,p&&p.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 r(p){if(!p)return"utf8";for(var x;;)switch(p){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 p;default:if(x)return;p=(""+p).toLowerCase(),x=!0}}function a(p){var x=r(p);if(typeof x!="string"&&(t.isEncoding===e||!e(p)))throw new Error("Unknown encoding: "+p);return x||p}hn.StringDecoder=l;function l(p){this.encoding=a(p);var x;switch(this.encoding){case"utf16le":this.text=S,this.end=A,x=4;break;case"utf8":this.fillLast=c,x=4;break;case"base64":this.text=w,this.end=E,x=3;break;default:this.write=y,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(x)}l.prototype.write=function(p){if(p.length===0)return"";var x,R;if(this.lastNeed){if(x=this.fillLast(p),x===void 0)return"";R=this.lastNeed,this.lastNeed=0}else R=0;return R<p.length?x?x+this.text(p,R):this.text(p,R):x||""},l.prototype.end=b,l.prototype.text=v,l.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function o(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function u(p,x,R){var F=x.length-1;if(F<R)return 0;var P=o(x[F]);return P>=0?(P>0&&(p.lastNeed=P-1),P):--F<R||P===-2?0:(P=o(x[F]),P>=0?(P>0&&(p.lastNeed=P-2),P):--F<R||P===-2?0:(P=o(x[F]),P>=0?(P>0&&(P===2?P=0:p.lastNeed=P-3),P):0))}function s(p,x,R){if((x[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return p.lastNeed=2,"�"}}function c(p){var x=this.lastTotal-this.lastNeed,R=s(this,p);if(R!==void 0)return R;if(this.lastNeed<=p.length)return p.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,x,0,p.length),this.lastNeed-=p.length}function v(p,x){var R=u(this,p,x);if(!this.lastNeed)return p.toString("utf8",x);this.lastTotal=R;var F=p.length-(R-this.lastNeed);return p.copy(this.lastChar,0,F),p.toString("utf8",x,F)}function b(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+"�":x}function S(p,x){if((p.length-x)%2===0){var R=p.toString("utf16le",x);if(R){var F=R.charCodeAt(R.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",x,p.length-1)}function A(p){var x=p&&p.length?this.write(p):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,R)}return x}function w(p,x){var R=(p.length-x)%3;return R===0?p.toString("base64",x):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",x,p.length-R))}function E(p){var x=p&&p.length?this.write(p):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function y(p){return p.toString(this.encoding)}function T(p){return p&&p.length?this.write(p):""}return hn}var dn,Zi;function Vn(){if(Zi)return dn;Zi=1;var t=Bt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(o){var u=!1;return function(){if(!u){u=!0;for(var s=arguments.length,c=new Array(s),v=0;v<s;v++)c[v]=arguments[v];o.apply(this,c)}}}function r(){}function a(o){return o.setHeader&&typeof o.abort=="function"}function l(o,u,s){if(typeof u=="function")return l(o,null,u);u||(u={}),s=e(s||r);var c=u.readable||u.readable!==!1&&o.readable,v=u.writable||u.writable!==!1&&o.writable,b=function(){o.writable||A()},S=o._writableState&&o._writableState.finished,A=function(){v=!1,S=!0,c||s.call(o)},w=o._readableState&&o._readableState.endEmitted,E=function(){c=!1,w=!0,v||s.call(o)},y=function(R){s.call(o,R)},T=function(){var R;if(c&&!w)return(!o._readableState||!o._readableState.ended)&&(R=new t),s.call(o,R);if(v&&!S)return(!o._writableState||!o._writableState.ended)&&(R=new t),s.call(o,R)},p=function(){o.req.on("finish",A)};return a(o)?(o.on("complete",A),o.on("abort",T),o.req?p():o.on("request",p)):v&&!o._writableState&&(o.on("end",b),o.on("close",b)),o.on("end",E),o.on("finish",A),u.error!==!1&&o.on("error",y),o.on("close",T),function(){o.removeListener("complete",A),o.removeListener("abort",T),o.removeListener("request",p),o.req&&o.req.removeListener("finish",A),o.removeListener("end",b),o.removeListener("close",b),o.removeListener("finish",A),o.removeListener("end",E),o.removeListener("error",y),o.removeListener("close",T)}}return dn=l,dn}var pn,Yi;
vendor: 4,283 bytes, line 16
16function ru(){if(Yi)return pn;Yi=1;var t;function e(p,x,R){return x in p?Object.defineProperty(p,x,{value:R,enumerable:!0,configurable:!0,writable:!0}):p[x]=R,p}var r=Vn(),a=Symbol("lastResolve"),l=Symbol("lastReject"),o=Symbol("error"),u=Symbol("ended"),s=Symbol("lastPromise"),c=Symbol("handlePromise"),v=Symbol("stream");function b(p,x){return{value:p,done:x}}function S(p){var x=p[a];if(x!==null){var R=p[v].read();R!==null&&(p[s]=null,p[a]=null,p[l]=null,x(b(R,!1)))}}function A(p){ye.nextTick(S,p)}function w(p,x){return function(R,F){p.then(function(){if(x[u]){R(b(void 0,!0));return}x[c](R,F)},F)}}var E=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((t={get stream(){return this[v]},next:function(){var x=this,R=this[o];if(R!==null)return Promise.reject(R);if(this[u])return Promise.resolve(b(void 0,!0));if(this[v].destroyed)return new Promise(function(K,J){ye.nextTick(function(){x[o]?J(x[o]):K(b(void 0,!0))})});var F=this[s],P;if(F)P=new Promise(w(F,this));else{var $=this[v].read();if($!==null)return Promise.resolve(b($,!1));P=new Promise(this[c])}return this[s]=P,P}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var x=this;return new Promise(function(R,F){x[v].destroy(null,function(P){if(P){F(P);return}R(b(void 0,!0))})})}),t),E),T=function(x){var R,F=Object.create(y,(R={},e(R,v,{value:x,writable:!0}),e(R,a,{value:null,writable:!0}),e(R,l,{value:null,writable:!0}),e(R,o,{value:null,writable:!0}),e(R,u,{value:x._readableState.endEmitted,writable:!0}),e(R,c,{value:function($,K){var J=F[v].read();J?(F[s]=null,F[a]=null,F[l]=null,$(b(J,!1))):(F[a]=$,F[l]=K)},writable:!0}),R));return F[s]=null,r(x,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var $=F[l];$!==null&&(F[s]=null,F[a]=null,F[l]=null,$(P)),F[o]=P;return}var K=F[a];K!==null&&(F[s]=null,F[a]=null,F[l]=null,K(b(void 0,!0))),F[u]=!0}),x.on("readable",A.bind(null,F)),F};return pn=T,pn}var mn,Ji;function nu(){return Ji||(Ji=1,mn=function(){throw new Error("Readable.from is not available in the browser")}),mn}var wn,Qi;function qs(){if(Qi)return wn;Qi=1,wn=C;var t;C.ReadableState=J,zn.EventEmitter;var e=function(N,Y){return N.listeners(Y).length},r=Ls(),a=Ar().Buffer,l=tt.Uint8Array||function(){};function o(I){return a.from(I)}function u(I){return a.isBuffer(I)||I instanceof l}var s=Hs(),c;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var v=Qo(),b=Ks(),S=Vs(),A=S.getHighWaterMark,w=Bt().codes,E=w.ERR_INVALID_ARG_TYPE,y=w.ERR_STREAM_PUSH_AFTER_EOF,T=w.ERR_METHOD_NOT_IMPLEMENTED,p=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,R,F;gt(C,r);var P=b.errorOrDestroy,$=["error","close","destroy","pause","resume"];function K(I,N,Y){if(typeof I.prependListener=="function")return I.prependListener(N,Y);!I._events||!I._events[N]?I.on(N,Y):Array.isArray(I._events[N])?I._events[N].unshift(Y):I._events[N]=[Y,I._events[N]]}function J(I,N,Y){t=t||kt(),I=I||{},typeof Y!="boolean"&&(Y=N instanceof t),this.objectMode=!!I.objectMode,Y&&(this.objectMode=this.objectMode||!!I.readableObjectMode),this.highWaterMark=A(this,I,"readableHighWaterMark",Y),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=I.emitClose!==!1,this.autoDestroy=!!I.autoDestroy,this.destroyed=!1,this.defaultEncoding=I.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I.encoding&&(x||(x=In().StringDecoder),this.decoder=new x(I.encoding),this.encoding=I.encoding)}function C(I){if(t=t||kt(),!(this instanceof C))return new C(I);var N=this instanceof t;this._readableState=new J(I,this,N),this.readable=!0,I&&(typeof I.read=="function"&&(this._read=I.read),typeof I.destroy=="function"&&(this._destroy=I.destroy)),r.call(this)}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),C.prototype.destroy=b.destroy,C.prototype._undestroy=b.undestroy,C.prototype._destroy=function(I,N){N(I)},C.prototype.push=function(I,N){var Y=this._readableState,h;
vendor: 9,236 bytes, line 16
16return Y.objectMode?h=!0:typeof I=="string"&&(N=N||Y.defaultEncoding,N!==Y.encoding&&(I=a.from(I,N),N=""),h=!0),ie(this,I,N,!1,h)},C.prototype.unshift=function(I){return ie(this,I,null,!0,!1)};function ie(I,N,Y,h,G){c("readableAddChunk",N);var g=I._readableState;if(N===null)g.reading=!1,le(I,g);else{var n;if(G||(n=D(g,N)),n)P(I,n);else if(g.objectMode||N&&N.length>0)if(typeof N!="string"&&!g.objectMode&&Object.getPrototypeOf(N)!==a.prototype&&(N=o(N)),h)g.endEmitted?P(I,new p):ue(I,g,N,!0);else if(g.ended)P(I,new y);else{if(g.destroyed)return!1;g.reading=!1,g.decoder&&!Y?(N=g.decoder.write(N),g.objectMode||N.length!==0?ue(I,g,N,!1):ee(I,g)):ue(I,g,N,!1)}else h||(g.reading=!1,ee(I,g))}return!g.ended&&(g.length<g.highWaterMark||g.length===0)}function ue(I,N,Y,h){N.flowing&&N.length===0&&!N.sync?(N.awaitDrain=0,I.emit("data",Y)):(N.length+=N.objectMode?1:Y.length,h?N.buffer.unshift(Y):N.buffer.push(Y),N.needReadable&&X(I)),ee(I,N)}function D(I,N){var Y;return!u(N)&&typeof N!="string"&&N!==void 0&&!I.objectMode&&(Y=new E("chunk",["string","Buffer","Uint8Array"],N)),Y}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(I){x||(x=In().StringDecoder);var N=new x(I);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;for(var Y=this._readableState.buffer.head,h="";Y!==null;)h+=N.write(Y.data),Y=Y.next;return this._readableState.buffer.clear(),h!==""&&this._readableState.buffer.push(h),this._readableState.length=h.length,this};var V=1073741824;function _(I){return I>=V?I=V:(I--,I|=I>>>1,I|=I>>>2,I|=I>>>4,I|=I>>>8,I|=I>>>16,I++),I}function q(I,N){return I<=0||N.length===0&&N.ended?0:N.objectMode?1:I!==I?N.flowing&&N.length?N.buffer.head.data.length:N.length:(I>N.highWaterMark&&(N.highWaterMark=_(I)),I<=N.length?I:N.ended?N.length:(N.needReadable=!0,0))}C.prototype.read=function(I){c("read",I),I=parseInt(I,10);var N=this._readableState,Y=I;if(I!==0&&(N.emittedReadable=!1),I===0&&N.needReadable&&((N.highWaterMark!==0?N.length>=N.highWaterMark:N.length>0)||N.ended))return c("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?d(this):X(this),null;if(I=q(I,N),I===0&&N.ended)return N.length===0&&d(this),null;var h=N.needReadable;c("need readable",h),(N.length===0||N.length-I<N.highWaterMark)&&(h=!0,c("length less than watermark",h)),N.ended||N.reading?(h=!1,c("reading or ended",h)):h&&(c("do read"),N.reading=!0,N.sync=!0,N.length===0&&(N.needReadable=!0),this._read(N.highWaterMark),N.sync=!1,N.reading||(I=q(Y,N)));var G;return I>0?G=m(I,N):G=null,G===null?(N.needReadable=N.length<=N.highWaterMark,I=0):(N.length-=I,N.awaitDrain=0),N.length===0&&(N.ended||(N.needReadable=!0),Y!==I&&N.ended&&d(this)),G!==null&&this.emit("data",G),G};function le(I,N){if(c("onEofChunk"),!N.ended){if(N.decoder){var Y=N.decoder.end();Y&&Y.length&&(N.buffer.push(Y),N.length+=N.objectMode?1:Y.length)}N.ended=!0,N.sync?X(I):(N.needReadable=!1,N.emittedReadable||(N.emittedReadable=!0,he(I)))}}function X(I){var N=I._readableState;c("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,N.emittedReadable||(c("emitReadable",N.flowing),N.emittedReadable=!0,ye.nextTick(he,I))}function he(I){var N=I._readableState;c("emitReadable_",N.destroyed,N.length,N.ended),!N.destroyed&&(N.length||N.ended)&&(I.emit("readable"),N.emittedReadable=!1),N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,z(I)}function ee(I,N){N.readingMore||(N.readingMore=!0,ye.nextTick(fe,I,N))}function fe(I,N){for(;!N.reading&&!N.ended&&(N.length<N.highWaterMark||N.flowing&&N.length===0);){var Y=N.length;if(c("maybeReadMore read 0"),I.read(0),Y===N.length)break}N.readingMore=!1}C.prototype._read=function(I){P(this,new T("_read()"))},C.prototype.pipe=function(I,N){var Y=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=I;break;case 1:h.pipes=[h.pipes,I];break;default:h.pipes.push(I);break}h.pipesCount+=1,c("pipe count=%d opts=%j",h.pipesCount,N);var G=(!N||N.end!==!1)&&I!==ye.stdout&&I!==ye.stderr,g=G?i:ce;h.endEmitted?ye.nextTick(g):Y.once("end",g),I.on("unpipe",n);function n(de,me){c("onunpipe"),de===Y&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,W())}function i(){c("onend"),I.end()}var f=U(Y);I.on("drain",f);var O=!1;function W(){c("cleanup"),I.removeListener("close",oe),I.removeListener("finish",ne),I.removeListener("drain",f),I.removeListener("error",te),I.removeListener("unpipe",n),Y.removeListener("end",i),Y.removeListener("end",ce),Y.removeListener("data",L),O=!0,h.awaitDrain&&(!I._writableState||I._writableState.needDrain)&&f()}Y.on("data",L);function L(de){c("ondata");var me=I.write(de);c("dest.write",me),me===!1&&((h.pipesCount===1&&h.pipes===I||h.pipesCount>1&&B(h.pipes,I)!==-1)&&!O&&(c("false write response, pause",h.awaitDrain),h.awaitDrain++),Y.pause())}function te(de){c("onerror",de),ce(),I.removeListener("error",te),e(I,"error")===0&&P(I,de)}K(I,"error",te);function oe(){I.removeListener("finish",ne),ce()}I.once("close",oe);function ne(){c("onfinish"),I.removeListener("close",oe),ce()}I.once("finish",ne);function ce(){c("unpipe"),Y.unpipe(I)}return I.emit("pipe",Y),h.flowing||(c("pipe resume"),Y.resume()),I};function U(I){return function(){var Y=I._readableState;c("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&e(I,"data")&&(Y.flowing=!0,z(I))}}C.prototype.unpipe=function(I){var N=this._readableState,Y={hasUnpiped:!1};if(N.pipesCount===0)return this;if(N.pipesCount===1)return I&&I!==N.pipes?this:(I||(I=N.pipes),N.pipes=null,N.pipesCount=0,N.flowing=!1,I&&I.emit("unpipe",this,Y),this);if(!I){var h=N.pipes,G=N.pipesCount;N.pipes=null,N.pipesCount=0,N.flowing=!1;for(var g=0;g<G;g++)h[g].emit("unpipe",this,{hasUnpiped:!1});return this}var n=B(N.pipes,I);return n===-1?this:(N.pipes.splice(n,1),N.pipesCount-=1,N.pipesCount===1&&(N.pipes=N.pipes[0]),I.emit("unpipe",this,Y),this)},C.prototype.on=function(I,N){var Y=r.prototype.on.call(this,I,N),h=this._readableState;return I==="data"?(h.readableListening=this.listenerCount("readable")>0,h.flowing!==!1&&this.resume()):I==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,c("on readable",h.length,h.reading),h.length?X(this):h.reading||ye.nextTick(j,this)),Y},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(I,N){var Y=r.prototype.removeListener.call(this,I,N);return I==="readable"&&ye.nextTick(k,this),Y},C.prototype.removeAllListeners=function(I){var N=r.prototype.removeAllListeners.apply(this,arguments);return(I==="readable"||I===void 0)&&ye.nextTick(k,this),N};function k(I){var N=I._readableState;N.readableListening=I.listenerCount("readable")>0,N.resumeScheduled&&!N.paused?N.flowing=!0:I.listenerCount("data")>0&&I.resume()}function j(I){c("readable nexttick read 0"),I.read(0)}C.prototype.resume=function(){var I=this._readableState;return I.flowing||(c("resume"),I.flowing=!I.readableListening,H(this,I)),I.paused=!1,this};function H(I,N){N.resumeScheduled||(N.resumeScheduled=!0,ye.nextTick(Z,I,N))}function Z(I,N){c("resume",N.reading),N.reading||I.read(0),N.resumeScheduled=!1,I.emit("resume"),z(I),N.flowing&&!N.reading&&I.read(0)}C.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function z(I){var N=I._readableState;for(c("flow",N.flowing);N.flowing&&I.read()!==null;);}C.prototype.wrap=function(I){var N=this,Y=this._readableState,h=!1;I.on("end",function(){if(c("wrapped end"),Y.decoder&&!Y.ended){var n=Y.decoder.end();n&&n.length&&N.push(n)}N.push(null)}),I.on("data",function(n){if(c("wrapped data"),Y.decoder&&(n=Y.decoder.write(n)),!(Y.objectMode&&n==null)&&!(!Y.objectMode&&(!n||!n.length))){var i=N.push(n);i||(h=!0,I.pause())}});for(var G in I)this[G]===void 0&&typeof I[G]=="function"&&(this[G]=(function(i){return function(){return I[i].apply(I,arguments)}})(G));for(var g=0;g<$.length;g++)I.on($[g],this.emit.bind(this,$[g]));return this._read=function(n){c("wrapped _read",n),h&&(h=!1,I.resume())},this},typeof Symbol=="function"&&(C.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=ru()),R(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}}),C._fromList=m,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function m(I,N){if(N.length===0)return null;var Y;return N.objectMode?Y=N.buffer.shift():!I||I>=N.length?(N.decoder?Y=N.buffer.join(""):N.buffer.length===1?Y=N.buffer.first():Y=N.buffer.concat(N.length),N.buffer.clear()):Y=N.buffer.consume(I,N.decoder),Y}function d(I){var N=I._readableState;c("endReadable",N.endEmitted),N.endEmitted||(N.ended=!0,ye.nextTick(M,N,I))}
16function M(I,N){if(c("endReadableNT",I.endEmitted,I.length),!I.endEmitted&&I.length===0&&(I.endEmitted=!0,N.readable=!1,N.emit("end"),I.autoDestroy)){var Y=N._writableState;(!Y||Y.autoDestroy&&Y.finished)&&N.destroy()}}typeof Symbol=="function"&&(C.from=function(I,N){return F===void 0&&(F=nu()),F(C,I,N)});function B(I,N){for(var Y=0,h=I.length;Y<h;Y++)if(I[Y]===N)return Y;return-1}return wn}var gn,es;function $s(){if(es)return gn;es=1,gn=s;var t=Bt().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,r=t.ERR_MULTIPLE_CALLBACK,a=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=t.ERR_TRANSFORM_WITH_LENGTH_0,o=kt();gt(s,o);function u(b,S){var A=this._transformState;A.transforming=!1;var w=A.writecb;if(w===null)return this.emit("error",new r);A.writechunk=null,A.writecb=null,S!=null&&this.push(S),w(b);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function s(b){if(!(this instanceof s))return new s(b);o.call(this,b),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,b&&(typeof b.transform=="function"&&(this._transform=b.transform),typeof b.flush=="function"&&(this._flush=b.flush)),this.on("prefinish",c)}function c(){var b=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,A){v(b,S,A)}):v(this,null,null)}s.prototype.push=function(b,S){return this._transformState.needTransform=!1,o.prototype.push.call(this,b,S)},s.prototype._transform=function(b,S,A){A(new e("_transform()"))},s.prototype._write=function(b,S,A){var w=this._transformState;if(w.writecb=A,w.writechunk=b,w.writeencoding=S,!w.transforming){var E=this._readableState;(w.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},s.prototype._read=function(b){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},s.prototype._destroy=function(b,S){o.prototype._destroy.call(this,b,function(A){S(A)})};function v(b,S,A){if(S)return b.emit("error",S);if(A!=null&&b.push(A),b._writableState.length)throw new l;if(b._transformState.transforming)throw new a;return b.push(null)}return gn}var yn,ts;function iu(){if(ts)return yn;ts=1,yn=e;var t=$s();gt(e,t);function e(r){if(!(this instanceof e))return new e(r);t.call(this,r)}return e.prototype._transform=function(r,a,l){l(null,r)},yn}var vn,rs;function su(){if(rs)return vn;rs=1;var t;function e(A){var w=!1;return function(){w||(w=!0,A.apply(void 0,arguments))}}var r=Bt().codes,a=r.ERR_MISSING_ARGS,l=r.ERR_STREAM_DESTROYED;function o(A){if(A)throw A}function u(A){return A.setHeader&&typeof A.abort=="function"}function s(A,w,E,y){y=e(y);var T=!1;A.on("close",function(){T=!0}),t===void 0&&(t=Vn()),t(A,{readable:w,writable:E},function(x){if(x)return y(x);T=!0,y()});var p=!1;return function(x){if(!T&&!p){if(p=!0,u(A))return A.abort();if(typeof A.destroy=="function")return A.destroy();y(x||new l("pipe"))}}}function c(A){A()}function v(A,w){return A.pipe(w)}function b(A){return!A.length||typeof A[A.length-1]!="function"?o:A.pop()}function S(){for(var A=arguments.length,w=new Array(A),E=0;E<A;E++)w[E]=arguments[E];var y=b(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new a("streams");var T,p=w.map(function(x,R){var F=R<w.length-1,P=R>0;return s(x,F,P,function($){T||(T=$),$&&p.forEach(c),!F&&(p.forEach(c),y(T))})});return w.reduce(v)}return vn=S,vn}var Gn=He,qn=zn.EventEmitter,au=gt;au(He,qn);He.Readable=qs();He.Writable=Gs();He.Duplex=kt();He.Transform=$s();He.PassThrough=iu();He.finished=Vn();He.pipeline=su();He.Stream=He;function He(){qn.call(this)}He.prototype.pipe=function(t,e){var r=this;function a(b){t.writable&&t.write(b)===!1&&r.pause&&r.pause()}r.on("data",a);function l(){r.readable&&r.resume&&r.resume()}t.on("drain",l),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",u),r.on("close",s));var o=!1;function u(){o||(o=!0,t.end())}function s(){o||(o=!0,typeof t.destroy=="function"&&t.destroy())}function c(b){if(v(),qn.listenerCount(this,"error")===0)throw b}r.on("error",c),t.on("error",c);function v(){r.removeListener("data",a),t.removeListener("drain",l),r.removeListener("end",u),r.removeListener("close",s
vendor: 29,967 bytes, lines 16-26
16),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",v),r.removeListener("close",v),t.removeListener("close",v)}return r.on("end",v),r.on("close",v),t.on("close",v),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(m,d){return new a(m,d)},e.SAXParser=a,e.SAXStream=b,e.createStream=v,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(m,d){if(!(this instanceof a))return new a(m,d);var M=this;o(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=d||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!m,M.noscript=!!(m||M.opt.noscript),M.state=C.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(y)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),ue(M,"onready")}Object.create||(Object.create=function(m){function d(){}d.prototype=m;var M=new d;return M}),Object.keys||(Object.keys=function(m){var d=[];for(var M in m)m.hasOwnProperty(M)&&d.push(M);return d});function l(m){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,B=0,I=r.length;B<I;B++){var N=m[r[B]].length;if(N>d)switch(r[B]){case"textNode":V(m);break;case"cdata":D(m,"oncdata",m.cdata),m.cdata="";break;case"script":D(m,"onscript",m.script),m.script="";break;default:q(m,"Max buffer length exceeded: "+r[B])}M=Math.max(M,N)}var Y=e.MAX_BUFFER_LENGTH-M;m.bufferCheckPosition=Y+m.position}function o(m){for(var d=0,M=r.length;d<M;d++)m[r[d]]=""}function u(m){V(m),m.cdata!==""&&(D(m,"oncdata",m.cdata),m.cdata=""),m.script!==""&&(D(m,"onscript",m.script),m.script="")}a.prototype={end:function(){le(this)},write:z,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){u(this)}};var s;try{s=Gn.Stream}catch{s=function(){}}var c=e.EVENTS.filter(function(m){return m!=="error"&&m!=="end"});function v(m,d){return new b(m,d)}function b(m,d){if(!(this instanceof b))return new b(m,d);s.apply(this),this._parser=new a(m,d),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(B){M.emit("error",B),M._parser.error=null},this._decoder=null,c.forEach(function(B){Object.defineProperty(M,"on"+B,{get:function(){return M._parser["on"+B]},set:function(I){if(!I)return M.removeAllListeners(B),M._parser["on"+B]=I,I;M.on(B,I)},enumerable:!0,configurable:!1})})}b.prototype=Object.create(s.prototype,{constructor:{value:b}}),b.prototype.write=function(m){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(m)){if(!this._decoder){var d=In().StringDecoder;this._decoder=new d("utf8")}m=this._decoder.write(m)}return this._parser.write(m.toString()),this.emit("data",m),!0},b.prototype.end=function(m){return m&&m.length&&this.write(m),this._parser.end(),!0},b.prototype.on=function(m,d){var M=this;return!M._parser["on"+m]&&c.indexOf(m)!==-1&&(M._parser["on"+m]=function(){var B=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);B.splice(0,0,m),M.emit.apply(M,B)}),s.prototype.on.call(M,m,d)};var S="[CDATA[",A="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/2000/xmlns/",y={xml:w,xmlns:E},T=/[:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,x=/[#:_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]/,R=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function F(m){return m===" "||m===` 17`||m==="\r"||m===" "}function P(m){return m==='"'||m==="'"}function $(m){return m===">"||F(m)}function K(m,d){return m.test(d)}function J(m,d){return!K(m,d)}var C=0;e.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(m){var d=e.ENTITIES[m],M=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[m]=M});for(var ie in e.STATE)e.STATE[e.STATE[ie]]=ie;C=e.STATE;function ue(m,d,M){m[d]&&m[d](M)}function D(m,d,M){m.textNode&&V(m),ue(m,d,M)}function V(m){m.textNode=_(m.opt,m.textNode),m.textNode&&ue(m,"ontext",m.textNode),m.textNode=""}function _(m,d){return m.trim&&(d=d.trim()),m.normalize&&(d=d.replace(/\s+/g," ")),d}function q(m,d){return V(m),m.trackPosition&&(d+=` 18Line: `+m.line+` 19Column: `+m.column+` 20Char: `+m.c),d=new Error(d),m.error=d,ue(m,"onerror",d),m}function le(m){return m.sawRoot&&!m.closedRoot&&X(m,"Unclosed root tag"),m.state!==C.BEGIN&&m.state!==C.BEGIN_WHITESPACE&&m.state!==C.TEXT&&q(m,"Unexpected end"),V(m),m.c="",m.closed=!0,ue(m,"onend"),a.call(m,m.strict,m.opt),m}function X(m,d){if(typeof m!="object"||!(m instanceof a))throw new Error("bad call to strictFail");m.strict&&q(m,d)}function he(m){m.strict||(m.tagName=m.tagName[m.looseCase]());var d=m.tags[m.tags.length-1]||m,M=m.tag={name:m.tagName,attributes:{}};m.opt.xmlns&&(M.ns=d.ns),m.attribList.length=0,D(m,"onopentagstart",M)}function ee(m,d){var M=m.indexOf(":"),B=M<0?["",m]:m.split(":"),I=B[0],N=B[1];return d&&m==="xmlns"&&(I="xmlns",N=""),{prefix:I,local:N}}function fe(m){if(m.strict||(m.attribName=m.attribName[m.looseCase]()),m.attribList.indexOf(m.attribName)!==-1||m.tag.attributes.hasOwnProperty(m.attribName)){m.attribName=m.attribValue="";return}if(m.opt.xmlns){var d=ee(m.attribName,!0),M=d.prefix,B=d.local;if(M==="xmlns")if(B==="xml"&&m.attribValue!==w)X(m,"xml: prefix must be bound to "+w+` 21Actual: `+m.attribValue);else if(B==="xmlns"&&m.attribValue!==E)X(m,"xmlns: prefix must be bound to "+E+` 22Actual: `+m.attribValue);else{var I=m.tag,N=m.tags[m.tags.length-1]||m;I.ns===N.ns&&(I.ns=Object.create(N.ns)),I.ns[B]=m.attribValue}m.attribList.push([m.attribName,m.attribValue])}else m.tag.attributes[m.attribName]=m.attribValue,D(m,"onattribute",{name:m.attribName,value:m.attribValue});m.attribName=m.attribValue=""}function U(m,d){if(m.opt.xmlns){var M=m.tag,B=ee(m.tagName);M.prefix=B.prefix,M.local=B.local,M.uri=M.ns[B.prefix]||"",M.prefix&&!M.uri&&(X(m,"Unbound namespace prefix: "+JSON.stringify(m.tagName)),M.uri=B.prefix);var I=m.tags[m.tags.length-1]||m;M.ns&&I.ns!==M.ns&&Object.keys(M.ns).forEach(function(L){D(m,"onopennamespace",{prefix:L,uri:M.ns[L]})});for(var N=0,Y=m.attribList.length;N<Y;N++){var h=m.attribList[N],G=h[0],g=h[1],n=ee(G,!0),i=n.prefix,f=n.local,O=i===""?"":M.ns[i]||"",W={name:G,value:g,prefix:i,local:f,uri:O};i&&i!=="xmlns"&&!O&&(X(m,"Unbound namespace prefix: "+JSON.stringify(i)),W.uri=i),m.tag.attributes[G]=W,D(m,"onattribute",W)}m.attribList.length=0}m.tag.isSelfClosing=!!d,m.sawRoot=!0,m.tags.push(m.tag),D(m,"onopentag",m.tag),d||(!m.noscript&&m.tagName.toLowerCase()==="script"?m.state=C.SCRIPT:m.state=C.TEXT,m.tag=null,m.tagName=""),m.attribName=m.attribValue="",m.attribList.length=0}function k(m){if(!m.tagName){X(m,"Weird empty close tag."),m.textNode+="</>",m.state=C.TEXT;return}if(m.script){if(m.tagName!=="script"){m.script+="</"+m.tagName+">",m.tagName="",m.state=C.SCRIPT;return}D(m,"onscript",m.script),m.script=""}var d=m.tags.length,M=m.tagName;m.strict||(M=M[m.looseCase]());for(var B=M;d--;){var I=m.tags[d];if(I.name!==B)X(m,"Unexpected close tag");else break}if(d<0){X(m,"Unmatched closing tag: "+m.tagName),m.textNode+="</"+m.tagName+">",m.state=C.TEXT;return}m.tagName=M;for(var N=m.tags.length;N-- >d;){var Y=m.tag=m.tags.pop();m.tagName=m.tag.name,D(m,"onclosetag",m.tagName);var h={};for(var G in Y.ns)h[G]=Y.ns[G];var g=m.tags[m.tags.length-1]||m;m.opt.xmlns&&Y.ns!==g.ns&&Object.keys(Y.ns).forEach(function(n){var i=Y.ns[n];D(m,"onclosenamespace",{prefix:n,uri:i})})}d===0&&(m.closedRoot=!0),m.tagName=m.attribValue=m.attribName="",m.attribList.length=0,m.state=C.TEXT}function j(m){var d=m.entity,M=d.toLowerCase(),B,I="";return m.ENTITIES[d]?m.ENTITIES[d]:m.ENTITIES[M]?m.ENTITIES[M]:(d=M,d.charAt(0)==="#"&&(d.charAt(1)==="x"?(d=d.slice(2),B=parseInt(d,16),I=B.toString(16)):(d=d.slice(1),B=parseInt(d,10),I=B.toString(10))),d=d.replace(/^0+/,""),isNaN(B)||I.toLowerCase()!==d?(X(m,"Invalid character entity"),"&"+m.entity+";"):String.fromCodePoint(B))}function H(m,d){d==="<"?(m.state=C.OPEN_WAKA,m.startTagPosition=m.position):F(d)||(X(m,"Non-whitespace before first tag."),m.textNode=d,m.state=C.TEXT)}function Z(m,d){var M="";return d<m.length&&(M=m.charAt(d)),M}function z(m){var d=this;if(this.error)throw this.error;if(d.closed)return q(d,"Cannot write after close. Assign an onready handler.");if(m===null)return le(d);typeof m=="object"&&(m=m.toString());for(var M=0,B="";B=Z(m,M++),d.c=B,!!B;)switch(d.trackPosition&&(d.position++,B===` 23`?(d.line++,d.column=0):d.column++),d.state){case C.BEGIN:if(d.state=C.BEGIN_WHITESPACE,B==="\uFEFF")continue;H(d,B);continue;case C.BEGIN_WHITESPACE:H(d,B);continue;case C.TEXT:if(d.sawRoot&&!d.closedRoot){for(var I=M-1;B&&B!=="<"&&B!=="&";)B=Z(m,M++),B&&d.trackPosition&&(d.position++,B===` 24`?(d.line++,d.column=0):d.column++);d.textNode+=m.substring(I,M-1)}B==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=C.OPEN_WAKA,d.startTagPosition=d.position):(!F(B)&&(!d.sawRoot||d.closedRoot)&&X(d,"Text data outside of root node."),B==="&"?d.state=C.TEXT_ENTITY:d.textNode+=B);continue;case C.SCRIPT:B==="<"?d.state=C.SCRIPT_ENDING:d.script+=B;continue;case C.SCRIPT_ENDING:B==="/"?d.state=C.CLOSE_TAG:(d.script+="<"+B,d.state=C.SCRIPT);continue;case C.OPEN_WAKA:if(B==="!")d.state=C.SGML_DECL,d.sgmlDecl="";else if(!F(B))if(K(T,B))d.state=C.OPEN_TAG,d.tagName=B;else if(B==="/")d.state=C.CLOSE_TAG,d.tagName="";else if(B==="?")d.state=C.PROC_INST,d.procInstName=d.procInstBody="";else{if(X(d,"Unencoded <"),d.startTagPosition+1<d.position){var N=d.position-d.startTagPosition;B=new Array(N).join(" ")+B}d.textNode+="<"+B,d.state=C.TEXT}continue;case C.SGML_DECL:(d.sgmlDecl+B).toUpperCase()===S?(D(d,"onopencdata"),d.state=C.CDATA,d.sgmlDecl="",d.cdata=""):d.sgmlDecl+B==="--"?(d.state=C.COMMENT,d.comment="",d.sgmlDecl=""):(d.sgmlDecl+B).toUpperCase()===A?(d.state=C.DOCTYPE,(d.doctype||d.sawRoot)&&X(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):B===">"?(D(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=C.TEXT):(P(B)&&(d.state=C.SGML_DECL_QUOTED),d.sgmlDecl+=B);continue;case C.SGML_DECL_QUOTED:B===d.q&&(d.state=C.SGML_DECL,d.q=""),d.sgmlDecl+=B;continue;case C.DOCTYPE:B===">"?(d.state=C.TEXT,D(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=B,B==="["?d.state=C.DOCTYPE_DTD:P(B)&&(d.state=C.DOCTYPE_QUOTED,d.q=B));continue;case C.DOCTYPE_QUOTED:d.doctype+=B,B===d.q&&(d.q="",d.state=C.DOCTYPE);continue;case C.DOCTYPE_DTD:d.doctype+=B,B==="]"?d.state=C.DOCTYPE:P(B)&&(d.state=C.DOCTYPE_DTD_QUOTED,d.q=B);continue;case C.DOCTYPE_DTD_QUOTED:d.doctype+=B,B===d.q&&(d.state=C.DOCTYPE_DTD,d.q="");continue;case C.COMMENT:B==="-"?d.state=C.COMMENT_ENDING:d.comment+=B;continue;case C.COMMENT_ENDING:B==="-"?(d.state=C.COMMENT_ENDED,d.comment=_(d.opt,d.comment),d.comment&&D(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+B,d.state=C.COMMENT);continue;case C.COMMENT_ENDED:B!==">"?(X(d,"Malformed comment"),d.comment+="--"+B,d.state=C.COMMENT):d.state=C.TEXT;continue;case C.CDATA:B==="]"?d.state=C.CDATA_ENDING:d.cdata+=B;continue;case C.CDATA_ENDING:B==="]"?d.state=C.CDATA_ENDING_2:(d.cdata+="]"+B,d.state=C.CDATA);continue;case C.CDATA_ENDING_2:B===">"?(d.cdata&&D(d,"oncdata",d.cdata),D(d,"onclosecdata"),d.cdata="",d.state=C.TEXT):B==="]"?d.cdata+="]":(d.cdata+="]]"+B,d.state=C.CDATA);continue;case C.PROC_INST:B==="?"?d.state=C.PROC_INST_ENDING:F(B)?d.state=C.PROC_INST_BODY:d.procInstName+=B;continue;case C.PROC_INST_BODY:if(!d.procInstBody&&F(B))continue;B==="?"?d.state=C.PROC_INST_ENDING:d.procInstBody+=B;continue;case C.PROC_INST_ENDING:B===">"?(D(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=C.TEXT):(d.procInstBody+="?"+B,d.state=C.PROC_INST_BODY);continue;case C.OPEN_TAG:K(p,B)?d.tagName+=B:(he(d),B===">"?U(d):B==="/"?d.state=C.OPEN_TAG_SLASH:(F(B)||X(d,"Invalid character in tag name"),d.state=C.ATTRIB));continue;case C.OPEN_TAG_SLASH:B===">"?(U(d,!0),k(d)):(X(d,"Forward-slash in opening tag not followed by >"),d.state=C.ATTRIB);continue;case C.ATTRIB:if(F(B))continue;B===">"?U(d):B==="/"?d.state=C.OPEN_TAG_SLASH:K(T,B)?(d.attribName=B,d.attribValue="",d.state=C.ATTRIB_NAME):X(d,"Invalid attribute name");continue;case C.ATTRIB_NAME:B==="="?d.state=C.ATTRIB_VALUE:B===">"?(X(d,"Attribute without value"),d.attribValue=d.attribName,fe(d),U(d)):F(B)?d.state=C.ATTRIB_NAME_SAW_WHITE:K(p,B)?d.attribName+=B:X(d,"Invalid attribute name");continue;case C.ATTRIB_NAME_SAW_WHITE:if(B==="=")d.state=C.ATTRIB_VALUE;else{if(F(B))continue;X(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",D(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",B===">"?U(d):K(T,B)?(d.attribName=B,d.state=C.ATTRIB_NAME):(X(d,"Invalid attribute name"),d.state=C.ATTRIB)}continue;case C.ATTRIB_VALUE:if(F(B))continue;P(B)?(d.q=B,d.state=C.ATTRIB_VALUE_QUOTED):(X(d,"Unquoted attribute value"),d.state=C.ATTRIB_VALUE_UNQUOTED,d.attribValue=B);continue;case C.ATTRIB_VALUE_QUOTED:if(B!==d.q){B==="&"?d.state=C.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=B;continue}fe(d),d.q="",d.state=C.ATTRIB_VALUE_CLOSED;continue;case C.ATTRIB_VALUE_CLOSED:F(B)?d.state=C.ATTRIB:B===">"?U(d):B==="/"?d.state=C.OPEN_TAG_SLASH:K(T,B)?(X(d,"No whitespace between attributes"),d.attribName=B,d.attribValue="",d.state=C.ATTRIB_NAME):X(d,"Invalid attribute name");continue;case C.ATTRIB_VALUE_UNQUOTED:if(!$(B)){B==="&"?d.state=C.ATTRIB_VALUE_ENTITY_U:d.attribValue+=B;continue}fe(d),B===">"?U(d):d.state=C.ATTRIB;continue;case C.CLOSE_TAG:if(d.tagName)B===">"?k(d):K(p,B)?d.tagName+=B:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=C.SCRIPT):(F(B)||X(d,"Invalid tagname in closing tag"),d.state=C.CLOSE_TAG_SAW_WHITE);else{if(F(B))continue;J(T,B)?d.script?(d.script+="</"+B,d.state=C.SCRIPT):X(d,"Invalid tagname in closing tag."):d.tagName=B}continue;case C.CLOSE_TAG_SAW_WHITE:if(F(B))continue;B===">"?k(d):X(d,"Invalid characters in closing tag");continue;case C.TEXT_ENTITY:case C.ATTRIB_VALUE_ENTITY_Q:case C.ATTRIB_VALUE_ENTITY_U:var Y,h;switch(d.state){case C.TEXT_ENTITY:Y=C.TEXT,h="textNode";break;case C.ATTRIB_VALUE_ENTITY_Q:Y=C.ATTRIB_VALUE_QUOTED,h="attribValue";break;case C.ATTRIB_VALUE_ENTITY_U:Y=C.ATTRIB_VALUE_UNQUOTED,h="attribValue";break}B===";"?(d[h]+=j(d),d.entity="",d.state=Y):K(d.entity.length?R:x,B)?d.entity+=B:(X(d,"Invalid character in entity name"),d[h]+="&"+d.entity+B,d.entity="",d.state=Y);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&l(d),d}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var m=String.fromCharCode,d=Math.floor,M=function(){var B=16384,I=[],N,Y,h=-1,G=arguments.length;if(!G)return"";for(var g="";++h<G;){var n=Number(arguments[h]);if(!isFinite(n)||n<0||n>1114111||d(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?I.push(n):(n-=65536,N=(n>>10)+55296,Y=n%1024+56320,I.push(N,Y)),(h+1===G||I.length>B)&&(g+=m.apply(null,I),I.length=0)}return g};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M})()})(t)})(As);var $n={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},ou=$n.isArray,Xn={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!ou(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},uu=As,Ee=Xn,At=$n.isArray,Q,we;function lu(t){return Q=Ee.copyOptions(t),Ee.ensureFlagExists("ignoreDeclaration",Q),Ee.ensureFlagExists("ignoreInstruction",Q),Ee.ensureFlagExists("ignoreAttributes",Q),Ee.ensureFlagExists("ignoreText",Q),Ee.ensureFlagExists("ignoreComment",Q),Ee.ensureFlagExists("ignoreCdata",Q),Ee.ensureFlagExists("ignoreDoctype",Q),Ee.ensureFlagExists("compact",Q),Ee.ensureFlagExists("alwaysChildren",Q),Ee.ensureFlagExists("addParent",Q),Ee.ensureFlagExists("trim",Q),Ee.ensureFlagExists("nativeType",Q),Ee.ensureFlagExists("nativeTypeAttributes",Q),Ee.ensureFlagExists("sanitize",Q),Ee.ensureFlagExists("instructionHasAttributes",Q),Ee.ensureFlagExists("captureSpacesBetweenElements",Q),Ee.ensureAlwaysArrayExists(Q),Ee.ensureKeyExists("declaration",Q),Ee.ensureKeyExists("instruction",Q),Ee.ensureKeyExists("attributes",Q),Ee.ensureKeyExists("text",Q),Ee.ensureKeyExists("comment",Q),Ee.ensureKeyExists("cdata",Q),Ee.ensureKeyExists("doctype",Q),Ee.ensureKeyExists("type",Q),Ee.ensureKeyExists("name",Q),Ee.ensureKeyExists("elements",Q),Ee.ensureKeyExists("parent",Q),Q}function Xs(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function Zt(t,e){var r;if(Q.compact){if(!we[Q[t+"Key"]]&&(At(Q.alwaysArray)?Q.alwaysArray.indexOf(Q[t+"Key"])!==-1:Q.alwaysArray)&&(we[Q[t+"Key"]]=[]),we[Q[t+"Key"]]&&!At(we[Q[t+"Key"]])&&(we[Q[t+"Key"]]=[we[Q[t+"Key"]]]),t+"Fn"in Q&&typeof e=="string"&&(e=Q[t+"Fn"](e,we)),t==="instruction"&&("instructionFn"in Q||"instructionNameFn"in Q)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in Q)e[r]=Q.instructionFn(e[r],r,we);else{var a=e[r];delete e[r],e[Q.instructionNameFn(r,a,we)]=a}}At(we[Q[t+"Key"]])?we[Q[t+"Key"]].push(e):we[Q[t+"Key"]]=e}else{we[Q.elementsKey]||(we[Q.elementsKey]=[]);var l={};if(l[Q.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;l[Q.nameKey]="instructionNameFn"in Q?Q.instructionNameFn(r,e,we):r,Q.instructionHasAttributes?(l[Q.attributesKey]=e[r][Q.attributesKey],"instructionFn"in Q&&(l[Q.attributesKey]=Q.instructionFn(l[Q.attributesKey],r,we))):("instructionFn"in Q&&(e[r]=Q.instructionFn(e[r],r,we)),l[Q.instructionKey]=e[r])}else t+"Fn"in Q&&(e=Q[t+"Fn"](e,we)),l[Q[t+"Key"]]=e;Q.addParent&&(l[Q.parentKey]=we),we[Q.elementsKey].push(l)}}function Zs(t){if("attributesFn"in Q&&t&&(t=Q.attributesFn(t,we)),(Q.trim||"attributeValueFn"in Q||"attributeNameFn"in Q||Q.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(Q.trim&&(t[e]=t[e].trim()),Q.nativeTypeAttributes&&(t[e]=Xs(t[e])),"attributeValueFn"in Q&&(t[e]=Q.attributeValueFn(t[e],e,we)),"attributeNameFn"in Q)){var r=t[e];delete t[e],t[Q.attributeNameFn(e,t[e],we)]=r}}return t}function cu(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||Q.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=r.exec(t.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=Zs(e)}if(t.name.toLowerCase()==="xml"){if(Q.ignoreDeclaration)return;we[Q.declarationKey]={},Object.keys(e).length&&(we[Q.declarationKey][Q.attributesKey]=e),Q.addParent&&(we[Q.declarationKey][Q.parentKey]=we)}else{if(Q.ignoreInstruction)return;Q.trim&&(t.body=t.body.trim());var l={};Q.instructionHasAttributes&&Object.keys(e).length?(l[t.name]={},l[t.name][Q.attributesKey]=e):l[t.name]=t.body,Zt("instruction",l)}}function fu(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=Zs(e),"elementNameFn"in Q&&(t=Q.elementNameFn(t,we)),Q.compact){if(r={},!Q.ignoreAttributes&&e&&Object.keys(e).length){r[Q.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(r[Q.attributesKey][a]=e[a])}!(t in we)&&(At(Q.alwaysArray)?Q.alwaysArray.indexOf(t)!==-1:Q.alwaysArray)&&(we[t]=[]),we[t]&&!At(we[t])&&(we[t]=[we[t]]),At(we[t])?we[t].push(r):we[t]=r}else we[Q.elementsKey]||(we[Q.elementsKey]=[]),r={},r[Q.typeKey]="element",r[Q.nameKey]=t,!Q.ignoreAttributes&&e&&Object.keys(e).length&&(r[Q.attributesKey]=e),Q.alwaysChildren&&(r[Q.elementsKey]=[]),we[Q.elementsKey].push(r);r[Q.parentKey]=we,we=r}function hu(t){Q.ignoreText||!t.trim()&&!Q.captureSpacesBetweenElements||(Q.trim&&(t=t.trim()),Q.nativeType&&(t=Xs(t)),Q.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Zt("text",t))}function du(t){Q.ignoreComment||(Q.trim&&(t=t.trim()),Zt("comment",t))}function pu(t){var e=we[Q.parentKey];Q.addParent||delete we[Q.parentKey],we=e}function mu(t){Q.ignoreCdata||(Q.trim&&(t=t.trim()),Zt("cdata",t))}function wu(t){Q.ignoreDoctype||(t=t.replace(/^ /,""),Q.trim&&(t=t.trim()),Zt("doctype",t))}function gu(t){t.note=t}var Ys=function(t,e){var r=uu.parser(!0,{}),a={};if(we=a,Q=lu(e),r.opt={strictEntities:!0},r.onopentag=fu,r.ontext=hu,r.oncomment=du,r.onclosetag=pu,r.onerror=gu,r.oncdata=mu,r.ondoctype=wu,r.onprocessinginstruction=cu,r.write(t).close(),a[Q.elementsKey]){var l=a[Q.elementsKey];delete a[Q.elementsKey],a[Q.elementsKey]=l,delete a.text}return a},ns=Xn,yu=Ys;function vu(t){var e=ns.copyOptions(t);return ns.ensureSpacesExists(e),e}var bu=function(t,e){var r,a,l,o;return r=vu(e),a=yu(t,r),o="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?l=JSON.stringify(a,function(u,s){return u===o?"_":s},r.spaces):l=JSON.stringify(a,null,r.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Te=Xn,_u=$n.isArray,Be,Pe;function xu(t){var e=Te.copyOptions(t);return Te.ensureFlagExists("ignoreDeclaration",e),Te.ensureFlagExists("ignoreInstruction",e),Te.ensureFlagExists("ignoreAttributes",e),Te.ensureFlagExists("ignoreText",e),Te.ensureFlagExists("ignoreComment",e),Te.ensureFlagExists("ignoreCdata",e),Te.ensureFlagExists("ignoreDoctype",e),Te.ensureFlagExists("compact",e),Te.ensureFlagExists("indentText",e),Te.ensureFlagExists("indentCdata",e),Te.ensureFlagExists("indentAttributes",e),Te.ensureFlagExists("indentInstruction",e),Te.ensureFlagExists("fullTagEmptyElement",e),Te.ensureFlagExists("noQuotesForNativeAttributes",e),Te.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Te.ensureKeyExists("declaration",e),Te.ensureKeyExists("instruction",e),Te.ensureKeyExists("attributes",e),Te.ensureKeyExists("text",e),Te.ensureKeyExists("comment",e),Te.ensureKeyExists("cdata",e),Te.ensureKeyExists("doctype",e),Te.ensureKeyExists("type",e),Te.ensureKeyExists("name",e),Te.ensureKeyExists("elements",e),e}function et(t,e,r){return(!r&&t.spaces?` 25`:"")+Array(e+1).join(t.spaces)}function Sr(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,Pe,Be));var a,l,o,u,s=[];for(a in t)t.hasOwnProperty(a)&&t[a]!==null&&t[a]!==void 0&&(u=e.noQuotesForNativeAttributes&&typeof t[a]!="string"?"":'"',l=""+t[a],l=l.replace(/"/g,"""),o="attributeNameFn"in e?e.attributeNameFn(a,l,Pe,Be):a,s.push(e.spaces&&e.indentAttributes?et(e,r+1,!1):" "),s.push(o+"="+u+("attributeValueFn"in e?e.attributeValueFn(l,a,Pe,Be):l)+u));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&s.push(et(e,r,!1)),s.join("")}function Js(t,e,r){return Be=t,Pe="xml",e.ignoreDeclaration?"":"<?xml"+Sr(t[e.attributesKey],e,r)+"?>"}function Qs(t,e,r){if(e.ignoreInstruction)return"";var a;for(a in t)if(t.hasOwnProperty(a))break;var l="instructionNameFn"in e?e.instructionNameFn(a,t[a],Pe,Be):a;if(typeof t[a]=="object")return Be=t,Pe=l,"<?"+l+Sr(t[a][e.attributesKey],e,r)+"?>";var o=t[a]?t[a]:"";return"instructionFn"in e&&(o=e.instructionFn(o,a,Pe,Be)),"<?"+l+(o?" "+o:"")+"?>"}function ea(t,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(t,Pe,Be):t)+"-->"}function ta(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,Pe,Be):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function ra(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,Pe,Be):t)+">"}function Zn(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(t,Pe,Be):t)}function Eu(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r<t.elements.length;++r)switch(t.elements[r][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function Au(t,e,r){Be=t,Pe=t.name;var a=[],l="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;a.push("<"+l),t[e.attributesKey]&&a.push(Sr(t[e.attributesKey],e,r));var o=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&t[e.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in e?o=e.fullTagEmptyElementFn(t.name,t):o=e.fullTagEmptyElement),o?(a.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(a.push(na(t[e.elementsKey],e,r+1)),Be=t,Pe=t.name),a.push(e.spaces&&Eu(t,e)?` 26`+Array(r+1).join(e.spaces):""),a.push("</"+l+">")):a.push("/>"),a.join("")}function na(t,e,r,a){return t.reduce(function(l,o){var u=et(e,r,a&&!l);switch(o.type){case"element":return l+u+Au(o,e,r);case"comment":return l+u+ea(o[e.commentKey],e);case"doctype":return l+u+ra(o[e.doctypeKey],e);case"cdata":return l+(e.indentCdata?u:"")+ta(o[e.cdataKey],e);case"text":return l+(e.indentText?u:"")+Zn(o[e.textKey],e);case"instruction":var s={};return s[o[e.nameKey]]=o[e.attributesKey]?o:o[e.instructionKey],l+(e.indentInstruction?u:"")+Qs(s,e,r)}},"")}function ia(t,e,r){var a;for(a in t)if(t.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function Su(t,e,r,a,l){Be=t,Pe=e;var o="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var u=[];
26if(e){if(u.push("<"+o),typeof t!="object")return u.push(">"+Zn(t,r)+"</"+o+">"),u.join("");t[r.attributesKey]&&u.push(Sr(t[r.attributesKey],r,a));var s=ia(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in r?s=r.fullTagEmptyElementFn(e,t):s=r.fullTagEmptyElement),s)u.push(">");else return u.push("/>"),u.join("")}return u.push(sa(t,r,a+1,!1)),Be=t,Pe=e,e&&u.push((l?et(r,a,!1):"")+"</"+o+">"),u.join("")}function sa(t,e,r,a){var l,o,u,s=[];for(o in t)if(t.hasOwnProperty(o))for(u=_u(t[o])?t[o]:[t[o]],l=0;l<u.length;++l){switch(o){case e.declarationKey:s.push(Js(u[l],e,r));break;case e.instructionKey:s.push((e.indentInstruction?et(e,r,a):"")+Qs(u[l],e,r));break;case e.attributesKey:case e.parentKey:break;case e.textKey:s.push((e.indentText?et(e,r,a):"")+Zn(u[l],e));break;case e.cdataKey:s.push((e.indentCdata?et(e,r,a):"")+ta(u[l],e));break;case e.doctypeKey:s.push(et(e,r,a)+ra(u[l],e));break;case e.commentKey:s.push(et(e,r,a)+ea(u[l],e));break;default:s.push(et(e,r,a)+Su(u[l],o,e,r,ia(u[l],e)))}a=a&&!s.length}return s.join("")}var aa=function(t,e){e=xu(e);var r=[];return Be=t,Pe="_root_",e.compact?r.push(sa(t,e,0,!0)):(t[e.declarationKey]&&r.push(Js(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&r.push(na(t[e.elementsKey],e,0,!r.length))),r.join("")},Tu=aa,ku=function(t,e){t instanceof Buffer&&(t=t.toString());var r=null;if(typeof t=="string")try{r=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else r=t;return Tu(r,e)},Ru=Ys,Cu=bu,Iu=aa,Nu=ku,oa={xml2js:Ru,xml2json:Cu,js2xml:Iu,json2xml:Nu};const Yn=t=>{switch(t.type){case void 0:case"element":const e=new Fu(t.name,t.attributes),r=t.elements||[];for(const a of r){const l=Yn(a);l!==void 0&&e.push(l)}return e;case"text":return t.text;default:return}};class Ou extends pe{}class Fu extends se{static fromXmlString(e){const r=oa.xml2js(e,{compact:!1});return Yn(r)}constructor(e,r){super(e),r&&this.root.push(new Ou(r))}push(e){this.root.push(e)}}class Du extends se{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ua extends se{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ue=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Tr=t=>{const e=Ue(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},la=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},is=t=>la(t,1),ca=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},fa=t=>{const e=ca(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Rt=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return la(e,3)},mt=t=>typeof t=="string"?ca(t):Ue(t),Bu=t=>typeof t=="string"?fa(t):Tr(t),Ge=t=>typeof t=="string"?fa(t):Tr(t),Pu=Tr,Lu=Tr,Uu=t=>t.toISOString();class ae extends se{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ne({val:r}))}}class bn extends se{constructor(e,r){super(e),this.root.push(new Ne({val:Bu(r)}))}}class St extends se{constructor(e,r){super(e),this.root.push(new Ne({val:r}))}}const Wt=(t,e)=>new lt({name:t,attributes:{value:{key:"w:val",value:e}}});class Jn extends se{constructor(e,r){super(e),this.root.push(new Ne({val:r}))}}class ft extends se{constructor(e,r){super(e),this.root.push(r)}}class lt extends se{constructor({name:e,attributes:r,children:a}){super(e),r&&this.root.push(new Xt(r)),a&&this.root.push(...a)}}const Ye={START:"start",LEFT:"left"};class Mu extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}}class ju extends se{constructor(e){super("w:jc"),this.root.push(new Mu({val:e}))}}class Re extends se{constructor(e,{color:r,size:a,space:l,style:o}){super(e),this.root.push(new zu({style:o,color:r===void 0?void 0:Rt(r),size:a===void 0?void 0:Pu(a),space:l===void 0?void 0:Lu(l)}))}}class zu extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Qn={SINGLE:"single",NONE:"none"};class Wu extends xr{constructor(e){super("w:pBdr"),e.top&&this.root.push(new Re("w:top",e.top)),e.bottom&&this.root.push(new Re("w:bottom",e.bottom)),e.left&&this.root.push(new Re("w:left",e.left)),e.right&&this.root.push(new Re("w:right",e.right))}}class Hu extends se{constructor(){super("w:pBdr");
26const e=new Re("w:bottom",{color:"auto",space:1,style:Qn.SINGLE,size:6});this.root.push(e)}}class Ku extends se{constructor({start:e,end:r,left:a,right:l,hanging:o,firstLine:u}){super("w:ind"),this.root.push(new Xt({start:{key:"w:start",value:e===void 0?void 0:mt(e)},end:{key:"w:end",value:r===void 0?void 0:mt(r)},left:{key:"w:left",value:a===void 0?void 0:mt(a)},right:{key:"w:right",value:l===void 0?void 0:mt(l)},hanging:{key:"w:hanging",value:o===void 0?void 0:Ge(o)},firstLine:{key:"w:firstLine",value:u===void 0?void 0:Ge(u)}}))}}let Vu=class extends se{constructor(){super("w:br")}};const ei={BEGIN:"begin",END:"end",SEPARATE:"separate"};class ti extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class or extends se{constructor(e){super("w:fldChar"),this.root.push(new ti({type:ei.BEGIN,dirty:e}))}}class ur extends se{constructor(e){super("w:fldChar"),this.root.push(new ti({type:ei.SEPARATE,dirty:e}))}}class lr extends se{constructor(e){super("w:fldChar"),this.root.push(new ti({type:ei.END,dirty:e}))}}const Ct={DEFAULT:"default",PRESERVE:"preserve"};class It extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{space:"xml:space"})}}class Gu extends se{constructor(){super("w:instrText"),this.root.push(new It({space:Ct.PRESERVE})),this.root.push("PAGE")}}class qu extends se{constructor(){super("w:instrText"),this.root.push(new It({space:Ct.PRESERVE})),this.root.push("NUMPAGES")}}class $u extends se{constructor(){super("w:instrText"),this.root.push(new It({space:Ct.PRESERVE})),this.root.push("SECTIONPAGES")}}class Xu extends se{constructor(){super("w:instrText"),this.root.push(new It({space:Ct.PRESERVE})),this.root.push("SECTION")}}class Zu extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class ha extends se{constructor({fill:e,color:r,type:a}){super("w:shd"),this.root.push(new Zu({fill:e===void 0?void 0:Rt(e),color:r===void 0?void 0:Rt(r),type:a}))}}class Yu extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Ju={DOT:"dot"};class Qu extends se{constructor(e){super("w:em"),this.root.push(new Ne({val:e}))}}class el extends Qu{constructor(e=Ju.DOT){super(e)}}class tl extends se{constructor(e){super("w:spacing"),this.root.push(new Ne({val:mt(e)}))}}class rl extends se{constructor(e){super("w:color"),this.root.push(new Ne({val:Rt(e)}))}}class nl extends se{constructor(e){super("w:highlight"),this.root.push(new Ne({val:e}))}}class il extends se{constructor(e){super("w:highlightCs"),this.root.push(new Ne({val:e}))}}const sl=t=>new lt({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class ss extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class _n extends se{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const a=e;this.root.push(new ss({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:r}))}else{const a=e;this.root.push(new ss(a))}}}let da=class extends se{constructor(e){super("w:vertAlign"),this.root.push(new Ne({val:e}))}};class al extends da{constructor(){super("superscript")}}class ol extends da{constructor(){super("subscript")}}const pa={SINGLE:"single"};class ul extends se{constructor(e=pa.SINGLE,r){super("w:u"),this.root.push(new Ne({val:e,color:r===void 0?void 0:Rt(r)}))}}class yt extends xr{constructor(e){var r,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new ae("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new ae("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new ae("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new ae("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new ae("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new ul(e.underline.type,e.underline.color)),e.effect&&this.push(new St("w:effect",e.effect)),e.emphasisMark&&this.push(new el(e.emp
26hasisMark.type)),e.color&&this.push(new rl(e.color)),e.kern&&this.push(new bn("w:kern",e.kern)),e.position&&this.push(new St("w:position",e.position)),e.size!==void 0&&this.push(new bn("w:sz",e.size));const l=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;l&&this.push(new bn("w:szCs",l)),e.rightToLeft!==void 0&&this.push(new ae("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new ae("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new ae("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new ae("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new ae("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new ol),e.superScript&&this.push(new al),e.style&&this.push(new St("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new _n(e.font)):"name"in e.font?this.push(new _n(e.font.name,e.font.hint)):this.push(new _n(e.font))),e.highlight&&this.push(new nl(e.highlight));const o=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;o&&this.push(new il(o)),e.characterSpacing&&this.push(new tl(e.characterSpacing)),e.emboss!==void 0&&this.push(new ae("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new ae("w:imprint",e.imprint)),e.shading&&this.push(new ha(e.shading)),e.revision&&this.push(new ll(e.revision)),e.border&&this.push(new Re("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new ae("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new ae("w:vanish",e.vanish)),e.specVanish&&this.push(new ae("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new Jn("w:w",e.scale)),e.language&&this.push(sl(e.language)),e.math&&this.push(new ae("w:oMath",e.math))}push(e){this.root.push(e)}}class ll extends se{constructor(e){super("w:rPrChange"),this.root.push(new Yu({id:e.id,author:e.author,date:e.date})),this.addChildElement(new yt(e))}}class Nn extends se{constructor(e){var r;return super("w:t"),typeof e=="string"?(this.root.push(new It({space:Ct.PRESERVE})),this.root.push(e),this):(this.root.push(new It({space:(r=e.space)!=null?r:Ct.DEFAULT})),this.root.push(e.text),this)}}const cr={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class kr extends se{constructor(e){if(super("w:r"),re(this,"properties"),this.properties=new yt(e),this.root.push(this.properties),e.break)for(let r=0;r<e.break;r++)this.root.push(new Vu);if(e.children)for(const r of e.children){if(typeof r=="string"){switch(r){case cr.CURRENT:this.root.push(new or),this.root.push(new Gu),this.root.push(new ur),this.root.push(new lr);break;case cr.TOTAL_PAGES:this.root.push(new or),this.root.push(new qu),this.root.push(new ur),this.root.push(new lr);break;case cr.TOTAL_PAGES_IN_SECTION:this.root.push(new or),this.root.push(new $u),this.root.push(new ur),this.root.push(new lr);break;case cr.CURRENT_SECTION:this.root.push(new or),this.root.push(new Xu),this.root.push(new ur),this.root.push(new lr);break;default:this.root.push(new Nn(r));break}continue}this.root.push(r)}else e.text&&this.root.push(new Nn(e.text))}}class qe extends kr{constructor(e){if(typeof e=="string")return super({}),this.root.push(new Nn(e)),this;super(e)}}let cl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fl=(t,e=21)=>(r=e)=>{let a="",l=r;for(;l--;)a+=t[Math.random()*t.length|0];return a},hl=(t=21)=>{let e="",r=t;for(;r--;)e+=cl[Math.random()*64|0];return e};const Ke=t=>Math.floor(t*72*20),ri=(t=0)=>{let e=t;return()=>++e},dl=()=>ri(),pl=()=>ri(1),ml=()=>ri(),wl=()=>hl().toLowerCase(),Ht=t=>fl("1234567890abcdef",t)(),gl=()=>`${Ht(8)}-${Ht(4)}-${Ht(4)}-${Ht(4)}-${Ht(12)}`;class yl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class vl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class bl extends se{constructor({id:e,initials:r,author:a,date:l=new Date,children:o}){super("w:comment"),this.root.push(new yl({id:e,initials:r,author:a,date:l.toISOString()}));for(const u of o)this.root.push(u)}}class _l extends se{constructor({children:e}){super("w:comments"),this.root.push(new vl({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new bl(r))}}class xl extends se{constructor(){super("w:pageBreakBefore")}}
26const On={AUTO:"auto"};class El extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class Al extends se{constructor(e){super("w:spacing"),this.root.push(new El(e))}}let fr=class extends se{constructor(e){super("w:pStyle"),this.root.push(new Ne({val:e}))}};class Sl extends se{constructor(e){super("w:tabs");for(const r of e)this.root.push(new kl(r))}}const as={LEFT:"left",RIGHT:"right"};class Tl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class kl extends se{constructor({type:e,position:r,leader:a}){super("w:tab"),this.root.push(new Tl({val:e,pos:r,leader:a}))}}class os extends se{constructor(e,r){super("w:numPr"),this.root.push(new Rl(r)),this.root.push(new Cl(e))}}class Rl extends se{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ne({val:e}))}}class Cl extends se{constructor(e){super("w:numId"),this.root.push(new Ne({val:typeof e=="string"?`{${e}}`:e}))}}class Il extends se{constructor(){super(...arguments),re(this,"fileChild",Symbol())}}class Nl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const Ol={EXTERNAL:"External"};class Fl extends se{constructor(e,r,a,l){super("Relationship"),this.root.push(new Nl({id:e,type:r,target:a,targetMode:l}))}}class Dl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Bl extends se{constructor(e,r,a){super("w:hyperlink"),re(this,"linkId"),this.linkId=r;const l={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},o=new Dl(l);this.root.push(o),e.forEach(u=>{this.root.push(u)})}}class ma extends se{constructor(e){super("w:externalHyperlink"),this.options=e}}class Pl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class Ll extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{id:"w:id"})}}class Ul{constructor(e){re(this,"bookmarkUniqueNumericId",ml()),re(this,"start"),re(this,"children"),re(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new Ml(e.id,r),this.children=e.children,this.end=new jl(r)}}class Ml extends se{constructor(e,r){super("w:bookmarkStart");const a=new Pl({name:e,id:r});this.root.push(a)}}class jl extends se{constructor(e){super("w:bookmarkEnd");const r=new Ll({id:e});this.root.push(r)}}class zl extends se{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ne({val:e}))}}class Wl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{verticalAlign:"w:val"})}}class Hl extends se{constructor(e){super("w:vAlign"),this.root.push(new Wl({verticalAlign:e}))}}const Tt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Kl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const us={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class xn extends se{constructor(e,r){super(e),this.root.push(new Kl({type:r.type||Tt.DEFAULT,id:`rId${r.id}`}))}}class Vl extends se{constructor({space:e,count:r,separate:a,equalWidth:l,children:o}){super("w:cols"),this.root.push(new Xt({space:{key:"w:space",value:e===void 0?void 0:Ge(e)},count:{key:"w:num",value:r===void 0?void 0:Ue(r)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:l}})),!l&&o&&o.forEach(u=>this.addChildElement(u))}}class Gl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class ql extends se{constructor(e,r,a){super("w:docGrid"),this.root.push(new Gl({type:a,linePitch:Ue(e),charSpace:r?Ue(r):void 0}))}}const $l=({countBy:t,start:e,restart:r,distance:a})=>new lt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ue(t)},start:{key:"w:start",value:e===void 0?void 0:Ue(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:Ge(a)}}});class ls extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Xl extends xr{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ls({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ls({})),e.pageBorderTop&&this.root.push(new Re("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new Re("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new Re("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new Re("w:right",e.pageBorderRight))}}class Zl extends se{constructor(e,r,a,l,o,u,s){super("w:pgMar"),this.root.push(new Xt({top:{key:"w:top",value:mt(e)},right:{key:"w:right",value:Ge(r)},bottom:{key:"w:bottom",value:mt(a)},left:{key:"w:left",value:Ge(l)},header:{key:"w:header",value:Ge(o)},footer:{key:"w:footer",value:Ge(u)},gutter:{key:"w:gutter",value:Ge(s)}}))}}class Yl extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Jl extends se{constructor({start:e,formatType:r,separator:a}){super("w:pgNumType"),this.root.push(new Yl({start:e===void 0?void 0:Ue(e),formatType:r,separator:a}))}}const wa={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class Ql extends se{constructor(e,r,a){super("w:pgSz");const l=a===wa.LANDSCAPE,o=Ge(e),u=Ge(r);this.root.push(new Xt({width:{key:"w:w",value:l?u:o},height:{key:"w:h",value:l?o:u},orientation:{key:"w:orient",value:a}}))}}class ec extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}}class tc extends se{constructor(e){super("w:textDirection"),this.root.push(new ec({val:e}))}}class rc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}}class nc extends se{constructor(e){super("w:type"),this.root.push(new rc({val:e}))}}const ht={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},En={WIDTH:11906,HEIGHT:16838,ORIENTATION:wa.PORTRAIT};class ic extends se{constructor({page:{size:{width:e=En.WIDTH,height:r=En.HEIGHT,orientation:a=En.ORIENTATION}={},margin:{top:l=ht.TOP,right:o=ht.RIGHT,bottom:u=ht.BOTTOM,left:s=ht.LEFT,header:c=ht.HEADER,footer:v=ht.FOOTER,gutter:b=ht.GUTTER}={},pageNumbers:S={},borders:A,textDirection:w}={},grid:{linePitch:E=360,charSpace:y,type:T}={},headerWrapperGroup:p={},footerWrapperGroup:x={},lineNumbers:R,titlePage:F,verticalAlign:P,column:$,type:K}={}){super("w:sectPr"),this.addHeaderFooterGroup(us.HEADER,p),this.addHeaderFooterGroup(us.FOOTER,x),K&&this.root.push(new nc(K)),this.root.push(new Ql(e,r,a)),this.root.push(new Zl(l,o,u,s,c,v,b)),A&&this.root.push(new Xl(A)),R&&this.root.push($l(R)),this.root.push(new Jl(S)),$&&this.root.push(new Vl($)),P&&this.root.push(new Hl(P)),F!==void 0&&this.root.push(new ae("w:titlePg",F)),w&&this.root.push(new tc(w)),this.root.push(new ql(E,y,T))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new xn(e,{type:Tt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new xn(e,{type:Tt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new xn(e,{type:Tt.EVEN,id:r.even.View.ReferenceId}))}}class sc extends se{constructor(){super("w:body"),re(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new ic(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new $e({}),a=new Nt({});return a.push(e),r.addChildElement(a),r}}class Yt extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class ac extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class oc extends se{constructor(e){super("w:background"),this.root.push(new ac({color:e.color===void 0?void 0:Rt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:is(e.themeShade),themeTint:e.themeTint===void 0?void 0:is(e.themeTint)}))}}class uc extends se{constructor(e){super("w:document"),re(this,"body"),this.root.push(new Yt({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new sc,e.background&&this.root.push(new oc(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class lc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns"})}}class Pt extends se{constructor(){super("Relationships"),this.root.push(new lc({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,a,l){const o=new Fl(`rId${e}`,r,a,l);return this.root.push(o),o}get RelationshipCount(){return this.root.length-1}}class ga{constructor(e){re(this,"document"),re(this,"relationships"),this.document=new uc(e),this.relationships=new Pt}get View(){return this.document}get Relationships(){return this.relationships}}class cc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}}class fc extends se{constructor(){super("w:wordWrap"),this.root.push(new cc({val:0}))}}const hc=t=>{var e,r;return new lt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class Nt extends xr{constructor(e){var r,a;if(super("w:pPr"),re(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new fr(e.heading)),e.bullet&&this.push(new fr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new fr("ListParagraph"))),e.style&&this.push(new fr(e.style)),e.keepNext!==void 0&&this.push(new ae("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new ae("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new xl),e.frame&&this.push(hc(e.frame)),e.widowControl!==void 0&&this.push(new ae("w:widowControl",e.widowControl)),e.bullet&&this.push(new os(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new os(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))),e.border&&this.push(new Wu(e.border)),e.thematicBreak&&this.push(new Hu),e.shading&&this.push(new ha(e.shading)),e.wordWrap&&this.push(new fc),e.overflowPunctuation&&this.push(new ae("w:overflowPunct",e.overflowPunctuation));const l=[...e.rightTabStop!==void 0?[{type:as.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:as.LEFT,position:e.leftTabStop}]:[]];l.length>0&&this.push(new Sl(l)),e.bidirectional!==void 0&&this.push(new ae("w:bidi",e.bidirectional)),e.spacing&&this.push(new Al(e.spacing)),e.indent&&this.push(new Ku(e.indent)),e.contextualSpacing!==void 0&&this.push(new ae("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new ju(e.alignment)),e.outlineLevel!==void 0&&this.push(new zl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new ae("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new ae("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new yt(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof ga)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class $e extends Il{constructor(e){if(super("w:p"),re(this,"properties"),typeof e=="string")return this.properties=new Nt({}),this.root.push(this.properties),this.root.push(new qe(e)),this;if(this.properties=new Nt(e),this.root.push(this.properties),e.text&&this.root.push(new qe(e.text)),e.children)for(const r of e.children){if(r instanceof Ul){this.root.push(r.start);for(const a of r.children)this.root.push(a);
26this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof ma){const a=this.root.indexOf(r),l=new Bl(r.options.children,wl());e.viewWrapper.Relationships.createRelationship(l.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,Ol.EXTERNAL),this.root[a]=l}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const vt={style:Qn.NONE,size:0,color:"auto"},bt={style:Qn.SINGLE,size:4,color:"auto"};class dc extends se{constructor(e){super("w:tblBorders"),e.top?this.root.push(new Re("w:top",e.top)):this.root.push(new Re("w:top",bt)),e.left?this.root.push(new Re("w:left",e.left)):this.root.push(new Re("w:left",bt)),e.bottom?this.root.push(new Re("w:bottom",e.bottom)):this.root.push(new Re("w:bottom",bt)),e.right?this.root.push(new Re("w:right",e.right)):this.root.push(new Re("w:right",bt)),e.insideHorizontal?this.root.push(new Re("w:insideH",e.insideHorizontal)):this.root.push(new Re("w:insideH",bt)),e.insideVertical?this.root.push(new Re("w:insideV",e.insideVertical)):this.root.push(new Re("w:insideV",bt))}}re(dc,"NONE",{top:vt,bottom:vt,left:vt,right:vt,insideHorizontal:vt,insideVertical:vt});class pc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class mc extends se{constructor(){super("Properties"),this.root.push(new pc({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class wc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns"})}}class gc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class ut extends se{constructor(e,r){super("Default"),this.root.push(new gc({contentType:e,extension:r}))}}class yc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class ze extends se{constructor(e,r){super("Override"),this.root.push(new yc({contentType:e,partName:r}))}}class vc extends se{constructor(){super("Types"),this.root.push(new wc({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new ut("image/png","png")),this.root.push(new ut("image/jpeg","jpeg")),this.root.push(new ut("image/jpeg","jpg")),this.root.push(new ut("image/bmp","bmp")),this.root.push(new ut("image/gif","gif")),this.root.push(new ut("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new ut("application/xml","xml")),this.root.push(new ut("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new ze("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new ze("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class bc extends se{constructor(e){super("cp:coreProperties"),this.root.push(new Yt({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 ft("dc:title",e.title)),e.subject&&this.root.push(new ft("dc:subject",e.subject)),e.creator&&this.root.push(new ft("dc:creator",e.creator)),e.keywords&&this.root.push(new ft("cp:keywords",e.keywords)),e.description&&this.root.push(new ft("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new ft("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new ft("cp:revision",String(e.revision))),this.root.push(new cs("dcterms:created")),this.root.push(new cs("dcterms:modified"))}}class cs extends se{constructor(e){super(e),this.root.push(new Yt({type:"dcterms:W3CDTF"})),this.root.push(Uu(new Date))}}class _c extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class xc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class Ec extends se{constructor(e,r){super("property"),this.root.push(new xc({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new Ac(r.value))}}class Ac extends se{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class Sc extends se{constructor(e){super("Properties"),re(this,"nextId"),re(this,"properties",[]),this.root.push(new _c({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;
26for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new Ec(this.nextId++,e))}}class Tc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let kc=class extends ua{constructor(e,r){super("w:ftr",r),re(this,"refId"),this.refId=e,r||this.root.push(new Tc({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)}};class Rc{constructor(e,r,a){re(this,"footer"),re(this,"relationships"),this.media=e,this.footer=new kc(r,a),this.relationships=new Pt}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}}class Cc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class Ic extends se{constructor(){super("w:footnoteRef")}}class Nc extends kr{constructor(){super({style:"FootnoteReference"}),this.root.push(new Ic)}}const fs={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class An extends se{constructor(e){super("w:footnote"),this.root.push(new Cc({type:e.type,id:e.id}));for(let r=0;r<e.children.length;r++){const a=e.children[r];r===0&&a.addRunToFront(new Nc),this.root.push(a)}}}class Oc extends se{constructor(){super("w:continuationSeparator")}}class Fc extends kr{constructor(){super({}),this.root.push(new Oc)}}class Dc extends se{constructor(){super("w:separator")}}class Bc extends kr{constructor(){super({}),this.root.push(new Dc)}}class Pc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class Lc extends se{constructor(){super("w:footnotes"),this.root.push(new Pc({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 e=new An({id:-1,type:fs.SEPERATOR,children:[new $e({spacing:{after:0,line:240,lineRule:On.AUTO},children:[new Bc]})]});this.root.push(e);
26const r=new An({id:0,type:fs.CONTINUATION_SEPERATOR,children:[new $e({spacing:{after:0,line:240,lineRule:On.AUTO},children:[new Fc]})]});this.root.push(r)}createFootNote(e,r){const a=new An({id:e,children:r});this.root.push(a)}}class Uc{constructor(){re(this,"footnotess"),re(this,"relationships"),this.footnotess=new Lc,this.relationships=new Pt}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Mc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let jc=class extends ua{constructor(e,r){super("w:hdr",r),re(this,"refId"),this.refId=e,r||this.root.push(new Mc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class zc{constructor(e,r,a){re(this,"header"),re(this,"relationships"),this.media=e,this.header=new jc(r,a),this.relationships=new Pt}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}}class Wc{constructor(){re(this,"map"),this.map=new Map}addImage(e,r){this.map.set(e,r)}get Array(){return Array.from(this.map.values())}}const nt={BULLET:"bullet"};class Hc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class Kc extends se{constructor(e){super("w:numFmt"),this.root.push(new Ne({val:e}))}}class Vc extends se{constructor(e){super("w:lvlText"),this.root.push(new Ne({val:e}))}}class Gc extends se{constructor(e){super("w:lvlJc"),this.root.push(new Ne({val:e}))}}class qc extends se{constructor(e){super("w:suff"),this.root.push(new Ne({val:e}))}}class $c extends se{constructor(){super("w:isLgl")}}class Xc extends se{constructor({level:e,format:r,text:a,alignment:l=Ye.START,start:o=1,style:u,suffix:s,isLegalNumberingStyle:c}){if(super("w:lvl"),re(this,"paragraphProperties"),re(this,"runProperties"),this.root.push(new Jn("w:start",Ue(o))),r&&this.root.push(new Kc(r)),s&&this.root.push(new qc(s)),c&&this.root.push(new $c),a&&this.root.push(new Vc(a)),this.root.push(new Gc(l)),this.paragraphProperties=new Nt(u&&u.paragraph),this.runProperties=new yt(u&&u.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>
269)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Hc({ilvl:Ue(e),tentative:1}))}}class Zc extends Xc{}class Yc extends se{constructor(e){super("w:multiLevelType"),this.root.push(new Ne({val:e}))}}class Jc extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class hs extends se{constructor(e,r){super("w:abstractNum"),re(this,"id"),this.root.push(new Jc({abstractNumId:Ue(e),restartNumberingAfterBreak:0})),this.root.push(new Yc("hybridMultilevel")),this.id=e;for(const a of r)this.root.push(new Zc(a))}}class Qc extends se{constructor(e){super("w:abstractNumId"),this.root.push(new Ne({val:e}))}}class ef extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{numId:"w:numId"})}}class ds extends se{constructor(e){if(super("w:num"),re(this,"numId"),re(this,"reference"),re(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new ef({numId:Ue(e.numId)})),this.root.push(new Qc(Ue(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new rf(r.num,r.start))}}class tf extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{ilvl:"w:ilvl"})}}class rf extends se{constructor(e,r){super("w:lvlOverride"),this.root.push(new tf({ilvl:e})),r!==void 0&&this.root.push(new sf(r))}}class nf extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}}class sf extends se{constructor(e){super("w:startOverride"),this.root.push(new nf({val:e}))}}class af extends se{constructor(e){super("w:numbering"),re(this,"abstractNumberingMap",new Map),re(this,"concreteNumberingMap",new Map),re(this,"referenceConfigMap",new Map),re(this,"abstractNumUniqueNumericId",dl()),re(this,"concreteNumUniqueNumericId",pl()),this.root.push(new Yt({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 r=new hs(this.abstractNumUniqueNumericId(),[{level:0,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:Ke(.5),hanging:Ke(.25)}}}},{level:1,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:Ke(1),hanging:Ke(.25)}}}},{level:2,format:nt.BULLET,text:"â ",alignment:Ye.LEFT,style:{paragraph:{indent:{left:2160,hanging:Ke(.25)}}}},{level:3,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:2880,hanging:Ke(.25)}}}},{level:4,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:3600,hanging:Ke(.25)}}}},{level:5,format:nt.BULLET,text:"â ",alignment:Ye.LEFT,style:{paragraph:{indent:{left:4320,hanging:Ke(.25)}}}},{level:6,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:5040,hanging:Ke(.25)}}}},{level:7,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:5760,hanging:Ke(.25)}}}},{level:8,format:nt.BULLET,text:"â",alignment:Ye.LEFT,style:{paragraph:{indent:{left:6480,hanging:Ke(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new ds({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const a of e.config)this.abstractNumberingMap.set(a.reference,new hs(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}
26prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const a=this.abstractNumberingMap.get(e);if(!a)return;const l=`${e}-${r}`;if(this.concreteNumberingMap.has(l))return;const o=this.referenceConfigMap.get(e),u=o&&o[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:r,overrideLevels:[u&&Number.isInteger(u)?{num:0,start:u}:{num:0,start:1}]};this.concreteNumberingMap.set(l,new ds(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class of extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class uf extends se{constructor(e){super("w:compatSetting"),this.root.push(new of({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class lf extends se{constructor(e){super("w:compat"),e.version&&this.root.push(new uf(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new ae("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new ae("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new ae("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new ae("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new ae("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new ae("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new ae("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new ae("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new ae("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new ae("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new ae("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new ae("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new ae("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new ae("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new ae("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new ae("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new ae("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new ae("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new ae("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new ae("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new ae("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new ae("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new ae("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new ae("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new ae("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new ae("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new ae("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new ae("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new ae("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new ae("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new ae("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new ae("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new ae("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new ae("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new ae("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new ae("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new ae("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new ae("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new ae("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new ae("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new ae("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new ae("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGri
26dInCell&&this.root.push(new ae("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new ae("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new ae("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new ae("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new ae("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new ae("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new ae("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new ae("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new ae("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new ae("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new ae("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new ae("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new ae("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new ae("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new ae("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new ae("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new ae("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new ae("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new ae("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new ae("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new ae("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new ae("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new ae("w:cachedColBalance",e.cachedColumnBalance))}}class cf extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class ff extends se{constructor(e){var r,a,l,o;super("w:settings"),this.root.push(new cf({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 ae("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new ae("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new ae("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new ae("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Jn("w:defaultTabStop",e.defaultTabStop)),this.root.push(new lf(Vt(xe({},(r=e.compatibility)!=null?r:{}),{version:(o=(l=(a=e.compatibility)==null?void 0:a.version)!=null?l:e.compatibilityModeVersion)!=null?o:15})))}}class ya extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{val:"w:val"})}}class hf extends se{constructor(e){super("w:name"),this.root.push(new ya({val:e}))}}class df extends se{constructor(e){super("w:uiPriority"),this.root.push(new ya({val:Ue(e)}))}}class pf extends pe{constructor(){super(...arguments),re(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class va extends se{constructor(e,r){super("w:style"),this.root.push(new pf(e)),r.name&&this.root.push(new hf(r.name)),r.basedOn&&this.root.push(new St("w:basedOn",r.basedOn)),r.next&&this.root.push(new St("w:next",r.next)),r.link&&this.root.push(new St("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new df(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new ae("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new ae("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new ae("w:qFormat",r.quickFormat))}}class Rr extends va{constructor(e){super({type:"paragraph",styleId:e.id},e),re(this,"paragraphProperties"),re(this,"runProperties"),this.paragraphProperties=new Nt(e.paragraph),this.runProperties=new yt(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Cr extends va{constructor(e){super({type:"character",styleId:e.id},xe({uiPriority:99,unhideWhenUsed:!0},e)),re(this,"runProperties"),this.runProperties=new yt(e.run),this.root.push(this.runProperties)}}class ct extends Rr{constructor(e){super(xe({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class mf extends ct{constructor(e){super(xe({id:"Title",name:"Title"},e))}}class wf extends ct{constructor(e){super(xe({id:"Heading1",name:"Heading 1"},e))}}class gf extends ct{constructor(e){super(xe({id:"Heading2",name:"Heading 2"},e))}}class yf extends ct{constructor(e){super(xe({id:"Heading3",name:"Heading 3"},e))}}class vf extends ct{constructor(e){super(xe({id:"Heading4",name:"Heading 4"},e))}}class bf extends ct{constructor(e){super(xe({id:"Heading5",name:"Heading 5"},e))}}class _f extends ct{constructor(e){super(xe({id:"Heading6",name:"Heading 6"},e))}}class xf extends ct{constructor(e){super(xe({id:"Strong",name:"Strong"},e))}}class Ef extends Rr{constructor(e){super(xe({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class Af extends Rr{constructor(e){super(xe({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPr
26iority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:On.AUTO}},run:{size:20}},e))}}class Sf extends Cr{constructor(e){super(xe({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class Tf extends Cr{constructor(e){super(xe({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class kf extends Cr{constructor(e){super(xe({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:pa.SINGLE}}},e))}}class Fn extends se{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Rr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Cr(r))}}class Rf extends se{constructor(e){super("w:pPrDefault"),this.root.push(new Nt(e))}}class Cf extends se{constructor(e){super("w:rPrDefault"),this.root.push(new yt(e))}}class If extends se{constructor(e){super("w:docDefaults"),re(this,"runPropertiesDefaults"),re(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new Cf(e.run),this.paragraphPropertiesDefaults=new Rf(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class Nf{newInstance(e){const r=oa.xml2js(e,{compact:!1});let a;for(const u of r.elements||[])u.name==="w:styles"&&(a=u);if(a===void 0)throw new Error("can not find styles element");const l=a.elements||[];return new Fn({initialStyles:new Du(a.attributes),importedStyles:l.map(u=>Yn(u))})}}class ps{newInstance(e={}){var r;return{initialStyles:new Yt({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 If((r=e.document)!=null?r:{}),new mf(xe({run:{size:56}},e.title)),new wf(xe({run:{color:"2E74B5",size:32}},e.heading1)),new gf(xe({run:{color:"2E74B5",size:26}},e.heading2)),new yf(xe({run:{color:"1F4D78",size:24}},e.heading3)),new vf(xe({run:{color:"2E74B5",italics:!0}},e.heading4)),new bf(xe({run:{color:"2E74B5"}},e.heading5)),new _f(xe({run:{color:"1F4D78"}},e.heading6)),new xf(xe({run:{bold:!0}},e.strong)),new Ef(e.listParagraph||{}),new kf(e.hyperlink||{}),new Sf(e.footnoteReference||{}),new Af(e.footnoteText||{}),new Tf(e.footnoteTextChar||{})]}}}const hr=({id:t,fontKey:e,subsetted:r},a)=>new lt({name:a,attributes:xe({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new ae("w:subsetted",r)]:[]]}),Of=({name:t,altName:e,panose1:r,charset:a,family:l,notTrueType:o,pitch:u,sig:s,embedRegular:c,embedBold:v,embedItalic:b,embedBoldItalic:S})=>new lt({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[Wt("w:altName",e)]:[],...r?[Wt("w:panose1",r)]:[],...a?[Wt("w:charset",a)]:[],Wt("w:family",l),...o?[new ae("w:notTrueType",o)]:[],Wt("w:pitch",u),...s?[new lt({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...c?[hr(c,"w:embedRegular")]:[],...v?[hr(v,"w:embedBold")]:[],...b?[hr(b,"w:embedItalic")]:[],...S?[hr(S,"w:embedBoldItalic")]:[]]}),Ff=({name:t,index:e,fontKey:r,characterSet:a})=>Of({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),Df=t=>new lt({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>Ff({name:e.name,index:r+1,fontKey:e.fontKey}))});class Bf{constructor(e){re(this,"fontTable"),re(this,"relationships"),re(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>Vt(xe({},r),{fontKey:gl()})),this.fontTable=Df(this.fontOptionsWithKey),this.relationships=new Pt;for(let r=0;r<e.length;r++)this.relationships.createRelationship(r+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[r].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class ba{constructor(e){re(this,"currentRelationshipId",1),re(this,"documentWrapper"),re(this,"headers",[]),re(this,"footers",[]),re(this,"coreProperties"),re(this,"numbering"),re(this,"media"),re(this,"fileRelationships"),re(this,"footnotesWrapper"),re(this,"settings"),re(this,"contentTypes"),re(this,"customProperties"),re(this,"appProperties"),re(this,"styles"),re(this,"comments"),re(this,"fontWrapper");var r,a,l,o,u,s,c,v;if(this.coreProperties=new bc(Vt(xe({},e),{creator:(r=e.creator)!=null?r:"Un-named",revision:(a=e.revision)!=null?a:1,lastModifiedBy:(l=e.lastModifiedBy)!=null?l:"Un-named"})),this.numbering=new af(e.numbering?e.numbering:{config:[]}),this.comments=new _l((o=e.comments)!=null?o:{children:[]}),this.fileRelationships=new Pt,this.customProperties=new Sc((u=e.customProperties)!=null?u:[]),this.appProperties=new mc,this.footnotesWrapper=new Uc,this.contentTypes=new vc,this.documentWrapper=new ga({background:e.background}),this.settings=new ff({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(s=e.features)==null?void 0:s.trackRevisions,updateFields:(c=e.features)==null?void 0:c.updateFields,defaultTabStop:e.defaultTabStop}),this.media=new Wc,e.externalStyles){const b=new Nf;this.styles=b.newInstance(e.externalStyles)}else if(e.styles){const S=new ps().newInstance(e.styles.default);this.styles=new Fn(xe(xe({},S),e.styles))}else{const b=new ps;this.styles=new Fn(b.newInstance())}this.addDefaultRelationships();for(const b of e.sections)this.addSection(b);if(e.footnotes)for(const b in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(b),e.footnotes[b].children);this.fontWrapper=new Bf((v=e.fonts)!=null?v:[])}addSection({headers:e={},footers:r={},children:a,properties:l}){this.documentWrapper.View.Body.addSection(Vt(xe({},l),{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:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(const o of a)this.documentWrapper.View.add(o)}createHeader(e){const r=new zc(this.media,this.currentRelationshipId++);for(const a of e.options.children)r.add(a);return this.addHeaderToDocument(r),r}createFooter(e){const r=new Rc(this.media,this.currentRelationshipId++);for(const a of e.options.children)r.add(a);return this.addFooterToDocument(r),r}addHeaderToDocument(e,r=Tt.DEFAULT){this.headers.push({header:e,type:r}),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,r=Tt.DEFAULT){this.footers.push({footer:e,type:r}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class Pf{constructor(e={children:[]}){re(this,"options"),this.options=e}}function dr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _a={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return(function r(a,l,o){function u(v,b){if(!l[v]){if(!a[v]){var S=typeof dr=="function"&&dr;if(!b&&S)return S(v,!0);if(s)return s(v,!0);var A=new Error("Cannot find module '"+v+"'");throw A.code="MODULE_NOT_FOUND",A}var w=l[v]={exports:{}};a[v][0].call(w.exports,function(E){var y=a[v][1][E];return u(y||E)},w,w.exports,r,a,l,o)}return l[v].exports}for(var s=typeof dr=="function"&&dr,c=0;c<o.length;c++)u(o[c]);return u})({1:[function(r,a,l){var o=r("./utils"),u=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 37,721 bytes, lines 26-27
26+/=";l.encode=function(c){for(var v,b,S,A,w,E,y,T=[],p=0,x=c.length,R=x,F=o.getTypeOf(c)!=="string";p<c.length;)R=x-p,S=F?(v=c[p++],b=p<x?c[p++]:0,p<x?c[p++]:0):(v=c.charCodeAt(p++),b=p<x?c.charCodeAt(p++):0,p<x?c.charCodeAt(p++):0),A=v>>2,w=(3&v)<<4|b>>4,E=1<R?(15&b)<<2|S>>6:64,y=2<R?63&S:64,T.push(s.charAt(A)+s.charAt(w)+s.charAt(E)+s.charAt(y));return T.join("")},l.decode=function(c){var v,b,S,A,w,E,y=0,T=0,p="data:";if(c.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var x,R=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===s.charAt(64)&&R--,c.charAt(c.length-2)===s.charAt(64)&&R--,R%1!=0)throw new Error("Invalid base64 input, bad content length.");for(x=u.uint8array?new Uint8Array(0|R):new Array(0|R);y<c.length;)v=s.indexOf(c.charAt(y++))<<2|(A=s.indexOf(c.charAt(y++)))>>4,b=(15&A)<<4|(w=s.indexOf(c.charAt(y++)))>>2,S=(3&w)<<6|(E=s.indexOf(c.charAt(y++))),x[T++]=v,w!==64&&(x[T++]=b),E!==64&&(x[T++]=S);return x}},{"./support":30,"./utils":32}],2:[function(r,a,l){var o=r("./external"),u=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function v(b,S,A,w,E){this.compressedSize=b,this.uncompressedSize=S,this.crc32=A,this.compression=w,this.compressedContent=E}v.prototype={getContentWorker:function(){var b=new u(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),S=this;return b.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new u(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(b,S,A){return b.pipe(new s).pipe(new c("uncompressedSize")).pipe(S.compressWorker(A)).pipe(new c("compressedSize")).withStreamInfo("compression",S)},a.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,l){var o=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,l){var o=r("./utils"),u=(function(){for(var s,c=[],v=0;v<256;v++){s=v;for(var b=0;b<8;b++)s=1&s?3988292384^s>>>1:s>>>1;c[v]=s}return c})();a.exports=function(s,c){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?(function(v,b,S,A){var w=u,E=A+S;v^=-1;for(var y=A;y<E;y++)v=v>>>8^w[255&(v^b[y])];return-1^v})(0|c,s,s.length,0):(function(v,b,S,A){var w=u,E=A+S;v^=-1;for(var y=A;y<E;y++)v=v>>>8^w[255&(v^b.charCodeAt(y))];return-1^v})(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(r,a,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,a,l){var o=null;o=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:o}},{lie:37}],7:[function(r,a,l){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",u=r("pako"),s=r("./utils"),c=r("./stream/GenericWorker"),v=o?"uint8array":"array";function b(S,A){c.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=A,this.meta={}}l.magic="\b\0",s.inherits(b,c),b.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(v,S.data),!1)},b.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new u[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(A){S.push({data:A,meta:S.meta})}},l.compressWorker=function(S){return new b("Deflate",S)},l.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,l){function o(w,E){var y,T="";for(y=0;y<E;y++)T+=String.fromCharCode(255&w),w>>>=8;return T}function u(w,E,y,T,p,x){var R,F,P=w.file,$=w.compression,K=x!==v.utf8encode,J=s.transformTo("string",x(P.name)),C=s.transformTo("string",v.utf8encode(P.name)),ie=P.comment,ue=s.transformTo("string",x(ie)),D=s.transformTo("string",v.utf8encode(ie)),V=C.length!==P.name.length,_=D.length!==ie.length,q="",le="",X="",he=P.dir,ee=P.date,fe={crc32:0,compressedSize:0,uncompressedSize:0};E&&!y||(fe.crc32=w.crc32,fe.compressedSize=w.compressedSize,fe.uncompressedSize=w.uncompressedSize);var U=0;E&&(U|=8),K||!V&&!_||(U|=2048);var k=0,j=0;he&&(k|=16),p==="UNIX"?(j=798,k|=(function(Z,z){var m=Z;return Z||(m=z?16893:33204),(65535&m)<<16})(P.unixPermissions,he)):(j=20,k|=(function(Z){return 63&(Z||0)})(P.dosPermissions)),R=ee.getUTCHours(),R<<=6,R|=ee.getUTCMinutes(),R<<=5,R|=ee.getUTCSeconds()/2,F=ee.getUTCFullYear()-1980,F<<=4,F|=ee.getUTCMonth()+1,F<<=5,F|=ee.getUTCDate(),V&&(le=o(1,1)+o(b(J),4)+C,q+="up"+o(le.length,2)+le),_&&(X=o(1,1)+o(b(ue),4)+D,q+="uc"+o(X.length,2)+X);var H="";return H+=` 27\0`,H+=o(U,2),H+=$.magic,H+=o(R,2),H+=o(F,2),H+=o(fe.crc32,4),H+=o(fe.compressedSize,4),H+=o(fe.uncompressedSize,4),H+=o(J.length,2),H+=o(q.length,2),{fileRecord:S.LOCAL_FILE_HEADER+H+J+q,dirRecord:S.CENTRAL_FILE_HEADER+o(j,2)+H+o(ue.length,2)+"\0\0\0\0"+o(k,4)+o(T,4)+J+q+ue}}var s=r("../utils"),c=r("../stream/GenericWorker"),v=r("../utf8"),b=r("../crc32"),S=r("../signature");function A(w,E,y,T){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=E,this.zipPlatform=y,this.encodeFileName=T,this.streamFiles=w,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(A,c),A.prototype.push=function(w){var E=w.meta.percent||0,y=this.entriesCount,T=this._sources.length;this.accumulate?this.contentBuffer.push(w):(this.bytesWritten+=w.data.length,c.prototype.push.call(this,{data:w.data,meta:{currentFile:this.currentFile,percent:y?(E+100*(y-T-1))/y:100}}))},A.prototype.openedSource=function(w){this.currentSourceOffset=this.bytesWritten,this.currentFile=w.file.name;var E=this.streamFiles&&!w.file.dir;if(E){var y=u(w,E,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},A.prototype.closedSource=function(w){this.accumulate=!1;var E=this.streamFiles&&!w.file.dir,y=u(w,E,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),E)this.push({data:(function(T){return S.DATA_DESCRIPTOR+o(T.crc32,4)+o(T.compressedSize,4)+o(T.uncompressedSize,4)})(w),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},A.prototype.flush=function(){for(var w=this.bytesWritten,E=0;E<this.dirRecords.length;E++)this.push({data:this.dirRecords[E],meta:{percent:100}});var y=this.bytesWritten-w,T=(function(p,x,R,F,P){var $=s.transformTo("string",P(F));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(p,2)+o(p,2)+o(x,4)+o(R,4)+o($.length,2)+$})(this.dirRecords.length,y,w,this.zipComment,this.encodeFileName);this.push({data:T,meta:{percent:100}})},A.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},A.prototype.registerPrevious=function(w){this._sources.push(w);var E=this;return w.on("data",function(y){E.processChunk(y)}),w.on("end",function(){E.closedSource(E.previous.streamInfo),E._sources.length?E.prepareNextSource():E.end()}),w.on("error",function(y){E.error(y)}),this},A.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},A.prototype.error=function(w){var E=this._sources;if(!c.prototype.error.call(this,w))return!1;for(var y=0;y<E.length;y++)try{E[y].error(w)}catch{}return!0},A.prototype.lock=function(){c.prototype.lock.call(this);for(var w=this._sources,E=0;E<w.length;E++)w[E].lock()},a.exports=A},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,a,l){var o=r("../compressions"),u=r("./ZipFileWorker");l.generateWorker=function(s,c,v){var b=new u(c.streamFiles,v,c.platform,c.encodeFileName),S=0;try{s.forEach(function(A,w){S++;var E=(function(x,R){var F=x||R,P=o[F];if(!P)throw new Error(F+" is not a valid compression method !");return P})(w.options.compression,c.compression),y=w.options.compressionOptions||c.compressionOptions||{},T=w.dir,p=w.date;w._compressWorker(E,y).withStreamInfo("file",{name:A,dir:T,date:p,comment:w.comment||"",unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions}).pipe(b)}),b.entriesCount=S}catch(A){b.error(A)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,a,l){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var u=new o;for(var s in this)typeof this[s]!="function"&&(u[s]=this[s]);return u}}(o.prototype=r("./object")).loadAsync=r("./load"),o.support=r("./support"),o.defaults=r("./defaults"),o.version="3.10.1",o.loadAsync=function(u,s){return new o().loadAsync(u,s)},o.external=r("./external"),a.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,a,l){var o=r("./utils"),u=r("./external"),s=r("./utf8"),c=r("./zipEntries"),v=r("./stream/Crc32Probe"),b=r("./nodejsUtils");function S(A){return new u.Promise(function(w,E){var y=A.decompressed.getContentWorker().pipe(new v);y.on("error",function(T){E(T)}).on("end",function(){y.streamInfo.crc32!==A.decompressed.crc32?E(new Error("Corrupted zip : CRC32 mismatch")):w()}).resume()})}a.exports=function(A,w){var E=this;return w=o.extend(w||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),b.isNode&&b.isStream(A)?u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",A,!0,w.optimizedBinaryString,w.base64).then(function(y){var T=new c(w);return T.load(y),T}).then(function(y){var T=[u.Promise.resolve(y)],p=y.files;if(w.checkCRC32)for(var x=0;x<p.length;x++)T.push(S(p[x]));return u.Promise.all(T)}).then(function(y){for(var T=y.shift(),p=T.files,x=0;x<p.length;x++){var R=p[x],F=R.fileNameStr,P=o.resolve(R.fileNameStr);E.file(P,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:w.createFolders}),R.dir||(E.file(P).unsafeOriginalName=F)}return T.zipComment.length&&(E.comment=T.zipComment),E})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,a,l){var o=r("../utils"),u=r("../stream/GenericWorker");function s(c,v){u.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(v)}o.inherits(s,u),s.prototype._bindStream=function(c){var v=this;(this._stream=c).pause(),c.on("data",function(b){v.push({data:b,meta:{percent:0}})}).on("error",function(b){v.isPaused?this.generatedError=b:v.error(b)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},s.prototype.pause=function(){return!!u.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,a,l){var o=r("readable-stream").Readable;function u(s,c,v){o.call(this,c),this._helper=s;var b=this;s.on("data",function(S,A){b.push(S)||b._helper.pause(),v&&v(A)}).on("error",function(S){b.emit("error",S)}).on("end",function(){b.push(null)})}r("../utils").inherits(u,o),u.prototype._read=function(){this._helper.resume()},a.exports=u},{"../utils":32,"readable-stream":16}],14:[function(r,a,l){a.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,u){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,u);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,u)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var u=new Buffer(o);return u.fill(0),u},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(r,a,l){function o(P,$,K){var J,C=s.getTypeOf($),ie=s.extend(K||{},b);ie.date=ie.date||new Date,ie.compression!==null&&(ie.compression=ie.compression.toUpperCase()),typeof ie.unixPermissions=="string"&&(ie.unixPermissions=parseInt(ie.unixPermissions,8)),ie.unixPermissions&&16384&ie.unixPermissions&&(ie.dir=!0),ie.dosPermissions&&16&ie.dosPermissions&&(ie.dir=!0),ie.dir&&(P=p(P)),ie.createFolders&&(J=T(P))&&x.call(this,J,!0);var ue=C==="string"&&ie.binary===!1&&ie.base64===!1;K&&K.binary!==void 0||(ie.binary=!ue),($ instanceof S&&$.uncompressedSize===0||ie.dir||!$||$.length===0)&&(ie.base64=!1,ie.binary=!0,$="",ie.compression="STORE",C="string");var D=null;D=$ instanceof S||$ instanceof c?$:E.isNode&&E.isStream($)?new y(P,$):s.prepareContent(P,$,ie.binary,ie.optimizedBinaryString,ie.base64);var V=new A(P,D,ie);this.files[P]=V}var u=r("./utf8"),s=r("./utils"),c=r("./stream/GenericWorker"),v=r("./stream/StreamHelper"),b=r("./defaults"),S=r("./compressedObject"),A=r("./zipObject"),w=r("./generate"),E=r("./nodejsUtils"),y=r("./nodejs/NodejsStreamInputAdapter"),T=function(P){P.slice(-1)==="/"&&(P=P.substring(0,P.length-1));var $=P.lastIndexOf("/");return 0<$?P.substring(0,$):""},p=function(P){return P.slice(-1)!=="/"&&(P+="/"),P},x=function(P,$){return $=$!==void 0?$:b.createFolders,P=p(P),this.files[P]||o.call(this,P,null,{dir:!0,createFolders:$}),this.files[P]};function R(P){return Object.prototype.toString.call(P)==="[object RegExp]"}var F={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(P){var $,K,J;for($ in this.files)J=this.files[$],(K=$.slice(this.root.length,$.length))&&$.slice(0,this.root.length)===this.root&&P(K,J)},filter:function(P){var $=[];return this.forEach(function(K,J){P(K,J)&&$.push(J)}),$},file:function(P,$,K){if(arguments.length!==1)return P=this.root+P,o.call(this,P,$,K),this;if(R(P)){var J=P;return this.filter(function(ie,ue){return!ue.dir&&J.test(ie)})}var C=this.files[this.root+P];return C&&!C.dir?C:null},folder:function(P){if(!P)return this;if(R(P))return this.filter(function(C,ie){return ie.dir&&P.test(C)});var $=this.root+P,K=x.call(this,$),J=this.clone();return J.root=K.name,J},remove:function(P){P=this.root+P;var $=this.files[P];if($||(P.slice(-1)!=="/"&&(P+="/"),$=this.files[P]),$&&!$.dir)delete this.files[P];else for(var K=this.filter(function(C,ie){return ie.name.slice(0,P.length)===P}),J=0;J<K.length;J++)delete this.files[K[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(P){var $,K={};try{if((K=s.extend(P||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:u.utf8encode})).type=K.type.toLowerCase(),K.compression=K.compression.toUpperCase(),K.type==="binarystring"&&(K.type="string"),!K.type)throw new Error("No output type specified.");s.checkSupport(K.type),K.platform!=="darwin"&&K.platform!=="freebsd"&&K.platform!=="linux"&&K.platform!=="sunos"||(K.platform="UNIX"),K.platform==="win32"&&(K.platform="DOS");var J=K.comment||this.comment||"";$=w.generateWorker(this,K,J)}catch(C){($=new c("error")).error(C)}return new v($,K.type||"string",K.mimeType)},generateAsync:function(P,$){return this.generateInternalStream(P).accumulate($)},generateNodeStream:function(P,$){return(P=P||{}).type||(P.type="nodebuffer"),this.generateInternalStream(P).toNodejsStream($)}};a.exports=F},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,a,l){a.exports=r("stream")},{stream:void 0}],17:[function(r,a,l){var o=r("./DataReader");function u(s){o.call(this,s);for(var c=0;c<this.data.length;c++)s[c]=255&s[c]}r("../utils").inherits(u,o),u.prototype.byteAt=function(s){return this.data[this.zero+s]},u.prototype.lastIndexOfSignature=function(s){for(var c=s.charCodeAt(0),v=s.charCodeAt(1),b=s.charCodeAt(2),S=s.charCodeAt(3),A=this.length-4;0<=A;--A)if(this.data[A]===c&&this.data[A+1]===v&&this.data[A+2]===b&&this.data[A+3]===S)return A-this.zero;return-1},u.prototype.readAndCheckSignature=function(s){var c=s.charCodeAt(0),v=s.charCodeAt(1),b=s.charCodeAt(2),S=s.charCodeAt(3),A=this.readData(4);return c===A[0]&&v===A[1]&&b===A[2]&&S===A[3]},u.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=u},{"../utils":32,"./DataReader":18}],18:[function(r,a,l){var o=r("../utils");function u(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}u.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var c,v=0;for(this.checkOffset(s),c=this.index+s-1;c>=this.index;c--)v=(v<<8)+this.byteAt(c);return this.index+=s,v},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},a.exports=u},{"../utils":32}],19:[function(r,a,l){var o=r("./Uint8ArrayReader");function u(s){o.call(this,s)}r("../utils").inherits(u,o),u.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=u},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,l){var o=r("./DataReader");function u(s){o.call(this,s)}r("../utils").inherits(u,o),u.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},u.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},u.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},u.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=u},{"../utils":32,"./DataReader":18}],21:[function(r,a,l){var o=r("./ArrayReader");function u(s){o.call(this,s)}r("../utils").inherits(u,o),u.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=u},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,l){var o=r("../utils"),u=r("../support"),s=r("./ArrayReader"),c=r("./StringReader"),v=r("./NodeBufferReader"),b=r("./Uint8ArrayReader");a.exports=function(S){var A=o.getTypeOf(S);return o.checkSupport(A),A!=="string"||u.uint8array?A==="nodebuffer"?new v(S):u.uint8array?new b(o.transformTo("uint8array",S)):new s(o.transformTo("array",S)):new c(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,l){l.LOCAL_FILE_HEADER="PK��",l.CENTRAL_FILE_HEADER="PK��",l.CENTRAL_DIRECTORY_END="PK��",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK��",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,l){var o=r("./GenericWorker"),u=r("../utils");function s(c){o.call(this,"ConvertWorker to "+c),this.destType=c}u.inherits(s,o),s.prototype.processChunk=function(c){this.push({data:u.transformTo(this.destType,c.data),meta:c.meta})},a.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,l){var o=r("./GenericWorker"),u=r("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,o),s.prototype.processChunk=function(c){this.streamInfo.crc32=u(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,l){var o=r("../utils"),u=r("./GenericWorker");function s(c){u.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}o.inherits(s,u),s.prototype.processChunk=function(c){if(c){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+c.data.length}u.prototype.processChunk.call(this,c)},a.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,l){var o=r("../utils"),u=r("./GenericWorker");function s(c){u.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(b){v.dataIsReady=!0,v.data=b,v.max=b&&b.length||0,v.type=o.getTypeOf(b),v.isPaused||v._tickAndRepeat()},function(b){v.error(b)})}o.inherits(s,u),s.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,v);break;case"uint8array":c=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":c=this.data.slice(this.index,v)}return this.index=v,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,l){function o(u){this.name=u||"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}o.prototype={push:function(u){this.emit("data",u)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(u){this.emit("error",u)}return!0},error:function(u){return!this.isFinished&&(this.isPaused?this.generatedError=u:(this.isFinished=!0,this.emit("error",u),this.previous&&this.previous.error(u),this.cleanUp()),!0)},on:function(u,s){return this._listeners[u].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(u,s){if(this._listeners[u])for(var c=0;c<this._listeners[u].length;c++)this._listeners[u][c].call(this,s)},pipe:function(u){return u.registerPrevious(this)},registerPrevious:function(u){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=u.streamInfo,this.mergeStreamInfo(),this.previous=u;var s=this;return u.on("data",function(c){s.processChunk(c)}),u.on("end",function(){s.end()}),u.on("error",function(c){s.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var u=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),u=!0),this.previous&&this.previous.resume(),!u},flush:function(){},processChunk:function(u){this.push(u)},withStreamInfo:function(u,s){return this.extraStreamInfo[u]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var u in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,u)&&(this.streamInfo[u]=this.extraStreamInfo[u])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var u="Worker "+this.name;return this.previous?this.previous+" -> "+u:u}},a.exports=o},{}],29:[function(r,a,l){var o=r("../utils"),u=r("./ConvertWorker"),s=r("./GenericWorker"),c=r("../base64"),v=r("../support"),b=r("../external"),S=null;if(v.nodestream)try{S=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function A(E,y){return new b.Promise(function(T,p){var x=[],R=E._internalType,F=E._outputType,P=E._mimeType;E.on("data",function($,K){x.push($),y&&y(K)}).on("error",function($){x=[],p($)}).on("end",function(){try{var $=(function(K,J,C){switch(K){case"blob":return o.newBlob(o.transformTo("arraybuffer",J),C);case"base64":return c.encode(J);default:return o.transformTo(K,J)}})(F,(function(K,J){var C,ie=0,ue=null,D=0;for(C=0;C<J.length;C++)D+=J[C].length;switch(K){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(ue=new Uint8Array(D),C=0;C<J.length;C++)ue.set(J[C],ie),ie+=J[C].length;return ue;case"nodebuffer":return Buffer.concat(J);default:throw new Error("concat : unsupported type '"+K+"'")}})(R,x),P);T($)}catch(K){p(K)}x=[]}).resume()})}function w(E,y,T){var p=y;switch(y){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=y,this._mimeType=T,o.checkSupport(p),this._worker=E.pipe(new u(p)),E.lock()}catch(x){this._worker=new s("error"),this._worker.error(x)}}w.prototype={accumulate:function(E){return A(this,E)},on:function(E,y){var T=this;return E==="data"?this._worker.on(E,function(p){y.call(T,p.data,p.meta)}):this._worker.on(E,function(){o.delay(y,arguments,T)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(E){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},E)}},a.exports=w},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,a,l){if(l.base64=!0,l.array=!0,l.string=!0,l.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l.nodebuffer=typeof Buffer<"u",l.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")l.blob=!1;else{var o=new ArrayBuffer(0);try{l.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var u=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);u.append(o),l.blob=u.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,l){for(var o=r("./utils"),u=r("./support"),s=r("./nodejsUtils"),c=r("./stream/GenericWorker"),v=new Array(256),b=0;b<256;b++)v[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;v[254]=v[254]=1;function S(){c.call(this,"utf-8 decode"),this.leftOver=null}function A(){c.call(this,"utf-8 encode")}l.utf8encode=function(w){return u.nodebuffer?s.newBufferFrom(w,"utf-8"):(function(E){var y,T,p,x,R,F=E.length,P=0;for(x=0;x<F;x++)(64512&(T=E.charCodeAt(x)))==55296&&x+1<F&&(64512&(p=E.charCodeAt(x+1)))==56320&&(T=65536+(T-55296<<10)+(p-56320),x++),P+=T<128?1:T<2048?2:T<65536?3:4;for(y=u.uint8array?new Uint8Array(P):new Array(P),x=R=0;R<P;x++)(64512&(T=E.charCodeAt(x)))==55296&&x+1<F&&(64512&(p=E.charCodeAt(x+1)))==56320&&(T=65536+(T-55296<<10)+(p-56320),x++),T<128?y[R++]=T:(T<2048?y[R++]=192|T>>>6:(T<65536?y[R++]=224|T>>>12:(y[R++]=240|T>>>18,y[R++]=128|T>>>12&63),y[R++]=128|T>>>6&63),y[R++]=128|63&T);return y})(w)},l.utf8decode=function(w){return u.nodebuffer?o.transformTo("nodebuffer",w).toString("utf-8"):(function(E){var y,T,p,x,R=E.length,F=new Array(2*R);for(y=T=0;y<R;)if((p=E[y++])<128)F[T++]=p;else if(4<(x=v[p]))F[T++]=65533,y+=x-1;else{for(p&=x===2?31:x===3?15:7;1<x&&y<R;)p=p<<6|63&E[y++],x--;1<x?F[T++]=65533:p<65536?F[T++]=p:(p-=65536,F[T++]=55296|p>>10&1023,F[T++]=56320|1023&p)}return F.length!==T&&(F.subarray?F=F.subarray(0,T):F.length=T),o.applyFromCharCode(F)})(w=o.transformTo(u.uint8array?"uint8array":"array",w))},o.inherits(S,c),S.prototype.processChunk=function(w){var E=o.transformTo(u.uint8array?"uint8array":"array",w.data);if(this.leftOver&&this.leftOver.length){if(u.uint8array){var y=E;(E=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),E.set(y,this.leftOver.length)}else E=this.leftOver.concat(E);this.leftOver=null}var T=(function(x,R){var F;for((R=R||x.length)>x.length&&(R=x.length),F=R-1;0<=F&&(192&x[F])==128;)F--;return F<0||F===0?R:F+v[x[F]]>R?F:R})(E),p=E;T!==E.length&&(u.uint8array?(p=E.subarray(0,T),this.leftOver=E.subarray(T,E.length)):(p=E.slice(0,T),this.leftOver=E.slice(T,E.length))),this.push({data:l.utf8decode(p),meta:w.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=S,o.inherits(A,c),A.prototype.processChunk=function(w){this.push({data:l.utf8encode(w.data),meta:w.meta})},l.Utf8EncodeWorker=A},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,l){var o=r("./support"),u=r("./base64"),s=r("./nodejsUtils"),c=r("./external");function v(y){return y}function b(y,T){for(var p=0;p<y.length;++p)T[p]=255&y.charCodeAt(p);return T}r("setimmediate"),l.newBlob=function(y,T){l.checkSupport("blob");try{return new Blob([y],{type:T})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(y),p.getBlob(T)}catch{throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(y,T,p){var x=[],R=0,F=y.length;if(F<=p)return String.fromCharCode.apply(null,y);for(;R<F;)T==="array"||T==="nodebuffer"?x.push(String.fromCharCode.apply(null,y.slice(R,Math.min(R+p,F)))):x.push(String.fromCharCode.apply(null,y.subarray(R,Math.min(R+p,F)))),R+=p;return x.join("")},stringifyByChar:function(y){for(var T="",p=0;p<y.length;p++)T+=String.fromCharCode(y[p]);return T},applyCanBeUsed:{uint8array:(function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function A(y){var T=65536,p=l.getTypeOf(y),x=!0;if(p==="uint8array"?x=S.applyCanBeUsed.uint8array:p==="nodebuffer"&&(x=S.applyCanBeUsed.nodebuffer),x)for(;1<T;)try{return S.stringifyByChunk(y,p,T)}catch{T=Math.floor(T/2)}return S.stringifyByChar(y)}function w(y,T){for(var p=0;p<y.length;p++)T[p]=y[p];return T}l.applyFromCharCode=A;var E={};E.string={string:v,array:function(y){return b(y,new Array(y.length))},arraybuffer:function(y){return E.string.uint8array(y).buffer},uint8array:function(y){return b(y,new Uint8Array(y.length))},nodebuffer:function(y){return b(y,s.allocBuffer(y.length))}},E.array={string:A,array:v,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(y)}},E.arraybuffer={string:function(y){return A(new Uint8Array(y))},array:function(y){return w(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:v,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(new Uint8Array(y))}},E.uint8array={string:A,array:function(y){return w(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:v,nodebuffer:function(y){return s.newBufferFrom(y)}},E.nodebuffer={string:A,array:function(y){return w(y,new Array(y.length))},arraybuffer:function(y){return E.nodebuffer.uint8array(y).buffer},uint8array:function(y){return w(y,new Uint8Array(y.length))},nodebuffer:v},l.transformTo=function(y,T){if(T=T||"",!y)return T;l.checkSupport(y);var p=l.getTypeOf(T);return E[p][y](T)},l.resolve=function(y){for(var T=y.split("/"),p=[],x=0;x<T.length;x++){var R=T[x];R==="."||R===""&&x!==0&&x!==T.length-1||(R===".."?p.pop():p.push(R))}return p.join("/")},l.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(y)?"nodebuffer":o.uint8array&&y instanceof Uint8Array?"uint8array":o.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},l.checkSupport=function(y){if(!o[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},l.MAX_VALUE_16BITS=65535,l.MAX_VALUE_32BITS=-1,l.pretty=function(y){var T,p,x="";for(p=0;p<(y||"").length;p++)x+="\\x"+((T=y.charCodeAt(p))<16?"0":"")+T.toString(16).toUpperCase();return x},l.delay=function(y,T,p){setImmediate(function(){y.apply(p||null,T||[])})},l.inherits=function(y,T){function p(){}p.prototype=T.prototype,y.prototype=new p},l.extend=function(){var y,T,p={};for(y=0;y<arguments.length;y++)for(T in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],T)&&p[T]===void 0&&(p[T]=arguments[y][T]);return p},l.prepareContent=function(y,T,p,x,R){return c.Promise.resolve(T).then(function(F){return o.blob&&(F instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(F))!==-1)&&typeof FileReader<"u"?new c.Promise(function(P,$){var K=new FileReader;K.onload=function(J){P(J.target.result)},K.onerror=function(J){$(J.target.error)},K.readAsArrayBuffer(F)}):F}).then(function(F){var P=l.getTypeOf(F);return P?(P==="arraybuffer"?F=l.transformTo("uint8array",F):P==="string"&&(R?F=u.decode(F):p&&x!==!0&&(F=(function($){return b($,o.uint8array?new Uint8Array($.length):new Array($.length))})(F))),F):c.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,a,l){var o=r("./reader/readerFor"),u=r("./utils"),s=r("./signature"),c=r("./zipEntry"),v=r("./support");function b(S){this.files=[],this.loadOptions=S}b.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var A=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+u.pretty(A)+", expected "+u.pretty(S)+")")}},isSignature:function(S,A){var w=this.reader.index;this.reader.setIndex(S);var E=this.reader.readString(4)===A;return this.reader.setIndex(w),E},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var S=this.reader.readData(this.zipCommentLength),A=v.uint8array?"uint8array":"array",w=u.transformTo(A,S);this.zipComment=this.loadOptions.decodeFileName(w)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,A,w,E=this.zip64EndOfCentralSize-44;0<E;)S=this.reader.readInt(2),A=this.reader.readInt(4),w=this.reader.readData(A),this.zip64ExtensibleData[S]={id:S,length:A,value:w}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var S,A;for(S=0;S<this.files.length;S++)A=this.files[S],this.reader.setIndex(A.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),A.readLocalPart(this.reader),A.handleUTF8(),A.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(S=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var S=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
27ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(S);var A=S;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===u.MAX_VALUE_16BITS||this.diskWithCentralDirStart===u.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===u.MAX_VALUE_16BITS||this.centralDirRecords===u.MAX_VALUE_16BITS||this.centralDirSize===u.MAX_VALUE_32BITS||this.centralDirOffset===u.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var w=this.centralDirOffset+this.centralDirSize;this.zip64&&(w+=20,w+=12+this.zip64EndOfCentralSize);var E=A-w;if(0<E)this.isSignature(A,s.CENTRAL_FILE_HEADER)||(this.reader.zero=E);else if(E<0)throw new Error("Corrupted zip: missing "+Math.abs(E)+" bytes.")},prepareReader:function(S){this.reader=o(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,a,l){var o=r("./reader/readerFor"),u=r("./utils"),s=r("./compressedObject"),c=r("./crc32"),v=r("./utf8"),b=r("./compressions"),S=r("./support");function A(w,E){this.options=w,this.loadOptions=E}A.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(w){var E,y;if(w.skip(22),this.fileNameLength=w.readInt(2),y=w.readInt(2),this.fileName=w.readData(this.fileNameLength),w.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((E=(function(T){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p)&&b[p].magic===T)return b[p];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+u.pretty(this.compressionMethod)+" unknown (inner file : "+u.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,E,w.readData(this.compressedSize))},readCentralPart:function(w){this.versionMadeBy=w.readInt(2),w.skip(2),this.bitFlag=w.readInt(2),this.compressionMethod=w.readString(2),this.date=w.readDate(),this.crc32=w.readInt(4),this.compressedSize=w.readInt(4),this.uncompressedSize=w.readInt(4);var E=w.readInt(2);if(this.extraFieldsLength=w.readInt(2),this.fileCommentLength=w.readInt(2),this.diskNumberStart=w.readInt(2),this.internalFileAttributes=w.readInt(2),this.externalFileAttributes=w.readInt(4),this.localHeaderOffset=w.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");w.skip(E),this.readExtraFields(w),this.parseZIP64ExtraField(w),this.fileComment=w.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var w=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),w==0&&(this.dosPermissions=63&this.externalFileAttributes),w==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var w=o(this.extraFields[1].value);this.uncompressedSize===u.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===u.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===u.MAX_VALUE_32BITS&&
vendor: 12,598 bytes, line 27
27(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===u.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(w){var E,y,T,p=w.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});w.index+4<p;)E=w.readInt(2),y=w.readInt(2),T=w.readData(y),this.extraFields[E]={id:E,length:y,value:T};w.setIndex(p)},handleUTF8:function(){var w=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var E=this.findExtraFieldUnicodePath();if(E!==null)this.fileNameStr=E;else{var y=u.transformTo(w,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var T=this.findExtraFieldUnicodeComment();if(T!==null)this.fileCommentStr=T;else{var p=u.transformTo(w,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var w=this.extraFields[28789];if(w){var E=o(w.value);return E.readInt(1)!==1||c(this.fileName)!==E.readInt(4)?null:v.utf8decode(E.readData(w.length-5))}return null},findExtraFieldUnicodeComment:function(){var w=this.extraFields[25461];if(w){var E=o(w.value);return E.readInt(1)!==1||c(this.fileComment)!==E.readInt(4)?null:v.utf8decode(E.readData(w.length-5))}return null}},a.exports=A},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,a,l){function o(E,y,T){this.name=E,this.dir=T.dir,this.date=T.date,this.comment=T.comment,this.unixPermissions=T.unixPermissions,this.dosPermissions=T.dosPermissions,this._data=y,this._dataBinary=T.binary,this.options={compression:T.compression,compressionOptions:T.compressionOptions}}var u=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),c=r("./utf8"),v=r("./compressedObject"),b=r("./stream/GenericWorker");o.prototype={internalStream:function(E){var y=null,T="string";try{if(!E)throw new Error("No output type specified.");var p=(T=E.toLowerCase())==="string"||T==="text";T!=="binarystring"&&T!=="text"||(T="string"),y=this._decompressWorker();var x=!this._dataBinary;x&&!p&&(y=y.pipe(new c.Utf8EncodeWorker)),!x&&p&&(y=y.pipe(new c.Utf8DecodeWorker))}catch(R){(y=new b("error")).error(R)}return new u(y,T,"")},async:function(E,y){return this.internalStream(E).accumulate(y)},nodeStream:function(E,y){return this.internalStream(E||"nodebuffer").toNodejsStream(y)},_compressWorker:function(E,y){if(this._data instanceof v&&this._data.compression.magic===E.magic)return this._data.getCompressedWorker();var T=this._decompressWorker();return this._dataBinary||(T=T.pipe(new c.Utf8EncodeWorker)),v.createWorkerFrom(T,E,y)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof b?this._data:new s(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],A=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},w=0;w<S.length;w++)o.prototype[S[w]]=A;a.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,a,l){(function(o){var u,s,c=o.MutationObserver||o.WebKitMutationObserver;if(c){var v=0,b=new c(E),S=o.document.createTextNode("");b.observe(S,{characterData:!0}),u=function(){S.data=v=++v%2}}else if(o.setImmediate||o.MessageChannel===void 0)u="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var y=o.document.createElement("script");y.onreadystatechange=function(){E(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},o.document.documentElement.appendChild(y)}:function(){setTimeout(E,0)};else{var A=new o.MessageChannel;A.port1.onmessage=E,u=function(){A.port2.postMessage(0)}}var w=[];function E(){var y,T;s=!0;for(var p=w.length;p;){for(T=w,w=[],y=-1;++y<p;)T[y]();p=w.length}s=!1}a.exports=function(y){w.push(y)!==1||s||u()}}).call(this,typeof tt<"u"?tt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,a,l){var o=r("immediate");function u(){}var s={},c=["REJECTED"],v=["FULFILLED"],b=["PENDING"];function S(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,p!==u&&y(this,p)}function A(p,x,R){this.promise=p,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function w(p,x,R){o(function(){var F;try{F=x(R)}catch(P){return s.reject(p,P)}F===p?s.reject(p,new TypeError("Cannot resolve promise with itself")):s.resolve(p,F)})}function E(p){var x=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof x=="function")return function(){x.apply(p,arguments)}}function y(p,x){var R=!1;function F(K){R||(R=!0,s.reject(p,K))}function P(K){R||(R=!0,s.resolve(p,K))}var $=T(function(){x(P,F)});$.status==="error"&&F($.value)}function T(p,x){var R={};try{R.value=p(x),R.status="success"}catch(F){R.status="error",R.value=F}return R}(a.exports=S).prototype.finally=function(p){if(typeof p!="function")return this;var x=this.constructor;return this.then(function(R){return x.resolve(p()).then(function(){return R})},function(R){return x.resolve(p()).then(function(){throw R})})},S.prototype.catch=function(p){return this.then(null,p)},S.prototype.then=function(p,x){if(typeof p!="function"&&this.state===v||typeof x!="function"&&this.state===c)return this;var R=new this.constructor(u);return this.state!==b?w(R,this.state===v?p:x,this.outcome):this.queue.push(new A(R,p,x)),R},A.prototype.callFulfilled=function(p){s.resolve(this.promise,p)},A.prototype.otherCallFulfilled=function(p){w(this.promise,this.onFulfilled,p)},A.prototype.callRejected=function(p){s.reject(this.promise,p)},A.prototype.otherCallRejected=function(p){w(this.promise,this.onRejected,p)},s.resolve=function(p,x){var R=T(E,x);if(R.status==="error")return s.reject(p,R.value);var F=R.value;if(F)y(p,F);else{p.state=v,p.outcome=x;for(var P=-1,$=p.queue.length;++P<$;)p.queue[P].callFulfilled(x)}return p},s.reject=function(p,x){p.state=c,p.outcome=x;for(var R=-1,F=p.queue.length;++R<F;)p.queue[R].callRejected(x);return p},S.resolve=function(p){return p instanceof this?p:s.resolve(new this(u),p)},S.reject=function(p){var x=new this(u);return s.reject(x,p)},S.all=function(p){var x=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=p.length,F=!1;if(!R)return this.resolve([]);for(var P=new Array(R),$=0,K=-1,J=new this(u);++K<R;)C(p[K],K);return J;function C(ie,ue){x.resolve(ie).then(function(D){P[ue]=D,++$!==R||F||(F=!0,s.resolve(J,P))},function(D){F||(F=!0,s.reject(J,D))})}},S.race=function(p){var x=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=p.length,F=!1;if(!R)return this.resolve([]);for(var P=-1,$=new this(u);++P<R;)K=p[P],x.resolve(K).then(function(J){F||(F=!0,s.resolve($,J))},function(J){F||(F=!0,s.reject($,J))});var K;return $}},{immediate:36}],38:[function(r,a,l){var o={};(0,r("./lib/utils/common").assign)(o,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),a.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,a,l){var o=r("./zlib/deflate"),u=r("./utils/common"),s=r("./utils/strings"),c=r("./zlib/messages"),v=r("./zlib/zstream"),b=Object.prototype.toString,S=0,A=-1,w=0,E=8;function y(p){if(!(this instanceof y))return new y(p);this.options=u.assign({level:A,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},p||{});var x=this.options;x.raw&&0<x.windowBits?x.windowBits=-x.windowBits:x.gzip&&0<x.windowBits&&x.windowBits<16&&(x.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var R=o.deflateInit2(this.strm,x.level,x.method,x.windowBits,x.memLevel,x.strategy);if(R!==S)throw new Error(c[R]);if(x.header&&o.deflateSetHeader(this.strm,x.header),x.dictionary){var F;if(F=typeof x.dictionary=="string"?s.string2buf(x.dictionary):b.call(x.dictionary)==="[object ArrayBuffer]"?new Uint8Array(x.dictionary):x.dictionary,(R=o.deflateSetDictionary(this.strm,F))!==S)throw new Error(c[R]);this._dict_set=!0}}function T(p,x){var R=new y(x);if(R.push(p,!0),R.err)throw R.msg||c[R.err];return R.result}y.prototype.push=function(p,x){var R,F,P=this.strm,$=this.options.chunkSize;if(this.ended)return!1;F=x===~~x?x:x===!0?4:0,typeof p=="string"?P.input=s.string2buf(p):b.call(p)==="[object ArrayBuffer]"?P.input=new Uint8Array(p):P.input=p,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new u.Buf8($),P.next_out=0,P.avail_out=$),(R=o.deflate(P,F))!==1&&R!==S)return this.onEnd(R),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||F!==4&&F!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(u.shrinkBuf(P.output,P.next_out))):this.onData(u.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.avail_out===0)&&R!==1);return F===4?(R=o.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===S):F!==2||(this.onEnd(S),!(P.avail_out=0))},y.prototype.onData=function(p){this.chunks.push(p)},y.prototype.onEnd=function(p){p===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=u.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},l.Deflate=y,l.deflate=T,l.deflateRaw=function(p,x){return(x=x||{}).raw=!0,T(p,x)},l.gzip=function(p,x){return(x=x||{}).gzip=!0,T(p,x)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,a,l){var o=r("./zlib/inflate"),u=r("./utils/common"),s=r("./utils/strings"),c=r("./zlib/constants"),v=r("./zlib/messages"),b=r("./zlib/zstream"),S=r("./zlib/gzheader"),A=Object.prototype.toString;function w(y){if(!(this instanceof w))return new w(y);this.options=u.assign({chunkSize:16384,windowBits:0,to:""},y||{});var T=this.options;T.raw&&0<=T.windowBits&&T.windowBits<16&&(T.windowBits=-T.windowBits,T.windowBits===0&&(T.windowBits=-15)),!(0<=T.windowBits&&T.windowBits<16)||y&&y.windowBits||(T.windowBits+=32),15<T.windowBits&&T.windowBits<48&&(15&T.windowBits)==0&&(T.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var p=o.inflateInit2(this.strm,T.windowBits);if(p!==c.Z_OK)throw new Error(v[p]);this.header=new S,o.inflateGetHeader(this.strm,this.header)}function E(y,T){var p=new w(T);if(p.push(y,!0),p.err)throw p.msg||v[p.err];return p.result}w.prototype.push=function(y,T){var p,x,R,F,P,$,K=this.strm,J=this.options.chunkSize,C=this.options.dictionary,ie=!1;if(this.ended)return!1;x=T===~~T?T:T===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof y=="string"?K.input=s.binstring2buf(y):A.call(y)==="[object ArrayBuffer]"?K.input=new Uint8Array(y):K.input=y,K.next_in=0,K.avail_in=K.input.length;do{if(K.avail_out===0&&(K.output=new u.Buf8(J),K.next_out=0,K.avail_out=J),(p=o.inflate(K,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&C&&($=typeof C=="string"?s.string2buf(C):A.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,p=o.inflateSetDictionary(this.strm,$)),p===c.Z_BUF_ERROR&&ie===!0&&(p=c.Z_OK,ie=!1),p!==c.Z_STREAM_END&&p!==c.Z_OK)return this.onEnd(p),!(this.ended=!0);K.next_out&&(K.avail_out!==0&&p!==c.Z_STREAM_END&&(K.avail_in!==0||x!==c.Z_FINISH&&x!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=s.utf8border(K.output,K.next_out),F=K.next_out-R,P=s.buf2string(K.output,R),K.next_out=F,K.avail_out=J-F,F&&u.arraySet(K.output,K.output,R,F,0),this.onData(P)):this.onData(u.shrinkBuf(K.output,K.next_out)))),K.avail_in===0&&K.avail_out===0&&(ie=!0)}while((0<K.avail_in||K.avail_out===0)&&p!==c.Z_STREAM_END);return p===c.Z_STREAM_END&&(x=c.Z_FINISH),x===c.Z_FINISH?(p=o.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===c.Z_OK):x!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(K.avail_out=0))},w.prototype.onData=function(y){this.chunks.push(y)},w.prototype.onEnd=function(y){y===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=u.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},l.Inflate=w,l.inflate=E,l.inflateRaw=function(y,T){return(T=T||{}).raw=!0,E(y,T)},l.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,a,l){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";l.assign=function(c){for(var v=Array.prototype.slice.call(arguments,1
vendor: 6,219 bytes, line 27
27);v.length;){var b=v.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var S in b)b.hasOwnProperty(S)&&(c[S]=b[S])}}return c},l.shrinkBuf=function(c,v){return c.length===v?c:c.subarray?c.subarray(0,v):(c.length=v,c)};var u={arraySet:function(c,v,b,S,A){if(v.subarray&&c.subarray)c.set(v.subarray(b,b+S),A);else for(var w=0;w<S;w++)c[A+w]=v[b+w]},flattenChunks:function(c){var v,b,S,A,w,E;for(v=S=0,b=c.length;v<b;v++)S+=c[v].length;for(E=new Uint8Array(S),v=A=0,b=c.length;v<b;v++)w=c[v],E.set(w,A),A+=w.length;return E}},s={arraySet:function(c,v,b,S,A){for(var w=0;w<S;w++)c[A+w]=v[b+w]},flattenChunks:function(c){return[].concat.apply([],c)}};l.setTyped=function(c){c?(l.Buf8=Uint8Array,l.Buf16=Uint16Array,l.Buf32=Int32Array,l.assign(l,u)):(l.Buf8=Array,l.Buf16=Array,l.Buf32=Array,l.assign(l,s))},l.setTyped(o)},{}],42:[function(r,a,l){var o=r("./common"),u=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{u=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var c=new o.Buf8(256),v=0;v<256;v++)c[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function b(S,A){if(A<65537&&(S.subarray&&s||!S.subarray&&u))return String.fromCharCode.apply(null,o.shrinkBuf(S,A));for(var w="",E=0;E<A;E++)w+=String.fromCharCode(S[E]);return w}c[254]=c[254]=1,l.string2buf=function(S){var A,w,E,y,T,p=S.length,x=0;for(y=0;y<p;y++)(64512&(w=S.charCodeAt(y)))==55296&&y+1<p&&(64512&(E=S.charCodeAt(y+1)))==56320&&(w=65536+(w-55296<<10)+(E-56320),y++),x+=w<128?1:w<2048?2:w<65536?3:4;for(A=new o.Buf8(x),y=T=0;T<x;y++)(64512&(w=S.charCodeAt(y)))==55296&&y+1<p&&(64512&(E=S.charCodeAt(y+1)))==56320&&(w=65536+(w-55296<<10)+(E-56320),y++),w<128?A[T++]=w:(w<2048?A[T++]=192|w>>>6:(w<65536?A[T++]=224|w>>>12:(A[T++]=240|w>>>18,A[T++]=128|w>>>12&63),A[T++]=128|w>>>6&63),A[T++]=128|63&w);return A},l.buf2binstring=function(S){return b(S,S.length)},l.binstring2buf=function(S){for(var A=new o.Buf8(S.length),w=0,E=A.length;w<E;w++)A[w]=S.charCodeAt(w);return A},l.buf2string=function(S,A){var w,E,y,T,p=A||S.length,x=new Array(2*p);for(w=E=0;w<p;)if((y=S[w++])<128)x[E++]=y;else if(4<(T=c[y]))x[E++]=65533,w+=T-1;else{for(y&=T===2?31:T===3?15:7;1<T&&w<p;)y=y<<6|63&S[w++],T--;1<T?x[E++]=65533:y<65536?x[E++]=y:(y-=65536,x[E++]=55296|y>>10&1023,x[E++]=56320|1023&y)}return b(x,E)},l.utf8border=function(S,A){var w;for((A=A||S.length)>S.length&&(A=S.length),w=A-1;0<=w&&(192&S[w])==128;)w--;return w<0||w===0?A:w+c[S[w]]>A?w:A}},{"./common":41}],43:[function(r,a,l){a.exports=function(o,u,s,c){for(var v=65535&o|0,b=o>>>16&65535|0,S=0;s!==0;){for(s-=S=2e3<s?2e3:s;b=b+(v=v+u[c++]|0)|0,--S;);v%=65521,b%=65521}return v|b<<16|0}},{}],44:[function(r,a,l){a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,a,l){var o=(function(){for(var u,s=[],c=0;c<256;c++){u=c;for(var v=0;v<8;v++)u=1&u?3988292384^u>>>1:u>>>1;s[c]=u}return s})();a.exports=function(u,s,c,v){var b=o,S=v+c;u^=-1;for(var A=v;A<S;A++)u=u>>>8^b[255&(u^s[A])];return-1^u}},{}],46:[function(r,a,l){var o,u=r("../utils/common"),s=r("./trees"),c=r("./adler32"),v=r("./crc32"),b=r("./messages"),S=0,A=4,w=0,E=-2,y=-1,T=4,p=2,x=8,R=9,F=286,P=30,$=19,K=2*F+1,J=15,C=3,ie=258,ue=ie+C+1,D=42,V=113,_=1,q=2,le=3,X=4;function he(h,G){return h.msg=b[G],G}function ee(h){return(h<<1)-(4<h?9:0)}function fe(h){for(var G=h.length;0<=--G;)h[G]=0}function U(h){var G=h.state,g=G.pending;g>h.avail_out&&(g=h.avail_out),g!==0&&(u.arraySet(h.output,G.pending_buf,G.pending_out,g,h.next_out),h.next_out+=g,G.pending_out+=g,h.total_out+=g,h.avail_out-=g,G.pending-=g,G.pending===0&&(G.pending_out=0))}function k(h,G){s._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,G),h.block_start=h.strstart,U(h.strm)}function j(h,G){h.pending_buf[h.pending++]=G}function H(h,G){h.pending_buf[h.pending++]=G>>>8&255,h.pending_buf[h.pending++]=255&G}function Z(h,G){var g,n,i=h.max_chain_length,f=h.strstart,O=h.prev_length,W=h.nice_match,L=h.strstart>h.w_size-ue?h.strstart-(h.w_size-ue):0,te=h.window,oe=h.w_mask,ne=h.prev,ce=h.strstart+ie,de=te[f+O-1],me=te[f+O];h.prev_length>=h.good_match&&(i>>=2),W>h.lookahead&&(W=h.lookahead);do if(te[(g=G)+O]===me&&te[g+O-1]===de&&te[g]===te[f]&&te[++g]===te[f+1]){f+=2,g++;do;while(te[++f]===te[++g]&&te[++f]===te[++g]&&te[++f]===te[++g]&&te[++f]===te[++g]&&te[++f]===te[++g]&&te[++f]===te[++g]&&te[++f]===te[++g]&&te[++f]===te[++g]&&f<ce);if(n=ie-(ce-f),f=ce-ie,O<n){if(h.match_start=G,W<=(O=n))break;de=te[f+O-1],me=te[f+O]}}while((G=ne[G&oe])>L&&--i!=0);return O<=h.lookahead?O:h.lookahead}function z(h){var G,g,n,i,f,O,W,L,te,oe,ne=h.w_size;do{if(i=h.window_size-h.lookahead-h.strstart,h.strstart>=ne+(ne-ue)){for(u.arraySet(h.window,h.window,ne,ne,0),h.match_start-=ne,h.strstart-=ne,h.block_start-=ne,G=g=h.hash_size;n=h.head[--G],h.head[G]=ne<=n?n-ne:0,--g;);for(G=g=ne;n=h.prev[--G],h.prev[G]=ne<=n?n-ne:0,--g;);i+=ne}if(h.strm.avail_in===0)break;if(O=h.strm,W=h.window,L=h.strstart+h.lookahead,te=i,oe=void 0,oe=O.avail_in,te<oe&&(oe=te),g=oe===0?0:(O.avail_in-=oe,u.arraySet(W,O.input,O.next_in,oe,L),O.state.wrap===1?O.adler=c(O.adler,W,oe,L):O.state.wrap===2&&(O.adler=v(O.adler,W,oe,L)),O.next_in+=oe,O.total_in+=oe,oe),h.lookahead+=g,h.lookahead+h.insert>=C)for(f=h.strstart-h.insert,h.ins_h=h.window[f],h.ins_h=(h.ins_h<<h.hash_shift^h.window[f+1])&h.hash_mask;h.insert&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[f+C-1])&h.hash_mask,h.prev[f&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=f,f++,h.insert--,!(h.lookahead+h.insert<C)););}while(h.lookahead<ue&&h.strm.avail_in!==0)}function m(h,G){for(var g,n;;){if(h.lookahead<ue){if(z(h),h.lookahead<ue&&G===S)return _;if(h.lookahead===0)break}if(g=0,h.lookahead>=C&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+C-1])&h.hash_mask,g=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),g!==0&&h.strstart-g<=h.w_size-ue&&(h.match_length=Z(
vendor: 35,035 bytes, line 27
27h,g)),h.match_length>=C)if(n=s._tr_tally(h,h.strstart-h.match_start,h.match_length-C),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=C){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+C-1])&h.hash_mask,g=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart,--h.match_length!=0;);h.strstart++}else h.strstart+=h.match_length,h.match_length=0,h.ins_h=h.window[h.strstart],h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+1])&h.hash_mask;else n=s._tr_tally(h,0,h.window[h.strstart]),h.lookahead--,h.strstart++;if(n&&(k(h,!1),h.strm.avail_out===0))return _}return h.insert=h.strstart<C-1?h.strstart:C-1,G===A?(k(h,!0),h.strm.avail_out===0?le:X):h.last_lit&&(k(h,!1),h.strm.avail_out===0)?_:q}function d(h,G){for(var g,n,i;;){if(h.lookahead<ue){if(z(h),h.lookahead<ue&&G===S)return _;if(h.lookahead===0)break}if(g=0,h.lookahead>=C&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+C-1])&h.hash_mask,g=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),h.prev_length=h.match_length,h.prev_match=h.match_start,h.match_length=C-1,g!==0&&h.prev_length<h.max_lazy_match&&h.strstart-g<=h.w_size-ue&&(h.match_length=Z(h,g),h.match_length<=5&&(h.strategy===1||h.match_length===C&&4096<h.strstart-h.match_start)&&(h.match_length=C-1)),h.prev_length>=C&&h.match_length<=h.prev_length){for(i=h.strstart+h.lookahead-C,n=s._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-C),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=i&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+C-1])&h.hash_mask,g=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart),--h.prev_length!=0;);if(h.match_available=0,h.match_length=C-1,h.strstart++,n&&(k(h,!1),h.strm.avail_out===0))return _}else if(h.match_available){if((n=s._tr_tally(h,0,h.window[h.strstart-1]))&&k(h,!1),h.strstart++,h.lookahead--,h.strm.avail_out===0)return _}else h.match_available=1,h.strstart++,h.lookahead--}return h.match_available&&(n=s._tr_tally(h,0,h.window[h.strstart-1]),h.match_available=0),h.insert=h.strstart<C-1?h.strstart:C-1,G===A?(k(h,!0),h.strm.avail_out===0?le:X):h.last_lit&&(k(h,!1),h.strm.avail_out===0)?_:q}function M(h,G,g,n,i){this.good_length=h,this.max_lazy=G,this.nice_length=g,this.max_chain=n,this.func=i}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new u.Buf16(2*K),this.dyn_dtree=new u.Buf16(2*(2*P+1)),this.bl_tree=new u.Buf16(2*(2*$+1)),fe(this.dyn_ltree),fe(this.dyn_dtree),fe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new u.Buf16(J+1),this.heap=new u.Buf16(2*F+1),fe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new u.Buf16(2*F+1),fe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(h){var G;return h&&h.state?(h.total_in=h.total_out=0,h.data_type=p,(G=h.state).pending=0,G.pending_out=0,G.wrap<0&&(G.wrap=-G.wrap),G.status=G.wrap?D:V,h.adler=G.wrap===2?0:1,G.last_flush=S,s._tr_init(G),w):he(h,E)}function N(h){var G=I(h);return G===w&&(function(g){g.window_size=2*g.w_size,fe(g.head),g.max_lazy_match=o[g.level].max_lazy,g.good_match=o[g.level].good_length,g.nice_match=o[g.level].nice_length,g.max_chain_length=o[g.level].max_chain,g.strstart=0,g.block_start=0,g.lookahead=0,g.insert=0,g.match_length=g.prev_length=C-1,g.match_available=0,g.ins_h=0})(h.state),G}function Y(h,G,g,n,i,f){if(!h)return E;var O=1;if(G===y&&(G=6),n<0?(O=0,n=-n):15<n&&(O=2,n-=16),i<1||R<i||g!==x||n<8||15<n||G<0||9<G||f<0||T<f)return he(h,E);n===8&&(n=9);var W=new B;return(h.state=W).strm=h,W.wrap=O,W.gzhead=null,W.w_bits=n,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=i+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+C-1)/C),W.window=new u.Buf8(2*W.w_size),W.head=new u.Buf16(W.hash_size),W.prev=new u.Buf16(W.w_size),W.lit_bufsize=1<<i+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new u.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=G,W.strategy=f,W.method=g,N(h)}o=[new M(0,0,0,0,function(h,G){var g=65535;for(g>h.pending_buf_size-5&&(g=h.pending_buf_size-5);;){if(h.lookahead<=1){if(z(h),h.lookahead===0&&G===S)return _;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var n=h.block_start+g;if((h.strstart===0||h.strstart>=n)&&(h.lookahead=h.strstart-n,h.strstart=n,k(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-ue&&(k(h,!1),h.strm.avail_out===0))return _}return h.insert=0,G===A?(k(h,!0),h.strm.avail_out===0?le:X):(h.strstart>h.block_start&&(k(h,!1),h.strm.avail_out),_)}),new M(4,4,8,4,m),new M(4,5,16,8,m),new M(4,6,32,32,m),new M(4,4,16,16,d),new M(8,16,32,32,d),new M(8,16,128,128,d),new M(8,32,128,256,d),new M(32,128,258,1024,d),new M(32,258,258,4096,d)],l.deflateInit=function(h,G){return Y(h,G,x,15,8,0)},l.deflateInit2=Y,l.deflateReset=N,l.deflateResetKeep=I,l.deflateSetHeader=function(h,G){return h&&h.state?h.state.wrap!==2?E:(h.state.gzhead=G,w):E},l.deflate=function(h,G){var g,n,i,f;if(!h||!h.state||5<G||G<0)return h?he(h,E):E;if(n=h.state,!h.output||!h.input&&h.avail_in!==0||n.status===666&&G!==A)return he(h,h.avail_out===0?-5:E);if(n.strm=h,g=n.last_flush,n.last_flush=G,n.status===D)if(n.wrap===2)h.adler=0,j(n,31),j(n,139),j(n,8),n.gzhead?(j(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),j(n,255&n.gzhead.time),j(n,n.gzhead.time>>8&255),j(n,n.gzhead.time>>16&255),j(n,n.gzhead.time>>24&255),j(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),j(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(j(n,255&n.gzhead.extra.length),j(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(h.adler=v(h.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(j(n,0),j(n,0),j(n,0),j(n,0),j(n,0),j(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),j(n,3),n.status=V);else{var O=x+(n.w_bits-8<<4)<<8;O|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(O|=32),O+=31-O%31,n.status=V,H(n,O),n.strstart!==0&&(H(n,h.adler>>>16),H(n,65535&h.adler)),h.adler=1}if(n.status===69)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(h.adler=v(h.adler,n.pending_buf,n.pending-i,i)),U(h),i=n.pending,n.pending!==n.pending_buf_size));)j(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(h.adler=v(h.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(h.adler=v(h.adler,n.pending_buf,n.pending-i,i)),U(h),i=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,j(n,f)}while(f!==0);n.gzhead.hcrc&&n.pending>i&&(h.adler=v(h.adler,n.pending_buf,n.pending-i,i)),f===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(h.adler=v(h.adler,n.pending_buf,n.pending-i,i)),U(h),i=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,j(n,f)}while(f!==0);n.gzhead.hcrc&&n.pending>i&&(h.adler=v(h.adler,n.pending_buf,n.pending-i,i)),f===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&U(h),n.pending+2<=n.pending_buf_size&&(j(n,255&h.adler),j(n,h.adler>>8&255),h.adler=0,n.status=V)):n.status=V),n.pending!==0){if(U(h),h.avail_out===0)return n.last_flush=-1,w}else if(h.avail_in===0&&ee(G)<=ee(g)&&G!==A)return he(h,-5);if(n.status===666&&h.avail_in!==0)return he(h,-5);if(h.avail_in!==0||n.lookahead!==0||G!==S&&n.status!==666){var W=n.strategy===2?(function(L,te){for(var oe;;){if(L.lookahead===0&&(z(L),L.lookahead===0)){if(te===S)return _;break}if(L.match_length=0,oe=s._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++,oe&&(k(L,!1),L.strm.avail_out===0))return _}return L.insert=0,te===A?(k(L,!0),L.strm.avail_out===0?le:X):L.last_lit&&(k(L,!1),L.strm.avail_out===0)?_:q})(n,G):n.strategy===3?(function(L,te){for(var oe,ne,ce,de,me=L.window;;){if(L.lookahead<=ie){if(z(L),L.lookahead<=ie&&te===S)return _;if(L.lookahead===0)break}if(L.match_length=0,L.lookahead>=C&&0<L.strstart&&(ne=me[ce=L.strstart-1])===me[++ce]&&ne===me[++ce]&&ne===me[++ce]){de=L.strstart+ie;do;while(ne===me[++ce]&&ne===me[++ce]&&ne===me[++ce]&&ne===me[++ce]&&ne===me[++ce]&&ne===me[++ce]&&ne===me[++ce]&&ne===me[++ce]&&ce<de);L.match_length=ie-(de-ce),L.match_length>L.lookahead&&(L.match_length=L.lookahead)}if(L.match_length>=C?(oe=s._tr_tally(L,1,L.match_length-C),L.lookahead-=L.match_length,L.strstart+=L.match_length,L.match_length=0):(oe=s._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++),oe&&(k(L,!1),L.strm.avail_out===0))return _}return L.insert=0,te===A?(k(L,!0),L.strm.avail_out===0?le:X):L.last_lit&&(k(L,!1),L.strm.avail_out===0)?_:q})(n,G):o[n.level].func(n,G);if(W!==le&&W!==X||(n.status=666),W===_||W===le)return h.avail_out===0&&(n.last_flush=-1),w;if(W===q&&(G===1?s._tr_align(n):G!==5&&(s._tr_stored_block(n,0,0,!1),G===3&&(fe(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),U(h),h.avail_out===0))return n.last_flush=-1,w}return G!==A?w:n.wrap<=0?1:(n.wrap===2?(j(n,255&h.adler),j(n,h.adler>>8&255),j(n,h.adler>>16&255),j(n,h.adler>>24&255),j(n,255&h.total_in),j(n,h.total_in>>8&255),j(n,h.total_in>>16&255),j(n,h.total_in>>24&255)):(H(n,h.adler>>>16),H(n,65535&h.adler)),U(h),0<n.wrap&&(n.wrap=-n.wrap),n.pending!==0?w:1)},l.deflateEnd=function(h){var G;return h&&h.state?(G=h.state.status)!==D&&G!==69&&G!==73&&G!==91&&G!==103&&G!==V&&G!==666?he(h,E):(h.state=null,G===V?he(h,-3):w):E},l.deflateSetDictionary=function(h,G){var g,n,i,f,O,W,L,te,oe=G.length;if(!h||!h.state||(f=(g=h.state).wrap)===2||f===1&&g.status!==D||g.lookahead)return E;for(f===1&&(h.adler=c(h.adler,G,oe,0)),g.wrap=0,oe>=g.w_size&&(f===0&&(fe(g.head),g.strstart=0,g.block_start=0,g.insert=0),te=new u.Buf8(g.w_size),u.arraySet(te,G,oe-g.w_size,g.w_size,0),G=te,oe=g.w_size),O=h.avail_in,W=h.next_in,L=h.input,h.avail_in=oe,h.next_in=0,h.input=G,z(g);g.lookahead>=C;){for(n=g.strstart,i=g.lookahead-(C-1);g.ins_h=(g.ins_h<<g.hash_shift^g.window[n+C-1])&g.hash_mask,g.prev[n&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=n,n++,--i;);g.strstart=n,g.lookahead=C-1,z(g)}return g.strstart+=g.lookahead,g.block_start=g.strstart,g.insert=g.lookahead,g.lookahead=0,g.match_length=g.prev_length=C-1,g.match_available=0,h.next_in=W,h.input=L,h.avail_in=O,g.wrap=f,w},l.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,a,l){a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,a,l){a.exports=function(o,u){var s,c,v,b,S,A,w,E,y,T,p,x,R,F,P,$,K,J,C,ie,ue,D,V,_,q;s=o.state,c=o.next_in,_=o.input,v=c+(o.avail_in-5),b=o.next_out,q=o.output,S=b-(u-o.avail_out),A=b+(o.avail_out-257),w=s.dmax,E=s.wsize,y=s.whave,T=s.wnext,p=s.window,x=s.hold,R=s.bits,F=s.lencode,P=s.distcode,$=(1<<s.lenbits)-1,K=(1<<s.distbits)-1;e:do{R<15&&(x+=_[c++]<<R,R+=8,x+=_[c++]<<R,R+=8),J=F[x&$];t:for(;;){if(x>>>=C=J>>>24,R-=C,(C=J>>>16&255)===0)q[b++]=65535&J;else{if(!(16&C)){if((64&C)==0){J=F[(65535&J)+(x&(1<<C)-1)];continue t}if(32&C){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}ie=65535&J,(C&=15)&&(R<C&&(x+=_[c++]<<R,R+=8),ie+=x&(1<<C)-1,x>>>=C,R-=C),R<15&&(x+=_[c++]<<R,R+=8,x+=_[c++]<<R,R+=8),J=P[x&K];r:for(;;){if(x>>>=C=J>>>24,R-=C,!(16&(C=J>>>16&255))){if((64&C)==0){J=P[(65535&J)+(x&(1<<C)-1)];continue r}o.msg="invalid distance code",s.mode=30;break e}if(ue=65535&J,R<(C&=15)&&(x+=_[c++]<<R,(R+=8)<C&&(x+=_[c++]<<R,R+=8)),w<(ue+=x&(1<<C)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(x>>>=C,R-=C,(C=b-S)<ue){if(y<(C=ue-C)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(V=p,(D=0)===T){if(D+=E-C,C<ie){for(ie-=C;q[b++]=p[D++],--C;);D=b-ue,V=q}}else if(T<C){if(D+=E+T-C,(C-=T)<ie){for(ie-=C;q[b++]=p[D++],--C;);if(D=0,T<ie){for(ie-=C=T;q[b++]=p[D++],--C;);D=b-ue,V=q}}}else if(D+=T-C,C<ie){for(ie-=C;q[b++]=p[D++],--C;);D=b-ue,V=q}for(;2<ie;)q[b++]=V[D++],q[b++]=V[D++],q[b++]=V[D++],ie-=3;ie&&(q[b++]=V[D++],1<ie&&(q[b++]=V[D++]))}else{for(D=b-ue;q[b++]=q[D++],q[b++]=q[D++],q[b++]=q[D++],2<(ie-=3););ie&&(q[b++]=q[D++],1<ie&&(q[b++]=q[D++]))}break}}break}}while(c<v&&b<A);c-=ie=R>>3,x&=(1<<(R-=ie<<3))-1,o.next_in=c,o.next_out=b,o.avail_in=c<v?v-c+5:5-(c-v),o.avail_out=b<A?A-b+257:257-(b-A),s.hold=x,s.bits=R}},{}],49:[function(r,a,l){var o=r("../utils/common"),u=r("./adler32"),s=r("./crc32"),c=r("./inffast"),v=r("./inftrees"),b=1,S=2,A=0,w=-2,E=1,y=852,T=592;function p(D){return(D>>>24&255)+(D>>>8&65280)+((65280&D)<<8)+((255&D)<<24)}function x(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(D){var V;return D&&D.state?(V=D.state,D.total_in=D.total_out=V.total=0,D.msg="",V.wrap&&(D.adler=1&V.wrap),V.mode=E,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new o.Buf32(y),V.distcode=V.distdyn=new o.Buf32(T),V.sane=1,V.back=-1,A):w}function F(D){var V;return D&&D.state?((V=D.state).wsize=0,V.whave=0,V.wnext=0,R(D)):w}function P(D,V){var _,q;return D&&D.state?(q=D.state,V<0?(_=0,V=-V):(_=1+(V>>4),V<48&&(V&=15)),V&&(V<8||15<V)?w:(q.window!==null&&q.wbits!==V&&(q.window=null),q.wrap=_,q.wbits=V,F(D))):w}function $(D,V){var _,q;return D?(q=new x,(D.state=q).window=null,(_=P(D,V))!==A&&(D.state=null),_):w}var K,J,C=!0;function ie(D){if(C){var V;for(K=new o.Buf32(512),J=new o.Buf32(32),V=0;V<144;)D.lens[V++]=8;for(;V<256;)D.lens[V++]=9;for(;V<280;)D.lens[V++]=7;for(;V<288;)D.lens[V++]=8;for(v(b,D.lens,0,288,K,0,D.work,{bits:9}),V=0;V<32;)D.lens[V++]=5;v(S,D.lens,0,32,J,0,D.work,{bits:5}),C=!1}D.lencode=K,D.lenbits=9,D.distcode=J,D.distbits=5}function ue(D,V,_,q){var le,X=D.state;return X.window===null&&(X.wsize=1<<X.wbits,X.wnext=0,X.whave=0,X.window=new o.Buf8(X.wsize)),q>=X.wsize?(o.arraySet(X.window,V,_-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(q<(le=X.wsize-X.wnext)&&(le=q),o.arraySet(X.window,V,_-q,le,X.wnext),(q-=le)?(o.arraySet(X.window,V,_-q,q,0),X.wnext=q,X.whave=X.wsize):(X.wnext+=le,X.wnext===X.wsize&&(X.wnext=0),X.whave<X.wsize&&(X.whave+=le))),0}l.inflateReset=F,l.inflateReset2=P,l.inflateResetKeep=R,l.inflateInit=function(D){return $(D,15)},l.inflateInit2=$,l.inflate=function(D,V){var _,q,le,X,he,ee,fe,U,k,j,H,Z,z,m,d,M,B,I,N,Y,h,G,g,n,i=0,f=new o.Buf8(4),O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!D||!D.state||!D.output||!D.input&&D.avail_in!==0)return w;(_=D.state).mode===12&&(_.mode=13),he=D.next_out,le=D.output,fe=D.avail_out,X=D.next_in,q=D.input,ee=D.avail_in,U=_.hold,k=_.bits,j=ee,H=fe,G=A;e:for(;;)switch(_.mode){case E:if(_.wrap===0){_.mode=13;break}for(;k<16;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(2&_.wrap&&U===35615){f[_.check=0]=255&U,f[1]=U>>>8&255,_.check=s(_.check,f,2,0),k=U=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&U)<<8)+(U>>8))%31){D.msg="incorrect header check",_.mode=30;break}if((15&U)!=8){D.msg="unknown compression method",_.mode=30;break}if(k-=4,h=8+(15&(U>>>=4)),_.wbits===0)_.wbits=h;else if(h>_.wbits){D.msg="invalid window size",_.mode=30;break}_.dmax=1<<h,D.adler=_.check=1,_.mode=512&U?10:12,k=U=0;break;case 2:for(;k<16;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(_.flags=U,(255&_.flags)!=8){D.msg="unknown compression method",_.mode=30;break}if(57344&_.flags){D.msg="unknown header flags set",_.mode=30;break}_.head&&(_.head.text=U>>8&1),512&_.flags&&(f[0]=255&U,f[1]=U>>>8&255,_.check=s(_.check,f,2,0)),k=U=0,_.mode=3;case 3:for(;k<32;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}_.head&&(_.head.time=U),512&_.flags&&(f[0]=255&U,f[1]=U>>>8&255,f[2]=U>>>16&255,f[3]=U>>>24&255,_.check=s(_.check,f,4,0)),k=U=0,_.mode=4;case 4:for(;k<16;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}_.head&&(_.head.xflags=255&U,_.head.os=U>>8),512&_.flags&&(f[0]=255&U,f[1]=U>>>8&255,_.check=s(_.check,f,2,0)),k=U=0,_.mode=5;case 5:if(1024&_.flags){for(;k<16;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}_.length=U,_.head&&(_.head.extra_len=U),512&_.flags&&(f[0]=255&U,f[1]=U>>>8&255,_.check=s(_.check,f,2,0)),k=U=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(ee<(Z=_.length)&&(Z=ee),Z&&(_.head&&(h=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),o.arraySet(_.head.extra,q,X,Z,h)),512&_.flags&&(_.check=s(_.check,q,Z,X)),ee-=Z,X+=Z,_.length-=Z),_.length))break e;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(ee===0)break e;for(Z=0;h=q[X+Z++],_.head&&h&&_.length<65536&&(_.head.name+=String.fromCharCode(h)),h&&Z<ee;);if(512&_.flags&&(_.check=s(_.check,q,Z,X)),ee-=Z,X+=Z,h)break e}else _.head&&(_.head.name=null);_.length=0,_.mode=8;case 8:if(4096&_.flags){if(ee===0)break e;for(Z=0;h=q[X+Z++],_.head&&h&&_.length<65536&&(_.head.comment+=String.fromCharCode(h)),h&&Z<ee;);if(512&_.flags&&(_.check=s(_.check,q,Z,X)),ee-=Z,X+=Z,h)break e}else _.head&&(_.head.comment=null);_.mode=9;case 9:if(512&_.flags){for(;k<16;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(U!==(65535&_.check)){D.msg="header crc mismatch",_.mode=30;break}k=U=0}_.head&&(_.head.hcrc=_.flags>>9&1,_.head.done=!0),D.adler=_.check=0,_.mode=12;break;case 10:for(;k<32;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}D.adler=_.check=p(U),k=U=0,_.mode=11;case 11:if(_.havedict===0)return D.next_out=he,D.avail_out=fe,D.next_in=X,D.avail_in=ee,_.hold=U,_.bits=k,2;D.adler=_.check=1,_.mode=12;case 12:if(V===5||V===6)break e;case 13:if(_.last){U>>>=7&k,k-=7&k,_.mode=27;break}for(;k<3;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}switch(_.last=1&U,k-=1,3&(U>>>=1)){case 0:_.mode=14;break;case 1:if(ie(_),_.mode=20,V!==6)break;U>>>=2,k-=2;break e;case 2:_.mode=17;break;case 3:D.msg="invalid block type",_.mode=30}U>>>=2,k-=2;break;case 14:for(U>>>=7&k,k-=7&k;k<32;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if((65535&U)!=(U>>>16^65535)){D.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&U,k=U=0,_.mode=15,V===6)break e;case 15:_.mode=16;case 16:if(Z=_.length){if(ee<Z&&(Z=ee),fe<Z&&(Z=fe),Z===0)break e;o.arraySet(le,q,X,Z,he),ee-=Z,X+=Z,fe-=Z,he+=Z,_.length-=Z;break}_.mode=12;break;case 17:for(;k<14;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(_.nlen=257+(31&U),U>>>=5,k-=5,_.ndist=1+(31&U),U>>>=5,k-=5,_.ncode=4+(15&U),U>>>=4,k-=4,286<_.nlen||30<_.ndist){D.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;k<3;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}_.lens[O[_.have++]]=7&U,U>>>=3,k-=3}for(;_.have<19;)_.lens[O[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,g={bits:_.lenbits},G=v(0,_.lens,0,19,_.lencode,0,_.work,g),_.lenbits=g.bits,G){D.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;M=(i=_.lencode[U&(1<<_.lenbits)-1])>>>16&255,B=65535&i,!((d=i>>>24)<=k);){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(B<16)U>>>=d,k-=d,_.lens[_.have++]=B;else{if(B===16){for(n=d+2;k<n;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(U>>>=d,k-=d,_.have===0){D.msg="invalid bit length repeat",_.mode=30;break}h=_.lens[_.have-1],Z=3+(3&U),U>>>=2,k-=2}else if(B===17){for(n=d+3;k<n;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}k-=d,h=0,Z=3+(7&(U>>>=d)),U>>>=3,k-=3}else{for(n=d+7;k<n;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}k-=d,h=0,Z=11+(127&(U>>>=d)),U>>>=7,k-=7}if(_.have+Z>_.nlen+_.ndist){D.msg="invalid bit length repeat",_.mode=30;break}for(;Z--;)_.lens[_.have++]=h}}if(_.mode===30)break;if(_.lens[256]===0){D.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,g={bits:_.lenbits},G=v(b,_.lens,0,_.nlen,_.lencode,0,_.work,g),_.lenbits=g.bits,G){D.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,g={bits:_.distbits},G=v(S,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,g),_.distbits=g.bits,G){D.msg="invalid distances set",_.mode=30;break}if(_.mode=20,V===6)break e;case 20:_.mode=21;case 21:if(6<=ee&&258<=fe){D.next_out=he,D.avail_out=fe,D.next_in=X,D.avail_in=ee,_.hold=U,_.bits=k,c(D,H),he=D.next_out,le=D.output,fe=D.avail_out,X=D.next_in,q=D.input,ee=D.avail_in,U=_.hold,k=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;M=(i=_.lencode[U&(1<<_.lenbits)-1])>>>16&255,B=65535&i,!((d=i>>>24)<=k);){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(M&&(240&M)==0){for(I=d,N=M,Y=B;M=(i=_.lencode[Y+((U&(1<<I+N)-1)>>I)])>>>16&255,B=65535&i,!(I+(d=i>>>24)<=k);){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}U>>>=I,k-=I,_.back+=I}if(U>>>=d,k-=d,_.back+=d,_.length=B,M===0){_.mode=26;break}if(32&M){_.back=-1,_.mode=12;break}if(64&M){D.msg="invalid literal/length code",_.mode=30;break}_.extra=15&M,_.mode=22;case 22:if(_.extra){for(n=_.extra;k<n;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}_.length+=U&(1<<_.extra)-1,U>>>=_.extra,k-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;M=(i=_.distcode[U&(1<<_.distbits)-1])>>>16&255,B=65535&i,!((d=i>>>24)<=k);){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if((240&M)==0){for(I=d,N=M,Y=B;M=(i=_.distcode[Y+((U&(1<<I+N)-1)>>I)])>>>16&255,B=65535&i,!(I+(d=i>>>24)<=k);){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}U>>>=I,k-=I,_.back+=I}if(U>>>=d,k-=d,_.back+=d,64&M){D.msg="invalid distance code",_.mode=30;break}_.offset=B,_.extra=15&M,_.mode=24;case 24:if(_.extra){for(n=_.extra;k<n;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}_.offset+=U&(1<<_.extra)-1,U>>>=_.extra,k-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){D.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(fe===0)break e;if(Z=H-fe,_.offset>Z){if((Z=_.offset-Z)>_.whave&&_.sane){D.msg="invalid distance too far back",_.mode=30;break}z=Z>_.wnext?(Z-=_.wnext,_.wsize-Z):_.wnext-Z,Z>_.length&&(Z=_.length),m=_.window}else m=le,z=he-_.offset,Z=_.length;for(fe<Z&&(Z=fe),fe-=Z,_.length-=Z;le[he++]=m[z++],--Z;);_.length===0&&(_.mode=21);break;case 26:if(fe===0)break e;le[he++]=_.length,fe--,_.mode=21;break;case 27:if(_.wrap){for(;k<32;){if(ee===0)break e;ee--,U|=q[X++]<<k,k+=8}if(H-=fe,D.total_out+=H,_.total+=H,H&&(D.adler=_.check=_.flags?s(_.check,le,H,he-H):u(_.check,le,H,he-H)),H=fe,(_.flags?U:p(U))!==_.check){D.msg="incorrect data check",_.mode=30;break}k=U=0}_.mode=28;case 28:if(_.wrap&&_.flags){for(;k<32;){if(ee===0)break e;ee--,U+=q[X++]<<k,k+=8}if(U!==(4294967295&_.total)){D.msg="incorrect length check",_.mode=30;break}k=U=0}_.mode=29;case 29:G=1;break e;case 30:G=-3;break e;case 31:return-4;case 32:default:return w}return D.next_out=he,D.avail_out=fe,D.next_in=X,D.avail_in=ee,_.hold=U,_.bits=k,(_.wsize||H!==D.avail_out&&_.mode<30&&(_.mode<27||V!==4))&&ue(D,D.output,D.next_out,H-D.avail_out)?(_.mode=31,-4):(j-=D.avail_in,H-=D.avail_out,D.total_in+=j,D.total_out+=H,_.total+=H,_.wrap&&H&&(D.adler=_.check=_.flags?s(_.check,le,H,D.next_out-H):u(_.check,le,H,D.next_out-H)),D.data_type=_.bits+(_.last?64:0)+(_.mode===12?128:0)+(_.mode===20||_.mode===15?256:0),(j==0&&H===0||V===4)&&G===A&&(G=-5),G)},l.inflateEnd=function(D){if(!D||!D.state)return w;var V=D.state;return V.window&&(V.window=null),D.state=null,A},l.inflateGetHeader=function(D,V){var _;return D&&D.state?(2&(_=D.state).wrap)==0?w:((_.head=V).done=!1,A):w},l.inflateSetDictionary=function(D,V){var _,q=V.length;return D&&D.state?(_=D.state).wrap!==0&&_.mode!==11?w:_.mode===11&&u(1,V,q,0)!==_.check?-3:ue(D,V,q,q)?(_.mode=31,-4):(_.havedict=1,A):w},l.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,a,l){var o=r("../utils/common"),u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(b,S,A,w,E,y,T,p){var x,R,F,P,$,K,J,C,ie,ue=p.bits,D=0,V=0,_=0,q=0,le=0,X=0,he=0,ee=0,fe=0,U=0,k=null,j=0,H=new o.Buf16(16),Z=new o.Buf16(16),z=null,m=0;for(D=0;D<=15;D++)H[D]=0;for(V=0;V<w;V++)H[S[A+V]]++;for(le=ue,q=15;1<=q&&H[q]===0;q--);if(q<le&&(le=q),q===0)return E[y++]=20971520,E[y++]=20971520,p.bits=1,0;for(_=1;_<q&&H[_]===0;_++);for(le<_&&(le=_),D=ee=1;D<=15;D++)if(ee<<=1,(ee-=H[D])<0)return-1;if(0<ee&&(b===0||q!==1))return-1;for(Z[1]=0,D=1;D<15;D++)Z[D+1]=Z[D]+H[D];for(V=0;V<w;V++)S[A+V]!==0&&(T[Z[S[A+V]]++]=V);if(K=b===0?(k=z=T,19):b===1?(k=u,j-=257,z=s,m-=257,256):(k=c,z=v,-1),D=_,$=y,he=V=U=0,F=-1,P=(fe=1<<(X=le))-1,b===1&&852<fe||b===2&&592<fe)return 1;for(;;){for(J=D-he,ie=T[V]<K?(C=0,T[V]):T[V]>K?(C=z[m+T[V]],k[j+T[V]]):(C=96,0),x=1<<D-he,_=R=1<<X;E[$+(U>>he)+(R-=x)]=J<<24|C<<16|ie|0,R!==0;);for(x=1<<D-1;U&x;)x>>=1;if(x!==0?(U&=x-1,U+=x):U=0,V++,--H[D]==0){if(D===q)break;D=S[A+T[V]]}if(le<D&&(U&P)!==F){for(he===0&&(he=le),$+=_,ee=1<<(X=D-he);X+he<q&&!((ee-=H[X+he])<=0);)X++,ee<<=1;if(fe+=1<<X,b===1&&852<fe||b===2&&592<fe)return 1;E[F=U&P]=le<<24|X<<16|$-y|0}}return U!==0&&(E[$+U]=D-he<<24|64<<16|0),p.bits=le,0}},{"../utils/common":41}],51:[function(r,a,l){a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,a,l){var o=r("../utils/common"),u=0,s=1;function c(i){for(var f=i.length;0<=--f;)i[f]=0}var v=0,b=29,S=256,A=S+1+b,w=30,E=19,y=2*A+1,T=15,p=16,x=7,R=256,F=16,P=17,$=18,K=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ue=new Array(2*(A+2));c(ue);var D=new Array(2*w);c(D);var V=new Array(512);c(V);var _=new Array(256);c(_);var q=new Array(b);c(q);var le,X,he,ee=new Array(w);function fe(i,f,O,W,L){this.static_tree=i,this.extra_bits=f,this.extra_base=O,this.elems=W,this.max_length=L,this.has_stree=i&&i.length}function U(i,f){this.dyn_tree=i,this.max_code=0,this.stat_desc=f}function k(i){return i<256?V[i]:V[256+(i>>>7)]}function j(i,f){i.pending_buf[i.pending++]=255&f,i.pending_buf[i.pending++]=f>>>8&255}function H(i,f,O){i.bi_valid>p-O?(i.bi_buf|=f<<i.bi_valid&65535,j(i,i.bi_buf),i.bi_buf=f>>p-i.bi_valid,i.bi_valid+=O-p):(i.bi_buf|=f<<i.bi_valid&65535,i.bi_valid+=O)}function Z(i,f,O){H(i,O[2*f],O[2*f+1])}function z(i,f){for(var O=0;O|=1&i,i>>>=1,O<<=1,0<--f;);return O>>>1}function m(i,f,O){var W,L,te=new Array(T+1),oe=0;for(W=1;W<=T;W++)te[W]=oe=oe+O[W-1]<<1;for(L=0;L<=f;L++){var ne=i[2*L+1];ne!==0&&(i[2*L]=z(te[ne]++,ne))}}function d(i){var f;for(f=0;f<A;f++)i.dyn_ltree[2*f]=0;for(f=0;f<w;f++)i.dyn_dtree[2*f]=0;for(f=0;f<E;f++)i.bl_tree[2*f]=0;i.dyn_ltree[2*R]=1,i.opt_len=i.static_len=0,i.last_lit=i.matches=0}function M(i){8<i.bi_valid?j(i,i.bi_buf):0<i.bi_valid&&(i.pending_buf[i.pending++]=i.bi_buf),i.bi_buf=0,i.bi_valid=0}function B(i,f,O,W){var L=2*f,te=2*O;return i[L]<i[te]||i[L]===i[te]&&W[f]<=W[O]}function I(i,f,O){for(var W=i.heap[O],L=O<<1;L<=i.heap_len&&(L<i.heap_len&&B(f,i.heap[L+1],i.heap[L],i.depth)&&L++,!B(f,W,i.heap[L],i.depth));)i.heap[O]=i.heap[L],O=L,L<<=1;i.heap[O]=W}function N(i,f,O){var W,L,te,oe,ne=0;if(i.last_lit!==0)for(;W=i.pending_buf[i.d_buf+2*ne]<<8|i.pending_buf[i.d_buf+2*ne+1],L=i.pending_buf[i.l_buf+ne],ne++,W===0?Z(i,L,f):(Z(i,(te=_[L])+S+1,f),(oe=K[te])!==0&&H(i,L-=q[te],oe),Z(i,te=k(--W),O),(oe=J[te])!==0&&H(i,W-=ee[te],oe)),ne<i.last_lit;);Z(i,R,f)}function Y(i,f){var O,W,L,te=f.dyn_tree,oe=f.stat_desc.static_tree,ne=f.stat_desc.has_stree,ce=f.stat_desc.elems,de=-1;for(i.heap_len=0,i.heap_max=y,O=0;O<ce;O++)te[2*O]!==0?(i.heap[++i.heap_len]=de=O,i.depth[O]=0):te[2*O+1]=0;for(;i.heap_len<2;)te[2*(L=i.heap[++i.heap_len]=de<2?++de:0)]=1,i.depth[L]=0,i.opt_len--,ne&&(i.static_len-=oe[2*L+1]);for(f.max_code=de,O=i.heap_len>>1;1<=O;O--)I(i,te,O);for(L=ce;O=i.heap[1],i.heap[1]=i.heap[i.heap_len--],I(i,te,1),W=i.heap[1],i.heap[--i.heap_max]=O,i.heap[--i.heap_max]=W,te[2*L]=te[2*O]+te[2*W],i.depth[L]=(i.depth[O]>=i.depth[W]?i.depth[O]:i.depth[W])+1,te[2*O+1]=te[2*W+1]=L,i.heap[1]=L++,I(i,te,1),2<=i.heap_len;);i.heap[--i.heap_max]=i.heap[1],(function(me,Le){var ot,Xe,Lt,Ce,Jt,Ir,rt=Le.dyn_tree,oi=Le.max_code,Wa=Le.stat_desc.static_tree,Ha=Le.stat_desc.has_stree,Ka=Le.stat_desc.extra_bits,ui=Le.stat_desc.extra_base,Ut=Le.stat_desc.max_length,Qt=0;for(Ce=0;Ce<=T;Ce++)me.bl_count[Ce]=0;for(rt[2*me.heap[me.heap_max]+1]=0,ot=me.heap_max+1;ot<y;ot++)Ut<(Ce=rt[2*rt[2*(Xe=me.heap[ot])+1]+1]+1)&&(Ce=Ut,Qt++),rt[2*Xe+1]=Ce,oi<Xe||(me.bl_count[Ce]++,Jt=0,ui<=Xe&&(Jt=Ka[Xe-ui]),Ir=rt[2*Xe],me.opt_len+=Ir*(Ce+Jt),Ha&&(me.static_len+=Ir*(Wa[2*Xe+1]+Jt)));if(Qt!==0){do{for(Ce=Ut-1;me.bl_count[Ce]===0;)Ce--;me.bl_count[Ce]--,me.bl_count[Ce+1]+=2,me.bl_count[Ut]--,Qt-=2}while(0<Qt);for(Ce=Ut;Ce!==0;Ce--)for(Xe=me.bl_count[Ce];Xe!==0;)oi<(Lt=me.heap[--ot])||(rt[2*Lt+1]!==Ce&&(me.opt_len+=(Ce-rt[2*Lt+1])*rt[2*Lt],rt[2*Lt+1]=Ce),Xe--)}})(i,f),m(te,de,i.bl_count)}function h(i,f,O){var W,L,te=-1,oe=f[1],ne=0,ce=7,de=4;for(oe===0&&(ce=138,de=3),f[2*(O+1)+1]=65535,W=0;W<=O;W++)L=oe,oe=f[2*(W+1)+1],++ne<ce&&L===oe||(ne<de?i.bl_tree[2*L]+=ne:L!==0?(L!==te&&i.bl_tree[2*L]++,i.bl_tree[2*F]++):ne<=10?i.bl_tree[2*P]++:i.bl_tree[2*$]++,te=L,de=(ne=0)===oe?(ce=138,3):L===oe?(ce=6,3):(ce=7,4))}function G(i,f,O){var W,L,te=-1,oe=f[1],ne=0,ce=7,de=4;for(oe===0&&(ce=138,de=3),W=0;W<=O;W++)if(L=oe,oe=f[2*(W+1)+1],!(++ne<ce&&L===oe)){if(ne<de)for(;Z(i,L,i.bl_tree),--ne!=0;);else L!==0?(L!==te&&(Z(i,L,i.bl_tree),ne--),Z(i,F,i.bl_tree),H(i,ne-3,2)):ne<=10?(Z(i,P,i.bl_tree),H(i,ne-3,3)):(Z(i,$,i.bl_tree),H(i,ne-11,7));te=L,de=(ne=0)===oe?(ce=138,3):L===oe?(ce=6,3):(ce=7,4)}}c(ee);var g=!1;function n(i,f,O,W){H(i,(v<<1)+(W?1:0),3),(function(L,te,oe,ne){M(L),j(L,oe),j(L,~oe),o.arraySet(L.pending_buf,L.window,te,oe,L.pending),L.pending+=oe})(i,f,O)}l._tr_init=function(i){g||((function(){var f,O,W,L,te,oe=new Array(T+1);for(L=W=0;L<b-1;L++)for(q[L]=W,f=0;f<1<<K[L];f++)_[W++]=L;for(_[W-1]=L,L=te=0;L<16;L++)for(ee[L]=te,f=0;f<1<<J[L];f++)V[te++]=L;for(te>>=7;L<w;L++)for(ee[L]=te<<7,f=0;f<1<<J[L]-7;f++)V[256+te++]=L;for(O=0;O<=T;O++)oe[O]=0;for(f=0;f<=143;)ue[2*f+1]=8,f++,oe[8]++;for(;f<=255;)ue[2*f+1]=9,f++,oe[9]++;for(;f<=279;)ue[2*f+1]=7,f++,oe[7]++;for(;f<=287;)ue[2*f+1]=8,f++,oe[8]++;for(m(ue,A+1,oe),f=0;f<w;f++)D[2*f+1]=5,D[2*f]=z(f,5);le=new fe(ue,K,S+1,A,T),X=new fe(D,J,0,w,T),he=new fe(new Array(0),C,0,E,x)})(),g=!0),i.l_desc=new U(i.dyn_ltree,le),i.d_desc=new U(i.dyn_dtree,X),i.bl_desc=new U(i.bl_tree,he),i.bi_buf=0,i.bi_valid=0,d(i)},l._tr_stored_block=n,l._tr_flush_block=function(i,f,O,W){var L,te,oe=0;0<i.level?(i.strm.data_type===2&&(i.strm.data_type=(function(ne){var ce,de=4093624447;for(ce=0;ce<=31;ce++,de>>>=1)if(1&de&&ne.dyn_ltree[2*ce]!==0)return u;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return s;for(ce=32;ce<S;ce++)if(ne.dyn_ltree[2*ce]!==0)return s;return u})(i)),Y(i,i.l_desc),Y(i,i.d_desc),oe=(function(ne){var ce;for(h(ne,ne.dyn_ltree,ne.l_desc.max_code),h(ne,ne.dyn_dtree,ne.d_desc.max_code),Y(ne,ne.bl_desc),ce=E-1;3<=ce&&ne.bl_tree[2*ie[ce]+1]===0;ce--);return ne.opt_len+=3*(ce+1)+5+5+4,ce})(i),L=i.opt_len+3+7>>>3,(te=i.static_len+3+7>>>3)<=L&&(L=te)):L=te=O+5,O+4<=L&&f!==-1?n(i,f,O,W):i.strategy===4||te===L?(H(i,2+(W?1:0),3),N(i,ue,D)):(H(i,4+(W?1:0),3),(function(ne,ce,de,me){var Le;for(H(ne,ce-257,5),H(ne,de-1,5),H(ne,me-4,4),Le=0;Le<me;Le++)H(ne,ne.bl_tree[2*ie[Le]+1],3);G(ne,ne.dyn_ltree,ce-1),G(ne,ne.dyn_dtree,de-1)})(i,i.l_desc.max_code+1,i.d_desc.max_code+1,oe+1),N(i,i.dyn_ltree,i.dyn_dtree)),d(i),W&&M(i)},l._tr_tally=function(i,f,O){return i.pending_buf[i.d_buf+2*i.last_lit]=f>>>8&255,i.pending_buf[i.d_buf+2*i.last_lit+1]=255&f,i.pending_buf[i.l_buf+i.last_lit]=255&O,i.last_lit++,f===0?i.dyn_ltree[2*O]++:(i.matches++,f--,i.dyn_ltree[2*(_[O]+S+1)]++,i.dyn_dtree[2*k(f)]++),i.last_lit===i.lit_bufsize-1},l._tr_align=function(i){H(i,2,3),Z(i,R,ue),(function(f){f.bi_valid===16?(j(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):8<=f.bi_valid&&(f.pending_buf[f.pending++]=255&f.bi_buf,f.bi_buf>>=8,f.bi_valid-=8)})(i)}},{"../utils/common":41}],53:[function(r,a,l){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,l){(function(o){(function(u,s){if(!u.setImmediate){var c,v,b,S,A=1,w={},E=!1,y=u.document,T=Object.getPrototypeOf&&Object.getPrototypeOf(u);T=T&&T.setTimeout?T:u,c={}.toString.call(u.process)==="[object process]"?function(F){ye.nextTick(function(){x(F)})}:(function(){if(u.postMessage&&!u.importScripts){var F=!0,P=u.onmessage;return u.onmessage=function(){F=!1},u.postMessage("","*"),u.onmessage=P,F}})()?(S="setImmediate$"+Math.random()+"$",u.addEventListener?u.addEventListener("message",R,!1):u.attachEvent("onmessage",R),function(F){u.postMessage(S+F,"*")}):u.MessageChannel?((b=new MessageChannel).port1.onmessage=function(F){x(F.data)},function(F){b.port2.postMessage(F)}):y&&"onreadystatechange"in y.createElement("script")?(v=y.documentElement,function(F){var P=y.createElement("script");P.onreadystatechange=function(){x(F),P.onreadystatechange=null,v.removeChild(P),P=null},v.appendChild(P)}):function(F){setTimeout(x,0,F)},T.setImmediate=function(F){typeof F!="function"&&(F=new Function(""+F));for(var P=new Array(arguments.length-1),$=0;$<P.length;$++)P[$]=arguments[$+1];var K={callback:F,args:P};return w[A]=K,c(A),A++},T.clearImmediate=p}
27function p(F){delete w[F]}function x(F){if(E)setTimeout(x,0,F);else{var P=w[F];if(P){E=!0;try{(function($){var K=$.callback,J=$.args;switch(J.length){case 0:K();break;case 1:K(J[0]);break;case 2:K(J[0],J[1]);break;case 3:K(J[0],J[1],J[2]);break;default:K.apply(s,J)}})(P)}finally{p(F),E=!1}}}}function R(F){F.source===u&&typeof F.data=="string"&&F.data.indexOf(S)===0&&x(+F.data.slice(S.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof tt<"u"?tt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(_a);var Lf=_a.exports;const Uf=Es(Lf);var vr={exports:{}},Mf={"&":"&",'"':""","'":"'","<":"<",">":">"};function jf(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return Mf[r]}):t}var zf=jf,Dn=zf,ms=Gn.Stream,Wf=" ";function Hf(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new ms:null,a="",l=!1,o=e.indent?e.indent===!0?Wf:e.indent:"",u=!0;function s(A){u?ye.nextTick(A):A()}function c(A,w){if(w!==void 0&&(a+=w),A&&!l&&(r=r||new ms,l=!0),A&&l){var E=a;s(function(){r.emit("data",E)}),a=""}}function v(A,w){ni(c,br(A,o,o?1:0),w)}function b(){if(r){var A=a;s(function(){r.emit("data",A),r.emit("end"),r.readable=!1,r.emit("close")})}}function S(A){var w=A.encoding||"UTF-8",E={version:"1.0",encoding:w};A.standalone&&(E.standalone=A.standalone),v({"?xml":{_attr:E}}),a=a.replace("/>","?>")}return s(function(){u=!1}),e.declaration&&S(e.declaration),t&&t.forEach?t.forEach(function(A,w){var E;w+1===t.length&&(E=b),v(A,E)}):v(t,b),r?(r.readable=!0,r):a}function Kf(){var t=Array.prototype.slice.call(arguments),e={_elem:br(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var a=this,l=this._elem.indent;ni(this.append,br(r,l,this._elem.icount+(l?1:0)),function(){a.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Vf(t,e){return new Array(e||0).join(t||"")}function br(t,e,r){r=r||0;var a=Vf(e,r),l,o=t,u=!1;if(typeof t=="object"){var s=Object.keys(t);if(l=s[0],o=t[l],o&&o._elem)return o._elem.name=l,o._elem.icount=r,o._elem.indent=e,o._elem.indents=a,o._elem.interrupt=o,o._elem}var c=[],v=[],b;function S(A){var w=Object.keys(A);w.forEach(function(E){c.push(Gf(E,A[E]))})}switch(typeof o){case"object":if(o===null)break;o._attr&&S(o._attr),o._cdata&&v.push(("<![CDATA["+o._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),o.forEach&&(b=!1,v.push(""),o.forEach(function(A){if(typeof A=="object"){var w=Object.keys(A)[0];w=="_attr"?S(A._attr):v.push(br(A,e,r+1))}else v.pop(),b=!0,v.push(Dn(A))}),b||v.push(""));break;default:v.push(Dn(o))}return{name:l,interrupt:u,attributes:c,content:v,icount:r,indents:a,indent:e}}function ni(t,e,r){if(typeof e!="object")return t(!1,e);var a=e.interrupt?1:e.content.length;function l(){for(;e.content.length;){var u=e.content.shift();if(u!==void 0){if(o(u))return;ni(t,u)}}t(!1,(a>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!r?` 28`:"")),r&&r()}function o(u){return u.interrupt?(u.interrupt.append=t,u.interrupt.end=l,u.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(a?e.name?">":"":e.name?"/>":"")+(e.indent&&a>1?` 29`:"")),!a)return t(!1,e.indent?` 30`:"");o(e)||l()}function Gf(t,e){return t+'="'+Dn(e)+'"'}vr.exports=Hf;vr.exports.element=vr.exports.Element=Kf;var qf=vr.exports;const Ie=Es(qf),ws=0,gs=32,$f=32,Xf=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==$f)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const l=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));l.reverse();const u=t.slice(ws,gs).map((c,v)=>c^l[v%l.length]);return Buffer.concat([t.slice(0,ws),u,t.slice(gs)])};class Zf{format(e,r={stack:[]}){const a=e.prepForXml(r);if(a)return a;throw Error("XMLComponent did not format correctly")}}class Yf{replace(e,r,a){let l=e;return r.forEach((o,u)=>{l=l.replace(new RegExp(`{${o.fileName}}`,"g"),(a+u).toString())}),l}getMediaData(e,r){return r.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}}class Jf{replace(e,r){let a=e;for(const l of r)a=a.replace(new RegExp(`{${l.reference}-${l.instance}}`,"g"),l.numId.toString());return a}}class Qf{constructor(){re(this,"formatter"),re(this,"imageReplacer"),re(this,"numberingReplacer"),this.formatter=new Zf,this.imageReplacer=new Yf,this.numberingReplacer=new Jf}compile(e,r){const a=new Uf,l=this.xmlifyFile(e,r),o=new Map(Object.entries(l));for(const[,u]of o)if(Array.isArray(u))for(const s of u)a.file(s.path,s.data);else a.file(u.path,u.data);for(const{stream:u,fileName:s}of e.Media.Array)a.file(`word/media/${s}`,u);for(const{data:u,name:s,fontKey:c}of e.FontTable.fontOptionsWithKey){const[v]=s.split(".");a.file(`word/fonts/${v}.odttf`,Xf(u,c))}return a}xmlifyFile(e,r){const a=e.Document.Relationships.RelationshipCount+1,l=Ie(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(l,e.Media);
30return{Relationships:{data:(o.forEach((u,s)=>{e.Document.Relationships.createRelationship(a+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${u.fileName}`)}),Ie(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const u=this.imageReplacer.replace(l,o,a);return this.numberingReplacer.replace(u,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const u=Ie(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(u,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ie(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ie(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ie(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((u,s)=>{const c=Ie(this.formatter.format(u.View,{viewWrapper:u,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((b,S)=>{u.Relationships.createRelationship(S,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${b.fileName}`)}),{data:Ie(this.formatter.format(u.Relationships,{viewWrapper:u,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:e.Footers.map((u,s)=>{const c=Ie(this.formatter.format(u.View,{viewWrapper:u,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((b,S)=>{u.Relationships.createRelationship(S,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${b.fileName}`)}),{data:Ie(this.formatter.format(u.Relationships,{viewWrapper:u,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:e.Headers.map((u,s)=>{const c=Ie(this.formatter.format(u.View,{viewWrapper:u,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),v=this.imageReplacer.getMediaData(c,e.Media),b=this.imageReplacer.replace(c,v,0);return{data:this.numberingReplacer.replace(b,e.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:e.Footers.map((u,s)=>{const c=Ie(this.formatter.format(u.View,{viewWrapper:u,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),v=this.imageReplacer.getMediaData(c,e.Media),b=this.imageReplacer.replace(c,v,0);return{data:this.numberingReplacer.replace(b,e.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:Ie(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ie(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ie(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ie(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ie(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ie(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Ie(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Ie(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Ie(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const eh={WITH_2_BLANKS:" "},Kt=t=>t===!0?eh.WITH_2_BLANKS:t===!1?void 0:t;class ii{static toString(e,r){return ir(this,null,function*(){return yield this.compiler.compile(e,Kt(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return ir(this,null,function*(){return yield this.compiler.compile(e,Kt(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return ir(this,null,function*(){return yield this.compiler.compile(e,Kt(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return ir(this,null,function*(){return yield this.compiler.compile(e,Kt(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const a=new Gn.Stream;return this.compiler.compile(e,Kt(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>
30{a.emit("data",o),a.emit("end")}),a}}re(ii,"compiler",new Qf);const je=t=>`${t*.75*1.3327}pt`,xa={margin:{top:je(96),right:je(71),bottom:je(96),left:je(71)}},st="Inter",th="#131853",Ea="#1D2AB6",rh="#E5E7EB",si="#6B7280",nh="#9CA3AF",Aa="#374151",Sa=t=>new $e({children:[new qe({text:t,size:je(24),color:Ea,bold:!0,font:st})]}),ke=(t,e=void 0)=>new $e({children:[new qe({text:t,size:je(12),font:st,color:si})],bullet:e}),Ta=t=>new $e({children:[new qe({text:t,size:je(12),font:st,color:Aa})]}),ih=t=>new qe({text:t,size:je(12),font:st,color:si}),Ot=t=>new $e({children:[new qe({text:t,size:je(12),font:st,color:th})]}),sh=(t,e)=>new $e({children:[new qe({text:`${t} ⢠`,size:je(12),font:st,color:si}),new qe({text:e,size:je(12),font:st,color:nh})]}),ah=t=>new $e({children:[new qe({text:t,size:je(12),font:st,color:Aa})]}),ka=()=>new $e({text:"",border:{bottom:{color:rh,space:1,style:"single",size:6}}}),oh=(t,e)=>new ma({children:[new qe({text:t,style:"Hyperlink",size:je(12),font:st,color:Ea})],link:e}),uh=(t,e)=>{if(!t?.length)return[];const r=t.join(", ");return[Ot(e("components.organisms.noteDownloadModel.summaryKeywords")),ke(r),ke("")]},Ra=(t,e)=>{if(!t?.length)return[];const r=t.map(l=>l.speaker),a=[...new Set(r)];return[Ot(e("components.organisms.pdfDownloadContentSummary.speakers")),ke(a.join(", ")),ke("")]},lh=(t,e)=>{if(!t)return[];const r=e("notes.smartInsights");if(typeof t=="string")return[Ot(r),ke(t),ke("")];const a=Mn(t);if(!Array.isArray(a)||!a.length)return[];const l=[];for(const o of a){l.push(ke(""),Ta(o?.heading));for(const u of o?.contents||[]){const s=u.startsWith("- ")?u.slice(2):u;l.push(ke(s,{level:0}))}}return[Ot(r),...l,ke("")]},ch=(t,e)=>{if(!t?.length)return[];const r=[];for(const a of t||[]){r.push(ke(""),Ta(a?.topic));for(const l of a?.highlights||[])r.push(ke(l,{level:0}))}return[Ot(e("components.organisms.pdfDownloadContentSummary.outline")),...r]},fh=t=>{if(!t?.length)return[];const e=[];for(const r of t)e.push(sh(r.speaker,r?.start/1e3&&Bn(Math.floor(r.start/1e3))),ah(r.text),ke(""));return e},Ca=t=>new Pf({children:[new $e({alignment:"right",children:[ih(`${t("components.organisms.noteDownloadModel.transcribedBy")} `),oh("https://smartnoter.ai","https://smartnoter.ai")]})]}),Ia=t=>[ke(`${t?.data?.createdAt&&`${Gt(t.data.createdAt)} ${qt(t.data.createdAt)}`} ⢠${t?.data?.recordingDuration&&$t(t.data.recordingDuration)}`)],Na=async(t,e)=>{const{t:r}=wt().$i18n,a=Ft(t,e),l=new ba({sections:[{properties:{page:xa},footers:{default:Ca(r)},children:[Sa(t.data?.title),...Ia(t),ke(""),ke(""),...uh(a?.keywords,r),...Ra(t?.data?.transcription?.utterances,r),ka(),ke(""),ke(""),...fh(t?.data?.transcription?.utterances)]}]});return{content:await ii.toBlob(l),name:`${t.data?.title}-transcript.docx`}},hh=async(t,e)=>{const{content:r,name:a}=await Na(t,e);_r(a,r)},dh=(t,e)=>{if(!t?.length)return[];const r=t.map(a=>ke(a?.task,{level:0}));return[Ot(e("notes.actionItems")),...r,ke("")]},Oa=async(t,e)=>{const{t:r}=wt().$i18n,a=Ft(t,e),l=Un(a),o=new ba({sections:[{properties:{page:xa},footers:{default:Ca(r)},children:[Sa(t.data?.title),...Ia(t),ke(""),ke(""),...Ra(t?.data?.transcription?.utterances,r),ka(),ke(""),ke(""),ke(a?.summary),ke(""),...dh(l,r),ke(""),...lh(a?.smart_insights,r),...ch(a?.outline,r)]}]});return{content:await ii.toBlob(o),name:`${t.data?.title}-summary.docx`}},ph=async(t,e)=>{const{content:r,name:a}=await Oa(t,e);_r(a,r)},Fa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUZSURBVHgB7ZtdUhtHEMf/I4E/BKnIJ8hyA6UKXKm8WDwEu/IScwLgBJFPgDgBzgmsnMDiJWXIA8pLKgFSbE6AcgLLlVihkLWT7tEqZaTeT83CyuyvSqDar9np6en5T88IKCgoKLjDKGRI/bmuvr/Ec+XBUQpfJLlXa/xF/9xKBZ1OW/WQEZkZ4PGG3vWABhVQxWx06RmtkyO1hwywbgDT6v/iNTTqsIs7qGDdtewNJViGKr+fQeWZ2iIb1jJWDbD2jd6mym8jK8iwpgyLLMAmCt8HnOnROZes3UUEFPyqWqFKfdOh787UBSVs0d8WLGEtBtTqurp4D28nj2ugvVzBTtJIbp53X44lFAse2YoF1rrAwgPUpOP3FrCXZhhzO3SPhxfSucqV4BkpsR4EJ/n1J+UiJYOB3GU8b+ah9X+sGUAN7bXKGOMFAsPhHHlA3kkUBMfStqTxxNPU5ylaQ9tv+UQo001YLfa0h4OlJbSTxJzYBrAobbMmkXSONMBXz7Qz1HiVkbrLErdcwuZvb1Q37KJQA5jKezimrw7mky5phi/
30DNENoEKSW38X8Vp5xouYPgR5gNLci15fplRTaQ+BPmudnNlePA+caSG1yvuGJDgjI1BXWqSt0pHPBc4FgXf/jUgWNLJMUaWDpXF5EsyS8t+/JHek+0QP8vn8xeZx1/dmR2kSOWXuqj6WATV6wIgVEMQYMPFnXL5RkbZ4rAuYPpB7r0nHRAGWIBuhGDSl54PRnM/eY6p4UIxzp+qAYIF3srG3o8zhj623hd12O+lNiLSgpm3QuUGNdQAXVkTP4nXzNUktyX5rJkBFHLI2RA3h+Qp65n1awpZ4N0ojQpIIvvv5WJ7K4TbjV3/dxTl8bSMms02Fn8AHnNPS84v6HG4LL4jJtyHQ7+QDKBLNuyNoQ7O7c9T541OqWss9JDPCLUhFZ3euGqMMS/Cyq+Gty97fc9cKm5OYdlaz6JGKnxUliXvx+qOqrG5pfIDwAsiHoQzGCX6ZdVjgI0uIS3NKXlzTiaHynR0aNl4NQ+KHyEM1+Hy814pF4XYCkcJNapEUZoWMdnQ1yyBgNqkiDjAG/ZVyl8U6XrnvTeAGVM03/9Om738qxMjb8XFKAp0ejBOzjjbjVT7kw4guhlbVnepsqs6vjpsVGGr1uXs+bPGUWRQxx01Ts7rSIsnf6RrWQkpmCIBd8cqhW6Ck7kfHBIqYsKpPLnqXyjJVRYGwIatRNar02soJcnbrOuo2Kj7G6NvjHkeLKt40mJ1cnv96aMZdo1hSpZxwsP0QrixyE3cVRHz9GtPwPVnlIpODG6XRe+MQoODrXbmK31ibT5HKmiSu+/IDWRjJOvGRigEnORkMgf14iZ9z5laHCALjjFAbAHSe2AWgsfoT54fO4FyYxQOyH3ja+1oiFaACalEjiI+/L4qGQTH8nHZcNUBImNre9ESIJejozrORGDfSArnC4msd0+CT+Rsppby1D3KwlGmB4JaeUKDNzo8nPpJh3U3K26uq+XCfRAGZ3lpxXM2sCtrer2uCjhRFn6qRCK2iThAp5oLhCPIZGhR4lJlz/IT2Fm90nQOVX+QNt/jthidKglWEmNPu0+lQ3KHjsY46hCu6dUB4z6HyoDjg7VJxdzeSHCjdBVOX9a6KJlQrPGSSGXnADRl0Xe5+gHxOa9HULeYaCN61D7MRdwk+8XZ4XLf7uo86bKFhylm5ZIrPCo27aZe3yWcY/sCooKCj45PgPp8wF/psytDQAAAAASUVORK5CYII=",Da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAXMSURBVHgB7Vtdbhs3EP64sg3XbVHfINsbyEAc5C32Q1O/OTmB5RPYPYHlEzg+QZQT1H4pkvbBeiraWkB0gyonqAq0bhJHy85QUiBLQy654i4URB8QxCB3l+TH+eHMUMASSyyxxGcMhYqw80Rv3txgJ1NIadB7CbA52Z8BfQ28WVHorq+j275QfVSAUgl4uKd3Bhr79OcTaKQIQ49m164pvPjtpWqjJEQnYLTTR7Sjx2pql+cAk3FBZJwTGT1ERDQCSlr4LBRaRMRpLCKiELD9vT7SGs1SF34XPVKp0+tfVAtzYi4CeNf//Q8/0mR2Al5j48Yi3U/4fxgDmNI3mLwUISRGkIbCBJCBSwcZroBc49anUbpk4S/Jwl/kTXb7O11HDXWVYV+z8cxHr5ZgtygJhQjgSWqFK5fIK4VepvHiqw08K+rSDMkkaErjRLu9SB8r2L3+SXURiGACPBbP/vy887NqIiK293Qjh4hCJAQRwDvyIcNr6+KHfvswtquaHD/LcOZQjT6pw1bI+N4E5Ok8fej0j8i7bsP9x5o9zomlu3e7ga2up9ol8ASd6HjAVOzUOAxdPLtOWshf/O/BY30S8i6rF6nhD5budJU9kye8JID0vkFPPpf6eCKdV+oZAiB+j0gM9etsF8iHivNKaF6/e8wrVwJY9Gmy4g6x2Icu3rynZs8NSYJHCMT1S9Uie3Aq9ZEHOqnTOSXvG7kE2ESfBr6oSuddMN6GjK/Qtbl2g+O8950EmN3XaEy3s49fSaw6WDnY82B4wrwD2qSjPClwEkAu70hq1xGDkRjgufDZQ+jKlQInAUrwt7z7rHtYMLAq8Nym21kKXO9ZCbhPyQxIuq9ko7MI4KO30Lz5cLgWEVYC6Nh5ILXXIBqchcCH92CPNGMLyJBbgyq7CgghLonY5SLp/jS6bWUiz5mOYVpOhEhAfUePY/O736FwFgsODruF5tTmDUQCVtZRl9pXEwSHm1VjxbJJa+/kpI2sAlokoP9rgXi7aoxUdMYOUIIllZ4XCRAfFlzMAqM33ZAhhAAlxvuVFCqiQM3OlRb6jfSodzicoFwJIB/eeLCnDxAB5MLf+D7rTUAV0BlasUjwhTcBWX721xuU17OG0DFIIHd9z/dZkQCaoKTv0YoelPjo0siHtv65SdCzc6UN/Ft6VCYgEfRdx5MAhgmoyiMhnW6w2TCbBEgPb5r8QESUQYIprAjSqpR8iBMJGLyXAx6tvSo1QSiBBPEU+3Y9gAATVMiHCWtQMQ98SHCFtJOgnd4X2nq2NLkrGrwU2uo+icYiyCXBEp5PglVUKppoRwhvJUDXxKDCK9FYFC4SbFZ8EoOBHPDwLRPbO1YCOsNrKWKiESXCRgItIj/9LqTvWfxdV2ycByFbopEqOU2UCCaBanzf0oLOqcDRoolseZTVG7Ck713vOStDnBhZXcOfmHUrwUXIMuGqWzKRrnk6JYC9gU0KKM/2HAsCSt+fAWII38rbpNxYwJZo5JxhaFGzDFBx9cSWvq95ZLBzCTBSYPkQSUez6uhtElxhpsU3pT7f4o33/QAa7Mp2Gcq3EhsTJH0HtAEtsZNE//qVOvT4jH84fPsOT5UlLUbJjLMq1YHF3rZ4X9H/+DwCMLK2r2EJjWnwC5aGMq/IGONrv5YX7J2CMkLmwxq7sOQHOVhidzTyyVHBEsb3k1yL57mFkh98S4xhQk5l/K4rLjC3OWs1tItKRMD1W7N4k2gJRCECGObGlsaV9kiUsGpQRHe5uopuXm3B3EQjSaKJ7dO36zkLNzpPalftRckxRjahSX96u0IyXn1luSpLfakKuyrb/vILPJ3ntwVzETCGxyXG2DBnk04E1xuFAEYRaSgAczSf5/rtNKIRMAYTcTvAMbmj/YgSEX3hY0QnYBJ8y4TqjA0yVI+CyRgeui65JN/5lH4yYwO7tH/eUsJyaNnT6VodZ3xol3uckf56A+2qfjS1xBJLLPFZ43+sZJK91USTFwAAAABJRU5ErkJggg==",mh={class:"heading-5 text-brand-800"},wh={class:"mt-3 flex"},gh=["src"],yh={class:"ml-1 mt-0 h-4 text-xs/3 text-secondary"},vh=["src"],bh={class:"ml-1 mt-0 h-4 text-xs/3 text-secondary"},_h={key:0,class:"paragraph-s mt-3 text-brand-primary"},xh={key:1,class:"paragraph-xs mt-2 text-secondary"},Eh={class:"paragraph-xs mt-5 text-gray-700"},Ah={key:2,class:"paragraph-s mt-3 text-brand-primary"},Sh={class:"paragraph-s mt-3 text-brand-primary"},Th={key:0,class:"paragraph-xs mt-2 text-gray-700"},kh={class:"text-brand-700 label-xs mt-3"},Rh={key:4,class:"paragraph-s mt-3 text-brand-primary"},Ch={class:"text-brand-700 label-xs mt-3"},Ba={__name:"PdfDownloadContentSummary",props:{note:{required:!0,type:Object},resolvedSummaryObject:{type:Object,default:null},t:{type:Function,default:null}},setup(t,{expose:e}){const r=Ve(null),a=t,l=Fe(()=>Ft(a.note,a.resolvedSummaryObject)),o=Fe(()=>{const v=l.value?.smart_insights;return!v||typeof v=="string"?null:Mn(v)}),u=Fe(()=>Un(l.value)),s=a.t||Pn().t,c=Fe(()=>{if(!a.note?.data?.transcription?.utterances?.length)return[];const v=a.note?.data?.transcription?.utterances.map(b=>b.speaker);return[...new Set(v)]});return e({contentRef:r}),(v,b)=>(be(),_e("div",{ref_key:"contentRef",ref:r,class:"w-full",style:{"font-family":"Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif"}},[ge("h5",mh,ve(a.note?.data?.title||Se(s)("components.organisms.pdfDownloadContentSummary.meetingTranscript")),1),ge("div",wh,[ge("img",{src:Se(Fa),alt:"briefcase",class:"mt-1 h-4 w-4",height:"16",width:"16"},null,8,gh),ge("p",yh,ve(a.note?.data?.createdAt&&`${Se(Gt)(a.note.data.createdAt)} ${Se(qt)(a.note.data.createdAt)}`),1),ge("img",{src:Se(Da),alt:"briefcase",class:"ml-9 mt-1 h-4 w-4",height:"16",width:"16"},null,8,vh),ge("p",bh,ve(a.note?.data?.recordingDuration&&Se($t)(a.note.data.recordingDuration,Se(s))),1)]),c.value?.length>
300?(be(),_e("p",_h,ve(Se(s)("components.organisms.pdfDownloadContentSummary.speakers")),1)):De("",!0),c.value?.length>0?(be(),_e("p",xh,ve(c.value.join(", ")),1)):De("",!0),b[0]||(b[0]=ge("hr",{class:"mt-6 w-full border-t border-primary"},null,-1)),ge("div",Eh,ve(l.value?.summary),1),u.value?.length>0?(be(),_e("p",Ah,ve(Se(s)("notes.actionItems")),1)):De("",!0),ge("ul",null,[(be(!0),_e(Me,null,dt(u.value,(S,A)=>(be(),_e("li",{key:A,class:"paragraph-xs ml-2 mt-1.5 text-gray-700"},ve(`⢠${S.task}`),1))),128))]),l.value?.smart_insights?(be(),_e(Me,{key:3},[ge("p",Sh,ve(Se(s)("notes.smartInsights")),1),typeof l.value.smart_insights=="string"?(be(),_e("div",Th,ve(l.value.smart_insights),1)):o.value?(be(!0),_e(Me,{key:1},dt(o.value,(S,A)=>(be(),_e(Me,{key:A},[ge("p",kh,ve(S?.heading),1),ge("ul",null,[(be(!0),_e(Me,null,dt(S?.contents,(w,E)=>(be(),_e("li",{key:E,class:"paragraph-xs ml-2 mt-1.5 text-gray-700"},ve(`⢠${w.startsWith("- ")?w.slice(2):w}`),1))),128))])],64))),128)):De("",!0)],64)):De("",!0),l.value?.outline?.length>0?(be(),_e("p",Rh,ve(Se(s)("components.organisms.pdfDownloadContentSummary.outline")),1)):De("",!0),(be(!0),_e(Me,null,dt(l.value?.outline||[],(S,A)=>(be(),_e(Me,{key:A},[ge("p",Ch,ve(S?.topic),1),ge("ul",null,[(be(!0),_e(Me,null,dt(S?.highlights,(w,E)=>(be(),_e("li",{key:E,class:"paragraph-xs ml-2 mt-1.5 text-gray-700"},ve(`⢠${w}`),1))),128))])],64))),128))],512))}},Ih={class:"heading-5 text-brand-800"},Nh={class:"mt-3 flex"},Oh=["src"],Fh={class:"ml-1 mt-0 h-4 text-xs/3 text-secondary"},Dh=["src"],Bh={class:"ml-1 mt-0 h-4 text-xs/3 text-secondary"},Ph={key:0,class:"paragraph-s mt-9 text-brand-primary"},Lh={key:1,class:"paragraph-xs mt-2 text-secondary"},Uh={key:2,class:"paragraph-s mt-9 text-brand-primary"},Mh={key:3,class:"paragraph-xs mt-2 text-secondary"},jh={class:"mt-6 flex"},zh={class:"paragraph-xs text-secondary"},Wh={class:"paragraph-xs ml-3 text-secondary"},Hh={class:"paragraph-xs mt-2 text-primary"},Pa={__name:"PdfDownloadContentTranscript",props:{note:{required:!0,type:Object},resolvedSummaryObject:{type:Object,default:null},t:{type:Function,default:null}},setup(t,{expose:e}){const r=Ve(null),a=t,l=a.t||Pn().t,o=Fe(()=>Ft(a.note,a.resolvedSummaryObject)),u=Fe(()=>o.value?.keywords?.join(", ")||""),s=Fe(()=>{if(!a.note?.data?.transcription?.utterances.length)return[];const c=a.note?.data?.transcription?.utterances.map(v=>v.speaker);return[...new Set(c)]});return e({contentRef:r}),(c,v)=>(be(),_e("div",{ref_key:"contentRef",ref:r,class:"w-full"},[ge("h5",Ih,ve(a.note?.data?.title||Se(l)("components.organisms.pdfDownloadContentTranscript.meetingTranscript")),1),ge("div",Nh,[ge("img",{src:Se(Fa),alt:"briefcase",class:"mt-1 h-4 w-4",height:"16",width:"16"},null,8,Oh),ge("p",Fh,ve(a.note?.data?.createdAt&&`${Se(Gt)(a.note.data.createdAt)} ${Se(qt)(a.note.data.createdAt)}`),1),ge("img",{src:Se(Da),alt:"briefcase",class:"ml-9 mt-1 h-4 w-4",height:"16",width:"16"},null,8,Dh),ge("p",Bh,ve(a.note?.data?.recordingDuration&&Se($t)(a.note.data.recordingDuration,Se(l))),1)]),u.value?(be(),_e("p",Ph,ve(Se(l)("components.organisms.pdfDownloadContentTranscript.keyword")),1)):De("",!0),u.value?(be(),_e("p",Lh,ve(u.value),1)):De("",!0),s.value.length>0?(be(),_e("p",Uh,ve(Se(l)("components.organisms.pdfDownloadContentTranscript.speakers")),1)):De("",!0),s.value.length>0?(be(),_e("p",Mh,ve(s.value.join(", ")),1)):De("",!0),v[0]||(v[0]=ge("hr",{class:"mt-9 w-full border-t border-primary"},null,-1)),(be(!0),_e(Me,null,dt(a?.note?.data?.transcription?.utterances||[],(b,S)=>(be(),_e(Me,{key:S},[ge("div",jh,[ge("p",zh,ve(b?.speaker),1),ge("p",Wh,ve(b?.start/1e3&&Se(Bn)(Math.floor(b.start/1e3))),1)]),ge("p",Hh,ve(b?.text),1)],64))),128))],512))}},pr=new Map;function Kh(){const t=Ve(!1),e=Ve(null);return{loading:t,error:e,loadJsPDF:async()=>{if(pr.has("jspdf"))return pr.get("jspdf");t.value=!0,e.value=null;try{const{jsPDF:l}=await xs(async()=>{const{jsPDF:o}=await import("./x7jrRvoU.js").then(u=>u.j);return{jsPDF:o}},__vite__mapDeps([0,1,2]),import.meta.url);return pr.set("jspdf",l),l}catch(l){throw e.value=l,l}finally{t.value=!1}},clearCache:()=>{pr.clear()}}}let ys=!1;const Vh=async(t,e)=>{const{$i18n:r}=wt(),l=Ln(Pa,{note:t,resolvedSummaryObject:e,t:r.t}
30).mount(document.createElement("div"));await La(l.contentRef.innerHTML,`${t?.data?.title}-transcript.pdf`)},Gh=async(t,e)=>{const{$i18n:r}=wt(),a=Ln(Ba,{note:t,resolvedSummaryObject:e,t:r.t}),l=document.createElement("div"),o=a.mount(l);await La(o.contentRef.innerHTML,`${t?.data?.title}-summary.pdf`)},ai=async t=>{const{loadJsPDF:e}=Kh(),r=await e();ys||(await xs(()=>import("./DZw1i4Sq.js"),__vite__mapDeps([3,0,1,2]),import.meta.url),ys=!0);const a=new r("p","pt","a4");return new Promise(l=>{a.html(t,{callback:function(o){return l(o),o},x:0,y:0,margin:[60,50,60,50],windowWidth:500,width:500,autoPaging:"text",html2canvas:{letterRendering:!0,removeContainer:!0}})})},La=async(t,e)=>{(await ai(t)).save(e)},Ua=(t,e,r)=>{const{$i18n:a}=wt();return Ln(t,{note:e,resolvedSummaryObject:r||e?.data?.transcription?.notes,t:a.t}).mount(document.createElement("div"))},qh=async(t,e)=>{const r=Ua(Pa,t,e);return{content:(await ai(r.contentRef.innerHTML)).output("blob"),name:`${t?.data?.title}-transcript.pdf`}},$h=async(t,e)=>{const r=Ua(Ba,t,e);return{content:(await ai(r.contentRef.innerHTML)).output("blob"),name:`${t?.data?.title}-summary.pdf`}},Ma=(t,e)=>{const r=new Blob([e],{type:"text/plain"});_r(t,r)},ja=(t,e)=>{const{t:r}=wt().$i18n,a=Ft(t,e),l=`${t.data?.title}-transcript.txt`;let o=t.data?.title+` 31`;if(o+=`${t?.data?.createdAt&&`${Gt(t.data.createdAt)}, ${qt(t.data.createdAt)}`} ⢠${t?.data?.recordingDuration&&$t(t.data.recordingDuration)} 32 33`,a?.keywords?.length&&(o+=r("components.organisms.noteDownloadModel.summaryKeywords")+` 34`,o+=a.keywords.join(", ")+` 35 36`),t?.data?.transcription?.utterances?.length){const u=t?.data?.transcription?.utterances.map(c=>c.speaker),s=[...new Set(u)];o+=r("components.organisms.pdfDownloadContentSummary.speakers")+` 37`,o+=s.join(", ")+` 38 39`}o+=`------------------------------------------------------------------------------------ 40 41`;for(const u of t?.data?.transcription?.utterances||[])o+=`${u.speaker} ⢠${u?.start/1e3&&Bn(Math.floor(u.start/1e3))} 42`,o+=`${u.text} 43 44`;return{content:o,name:l}},Xh=async(t,e)=>{const{content:r,name:a}=ja(t,e);Ma(a,r)},za=(t,e)=>{const{t:r}=wt().$i18n,a=Ft(t,e),l=`${t.data?.title}-summary.txt`;let o=t.data?.title+` 45`;if(o+=`${t?.data?.createdAt&&`${Gt(t.data.createdAt)}, ${qt(t.data.createdAt)}`} ⢠${t?.data?.recordingDuration&&$t(t.data.recordingDuration)} 46 47`,t?.data?.transcription?.utterances?.length){const c=t?.data?.transcription?.utterances.map(b=>b.speaker),v=[...new Set(c)];o+=r("components.organisms.pdfDownloadContentSummary.speakers")+` 48`,o+=v.join(", ")+` 49 50`}o+=`------------------------------------------------------------------------------------ 51 52`,o+=(a?.summary||"")+` 53 54`;const u=Un(a);if(u.length){o+=r("notes.actionItems")+` 55`;for(const c of u)o+=`- ${c?.task} 56`;o+=` 57`}const s=a?.smart_insights;if(s)if(o+=` 58`+r("notes.smartInsights")+` 59 60`,typeof s=="string")o+=s+` 61 62`;else{const c=Mn(s);for(const v of c){o+=`${v?.heading} 63`;for(const b of v?.contents||[]){const S=b.startsWith("- ")?b.slice(2):b;o+=`- ${S} 64`}o+=` 65`}}if(a?.outline?.length){o+=` 66`+r("components.organisms.pdfDownloadContentSummary.outline")+` 67 68`;for(const c of a.outline){o+=`${c?.topic} 69`;for(const v of c?.highlights||[])o+=`- ${v} 70`;o+=` 71`}}return{content:o,name:l}},Zh=async(t,e)=>{const{content:r,name:a}=za(t,e);Ma(a,r)};var Yh=yo();const Jh=Xa(Yh),vs=(t,e)=>{if(!e)return;if(Za){window.open(e,"_blank");return}const r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)},Qh=async t=>{const e=await fetch(t);if(!e.ok)throw new Error(`Failed to fetch asset: ${e.status}`);return e.blob()},ed=async(t,e)=>{const r=new Jh;e.filter(Boolean).forEach(({content:l,name:o})=>r.file(o,l));const a=await r.generateAsync({type:"blob"});_r(t,a)},td={class:"flex w-full flex-col content-start"},rd={class:"flex w-full justify-between"},nd={class:"label-l text-primary-2nd"},id={class:"mt-3 flex flex-col px-4 py-3"},sd={key:0,class:"mb-5 flex items-center justify-between"},ad={class:"label-m text-primary-2nd"},od={class:"flex items-center justify-between"},ud={class:"label-m text-primary-2nd"},ld={key:1,class:"mt-5 flex items-center justify-between"},cd={class:"label-m text-primary-2nd"},fd={class:"relative"},hd={class:"label-s ml-2 w-full text-nowrap text-left text-secondary"},dd={class:"mt-5 flex items-center justify-between"},pd={class:"label-m text-primary-2nd"},md={key:0,class:"mt-5 flex items-center justify-between"},wd={class:"label-m text-primary-2nd"},gd={class:"mt-5 flex items-center justify-between"},yd={class:"label-m text-primary-2nd"},vd={key:0,class:"mt-5 flex items-center justify-between"},bd={class:"label-m text-primary-2nd"},_d={class:"mt-3 flex w-full gap-3"},bs="DownloadRestriction",Zd={__name:"NoteDownloadModel",props:Sn({selectedNote:{default:()=>null,type:Object}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=_s(t,"modelValue"),r=t,a=Fe(()=>r.selectedNote),{activeSummaryObject:l,activeTemplateId:o}=go(a),u=ho(),s=()=>{const U=u.getTemplateById(o.value);return U?wo(U):o.value?{summary_template_id:o.value,summary_template_name:""}:{}},c=Ya(),v=Ja(),b=po(),S=Qa(),{t:A}=Pn(),w=mo("downloadOptions",{audioEnabled:!0,selectedTextFormat:"txt",summaryEnabled:!0,transcriptEnabled:!0,videoEnabled:!0}),{send:E}=eo({defaultOnError:()=>{c.pushAlert(A("components.organisms.noteDownloadModel.failedToExport
71Note"),"error",{title:A("components.molecules.thealert.downloadFailed")})},immediateSend:!1,requestFunction:to}),y=Ve(w.item.value?.selectedTextFormat||"txt"),T=Ve(!1),p=Ve(w.item.value?.transcriptEnabled),x=Ve(w.item.value?.summaryEnabled),R=Ve(w.item.value?.audioEnabled),F=Ve(w.item.value?.videoEnabled??!0),P=Fe(()=>{const U=[{disabled:!1,label:"txt",value:"txt"},{disabled:!0,label:"pdf",value:"pdf"},{disabled:!1,label:"docx",value:"docx"}];for(let k=0;k<U.length;k++){const j=b.isExportFormatAvailable(U[k].value);U[k].disabled=!j}return U}),$=Fe(()=>P.value.find(U=>U.value===y.value)),K=()=>{e.value=!1},J=U=>{P.value.find(j=>j.value===U)?.disabled?(S.openPaywall(bs,{previousAction:"download_format_restricted"}),c.pushAlert(A("components.organisms.noteDownloadModel.upgradeToProToExportInThisFormat"),"error",{title:A("components.molecules.thealert.limitReached")}),K()):y.value=U,T.value=!1},C=Ve(0);Nr(e,U=>{if(!(!U||!r.selectedNote?.id||typeof localStorage>"u"))try{const k=JSON.parse(localStorage.getItem("noteExportAttempts")||"{}");k[r.selectedNote.id]=(k[r.selectedNote.id]||0)+1;const j=Object.fromEntries(Object.entries(k).slice(-100));localStorage.setItem("noteExportAttempts",JSON.stringify(j)),C.value=k[r.selectedNote.id]}catch{C.value+=1}});const ie=()=>{const U=r.selectedNote?.data?.type,k=b.isExportFormatAvailable(y.value),j=!!p.value&&!tr(U)&&k,H=(!!x.value||tr(U))&&k&&ee.value,Z=er(U)&&!!R.value,z=Mt(U)&&!!F.value,m=Mt(U)?"video":"audio",d=Z||z,M=[...H?["summary"]:[],...j?["transcript"]:[],...d?[m]:[]],B=M.length===0?"none":M.length===1?`${M[0]}_only`:M.join("+"),I=M.length;return{exportCombination:B,isZipped:I>=2,selectedCount:I,wantsAudio:Z,wantsSummary:H,wantsTranscript:j,wantsVideo:z}},ue=U=>({...s(),audio_format:U.wantsAudio?"mp3":null,export_combination:U.exportCombination,is_zipped:U.isZipped,note_audio:er(r.selectedNote?.data?.type)?Number(U.wantsAudio):void 0,note_export_attempt_count:C.value,note_summary:Number(U.wantsSummary),note_title:r.selectedNote?.data?.title,note_transcript:Number(U.wantsTranscript),note_video:Mt(r.selectedNote?.data?.type)?Number(U.wantsVideo):void 0,selected_count:U.selectedCount,summary_format:U.wantsSummary?y.value:null,transcript_format:U.wantsTranscript?y.value:null,video_format:U.wantsVideo?"mp4":null}),D=async()=>{if(!r.selectedNote?.data)return;const U=so(),k=ao(),j=ie();if(rr({eventName:"note_export",properties:{...ue(j),export_audio:Number(R.value),export_summary:Number(x.value),export_text_format:y.value,export_transcript:Number(p.value),export_video:Number(Mt(r.selectedNote?.data?.type)&&F.value)}},{note:r.selectedNote}),b.isExportCountLimitExceeded.value){await S.openPaywall(bs,{previousAction:"download_export_count"}),c.pushAlert(A("components.organisms.noteDownloadModel.upgradeToProToExportInThisFormat"),"error",{title:A("components.molecules.thealert.limitReached")}),oo({eventName:"limit_reached",properties:{...lo(),...uo(),limit:"ExportCount",source:"export_count"}}),K();return}c.pushAlert(A("components.organisms.noteDownloadModel.seeDownloads"),"info",{title:A("components.molecules.thealert.downloadSuccessfullyCompleted")}),rr({eventName:"export_started",properties:ue(j)},{note:r.selectedNote});try{j.isZipped?await _(j):q(j,{isFirefox:k,isSafari:U}),rr({eventName:"export_succeeded",properties:ue(j)},{note:r.selectedNote})}catch(H){rr({eventName:"export_failed",properties:{...ue(j),error_code:H?.code||null,error_message:H?.message,error_stage:H?.exportStage||"file_generation"}},{note:r.selectedNote}),c.pushAlert(A("components.organisms.noteDownloadModel.failedToExportNote"),"error",{title:A("components.molecules.thealert.downloadFailed")}),e.value=!1;return}E({functionArgs:{noteId:r.selectedNote?.id}}),e.value=!1},V={docx:{summary:Oa,transcript:Na},pdf:{summary:$h,transcript:qh},txt:{summary:za,transcript:ja}},_=async U=>{const k=r.selectedNote,j=k.data?.title||"note",H=V[y.value]||V.txt,Z=[],z=[];U.wantsTranscript&&Z.push(await H.transcript(k,l.value)),U.wantsSummary&&Z.push(await H.summary(k,l.value));const m=k.data?.recordingDownloadUrl,d=U.wantsVideo?{downloader:vs,name:`${j}.mp4`}:U.wantsAudio?{downloader:li,name:`${j}.mp3`}:null;if(d&&m)try{Z.push({content:await Qh(m),name:d.name})}catch{z.push(()=>d.downloader(d.name,m))}try{await ed(`${j}.zip`,Z)}catch(M){const B=new Error(M?.message||"zip packaging failed");throw B.cause=M,B.code=M?.code,B.exportStage="zip_packaging",B}z.forEach(M=>M())},q=(U,{isFirefox:k,isSafari:j})=>{const H=r.selectedNote,Z={docx:{summary:ph,transcript:hh},pdf:{summary:Gh,transcript:Vh},txt:{summary:Zh,transcript:Xh}},z=Z[y.value]||Z.txt;U.wantsTranscript&&setTimeout(()=>{z.transcript(H,l.value)},j?100:0),U.wantsSummary&&setTimeout(()=>{z.summary(H,l.value)},j?200:y.value==="pdf"&&k?1e3:0),U.wantsAudio&&li(`${H.data?.title}.mp3`,H.data?.recordingDownloadUrl),U.wantsVideo&&vs(`${H.data?.title}.mp4`,H.data?.recordingDownloadUrl)},le=Fe(()=>Mt(r.selectedNote?.data?.type)),X=Fe(()=>(p.value||x.value||er(r.selectedNote?.data?.type)&&R.value||le.value&&F.value)&&!$.value?.disabled),he=Fe(()=>r.selectedNote?.data?.restrictedSummary),ee=Fe(()=>ro(r.selectedNote?.data).summaryReady),fe=Fe(()=>he.value||!ee.value);return Nr([p,x,R,F,y],()=>{w.item.value={audioEnabled:R.value,selectedTextFormat:y.value,summaryEnabled:x.value,transcriptEnabled:p.value,videoEnabled:F.value}}),Nr(fe,U=>{console.log("disabled",U),U&&(x.value=!1)},{immediate:!0}),(U,k)=>(be(),mr(io,{modelValue:e.value,"onUpdate:modelValue":k[7]||(k[7]=j=>e.value=j),onClose:K},{default:Ze(()=>[ge("div",td,[ge("div",rd,[ge("p",nd,ve(U.$t("common.download")),1),We(Se(no),{class:"h-5 w-5 cursor-pointer stroke-icon-gray",onClick:K})]),k[11]||(k[11]=ge("hr",{class:"mt-3 w-full border-t border-primary"},null,-1)),ge("div",id,[Se(tr)(r.selectedNote?.data?.type)?De("",!0):(be(),_e("div",sd,[ge("p",ad,ve(U.$t("components.organisms.noteDownloadModel.transcript")),1),We(nr,{modelValue:p.value,"onUpdate:modelValue":k[0]||(k[0]=j=>p.value=j)},null,8,["modelValue"])])),ge("div",od,[ge("p",ud,ve(U.$t("components.organisms.noteDownloadModel.summary")),1),Se(tr)(r.selectedNote?.data?.type)?De("",!0):(be(),mr(nr,{key:0,modelValue:x.value,"onUpdate:modelValue":k[1]||(k[1]=j=>x.value=j),disabled:fe.value},null,8,["modelValue","disabled"]))]),x.value||p.value?(be(),_e("div",ld,[ge("p",cd,ve(U.$t("components.organisms.noteDownloadModel.textFormat")),1),ge("div",fd,[We(bo,{modelValue:T.value,"onUpdate:modelValue":k[2]||(k[2]=j=>T.value=j),type:"secondary"},{default:Ze(()=>[jt(ve($.value?.disabled?U.$t("components.organisms.noteDownloadModel.selectFormat"):$.value.label),1)]),_:1},8,["modelValue"]),We(co,{modelValue:T.value,"onUpdate:modelValue":k[4]||(k[4]=j=>T.value=j),size:"full"},{default:Ze(()=>[We(fo,{modelValue:T.value,"onUpdate:modelValue":k[3]||(k[3]=j=>T.value=j),class:"items-left absolute bottom-[calc(100%+0.375rem)] left-0 z-50 flex h-fit w-fit flex-col gap-3 rounded-lg border border-primary bg-primary p-2.5"},{default:Ze(()=>[(be(!0),_e(Me,null,dt(P.value.filter(j=>Se(v).planData?.id==="free"||!j.disabled),j=>(be(),mr(_t,{key:j.value,type:"neutral-tertiary",size:"custom",class:"w-full px-1.5 py-1",onClick:H=>J(j.value)},{default:Ze(()=>[ge("p",hd,ve(j.label)+" "+ve(j.disabled?" (Pro)":""),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])])):De("",!0),k[10]||(k[10]=ge("hr",{class:"mt-5 w-full border-t border-primary"},null,-1)),Se(er)(r.selectedNote?.data?.type)?(be(),_e(Me,{key:2},[ge("div",dd,[ge("p",pd,ve(U.$t("components.organisms.noteDownloadModel.audio")),1),We(nr,{modelValue:R.value,"onUpdate:modelValue":k[5]||(k[5]=j=>R.value=j)},null,8,["modelValue"])]),R.value?(be(),_e("div",md,[ge("p",wd,ve(U.$t("components.organisms.noteDownloadModel.audioFormat")),1),We(_t,{type:"secondary",disabled:!0},{default:Ze(()=>[...k[8]||(k[8]=[jt(" mp3 ",-1)])]),_:1})])):De("",!0)],64)):De("",!0),le.value?(be(),_e(Me,{key:3},[ge("div",gd,[ge("p",yd,ve(U.$t("components.organisms.noteDownloadModel.video")),1),We(nr,{modelValue:F.value,"onUpdate:modelValue":k[6]||(k[6]=j=>F.value=j)},null,8,["modelValue"])]),F.value?(be(),_e("div",vd,[ge("p",bd,ve(U.$t("components.organisms.noteDownloadModel.videoFormat")),1),We(_t,{type:"secondary",disabled:!0},{default:Ze(()=>[...k[9]||(k[9]=[jt(" mp4 ",-1)])]),_:1})])):De("",!0)],64)):De("",!0)]),ge("div",_d,[We(_t,{type:"secondary",size:"lg",class:"w-full",onClick:K},{default:Ze(()=>[jt(ve(U.$t("common.cancel")),1)]),_:1}),We(_t,{type:"primary",size:"lg",class:"w-full",disabled:!X.value,onClick:D},{default:Ze(()=>[jt(ve(U.$t("common.download")),1)]),_:1},8,["disabled"])])])]),_:1},8,["modelValue"]))}};export{Zd as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.