vue-pure-admin/dist/static/js/word-C2-SWTrJ.js
2024-03-31 20:44:49 +08:00

98 lines
180 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{c as Te,O as it,d as ot,b as lt,u as ut,f as ct}from"./index-BOXClPvw.js";import{r as dt,a as ht}from"./index-BuXKw87t.js";var Le={exports:{}};(function(De,Ee){(function(ge,be){De.exports=be(dt(),ht)})(Te,function(ge,be){var je=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Be=(q,ee,C)=>ee in q?je(q,ee,{enumerable:!0,configurable:!0,writable:!0,value:C}):q[ee]=C,Re=(q,ee)=>{for(var C in ee||(ee={}))Ue.call(ee,C)&&Be(q,C,ee[C]);if(Oe)for(var C of Oe(ee))We.call(ee,C)&&Be(q,C,ee[C]);return q},ce=(q,ee,C)=>new Promise((M,D)=>{var P=u=>{try{e(C.next(u))}catch(r){D(r)}},v=u=>{try{e(C.throw(u))}catch(r){D(r)}},e=u=>u.done?M(u.value):Promise.resolve(u.value).then(P,v);e((C=C.apply(q,ee)).next())});typeof window.setImmediate=="undefined"&&(window.setImmediate=function(q,...ee){setTimeout(()=>q(ee))});var we=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{},ze={exports:{}};function Se(q){throw new Error('Could not dynamically require "'+q+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ne={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Fe;function He(){return Fe||(Fe=1,function(q,ee){(function(C){q.exports=C()})(function(){return function C(M,D,P){function v(r,m){if(!D[r]){if(!M[r]){var f=typeof Se=="function"&&Se;if(!m&&f)return f(r,!0);if(e)return e(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=D[r]={exports:{}};M[r][0].call(i.exports,function(y){var d=M[r][1][y];return v(d||y)},i,i.exports,C,M,D,P)}return D[r].exports}for(var e=typeof Se=="function"&&Se,u=0;u<P.length;u++)v(P[u]);return v}({1:[function(C,M,D){var P=C("./utils"),v=C("./support"),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";D.encode=function(u){for(var r,m,f,n,i,y,d,h=[],p=0,g=u.length,w=g,x=P.getTypeOf(u)!=="string";p<u.length;)w=g-p,f=x?(r=u[p++],m=p<g?u[p++]:0,p<g?u[p++]:0):(r=u.charCodeAt(p++),m=p<g?u.charCodeAt(p++):0,p<g?u.charCodeAt(p++):0),n=r>>2,i=(3&r)<<4|m>>4,y=1<w?(15&m)<<2|f>>6:64,d=2<w?63&f:64,h.push(e.charAt(n)+e.charAt(i)+e.charAt(y)+e.charAt(d));return h.join("")},D.decode=function(u){var r,m,f,n,i,y,d=0,h=0,p="data:";if(u.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var g,w=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===e.charAt(64)&&w--,u.charAt(u.length-2)===e.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=v.uint8array?new Uint8Array(0|w):new Array(0|w);d<u.length;)r=e.indexOf(u.charAt(d++))<<2|(n=e.indexOf(u.charAt(d++)))>>4,m=(15&n)<<4|(i=e.indexOf(u.charAt(d++)))>>2,f=(3&i)<<6|(y=e.indexOf(u.charAt(d++))),g[h++]=r,i!==64&&(g[h++]=m),y!==64&&(g[h++]=f);return g}},{"./support":30,"./utils":32}],2:[function(C,M,D){var P=C("./external"),v=C("./stream/DataWorker"),e=C("./stream/Crc32Probe"),u=C("./stream/DataLengthProbe");function r(m,f,n,i,y){this.compressedSize=m,this.uncompressedSize=f,this.crc32=n,this.compression=i,this.compressedContent=y}r.prototype={getContentWorker:function(){var m=new v(P.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),f=this;return m.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),m},getCompressedWorker:function(){return new v(P.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},r.createWorkerFrom=function(m,f,n){return m.pipe(new e).pipe(new u("uncompressedSize")).pipe(f.compressWorker(n)).pipe(new u("compressedSize")).withStreamInfo("compression",f)},M.exports=r},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(C,M,D){var P=C("./stream/GenericWorker");D.STORE={magic:"\0\0",compressWorker:function(){return new P("STORE compression")},uncompressWorker:function(){return new P("STORE decompression")}},D.DEFLATE=C("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(C,M,D){var P=C("./utils"),v=function(){for(var e,u=[],r=0;r<256;r++){e=r;for(var m=0;m<8;m++)e=1&e?3988292384^e>>>1:e>>>1;u[r]=e}return u}();M.exports=function(e,u){return e!==void 0&&e.length?P.getTypeOf(e)!=="string"?function(r,m,f,n){var i=v,y=n+f;r^=-1;for(var d=n;d<y;d++)r=r>>>8^i[255&(r^m[d])];return-1^r}(0|u,e,e.length,0):function(r,m,f,n){var i=v,y=n+f;r^=-1;for(var d=n;d<y;d++)r=r>>>8^i[255&(r^m.charCodeAt(d))];return-1^r}(0|u,e,e.length,0):0}},{"./utils":32}],5:[function(C,M,D){D.base64=!1,D.binary=!1,D.dir=!1,D.createFolders=!0,D.date=null,D.compression=null,D.compressionOptions=null,D.comment=null,D.unixPermissions=null,D.dosPermissions=null},{}],6:[function(C,M,D){var P=null;P=typeof Promise!="undefined"?Promise:C("lie"),M.exports={Promise:P}},{lie:37}],7:[function(C,M,D){var P=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",v=C("pako"),e=C("./utils"),u=C("./stream/GenericWorker"),r=P?"uint8array":"array";function m(f,n){u.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=n,this.meta={}}D.magic="\b\0",e.inherits(m,u),m.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(e.transformTo(r,f.data),!1)},m.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},m.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},m.prototype._createPako=function(){this._pako=new v[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(n){f.push({data:n,meta:f.meta})}},D.compressWorker=function(f){return new m("Deflate",f)},D.uncompressWorker=function(){return new m("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(C,M,D){function P(i,y){var d,h="";for(d=0;d<y;d++)h+=String.fromCharCode(255&i),i>>>=8;return h}function v(i,y,d,h,p,g){var w,x,a=i.file,s=i.compression,t=g!==r.utf8encode,l=e.transformTo("string",g(a.name)),b=e.transformTo("string",r.utf8encode(a.name)),_=a.comment,E=e.transformTo("string",g(_)),k=e.transformTo("string",r.utf8encode(_)),T=b.length!==a.name.length,o=k.length!==_.length,z="",$="",L="",J=a.dir,W=a.date,Y={crc32:0,compressedSize:0,uncompressedSize:0};y&&!d||(Y.crc32=i.crc32,Y.compressedSize=i.compressedSize,Y.uncompressedSize=i.uncompressedSize);var N=0;y&&(N|=8),t||!T&&!o||(N|=2048);var R=0,Q=0;J&&(R|=16),p==="UNIX"?(Q=798,R|=function(Z,se){var ue=Z;return Z||(ue=se?16893:33204),(65535&ue)<<16}(a.unixPermissions,J)):(Q=20,R|=function(Z){return 63&(Z||0)}(a.dosPermissions)),w=W.getUTCHours(),w<<=6,w|=W.getUTCMinutes(),w<<=5,w|=W.getUTCSeconds()/2,x=W.getUTCFullYear()-1980,x<<=4,x|=W.getUTCMonth()+1,x<<=5,x|=W.getUTCDate(),T&&($=P(1,1)+P(m(l),4)+b,z+="up"+P($.length,2)+$),o&&(L=P(1,1)+P(m(E),4)+k,z+="uc"+P(L.length,2)+L);var X="";return X+=`
\0`,X+=P(N,2),X+=s.magic,X+=P(w,2),X+=P(x,2),X+=P(Y.crc32,4),X+=P(Y.compressedSize,4),X+=P(Y.uncompressedSize,4),X+=P(l.length,2),X+=P(z.length,2),{fileRecord:f.LOCAL_FILE_HEADER+X+l+z,dirRecord:f.CENTRAL_FILE_HEADER+P(Q,2)+X+P(E.length,2)+"\0\0\0\0"+P(R,4)+P(h,4)+l+z+E}}var e=C("../utils"),u=C("../stream/GenericWorker"),r=C("../utf8"),m=C("../crc32"),f=C("../signature");function n(i,y,d,h){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=d,this.encodeFileName=h,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(n,u),n.prototype.push=function(i){var y=i.meta.percent||0,d=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:d?(y+100*(d-h-1))/d:100}}))},n.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var y=this.streamFiles&&!i.file.dir;if(y){var d=v(i,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:d.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(i){this.accumulate=!1;var y=this.streamFiles&&!i.file.dir,d=v(i,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(d.dirRecord),y)this.push({data:function(h){return f.DATA_DESCRIPTOR+P(h.crc32,4)+P(h.compressedSize,4)+P(h.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:d.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var i=this.bytesWritten,y=0;y<this.dirRecords.length;y++)this.push({data:this.dirRecords[y],meta:{percent:100}});var d=this.bytesWritten-i,h=function(p,g,w,x,a){var s=e.transformTo("string",a(x));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+P(p,2)+P(p,2)+P(g,4)+P(w,4)+P(s.length,2)+s}(this.dirRecords.length,d,i,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(i){this._sources.push(i);var y=this;return i.on("data",function(d){y.processChunk(d)}),i.on("end",function(){y.closedSource(y.previous.streamInfo),y._sources.length?y.prepareNextSource():y.end()}),i.on("error",function(d){y.error(d)}),this},n.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(i){var y=this._sources;if(!u.prototype.error.call(this,i))return!1;for(var d=0;d<y.length;d++)try{y[d].error(i)}catch(h){}return!0},n.prototype.lock=function(){u.prototype.lock.call(this);for(var i=this._sources,y=0;y<i.length;y++)i[y].lock()},M.exports=n},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(C,M,D){var P=C("../compressions"),v=C("./ZipFileWorker");D.generateWorker=function(e,u,r){var m=new v(u.streamFiles,r,u.platform,u.encodeFileName),f=0;try{e.forEach(function(n,i){f++;var y=function(g,w){var x=g||w,a=P[x];if(!a)throw new Error(x+" is not a valid compression method !");return a}(i.options.compression,u.compression),d=i.options.compressionOptions||u.compressionOptions||{},h=i.dir,p=i.date;i._compressWorker(y,d).withStreamInfo("file",{name:n,dir:h,date:p,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(m)}),m.entriesCount=f}catch(n){m.error(n)}return m}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(C,M,D){function P(){if(!(this instanceof P))return new P;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 v=new P;for(var e in this)typeof this[e]!="function"&&(v[e]=this[e]);return v}}(P.prototype=C("./object")).loadAsync=C("./load"),P.support=C("./support"),P.defaults=C("./defaults"),P.version="3.10.1",P.loadAsync=function(v,e){return new P().loadAsync(v,e)},P.external=C("./external"),M.exports=P},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(C,M,D){var P=C("./utils"),v=C("./external"),e=C("./utf8"),u=C("./zipEntries"),r=C("./stream/Crc32Probe"),m=C("./nodejsUtils");function f(n){return new v.Promise(function(i,y){var d=n.decompressed.getContentWorker().pipe(new r);d.on("error",function(h){y(h)}).on("end",function(){d.streamInfo.crc32!==n.decompressed.crc32?y(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}M.exports=function(n,i){var y=this;return i=P.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),m.isNode&&m.isStream(n)?v.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):P.prepareContent("the loaded zip file",n,!0,i.optimizedBinaryString,i.base64).then(function(d){var h=new u(i);return h.load(d),h}).then(function(d){var h=[v.Promise.resolve(d)],p=d.files;if(i.checkCRC32)for(var g=0;g<p.length;g++)h.push(f(p[g]));return v.Promise.all(h)}).then(function(d){for(var h=d.shift(),p=h.files,g=0;g<p.length;g++){var w=p[g],x=w.fileNameStr,a=P.resolve(w.fileNameStr);y.file(a,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:i.createFolders}),w.dir||(y.file(a).unsafeOriginalName=x)}return h.zipComment.length&&(y.comment=h.zipComment),y})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(C,M,D){var P=C("../utils"),v=C("../stream/GenericWorker");function e(u,r){v.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(r)}P.inherits(e,v),e.prototype._bindStream=function(u){var r=this;(this._stream=u).pause(),u.on("data",function(m){r.push({data:m,meta:{percent:0}})}).on("error",function(m){r.isPaused?this.generatedError=m:r.error(m)}).on("end",function(){r.isPaused?r._upstreamEnded=!0:r.end()})},e.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},M.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(C,M,D){var P=C("readable-stream").Readable;function v(e,u,r){P.call(this,u),this._helper=e;var m=this;e.on("data",function(f,n){m.push(f)||m._helper.pause(),r&&r(n)}).on("error",function(f){m.emit("error",f)}).on("end",function(){m.push(null)})}C("../utils").inherits(v,P),v.prototype._read=function(){this._helper.resume()},M.exports=v},{"../utils":32,"readable-stream":16}],14:[function(C,M,D){M.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(P,v){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(P,v);if(typeof P=="number")throw new Error('The "data" argument must not be a number');return new Buffer(P,v)},allocBuffer:function(P){if(Buffer.alloc)return Buffer.alloc(P);var v=new Buffer(P);return v.fill(0),v},isBuffer:function(P){return Buffer.isBuffer(P)},isStream:function(P){return P&&typeof P.on=="function"&&typeof P.pause=="function"&&typeof P.resume=="function"}}},{}],15:[function(C,M,D){function P(a,s,t){var l,b=e.getTypeOf(s),_=e.extend(t||{},m);_.date=_.date||new Date,_.compression!==null&&(_.compression=_.compression.toUpperCase()),typeof _.unixPermissions=="string"&&(_.unixPermissions=parseInt(_.unixPermissions,8)),_.unixPermissions&&16384&_.unixPermissions&&(_.dir=!0),_.dosPermissions&&16&_.dosPermissions&&(_.dir=!0),_.dir&&(a=p(a)),_.createFolders&&(l=h(a))&&g.call(this,l,!0);var E=b==="string"&&_.binary===!1&&_.base64===!1;t&&t.binary!==void 0||(_.binary=!E),(s instanceof f&&s.uncompressedSize===0||_.dir||!s||s.length===0)&&(_.base64=!1,_.binary=!0,s="",_.compression="STORE",b="string");var k=null;k=s instanceof f||s instanceof u?s:y.isNode&&y.isStream(s)?new d(a,s):e.prepareContent(a,s,_.binary,_.optimizedBinaryString,_.base64);var T=new n(a,k,_);this.files[a]=T}var v=C("./utf8"),e=C("./utils"),u=C("./stream/GenericWorker"),r=C("./stream/StreamHelper"),m=C("./defaults"),f=C("./compressedObject"),n=C("./zipObject"),i=C("./generate"),y=C("./nodejsUtils"),d=C("./nodejs/NodejsStreamInputAdapter"),h=function(a){a.slice(-1)==="/"&&(a=a.substring(0,a.length-1));var s=a.lastIndexOf("/");return 0<s?a.substring(0,s):""},p=function(a){return a.slice(-1)!=="/"&&(a+="/"),a},g=function(a,s){return s=s!==void 0?s:m.createFolders,a=p(a),this.files[a]||P.call(this,a,null,{dir:!0,createFolders:s}),this.files[a]};function w(a){return Object.prototype.toString.call(a)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var s,t,l;for(s in this.files)l=this.files[s],(t=s.slice(this.root.length,s.length))&&s.slice(0,this.root.length)===this.root&&a(t,l)},filter:function(a){var s=[];return this.forEach(function(t,l){a(t,l)&&s.push(l)}),s},file:function(a,s,t){if(arguments.length!==1)return a=this.root+a,P.call(this,a,s,t),this;if(w(a)){var l=a;return this.filter(function(_,E){return!E.dir&&l.test(_)})}var b=this.files[this.root+a];return b&&!b.dir?b:null},folder:function(a){if(!a)return this;if(w(a))return this.filter(function(b,_){return _.dir&&a.test(b)});var s=this.root+a,t=g.call(this,s),l=this.clone();return l.root=t.name,l},remove:function(a){a=this.root+a;var s=this.files[a];if(s||(a.slice(-1)!=="/"&&(a+="/"),s=this.files[a]),s&&!s.dir)delete this.files[a];else for(var t=this.filter(function(b,_){return _.name.slice(0,a.length)===a}),l=0;l<t.length;l++)delete this.files[t[l].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(a){var s,t={};try{if((t=e.extend(a||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),t.type==="binarystring"&&(t.type="string"),!t.type)throw new Error("No output type specified.");e.checkSupport(t.type),t.platform!=="darwin"&&t.platform!=="freebsd"&&t.platform!=="linux"&&t.platform!=="sunos"||(t.platform="UNIX"),t.platform==="win32"&&(t.platform="DOS");var l=t.comment||this.comment||"";s=i.generateWorker(this,t,l)}catch(b){(s=new u("error")).error(b)}return new r(s,t.type||"string",t.mimeType)},generateAsync:function(a,s){return this.generateInternalStream(a).accumulate(s)},generateNodeStream:function(a,s){return(a=a||{}).type||(a.type="nodebuffer"),this.generateInternalStream(a).toNodejsStream(s)}};M.exports=x},{"./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(C,M,D){M.exports=C("stream")},{stream:void 0}],17:[function(C,M,D){var P=C("./DataReader");function v(e){P.call(this,e);for(var u=0;u<this.data.length;u++)e[u]=255&e[u]}C("../utils").inherits(v,P),v.prototype.byteAt=function(e){return this.data[this.zero+e]},v.prototype.lastIndexOfSignature=function(e){for(var u=e.charCodeAt(0),r=e.charCodeAt(1),m=e.charCodeAt(2),f=e.charCodeAt(3),n=this.length-4;0<=n;--n)if(this.data[n]===u&&this.data[n+1]===r&&this.data[n+2]===m&&this.data[n+3]===f)return n-this.zero;return-1},v.prototype.readAndCheckSignature=function(e){var u=e.charCodeAt(0),r=e.charCodeAt(1),m=e.charCodeAt(2),f=e.charCodeAt(3),n=this.readData(4);return u===n[0]&&r===n[1]&&m===n[2]&&f===n[3]},v.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},M.exports=v},{"../utils":32,"./DataReader":18}],18:[function(C,M,D){var P=C("../utils");function v(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var u,r=0;for(this.checkOffset(e),u=this.index+e-1;u>=this.index;u--)r=(r<<8)+this.byteAt(u);return this.index+=e,r},readString:function(e){return P.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},M.exports=v},{"../utils":32}],19:[function(C,M,D){var P=C("./Uint8ArrayReader");function v(e){P.call(this,e)}C("../utils").inherits(v,P),v.prototype.readData=function(e){this.checkOffset(e);var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},M.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(C,M,D){var P=C("./DataReader");function v(e){P.call(this,e)}C("../utils").inherits(v,P),v.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},v.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},v.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},v.prototype.readData=function(e){this.checkOffset(e);var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},M.exports=v},{"../utils":32,"./DataReader":18}],21:[function(C,M,D){var P=C("./ArrayReader");function v(e){P.call(this,e)}C("../utils").inherits(v,P),v.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},M.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(C,M,D){var P=C("../utils"),v=C("../support"),e=C("./ArrayReader"),u=C("./StringReader"),r=C("./NodeBufferReader"),m=C("./Uint8ArrayReader");M.exports=function(f){var n=P.getTypeOf(f);return P.checkSupport(n),n!=="string"||v.uint8array?n==="nodebuffer"?new r(f):v.uint8array?new m(P.transformTo("uint8array",f)):new e(P.transformTo("array",f)):new u(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(C,M,D){D.LOCAL_FILE_HEADER="PK",D.CENTRAL_FILE_HEADER="PK",D.CENTRAL_DIRECTORY_END="PK",D.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",D.ZIP64_CENTRAL_DIRECTORY_END="PK",D.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(C,M,D){var P=C("./GenericWorker"),v=C("../utils");function e(u){P.call(this,"ConvertWorker to "+u),this.destType=u}v.inherits(e,P),e.prototype.processChunk=function(u){this.push({data:v.transformTo(this.destType,u.data),meta:u.meta})},M.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(C,M,D){var P=C("./GenericWorker"),v=C("../crc32");function e(){P.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}C("../utils").inherits(e,P),e.prototype.processChunk=function(u){this.streamInfo.crc32=v(u.data,this.streamInfo.crc32||0),this.push(u)},M.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(C,M,D){var P=C("../utils"),v=C("./GenericWorker");function e(u){v.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}P.inherits(e,v),e.prototype.processChunk=function(u){if(u){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+u.data.length}v.prototype.processChunk.call(this,u)},M.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(C,M,D){var P=C("../utils"),v=C("./GenericWorker");function e(u){v.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(m){r.dataIsReady=!0,r.data=m,r.max=m&&m.length||0,r.type=P.getTypeOf(m),r.isPaused||r._tickAndRepeat()},function(m){r.error(m)})}P.inherits(e,v),e.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,P.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(P.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,r=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,r);break;case"uint8array":u=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":u=this.data.slice(this.index,r)}return this.index=r,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},M.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(C,M,D){function P(v){this.name=v||"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}P.prototype={push:function(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,e){return this._listeners[v].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,e){if(this._listeners[v])for(var u=0;u<this._listeners[v].length;u++)this._listeners[v][u].call(this,e)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var e=this;return v.on("data",function(u){e.processChunk(u)}),v.on("end",function(){e.end()}),v.on("error",function(u){e.error(u)}),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 v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,e){return this.extraStreamInfo[v]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},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 v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},M.exports=P},{}],29:[function(C,M,D){var P=C("../utils"),v=C("./ConvertWorker"),e=C("./GenericWorker"),u=C("../base64"),r=C("../support"),m=C("../external"),f=null;if(r.nodestream)try{f=C("../nodejs/NodejsStreamOutputAdapter")}catch(y){}function n(y,d){return new m.Promise(function(h,p){var g=[],w=y._internalType,x=y._outputType,a=y._mimeType;y.on("data",function(s,t){g.push(s),d&&d(t)}).on("error",function(s){g=[],p(s)}).on("end",function(){try{var s=function(t,l,b){switch(t){case"blob":return P.newBlob(P.transformTo("arraybuffer",l),b);case"base64":return u.encode(l);default:return P.transformTo(t,l)}}(x,function(t,l){var b,_=0,E=null,k=0;for(b=0;b<l.length;b++)k+=l[b].length;switch(t){case"string":return l.join("");case"array":return Array.prototype.concat.apply([],l);case"uint8array":for(E=new Uint8Array(k),b=0;b<l.length;b++)E.set(l[b],_),_+=l[b].length;return E;case"nodebuffer":return Buffer.concat(l);default:throw new Error("concat : unsupported type '"+t+"'")}}(w,g),a);h(s)}catch(t){p(t)}g=[]}).resume()})}function i(y,d,h){var p=d;switch(d){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=d,this._mimeType=h,P.checkSupport(p),this._worker=y.pipe(new v(p)),y.lock()}catch(g){this._worker=new e("error"),this._worker.error(g)}}i.prototype={accumulate:function(y){return n(this,y)},on:function(y,d){var h=this;return y==="data"?this._worker.on(y,function(p){d.call(h,p.data,p.meta)}):this._worker.on(y,function(){P.delay(d,arguments,h)}),this},resume:function(){return P.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(y){if(P.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},y)}},M.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(C,M,D){if(D.base64=!0,D.array=!0,D.string=!0,D.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",D.nodebuffer=typeof Buffer!="undefined",D.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")D.blob=!1;else{var P=new ArrayBuffer(0);try{D.blob=new Blob([P],{type:"application/zip"}).size===0}catch(e){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(P),D.blob=v.getBlob("application/zip").size===0}catch(u){D.blob=!1}}}try{D.nodestream=!!C("readable-stream").Readable}catch(e){D.nodestream=!1}},{"readable-stream":16}],31:[function(C,M,D){for(var P=C("./utils"),v=C("./support"),e=C("./nodejsUtils"),u=C("./stream/GenericWorker"),r=new Array(256),m=0;m<256;m++)r[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;r[254]=r[254]=1;function f(){u.call(this,"utf-8 decode"),this.leftOver=null}function n(){u.call(this,"utf-8 encode")}D.utf8encode=function(i){return v.nodebuffer?e.newBufferFrom(i,"utf-8"):function(y){var d,h,p,g,w,x=y.length,a=0;for(g=0;g<x;g++)(64512&(h=y.charCodeAt(g)))==55296&&g+1<x&&(64512&(p=y.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),g++),a+=h<128?1:h<2048?2:h<65536?3:4;for(d=v.uint8array?new Uint8Array(a):new Array(a),g=w=0;w<a;g++)(64512&(h=y.charCodeAt(g)))==55296&&g+1<x&&(64512&(p=y.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),g++),h<128?d[w++]=h:(h<2048?d[w++]=192|h>>>6:(h<65536?d[w++]=224|h>>>12:(d[w++]=240|h>>>18,d[w++]=128|h>>>12&63),d[w++]=128|h>>>6&63),d[w++]=128|63&h);return d}(i)},D.utf8decode=function(i){return v.nodebuffer?P.transformTo("nodebuffer",i).toString("utf-8"):function(y){var d,h,p,g,w=y.length,x=new Array(2*w);for(d=h=0;d<w;)if((p=y[d++])<128)x[h++]=p;else if(4<(g=r[p]))x[h++]=65533,d+=g-1;else{for(p&=g===2?31:g===3?15:7;1<g&&d<w;)p=p<<6|63&y[d++],g--;1<g?x[h++]=65533:p<65536?x[h++]=p:(p-=65536,x[h++]=55296|p>>10&1023,x[h++]=56320|1023&p)}return x.length!==h&&(x.subarray?x=x.subarray(0,h):x.length=h),P.applyFromCharCode(x)}(i=P.transformTo(v.uint8array?"uint8array":"array",i))},P.inherits(f,u),f.prototype.processChunk=function(i){var y=P.transformTo(v.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var d=y;(y=new Uint8Array(d.length+this.leftOver.length)).set(this.leftOver,0),y.set(d,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var h=function(g,w){var x;for((w=w||g.length)>g.length&&(w=g.length),x=w-1;0<=x&&(192&g[x])==128;)x--;return x<0||x===0?w:x+r[g[x]]>w?x:w}(y),p=y;h!==y.length&&(v.uint8array?(p=y.subarray(0,h),this.leftOver=y.subarray(h,y.length)):(p=y.slice(0,h),this.leftOver=y.slice(h,y.length))),this.push({data:D.utf8decode(p),meta:i.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:D.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},D.Utf8DecodeWorker=f,P.inherits(n,u),n.prototype.processChunk=function(i){this.push({data:D.utf8encode(i.data),meta:i.meta})},D.Utf8EncodeWorker=n},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(C,M,D){var P=C("./support"),v=C("./base64"),e=C("./nodejsUtils"),u=C("./external");function r(d){return d}function m(d,h){for(var p=0;p<d.length;++p)h[p]=255&d.charCodeAt(p);return h}C("setimmediate"),D.newBlob=function(d,h){D.checkSupport("blob");try{return new Blob([d],{type:h})}catch(g){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(d),p.getBlob(h)}catch(w){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(d,h,p){var g=[],w=0,x=d.length;if(x<=p)return String.fromCharCode.apply(null,d);for(;w<x;)h==="array"||h==="nodebuffer"?g.push(String.fromCharCode.apply(null,d.slice(w,Math.min(w+p,x)))):g.push(String.fromCharCode.apply(null,d.subarray(w,Math.min(w+p,x)))),w+=p;return g.join("")},stringifyByChar:function(d){for(var h="",p=0;p<d.length;p++)h+=String.fromCharCode(d[p]);return h},applyCanBeUsed:{uint8array:function(){try{return P.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(d){return!1}}(),nodebuffer:function(){try{return P.nodebuffer&&String.fromCharCode.apply(null,e.allocBuffer(1)).length===1}catch(d){return!1}}()}};function n(d){var h=65536,p=D.getTypeOf(d),g=!0;if(p==="uint8array"?g=f.applyCanBeUsed.uint8array:p==="nodebuffer"&&(g=f.applyCanBeUsed.nodebuffer),g)for(;1<h;)try{return f.stringifyByChunk(d,p,h)}catch(w){h=Math.floor(h/2)}return f.stringifyByChar(d)}function i(d,h){for(var p=0;p<d.length;p++)h[p]=d[p];return h}D.applyFromCharCode=n;var y={};y.string={string:r,array:function(d){return m(d,new Array(d.length))},arraybuffer:function(d){return y.string.uint8array(d).buffer},uint8array:function(d){return m(d,new Uint8Array(d.length))},nodebuffer:function(d){return m(d,e.allocBuffer(d.length))}},y.array={string:n,array:r,arraybuffer:function(d){return new Uint8Array(d).buffer},uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return e.newBufferFrom(d)}},y.arraybuffer={string:function(d){return n(new Uint8Array(d))},array:function(d){return i(new Uint8Array(d),new Array(d.byteLength))},arraybuffer:r,uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return e.newBufferFrom(new Uint8Array(d))}},y.uint8array={string:n,array:function(d){return i(d,new Array(d.length))},arraybuffer:function(d){return d.buffer},uint8array:r,nodebuffer:function(d){return e.newBufferFrom(d)}},y.nodebuffer={string:n,array:function(d){return i(d,new Array(d.length))},arraybuffer:function(d){return y.nodebuffer.uint8array(d).buffer},uint8array:function(d){return i(d,new Uint8Array(d.length))},nodebuffer:r},D.transformTo=function(d,h){if(h=h||"",!d)return h;D.checkSupport(d);var p=D.getTypeOf(h);return y[p][d](h)},D.resolve=function(d){for(var h=d.split("/"),p=[],g=0;g<h.length;g++){var w=h[g];w==="."||w===""&&g!==0&&g!==h.length-1||(w===".."?p.pop():p.push(w))}return p.join("/")},D.getTypeOf=function(d){return typeof d=="string"?"string":Object.prototype.toString.call(d)==="[object Array]"?"array":P.nodebuffer&&e.isBuffer(d)?"nodebuffer":P.uint8array&&d instanceof Uint8Array?"uint8array":P.arraybuffer&&d instanceof ArrayBuffer?"arraybuffer":void 0},D.checkSupport=function(d){if(!P[d.toLowerCase()])throw new Error(d+" is not supported by this platform")},D.MAX_VALUE_16BITS=65535,D.MAX_VALUE_32BITS=-1,D.pretty=function(d){var h,p,g="";for(p=0;p<(d||"").length;p++)g+="\\x"+((h=d.charCodeAt(p))<16?"0":"")+h.toString(16).toUpperCase();return g},D.delay=function(d,h,p){setImmediate(function(){d.apply(p||null,h||[])})},D.inherits=function(d,h){function p(){}p.prototype=h.prototype,d.prototype=new p},D.extend=function(){var d,h,p={};for(d=0;d<arguments.length;d++)for(h in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],h)&&p[h]===void 0&&(p[h]=arguments[d][h]);return p},D.prepareContent=function(d,h,p,g,w){return u.Promise.resolve(h).then(function(x){return P.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader!="undefined"?new u.Promise(function(a,s){var t=new FileReader;t.onload=function(l){a(l.target.result)},t.onerror=function(l){s(l.target.error)},t.readAsArrayBuffer(x)}):x}).then(function(x){var a=D.getTypeOf(x);return a?(a==="arraybuffer"?x=D.transformTo("uint8array",x):a==="string"&&(w?x=v.decode(x):p&&g!==!0&&(x=function(s){return m(s,P.uint8array?new Uint8Array(s.length):new Array(s.length))}(x))),x):u.Promise.reject(new Error("Can't read the data of '"+d+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(C,M,D){var P=C("./reader/readerFor"),v=C("./utils"),e=C("./signature"),u=C("./zipEntry"),r=C("./support");function m(f){this.files=[],this.loadOptions=f}m.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var n=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+v.pretty(n)+", expected "+v.pretty(f)+")")}},isSignature:function(f,n){var i=this.reader.index;this.reader.setIndex(f);var y=this.reader.readString(4)===n;return this.reader.setIndex(i),y},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 f=this.reader.readData(this.zipCommentLength),n=r.uint8array?"uint8array":"array",i=v.transformTo(n,f);this.zipComment=this.loadOptions.decodeFileName(i)},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 f,n,i,y=this.zip64EndOfCentralSize-44;0<y;)f=this.reader.readInt(2),n=this.reader.readInt(4),i=this.reader.readData(n),this.zip64ExtensibleData[f]={id:f,length:n,value:i}},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 f,n;for(f=0;f<this.files.length;f++)n=this.files[f],this.reader.setIndex(n.localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),n.readLocalPart(this.reader),n.handleUTF8(),n.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(f=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);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 f=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var n=f;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.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(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var y=n-i;if(0<y)this.isSignature(n,e.CENTRAL_FILE_HEADER)||(this.reader.zero=y);else if(y<0)throw new Error("Corrupted zip: missing "+Math.abs(y)+" bytes.")},prepareReader:function(f){this.reader=P(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},M.exports=m},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(C,M,D){var P=C("./reader/readerFor"),v=C("./utils"),e=C("./compressedObject"),u=C("./crc32"),r=C("./utf8"),m=C("./compressions"),f=C("./support");function n(i,y){this.options=i,this.loadOptions=y}n.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var y,d;if(i.skip(22),this.fileNameLength=i.readInt(2),d=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(d),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((y=function(h){for(var p in m)if(Object.prototype.hasOwnProperty.call(m,p)&&m[p].magic===h)return m[p];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,y,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var y=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(y),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=P(this.extraFields[1].value);this.uncompressedSize===v.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var y,d,h,p=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<p;)y=i.readInt(2),d=i.readInt(2),h=i.readData(d),this.extraFields[y]={id:y,length:d,value:h};i.setIndex(p)},handleUTF8:function(){var i=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=r.utf8decode(this.fileName),this.fileCommentStr=r.utf8decode(this.fileComment);else{var y=this.findExtraFieldUnicodePath();if(y!==null)this.fileNameStr=y;else{var d=v.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(d)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var p=v.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var y=P(i.value);return y.readInt(1)!==1||u(this.fileName)!==y.readInt(4)?null:r.utf8decode(y.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var y=P(i.value);return y.readInt(1)!==1||u(this.fileComment)!==y.readInt(4)?null:r.utf8decode(y.readData(i.length-5))}return null}},M.exports=n},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(C,M,D){function P(y,d,h){this.name=y,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=d,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var v=C("./stream/StreamHelper"),e=C("./stream/DataWorker"),u=C("./utf8"),r=C("./compressedObject"),m=C("./stream/GenericWorker");P.prototype={internalStream:function(y){var d=null,h="string";try{if(!y)throw new Error("No output type specified.");var p=(h=y.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),d=this._decompressWorker();var g=!this._dataBinary;g&&!p&&(d=d.pipe(new u.Utf8EncodeWorker)),!g&&p&&(d=d.pipe(new u.Utf8DecodeWorker))}catch(w){(d=new m("error")).error(w)}return new v(d,h,"")},async:function(y,d){return this.internalStream(y).accumulate(d)},nodeStream:function(y,d){return this.internalStream(y||"nodebuffer").toNodejsStream(d)},_compressWorker:function(y,d){if(this._data instanceof r&&this._data.compression.magic===y.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new u.Utf8EncodeWorker)),r.createWorkerFrom(h,y,d)},_decompressWorker:function(){return this._data instanceof r?this._data.getContentWorker():this._data instanceof m?this._data:new e(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],n=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<f.length;i++)P.prototype[f[i]]=n;M.exports=P},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(C,M,D){(function(P){var v,e,u=P.MutationObserver||P.WebKitMutationObserver;if(u){var r=0,m=new u(y),f=P.document.createTextNode("");m.observe(f,{characterData:!0}),v=function(){f.data=r=++r%2}}else if(P.setImmediate||P.MessageChannel===void 0)v="document"in P&&"onreadystatechange"in P.document.createElement("script")?function(){var d=P.document.createElement("script");d.onreadystatechange=function(){y(),d.onreadystatechange=null,d.parentNode.removeChild(d),d=null},P.document.documentElement.appendChild(d)}:function(){setTimeout(y,0)};else{var n=new P.MessageChannel;n.port1.onmessage=y,v=function(){n.port2.postMessage(0)}}var i=[];function y(){var d,h;e=!0;for(var p=i.length;p;){for(h=i,i=[],d=-1;++d<p;)h[d]();p=i.length}e=!1}M.exports=function(d){i.push(d)!==1||e||v()}}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(C,M,D){var P=C("immediate");function v(){}var e={},u=["REJECTED"],r=["FULFILLED"],m=["PENDING"];function f(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,p!==v&&d(this,p)}function n(p,g,w){this.promise=p,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function i(p,g,w){P(function(){var x;try{x=g(w)}catch(a){return e.reject(p,a)}x===p?e.reject(p,new TypeError("Cannot resolve promise with itself")):e.resolve(p,x)})}function y(p){var g=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof g=="function")return function(){g.apply(p,arguments)}}function d(p,g){var w=!1;function x(t){w||(w=!0,e.reject(p,t))}function a(t){w||(w=!0,e.resolve(p,t))}var s=h(function(){g(a,x)});s.status==="error"&&x(s.value)}function h(p,g){var w={};try{w.value=p(g),w.status="success"}catch(x){w.status="error",w.value=x}return w}(M.exports=f).prototype.finally=function(p){if(typeof p!="function")return this;var g=this.constructor;return this.then(function(w){return g.resolve(p()).then(function(){return w})},function(w){return g.resolve(p()).then(function(){throw w})})},f.prototype.catch=function(p){return this.then(null,p)},f.prototype.then=function(p,g){if(typeof p!="function"&&this.state===r||typeof g!="function"&&this.state===u)return this;var w=new this.constructor(v);return this.state!==m?i(w,this.state===r?p:g,this.outcome):this.queue.push(new n(w,p,g)),w},n.prototype.callFulfilled=function(p){e.resolve(this.promise,p)},n.prototype.otherCallFulfilled=function(p){i(this.promise,this.onFulfilled,p)},n.prototype.callRejected=function(p){e.reject(this.promise,p)},n.prototype.otherCallRejected=function(p){i(this.promise,this.onRejected,p)},e.resolve=function(p,g){var w=h(y,g);if(w.status==="error")return e.reject(p,w.value);var x=w.value;if(x)d(p,x);else{p.state=r,p.outcome=g;for(var a=-1,s=p.queue.length;++a<s;)p.queue[a].callFulfilled(g)}return p},e.reject=function(p,g){p.state=u,p.outcome=g;for(var w=-1,x=p.queue.length;++w<x;)p.queue[w].callRejected(g);return p},f.resolve=function(p){return p instanceof this?p:e.resolve(new this(v),p)},f.reject=function(p){var g=new this(v);return e.reject(g,p)},f.all=function(p){var g=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=p.length,x=!1;if(!w)return this.resolve([]);for(var a=new Array(w),s=0,t=-1,l=new this(v);++t<w;)b(p[t],t);return l;function b(_,E){g.resolve(_).then(function(k){a[E]=k,++s!==w||x||(x=!0,e.resolve(l,a))},function(k){x||(x=!0,e.reject(l,k))})}},f.race=function(p){var g=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=p.length,x=!1;if(!w)return this.resolve([]);for(var a=-1,s=new this(v);++a<w;)t=p[a],g.resolve(t).then(function(l){x||(x=!0,e.resolve(s,l))},function(l){x||(x=!0,e.reject(s,l))});var t;return s}},{immediate:36}],38:[function(C,M,D){var P={};(0,C("./lib/utils/common").assign)(P,C("./lib/deflate"),C("./lib/inflate"),C("./lib/zlib/constants")),M.exports=P},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(C,M,D){var P=C("./zlib/deflate"),v=C("./utils/common"),e=C("./utils/strings"),u=C("./zlib/messages"),r=C("./zlib/zstream"),m=Object.prototype.toString,f=0,n=-1,i=0,y=8;function d(p){if(!(this instanceof d))return new d(p);this.options=v.assign({level:n,method:y,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},p||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var w=P.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(w!==f)throw new Error(u[w]);if(g.header&&P.deflateSetHeader(this.strm,g.header),g.dictionary){var x;if(x=typeof g.dictionary=="string"?e.string2buf(g.dictionary):m.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(w=P.deflateSetDictionary(this.strm,x))!==f)throw new Error(u[w]);this._dict_set=!0}}function h(p,g){var w=new d(g);if(w.push(p,!0),w.err)throw w.msg||u[w.err];return w.result}d.prototype.push=function(p,g){var w,x,a=this.strm,s=this.options.chunkSize;if(this.ended)return!1;x=g===~~g?g:g===!0?4:0,typeof p=="string"?a.input=e.string2buf(p):m.call(p)==="[object ArrayBuffer]"?a.input=new Uint8Array(p):a.input=p,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new v.Buf8(s),a.next_out=0,a.avail_out=s),(w=P.deflate(a,x))!==1&&w!==f)return this.onEnd(w),!(this.ended=!0);a.avail_out!==0&&(a.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(e.buf2binstring(v.shrinkBuf(a.output,a.next_out))):this.onData(v.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||a.avail_out===0)&&w!==1);return x===4?(w=P.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===f):x!==2||(this.onEnd(f),!(a.avail_out=0))},d.prototype.onData=function(p){this.chunks.push(p)},d.prototype.onEnd=function(p){p===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},D.Deflate=d,D.deflate=h,D.deflateRaw=function(p,g){return(g=g||{}).raw=!0,h(p,g)},D.gzip=function(p,g){return(g=g||{}).gzip=!0,h(p,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(C,M,D){var P=C("./zlib/inflate"),v=C("./utils/common"),e=C("./utils/strings"),u=C("./zlib/constants"),r=C("./zlib/messages"),m=C("./zlib/zstream"),f=C("./zlib/gzheader"),n=Object.prototype.toString;function i(d){if(!(this instanceof i))return new i(d);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},d||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||d&&d.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&!(15&h.windowBits)&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var p=P.inflateInit2(this.strm,h.windowBits);if(p!==u.Z_OK)throw new Error(r[p]);this.header=new f,P.inflateGetHeader(this.strm,this.header)}function y(d,h){var p=new i(h);if(p.push(d,!0),p.err)throw p.msg||r[p.err];return p.result}i.prototype.push=function(d,h){var p,g,w,x,a,s,t=this.strm,l=this.options.chunkSize,b=this.options.dictionary,_=!1;if(this.ended)return!1;g=h===~~h?h:h===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof d=="string"?t.input=e.binstring2buf(d):n.call(d)==="[object ArrayBuffer]"?t.input=new Uint8Array(d):t.input=d,t.next_in=0,t.avail_in=t.input.length;do{if(t.avail_out===0&&(t.output=new v.Buf8(l),t.next_out=0,t.avail_out=l),(p=P.inflate(t,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&b&&(s=typeof b=="string"?e.string2buf(b):n.call(b)==="[object ArrayBuffer]"?new Uint8Array(b):b,p=P.inflateSetDictionary(this.strm,s)),p===u.Z_BUF_ERROR&&_===!0&&(p=u.Z_OK,_=!1),p!==u.Z_STREAM_END&&p!==u.Z_OK)return this.onEnd(p),!(this.ended=!0);t.next_out&&(t.avail_out!==0&&p!==u.Z_STREAM_END&&(t.avail_in!==0||g!==u.Z_FINISH&&g!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=e.utf8border(t.output,t.next_out),x=t.next_out-w,a=e.buf2string(t.output,w),t.next_out=x,t.avail_out=l-x,x&&v.arraySet(t.output,t.output,w,x,0),this.onData(a)):this.onData(v.shrinkBuf(t.output,t.next_out)))),t.avail_in===0&&t.avail_out===0&&(_=!0)}while((0<t.avail_in||t.avail_out===0)&&p!==u.Z_STREAM_END);return p===u.Z_STREAM_END&&(g=u.Z_FINISH),g===u.Z_FINISH?(p=P.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===u.Z_OK):g!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(t.avail_out=0))},i.prototype.onData=function(d){this.chunks.push(d)},i.prototype.onEnd=function(d){d===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},D.Inflate=i,D.inflate=y,D.inflateRaw=function(d,h){return(h=h||{}).raw=!0,y(d,h)},D.ungzip=y},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(C,M,D){var P=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";D.assign=function(u){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var m=r.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var f in m)m.hasOwnProperty(f)&&(u[f]=m[f])}}return u},D.shrinkBuf=function(u,r){return u.length===r?u:u.subarray?u.subarray(0,r):(u.length=r,u)};var v={arraySet:function(u,r,m,f,n){if(r.subarray&&u.subarray)u.set(r.subarray(m,m+f),n);else for(var i=0;i<f;i++)u[n+i]=r[m+i]},flattenChunks:function(u){var r,m,f,n,i,y;for(r=f=0,m=u.length;r<m;r++)f+=u[r].length;for(y=new Uint8Array(f),r=n=0,m=u.length;r<m;r++)i=u[r],y.set(i,n),n+=i.length;return y}},e={arraySet:function(u,r,m,f,n){for(var i=0;i<f;i++)u[n+i]=r[m+i]},flattenChunks:function(u){return[].concat.apply([],u)}};D.setTyped=function(u){u?(D.Buf8=Uint8Array,D.Buf16=Uint16Array,D.Buf32=Int32Array,D.assign(D,v)):(D.Buf8=Array,D.Buf16=Array,D.Buf32=Array,D.assign(D,e))},D.setTyped(P)},{}],42:[function(C,M,D){var P=C("./common"),v=!0,e=!0;try{String.fromCharCode.apply(null,[0])}catch(f){v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(f){e=!1}for(var u=new P.Buf8(256),r=0;r<256;r++)u[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function m(f,n){if(n<65537&&(f.subarray&&e||!f.subarray&&v))return String.fromCharCode.apply(null,P.shrinkBuf(f,n));for(var i="",y=0;y<n;y++)i+=String.fromCharCode(f[y]);return i}u[254]=u[254]=1,D.string2buf=function(f){var n,i,y,d,h,p=f.length,g=0;for(d=0;d<p;d++)(64512&(i=f.charCodeAt(d)))==55296&&d+1<p&&(64512&(y=f.charCodeAt(d+1)))==56320&&(i=65536+(i-55296<<10)+(y-56320),d++),g+=i<128?1:i<2048?2:i<65536?3:4;for(n=new P.Buf8(g),d=h=0;h<g;d++)(64512&(i=f.charCodeAt(d)))==55296&&d+1<p&&(64512&(y=f.charCodeAt(d+1)))==56320&&(i=65536+(i-55296<<10)+(y-56320),d++),i<128?n[h++]=i:(i<2048?n[h++]=192|i>>>6:(i<65536?n[h++]=224|i>>>12:(n[h++]=240|i>>>18,n[h++]=128|i>>>12&63),n[h++]=128|i>>>6&63),n[h++]=128|63&i);return n},D.buf2binstring=function(f){return m(f,f.length)},D.binstring2buf=function(f){for(var n=new P.Buf8(f.length),i=0,y=n.length;i<y;i++)n[i]=f.charCodeAt(i);return n},D.buf2string=function(f,n){var i,y,d,h,p=n||f.length,g=new Array(2*p);for(i=y=0;i<p;)if((d=f[i++])<128)g[y++]=d;else if(4<(h=u[d]))g[y++]=65533,i+=h-1;else{for(d&=h===2?31:h===3?15:7;1<h&&i<p;)d=d<<6|63&f[i++],h--;1<h?g[y++]=65533:d<65536?g[y++]=d:(d-=65536,g[y++]=55296|d>>10&1023,g[y++]=56320|1023&d)}return m(g,y)},D.utf8border=function(f,n){var i;for((n=n||f.length)>f.length&&(n=f.length),i=n-1;0<=i&&(192&f[i])==128;)i--;return i<0||i===0?n:i+u[f[i]]>n?i:n}},{"./common":41}],43:[function(C,M,D){M.exports=function(P,v,e,u){for(var r=65535&P|0,m=P>>>16&65535|0,f=0;e!==0;){for(e-=f=2e3<e?2e3:e;m=m+(r=r+v[u++]|0)|0,--f;);r%=65521,m%=65521}return r|m<<16|0}},{}],44:[function(C,M,D){M.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(C,M,D){var P=function(){for(var v,e=[],u=0;u<256;u++){v=u;for(var r=0;r<8;r++)v=1&v?3988292384^v>>>1:v>>>1;e[u]=v}return e}();M.exports=function(v,e,u,r){var m=P,f=r+u;v^=-1;for(var n=r;n<f;n++)v=v>>>8^m[255&(v^e[n])];return-1^v}},{}],46:[function(C,M,D){var P,v=C("../utils/common"),e=C("./trees"),u=C("./adler32"),r=C("./crc32"),m=C("./messages"),f=0,n=4,i=0,y=-2,d=-1,h=4,p=2,g=8,w=9,x=286,a=30,s=19,t=2*x+1,l=15,b=3,_=258,E=_+b+1,k=42,T=113,o=1,z=2,$=3,L=4;function J(c,I){return c.msg=m[I],I}function W(c){return(c<<1)-(4<c?9:0)}function Y(c){for(var I=c.length;0<=--I;)c[I]=0}function N(c){var I=c.state,F=I.pending;F>c.avail_out&&(F=c.avail_out),F!==0&&(v.arraySet(c.output,I.pending_buf,I.pending_out,F,c.next_out),c.next_out+=F,I.pending_out+=F,c.total_out+=F,c.avail_out-=F,I.pending-=F,I.pending===0&&(I.pending_out=0))}function R(c,I){e._tr_flush_block(c,0<=c.block_start?c.block_start:-1,c.strstart-c.block_start,I),c.block_start=c.strstart,N(c.strm)}function Q(c,I){c.pending_buf[c.pending++]=I}function X(c,I){c.pending_buf[c.pending++]=I>>>8&255,c.pending_buf[c.pending++]=255&I}function Z(c,I){var F,A,S=c.max_chain_length,O=c.strstart,j=c.prev_length,U=c.nice_match,B=c.strstart>c.w_size-E?c.strstart-(c.w_size-E):0,H=c.window,G=c.w_mask,V=c.prev,K=c.strstart+_,ne=H[O+j-1],re=H[O+j];c.prev_length>=c.good_match&&(S>>=2),U>c.lookahead&&(U=c.lookahead);do if(H[(F=I)+j]===re&&H[F+j-1]===ne&&H[F]===H[O]&&H[++F]===H[O+1]){O+=2,F++;do;while(H[++O]===H[++F]&&H[++O]===H[++F]&&H[++O]===H[++F]&&H[++O]===H[++F]&&H[++O]===H[++F]&&H[++O]===H[++F]&&H[++O]===H[++F]&&H[++O]===H[++F]&&O<K);if(A=_-(K-O),O=K-_,j<A){if(c.match_start=I,U<=(j=A))break;ne=H[O+j-1],re=H[O+j]}}while((I=V[I&G])>B&&--S!=0);return j<=c.lookahead?j:c.lookahead}function se(c){var I,F,A,S,O,j,U,B,H,G,V=c.w_size;do{if(S=c.window_size-c.lookahead-c.strstart,c.strstart>=V+(V-E)){for(v.arraySet(c.window,c.window,V,V,0),c.match_start-=V,c.strstart-=V,c.block_start-=V,I=F=c.hash_size;A=c.head[--I],c.head[I]=V<=A?A-V:0,--F;);for(I=F=V;A=c.prev[--I],c.prev[I]=V<=A?A-V:0,--F;);S+=V}if(c.strm.avail_in===0)break;if(j=c.strm,U=c.window,B=c.strstart+c.lookahead,H=S,G=void 0,G=j.avail_in,H<G&&(G=H),F=G===0?0:(j.avail_in-=G,v.arraySet(U,j.input,j.next_in,G,B),j.state.wrap===1?j.adler=u(j.adler,U,G,B):j.state.wrap===2&&(j.adler=r(j.adler,U,G,B)),j.next_in+=G,j.total_in+=G,G),c.lookahead+=F,c.lookahead+c.insert>=b)for(O=c.strstart-c.insert,c.ins_h=c.window[O],c.ins_h=(c.ins_h<<c.hash_shift^c.window[O+1])&c.hash_mask;c.insert&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[O+b-1])&c.hash_mask,c.prev[O&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=O,O++,c.insert--,!(c.lookahead+c.insert<b)););}while(c.lookahead<E&&c.strm.avail_in!==0)}function ue(c,I){for(var F,A;;){if(c.lookahead<E){if(se(c),c.lookahead<E&&I===f)return o;if(c.lookahead===0)break}if(F=0,c.lookahead>=b&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,F=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),F!==0&&c.strstart-F<=c.w_size-E&&(c.match_length=Z(c,F)),c.match_length>=b)if(A=e._tr_tally(c,c.strstart-c.match_start,c.match_length-b),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=b){for(c.match_length--;c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,F=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart,--c.match_length!=0;);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else A=e._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(A&&(R(c,!1),c.strm.avail_out===0))return o}return c.insert=c.strstart<b-1?c.strstart:b-1,I===n?(R(c,!0),c.strm.avail_out===0?$:L):c.last_lit&&(R(c,!1),c.strm.avail_out===0)?o:z}function te(c,I){for(var F,A,S;;){if(c.lookahead<E){if(se(c),c.lookahead<E&&I===f)return o;if(c.lookahead===0)break}if(F=0,c.lookahead>=b&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,F=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),c.prev_length=c.match_length,c.prev_match=c.match_start,c.match_length=b-1,F!==0&&c.prev_length<c.max_lazy_match&&c.strstart-F<=c.w_size-E&&(c.match_length=Z(c,F),c.match_length<=5&&(c.strategy===1||c.match_length===b&&4096<c.strstart-c.match_start)&&(c.match_length=b-1)),c.prev_length>=b&&c.match_length<=c.prev_length){for(S=c.strstart+c.lookahead-b,A=e._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-b),c.lookahead-=c.prev_length-1,c.prev_length-=2;++c.strstart<=S&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+b-1])&c.hash_mask,F=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart),--c.prev_length!=0;);if(c.match_available=0,c.match_length=b-1,c.strstart++,A&&(R(c,!1),c.strm.avail_out===0))return o}else if(c.match_available){if((A=e._tr_tally(c,0,c.window[c.strstart-1]))&&R(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return o}else c.match_available=1,c.strstart++,c.lookahead--}return c.match_available&&(A=e._tr_tally(c,0,c.window[c.strstart-1]),c.match_available=0),c.insert=c.strstart<b-1?c.strstart:b-1,I===n?(R(c,!0),c.strm.avail_out===0?$:L):c.last_lit&&(R(c,!1),c.strm.avail_out===0)?o:z}function ae(c,I,F,A,S){this.good_length=c,this.max_lazy=I,this.nice_length=F,this.max_chain=A,this.func=S}function le(){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=g,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 v.Buf16(2*t),this.dyn_dtree=new v.Buf16(2*(2*a+1)),this.bl_tree=new v.Buf16(2*(2*s+1)),Y(this.dyn_ltree),Y(this.dyn_dtree),Y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(l+1),this.heap=new v.Buf16(2*x+1),Y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*x+1),Y(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 ie(c){var I;return c&&c.state?(c.total_in=c.total_out=0,c.data_type=p,(I=c.state).pending=0,I.pending_out=0,I.wrap<0&&(I.wrap=-I.wrap),I.status=I.wrap?k:T,c.adler=I.wrap===2?0:1,I.last_flush=f,e._tr_init(I),i):J(c,y)}function pe(c){var I=ie(c);return I===i&&function(F){F.window_size=2*F.w_size,Y(F.head),F.max_lazy_match=P[F.level].max_lazy,F.good_match=P[F.level].good_length,F.nice_match=P[F.level].nice_length,F.max_chain_length=P[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=b-1,F.match_available=0,F.ins_h=0}(c.state),I}function he(c,I,F,A,S,O){if(!c)return y;var j=1;if(I===d&&(I=6),A<0?(j=0,A=-A):15<A&&(j=2,A-=16),S<1||w<S||F!==g||A<8||15<A||I<0||9<I||O<0||h<O)return J(c,y);A===8&&(A=9);var U=new le;return(c.state=U).strm=c,U.wrap=j,U.gzhead=null,U.w_bits=A,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=S+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+b-1)/b),U.window=new v.Buf8(2*U.w_size),U.head=new v.Buf16(U.hash_size),U.prev=new v.Buf16(U.w_size),U.lit_bufsize=1<<S+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new v.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=I,U.strategy=O,U.method=F,pe(c)}P=[new ae(0,0,0,0,function(c,I){var F=65535;for(F>c.pending_buf_size-5&&(F=c.pending_buf_size-5);;){if(c.lookahead<=1){if(se(c),c.lookahead===0&&I===f)return o;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var A=c.block_start+F;if((c.strstart===0||c.strstart>=A)&&(c.lookahead=c.strstart-A,c.strstart=A,R(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-E&&(R(c,!1),c.strm.avail_out===0))return o}return c.insert=0,I===n?(R(c,!0),c.strm.avail_out===0?$:L):(c.strstart>c.block_start&&(R(c,!1),c.strm.avail_out),o)}),new ae(4,4,8,4,ue),new ae(4,5,16,8,ue),new ae(4,6,32,32,ue),new ae(4,4,16,16,te),new ae(8,16,32,32,te),new ae(8,16,128,128,te),new ae(8,32,128,256,te),new ae(32,128,258,1024,te),new ae(32,258,258,4096,te)],D.deflateInit=function(c,I){return he(c,I,g,15,8,0)},D.deflateInit2=he,D.deflateReset=pe,D.deflateResetKeep=ie,D.deflateSetHeader=function(c,I){return c&&c.state?c.state.wrap!==2?y:(c.state.gzhead=I,i):y},D.deflate=function(c,I){var F,A,S,O;if(!c||!c.state||5<I||I<0)return c?J(c,y):y;if(A=c.state,!c.output||!c.input&&c.avail_in!==0||A.status===666&&I!==n)return J(c,c.avail_out===0?-5:y);if(A.strm=c,F=A.last_flush,A.last_flush=I,A.status===k)if(A.wrap===2)c.adler=0,Q(A,31),Q(A,139),Q(A,8),A.gzhead?(Q(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Q(A,255&A.gzhead.time),Q(A,A.gzhead.time>>8&255),Q(A,A.gzhead.time>>16&255),Q(A,A.gzhead.time>>24&255),Q(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),Q(A,255&A.gzhead.os),A.gzhead.extra&&A.gzhead.extra.length&&(Q(A,255&A.gzhead.extra.length),Q(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(c.adler=r(c.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=69):(Q(A,0),Q(A,0),Q(A,0),Q(A,0),Q(A,0),Q(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),Q(A,3),A.status=T);else{var j=g+(A.w_bits-8<<4)<<8;j|=(2<=A.strategy||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6,A.strstart!==0&&(j|=32),j+=31-j%31,A.status=T,X(A,j),A.strstart!==0&&(X(A,c.adler>>>16),X(A,65535&c.adler)),c.adler=1}if(A.status===69)if(A.gzhead.extra){for(S=A.pending;A.gzindex<(65535&A.gzhead.extra.length)&&(A.pending!==A.pending_buf_size||(A.gzhead.hcrc&&A.pending>S&&(c.adler=r(c.adler,A.pending_buf,A.pending-S,S)),N(c),S=A.pending,A.pending!==A.pending_buf_size));)Q(A,255&A.gzhead.extra[A.gzindex]),A.gzindex++;A.gzhead.hcrc&&A.pending>S&&(c.adler=r(c.adler,A.pending_buf,A.pending-S,S)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=73)}else A.status=73;if(A.status===73)if(A.gzhead.name){S=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>S&&(c.adler=r(c.adler,A.pending_buf,A.pending-S,S)),N(c),S=A.pending,A.pending===A.pending_buf_size)){O=1;break}O=A.gzindex<A.gzhead.name.length?255&A.gzhead.name.charCodeAt(A.gzindex++):0,Q(A,O)}while(O!==0);A.gzhead.hcrc&&A.pending>S&&(c.adler=r(c.adler,A.pending_buf,A.pending-S,S)),O===0&&(A.gzindex=0,A.status=91)}else A.status=91;if(A.status===91)if(A.gzhead.comment){S=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>S&&(c.adler=r(c.adler,A.pending_buf,A.pending-S,S)),N(c),S=A.pending,A.pending===A.pending_buf_size)){O=1;break}O=A.gzindex<A.gzhead.comment.length?255&A.gzhead.comment.charCodeAt(A.gzindex++):0,Q(A,O)}while(O!==0);A.gzhead.hcrc&&A.pending>S&&(c.adler=r(c.adler,A.pending_buf,A.pending-S,S)),O===0&&(A.status=103)}else A.status=103;if(A.status===103&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&N(c),A.pending+2<=A.pending_buf_size&&(Q(A,255&c.adler),Q(A,c.adler>>8&255),c.adler=0,A.status=T)):A.status=T),A.pending!==0){if(N(c),c.avail_out===0)return A.last_flush=-1,i}else if(c.avail_in===0&&W(I)<=W(F)&&I!==n)return J(c,-5);if(A.status===666&&c.avail_in!==0)return J(c,-5);if(c.avail_in!==0||A.lookahead!==0||I!==f&&A.status!==666){var U=A.strategy===2?function(B,H){for(var G;;){if(B.lookahead===0&&(se(B),B.lookahead===0)){if(H===f)return o;break}if(B.match_length=0,G=e._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,G&&(R(B,!1),B.strm.avail_out===0))return o}return B.insert=0,H===n?(R(B,!0),B.strm.avail_out===0?$:L):B.last_lit&&(R(B,!1),B.strm.avail_out===0)?o:z}(A,I):A.strategy===3?function(B,H){for(var G,V,K,ne,re=B.window;;){if(B.lookahead<=_){if(se(B),B.lookahead<=_&&H===f)return o;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=b&&0<B.strstart&&(V=re[K=B.strstart-1])===re[++K]&&V===re[++K]&&V===re[++K]){ne=B.strstart+_;do;while(V===re[++K]&&V===re[++K]&&V===re[++K]&&V===re[++K]&&V===re[++K]&&V===re[++K]&&V===re[++K]&&V===re[++K]&&K<ne);B.match_length=_-(ne-K),B.match_length>B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=b?(G=e._tr_tally(B,1,B.match_length-b),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(G=e._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),G&&(R(B,!1),B.strm.avail_out===0))return o}return B.insert=0,H===n?(R(B,!0),B.strm.avail_out===0?$:L):B.last_lit&&(R(B,!1),B.strm.avail_out===0)?o:z}(A,I):P[A.level].func(A,I);if(U!==$&&U!==L||(A.status=666),U===o||U===$)return c.avail_out===0&&(A.last_flush=-1),i;if(U===z&&(I===1?e._tr_align(A):I!==5&&(e._tr_stored_block(A,0,0,!1),I===3&&(Y(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),N(c),c.avail_out===0))return A.last_flush=-1,i}return I!==n?i:A.wrap<=0?1:(A.wrap===2?(Q(A,255&c.adler),Q(A,c.adler>>8&255),Q(A,c.adler>>16&255),Q(A,c.adler>>24&255),Q(A,255&c.total_in),Q(A,c.total_in>>8&255),Q(A,c.total_in>>16&255),Q(A,c.total_in>>24&255)):(X(A,c.adler>>>16),X(A,65535&c.adler)),N(c),0<A.wrap&&(A.wrap=-A.wrap),A.pending!==0?i:1)},D.deflateEnd=function(c){var I;return c&&c.state?(I=c.state.status)!==k&&I!==69&&I!==73&&I!==91&&I!==103&&I!==T&&I!==666?J(c,y):(c.state=null,I===T?J(c,-3):i):y},D.deflateSetDictionary=function(c,I){var F,A,S,O,j,U,B,H,G=I.length;if(!c||!c.state||(O=(F=c.state).wrap)===2||O===1&&F.status!==k||F.lookahead)return y;for(O===1&&(c.adler=u(c.adler,I,G,0)),F.wrap=0,G>=F.w_size&&(O===0&&(Y(F.head),F.strstart=0,F.block_start=0,F.insert=0),H=new v.Buf8(F.w_size),v.arraySet(H,I,G-F.w_size,F.w_size,0),I=H,G=F.w_size),j=c.avail_in,U=c.next_in,B=c.input,c.avail_in=G,c.next_in=0,c.input=I,se(F);F.lookahead>=b;){for(A=F.strstart,S=F.lookahead-(b-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[A+b-1])&F.hash_mask,F.prev[A&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=A,A++,--S;);F.strstart=A,F.lookahead=b-1,se(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=b-1,F.match_available=0,c.next_in=U,c.input=B,c.avail_in=j,F.wrap=O,i},D.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(C,M,D){M.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(C,M,D){M.exports=function(P,v){var e,u,r,m,f,n,i,y,d,h,p,g,w,x,a,s,t,l,b,_,E,k,T,o,z;e=P.state,u=P.next_in,o=P.input,r=u+(P.avail_in-5),m=P.next_out,z=P.output,f=m-(v-P.avail_out),n=m+(P.avail_out-257),i=e.dmax,y=e.wsize,d=e.whave,h=e.wnext,p=e.window,g=e.hold,w=e.bits,x=e.lencode,a=e.distcode,s=(1<<e.lenbits)-1,t=(1<<e.distbits)-1;e:do{w<15&&(g+=o[u++]<<w,w+=8,g+=o[u++]<<w,w+=8),l=x[g&s];t:for(;;){if(g>>>=b=l>>>24,w-=b,(b=l>>>16&255)===0)z[m++]=65535&l;else{if(!(16&b)){if(!(64&b)){l=x[(65535&l)+(g&(1<<b)-1)];continue t}if(32&b){e.mode=12;break e}P.msg="invalid literal/length code",e.mode=30;break e}_=65535&l,(b&=15)&&(w<b&&(g+=o[u++]<<w,w+=8),_+=g&(1<<b)-1,g>>>=b,w-=b),w<15&&(g+=o[u++]<<w,w+=8,g+=o[u++]<<w,w+=8),l=a[g&t];r:for(;;){if(g>>>=b=l>>>24,w-=b,!(16&(b=l>>>16&255))){if(!(64&b)){l=a[(65535&l)+(g&(1<<b)-1)];continue r}P.msg="invalid distance code",e.mode=30;break e}if(E=65535&l,w<(b&=15)&&(g+=o[u++]<<w,(w+=8)<b&&(g+=o[u++]<<w,w+=8)),i<(E+=g&(1<<b)-1)){P.msg="invalid distance too far back",e.mode=30;break e}if(g>>>=b,w-=b,(b=m-f)<E){if(d<(b=E-b)&&e.sane){P.msg="invalid distance too far back",e.mode=30;break e}if(T=p,(k=0)===h){if(k+=y-b,b<_){for(_-=b;z[m++]=p[k++],--b;);k=m-E,T=z}}else if(h<b){if(k+=y+h-b,(b-=h)<_){for(_-=b;z[m++]=p[k++],--b;);if(k=0,h<_){for(_-=b=h;z[m++]=p[k++],--b;);k=m-E,T=z}}}else if(k+=h-b,b<_){for(_-=b;z[m++]=p[k++],--b;);k=m-E,T=z}for(;2<_;)z[m++]=T[k++],z[m++]=T[k++],z[m++]=T[k++],_-=3;_&&(z[m++]=T[k++],1<_&&(z[m++]=T[k++]))}else{for(k=m-E;z[m++]=z[k++],z[m++]=z[k++],z[m++]=z[k++],2<(_-=3););_&&(z[m++]=z[k++],1<_&&(z[m++]=z[k++]))}break}}break}}while(u<r&&m<n);u-=_=w>>3,g&=(1<<(w-=_<<3))-1,P.next_in=u,P.next_out=m,P.avail_in=u<r?r-u+5:5-(u-r),P.avail_out=m<n?n-m+257:257-(m-n),e.hold=g,e.bits=w}},{}],49:[function(C,M,D){var P=C("../utils/common"),v=C("./adler32"),e=C("./crc32"),u=C("./inffast"),r=C("./inftrees"),m=1,f=2,n=0,i=-2,y=1,d=852,h=592;function p(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new P.Buf16(320),this.work=new P.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(k){var T;return k&&k.state?(T=k.state,k.total_in=k.total_out=T.total=0,k.msg="",T.wrap&&(k.adler=1&T.wrap),T.mode=y,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new P.Buf32(d),T.distcode=T.distdyn=new P.Buf32(h),T.sane=1,T.back=-1,n):i}function x(k){var T;return k&&k.state?((T=k.state).wsize=0,T.whave=0,T.wnext=0,w(k)):i}function a(k,T){var o,z;return k&&k.state?(z=k.state,T<0?(o=0,T=-T):(o=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15<T)?i:(z.window!==null&&z.wbits!==T&&(z.window=null),z.wrap=o,z.wbits=T,x(k))):i}function s(k,T){var o,z;return k?(z=new g,(k.state=z).window=null,(o=a(k,T))!==n&&(k.state=null),o):i}var t,l,b=!0;function _(k){if(b){var T;for(t=new P.Buf32(512),l=new P.Buf32(32),T=0;T<144;)k.lens[T++]=8;for(;T<256;)k.lens[T++]=9;for(;T<280;)k.lens[T++]=7;for(;T<288;)k.lens[T++]=8;for(r(m,k.lens,0,288,t,0,k.work,{bits:9}),T=0;T<32;)k.lens[T++]=5;r(f,k.lens,0,32,l,0,k.work,{bits:5}),b=!1}k.lencode=t,k.lenbits=9,k.distcode=l,k.distbits=5}function E(k,T,o,z){var $,L=k.state;return L.window===null&&(L.wsize=1<<L.wbits,L.wnext=0,L.whave=0,L.window=new P.Buf8(L.wsize)),z>=L.wsize?(P.arraySet(L.window,T,o-L.wsize,L.wsize,0),L.wnext=0,L.whave=L.wsize):(z<($=L.wsize-L.wnext)&&($=z),P.arraySet(L.window,T,o-z,$,L.wnext),(z-=$)?(P.arraySet(L.window,T,o-z,z,0),L.wnext=z,L.whave=L.wsize):(L.wnext+=$,L.wnext===L.wsize&&(L.wnext=0),L.whave<L.wsize&&(L.whave+=$))),0}D.inflateReset=x,D.inflateReset2=a,D.inflateResetKeep=w,D.inflateInit=function(k){return s(k,15)},D.inflateInit2=s,D.inflate=function(k,T){var o,z,$,L,J,W,Y,N,R,Q,X,Z,se,ue,te,ae,le,ie,pe,he,c,I,F,A,S=0,O=new P.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return i;(o=k.state).mode===12&&(o.mode=13),J=k.next_out,$=k.output,Y=k.avail_out,L=k.next_in,z=k.input,W=k.avail_in,N=o.hold,R=o.bits,Q=W,X=Y,I=n;e:for(;;)switch(o.mode){case y:if(o.wrap===0){o.mode=13;break}for(;R<16;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(2&o.wrap&&N===35615){O[o.check=0]=255&N,O[1]=N>>>8&255,o.check=e(o.check,O,2,0),R=N=0,o.mode=2;break}if(o.flags=0,o.head&&(o.head.done=!1),!(1&o.wrap)||(((255&N)<<8)+(N>>8))%31){k.msg="incorrect header check",o.mode=30;break}if((15&N)!=8){k.msg="unknown compression method",o.mode=30;break}if(R-=4,c=8+(15&(N>>>=4)),o.wbits===0)o.wbits=c;else if(c>o.wbits){k.msg="invalid window size",o.mode=30;break}o.dmax=1<<c,k.adler=o.check=1,o.mode=512&N?10:12,R=N=0;break;case 2:for(;R<16;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(o.flags=N,(255&o.flags)!=8){k.msg="unknown compression method",o.mode=30;break}if(57344&o.flags){k.msg="unknown header flags set",o.mode=30;break}o.head&&(o.head.text=N>>8&1),512&o.flags&&(O[0]=255&N,O[1]=N>>>8&255,o.check=e(o.check,O,2,0)),R=N=0,o.mode=3;case 3:for(;R<32;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}o.head&&(o.head.time=N),512&o.flags&&(O[0]=255&N,O[1]=N>>>8&255,O[2]=N>>>16&255,O[3]=N>>>24&255,o.check=e(o.check,O,4,0)),R=N=0,o.mode=4;case 4:for(;R<16;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}o.head&&(o.head.xflags=255&N,o.head.os=N>>8),512&o.flags&&(O[0]=255&N,O[1]=N>>>8&255,o.check=e(o.check,O,2,0)),R=N=0,o.mode=5;case 5:if(1024&o.flags){for(;R<16;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}o.length=N,o.head&&(o.head.extra_len=N),512&o.flags&&(O[0]=255&N,O[1]=N>>>8&255,o.check=e(o.check,O,2,0)),R=N=0}else o.head&&(o.head.extra=null);o.mode=6;case 6:if(1024&o.flags&&(W<(Z=o.length)&&(Z=W),Z&&(o.head&&(c=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Array(o.head.extra_len)),P.arraySet(o.head.extra,z,L,Z,c)),512&o.flags&&(o.check=e(o.check,z,Z,L)),W-=Z,L+=Z,o.length-=Z),o.length))break e;o.length=0,o.mode=7;case 7:if(2048&o.flags){if(W===0)break e;for(Z=0;c=z[L+Z++],o.head&&c&&o.length<65536&&(o.head.name+=String.fromCharCode(c)),c&&Z<W;);if(512&o.flags&&(o.check=e(o.check,z,Z,L)),W-=Z,L+=Z,c)break e}else o.head&&(o.head.name=null);o.length=0,o.mode=8;case 8:if(4096&o.flags){if(W===0)break e;for(Z=0;c=z[L+Z++],o.head&&c&&o.length<65536&&(o.head.comment+=String.fromCharCode(c)),c&&Z<W;);if(512&o.flags&&(o.check=e(o.check,z,Z,L)),W-=Z,L+=Z,c)break e}else o.head&&(o.head.comment=null);o.mode=9;case 9:if(512&o.flags){for(;R<16;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(N!==(65535&o.check)){k.msg="header crc mismatch",o.mode=30;break}R=N=0}o.head&&(o.head.hcrc=o.flags>>9&1,o.head.done=!0),k.adler=o.check=0,o.mode=12;break;case 10:for(;R<32;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}k.adler=o.check=p(N),R=N=0,o.mode=11;case 11:if(o.havedict===0)return k.next_out=J,k.avail_out=Y,k.next_in=L,k.avail_in=W,o.hold=N,o.bits=R,2;k.adler=o.check=1,o.mode=12;case 12:if(T===5||T===6)break e;case 13:if(o.last){N>>>=7&R,R-=7&R,o.mode=27;break}for(;R<3;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}switch(o.last=1&N,R-=1,3&(N>>>=1)){case 0:o.mode=14;break;case 1:if(_(o),o.mode=20,T!==6)break;N>>>=2,R-=2;break e;case 2:o.mode=17;break;case 3:k.msg="invalid block type",o.mode=30}N>>>=2,R-=2;break;case 14:for(N>>>=7&R,R-=7&R;R<32;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if((65535&N)!=(N>>>16^65535)){k.msg="invalid stored block lengths",o.mode=30;break}if(o.length=65535&N,R=N=0,o.mode=15,T===6)break e;case 15:o.mode=16;case 16:if(Z=o.length){if(W<Z&&(Z=W),Y<Z&&(Z=Y),Z===0)break e;P.arraySet($,z,L,Z,J),W-=Z,L+=Z,Y-=Z,J+=Z,o.length-=Z;break}o.mode=12;break;case 17:for(;R<14;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(o.nlen=257+(31&N),N>>>=5,R-=5,o.ndist=1+(31&N),N>>>=5,R-=5,o.ncode=4+(15&N),N>>>=4,R-=4,286<o.nlen||30<o.ndist){k.msg="too many length or distance symbols",o.mode=30;break}o.have=0,o.mode=18;case 18:for(;o.have<o.ncode;){for(;R<3;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}o.lens[j[o.have++]]=7&N,N>>>=3,R-=3}for(;o.have<19;)o.lens[j[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,F={bits:o.lenbits},I=r(0,o.lens,0,19,o.lencode,0,o.work,F),o.lenbits=F.bits,I){k.msg="invalid code lengths set",o.mode=30;break}o.have=0,o.mode=19;case 19:for(;o.have<o.nlen+o.ndist;){for(;ae=(S=o.lencode[N&(1<<o.lenbits)-1])>>>16&255,le=65535&S,!((te=S>>>24)<=R);){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(le<16)N>>>=te,R-=te,o.lens[o.have++]=le;else{if(le===16){for(A=te+2;R<A;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(N>>>=te,R-=te,o.have===0){k.msg="invalid bit length repeat",o.mode=30;break}c=o.lens[o.have-1],Z=3+(3&N),N>>>=2,R-=2}else if(le===17){for(A=te+3;R<A;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}R-=te,c=0,Z=3+(7&(N>>>=te)),N>>>=3,R-=3}else{for(A=te+7;R<A;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}R-=te,c=0,Z=11+(127&(N>>>=te)),N>>>=7,R-=7}if(o.have+Z>o.nlen+o.ndist){k.msg="invalid bit length repeat",o.mode=30;break}for(;Z--;)o.lens[o.have++]=c}}if(o.mode===30)break;if(o.lens[256]===0){k.msg="invalid code -- missing end-of-block",o.mode=30;break}if(o.lenbits=9,F={bits:o.lenbits},I=r(m,o.lens,0,o.nlen,o.lencode,0,o.work,F),o.lenbits=F.bits,I){k.msg="invalid literal/lengths set",o.mode=30;break}if(o.distbits=6,o.distcode=o.distdyn,F={bits:o.distbits},I=r(f,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,F),o.distbits=F.bits,I){k.msg="invalid distances set",o.mode=30;break}if(o.mode=20,T===6)break e;case 20:o.mode=21;case 21:if(6<=W&&258<=Y){k.next_out=J,k.avail_out=Y,k.next_in=L,k.avail_in=W,o.hold=N,o.bits=R,u(k,X),J=k.next_out,$=k.output,Y=k.avail_out,L=k.next_in,z=k.input,W=k.avail_in,N=o.hold,R=o.bits,o.mode===12&&(o.back=-1);break}for(o.back=0;ae=(S=o.lencode[N&(1<<o.lenbits)-1])>>>16&255,le=65535&S,!((te=S>>>24)<=R);){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(ae&&!(240&ae)){for(ie=te,pe=ae,he=le;ae=(S=o.lencode[he+((N&(1<<ie+pe)-1)>>ie)])>>>16&255,le=65535&S,!(ie+(te=S>>>24)<=R);){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}N>>>=ie,R-=ie,o.back+=ie}if(N>>>=te,R-=te,o.back+=te,o.length=le,ae===0){o.mode=26;break}if(32&ae){o.back=-1,o.mode=12;break}if(64&ae){k.msg="invalid literal/length code",o.mode=30;break}o.extra=15&ae,o.mode=22;case 22:if(o.extra){for(A=o.extra;R<A;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}o.length+=N&(1<<o.extra)-1,N>>>=o.extra,R-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=23;case 23:for(;ae=(S=o.distcode[N&(1<<o.distbits)-1])>>>16&255,le=65535&S,!((te=S>>>24)<=R);){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(!(240&ae)){for(ie=te,pe=ae,he=le;ae=(S=o.distcode[he+((N&(1<<ie+pe)-1)>>ie)])>>>16&255,le=65535&S,!(ie+(te=S>>>24)<=R);){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}N>>>=ie,R-=ie,o.back+=ie}if(N>>>=te,R-=te,o.back+=te,64&ae){k.msg="invalid distance code",o.mode=30;break}o.offset=le,o.extra=15&ae,o.mode=24;case 24:if(o.extra){for(A=o.extra;R<A;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}o.offset+=N&(1<<o.extra)-1,N>>>=o.extra,R-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){k.msg="invalid distance too far back",o.mode=30;break}o.mode=25;case 25:if(Y===0)break e;if(Z=X-Y,o.offset>Z){if((Z=o.offset-Z)>o.whave&&o.sane){k.msg="invalid distance too far back",o.mode=30;break}se=Z>o.wnext?(Z-=o.wnext,o.wsize-Z):o.wnext-Z,Z>o.length&&(Z=o.length),ue=o.window}else ue=$,se=J-o.offset,Z=o.length;for(Y<Z&&(Z=Y),Y-=Z,o.length-=Z;$[J++]=ue[se++],--Z;);o.length===0&&(o.mode=21);break;case 26:if(Y===0)break e;$[J++]=o.length,Y--,o.mode=21;break;case 27:if(o.wrap){for(;R<32;){if(W===0)break e;W--,N|=z[L++]<<R,R+=8}if(X-=Y,k.total_out+=X,o.total+=X,X&&(k.adler=o.check=o.flags?e(o.check,$,X,J-X):v(o.check,$,X,J-X)),X=Y,(o.flags?N:p(N))!==o.check){k.msg="incorrect data check",o.mode=30;break}R=N=0}o.mode=28;case 28:if(o.wrap&&o.flags){for(;R<32;){if(W===0)break e;W--,N+=z[L++]<<R,R+=8}if(N!==(4294967295&o.total)){k.msg="incorrect length check",o.mode=30;break}R=N=0}o.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return i}return k.next_out=J,k.avail_out=Y,k.next_in=L,k.avail_in=W,o.hold=N,o.bits=R,(o.wsize||X!==k.avail_out&&o.mode<30&&(o.mode<27||T!==4))&&E(k,k.output,k.next_out,X-k.avail_out)?(o.mode=31,-4):(Q-=k.avail_in,X-=k.avail_out,k.total_in+=Q,k.total_out+=X,o.total+=X,o.wrap&&X&&(k.adler=o.check=o.flags?e(o.check,$,X,k.next_out-X):v(o.check,$,X,k.next_out-X)),k.data_type=o.bits+(o.last?64:0)+(o.mode===12?128:0)+(o.mode===20||o.mode===15?256:0),(Q==0&&X===0||T===4)&&I===n&&(I=-5),I)},D.inflateEnd=function(k){if(!k||!k.state)return i;var T=k.state;return T.window&&(T.window=null),k.state=null,n},D.inflateGetHeader=function(k,T){var o;return k&&k.state&&2&(o=k.state).wrap?((o.head=T).done=!1,n):i},D.inflateSetDictionary=function(k,T){var o,z=T.length;return k&&k.state?(o=k.state).wrap!==0&&o.mode!==11?i:o.mode===11&&v(1,T,z,0)!==o.check?-3:E(k,T,z,z)?(o.mode=31,-4):(o.havedict=1,n):i},D.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(C,M,D){var P=C("../utils/common"),v=[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],e=[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],u=[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],r=[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];M.exports=function(m,f,n,i,y,d,h,p){var g,w,x,a,s,t,l,b,_,E=p.bits,k=0,T=0,o=0,z=0,$=0,L=0,J=0,W=0,Y=0,N=0,R=null,Q=0,X=new P.Buf16(16),Z=new P.Buf16(16),se=null,ue=0;for(k=0;k<=15;k++)X[k]=0;for(T=0;T<i;T++)X[f[n+T]]++;for($=E,z=15;1<=z&&X[z]===0;z--);if(z<$&&($=z),z===0)return y[d++]=20971520,y[d++]=20971520,p.bits=1,0;for(o=1;o<z&&X[o]===0;o++);for($<o&&($=o),k=W=1;k<=15;k++)if(W<<=1,(W-=X[k])<0)return-1;if(0<W&&(m===0||z!==1))return-1;for(Z[1]=0,k=1;k<15;k++)Z[k+1]=Z[k]+X[k];for(T=0;T<i;T++)f[n+T]!==0&&(h[Z[f[n+T]]++]=T);if(t=m===0?(R=se=h,19):m===1?(R=v,Q-=257,se=e,ue-=257,256):(R=u,se=r,-1),k=o,s=d,J=T=N=0,x=-1,a=(Y=1<<(L=$))-1,m===1&&852<Y||m===2&&592<Y)return 1;for(;;){for(l=k-J,_=h[T]<t?(b=0,h[T]):h[T]>t?(b=se[ue+h[T]],R[Q+h[T]]):(b=96,0),g=1<<k-J,o=w=1<<L;y[s+(N>>J)+(w-=g)]=l<<24|b<<16|_|0,w!==0;);for(g=1<<k-1;N&g;)g>>=1;if(g!==0?(N&=g-1,N+=g):N=0,T++,--X[k]==0){if(k===z)break;k=f[n+h[T]]}if($<k&&(N&a)!==x){for(J===0&&(J=$),s+=o,W=1<<(L=k-J);L+J<z&&!((W-=X[L+J])<=0);)L++,W<<=1;if(Y+=1<<L,m===1&&852<Y||m===2&&592<Y)return 1;y[x=N&a]=$<<24|L<<16|s-d|0}}return N!==0&&(y[s+N]=k-J<<24|64<<16|0),p.bits=$,0}},{"../utils/common":41}],51:[function(C,M,D){M.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(C,M,D){var P=C("../utils/common"),v=0,e=1;function u(S){for(var O=S.length;0<=--O;)S[O]=0}var r=0,m=29,f=256,n=f+1+m,i=30,y=19,d=2*n+1,h=15,p=16,g=7,w=256,x=16,a=17,s=18,t=[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],l=[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],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(n+2));u(E);var k=new Array(2*i);u(k);var T=new Array(512);u(T);var o=new Array(256);u(o);var z=new Array(m);u(z);var $,L,J,W=new Array(i);function Y(S,O,j,U,B){this.static_tree=S,this.extra_bits=O,this.extra_base=j,this.elems=U,this.max_length=B,this.has_stree=S&&S.length}function N(S,O){this.dyn_tree=S,this.max_code=0,this.stat_desc=O}function R(S){return S<256?T[S]:T[256+(S>>>7)]}function Q(S,O){S.pending_buf[S.pending++]=255&O,S.pending_buf[S.pending++]=O>>>8&255}function X(S,O,j){S.bi_valid>p-j?(S.bi_buf|=O<<S.bi_valid&65535,Q(S,S.bi_buf),S.bi_buf=O>>p-S.bi_valid,S.bi_valid+=j-p):(S.bi_buf|=O<<S.bi_valid&65535,S.bi_valid+=j)}function Z(S,O,j){X(S,j[2*O],j[2*O+1])}function se(S,O){for(var j=0;j|=1&S,S>>>=1,j<<=1,0<--O;);return j>>>1}function ue(S,O,j){var U,B,H=new Array(h+1),G=0;for(U=1;U<=h;U++)H[U]=G=G+j[U-1]<<1;for(B=0;B<=O;B++){var V=S[2*B+1];V!==0&&(S[2*B]=se(H[V]++,V))}}function te(S){var O;for(O=0;O<n;O++)S.dyn_ltree[2*O]=0;for(O=0;O<i;O++)S.dyn_dtree[2*O]=0;for(O=0;O<y;O++)S.bl_tree[2*O]=0;S.dyn_ltree[2*w]=1,S.opt_len=S.static_len=0,S.last_lit=S.matches=0}function ae(S){8<S.bi_valid?Q(S,S.bi_buf):0<S.bi_valid&&(S.pending_buf[S.pending++]=S.bi_buf),S.bi_buf=0,S.bi_valid=0}function le(S,O,j,U){var B=2*O,H=2*j;return S[B]<S[H]||S[B]===S[H]&&U[O]<=U[j]}function ie(S,O,j){for(var U=S.heap[j],B=j<<1;B<=S.heap_len&&(B<S.heap_len&&le(O,S.heap[B+1],S.heap[B],S.depth)&&B++,!le(O,U,S.heap[B],S.depth));)S.heap[j]=S.heap[B],j=B,B<<=1;S.heap[j]=U}function pe(S,O,j){var U,B,H,G,V=0;if(S.last_lit!==0)for(;U=S.pending_buf[S.d_buf+2*V]<<8|S.pending_buf[S.d_buf+2*V+1],B=S.pending_buf[S.l_buf+V],V++,U===0?Z(S,B,O):(Z(S,(H=o[B])+f+1,O),(G=t[H])!==0&&X(S,B-=z[H],G),Z(S,H=R(--U),j),(G=l[H])!==0&&X(S,U-=W[H],G)),V<S.last_lit;);Z(S,w,O)}function he(S,O){var j,U,B,H=O.dyn_tree,G=O.stat_desc.static_tree,V=O.stat_desc.has_stree,K=O.stat_desc.elems,ne=-1;for(S.heap_len=0,S.heap_max=d,j=0;j<K;j++)H[2*j]!==0?(S.heap[++S.heap_len]=ne=j,S.depth[j]=0):H[2*j+1]=0;for(;S.heap_len<2;)H[2*(B=S.heap[++S.heap_len]=ne<2?++ne:0)]=1,S.depth[B]=0,S.opt_len--,V&&(S.static_len-=G[2*B+1]);for(O.max_code=ne,j=S.heap_len>>1;1<=j;j--)ie(S,H,j);for(B=K;j=S.heap[1],S.heap[1]=S.heap[S.heap_len--],ie(S,H,1),U=S.heap[1],S.heap[--S.heap_max]=j,S.heap[--S.heap_max]=U,H[2*B]=H[2*j]+H[2*U],S.depth[B]=(S.depth[j]>=S.depth[U]?S.depth[j]:S.depth[U])+1,H[2*j+1]=H[2*U+1]=B,S.heap[1]=B++,ie(S,H,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(re,de){var ve,fe,ke,oe,Ae,xe,me=de.dyn_tree,Me=de.max_code,at=de.stat_desc.static_tree,nt=de.stat_desc.has_stree,st=de.stat_desc.extra_bits,Ie=de.stat_desc.extra_base,_e=de.stat_desc.max_length,Ce=0;for(oe=0;oe<=h;oe++)re.bl_count[oe]=0;for(me[2*re.heap[re.heap_max]+1]=0,ve=re.heap_max+1;ve<d;ve++)_e<(oe=me[2*me[2*(fe=re.heap[ve])+1]+1]+1)&&(oe=_e,Ce++),me[2*fe+1]=oe,Me<fe||(re.bl_count[oe]++,Ae=0,Ie<=fe&&(Ae=st[fe-Ie]),xe=me[2*fe],re.opt_len+=xe*(oe+Ae),nt&&(re.static_len+=xe*(at[2*fe+1]+Ae)));if(Ce!==0){do{for(oe=_e-1;re.bl_count[oe]===0;)oe--;re.bl_count[oe]--,re.bl_count[oe+1]+=2,re.bl_count[_e]--,Ce-=2}while(0<Ce);for(oe=_e;oe!==0;oe--)for(fe=re.bl_count[oe];fe!==0;)Me<(ke=re.heap[--ve])||(me[2*ke+1]!==oe&&(re.opt_len+=(oe-me[2*ke+1])*me[2*ke],me[2*ke+1]=oe),fe--)}}(S,O),ue(H,ne,S.bl_count)}function c(S,O,j){var U,B,H=-1,G=O[1],V=0,K=7,ne=4;for(G===0&&(K=138,ne=3),O[2*(j+1)+1]=65535,U=0;U<=j;U++)B=G,G=O[2*(U+1)+1],++V<K&&B===G||(V<ne?S.bl_tree[2*B]+=V:B!==0?(B!==H&&S.bl_tree[2*B]++,S.bl_tree[2*x]++):V<=10?S.bl_tree[2*a]++:S.bl_tree[2*s]++,H=B,ne=(V=0)===G?(K=138,3):B===G?(K=6,3):(K=7,4))}function I(S,O,j){var U,B,H=-1,G=O[1],V=0,K=7,ne=4;for(G===0&&(K=138,ne=3),U=0;U<=j;U++)if(B=G,G=O[2*(U+1)+1],!(++V<K&&B===G)){if(V<ne)for(;Z(S,B,S.bl_tree),--V!=0;);else B!==0?(B!==H&&(Z(S,B,S.bl_tree),V--),Z(S,x,S.bl_tree),X(S,V-3,2)):V<=10?(Z(S,a,S.bl_tree),X(S,V-3,3)):(Z(S,s,S.bl_tree),X(S,V-11,7));H=B,ne=(V=0)===G?(K=138,3):B===G?(K=6,3):(K=7,4)}}u(W);var F=!1;function A(S,O,j,U){X(S,(r<<1)+(U?1:0),3),function(B,H,G,V){ae(B),V&&(Q(B,G),Q(B,~G)),P.arraySet(B.pending_buf,B.window,H,G,B.pending),B.pending+=G}(S,O,j,!0)}D._tr_init=function(S){F||(function(){var O,j,U,B,H,G=new Array(h+1);for(B=U=0;B<m-1;B++)for(z[B]=U,O=0;O<1<<t[B];O++)o[U++]=B;for(o[U-1]=B,B=H=0;B<16;B++)for(W[B]=H,O=0;O<1<<l[B];O++)T[H++]=B;for(H>>=7;B<i;B++)for(W[B]=H<<7,O=0;O<1<<l[B]-7;O++)T[256+H++]=B;for(j=0;j<=h;j++)G[j]=0;for(O=0;O<=143;)E[2*O+1]=8,O++,G[8]++;for(;O<=255;)E[2*O+1]=9,O++,G[9]++;for(;O<=279;)E[2*O+1]=7,O++,G[7]++;for(;O<=287;)E[2*O+1]=8,O++,G[8]++;for(ue(E,n+1,G),O=0;O<i;O++)k[2*O+1]=5,k[2*O]=se(O,5);$=new Y(E,t,f+1,n,h),L=new Y(k,l,0,i,h),J=new Y(new Array(0),b,0,y,g)}(),F=!0),S.l_desc=new N(S.dyn_ltree,$),S.d_desc=new N(S.dyn_dtree,L),S.bl_desc=new N(S.bl_tree,J),S.bi_buf=0,S.bi_valid=0,te(S)},D._tr_stored_block=A,D._tr_flush_block=function(S,O,j,U){var B,H,G=0;0<S.level?(S.strm.data_type===2&&(S.strm.data_type=function(V){var K,ne=4093624447;for(K=0;K<=31;K++,ne>>>=1)if(1&ne&&V.dyn_ltree[2*K]!==0)return v;if(V.dyn_ltree[18]!==0||V.dyn_ltree[20]!==0||V.dyn_ltree[26]!==0)return e;for(K=32;K<f;K++)if(V.dyn_ltree[2*K]!==0)return e;return v}(S)),he(S,S.l_desc),he(S,S.d_desc),G=function(V){var K;for(c(V,V.dyn_ltree,V.l_desc.max_code),c(V,V.dyn_dtree,V.d_desc.max_code),he(V,V.bl_desc),K=y-1;3<=K&&V.bl_tree[2*_[K]+1]===0;K--);return V.opt_len+=3*(K+1)+5+5+4,K}(S),B=S.opt_len+3+7>>>3,(H=S.static_len+3+7>>>3)<=B&&(B=H)):B=H=j+5,j+4<=B&&O!==-1?A(S,O,j,U):S.strategy===4||H===B?(X(S,2+(U?1:0),3),pe(S,E,k)):(X(S,4+(U?1:0),3),function(V,K,ne,re){var de;for(X(V,K-257,5),X(V,ne-1,5),X(V,re-4,4),de=0;de<re;de++)X(V,V.bl_tree[2*_[de]+1],3);I(V,V.dyn_ltree,K-1),I(V,V.dyn_dtree,ne-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,G+1),pe(S,S.dyn_ltree,S.dyn_dtree)),te(S),U&&ae(S)},D._tr_tally=function(S,O,j){return S.pending_buf[S.d_buf+2*S.last_lit]=O>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&O,S.pending_buf[S.l_buf+S.last_lit]=255&j,S.last_lit++,O===0?S.dyn_ltree[2*j]++:(S.matches++,O--,S.dyn_ltree[2*(o[j]+f+1)]++,S.dyn_dtree[2*R(O)]++),S.last_lit===S.lit_bufsize-1},D._tr_align=function(S){X(S,2,3),Z(S,w,E),function(O){O.bi_valid===16?(Q(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):8<=O.bi_valid&&(O.pending_buf[O.pending++]=255&O.bi_buf,O.bi_buf>>=8,O.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(C,M,D){M.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(C,M,D){(function(P){(function(v,e){if(!v.setImmediate){var u,r,m,f,n=1,i={},y=!1,d=v.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(v);h=h&&h.setTimeout?h:v,u={}.toString.call(v.process)==="[object process]"?function(x){process.nextTick(function(){g(x)})}:function(){if(v.postMessage&&!v.importScripts){var x=!0,a=v.onmessage;return v.onmessage=function(){x=!1},v.postMessage("","*"),v.onmessage=a,x}}()?(f="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",w,!1):v.attachEvent("onmessage",w),function(x){v.postMessage(f+x,"*")}):v.MessageChannel?((m=new MessageChannel).port1.onmessage=function(x){g(x.data)},function(x){m.port2.postMessage(x)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,function(x){var a=d.createElement("script");a.onreadystatechange=function(){g(x),a.onreadystatechange=null,r.removeChild(a),a=null},r.appendChild(a)}):function(x){setTimeout(g,0,x)},h.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var a=new Array(arguments.length-1),s=0;s<a.length;s++)a[s]=arguments[s+1];var t={callback:x,args:a};return i[n]=t,u(n),n++},h.clearImmediate=p}function p(x){delete i[x]}function g(x){if(y)setTimeout(g,0,x);else{var a=i[x];if(a){y=!0;try{(function(s){var t=s.callback,l=s.args;switch(l.length){case 0:t();break;case 1:t(l[0]);break;case 2:t(l[0],l[1]);break;case 3:t(l[0],l[1],l[2]);break;default:t.apply(e,l)}})(a)}finally{p(x),y=!1}}}}function w(x){x.source===v&&typeof x.data=="string"&&x.data.indexOf(f)===0&&g(+x.data.slice(f.length))}})(typeof self=="undefined"?P===void 0?this:P:self)}).call(this,typeof we!="undefined"?we:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}(Ne)),Ne.exports}(function(q,ee){(function(C,M){q.exports=M(He())})(globalThis,C=>(()=>{var M={438:(v,e,u)=>{u.r(e),u.d(e,{default:()=>g});var r=u(537),m=u.n(r),f=u(645),n=u.n(f),i=u(806),y=u.n(i),d=new URL(u(583),u.b),h=n()(m()),p=y()(d);h.push([v.id,`@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url(${p})}`,"",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:[`@namespace "http://www.w3.org/1998/Math/MathML";\r
\r
math {\r
display: inline-block;\r
line-height: initial;\r
}\r
\r
mfrac {\r
display: inline-block;\r
vertical-align: -50%;\r
text-align: center;\r
\r
&>:first-child {\r
border-bottom: solid thin currentColor;\r
}\r
\r
&>* {\r
display: block;\r
}\r
}\r
\r
msub {\r
&>:nth-child(2) {\r
font-size: smaller;\r
vertical-align: sub;\r
}\r
}\r
\r
msup {\r
&>:nth-child(2) {\r
font-size: smaller;\r
vertical-align: super;\r
}\r
}\r
\r
munder, mover, munderover {\r
display: inline-flex;\r
flex-flow: column nowrap;\r
vertical-align: middle;\r
text-align: center;\r
\r
&>:not(:first-child) {\r
font-size: smaller;\r
}\r
}\r
\r
munderover {\r
&>:last-child { order: -1; }\r
}\r
\r
mroot, msqrt {\r
position: relative;\r
display: inline-block;\r
border-top: solid thin currentColor; \r
margin-top: 0.5px;\r
vertical-align: middle; \r
margin-left: 1ch; \r
\r
&:before {\r
content: "";\r
display: inline-block;\r
position: absolute;\r
width: 1ch;\r
left: -1ch;\r
top: -1px;\r
bottom: 0;\r
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");\r
}\r
}`],sourceRoot:""}]);const g=h.toString()},645:v=>{v.exports=function(e){var u=[];return u.toString=function(){return this.map(function(r){var m="",f=r[5]!==void 0;return r[4]&&(m+="@supports (".concat(r[4],") {")),r[2]&&(m+="@media ".concat(r[2]," {")),f&&(m+="@layer".concat(r[5].length>0?" ".concat(r[5]):""," {")),m+=e(r),f&&(m+="}"),r[2]&&(m+="}"),r[4]&&(m+="}"),m}).join("")},u.i=function(r,m,f,n,i){typeof r=="string"&&(r=[[null,r,void 0]]);var y={};if(f)for(var d=0;d<this.length;d++){var h=this[d][0];h!=null&&(y[h]=!0)}for(var p=0;p<r.length;p++){var g=[].concat(r[p]);f&&y[g[0]]||(i!==void 0&&(g[5]===void 0||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=i),m&&(g[2]&&(g[1]="@media ".concat(g[2]," {").concat(g[1],"}")),g[2]=m),n&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=n):g[4]="".concat(n)),u.push(g))}},u}},806:v=>{v.exports=function(e,u){return u||(u={}),e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),u.hash&&(e+=u.hash),/["'() \t\n]|(%20)/.test(e)||u.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},537:v=>{v.exports=function(e){var u=e[1],r=e[3];if(!r)return u;if(typeof btoa=="function"){var m=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),f="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(m),n="/*# ".concat(f," */");return[u].concat([n]).join(`
`)}return[u].join(`
`)}},522:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OpenXmlPackage=void 0;const r=u(626),m=u(472),f=u(593),n=u(461);class i{constructor(d,h){this._zip=d,this.options=h,this.xmlParser=new m.XmlParser}get(d){return this._zip.files[function(h){return h.startsWith("/")?h.substr(1):h}(d)]}update(d,h){this._zip.file(d,h)}static load(d,h){return ce(this,null,function*(){const p=yield r.loadAsync(d);return new i(p,h)})}save(d="blob"){return this._zip.generateAsync({type:d})}load(d,h="string"){var p,g;return(g=(p=this.get(d))===null||p===void 0?void 0:p.async(h))!==null&&g!==void 0?g:Promise.resolve(null)}loadRelationships(d=null){return ce(this,null,function*(){let h="_rels/.rels";if(d!=null){const[g,w]=(0,f.splitPath)(d);h=`${g}_rels/${w}.rels`}const p=yield this.load(h);return p?(0,n.parseRelationships)(this.parseXmlDocument(p).firstElementChild,this.xmlParser):null})}parseXmlDocument(d){return(0,m.parseXmlString)(d,this.options.trimXmlDeclaration)}}e.OpenXmlPackage=i},530:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Part=void 0;const r=u(472);e.Part=class{constructor(m,f){this._package=m,this.path=f}load(){return ce(this,null,function*(){this.rels=yield this._package.loadRelationships(this.path);const m=yield this._package.load(this.path),f=this._package.parseXmlDocument(m);this._package.options.keepOrigin&&(this._xmlDocument=f),this.parseXml(f.firstElementChild)})}save(){this._package.update(this.path,(0,r.serializeXmlString)(this._xmlDocument))}parseXml(m){}}},461:(v,e)=>{var u;Object.defineProperty(e,"__esModule",{value:!0}),e.parseRelationships=e.RelationshipTypes=void 0,function(r){r.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",r.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",r.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"}(u||(e.RelationshipTypes=u={})),e.parseRelationships=function(r,m){return m.elements(r).map(f=>({id:m.attr(f,"Id"),type:m.attr(f,"Type"),target:m.attr(f,"Target"),targetMode:m.attr(f,"TargetMode")}))}},168:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentParser=e.autos=void 0;const r=u(120),m=u(109),f=u(59),n=u(472),i=u(488),y=u(172),d=u(149),h=u(320);e.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const p=[],g={oMath:r.DomType.MmlMath,oMathPara:r.DomType.MmlMathParagraph,f:r.DomType.MmlFraction,func:r.DomType.MmlFunction,fName:r.DomType.MmlFunctionName,num:r.DomType.MmlNumerator,den:r.DomType.MmlDenominator,rad:r.DomType.MmlRadical,deg:r.DomType.MmlDegree,e:r.DomType.MmlBase,sSup:r.DomType.MmlSuperscript,sSub:r.DomType.MmlSubscript,sPre:r.DomType.MmlPreSubSuper,sup:r.DomType.MmlSuperArgument,sub:r.DomType.MmlSubArgument,d:r.DomType.MmlDelimiter,nary:r.DomType.MmlNary,eqArr:r.DomType.MmlEquationArray,lim:r.DomType.MmlLimit,limLow:r.DomType.MmlLimitLower,m:r.DomType.MmlMatrix,mr:r.DomType.MmlMatrixRow,box:r.DomType.MmlBox,bar:r.DomType.MmlBar,groupChr:r.DomType.MmlGroupChar};e.DocumentParser=class{constructor(s){this.options=Object.assign({ignoreWidth:!1,debug:!1},s)}parseNotes(s,t,l){var b=[];for(let _ of n.default.elements(s,t)){const E=new l;E.id=n.default.attr(_,"id"),E.noteType=n.default.attr(_,"type"),E.children=this.parseBodyElements(_),b.push(E)}return b}parseDocumentFile(s){var t=n.default.element(s,"body"),l=n.default.element(s,"background"),b=n.default.element(t,"sectPr");return{type:r.DomType.Document,children:this.parseBodyElements(t),props:b?(0,f.parseSectionProperties)(b,n.default):{},cssStyle:l?this.parseBackground(l):{}}}parseBackground(s){var t={},l=x.colorAttr(s,"color");return l&&(t["background-color"]=l),t}parseBodyElements(s){var t=[];for(let l of n.default.elements(s))switch(l.localName){case"p":t.push(this.parseParagraph(l));break;case"tbl":t.push(this.parseTable(l));break;case"sdt":t.push(...this.parseSdt(l,b=>this.parseBodyElements(b)))}return t}parseStylesFile(s){var t=[];return x.foreach(s,l=>{switch(l.localName){case"style":t.push(this.parseStyle(l));break;case"docDefaults":t.push(this.parseDefaultStyles(l))}}),t}parseDefaultStyles(s){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return x.foreach(s,l=>{switch(l.localName){case"rPrDefault":var b=n.default.element(l,"rPr");b&&t.styles.push({target:"span",values:this.parseDefaultProperties(b,{})});break;case"pPrDefault":var _=n.default.element(l,"pPr");_&&t.styles.push({target:"p",values:this.parseDefaultProperties(_,{})})}}),t}parseStyle(s){var t={id:n.default.attr(s,"styleId"),isDefault:n.default.boolAttr(s,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(n.default.attr(s,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span"}return x.foreach(s,l=>{switch(l.localName){case"basedOn":t.basedOn=n.default.attr(l,"val");break;case"name":t.name=n.default.attr(l,"val");break;case"link":t.linked=n.default.attr(l,"val");break;case"next":t.next=n.default.attr(l,"val");break;case"aliases":t.aliases=n.default.attr(l,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(l,{})}),t.paragraphProps=(0,m.parseParagraphProperties)(l,n.default);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(l,{})}),t.runProps=(0,i.parseRunProperties)(l,n.default);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(l,{})});break;case"tblStylePr":for(let b of this.parseTableStyle(l))t.styles.push(b);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${l.localName}`)}}),t}parseTableStyle(s){var t=[],l=n.default.attr(s,"type"),b="",_="";switch(l){case"firstRow":_=".first-row",b="tr.first-row td";break;case"lastRow":_=".last-row",b="tr.last-row td";break;case"firstCol":_=".first-col",b="td.first-col";break;case"lastCol":_=".last-col",b="td.last-col";break;case"band1Vert":_=":not(.no-vband)",b="td.odd-col";break;case"band2Vert":_=":not(.no-vband)",b="td.even-col";break;case"band1Horz":_=":not(.no-hband)",b="tr.odd-row";break;case"band2Horz":_=":not(.no-hband)",b="tr.even-row";break;default:return[]}return x.foreach(s,E=>{switch(E.localName){case"pPr":t.push({target:`${b} p`,mod:_,values:this.parseDefaultProperties(E,{})});break;case"rPr":t.push({target:`${b} span`,mod:_,values:this.parseDefaultProperties(E,{})});break;case"tblPr":case"tcPr":t.push({target:b,mod:_,values:this.parseDefaultProperties(E,{})})}}),t}parseNumberingFile(s){var t=[],l={},b=[];return x.foreach(s,_=>{switch(_.localName){case"abstractNum":this.parseAbstractNumbering(_,b).forEach(T=>t.push(T));break;case"numPicBullet":b.push(this.parseNumberingPicBullet(_));break;case"num":var E=n.default.attr(_,"numId"),k=n.default.elementAttr(_,"abstractNumId","val");l[k]=E}}),t.forEach(_=>_.id=l[_.id]),t}parseNumberingPicBullet(s){var t=n.default.element(s,"pict"),l=t&&n.default.element(t,"shape"),b=l&&n.default.element(l,"imagedata");return b?{id:n.default.intAttr(s,"numPicBulletId"),src:n.default.attr(b,"id"),style:n.default.attr(l,"style")}:null}parseAbstractNumbering(s,t){var l=[],b=n.default.attr(s,"abstractNumId");return x.foreach(s,_=>{_.localName==="lvl"&&l.push(this.parseNumberingLevel(b,_,t))}),l}parseNumberingLevel(s,t,l){var b={id:s,level:n.default.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return x.foreach(t,_=>{switch(_.localName){case"start":b.start=n.default.intAttr(_,"val");break;case"pPr":this.parseDefaultProperties(_,b.pStyle);break;case"rPr":this.parseDefaultProperties(_,b.rStyle);break;case"lvlPicBulletId":var E=n.default.intAttr(_,"val");b.bullet=l.find(k=>k.id==E);break;case"lvlText":b.levelText=n.default.attr(_,"val");break;case"pStyle":b.pStyleName=n.default.attr(_,"val");break;case"numFmt":b.format=n.default.attr(_,"val");break;case"suff":b.suff=n.default.attr(_,"val")}}),b}parseSdt(s,t){const l=n.default.element(s,"sdtContent");return l?t(l):[]}parseInserted(s,t){var l,b;return{type:r.DomType.Inserted,children:(b=(l=t(s))===null||l===void 0?void 0:l.children)!==null&&b!==void 0?b:[]}}parseDeleted(s,t){var l,b;return{type:r.DomType.Deleted,children:(b=(l=t(s))===null||l===void 0?void 0:l.children)!==null&&b!==void 0?b:[]}}parseParagraph(s){var t={type:r.DomType.Paragraph,children:[]};for(let l of n.default.elements(s))switch(l.localName){case"pPr":this.parseParagraphProperties(l,t);break;case"r":t.children.push(this.parseRun(l,t));break;case"hyperlink":t.children.push(this.parseHyperlink(l,t));break;case"bookmarkStart":t.children.push((0,y.parseBookmarkStart)(l,n.default));break;case"bookmarkEnd":t.children.push((0,y.parseBookmarkEnd)(l,n.default));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(l));break;case"sdt":t.children.push(...this.parseSdt(l,b=>this.parseParagraph(b).children));break;case"ins":t.children.push(this.parseInserted(l,b=>this.parseParagraph(b)));break;case"del":t.children.push(this.parseDeleted(l,b=>this.parseParagraph(b)))}return t}parseParagraphProperties(s,t){this.parseDefaultProperties(s,t.cssStyle={},null,l=>{if((0,m.parseParagraphProperty)(l,t,n.default))return!0;switch(l.localName){case"pStyle":t.styleName=n.default.attr(l,"val");break;case"cnfStyle":t.className=a.classNameOfCnfStyle(l);break;case"framePr":this.parseFrame(l,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(s,t){n.default.attr(s,"dropCap")=="drop"&&(t.cssStyle.float="left")}parseHyperlink(s,t){var l={type:r.DomType.Hyperlink,parent:t,children:[]},b=n.default.attr(s,"anchor"),_=n.default.attr(s,"id");return b&&(l.href="#"+b),_&&(l.id=_),x.foreach(s,E=>{E.localName==="r"&&l.children.push(this.parseRun(E,l))}),l}parseRun(s,t){var l={type:r.DomType.Run,parent:t,children:[]};return x.foreach(s,b=>{switch((b=this.checkAlternateContent(b)).localName){case"t":l.children.push({type:r.DomType.Text,text:b.textContent});break;case"delText":l.children.push({type:r.DomType.DeletedText,text:b.textContent});break;case"fldSimple":l.children.push({type:r.DomType.SimpleField,instruction:n.default.attr(b,"instr"),lock:n.default.boolAttr(b,"lock",!1),dirty:n.default.boolAttr(b,"dirty",!1)});break;case"instrText":l.fieldRun=!0,l.children.push({type:r.DomType.Instruction,text:b.textContent});break;case"fldChar":l.fieldRun=!0,l.children.push({type:r.DomType.ComplexField,charType:n.default.attr(b,"fldCharType"),lock:n.default.boolAttr(b,"lock",!1),dirty:n.default.boolAttr(b,"dirty",!1)});break;case"noBreakHyphen":l.children.push({type:r.DomType.NoBreakHyphen});break;case"br":l.children.push({type:r.DomType.Break,break:n.default.attr(b,"type")||"textWrapping"});break;case"lastRenderedPageBreak":l.children.push({type:r.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":l.children.push({type:r.DomType.Symbol,font:n.default.attr(b,"font"),char:n.default.attr(b,"char")});break;case"tab":l.children.push({type:r.DomType.Tab});break;case"footnoteReference":l.children.push({type:r.DomType.FootnoteReference,id:n.default.attr(b,"id")});break;case"endnoteReference":l.children.push({type:r.DomType.EndnoteReference,id:n.default.attr(b,"id")});break;case"drawing":let _=this.parseDrawing(b);_&&(l.children=[_]);break;case"pict":l.children.push(this.parseVmlPicture(b));break;case"rPr":this.parseRunProperties(b,l)}}),l}parseMathElement(s){const t=`${s.localName}Pr`,l={type:g[s.localName],children:[]};for(const _ of n.default.elements(s))if(g[_.localName])l.children.push(this.parseMathElement(_));else if(_.localName=="r"){var b=this.parseRun(_);b.type=r.DomType.MmlRun,l.children.push(b)}else _.localName==t&&(l.props=this.parseMathProperies(_));return l}parseMathProperies(s){const t={};for(const l of n.default.elements(s))switch(l.localName){case"chr":t.char=n.default.attr(l,"val");break;case"vertJc":t.verticalJustification=n.default.attr(l,"val");break;case"pos":t.position=n.default.attr(l,"val");break;case"degHide":t.hideDegree=n.default.boolAttr(l,"val");break;case"begChr":t.beginChar=n.default.attr(l,"val");break;case"endChr":t.endChar=n.default.attr(l,"val")}return t}parseRunProperties(s,t){this.parseDefaultProperties(s,t.cssStyle={},null,l=>{switch(l.localName){case"rStyle":t.styleName=n.default.attr(l,"val");break;case"vertAlign":t.verticalAlign=a.valueOfVertAlign(l,!0);break;default:return!1}return!0})}parseVmlPicture(s){const t={type:r.DomType.VmlPicture,children:[]};for(const l of n.default.elements(s)){const b=(0,h.parseVmlElement)(l,this);b&&t.children.push(b)}return t}checkAlternateContent(s){var t;if(s.localName!="AlternateContent")return s;var l=n.default.element(s,"Choice");if(l){var b=n.default.attr(l,"Requires"),_=s.lookupNamespaceURI(b);if(p.includes(_))return l.firstElementChild}return(t=n.default.element(s,"Fallback"))===null||t===void 0?void 0:t.firstElementChild}parseDrawing(s){for(var t of n.default.elements(s))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(s){var t,l={type:r.DomType.Drawing,children:[],cssStyle:{}},b=s.localName=="anchor";let _=null,E=n.default.boolAttr(s,"simplePos"),k={relative:"page",align:"left",offset:"0"},T={relative:"page",align:"top",offset:"0"};for(var o of n.default.elements(s))switch(o.localName){case"simplePos":E&&(k.offset=n.default.lengthAttr(o,"x",d.LengthUsage.Emu),T.offset=n.default.lengthAttr(o,"y",d.LengthUsage.Emu));break;case"extent":l.cssStyle.width=n.default.lengthAttr(o,"cx",d.LengthUsage.Emu),l.cssStyle.height=n.default.lengthAttr(o,"cy",d.LengthUsage.Emu);break;case"positionH":case"positionV":if(!E){let J=o.localName=="positionH"?k:T;var z=n.default.element(o,"align"),$=n.default.element(o,"posOffset");J.relative=(t=n.default.attr(o,"relativeFrom"))!==null&&t!==void 0?t:J.relative,z&&(J.align=z.textContent),$&&(J.offset=x.sizeValue($,d.LengthUsage.Emu))}break;case"wrapTopAndBottom":_="wrapTopAndBottom";break;case"wrapNone":_="wrapNone";break;case"graphic":var L=this.parseGraphic(o);L&&l.children.push(L)}return _=="wrapTopAndBottom"?(l.cssStyle.display="block",k.align&&(l.cssStyle["text-align"]=k.align,l.cssStyle.width="100%")):_=="wrapNone"?(l.cssStyle.display="block",l.cssStyle.position="relative",l.cssStyle.width="0px",l.cssStyle.height="0px",k.offset&&(l.cssStyle.left=k.offset),T.offset&&(l.cssStyle.top=T.offset)):!b||k.align!="left"&&k.align!="right"||(l.cssStyle.float=k.align),l}parseGraphic(s){var t=n.default.element(s,"graphicData");for(let l of n.default.elements(t))if(l.localName==="pic")return this.parsePicture(l);return null}parsePicture(s){var t={type:r.DomType.Image,src:"",cssStyle:{}},l=n.default.element(s,"blipFill"),b=n.default.element(l,"blip");t.src=n.default.attr(b,"embed");var _=n.default.element(s,"spPr"),E=n.default.element(_,"xfrm");for(var k of(t.cssStyle.position="relative",n.default.elements(E)))switch(k.localName){case"ext":t.cssStyle.width=n.default.lengthAttr(k,"cx",d.LengthUsage.Emu),t.cssStyle.height=n.default.lengthAttr(k,"cy",d.LengthUsage.Emu);break;case"off":t.cssStyle.left=n.default.lengthAttr(k,"x",d.LengthUsage.Emu),t.cssStyle.top=n.default.lengthAttr(k,"y",d.LengthUsage.Emu)}return t}parseTable(s){var t={type:r.DomType.Table,children:[]};return x.foreach(s,l=>{switch(l.localName){case"tr":t.children.push(this.parseTableRow(l));break;case"tblGrid":t.columns=this.parseTableColumns(l);break;case"tblPr":this.parseTableProperties(l,t)}}),t}parseTableColumns(s){var t=[];return x.foreach(s,l=>{l.localName==="gridCol"&&t.push({width:n.default.lengthAttr(l,"w")})}),t}parseTableProperties(s,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(s,t.cssStyle,t.cellStyle,l=>{switch(l.localName){case"tblStyle":t.styleName=n.default.attr(l,"val");break;case"tblLook":t.className=a.classNameOftblLook(l);break;case"tblpPr":this.parseTablePosition(l,t);break;case"tblStyleColBandSize":t.colBandSize=n.default.intAttr(l,"val");break;case"tblStyleRowBandSize":t.rowBandSize=n.default.intAttr(l,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}parseTablePosition(s,t){var l=n.default.lengthAttr(s,"topFromText"),b=n.default.lengthAttr(s,"bottomFromText"),_=n.default.lengthAttr(s,"rightFromText"),E=n.default.lengthAttr(s,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=a.addSize(t.cssStyle["margin-bottom"],b),t.cssStyle["margin-left"]=a.addSize(t.cssStyle["margin-left"],E),t.cssStyle["margin-right"]=a.addSize(t.cssStyle["margin-right"],_),t.cssStyle["margin-top"]=a.addSize(t.cssStyle["margin-top"],l)}parseTableRow(s){var t={type:r.DomType.Row,children:[]};return x.foreach(s,l=>{switch(l.localName){case"tc":t.children.push(this.parseTableCell(l));break;case"trPr":this.parseTableRowProperties(l,t)}}),t}parseTableRowProperties(s,t){t.cssStyle=this.parseDefaultProperties(s,{},null,l=>{switch(l.localName){case"cnfStyle":t.className=a.classNameOfCnfStyle(l);break;case"tblHeader":t.isHeader=n.default.boolAttr(l,"val");break;default:return!1}return!0})}parseTableCell(s){var t={type:r.DomType.Cell,children:[]};return x.foreach(s,l=>{switch(l.localName){case"tbl":t.children.push(this.parseTable(l));break;case"p":t.children.push(this.parseParagraph(l));break;case"tcPr":this.parseTableCellProperties(l,t)}}),t}parseTableCellProperties(s,t){t.cssStyle=this.parseDefaultProperties(s,{},null,l=>{var b;switch(l.localName){case"gridSpan":t.span=n.default.intAttr(l,"val",null);break;case"vMerge":t.verticalMerge=(b=n.default.attr(l,"val"))!==null&&b!==void 0?b:"continue";break;case"cnfStyle":t.className=a.classNameOfCnfStyle(l);break;default:return!1}return!0})}parseDefaultProperties(s,t=null,l=null,b=null){return t=t||{},x.foreach(s,_=>{if(!(b!=null&&b(_)))switch(_.localName){case"jc":t["text-align"]=a.valueOfJc(_);break;case"textAlignment":t["vertical-align"]=a.valueOfTextAlignment(_);break;case"color":t.color=x.colorAttr(_,"val",null,e.autos.color);break;case"sz":t["font-size"]=t["min-height"]=n.default.lengthAttr(_,"val",d.LengthUsage.FontSize);break;case"shd":t["background-color"]=x.colorAttr(_,"fill",null,e.autos.shd);break;case"highlight":t["background-color"]=x.colorAttr(_,"val",null,e.autos.highlight);break;case"vertAlign":break;case"position":t.verticalAlign=n.default.lengthAttr(_,"val",d.LengthUsage.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":t.width=a.valueOfSize(_,"w");break;case"trHeight":this.parseTrHeight(_,t);break;case"strike":t["text-decoration"]=n.default.boolAttr(_,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=n.default.boolAttr(_,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=n.default.boolAttr(_,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=n.default.boolAttr(_,"val",!0)?"uppercase":"none";break;case"smallCaps":t["text-transform"]=n.default.boolAttr(_,"val",!0)?"lowercase":"none";break;case"u":this.parseUnderline(_,t);break;case"ind":case"tblInd":this.parseIndentation(_,t);break;case"rFonts":this.parseFont(_,t);break;case"tblBorders":this.parseBorderProperties(_,l||t);break;case"tblCellSpacing":t["border-spacing"]=a.valueOfMargin(_),t["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(_,t);break;case"bdr":t.border=a.valueOfBorder(_);break;case"tcBorders":this.parseBorderProperties(_,t);break;case"vanish":n.default.boolAttr(_,"val",!0)&&(t.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(_,l||t);break;case"tblLayout":t["table-layout"]=a.valueOfTblLayout(_);break;case"vAlign":t["vertical-align"]=a.valueOfTextAlignment(_);break;case"spacing":s.localName=="pPr"&&this.parseSpacing(_,t);break;case"wordWrap":n.default.boolAttr(_,"val")&&(t["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":t.hyphens=n.default.boolAttr(_,"val",!0)?"none":"auto";break;case"lang":t.$lang=n.default.attr(_,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${s.localName}.${_.localName}`)}}),t}parseUnderline(s,t){var l=n.default.attr(s,"val");if(l!=null){switch(l){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}var b=x.colorAttr(s,"color");b&&(t["text-decoration-color"]=b)}}parseFont(s,t){var l=[n.default.attr(s,"ascii"),a.themeValue(s,"asciiTheme")].filter(b=>b).join(", ");l.length>0&&(t["font-family"]=l)}parseIndentation(s,t){var l=n.default.lengthAttr(s,"firstLine"),b=n.default.lengthAttr(s,"hanging"),_=n.default.lengthAttr(s,"left"),E=n.default.lengthAttr(s,"start"),k=n.default.lengthAttr(s,"right"),T=n.default.lengthAttr(s,"end");l&&(t["text-indent"]=l),b&&(t["text-indent"]=`-${b}`),(_||E)&&(t["margin-left"]=_||E),(k||T)&&(t["margin-right"]=k||T)}parseSpacing(s,t){var l=n.default.lengthAttr(s,"before"),b=n.default.lengthAttr(s,"after"),_=n.default.intAttr(s,"line",null),E=n.default.attr(s,"lineRule");if(l&&(t["margin-top"]=l),b&&(t["margin-bottom"]=b),_!==null)switch(E){case"auto":t["line-height"]=`${(_/240).toFixed(2)}`;break;case"atLeast":t["line-height"]=`calc(100% + ${_/20}pt)`;break;default:t["line-height"]=t["min-height"]=_/20+"pt"}}parseMarginProperties(s,t){x.foreach(s,l=>{switch(l.localName){case"left":t["padding-left"]=a.valueOfMargin(l);break;case"right":t["padding-right"]=a.valueOfMargin(l);break;case"top":t["padding-top"]=a.valueOfMargin(l);break;case"bottom":t["padding-bottom"]=a.valueOfMargin(l)}})}parseTrHeight(s,t){n.default.attr(s,"hRule"),t.height=n.default.lengthAttr(s,"val")}parseBorderProperties(s,t){x.foreach(s,l=>{switch(l.localName){case"start":case"left":t["border-left"]=a.valueOfBorder(l);break;case"end":case"right":t["border-right"]=a.valueOfBorder(l);break;case"top":t["border-top"]=a.valueOfBorder(l);break;case"bottom":t["border-bottom"]=a.valueOfBorder(l)}})}};const w=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class x{static foreach(t,l){for(var b=0;b<t.childNodes.length;b++){let _=t.childNodes[b];_.nodeType==Node.ELEMENT_NODE&&l(_)}}static colorAttr(t,l,b=null,_="black"){var E=n.default.attr(t,l);if(E)return E=="auto"?_:w.includes(E)?E:`#${E}`;var k=n.default.attr(t,"themeColor");return k?`var(--docx-${k}-color)`:b}static sizeValue(t,l=d.LengthUsage.Dxa){return(0,d.convertLength)(t.textContent,l)}}class a{static themeValue(t,l){var b=n.default.attr(t,l);return b?`var(--docx-${b}-font)`:null}static valueOfSize(t,l){var b=d.LengthUsage.Dxa;switch(n.default.attr(t,"type")){case"dxa":break;case"pct":b=d.LengthUsage.Percent;break;case"auto":return"auto"}return n.default.lengthAttr(t,l,b)}static valueOfMargin(t){return n.default.lengthAttr(t,"w")}static valueOfBorder(t){if(n.default.attr(t,"val")=="nil")return"none";var l=x.colorAttr(t,"color");return`${n.default.lengthAttr(t,"sz",d.LengthUsage.Border)} solid ${l=="auto"?e.autos.borderColor:l}`}static valueOfTblLayout(t){return n.default.attr(t,"val")=="fixed"?"fixed":"auto"}static classNameOfCnfStyle(t){const l=n.default.attr(t,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((b,_)=>l[_]=="1").join(" ")}static valueOfJc(t){var l=n.default.attr(t,"val");switch(l){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return l}static valueOfVertAlign(t,l=!1){var b=n.default.attr(t,"val");switch(b){case"subscript":return"sub";case"superscript":return l?"sup":"super"}return l?null:b}static valueOfTextAlignment(t){var l=n.default.attr(t,"val");switch(l){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return l}static addSize(t,l){return t==null?l:l==null?t:`calc(${t} + ${l})`}static classNameOftblLook(t){const l=n.default.hexAttr(t,"val",0);let b="";return(n.default.boolAttr(t,"firstRow")||32&l)&&(b+=" first-row"),(n.default.boolAttr(t,"lastRow")||64&l)&&(b+=" last-row"),(n.default.boolAttr(t,"firstColumn")||128&l)&&(b+=" first-col"),(n.default.boolAttr(t,"lastColumn")||256&l)&&(b+=" last-col"),(n.default.boolAttr(t,"noHBand")||512&l)&&(b+=" no-hband"),(n.default.boolAttr(t,"noVBand")||1024&l)&&(b+=" no-vband"),b.trim()}}},162:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CorePropsPart=void 0;const r=u(530),m=u(614);class f extends r.Part{parseXml(i){this.props=(0,m.parseCoreProps)(i,this._package.xmlParser)}}e.CorePropsPart=f},614:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCoreProps=void 0,e.parseCoreProps=function(u,r){const m={};for(let f of r.elements(u))switch(f.localName){case"title":m.title=f.textContent;break;case"description":m.description=f.textContent;break;case"subject":m.subject=f.textContent;break;case"creator":m.creator=f.textContent;break;case"keywords":m.keywords=f.textContent;break;case"language":m.language=f.textContent;break;case"lastModifiedBy":m.lastModifiedBy=f.textContent;break;case"revision":f.textContent&&(m.revision=parseInt(f.textContent))}return m}},177:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CustomPropsPart=void 0;const r=u(530),m=u(821);class f extends r.Part{parseXml(i){this.props=(0,m.parseCustomProps)(i,this._package.xmlParser)}}e.CustomPropsPart=f},821:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCustomProps=void 0,e.parseCustomProps=function(u,r){return r.elements(u,"property").map(m=>{const f=m.firstChild;return{formatId:r.attr(m,"fmtid"),name:r.attr(m,"name"),type:f.nodeName,value:f.textContent}})}},665:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtendedPropsPart=void 0;const r=u(530),m=u(668);class f extends r.Part{parseXml(i){this.props=(0,m.parseExtendedProps)(i,this._package.xmlParser)}}e.ExtendedPropsPart=f},668:(v,e)=>{function u(r){if(r!==void 0)return parseInt(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.parseExtendedProps=void 0,e.parseExtendedProps=function(r,m){const f={};for(let n of m.elements(r))switch(n.localName){case"Template":f.template=n.textContent;break;case"Pages":f.pages=u(n.textContent);break;case"Words":f.words=u(n.textContent);break;case"Characters":f.characters=u(n.textContent);break;case"Application":f.application=n.textContent;break;case"Lines":f.lines=u(n.textContent);break;case"Paragraphs":f.paragraphs=u(n.textContent);break;case"Company":f.company=n.textContent;break;case"AppVersion":f.appVersion=n.textContent}return f}},172:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseBookmarkEnd=e.parseBookmarkStart=void 0;const r=u(120);e.parseBookmarkStart=function(m,f){return{type:r.DomType.BookmarkStart,id:f.attr(m,"id"),name:f.attr(m,"name"),colFirst:f.intAttr(m,"colFirst"),colLast:f.intAttr(m,"colLast")}},e.parseBookmarkEnd=function(m,f){return{type:r.DomType.BookmarkEnd,id:f.attr(m,"id")}}},191:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseBorders=e.parseBorder=void 0;const r=u(149);function m(f,n){return{type:n.attr(f,"val"),color:n.attr(f,"color"),size:n.lengthAttr(f,"sz",r.LengthUsage.Border),offset:n.lengthAttr(f,"space",r.LengthUsage.Point),frame:n.boolAttr(f,"frame"),shadow:n.boolAttr(f,"shadow")}}e.parseBorder=m,e.parseBorders=function(f,n){var i={};for(let y of n.elements(f))switch(y.localName){case"left":i.left=m(y,n);break;case"top":i.top=m(y,n);break;case"right":i.right=m(y,n);break;case"bottom":i.bottom=m(y,n)}return i}},149:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCommonProperty=e.convertPercentage=e.convertBoolean=e.convertLength=e.LengthUsage=e.ns=void 0,e.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},e.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:7874015748031496e-20,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:.004166666666666667,unit:""},VmlEmu:{mul:7874015748031496e-20,unit:""}},e.convertLength=function(u,r=e.LengthUsage.Dxa){return u==null||/.+(p[xt]|[%])$/.test(u)?u:`${(parseInt(u)*r.mul).toFixed(2)}${r.unit}`},e.convertBoolean=function(u,r=!1){switch(u){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return r}},e.convertPercentage=function(u){return u?parseInt(u)/100:null},e.parseCommonProperty=function(u,r,m){if(u.namespaceURI!=e.ns.wordml)return!1;switch(u.localName){case"color":r.color=m.attr(u,"val");break;case"sz":r.fontSize=m.lengthAttr(u,"val",e.LengthUsage.FontSize);break;default:return!1}return!0}},448:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentPart=void 0;const r=u(530);class m extends r.Part{constructor(n,i,y){super(n,i),this._documentParser=y}parseXml(n){this.body=this._documentParser.parseDocumentFile(n)}}e.DocumentPart=m},120:(v,e)=>{var u;Object.defineProperty(e,"__esModule",{value:!0}),e.OpenXmlElementBase=e.DomType=void 0,function(r){r.Document="document",r.Paragraph="paragraph",r.Run="run",r.Break="break",r.NoBreakHyphen="noBreakHyphen",r.Table="table",r.Row="row",r.Cell="cell",r.Hyperlink="hyperlink",r.Drawing="drawing",r.Image="image",r.Text="text",r.Tab="tab",r.Symbol="symbol",r.BookmarkStart="bookmarkStart",r.BookmarkEnd="bookmarkEnd",r.Footer="footer",r.Header="header",r.FootnoteReference="footnoteReference",r.EndnoteReference="endnoteReference",r.Footnote="footnote",r.Endnote="endnote",r.SimpleField="simpleField",r.ComplexField="complexField",r.Instruction="instruction",r.VmlPicture="vmlPicture",r.MmlMath="mmlMath",r.MmlMathParagraph="mmlMathParagraph",r.MmlFraction="mmlFraction",r.MmlFunction="mmlFunction",r.MmlFunctionName="mmlFunctionName",r.MmlNumerator="mmlNumerator",r.MmlDenominator="mmlDenominator",r.MmlRadical="mmlRadical",r.MmlBase="mmlBase",r.MmlDegree="mmlDegree",r.MmlSuperscript="mmlSuperscript",r.MmlSubscript="mmlSubscript",r.MmlPreSubSuper="mmlPreSubSuper",r.MmlSubArgument="mmlSubArgument",r.MmlSuperArgument="mmlSuperArgument",r.MmlNary="mmlNary",r.MmlDelimiter="mmlDelimiter",r.MmlRun="mmlRun",r.MmlEquationArray="mmlEquationArray",r.MmlLimit="mmlLimit",r.MmlLimitLower="mmlLimitLower",r.MmlMatrix="mmlMatrix",r.MmlMatrixRow="mmlMatrixRow",r.MmlBox="mmlBox",r.MmlBar="mmlBar",r.MmlGroupChar="mmlGroupChar",r.VmlElement="vmlElement",r.Inserted="inserted",r.Deleted="deleted",r.DeletedText="deletedText"}(u||(e.DomType=u={})),e.OpenXmlElementBase=class{constructor(){this.children=[],this.cssStyle={}}}},931:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseLineSpacing=void 0,e.parseLineSpacing=function(u,r){return{before:r.lengthAttr(u,"before"),after:r.lengthAttr(u,"after"),line:r.intAttr(u,"line"),lineRule:r.attr(u,"lineRule")}}},109:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseNumbering=e.parseTabs=e.parseParagraphProperty=e.parseParagraphProperties=void 0;const r=u(149),m=u(59),f=u(931),n=u(488);function i(h,p,g){if(h.namespaceURI!=r.ns.wordml)return!1;if((0,r.parseCommonProperty)(h,p,g))return!0;switch(h.localName){case"tabs":p.tabs=y(h,g);break;case"sectPr":p.sectionProps=(0,m.parseSectionProperties)(h,g);break;case"numPr":p.numbering=d(h,g);break;case"spacing":return p.lineSpacing=(0,f.parseLineSpacing)(h,g),!1;case"textAlignment":return p.textAlignment=g.attr(h,"val"),!1;case"keepNext":p.keepLines=g.boolAttr(h,"val",!0);break;case"keepNext":p.keepNext=g.boolAttr(h,"val",!0);break;case"pageBreakBefore":p.pageBreakBefore=g.boolAttr(h,"val",!0);break;case"outlineLvl":p.outlineLevel=g.intAttr(h,"val");break;case"pStyle":p.styleName=g.attr(h,"val");break;case"rPr":p.runProps=(0,n.parseRunProperties)(h,g);break;default:return!1}return!0}function y(h,p){return p.elements(h,"tab").map(g=>({position:p.lengthAttr(g,"pos"),leader:p.attr(g,"leader"),style:p.attr(g,"val")}))}function d(h,p){var g={};for(let w of p.elements(h))switch(w.localName){case"numId":g.id=p.attr(w,"val");break;case"ilvl":g.level=p.intAttr(w,"val")}return g}e.parseParagraphProperties=function(h,p){let g={};for(let w of p.elements(h))i(w,g,p);return g},e.parseParagraphProperty=i,e.parseTabs=y,e.parseNumbering=d},488:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseRunProperty=e.parseRunProperties=void 0;const r=u(149);function m(f,n,i){return!!(0,r.parseCommonProperty)(f,n,i)}e.parseRunProperties=function(f,n){let i={};for(let y of n.elements(f))m(y,i,n);return i},e.parseRunProperty=m},59:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseSectionProperties=e.SectionType=void 0;const r=u(472),m=u(191);var f;function n(d,h){return{numberOfColumns:h.intAttr(d,"num"),space:h.lengthAttr(d,"space"),separator:h.boolAttr(d,"sep"),equalWidth:h.boolAttr(d,"equalWidth",!0),columns:h.elements(d,"col").map(p=>({width:h.lengthAttr(p,"w"),space:h.lengthAttr(p,"space")}))}}function i(d,h){return{chapSep:h.attr(d,"chapSep"),chapStyle:h.attr(d,"chapStyle"),format:h.attr(d,"fmt"),start:h.intAttr(d,"start")}}function y(d,h){return{id:h.attr(d,"id"),type:h.attr(d,"type")}}(function(d){d.Continuous="continuous",d.NextPage="nextPage",d.NextColumn="nextColumn",d.EvenPage="evenPage",d.OddPage="oddPage"})(f||(e.SectionType=f={})),e.parseSectionProperties=function(d,h=r.default){var p,g,w={};for(let x of h.elements(d))switch(x.localName){case"pgSz":w.pageSize={width:h.lengthAttr(x,"w"),height:h.lengthAttr(x,"h"),orientation:h.attr(x,"orient")};break;case"type":w.type=h.attr(x,"val");break;case"pgMar":w.pageMargins={left:h.lengthAttr(x,"left"),right:h.lengthAttr(x,"right"),top:h.lengthAttr(x,"top"),bottom:h.lengthAttr(x,"bottom"),header:h.lengthAttr(x,"header"),footer:h.lengthAttr(x,"footer"),gutter:h.lengthAttr(x,"gutter")};break;case"cols":w.columns=n(x,h);break;case"headerReference":((p=w.headerRefs)!==null&&p!==void 0?p:w.headerRefs=[]).push(y(x,h));break;case"footerReference":((g=w.footerRefs)!==null&&g!==void 0?g:w.footerRefs=[]).push(y(x,h));break;case"titlePg":w.titlePage=h.boolAttr(x,"val",!0);break;case"pgBorders":w.pageBorders=(0,m.parseBorders)(x,h);break;case"pgNumType":w.pageNumber=i(x,h)}return w}},667:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.renderAsync=e.praseAsync=e.defaultOptions=void 0;const r=u(213),m=u(168),f=u(932);e.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},e.praseAsync=function(n,i=null){const y=Object.assign(Object.assign({},e.defaultOptions),i);return r.WordDocument.load(n,new m.DocumentParser(y),y)},e.renderAsync=function(n,i,y=null,d=null){return ce(this,null,function*(){const h=Object.assign(Object.assign({},e.defaultOptions),d),p=new f.HtmlRenderer(window.document),g=yield r.WordDocument.load(n,new m.DocumentParser(h),h);return p.render(g,i,y,h),g})}},380:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FontTablePart=void 0;const r=u(530),m=u(512);class f extends r.Part{parseXml(i){this.fonts=(0,m.parseFonts)(i,this._package.xmlParser)}}e.FontTablePart=f},512:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseEmbedFontRef=e.parseFont=e.parseFonts=void 0;const u={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function r(f,n){let i={name:n.attr(f,"name"),embedFontRefs:[]};for(let y of n.elements(f))switch(y.localName){case"family":i.family=n.attr(y,"val");break;case"altName":i.altName=n.attr(y,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":i.embedFontRefs.push(m(y,n))}return i}function m(f,n){return{id:n.attr(f,"id"),key:n.attr(f,"fontKey"),type:u[f.localName]}}e.parseFonts=function(f,n){return n.elements(f).map(i=>r(i,n))},e.parseFont=r,e.parseEmbedFontRef=m},984:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WmlFooter=e.WmlHeader=void 0;const r=u(120);class m extends r.OpenXmlElementBase{constructor(){super(...arguments),this.type=r.DomType.Header}}e.WmlHeader=m;class f extends r.OpenXmlElementBase{constructor(){super(...arguments),this.type=r.DomType.Footer}}e.WmlFooter=f},985:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FooterPart=e.HeaderPart=e.BaseHeaderFooterPart=void 0;const r=u(530),m=u(984);class f extends r.Part{constructor(i,y,d){super(i,y),this._documentParser=d}parseXml(i){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(i)}}e.BaseHeaderFooterPart=f,e.HeaderPart=class extends f{createRootElement(){return new m.WmlHeader}},e.FooterPart=class extends f{createRootElement(){return new m.WmlFooter}}},932:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlRenderer=void 0;const r=u(120),m=u(593),f=u(630),n=u(438),i="http://www.w3.org/1998/Math/MathML";function y(a,s,t){return h(void 0,a,s,t)}function d(a,s,t){return h("http://www.w3.org/2000/svg",a,s,t)}function h(a,s,t,l){var b=a?document.createElementNS(a,s):document.createElement(s);return Object.assign(b,t),l&&g(b,l),b}function p(a){a.innerHTML=""}function g(a,s){s.forEach(t=>a.appendChild((0,m.isString)(t)?document.createTextNode(t):t))}function w(a){return y("style",{innerHTML:a})}function x(a,s){a.appendChild(document.createComment(s))}e.HtmlRenderer=class{constructor(a){this.htmlDocument=a,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=y}render(a,s,t=null,l){var b;this.document=a,this.options=l,this.className=l.className,this.rootSelector=l.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,p(t=t||s),p(s),x(t,"docxjs library predefined styles"),t.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&l.useMathMLPolyfill&&(x(t,"docxjs mathml polyfill styles"),t.appendChild(w(n.default))),a.themePart&&(x(t,"docxjs document theme values"),this.renderTheme(a.themePart,t)),a.stylesPart!=null&&(this.styleMap=this.processStyles(a.stylesPart.styles),x(t,"docxjs document styles"),t.appendChild(this.renderStyles(a.stylesPart.styles))),a.numberingPart&&(this.prodessNumberings(a.numberingPart.domNumberings),x(t,"docxjs document numbering styles"),t.appendChild(this.renderNumbering(a.numberingPart.domNumberings,t))),a.footnotesPart&&(this.footnoteMap=(0,m.keyBy)(a.footnotesPart.notes,E=>E.id)),a.endnotesPart&&(this.endnoteMap=(0,m.keyBy)(a.endnotesPart.notes,E=>E.id)),a.settingsPart&&(this.defaultTabSize=(b=a.settingsPart.settings)===null||b===void 0?void 0:b.defaultTabStop),!l.ignoreFonts&&a.fontTablePart&&this.renderFontTable(a.fontTablePart,t);var _=this.renderSections(a.documentPart.body);this.options.inWrapper?s.appendChild(this.renderWrapper(_)):g(s,_),this.refreshTabStops()}renderTheme(a,s){var t,l;const b={},_=(t=a.theme)===null||t===void 0?void 0:t.fontScheme;_&&(_.majorFont&&(b["--docx-majorHAnsi-font"]=_.majorFont.latinTypeface),_.minorFont&&(b["--docx-minorHAnsi-font"]=_.minorFont.latinTypeface));const E=(l=a.theme)===null||l===void 0?void 0:l.colorScheme;if(E)for(let[T,o]of Object.entries(E.colors))b[`--docx-${T}-color`]=`#${o}`;const k=this.styleToString(`.${this.className}`,b);s.appendChild(w(k))}renderFontTable(a,s){for(let t of a.fonts)for(let l of t.embedFontRefs)this.document.loadFont(l.id,l.key).then(b=>{const _={"font-family":t.name,src:`url(${b})`};l.type!="bold"&&l.type!="boldItalic"||(_["font-weight"]="bold"),l.type!="italic"&&l.type!="boldItalic"||(_["font-style"]="italic"),x(s,`docxjs ${t.name} font`);const E=this.styleToString("@font-face",_);s.appendChild(w(E)),this.refreshTabStops()})}processStyleName(a){return a?`${this.className}_${(0,m.escapeClassName)(a)}`:this.className}processStyles(a){const s=(0,m.keyBy)(a.filter(l=>l.id!=null),l=>l.id);for(const l of a.filter(b=>b.basedOn)){var t=s[l.basedOn];if(t){l.paragraphProps=(0,m.mergeDeep)(l.paragraphProps,t.paragraphProps),l.runProps=(0,m.mergeDeep)(l.runProps,t.runProps);for(const b of t.styles){const _=l.styles.find(E=>E.target==b.target);_?this.copyStyleProperties(b.values,_.values):l.styles.push(Object.assign(Object.assign({},b),{values:Object.assign({},b.values)}))}}else this.options.debug&&console.warn(`Can't find base style ${l.basedOn}`)}for(let l of a)l.cssName=this.processStyleName(l.id);return s}prodessNumberings(a){var s;for(let t of a.filter(l=>l.pStyleName)){const l=this.findStyle(t.pStyleName);!((s=l==null?void 0:l.paragraphProps)===null||s===void 0)&&s.numbering&&(l.paragraphProps.numbering.level=t.level)}}processElement(a){if(a.children)for(var s of a.children)s.parent=a,s.type==r.DomType.Table?this.processTable(s):this.processElement(s)}processTable(a){for(var s of a.children)for(var t of s.children)t.cssStyle=this.copyStyleProperties(a.cellStyle,t.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(t)}copyStyleProperties(a,s,t=null){if(!a)return s;for(var l of(s==null&&(s={}),t==null&&(t=Object.getOwnPropertyNames(a)),t))a.hasOwnProperty(l)&&!s.hasOwnProperty(l)&&(s[l]=a[l]);return s}createSection(a,s){var t=this.createElement("section",{className:a});return s&&(s.pageMargins&&(t.style.paddingLeft=s.pageMargins.left,t.style.paddingRight=s.pageMargins.right,t.style.paddingTop=s.pageMargins.top,t.style.paddingBottom=s.pageMargins.bottom),s.pageSize&&(this.options.ignoreWidth||(t.style.width=s.pageSize.width),this.options.ignoreHeight||(t.style.minHeight=s.pageSize.height)),s.columns&&s.columns.numberOfColumns&&(t.style.columnCount=`${s.columns.numberOfColumns}`,t.style.columnGap=s.columns.space,s.columns.separator&&(t.style.columnRule="1px solid black"))),t}renderSections(a){const s=[];this.processElement(a);const t=this.splitBySection(a.children);let l=null;for(let _=0,E=t.length;_<E;_++){this.currentFootnoteIds=[];const k=t[_],T=k.sectProps||a.props,o=this.createSection(this.className,T);this.renderStyleValues(a.cssStyle,o),this.options.renderHeaders&&this.renderHeaderFooter(T.headerRefs,T,s.length,l!=T,o);var b=this.createElement("article");this.renderElements(k.elements,b),o.appendChild(b),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,o),this.options.renderEndnotes&&_==E-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,o),this.options.renderFooters&&this.renderHeaderFooter(T.footerRefs,T,s.length,l!=T,o),s.push(o),l=T}return s}renderHeaderFooter(a,s,t,l,b){var _,E;if(a){var k=(E=(_=s.titlePage&&l?a.find(o=>o.type=="first"):null)!==null&&_!==void 0?_:t%2==1?a.find(o=>o.type=="even"):null)!==null&&E!==void 0?E:a.find(o=>o.type=="default"),T=k&&this.document.findPartByRelId(k.id,this.document.documentPart);T&&(this.currentPart=T,this.usedHederFooterParts.includes(T.path)||(this.processElement(T.rootElement),this.usedHederFooterParts.push(T.path)),this.renderElements([T.rootElement],b),this.currentPart=null)}}isPageBreakElement(a){return a.type==r.DomType.Break&&(a.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:a.break=="page")}splitBySection(a){var s,t={sectProps:null,elements:[]},l=[t];for(let z of a){if(z.type==r.DomType.Paragraph){const $=this.findStyle(z.styleName);!((s=$==null?void 0:$.paragraphProps)===null||s===void 0)&&s.pageBreakBefore&&(t.sectProps=b,t={sectProps:null,elements:[]},l.push(t))}if(t.elements.push(z),z.type==r.DomType.Paragraph){const $=z;var b=$.sectionProps,_=-1,E=-1;if(this.options.breakPages&&$.children&&(_=$.children.findIndex(L=>{var J,W;return(E=(W=(J=L.children)===null||J===void 0?void 0:J.findIndex(this.isPageBreakElement.bind(this)))!==null&&W!==void 0?W:-1)!=-1})),(b||_!=-1)&&(t.sectProps=b,t={sectProps:null,elements:[]},l.push(t)),_!=-1){let L=$.children[_],J=E<L.children.length-1;if(_<$.children.length-1||J){var k=z.children,T=Object.assign(Object.assign({},z),{children:k.slice(_)});if(z.children=k.slice(0,_),t.elements.push(T),J){let W=L.children,Y=Object.assign(Object.assign({},L),{children:W.slice(0,E)});z.children.push(Y),L.children=W.slice(E)}}}}}let o=null;for(let z=l.length-1;z>=0;z--)l[z].sectProps==null?l[z].sectProps=o:o=l[z].sectProps;return l}renderWrapper(a){return this.createElement("div",{className:`${this.className}-wrapper`},a)}renderDefaultStyle(){var a=this.className;return w(`
.${a}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }
.${a}-wrapper>section.${a} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
.${a} { color: black; hyphens: auto; }
section.${a} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }
section.${a}>article { margin-bottom: auto; z-index: 1; }
section.${a}>footer { z-index: 1; }
.${a} table { border-collapse: collapse; }
.${a} table td, .${a} table th { vertical-align: top; }
.${a} p { margin: 0pt; min-height: 1em; }
.${a} span { white-space: pre-wrap; overflow-wrap: break-word; }
.${a} a { color: inherit; text-decoration: inherit; }
`)}renderNumbering(a,s){var t="",l=[];for(var b of a){var _=`p.${this.numberingClass(b.id,b.level)}`,E="none";if(b.bullet){let k=`--${this.className}-${b.bullet.src}`.toLowerCase();t+=this.styleToString(`${_}:before`,{content:"' '",display:"inline-block",background:`var(${k})`},b.bullet.style),this.document.loadNumberingImage(b.bullet.src).then(T=>{var o=`${this.rootSelector} { ${k}: url(${T}) }`;s.appendChild(w(o))})}else if(b.levelText){let k=this.numberingCounter(b.id,b.level);const T=k+" "+(b.start-1);b.level>0&&(t+=this.styleToString(`p.${this.numberingClass(b.id,b.level-1)}`,{"counter-reset":T})),l.push(T),t+=this.styleToString(`${_}:before`,Object.assign({content:this.levelTextToContent(b.levelText,b.suff,b.id,this.numFormatToCssValue(b.format)),"counter-increment":k},b.rStyle))}else E=this.numFormatToCssValue(b.format);t+=this.styleToString(_,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":E},b.pStyle))}return l.length>0&&(t+=this.styleToString(this.rootSelector,{"counter-reset":l.join(" ")})),w(t)}renderStyles(a){var s,t="";const l=this.styleMap,b=(0,m.keyBy)(a.filter(T=>T.isDefault),T=>T.target);for(const T of a){var _=T.styles;if(T.linked){var E=T.linked&&l[T.linked];E?_=_.concat(E.styles):this.options.debug&&console.warn(`Can't find linked style ${T.linked}`)}for(const o of _){var k=`${(s=T.target)!==null&&s!==void 0?s:""}.${T.cssName}`;T.target!=o.target&&(k+=` ${o.target}`),b[T.target]==T&&(k=`.${this.className} ${T.target}, `+k),t+=this.styleToString(k,o.values)}}return w(t)}renderNotes(a,s,t){var l=a.map(_=>s[_]).filter(_=>_);if(l.length>0){var b=this.createElement("ol",null,this.renderElements(l));t.appendChild(b)}}renderElement(a){switch(a.type){case r.DomType.Paragraph:return this.renderParagraph(a);case r.DomType.BookmarkStart:return this.renderBookmarkStart(a);case r.DomType.BookmarkEnd:return null;case r.DomType.Run:return this.renderRun(a);case r.DomType.Table:return this.renderTable(a);case r.DomType.Row:return this.renderTableRow(a);case r.DomType.Cell:return this.renderTableCell(a);case r.DomType.Hyperlink:return this.renderHyperlink(a);case r.DomType.Drawing:return this.renderDrawing(a);case r.DomType.Image:return this.renderImage(a);case r.DomType.Text:case r.DomType.Text:return this.renderText(a);case r.DomType.DeletedText:return this.renderDeletedText(a);case r.DomType.Tab:return this.renderTab(a);case r.DomType.Symbol:return this.renderSymbol(a);case r.DomType.Break:return this.renderBreak(a);case r.DomType.Footer:return this.renderContainer(a,"footer");case r.DomType.Header:return this.renderContainer(a,"header");case r.DomType.Footnote:case r.DomType.Endnote:return this.renderContainer(a,"li");case r.DomType.FootnoteReference:return this.renderFootnoteReference(a);case r.DomType.EndnoteReference:return this.renderEndnoteReference(a);case r.DomType.NoBreakHyphen:return this.createElement("wbr");case r.DomType.VmlPicture:return this.renderVmlPicture(a);case r.DomType.VmlElement:return this.renderVmlElement(a);case r.DomType.MmlMath:return this.renderContainerNS(a,i,"math",{xmlns:i});case r.DomType.MmlMathParagraph:return this.renderContainer(a,"span");case r.DomType.MmlFraction:return this.renderContainerNS(a,i,"mfrac");case r.DomType.MmlBase:return this.renderContainerNS(a,i,a.parent.type==r.DomType.MmlMatrixRow?"mtd":"mrow");case r.DomType.MmlNumerator:case r.DomType.MmlDenominator:case r.DomType.MmlFunction:case r.DomType.MmlLimit:case r.DomType.MmlBox:return this.renderContainerNS(a,i,"mrow");case r.DomType.MmlGroupChar:return this.renderMmlGroupChar(a);case r.DomType.MmlLimitLower:return this.renderContainerNS(a,i,"munder");case r.DomType.MmlMatrix:return this.renderContainerNS(a,i,"mtable");case r.DomType.MmlMatrixRow:return this.renderContainerNS(a,i,"mtr");case r.DomType.MmlRadical:return this.renderMmlRadical(a);case r.DomType.MmlSuperscript:return this.renderContainerNS(a,i,"msup");case r.DomType.MmlSubscript:return this.renderContainerNS(a,i,"msub");case r.DomType.MmlDegree:case r.DomType.MmlSuperArgument:case r.DomType.MmlSubArgument:return this.renderContainerNS(a,i,"mn");case r.DomType.MmlFunctionName:return this.renderContainerNS(a,i,"ms");case r.DomType.MmlDelimiter:return this.renderMmlDelimiter(a);case r.DomType.MmlRun:return this.renderMmlRun(a);case r.DomType.MmlNary:return this.renderMmlNary(a);case r.DomType.MmlPreSubSuper:return this.renderMmlPreSubSuper(a);case r.DomType.MmlBar:return this.renderMmlBar(a);case r.DomType.MmlEquationArray:return this.renderMllList(a);case r.DomType.Inserted:return this.renderInserted(a);case r.DomType.Deleted:return this.renderDeleted(a)}return null}renderChildren(a,s){return this.renderElements(a.children,s)}renderElements(a,s){if(a==null)return null;var t=a.flatMap(l=>this.renderElement(l)).filter(l=>l!=null);return s&&g(s,t),t}renderContainer(a,s,t){return this.createElement(s,t,this.renderChildren(a))}renderContainerNS(a,s,t,l){return h(s,t,l,this.renderChildren(a))}renderParagraph(a){var s,t,l,b,_=this.createElement("p");const E=this.findStyle(a.styleName);(s=a.tabs)!==null&&s!==void 0||(a.tabs=(t=E==null?void 0:E.paragraphProps)===null||t===void 0?void 0:t.tabs),this.renderClass(a,_),this.renderChildren(a,_),this.renderStyleValues(a.cssStyle,_),this.renderCommonProperties(_.style,a);const k=(l=a.numbering)!==null&&l!==void 0?l:(b=E==null?void 0:E.paragraphProps)===null||b===void 0?void 0:b.numbering;return k&&_.classList.add(this.numberingClass(k.id,k.level)),_}renderRunProperties(a,s){this.renderCommonProperties(a,s)}renderCommonProperties(a,s){s!=null&&(s.color&&(a.color=s.color),s.fontSize&&(a["font-size"]=s.fontSize))}renderHyperlink(a){var s=this.createElement("a");if(this.renderChildren(a,s),this.renderStyleValues(a.cssStyle,s),a.href)s.href=a.href;else if(a.id){const t=this.document.documentPart.rels.find(l=>l.id==a.id&&l.targetMode==="External");s.href=t==null?void 0:t.target}return s}renderDrawing(a){var s=this.createElement("div");return s.style.display="inline-block",s.style.position="relative",s.style.textIndent="0px",this.renderChildren(a,s),this.renderStyleValues(a.cssStyle,s),s}renderImage(a){let s=this.createElement("img");return this.renderStyleValues(a.cssStyle,s),this.document&&this.document.loadDocumentImage(a.src,this.currentPart).then(t=>{s.src=t}),s}renderText(a){return this.htmlDocument.createTextNode(a.text)}renderDeletedText(a){return this.options.renderEndnotes?this.htmlDocument.createTextNode(a.text):null}renderBreak(a){return a.break=="textWrapping"?this.createElement("br"):null}renderInserted(a){return this.options.renderChanges?this.renderContainer(a,"ins"):this.renderChildren(a)}renderDeleted(a){return this.options.renderChanges?this.renderContainer(a,"del"):null}renderSymbol(a){var s=this.createElement("span");return s.style.fontFamily=a.font,s.innerHTML=`&#x${a.char};`,s}renderFootnoteReference(a){var s=this.createElement("sup");return this.currentFootnoteIds.push(a.id),s.textContent=`${this.currentFootnoteIds.length}`,s}renderEndnoteReference(a){var s=this.createElement("sup");return this.currentEndnoteIds.push(a.id),s.textContent=`${this.currentEndnoteIds.length}`,s}renderTab(a){var s,t=this.createElement("span");if(t.innerHTML="&emsp;",this.options.experimental){t.className=this.tabStopClass();var l=(s=function(b,_){for(var E=b.parent;E!=null&&E.type!=_;)E=E.parent;return E}(a,r.DomType.Paragraph))===null||s===void 0?void 0:s.tabs;this.currentTabs.push({stops:l,span:t})}return t}renderBookmarkStart(a){var s=this.createElement("span");return s.id=a.name,s}renderRun(a){if(a.fieldRun)return null;const s=this.createElement("span");if(a.id&&(s.id=a.id),this.renderClass(a,s),this.renderStyleValues(a.cssStyle,s),a.verticalAlign){const t=this.createElement(a.verticalAlign);this.renderChildren(a,t),s.appendChild(t)}else this.renderChildren(a,s);return s}renderTable(a){let s=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},a.columns&&s.appendChild(this.renderTableColumns(a.columns)),this.renderClass(a,s),this.renderChildren(a,s),this.renderStyleValues(a.cssStyle,s),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),s}renderTableColumns(a){let s=this.createElement("colgroup");for(let t of a){let l=this.createElement("col");t.width&&(l.style.width=t.width),s.appendChild(l)}return s}renderTableRow(a){let s=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(a,s),this.renderChildren(a,s),this.renderStyleValues(a.cssStyle,s),this.currentCellPosition.row++,s}renderTableCell(a){let s=this.createElement("td");const t=this.currentCellPosition.col;return a.verticalMerge?a.verticalMerge=="restart"?(this.currentVerticalMerge[t]=s,s.rowSpan=1):this.currentVerticalMerge[t]&&(this.currentVerticalMerge[t].rowSpan+=1,s.style.display="none"):this.currentVerticalMerge[t]=null,this.renderClass(a,s),this.renderChildren(a,s),this.renderStyleValues(a.cssStyle,s),a.span&&(s.colSpan=a.span),this.currentCellPosition.col+=s.colSpan,s}renderVmlPicture(a){var s=y("div");return this.renderChildren(a,s),s}renderVmlElement(a){var s,t,l=d("svg");l.setAttribute("style",a.cssStyleText);const b=this.renderVmlChildElement(a);return!((s=a.imageHref)===null||s===void 0)&&s.id&&((t=this.document)===null||t===void 0||t.loadDocumentImage(a.imageHref.id,this.currentPart).then(_=>b.setAttribute("href",_))),l.appendChild(b),requestAnimationFrame(()=>{const _=l.firstElementChild.getBBox();l.setAttribute("width",`${Math.ceil(_.x+_.width)}`),l.setAttribute("height",`${Math.ceil(_.y+_.height)}`)}),l}renderVmlChildElement(a){const s=d(a.tagName);Object.entries(a.attrs).forEach(([t,l])=>s.setAttribute(t,l));for(let t of a.children)t.type==r.DomType.VmlElement?s.appendChild(this.renderVmlChildElement(t)):s.appendChild(...(0,m.asArray)(this.renderElement(t)));return s}renderMmlRadical(a){var s;const t=a.children.find(b=>b.type==r.DomType.MmlBase);if(!((s=a.props)===null||s===void 0)&&s.hideDegree)return h(i,"msqrt",null,this.renderElements([t]));const l=a.children.find(b=>b.type==r.DomType.MmlDegree);return h(i,"mroot",null,this.renderElements([t,l]))}renderMmlDelimiter(a){var s,t;const l=[];return l.push(h(i,"mo",null,[(s=a.props.beginChar)!==null&&s!==void 0?s:"("])),l.push(...this.renderElements(a.children)),l.push(h(i,"mo",null,[(t=a.props.endChar)!==null&&t!==void 0?t:")"])),h(i,"mrow",null,l)}renderMmlNary(a){var s,t;const l=[],b=(0,m.keyBy)(a.children,z=>z.type),_=b[r.DomType.MmlSuperArgument],E=b[r.DomType.MmlSubArgument],k=_?h(i,"mo",null,(0,m.asArray)(this.renderElement(_))):null,T=E?h(i,"mo",null,(0,m.asArray)(this.renderElement(E))):null,o=h(i,"mo",null,[(t=(s=a.props)===null||s===void 0?void 0:s.char)!==null&&t!==void 0?t:"∫"]);return k||T?l.push(h(i,"munderover",null,[o,T,k])):k?l.push(h(i,"mover",null,[o,k])):T?l.push(h(i,"munder",null,[o,T])):l.push(o),l.push(...this.renderElements(b[r.DomType.MmlBase].children)),h(i,"mrow",null,l)}renderMmlPreSubSuper(a){const s=[],t=(0,m.keyBy)(a.children,T=>T.type),l=t[r.DomType.MmlSuperArgument],b=t[r.DomType.MmlSubArgument],_=l?h(i,"mo",null,(0,m.asArray)(this.renderElement(l))):null,E=b?h(i,"mo",null,(0,m.asArray)(this.renderElement(b))):null,k=h(i,"mo",null);return s.push(h(i,"msubsup",null,[k,E,_])),s.push(...this.renderElements(t[r.DomType.MmlBase].children)),h(i,"mrow",null,s)}renderMmlGroupChar(a){const s=a.props.verticalJustification==="bot"?"mover":"munder",t=this.renderContainerNS(a,i,s);return a.props.char&&t.appendChild(h(i,"mo",null,[a.props.char])),t}renderMmlBar(a){const s=this.renderContainerNS(a,i,"mrow");switch(a.props.position){case"top":s.style.textDecoration="overline";break;case"bottom":s.style.textDecoration="underline"}return s}renderMmlRun(a){const s=h(i,"ms");return this.renderClass(a,s),this.renderStyleValues(a.cssStyle,s),this.renderChildren(a,s),s}renderMllList(a){const s=h(i,"mtable");this.renderClass(a,s),this.renderStyleValues(a.cssStyle,s),this.renderChildren(a);for(let t of this.renderChildren(a))s.appendChild(h(i,"mtr",null,[h(i,"mtd",null,[t])]));return s}renderStyleValues(a,s){for(let t in a)t.startsWith("$")?s.setAttribute(t.slice(1),a[t]):s.style[t]=a[t]}renderClass(a,s){a.className&&(s.className=a.className),a.styleName&&s.classList.add(this.processStyleName(a.styleName))}findStyle(a){var s;return a&&((s=this.styleMap)===null||s===void 0?void 0:s[a])}numberingClass(a,s){return`${this.className}-num-${a}-${s}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(a,s,t=null){let l=`${a} {\r
`;for(const b in s)b.startsWith("$")||(l+=` ${b}: ${s[b]};\r
`);return t&&(l+=t),l+`}\r
`}numberingCounter(a,s){return`${this.className}-num-${a}-${s}`}levelTextToContent(a,s,t,l){var b;return`"${a.replace(/%\d*/g,_=>{let E=parseInt(_.substring(1),10)-1;return`"counter(${this.numberingCounter(t,E)}, ${l})"`})}${(b={tab:"\\9",space:"\\a0"}[s])!==null&&b!==void 0?b:""}"`}numFormatToCssValue(a){var s;return(s={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[a])!==null&&s!==void 0?s:a}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const a=(0,f.computePixelToPoint)();for(let s of this.currentTabs)(0,f.updateTabStop)(s.span,s.stops,this.defaultTabSize,a)},500))}}},630:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateTabStop=e.computePixelToPoint=void 0;const u={pos:0,leader:"none",style:"left"};function r(m){return parseFloat(m)}e.computePixelToPoint=function(m=document.body){const f=document.createElement("div");f.style.width="100pt",m.appendChild(f);const n=100/f.offsetWidth;return m.removeChild(f),n},e.updateTabStop=function(m,f,n,i=.75){const y=m.closest("p"),d=m.getBoundingClientRect(),h=y.getBoundingClientRect(),p=getComputedStyle(y),g=(f==null?void 0:f.length)>0?f.map(k=>({pos:r(k.position),leader:k.leader,style:k.style})).sort((k,T)=>k.pos-T.pos):[u],w=g[g.length-1],x=h.width*i,a=r(n);let s=w.pos+a;if(s<x)for(;s<x&&g.length<50;s+=a)g.push(Object.assign(Object.assign({},u),{pos:s}));const t=parseFloat(p.marginLeft),l=h.left+t,b=(d.left-l)*i,_=g.find(k=>k.style!="clear"&&k.pos>b);if(_==null)return;let E=1;if(_.style=="right"||_.style=="center"){const k=Array.from(y.querySelectorAll(`.${m.className}`)),T=k.indexOf(m)+1,o=document.createRange();o.setStart(m,1),T<k.length?o.setEndBefore(k[T]):o.setEndAfter(y);const z=_.style=="center"?.5:1,$=o.getBoundingClientRect(),L=$.left+z*$.width-(h.left-t);E=_.pos-L*i}else E=_.pos-b;switch(m.innerHTML="&nbsp;",m.style.textDecoration="inherit",m.style.wordSpacing=`${E.toFixed(0)}pt`,_.leader){case"dot":case"middleDot":m.style.textDecoration="underline",m.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":m.style.textDecoration="underline"}}},881:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WmlEndnote=e.WmlFootnote=e.WmlBaseNote=void 0;const r=u(120);class m{}e.WmlBaseNote=m,e.WmlFootnote=class extends m{constructor(){super(...arguments),this.type=r.DomType.Footnote}},e.WmlEndnote=class extends m{constructor(){super(...arguments),this.type=r.DomType.Endnote}}},735:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EndnotesPart=e.FootnotesPart=e.BaseNotePart=void 0;const r=u(530),m=u(881);class f extends r.Part{constructor(i,y,d){super(i,y),this._documentParser=d}}e.BaseNotePart=f,e.FootnotesPart=class extends f{constructor(n,i,y){super(n,i,y)}parseXml(n){this.notes=this._documentParser.parseNotes(n,"footnote",m.WmlFootnote)}},e.EndnotesPart=class extends f{constructor(n,i,y){super(n,i,y)}parseXml(n){this.notes=this._documentParser.parseNotes(n,"endnote",m.WmlEndnote)}}},527:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NumberingPart=void 0;const r=u(530),m=u(682);class f extends r.Part{constructor(i,y,d){super(i,y),this._documentParser=d}parseXml(i){Object.assign(this,(0,m.parseNumberingPart)(i,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(i)}}e.NumberingPart=f},682:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseNumberingBulletPicture=e.parseNumberingLevelOverrride=e.parseNumberingLevel=e.parseAbstractNumbering=e.parseNumbering=e.parseNumberingPart=void 0;const r=u(109),m=u(488);function f(h,p){let g={id:p.attr(h,"numId"),overrides:[]};for(let w of p.elements(h))switch(w.localName){case"abstractNumId":g.abstractId=p.attr(w,"val");break;case"lvlOverride":g.overrides.push(y(w,p))}return g}function n(h,p){let g={id:p.attr(h,"abstractNumId"),levels:[]};for(let w of p.elements(h))switch(w.localName){case"name":g.name=p.attr(w,"val");break;case"multiLevelType":g.multiLevelType=p.attr(w,"val");break;case"numStyleLink":g.numberingStyleLink=p.attr(w,"val");break;case"styleLink":g.styleLink=p.attr(w,"val");break;case"lvl":g.levels.push(i(w,p))}return g}function i(h,p){let g={level:p.intAttr(h,"ilvl")};for(let w of p.elements(h))switch(w.localName){case"start":g.start=p.attr(w,"val");break;case"lvlRestart":g.restart=p.intAttr(w,"val");break;case"numFmt":g.format=p.attr(w,"val");break;case"lvlText":g.text=p.attr(w,"val");break;case"lvlJc":g.justification=p.attr(w,"val");break;case"lvlPicBulletId":g.bulletPictureId=p.attr(w,"val");break;case"pStyle":g.paragraphStyle=p.attr(w,"val");break;case"pPr":g.paragraphProps=(0,r.parseParagraphProperties)(w,p);break;case"rPr":g.runProps=(0,m.parseRunProperties)(w,p)}return g}function y(h,p){let g={level:p.intAttr(h,"ilvl")};for(let w of p.elements(h))switch(w.localName){case"startOverride":g.start=p.intAttr(w,"val");break;case"lvl":g.numberingLevel=i(w,p)}return g}function d(h,p){var g=p.element(h,"pict"),w=g&&p.element(g,"shape"),x=w&&p.element(w,"imagedata");return x?{id:p.attr(h,"numPicBulletId"),referenceId:p.attr(x,"id"),style:p.attr(w,"style")}:null}e.parseNumberingPart=function(h,p){let g={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let w of p.elements(h))switch(w.localName){case"num":g.numberings.push(f(w,p));break;case"abstractNum":g.abstractNumberings.push(n(w,p));break;case"numPicBullet":g.bulletPictures.push(d(w,p))}return g},e.parseNumbering=f,e.parseAbstractNumbering=n,e.parseNumberingLevel=i,e.parseNumberingLevelOverrride=y,e.parseNumberingBulletPicture=d},472:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XmlParser=e.serializeXmlString=e.parseXmlString=void 0;const r=u(149);e.parseXmlString=function(n,i=!1){var y;i&&(n=n.replace(/<[?].*[?]>/,"")),n=(y=n).charCodeAt(0)===65279?y.substring(1):y;const d=new DOMParser().parseFromString(n,"application/xml"),h=(p=d.getElementsByTagName("parsererror")[0])===null||p===void 0?void 0:p.textContent;var p;if(h)throw new Error(h);return d},e.serializeXmlString=function(n){return new XMLSerializer().serializeToString(n)};class m{elements(i,y=null){const d=[];for(let h=0,p=i.childNodes.length;h<p;h++){let g=i.childNodes.item(h);g.nodeType!=1||y!=null&&g.localName!=y||d.push(g)}return d}element(i,y){for(let d=0,h=i.childNodes.length;d<h;d++){let p=i.childNodes.item(d);if(p.nodeType==1&&p.localName==y)return p}return null}elementAttr(i,y,d){var h=this.element(i,y);return h?this.attr(h,d):void 0}attrs(i){return Array.from(i.attributes)}attr(i,y){for(let d=0,h=i.attributes.length;d<h;d++){let p=i.attributes.item(d);if(p.localName==y)return p.value}return null}intAttr(i,y,d=null){var h=this.attr(i,y);return h?parseInt(h):d}hexAttr(i,y,d=null){var h=this.attr(i,y);return h?parseInt(h,16):d}floatAttr(i,y,d=null){var h=this.attr(i,y);return h?parseFloat(h):d}boolAttr(i,y,d=null){return(0,r.convertBoolean)(this.attr(i,y),d)}lengthAttr(i,y,d=r.LengthUsage.Dxa){return(0,r.convertLength)(this.attr(i,y),d)}}e.XmlParser=m;const f=new m;e.default=f},287:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SettingsPart=void 0;const r=u(530),m=u(846);class f extends r.Part{constructor(i,y){super(i,y)}parseXml(i){this.settings=(0,m.parseSettings)(i,this._package.xmlParser)}}e.SettingsPart=f},846:(v,e)=>{function u(r,m){var f={defaultNoteIds:[]};for(let n of m.elements(r))switch(n.localName){case"numFmt":f.nummeringFormat=m.attr(n,"val");break;case"footnote":case"endnote":f.defaultNoteIds.push(m.attr(n,"id"))}return f}Object.defineProperty(e,"__esModule",{value:!0}),e.parseNoteProperties=e.parseSettings=void 0,e.parseSettings=function(r,m){var f={};for(let n of m.elements(r))switch(n.localName){case"defaultTabStop":f.defaultTabStop=m.lengthAttr(n,"val");break;case"footnotePr":f.footnoteProps=u(n,m);break;case"endnotePr":f.endnoteProps=u(n,m);break;case"autoHyphenation":f.autoHyphenation=m.boolAttr(n,"val")}return f},e.parseNoteProperties=u},240:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StylesPart=void 0;const r=u(530);class m extends r.Part{constructor(n,i,y){super(n,i),this._documentParser=y}parseXml(n){this.styles=this._documentParser.parseStylesFile(n)}}e.StylesPart=m},893:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ThemePart=void 0;const r=u(530),m=u(55);class f extends r.Part{constructor(i,y){super(i,y)}parseXml(i){this.theme=(0,m.parseTheme)(i,this._package.xmlParser)}}e.ThemePart=f},55:(v,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseFontInfo=e.parseFontScheme=e.parseColorScheme=e.parseTheme=e.DmlTheme=void 0;class u{}function r(n,i){var y={name:i.attr(n,"name"),colors:{}};for(let p of i.elements(n)){var d=i.element(p,"srgbClr"),h=i.element(p,"sysClr");d?y.colors[p.localName]=i.attr(d,"val"):h&&(y.colors[p.localName]=i.attr(h,"lastClr"))}return y}function m(n,i){var y={name:i.attr(n,"name")};for(let d of i.elements(n))switch(d.localName){case"majorFont":y.majorFont=f(d,i);break;case"minorFont":y.minorFont=f(d,i)}return y}function f(n,i){return{latinTypeface:i.elementAttr(n,"latin","typeface"),eaTypeface:i.elementAttr(n,"ea","typeface"),csTypeface:i.elementAttr(n,"cs","typeface")}}e.DmlTheme=u,e.parseTheme=function(n,i){var y=new u,d=i.element(n,"themeElements");for(let h of i.elements(d))switch(h.localName){case"clrScheme":y.colorScheme=r(h,i);break;case"fontScheme":y.fontScheme=m(h,i)}return y},e.parseColorScheme=r,e.parseFontScheme=m,e.parseFontInfo=f},593:(v,e)=>{function u(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.asArray=e.formatCssRules=e.parseCssRules=e.mergeDeep=e.isString=e.isObject=e.blobToBase64=e.keyBy=e.resolvePath=e.splitPath=e.escapeClassName=void 0,e.escapeClassName=function(r){return r==null?void 0:r.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},e.splitPath=function(r){let m=r.lastIndexOf("/")+1;return[m==0?"":r.substring(0,m),m==0?r:r.substring(m)]},e.resolvePath=function(r,m){try{const f="http://docx/";return new URL(r,f+m).toString().substring(f.length)}catch(f){return`${m}${r}`}},e.keyBy=function(r,m){return r.reduce((f,n)=>(f[m(n)]=n,f),{})},e.blobToBase64=function(r){return new Promise((m,f)=>{const n=new FileReader;n.onloadend=()=>m(n.result),n.onerror=()=>f(),n.readAsDataURL(r)})},e.isObject=u,e.isString=function(r){return typeof r=="string"||r instanceof String},e.mergeDeep=function r(m,...f){var n;if(!f.length)return m;const i=f.shift();if(u(m)&&u(i))for(const y in i)u(i[y])?r((n=m[y])!==null&&n!==void 0?n:m[y]={},i[y]):m[y]=i[y];return r(m,...f)},e.parseCssRules=function(r){const m={};for(const f of r.split(";")){const[n,i]=f.split(":");m[n]=i}return m},e.formatCssRules=function(r){return Object.entries(r).map((m,f)=>`${m}: ${f}`).join(";")},e.asArray=function(r){return Array.isArray(r)?r:[r]}},320:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseVmlElement=e.VmlElement=void 0;const r=u(149),m=u(120),f=u(472);class n extends m.OpenXmlElementBase{constructor(){super(...arguments),this.type=m.DomType.VmlElement,this.attrs={}}}function i(d){var h;return{stroke:f.default.attr(d,"color"),"stroke-width":(h=f.default.lengthAttr(d,"weight",r.LengthUsage.Emu))!==null&&h!==void 0?h:"1px"}}function y(d){return d.split(",")}e.VmlElement=n,e.parseVmlElement=function d(h,p){var g=new n;switch(h.localName){case"rect":g.tagName="rect",Object.assign(g.attrs,{width:"100%",height:"100%"});break;case"oval":g.tagName="ellipse",Object.assign(g.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":g.tagName="line";break;case"shape":g.tagName="g";break;case"textbox":g.tagName="foreignObject",Object.assign(g.attrs,{width:"100%",height:"100%"});break;default:return null}for(const w of f.default.attrs(h))switch(w.localName){case"style":g.cssStyleText=w.value;break;case"fillcolor":g.attrs.fill=w.value;break;case"from":const[x,a]=y(w.value);Object.assign(g.attrs,{x1:x,y1:a});break;case"to":const[s,t]=y(w.value);Object.assign(g.attrs,{x2:s,y2:t})}for(const w of f.default.elements(h))switch(w.localName){case"stroke":Object.assign(g.attrs,i(w));break;case"fill":Object.assign(g.attrs,{});break;case"imagedata":g.tagName="image",Object.assign(g.attrs,{width:"100%",height:"100%"}),g.imageHref={id:f.default.attr(w,"id"),title:f.default.attr(w,"title")};break;case"txbxContent":g.children.push(...p.parseBodyElements(w));break;default:const x=d(w,p);x&&g.children.push(x)}return g}},213:(v,e,u)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.deobfuscate=e.WordDocument=void 0;const r=u(461),m=u(380),f=u(522),n=u(448),i=u(593),y=u(527),d=u(240),h=u(985),p=u(665),g=u(162),w=u(893),x=u(735),a=u(287),s=u(177),t=[{type:r.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:r.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:r.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:r.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}];class l{constructor(){this.parts=[],this.partsMap={}}static load(E,k,T){return ce(this,null,function*(){var o=new l;return o._options=T,o._parser=k,o._package=yield f.OpenXmlPackage.load(E,T),o.rels=yield o._package.loadRelationships(),yield Promise.all(t.map(z=>{var $;const L=($=o.rels.find(J=>J.type===z.type))!==null&&$!==void 0?$:z;return o.loadRelationshipPart(L.target,L.type)})),o})}save(E="blob"){return this._package.save(E)}loadRelationshipPart(E,k){return ce(this,null,function*(){var T;if(this.partsMap[E])return this.partsMap[E];if(!this._package.get(E))return null;let o=null;switch(k){case r.RelationshipTypes.OfficeDocument:this.documentPart=o=new n.DocumentPart(this._package,E,this._parser);break;case r.RelationshipTypes.FontTable:this.fontTablePart=o=new m.FontTablePart(this._package,E);break;case r.RelationshipTypes.Numbering:this.numberingPart=o=new y.NumberingPart(this._package,E,this._parser);break;case r.RelationshipTypes.Styles:this.stylesPart=o=new d.StylesPart(this._package,E,this._parser);break;case r.RelationshipTypes.Theme:this.themePart=o=new w.ThemePart(this._package,E);break;case r.RelationshipTypes.Footnotes:this.footnotesPart=o=new x.FootnotesPart(this._package,E,this._parser);break;case r.RelationshipTypes.Endnotes:this.endnotesPart=o=new x.EndnotesPart(this._package,E,this._parser);break;case r.RelationshipTypes.Footer:o=new h.FooterPart(this._package,E,this._parser);break;case r.RelationshipTypes.Header:o=new h.HeaderPart(this._package,E,this._parser);break;case r.RelationshipTypes.CoreProperties:this.corePropsPart=o=new g.CorePropsPart(this._package,E);break;case r.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=o=new p.ExtendedPropsPart(this._package,E);break;case r.RelationshipTypes.CustomProperties:o=new s.CustomPropsPart(this._package,E);break;case r.RelationshipTypes.Settings:this.settingsPart=o=new a.SettingsPart(this._package,E)}if(o==null)return Promise.resolve(null);if(this.partsMap[E]=o,this.parts.push(o),yield o.load(),((T=o.rels)===null||T===void 0?void 0:T.length)>0){const[z]=(0,i.splitPath)(o.path);yield Promise.all(o.rels.map($=>this.loadRelationshipPart((0,i.resolvePath)($.target,z),$.type)))}return o})}loadDocumentImage(E,k){return ce(this,null,function*(){const T=yield this.loadResource(k!=null?k:this.documentPart,E,"blob");return this.blobToURL(T)})}loadNumberingImage(E){return ce(this,null,function*(){const k=yield this.loadResource(this.numberingPart,E,"blob");return this.blobToURL(k)})}loadFont(E,k){return ce(this,null,function*(){const T=yield this.loadResource(this.fontTablePart,E,"uint8array");return T&&this.blobToURL(new Blob([b(T,k)]))})}blobToURL(E){return E?this._options.useBase64URL?(0,i.blobToBase64)(E):URL.createObjectURL(E):null}findPartByRelId(E,k=null){var T,o=((T=k.rels)!==null&&T!==void 0?T:this.rels).find($=>$.id==E);const z=k?(0,i.splitPath)(k.path)[0]:"";return o?this.partsMap[(0,i.resolvePath)(o.target,z)]:null}getPathById(E,k){const T=E.rels.find(z=>z.id==k),[o]=(0,i.splitPath)(E.path);return T?(0,i.resolvePath)(T.target,o):null}loadResource(E,k,T){const o=this.getPathById(E,k);return o?this._package.load(o,T):Promise.resolve(null)}}function b(_,E){const k=E.replace(/{|}|-/g,""),T=new Array(16);for(let o=0;o<16;o++)T[16-o-1]=parseInt(k.substr(2*o,2),16);for(let o=0;o<32;o++)_[o]=_[o]^T[o%16];return _}e.WordDocument=l,e.deobfuscate=b},583:v=>{v.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:v=>{v.exports=C}},D={};function P(v){var e=D[v];if(e!==void 0)return e.exports;var u=D[v]={id:v,exports:{}};return M[v](u,u.exports,P),u.exports}return P.m=M,P.n=v=>{var e=v&&v.__esModule?()=>v.default:()=>v;return P.d(e,{a:e}),e},P.d=(v,e)=>{for(var u in e)P.o(e,u)&&!P.o(v,u)&&Object.defineProperty(v,u,{enumerable:!0,get:e[u]})},P.o=(v,e)=>Object.prototype.hasOwnProperty.call(v,e),P.r=v=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},P.b=document.baseURI||self.location.href,P(667)})())})(ze);var Ve=ze.exports;const Ze={ignoreLastRenderedPageBreak:!1};function $e(q,ee={}){return typeof q=="string"?Xe(q,ee):Promise.resolve(q)}function Xe(q,ee){return fetch(q,ee).then(C=>C.status!==200?Promise.reject(C):C)}function Ge(q){return ce(this,null,function*(){let ee;return q instanceof Blob?ee=q:q instanceof Response?ee=yield q.blob():q instanceof ArrayBuffer&&(ee=new Blob([q])),ee})}function qe(q,ee,C={}){if(!q)return ee.innerHTML="",Promise.resolve();let M;return q instanceof Blob?M=q:q instanceof Response?M=q.blob():q instanceof ArrayBuffer&&(M=new Blob([q])),Ve.renderAsync(M,ee,ee,Re(Re({},Ze),C))}const ye={getData:$e,render:qe,getBlob:Ge};function Je(q,ee){return ce(this,null,function*(){ee&&(ee instanceof ArrayBuffer&&(ee=new Blob([ee])),Ke(q,URL.createObjectURL(ee)))})}function Ke(q,ee){let C=document.createElement("a");C.download=q,C.style.display="none",C.href=ee,document.body.appendChild(C),C.click(),document.body.removeChild(C)}const Qe=(q,ee)=>{const C=q.__vccOpts||q;for(const[M,D]of ee)C[M]=D;return C},Ye=ge.defineComponent({name:"VueOfficeDocx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(q,{emit:ee}){const C=ge.ref(null);let M=null;function D(){let v=C.value;ye.getData(q.src,q.requestOptions).then(e=>ce(this,null,function*(){M=yield ye.getBlob(e),ye.render(M,v,q.options).then(()=>{ee("rendered")}).catch(u=>{ye.render("",v,q.options),ee("error",u)})})).catch(e=>{ye.render("",v,q.options),ee("error",e)})}ge.onMounted(()=>{q.src&&D()}),ge.watch(()=>q.src,()=>{q.src?D():ye.render("",C.value,q.options).then(()=>{ee("rendered")})});function P(v){Je(v||`vue-office-docx-${new Date().getTime()}.docx`,M)}return{rootRef:C,save:P}}}),et={class:"vue-office-docx"},tt={class:"vue-office-docx-main",ref:"rootRef"};function rt(q,ee,C,M,D,P){return be.openBlock(),be.createElementBlock("div",et,[be.createElementVNode("div",tt,null,512)])}const Pe=Qe(Ye,[["render",rt]]);return Pe.install=function(q){q.component(Pe.name,Pe)},Pe})})(Le);var pt=Le.exports;const ft=it(pt),mt="https://xiaoxian521.github.io/hyperlink/other/word.docx",yt=ot({name:"Word",__name:"word",setup(De){function Ee(){}return(ge,be)=>(ct(),lt(ut(ft),{src:mt,onRendered:Ee}))}});export{yt as default};