(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a8b7c00"],{"2d46":function(e,t,r){(function(t,n,a){(function(t,n){e.exports=n(r("8afd"))})(0,(function(e){"use strict";var r=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&u(e,r,t[r]);if(o)for(var r of o(t))c.call(t,r)&&u(e,r,t[r]);return e},d=(e,t)=>i(e,s(t)),f=(e,t,r)=>new Promise((n,a)=>{var i=e=>{try{o(r.next(e))}catch(w){a(w)}},s=e=>{try{o(r.throw(e))}catch(w){a(w)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);o((r=r.apply(e,t)).next())});"undefined"==typeof window.setImmediate&&(window.setImmediate=function(e,...t){setTimeout(()=>e(t))});var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var b={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
    */(function(e,t){(function(t){e.exports=t()})((function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var l="function"==typeof g&&g;if(!o&&l)return l(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,(function(e){var r=t[s][1][e];return a(r||e)}),u,u.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof g&&g,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){var n=e("./utils"),a=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,a,s,o,l,c,u=[],h=0,d=e.length,f=d,p="string"!==n.getTypeOf(e);h<e.length;)f=d-h,a=p?(t=e[h++],r=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),r=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),s=t>>2,o=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|a>>6:64,c=2<f?63&a:64,u.push(i.charAt(s)+i.charAt(o)+i.charAt(l)+i.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,s,o,l,c=0,u=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&f--,e.charAt(e.length-2)===i.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=a.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(s=i.indexOf(e.charAt(c++)))>>4,r=(15&s)<<4|(o=i.indexOf(e.charAt(c++)))>>2,n=(3&o)<<6|(l=i.indexOf(e.charAt(c++))),d[u++]=t,64!==o&&(d[u++]=r),64!==l&&(d[u++]=n);return d}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),a=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function o(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}o.prototype={getContentWorker:function(){var e=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new i).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),a=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var i=a,s=n+r;e^=-1;for(var o=n;o<s;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=a,s=n+r;e^=-1;for(var o=n;o<s;o++)e=e>>>8^i[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako"),i=e("./utils"),s=e("./stream/GenericWorker"),o=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",i.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(o,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function a(e,t,r,a,s,u){var h,d,f=e.file,p=e.compression,m=u!==o.utf8encode,g=i.transformTo("string",u(f.name)),b=i.transformTo("string",o.utf8encode(f.name)),v=f.comment,y=i.transformTo("string",u(v)),_=i.transformTo("string",o.utf8encode(v)),k=b.length!==f.name.length,w=_.length!==v.length,x="",S="",C="",P=f.dir,E=f.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var N=0;t&&(N|=8),m||!k&&!w||(N|=2048);var T=0,R=0;P&&(T|=16),"UNIX"===s?(R=798,T|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,P)):(R=20,T|=function(e){return 63&(e||0)}(f.dosPermissions)),h=E.getUTCHours(),h<<=6,h|=E.getUTCMinutes(),h<<=5,h|=E.getUTCSeconds()/2,d=E.getUTCFullYear()-1980,d<<=4,d|=E.getUTCMonth()+1,d<<=5,d|=E.getUTCDate(),k&&(S=n(1,1)+n(l(g),4)+b,x+="up"+n(S.length,2)+S),w&&(C=n(1,1)+n(l(y),4)+_,x+="uc"+n(C.length,2)+C);var M="";return M+="\n\0",M+=n(N,2),M+=p.magic,M+=n(h,2),M+=n(d,2),M+=n(A.crc32,4),M+=n(A.compressedSize,4),M+=n(A.uncompressedSize,4),M+=n(g.length,2),M+=n(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+M+g+x,dirRecord:c.CENTRAL_FILE_HEADER+n(R,2)+M+n(y.length,2)+"\0\0\0\0"+n(T,4)+n(a,4)+g+x+y}}var i=e("../utils"),s=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,s),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=a(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=a(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,a=function(e,t,r,a,s){var o=i.transformTo("string",s(a));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(o.length,2)+o}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),a=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var i=new a(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach((function(e,r){s++;var a=function(e,t){var r=e||t,a=n[r];if(!a)throw new Error(r+" is not a valid compression method !");return a}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(a,o).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=s}catch(o){i.error(o)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;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 e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),a=e("./external"),i=e("./utf8"),s=e("./zipEntries"),o=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new a.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new o);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new s(t);return r.load(e),r})).then((function(e){var r=[a.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(c(n[i]));return a.Promise.all(r)})).then((function(e){for(var a=e.shift(),i=a.files,s=0;s<i.length;s++){var o=i[s],l=o.fileNameStr,c=n.resolve(o.fileNameStr);r.file(c,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(r.file(c).unsafeOriginalName=l)}return a.zipComment.length&&(r.comment=a.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),a=e("../stream/GenericWorker");function i(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,a),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function a(e,t,r){n.call(this,t),this._helper=e;var a=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),r&&r(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof n,newBufferFrom:function(e,t){if(n.from&&n.from!==Uint8Array.from)return n.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new n(e,t)},allocBuffer:function(e){if(n.alloc)return n.alloc(e);var t=new n(e);return t.fill(0),t},isBuffer:function(e){return n.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,a=i.getTypeOf(t),o=i.extend(r||{},l);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=m(e)),o.createFolders&&(n=p(e))&&g.call(this,n,!0);var h="string"===a&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!h),(t instanceof c&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",a="string");var b=null;b=t instanceof c||t instanceof s?t:d.isNode&&d.isStream(t)?new f(e,t):i.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var v=new u(e,b,o);this.files[e]=v}var a=e("./utf8"),i=e("./utils"),s=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var a=e;return this.filter((function(e,t){return!t.dir&&a.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(b(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=h.generateWorker(this,r,n)}catch(l){(t=new s("error")).error(l)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./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(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function a(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.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 t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},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))}},t.exports=a},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),a=e("../support"),i=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new o(e):a.uint8array?new l(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),a=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),a=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),a=e("./GenericWorker");function i(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,a),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),a=e("./GenericWorker");function i(e){a.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var a=e("../utils"),i=e("./ConvertWorker"),s=e("./GenericWorker"),o=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(f){}function h(e,t){return new c.Promise((function(r,i){var s=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,r){s.push(e),t&&t(r)})).on("error",(function(e){s=[],i(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return a.newBlob(a.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return a.transformTo(e,t)}}(c,function(e,t){var r,a=0,i=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(s),r=0;r<t.length;r++)i.set(t[r],a),a+=t[r].length;return i;case"nodebuffer":return n.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,s),u);r(e)}catch(t){i(t)}s=[]})).resume()}))}function d(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,a.checkSupport(n),this._worker=e.pipe(new i(n)),e.lock()}catch(o){this._worker=new s("error"),this._worker.error(o)}}d.prototype={accumulate:function(e){return h(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){a.delay(t,arguments,r)})),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(a.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof n,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var a=new ArrayBuffer(0);try{r.blob=0===new Blob([a],{type:"application/zip"}).size}catch(s){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(a),r.blob=0===i.getBlob("application/zip").size}catch(o){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(s){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),a=e("./support"),i=e("./nodejsUtils"),s=e("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(e){return a.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,s,o=e.length,l=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=a.uint8array?new Uint8Array(l):new Array(l),i=s=0;s<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,a,i,s=e.length,l=new Array(2*s);for(t=r=0;t<s;)if((a=e[t++])<128)l[r++]=a;else if(4<(i=o[a]))l[r++]=65533,t+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&t<s;)a=a<<6|63&e[t++],i--;1<i?l[r++]=65533:a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|1023&a)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(c,s),c.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(t),l=t;s!==t.length&&(a.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,s),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),a=e("./base64"),i=e("./nodejsUtils"),s=e("./external");function o(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(a){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(i){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],a=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;a<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,i)))),a+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),a=!0;if("uint8array"===n?a=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=c.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(i){t=Math.floor(t/2)}return c.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var d={};d.string={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,i.allocBuffer(e.length))}},d.array={string:u,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},d.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:u,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return i.newBufferFrom(e)}},d.nodebuffer={string:u,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:o},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return d[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var a=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&i.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,i,o,c){return s.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=a.decode(t):i&&!0!==o&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),a=e("./utils"),i=e("./signature"),s=e("./zipEntry"),o=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},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 e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=a.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},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 e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.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(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),a=e("./utils"),i=e("./compressedObject"),s=e("./crc32"),o=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(a)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var a=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),s=e("./utf8"),o=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(o){(t=new l("error")).error(o)}return new a(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)n.prototype[c[h]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var i=0,s=new a(u),o=e.document.createTextNode("");s.observe(o,{characterData:!0}),r=function(){o.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,"undefined"!=typeof p?p:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function a(){}var i={},s=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==a&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(e,t,r){n((function(){var n;try{n=t(r)}catch(a){return i.reject(e,a)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function a(t){r||(r=!0,i.resolve(e,t))}var s=p((function(){t(a,n)}));"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(a);return this.state!==l?h(r,this.state===o?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=p(d,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=o,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e},i.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(a),e)},c.reject=function(e){var t=new this(a);return i.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=new Array(r),o=0,l=-1,c=new this(a);++l<r;)u(e[l],l);return c;function u(e,a){t.resolve(e).then((function(e){s[a]=e,++o!==r||n||(n=!0,i.resolve(c,s))}),(function(e){n||(n=!0,i.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r,n=e.length,s=!1;if(!n)return this.resolve([]);for(var o=-1,l=new this(a);++o<n;)r=e[o],t.resolve(r).then((function(e){s||(s=!0,i.resolve(l,e))}),(function(e){s||(s=!0,i.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),a=e("./utils/common"),i=e("./utils/strings"),s=e("./zlib/messages"),o=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,h=0,d=8;function f(e){if(!(this instanceof f))return new f(e);this.options=a.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(s[r]);this._dict_set=!0}}function p(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,o=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new a.Buf8(u),o.next_out=0,o.avail_out=u),1!==(r=n.deflate(o,s))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(i.buf2binstring(a.shrinkBuf(o.output,o.next_out))):this.onData(a.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==s||(this.onEnd(c),!(o.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),a=e("./utils/common"),i=e("./utils/strings"),s=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(o[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function d(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}h.prototype.push=function(e,t){var r,o,l,c,h,d,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new a.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(d="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,d)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==s.Z_STREAM_END&&(0!==f.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(f.output,f.next_out),c=f.next_out-l,h=i.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&a.arraySet(f.output,f.output,l,c,0),this.onData(h)):this.onData(a.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=h,r.inflate=d,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},r.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){var t,r,n,a,i,s;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),t=a=0,r=e.length;t<r;t++)i=e[t],s.set(i,a),a+=i.length;return s}},i={arraySet:function(e,t,r,n,a){for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(c){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){i=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,a,i,s,o=e.length,l=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),i=s=0;s<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,a,i,o=t||e.length,c=new Array(2*o);for(r=n=0;r<o;)if((a=e[r++])<128)c[n++]=a;else if(4<(i=s[a]))c[n++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&r<o;)a=a<<6|63&e[r++],i--;1<i?c[n++]=65533:a<65536?c[n++]=a:(a-=65536,c[n++]=55296|a>>10&1023,c[n++]=56320|1023&a)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var a=65535&e|0,i=e>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;i=i+(a=a+t[n++]|0)|0,--s;);a%=65521,i%=65521}return a|i<<16|0}},{}],44:[function(e,t,r){t.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(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,a){var i=n,s=a+r;e^=-1;for(var o=a;o<s;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}},{}],46:[function(e,t,r){var n,a=e("../utils/common"),i=e("./trees"),s=e("./adler32"),o=e("./crc32"),l=e("./messages"),c=0,u=4,h=0,d=-2,f=-1,p=4,m=2,g=8,b=9,v=286,y=30,_=19,k=2*v+1,w=15,x=3,S=258,C=S+x+1,P=42,E=113,A=1,N=2,T=3,R=4;function M(e,t){return e.msg=l[t],t}function O(e){return(e<<1)-(4<e?9:0)}function z(e){for(var t=e.length;0<=--t;)e[t]=0}function B(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function D(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,B(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,a=e.max_chain_length,i=e.strstart,s=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-C?e.strstart-(e.w_size-C):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+S,f=c[i+s-1],p=c[i+s];e.prev_length>=e.good_match&&(a>>=2),o>e.lookahead&&(o=e.lookahead);do{if(c[(r=t)+s]===p&&c[r+s-1]===f&&c[r]===c[i]&&c[++r]===c[i+1]){i+=2,r++;do{}while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&i<d);if(n=S-(d-i),i=d-S,s<n){if(e.match_start=t,o<=(s=n))break;f=c[i+s-1],p=c[i+s]}}}while((t=h[t&u])>l&&0!=--a);return s<=e.lookahead?s:e.lookahead}function j(e){var t,r,n,i,l,c,u,h,d,f,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-C)){for(a.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);i+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,h=e.strstart+e.lookahead,d=i,f=void 0,f=c.avail_in,d<f&&(f=d),r=0===f?0:(c.avail_in-=f,a.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=s(c.adler,u,f,h):2===c.state.wrap&&(c.adler=o(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+x-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<x)););}while(e.lookahead<C&&0!==e.strm.avail_in)}function U(e,t){for(var r,n;;){if(e.lookahead<C){if(j(e),e.lookahead<C&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-C&&(e.match_length=L(e,r)),e.match_length>=x)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(D(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<x-1?e.strstart:x-1,t===u?(D(e,!0),0===e.strm.avail_out?T:R):e.last_lit&&(D(e,!1),0===e.strm.avail_out)?A:N}function $(e,t){for(var r,n,a;;){if(e.lookahead<C){if(j(e),e.lookahead<C&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=x-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-C&&(e.match_length=L(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===x&&4096<e.strstart-e.match_start)&&(e.match_length=x-1)),e.prev_length>=x&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-x,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=x-1,e.strstart++,n&&(D(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&D(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<x-1?e.strstart:x-1,t===u?(D(e,!0),0===e.strm.avail_out?T:R):e.last_lit&&(D(e,!1),0===e.strm.avail_out)?A:N}function W(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}function H(){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 a.Buf16(2*k),this.dyn_dtree=new a.Buf16(2*(2*y+1)),this.bl_tree=new a.Buf16(2*(2*_+1)),z(this.dyn_ltree),z(this.dyn_dtree),z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*v+1),z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*v+1),z(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 V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?P:E,e.adler=2===t.wrap?0:1,t.last_flush=c,i._tr_init(t),h):M(e,d)}function Z(e){var t=V(e);return t===h&&function(e){e.window_size=2*e.w_size,z(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=x-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,r,n,i,s){if(!e)return d;var o=1;if(t===f&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||b<i||r!==g||n<8||15<n||t<0||9<t||s<0||p<s)return M(e,d);8===n&&(n=9);var l=new H;return(e.state=l).strm=e,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+x-1)/x),l.window=new a.Buf8(2*l.w_size),l.head=new a.Buf16(l.hash_size),l.prev=new a.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new a.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,Z(e)}n=[new W(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===c)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,D(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-C&&(D(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(D(e,!0),0===e.strm.avail_out?T:R):(e.strstart>e.block_start&&(D(e,!1),e.strm.avail_out),A)})),new W(4,4,8,4,U),new W(4,5,16,8,U),new W(4,6,32,32,U),new W(4,4,16,16,$),new W(8,16,32,32,$),new W(8,16,128,128,$),new W(8,32,128,256,$),new W(32,128,258,1024,$),new W(32,258,258,4096,$)],r.deflateInit=function(e,t){return G(e,t,g,15,8,0)},r.deflateInit2=G,r.deflateReset=Z,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,h):d},r.deflate=function(e,t){var r,a,s,l;if(!e||!e.state||5<t||t<0)return e?M(e,d):d;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==u)return M(e,0===e.avail_out?-5:d);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===P)if(2===a.wrap)e.adler=0,I(a,31),I(a,139),I(a,8),a.gzhead?(I(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)),I(a,255&a.gzhead.time),I(a,a.gzhead.time>>8&255),I(a,a.gzhead.time>>16&255),I(a,a.gzhead.time>>24&255),I(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),I(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(I(a,255&a.gzhead.extra.length),I(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=o(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(I(a,0),I(a,0),I(a,0),I(a,0),I(a,0),I(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),I(a,3),a.status=E);else{var f=g+(a.w_bits-8<<4)<<8;f|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(f|=32),f+=31-f%31,a.status=E,F(a,f),0!==a.strstart&&(F(a,e.adler>>>16),F(a,65535&e.adler)),e.adler=1}if(69===a.status)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&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),B(e),s=a.pending,a.pending!==a.pending_buf_size));)I(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.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(73===a.status)if(a.gzhead.name){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),B(e),s=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,I(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),B(e),s=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,I(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),0===l&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&B(e),a.pending+2<=a.pending_buf_size&&(I(a,255&e.adler),I(a,e.adler>>8&255),e.adler=0,a.status=E)):a.status=E),0!==a.pending){if(B(e),0===e.avail_out)return a.last_flush=-1,h}else if(0===e.avail_in&&O(t)<=O(r)&&t!==u)return M(e,-5);if(666===a.status&&0!==e.avail_in)return M(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==c&&666!==a.status){var p=2===a.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===c)return A;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(D(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(D(e,!0),0===e.strm.avail_out?T:R):e.last_lit&&(D(e,!1),0===e.strm.avail_out)?A:N}(a,t):3===a.strategy?function(e,t){for(var r,n,a,s,o=e.window;;){if(e.lookahead<=S){if(j(e),e.lookahead<=S&&t===c)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0<e.strstart&&(n=o[a=e.strstart-1])===o[++a]&&n===o[++a]&&n===o[++a]){s=e.strstart+S;do{}while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<s);e.match_length=S-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=i._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(D(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(D(e,!0),0===e.strm.avail_out?T:R):e.last_lit&&(D(e,!1),0===e.strm.avail_out)?A:N}(a,t):n[a.level].func(a,t);if(p!==T&&p!==R||(a.status=666),p===A||p===T)return 0===e.avail_out&&(a.last_flush=-1),h;if(p===N&&(1===t?i._tr_align(a):5!==t&&(i._tr_stored_block(a,0,0,!1),3===t&&(z(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),B(e),0===e.avail_out))return a.last_flush=-1,h}return t!==u?h:a.wrap<=0?1:(2===a.wrap?(I(a,255&e.adler),I(a,e.adler>>8&255),I(a,e.adler>>16&255),I(a,e.adler>>24&255),I(a,255&e.total_in),I(a,e.total_in>>8&255),I(a,e.total_in>>16&255),I(a,e.total_in>>24&255)):(F(a,e.adler>>>16),F(a,65535&e.adler)),B(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?h:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==P&&69!==t&&73!==t&&91!==t&&103!==t&&t!==E&&666!==t?M(e,d):(e.state=null,t===E?M(e,-3):h):d},r.deflateSetDictionary=function(e,t){var r,n,i,o,l,c,u,f,p=t.length;if(!e||!e.state||2===(o=(r=e.state).wrap)||1===o&&r.status!==P||r.lookahead)return d;for(1===o&&(e.adler=s(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===o&&(z(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new a.Buf8(r.w_size),a.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,j(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+x-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=x-1,j(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,r.wrap=o,h},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.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(e,t,r){t.exports=function(e,t){var r,n,a,i,s,o,l,c,u,h,d,f,p,m,g,b,v,y,_,k,w,x,S,C,P;r=e.state,n=e.next_in,C=e.input,a=n+(e.avail_in-5),i=e.next_out,P=e.output,s=i-(t-e.avail_out),o=i+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,h=r.wnext,d=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;e:do{p<15&&(f+=C[n++]<<p,p+=8,f+=C[n++]<<p,p+=8),y=m[f&b];t:for(;;){if(f>>>=_=y>>>24,p-=_,0===(_=y>>>16&255))P[i++]=65535&y;else{if(!(16&_)){if(!(64&_)){y=m[(65535&y)+(f&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}k=65535&y,(_&=15)&&(p<_&&(f+=C[n++]<<p,p+=8),k+=f&(1<<_)-1,f>>>=_,p-=_),p<15&&(f+=C[n++]<<p,p+=8,f+=C[n++]<<p,p+=8),y=g[f&v];r:for(;;){if(f>>>=_=y>>>24,p-=_,!(16&(_=y>>>16&255))){if(!(64&_)){y=g[(65535&y)+(f&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(w=65535&y,p<(_&=15)&&(f+=C[n++]<<p,(p+=8)<_&&(f+=C[n++]<<p,p+=8)),l<(w+=f&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=_,p-=_,(_=i-s)<w){if(u<(_=w-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=d,(x=0)===h){if(x+=c-_,_<k){for(k-=_;P[i++]=d[x++],--_;);x=i-w,S=P}}else if(h<_){if(x+=c+h-_,(_-=h)<k){for(k-=_;P[i++]=d[x++],--_;);if(x=0,h<k){for(k-=_=h;P[i++]=d[x++],--_;);x=i-w,S=P}}}else if(x+=h-_,_<k){for(k-=_;P[i++]=d[x++],--_;);x=i-w,S=P}for(;2<k;)P[i++]=S[x++],P[i++]=S[x++],P[i++]=S[x++],k-=3;k&&(P[i++]=S[x++],1<k&&(P[i++]=S[x++]))}else{for(x=i-w;P[i++]=P[x++],P[i++]=P[x++],P[i++]=P[x++],2<(k-=3););k&&(P[i++]=P[x++],1<k&&(P[i++]=P[x++]))}break}}break}}while(n<a&&i<o);n-=k=p>>3,f&=(1<<(p-=k<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=i<o?o-i+257:257-(i-o),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),a=e("./adler32"),i=e("./crc32"),s=e("./inffast"),o=e("./inftrees"),l=1,c=2,u=0,h=-2,d=1,f=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):h}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):h}function y(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,v(e))):h}function _(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=y(e,t))!==u&&(e.state=null),r):h}var k,w,x=!0;function S(e){if(x){var t;for(k=new n.Buf32(512),w=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(l,e.lens,0,288,k,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(c,e.lens,0,32,w,0,e.work,{bits:5}),x=!1}e.lencode=k,e.lenbits=9,e.distcode=w,e.distbits=5}function C(e,t,r,a){var i,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),a>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a<(i=s.wsize-s.wnext)&&(i=a),n.arraySet(s.window,t,r-a,i,s.wnext),(a-=i)?(n.arraySet(s.window,t,r-a,a,0),s.wnext=a,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}r.inflateReset=v,r.inflateReset2=y,r.inflateResetKeep=b,r.inflateInit=function(e){return _(e,15)},r.inflateInit2=_,r.inflate=function(e,t){var r,f,p,g,b,v,y,_,k,w,x,P,E,A,N,T,R,M,O,z,B,D,I,F,L=0,j=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,_=r.hold,k=r.bits,w=v,x=y,D=u;e:for(;;)switch(r.mode){case d:if(0===r.wrap){r.mode=13;break}for(;k<16;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(2&r.wrap&&35615===_){j[r.check=0]=255&_,j[1]=_>>>8&255,r.check=i(r.check,j,2,0),k=_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",r.mode=30;break}if(k-=4,B=8+(15&(_>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&_?10:12,k=_=0;break;case 2:for(;k<16;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(r.flags=_,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=_>>8&1),512&r.flags&&(j[0]=255&_,j[1]=_>>>8&255,r.check=i(r.check,j,2,0)),k=_=0,r.mode=3;case 3:for(;k<32;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}r.head&&(r.head.time=_),512&r.flags&&(j[0]=255&_,j[1]=_>>>8&255,j[2]=_>>>16&255,j[3]=_>>>24&255,r.check=i(r.check,j,4,0)),k=_=0,r.mode=4;case 4:for(;k<16;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}r.head&&(r.head.xflags=255&_,r.head.os=_>>8),512&r.flags&&(j[0]=255&_,j[1]=_>>>8&255,r.check=i(r.check,j,2,0)),k=_=0,r.mode=5;case 5:if(1024&r.flags){for(;k<16;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}r.length=_,r.head&&(r.head.extra_len=_),512&r.flags&&(j[0]=255&_,j[1]=_>>>8&255,r.check=i(r.check,j,2,0)),k=_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(v<(P=r.length)&&(P=v),P&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,g,P,B)),512&r.flags&&(r.check=i(r.check,f,P,g)),v-=P,g+=P,r.length-=P),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===v)break e;for(P=0;B=f[g+P++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&P<v;);if(512&r.flags&&(r.check=i(r.check,f,P,g)),v-=P,g+=P,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===v)break e;for(P=0;B=f[g+P++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&P<v;);if(512&r.flags&&(r.check=i(r.check,f,P,g)),v-=P,g+=P,B)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;k<16;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(_!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}k=_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;k<32;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}e.adler=r.check=m(_),k=_=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=_,r.bits=k,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){_>>>=7&k,k-=7&k,r.mode=27;break}for(;k<3;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}switch(r.last=1&_,k-=1,3&(_>>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6!==t)break;_>>>=2,k-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}_>>>=2,k-=2;break;case 14:for(_>>>=7&k,k-=7&k;k<32;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if((65535&_)!=(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&_,k=_=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(P=r.length){if(v<P&&(P=v),y<P&&(P=y),0===P)break e;n.arraySet(p,f,g,P,b),v-=P,g+=P,y-=P,b+=P,r.length-=P;break}r.mode=12;break;case 17:for(;k<14;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(r.nlen=257+(31&_),_>>>=5,k-=5,r.ndist=1+(31&_),_>>>=5,k-=5,r.ncode=4+(15&_),_>>>=4,k-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;k<3;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}r.lens[U[r.have++]]=7&_,_>>>=3,k-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,I={bits:r.lenbits},D=o(0,r.lens,0,19,r.lencode,0,r.work,I),r.lenbits=I.bits,D){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(L=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,R=65535&L,!((N=L>>>24)<=k);){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(R<16)_>>>=N,k-=N,r.lens[r.have++]=R;else{if(16===R){for(F=N+2;k<F;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(_>>>=N,k-=N,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],P=3+(3&_),_>>>=2,k-=2}else if(17===R){for(F=N+3;k<F;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}k-=N,B=0,P=3+(7&(_>>>=N)),_>>>=3,k-=3}else{for(F=N+7;k<F;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}k-=N,B=0,P=11+(127&(_>>>=N)),_>>>=7,k-=7}if(r.have+P>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;P--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,I={bits:r.lenbits},D=o(l,r.lens,0,r.nlen,r.lencode,0,r.work,I),r.lenbits=I.bits,D){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,I={bits:r.distbits},D=o(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,I),r.distbits=I.bits,D){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=v&&258<=y){e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=_,r.bits=k,s(e,x),b=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,_=r.hold,k=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;T=(L=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,R=65535&L,!((N=L>>>24)<=k);){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(T&&!(240&T)){for(M=N,O=T,z=R;T=(L=r.lencode[z+((_&(1<<M+O)-1)>>M)])>>>16&255,R=65535&L,!(M+(N=L>>>24)<=k);){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}_>>>=M,k-=M,r.back+=M}if(_>>>=N,k-=N,r.back+=N,r.length=R,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=12;break}if(64&T){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(F=r.extra;k<F;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,k-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(L=r.distcode[_&(1<<r.distbits)-1])>>>16&255,R=65535&L,!((N=L>>>24)<=k);){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(!(240&T)){for(M=N,O=T,z=R;T=(L=r.distcode[z+((_&(1<<M+O)-1)>>M)])>>>16&255,R=65535&L,!(M+(N=L>>>24)<=k);){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}_>>>=M,k-=M,r.back+=M}if(_>>>=N,k-=N,r.back+=N,64&T){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(F=r.extra;k<F;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,k-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break e;if(P=x-y,r.offset>P){if((P=r.offset-P)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}E=P>r.wnext?(P-=r.wnext,r.wsize-P):r.wnext-P,P>r.length&&(P=r.length),A=r.window}else A=p,E=b-r.offset,P=r.length;for(y<P&&(P=y),y-=P,r.length-=P;p[b++]=A[E++],--P;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;p[b++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;k<32;){if(0===v)break e;v--,_|=f[g++]<<k,k+=8}if(x-=y,e.total_out+=x,r.total+=x,x&&(e.adler=r.check=r.flags?i(r.check,p,x,b-x):a(r.check,p,x,b-x)),x=y,(r.flags?_:m(_))!==r.check){e.msg="incorrect data check",r.mode=30;break}k=_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;k<32;){if(0===v)break e;v--,_+=f[g++]<<k,k+=8}if(_!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}k=_=0}r.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return-4;case 32:default:return h}return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=_,r.bits=k,(r.wsize||x!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&C(e,e.output,e.next_out,x-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,x-=e.avail_out,e.total_in+=w,e.total_out+=x,r.total+=x,r.wrap&&x&&(e.adler=r.check=r.flags?i(r.check,p,x,e.next_out-x):a(r.check,p,x,e.next_out-x)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==w&&0===x||4===t)&&D===u&&(D=-5),D)},r.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,u):h},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?h:11===r.mode&&a(1,t,n,0)!==r.check?-3:C(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),a=[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],i=[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],s=[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],o=[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];t.exports=function(e,t,r,l,c,u,h,d){var f,p,m,g,b,v,y,_,k,w=d.bits,x=0,S=0,C=0,P=0,E=0,A=0,N=0,T=0,R=0,M=0,O=null,z=0,B=new n.Buf16(16),D=new n.Buf16(16),I=null,F=0;for(x=0;x<=15;x++)B[x]=0;for(S=0;S<l;S++)B[t[r+S]]++;for(E=w,P=15;1<=P&&0===B[P];P--);if(P<E&&(E=P),0===P)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(C=1;C<P&&0===B[C];C++);for(E<C&&(E=C),x=T=1;x<=15;x++)if(T<<=1,(T-=B[x])<0)return-1;if(0<T&&(0===e||1!==P))return-1;for(D[1]=0,x=1;x<15;x++)D[x+1]=D[x]+B[x];for(S=0;S<l;S++)0!==t[r+S]&&(h[D[t[r+S]]++]=S);if(v=0===e?(O=I=h,19):1===e?(O=a,z-=257,I=i,F-=257,256):(O=s,I=o,-1),x=C,b=u,N=S=M=0,m=-1,g=(R=1<<(A=E))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(y=x-N,k=h[S]<v?(_=0,h[S]):h[S]>v?(_=I[F+h[S]],O[z+h[S]]):(_=96,0),f=1<<x-N,C=p=1<<A;c[b+(M>>N)+(p-=f)]=y<<24|_<<16|k|0,0!==p;);for(f=1<<x-1;M&f;)f>>=1;if(0!==f?(M&=f-1,M+=f):M=0,S++,0==--B[x]){if(x===P)break;x=t[r+h[S]]}if(E<x&&(M&g)!==m){for(0===N&&(N=E),b+=C,T=1<<(A=x-N);A+N<P&&!((T-=B[A+N])<=0);)A++,T<<=1;if(R+=1<<A,1===e&&852<R||2===e&&592<R)return 1;c[m=M&g]=E<<24|A<<16|b-u|0}}return 0!==M&&(c[b+M]=x-N<<24|64<<16|0),d.bits=E,0}},{"../utils/common":41}],51:[function(e,t,r){t.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(e,t,r){var n=e("../utils/common"),a=0,i=1;function s(e){for(var t=e.length;0<=--t;)e[t]=0}var o=0,l=29,c=256,u=c+1+l,h=30,d=19,f=2*u+1,p=15,m=16,g=7,b=256,v=16,y=17,_=18,k=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(u+2));s(C);var P=new Array(2*h);s(P);var E=new Array(512);s(E);var A=new Array(256);s(A);var N=new Array(l);s(N);var T,R,M,O=new Array(h);function z(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function B(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function D(e){return e<256?E[e]:E[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function L(e,t,r){F(e,r[2*t],r[2*t+1])}function j(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function U(e,t,r){var n,a,i=new Array(p+1),s=0;for(n=1;n<=p;n++)i[n]=s=s+r[n-1]<<1;for(a=0;a<=t;a++){var o=e[2*a+1];0!==o&&(e[2*a]=j(i[o]++,o))}}function $(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function W(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function H(e,t,r,n){var a=2*t,i=2*r;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]}function V(e,t,r){for(var n=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&H(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!H(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}function Z(e,t,r){var n,a,i,s,o=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*o]<<8|e.pending_buf[e.d_buf+2*o+1],a=e.pending_buf[e.l_buf+o],o++,0===n?L(e,a,t):(L(e,(i=A[a])+c+1,t),0!==(s=k[i])&&F(e,a-=N[i],s),L(e,i=D(--n),r),0!==(s=w[i])&&F(e,n-=O[i],s)),o<e.last_lit;);L(e,b,t)}function G(e,t){var r,n,a,i=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[a]=0,e.opt_len--,o&&(e.static_len-=s[2*a+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)V(e,i,r);for(a=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,V(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,a,i,s,o,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(i=0;i<=p;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(i=g,b++),l[2*n+1]=i,c<n||(e.bl_count[i]++,s=0,m<=n&&(s=d[n-m]),o=l[2*n],e.opt_len+=o*(i+s),h&&(e.static_len+=o*(u[2*n+1]+s)));if(0!==b){do{for(i=g-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(i=g;0!==i;i--)for(n=e.bl_count[i];0!==n;)c<(a=e.heap[--r])||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),n--)}}(e,t),U(i,c,e.bl_count)}function X(e,t,r){var n,a,i=-1,s=t[1],o=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=s,s=t[2*(n+1)+1],++o<l&&a===s||(o<c?e.bl_tree[2*a]+=o:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[2*v]++):o<=10?e.bl_tree[2*y]++:e.bl_tree[2*_]++,i=a,c=(o=0)===s?(l=138,3):a===s?(l=6,3):(l=7,4))}function K(e,t,r){var n,a,i=-1,s=t[1],o=0,l=7,c=4;for(0===s&&(l=138,c=3),n=0;n<=r;n++)if(a=s,s=t[2*(n+1)+1],!(++o<l&&a===s)){if(o<c)for(;L(e,a,e.bl_tree),0!=--o;);else 0!==a?(a!==i&&(L(e,a,e.bl_tree),o--),L(e,v,e.bl_tree),F(e,o-3,2)):o<=10?(L(e,y,e.bl_tree),F(e,o-3,3)):(L(e,_,e.bl_tree),F(e,o-11,7));i=a,c=(o=0)===s?(l=138,3):a===s?(l=6,3):(l=7,4)}}s(O);var q=!1;function Y(e,t,r,a){F(e,(o<<1)+(a?1:0),3),function(e,t,r,a){W(e),a&&(I(e,r),I(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){q||(function(){var e,t,r,n,a,i=new Array(p+1);for(n=r=0;n<l-1;n++)for(N[n]=r,e=0;e<1<<k[n];e++)A[r++]=n;for(A[r-1]=n,n=a=0;n<16;n++)for(O[n]=a,e=0;e<1<<w[n];e++)E[a++]=n;for(a>>=7;n<h;n++)for(O[n]=a<<7,e=0;e<1<<w[n]-7;e++)E[256+a++]=n;for(t=0;t<=p;t++)i[t]=0;for(e=0;e<=143;)C[2*e+1]=8,e++,i[8]++;for(;e<=255;)C[2*e+1]=9,e++,i[9]++;for(;e<=279;)C[2*e+1]=7,e++,i[7]++;for(;e<=287;)C[2*e+1]=8,e++,i[8]++;for(U(C,u+1,i),e=0;e<h;e++)P[2*e+1]=5,P[2*e]=j(e,5);T=new z(C,k,c+1,u,p),R=new z(P,w,0,h,p),M=new z(new Array(0),x,0,d,g)}(),q=!0),e.l_desc=new B(e.dyn_ltree,T),e.d_desc=new B(e.dyn_dtree,R),e.bl_desc=new B(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,$(e)},r._tr_stored_block=Y,r._tr_flush_block=function(e,t,r,n){var s,o,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return i;return a}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),s=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=s&&(s=o)):s=o=r+5,r+4<=s&&-1!==t?Y(e,t,r,n):4===e.strategy||o===s?(F(e,2+(n?1:0),3),Z(e,C,P)):(F(e,4+(n?1:0),3),function(e,t,r,n){var a;for(F(e,t-257,5),F(e,r-1,5),F(e,n-4,4),a=0;a<n;a++)F(e,e.bl_tree[2*S[a]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),Z(e,e.dyn_ltree,e.dyn_dtree)),$(e),n&&W(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(A[r]+c+1)]++,e.dyn_dtree[2*D(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){F(e,2,3),L(e,b,C),function(e){16===e.bi_valid?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){(function(e,t){if(!e.setImmediate){var r,n,i,s,o=1,l={},c=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,r="[object process]"==={}.toString.call(e.process)?function(e){a.nextTick((function(){f(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(s="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(f,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return l[o]=a,r(o),o++},h.clearImmediate=d}function d(e){delete l[e]}function f(e){if(c)setTimeout(f,0,e);else{var r=l[e];if(r){c=!0;try{(function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}})(r)}finally{d(e),c=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&f(+t.data.slice(s.length))}})("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof p?p:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))})(b);var v=b.exports;const y=m(v);var _;function k(e,t){return t.elements(e).map(e=>({id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}))}(function(e){e.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",e.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",e.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",e.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",e.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",e.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",e.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",e.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",e.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",e.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",e.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",e.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",e.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",e.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",e.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",e.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",e.Comments="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",e.CommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended"})(_||(_={}));const w={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"},x={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}};function S(e,t=x.Dxa){return null==e||/.+(p[xt]|[%])$/.test(e)?e:`${(parseInt(e)*t.mul).toFixed(2)}${t.unit}`}function C(e,t=!1){switch(e){case"1":return!0;case"0":return!1;case"on":return!0;case"off":return!1;case"true":return!0;case"false":return!1;default:return t}}function P(e,t,r){if(e.namespaceURI!=w.wordml)return!1;switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",x.FontSize);break;default:return!1}return!0}function E(e,t=!1){t&&(e=e.replace(/<[?].*[?]>/,"")),e=N(e);const r=(new DOMParser).parseFromString(e,"application/xml"),n=A(r);if(n)throw new Error(n);return r}function A(e){var t;return null==(t=e.getElementsByTagName("parsererror")[0])?void 0:t.textContent}function N(e){return 65279===e.charCodeAt(0)?e.substring(1):e}function T(e){return(new XMLSerializer).serializeToString(e)}class R{elements(e,t=null){const r=[];for(let n=0,a=e.childNodes.length;n<a;n++){let a=e.childNodes.item(n);1==a.nodeType&&(null==t||a.localName==t)&&r.push(a)}return r}element(e,t){for(let r=0,n=e.childNodes.length;r<n;r++){let n=e.childNodes.item(r);if(1==n.nodeType&&n.localName==t)return n}return null}elementAttr(e,t,r){var n=this.element(e,t);return n?this.attr(n,r):void 0}attrs(e){return Array.from(e.attributes)}attr(e,t){for(let r=0,n=e.attributes.length;r<n;r++){let n=e.attributes.item(r);if(n.localName==t)return n.value}return null}intAttr(e,t,r=null){var n=this.attr(e,t);return n?parseInt(n):r}hexAttr(e,t,r=null){var n=this.attr(e,t);return n?parseInt(n,16):r}floatAttr(e,t,r=null){var n=this.attr(e,t);return n?parseFloat(n):r}boolAttr(e,t,r=null){return C(this.attr(e,t),r)}lengthAttr(e,t,r=x.Dxa){return S(this.attr(e,t),r)}}const M=new R;class O{constructor(e,t){this._package=e,this.path=t}load(){return f(this,null,(function*(){this.rels=yield this._package.loadRelationships(this.path);const e=yield this._package.load(this.path),t=this._package.parseXmlDocument(e);this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild)}))}save(){this._package.update(this.path,T(this._xmlDocument))}parseXml(e){}}const z={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function B(e,t){return t.elements(e).map(e=>D(e,t))}function D(e,t){let r={name:t.attr(e,"name"),embedFontRefs:[]};for(let n of t.elements(e))switch(n.localName){case"family":r.family=t.attr(n,"val");break;case"altName":r.altName=t.attr(n,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":r.embedFontRefs.push(I(n,t));break}return r}function I(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:z[e.localName]}}class F extends O{parseXml(e){this.fonts=B(e,this._package.xmlParser)}}function L(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function j(e){let t=e.lastIndexOf("/")+1,r=0==t?"":e.substring(0,t),n=0==t?e:e.substring(t);return[r,n]}function U(e,t){try{const r="http://docx/";return new URL(e,r+t).toString().substring(r.length)}catch(r){return`${t}${e}`}}function $(e,t){return e.reduce((e,r)=>(e[t(r)]=r,e),{})}function W(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>t(n.result),n.onerror=()=>r(),n.readAsDataURL(e)})}function H(e){return e&&"object"==typeof e&&!Array.isArray(e)}function V(e){return"string"==typeof e||e instanceof String}function Z(e,...t){var r;if(!t.length)return e;const n=t.shift();if(H(e)&&H(n))for(const a in n)if(H(n[a])){const t=null!=(r=e[a])?r:e[a]={};Z(t,n[a])}else e[a]=n[a];return Z(e,...t)}function G(e){return Array.isArray(e)?e:[e]}class X{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new R}get(e){var t;const r=K(e);return null!=(t=this._zip.files[r])?t:this._zip.files[r.replace(/\//g,"\\")]}update(e,t){this._zip.file(e,t)}static load(e,t){return f(this,null,(function*(){const r=yield y.loadAsync(e);return new X(r,t)}))}save(e="blob"){return this._zip.generateAsync({type:e})}load(e,t="string"){var r,n;return null!=(n=null==(r=this.get(e))?void 0:r.async(t))?n:Promise.resolve(null)}loadRelationships(e=null){return f(this,null,(function*(){let t="_rels/.rels";if(null!=e){const[r,n]=j(e);t=`${r}_rels/${n}.rels`}const r=yield this.load(t);return r?k(this.parseXmlDocument(r).firstElementChild,this.xmlParser):null}))}parseXmlDocument(e){return E(e,this.options.trimXmlDeclaration)}}function K(e){return e.startsWith("/")?e.substr(1):e}class q extends O{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}}function Y(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",x.Border),offset:t.lengthAttr(e,"space",x.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}function J(e,t){var r={};for(let n of t.elements(e))switch(n.localName){case"left":r.left=Y(n,t);break;case"top":r.top=Y(n,t);break;case"right":r.right=Y(n,t);break;case"bottom":r.bottom=Y(n,t);break}return r}var Q,ee;function te(e,t=M){var r,n,a={};for(let i of t.elements(e))switch(i.localName){case"pgSz":a.pageSize={width:t.lengthAttr(i,"w"),height:t.lengthAttr(i,"h"),orientation:t.attr(i,"orient")};break;case"type":a.type=t.attr(i,"val");break;case"pgMar":a.pageMargins={left:t.lengthAttr(i,"left"),right:t.lengthAttr(i,"right"),top:t.lengthAttr(i,"top"),bottom:t.lengthAttr(i,"bottom"),header:t.lengthAttr(i,"header"),footer:t.lengthAttr(i,"footer"),gutter:t.lengthAttr(i,"gutter")};break;case"cols":a.columns=re(i,t);break;case"headerReference":(null!=(r=a.headerRefs)?r:a.headerRefs=[]).push(ae(i,t));break;case"footerReference":(null!=(n=a.footerRefs)?n:a.footerRefs=[]).push(ae(i,t));break;case"titlePg":a.titlePage=t.boolAttr(i,"val",!0);break;case"pgBorders":a.pageBorders=J(i,t);break;case"pgNumType":a.pageNumber=ne(i,t);break}return a}function re(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(e=>({width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}))}}function ne(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}function ae(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}function ie(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}function se(e,t){let r={};for(let n of t.elements(e))oe(n,r,t);return r}function oe(e,t,r){return!!P(e,t,r)}function le(e,t){let r={};for(let n of t.elements(e))ce(n,r,t);return r}function ce(e,t,r){if(e.namespaceURI!=w.wordml)return!1;if(P(e,t,r))return!0;switch(e.localName){case"tabs":t.tabs=ue(e,r);break;case"sectPr":t.sectionProps=te(e,r);break;case"numPr":t.numbering=he(e,r);break;case"spacing":return t.lineSpacing=ie(e,r),!1;case"textAlignment":return t.textAlignment=r.attr(e,"val"),!1;case"keepLines":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleName=r.attr(e,"val");break;case"rPr":t.runProps=se(e,r);break;default:return!1}return!0}function ue(e,t){return t.elements(e,"tab").map(e=>({position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}))}function he(e,t){var r={};for(let n of t.elements(e))switch(n.localName){case"numId":r.id=t.attr(n,"val");break;case"ilvl":r.level=t.intAttr(n,"val");break}return r}function de(e,t){let r={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let n of t.elements(e))switch(n.localName){case"num":r.numberings.push(fe(n,t));break;case"abstractNum":r.abstractNumberings.push(pe(n,t));break;case"numPicBullet":r.bulletPictures.push(be(n,t));break}return r}function fe(e,t){let r={id:t.attr(e,"numId"),overrides:[]};for(let n of t.elements(e))switch(n.localName){case"abstractNumId":r.abstractId=t.attr(n,"val");break;case"lvlOverride":r.overrides.push(ge(n,t));break}return r}function pe(e,t){let r={id:t.attr(e,"abstractNumId"),levels:[]};for(let n of t.elements(e))switch(n.localName){case"name":r.name=t.attr(n,"val");break;case"multiLevelType":r.multiLevelType=t.attr(n,"val");break;case"numStyleLink":r.numberingStyleLink=t.attr(n,"val");break;case"styleLink":r.styleLink=t.attr(n,"val");break;case"lvl":r.levels.push(me(n,t));break}return r}function me(e,t){let r={level:t.intAttr(e,"ilvl")};for(let n of t.elements(e))switch(n.localName){case"start":r.start=t.attr(n,"val");break;case"lvlRestart":r.restart=t.intAttr(n,"val");break;case"numFmt":r.format=t.attr(n,"val");break;case"lvlText":r.text=t.attr(n,"val");break;case"lvlJc":r.justification=t.attr(n,"val");break;case"lvlPicBulletId":r.bulletPictureId=t.attr(n,"val");break;case"pStyle":r.paragraphStyle=t.attr(n,"val");break;case"pPr":r.paragraphProps=le(n,t);break;case"rPr":r.runProps=se(n,t);break}return r}function ge(e,t){let r={level:t.intAttr(e,"ilvl")};for(let n of t.elements(e))switch(n.localName){case"startOverride":r.start=t.intAttr(n,"val");break;case"lvl":r.numberingLevel=me(n,t);break}return r}function be(e,t){var r=t.element(e,"pict"),n=r&&t.element(r,"shape"),a=n&&t.element(n,"imagedata");return a?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(a,"id"),style:t.attr(n,"style")}:null}(function(e){e.Continuous="continuous",e.NextPage="nextPage",e.NextColumn="nextColumn",e.EvenPage="evenPage",e.OddPage="oddPage"})(Q||(Q={}));class ve extends O{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){Object.assign(this,de(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}class ye extends O{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}}(function(e){e.Document="document",e.Paragraph="paragraph",e.Run="run",e.Break="break",e.NoBreakHyphen="noBreakHyphen",e.Table="table",e.Row="row",e.Cell="cell",e.Hyperlink="hyperlink",e.SmartTag="smartTag",e.Drawing="drawing",e.Image="image",e.Text="text",e.Tab="tab",e.Symbol="symbol",e.BookmarkStart="bookmarkStart",e.BookmarkEnd="bookmarkEnd",e.Footer="footer",e.Header="header",e.FootnoteReference="footnoteReference",e.EndnoteReference="endnoteReference",e.Footnote="footnote",e.Endnote="endnote",e.SimpleField="simpleField",e.ComplexField="complexField",e.Instruction="instruction",e.VmlPicture="vmlPicture",e.MmlMath="mmlMath",e.MmlMathParagraph="mmlMathParagraph",e.MmlFraction="mmlFraction",e.MmlFunction="mmlFunction",e.MmlFunctionName="mmlFunctionName",e.MmlNumerator="mmlNumerator",e.MmlDenominator="mmlDenominator",e.MmlRadical="mmlRadical",e.MmlBase="mmlBase",e.MmlDegree="mmlDegree",e.MmlSuperscript="mmlSuperscript",e.MmlSubscript="mmlSubscript",e.MmlPreSubSuper="mmlPreSubSuper",e.MmlSubArgument="mmlSubArgument",e.MmlSuperArgument="mmlSuperArgument",e.MmlNary="mmlNary",e.MmlDelimiter="mmlDelimiter",e.MmlRun="mmlRun",e.MmlEquationArray="mmlEquationArray",e.MmlLimit="mmlLimit",e.MmlLimitLower="mmlLimitLower",e.MmlMatrix="mmlMatrix",e.MmlMatrixRow="mmlMatrixRow",e.MmlBox="mmlBox",e.MmlBar="mmlBar",e.MmlGroupChar="mmlGroupChar",e.VmlElement="vmlElement",e.Inserted="inserted",e.Deleted="deleted",e.DeletedText="deletedText",e.Comment="comment",e.CommentReference="commentReference",e.CommentRangeStart="commentRangeStart",e.CommentRangeEnd="commentRangeEnd"})(ee||(ee={}));class _e{constructor(){this.children=[],this.cssStyle={}}}class ke extends _e{constructor(){super(...arguments),this.type=ee.Header}}class we extends _e{constructor(){super(...arguments),this.type=ee.Footer}}class xe extends O{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}class Se extends xe{createRootElement(){return new ke}}class Ce extends xe{createRootElement(){return new we}}function Pe(e,t){const r={};for(let n of t.elements(e))switch(n.localName){case"Template":r.template=n.textContent;break;case"Pages":r.pages=Ee(n.textContent);break;case"Words":r.words=Ee(n.textContent);break;case"Characters":r.characters=Ee(n.textContent);break;case"Application":r.application=n.textContent;break;case"Lines":r.lines=Ee(n.textContent);break;case"Paragraphs":r.paragraphs=Ee(n.textContent);break;case"Company":r.company=n.textContent;break;case"AppVersion":r.appVersion=n.textContent;break}return r}function Ee(e){if("undefined"!=typeof e)return parseInt(e)}class Ae extends O{parseXml(e){this.props=Pe(e,this._package.xmlParser)}}function Ne(e,t){const r={};for(let n of t.elements(e))switch(n.localName){case"title":r.title=n.textContent;break;case"description":r.description=n.textContent;break;case"subject":r.subject=n.textContent;break;case"creator":r.creator=n.textContent;break;case"keywords":r.keywords=n.textContent;break;case"language":r.language=n.textContent;break;case"lastModifiedBy":r.lastModifiedBy=n.textContent;break;case"revision":n.textContent&&(r.revision=parseInt(n.textContent));break}return r}class Te extends O{parseXml(e){this.props=Ne(e,this._package.xmlParser)}}class Re{}function Me(e,t){var r=new Re,n=t.element(e,"themeElements");for(let a of t.elements(n))switch(a.localName){case"clrScheme":r.colorScheme=Oe(a,t);break;case"fontScheme":r.fontScheme=ze(a,t);break}return r}function Oe(e,t){var r={name:t.attr(e,"name"),colors:{}};for(let i of t.elements(e)){var n=t.element(i,"srgbClr"),a=t.element(i,"sysClr");n?r.colors[i.localName]=t.attr(n,"val"):a&&(r.colors[i.localName]=t.attr(a,"lastClr"))}return r}function ze(e,t){var r={name:t.attr(e,"name")};for(let n of t.elements(e))switch(n.localName){case"majorFont":r.majorFont=Be(n,t);break;case"minorFont":r.minorFont=Be(n,t);break}return r}function Be(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}class De extends O{constructor(e,t){super(e,t)}parseXml(e){this.theme=Me(e,this._package.xmlParser)}}class Ie{}class Fe extends Ie{constructor(){super(...arguments),this.type=ee.Footnote}}class Le extends Ie{constructor(){super(...arguments),this.type=ee.Endnote}}class je extends O{constructor(e,t,r){super(e,t),this._documentParser=r}}class Ue extends je{constructor(e,t,r){super(e,t,r)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"footnote",Fe)}}class $e extends je{constructor(e,t,r){super(e,t,r)}parseXml(e){this.notes=this._documentParser.parseNotes(e,"endnote",Le)}}function We(e,t){var r={};for(let n of t.elements(e))switch(n.localName){case"defaultTabStop":r.defaultTabStop=t.lengthAttr(n,"val");break;case"footnotePr":r.footnoteProps=He(n,t);break;case"endnotePr":r.endnoteProps=He(n,t);break;case"autoHyphenation":r.autoHyphenation=t.boolAttr(n,"val");break}return r}function He(e,t){var r={defaultNoteIds:[]};for(let n of t.elements(e))switch(n.localName){case"numFmt":r.nummeringFormat=t.attr(n,"val");break;case"footnote":case"endnote":r.defaultNoteIds.push(t.attr(n,"id"));break}return r}class Ve extends O{constructor(e,t){super(e,t)}parseXml(e){this.settings=We(e,this._package.xmlParser)}}function Ze(e,t){return t.elements(e,"property").map(e=>{const r=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:r.nodeName,value:r.textContent}})}class Ge extends O{parseXml(e){this.props=Ze(e,this._package.xmlParser)}}class Xe extends O{constructor(e,t,r){super(e,t),this._documentParser=r}parseXml(e){this.comments=this._documentParser.parseComments(e),this.commentMap=$(this.comments,e=>e.id)}}class Ke extends O{constructor(e,t){super(e,t),this.comments=[]}parseXml(e){const t=this._package.xmlParser;for(let r of t.elements(e,"commentEx"))this.comments.push({paraId:t.attr(r,"paraId"),paraIdParent:t.attr(r,"paraIdParent"),done:t.boolAttr(r,"done")});this.commentMap=$(this.comments,e=>e.paraId)}}const qe=[{type:_.OfficeDocument,target:"word/document.xml"},{type:_.ExtendedProperties,target:"docProps/app.xml"},{type:_.CoreProperties,target:"docProps/core.xml"},{type:_.CustomProperties,target:"docProps/custom.xml"}];class Ye{constructor(){this.parts=[],this.partsMap={}}static load(e,t,r){return f(this,null,(function*(){var n=new Ye;return n._options=r,n._parser=t,n._package=yield X.load(e,r),n.rels=yield n._package.loadRelationships(),yield Promise.all(qe.map(e=>{var t;const r=null!=(t=n.rels.find(t=>t.type===e.type))?t:e;return n.loadRelationshipPart(r.target,r.type)})),n}))}save(e="blob"){return this._package.save(e)}loadRelationshipPart(e,t){return f(this,null,(function*(){var r;if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let n=null;switch(t){case _.OfficeDocument:this.documentPart=n=new q(this._package,e,this._parser);break;case _.FontTable:this.fontTablePart=n=new F(this._package,e);break;case _.Numbering:this.numberingPart=n=new ve(this._package,e,this._parser);break;case _.Styles:this.stylesPart=n=new ye(this._package,e,this._parser);break;case _.Theme:this.themePart=n=new De(this._package,e);break;case _.Footnotes:this.footnotesPart=n=new Ue(this._package,e,this._parser);break;case _.Endnotes:this.endnotesPart=n=new $e(this._package,e,this._parser);break;case _.Footer:n=new Ce(this._package,e,this._parser);break;case _.Header:n=new Se(this._package,e,this._parser);break;case _.CoreProperties:this.corePropsPart=n=new Te(this._package,e);break;case _.ExtendedProperties:this.extendedPropsPart=n=new Ae(this._package,e);break;case _.CustomProperties:n=new Ge(this._package,e);break;case _.Settings:this.settingsPart=n=new Ve(this._package,e);break;case _.Comments:this.commentsPart=n=new Xe(this._package,e,this._parser);break;case _.CommentsExtended:this.commentsExtendedPart=n=new Ke(this._package,e);break}if(null==n)return Promise.resolve(null);if(this.partsMap[e]=n,this.parts.push(n),yield n.load(),(null==(r=n.rels)?void 0:r.length)>0){const[e]=j(n.path);yield Promise.all(n.rels.map(t=>this.loadRelationshipPart(U(t.target,e),t.type)))}return n}))}loadDocumentImage(e,t){return f(this,null,(function*(){const r=yield this.loadResource(null!=t?t:this.documentPart,e,"blob");return this.blobToURL(r)}))}loadNumberingImage(e){return f(this,null,(function*(){const t=yield this.loadResource(this.numberingPart,e,"blob");return this.blobToURL(t)}))}loadFont(e,t){return f(this,null,(function*(){const r=yield this.loadResource(this.fontTablePart,e,"uint8array");return r&&this.blobToURL(new Blob([Je(r,t)]))}))}blobToURL(e){return e?this._options.useBase64URL?W(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var r,n=(null!=(r=t.rels)?r:this.rels).find(t=>t.id==e);const a=t?j(t.path)[0]:"";return n?this.partsMap[U(n.target,a)]:null}getPathById(e,t){const r=e.rels.find(e=>e.id==t),[n]=j(e.path);return r?U(r.target,n):null}loadResource(e,t,r){const n=this.getPathById(e,t);return n?this._package.load(n,r):Promise.resolve(null)}}function Je(e,t){const r=t.replace(/{|}|-/g,""),n=new Array(16);for(let a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(let a=0;a<32;a++)e[a]=e[a]^n[a%16];return e}function Qe(e,t){return{type:ee.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}}function et(e,t){return{type:ee.BookmarkEnd,id:t.attr(e,"id")}}class tt extends _e{constructor(){super(...arguments),this.type=ee.VmlElement,this.attrs={}}}function rt(e,t){var r=new tt;switch(e.localName){case"rect":r.tagName="rect",Object.assign(r.attrs,{width:"100%",height:"100%"});break;case"oval":r.tagName="ellipse",Object.assign(r.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":r.tagName="line";break;case"shape":r.tagName="g";break;case"textbox":r.tagName="foreignObject",Object.assign(r.attrs,{width:"100%",height:"100%"});break;default:return null}for(const n of M.attrs(e))switch(n.localName){case"style":r.cssStyleText=n.value;break;case"fillcolor":r.attrs.fill=n.value;break;case"from":const[e,t]=it(n.value);Object.assign(r.attrs,{x1:e,y1:t});break;case"to":const[a,i]=it(n.value);Object.assign(r.attrs,{x2:a,y2:i});break}for(const n of M.elements(e))switch(n.localName){case"stroke":Object.assign(r.attrs,nt(n));break;case"fill":Object.assign(r.attrs,at());break;case"imagedata":r.tagName="image",Object.assign(r.attrs,{width:"100%",height:"100%"}),r.imageHref={id:M.attr(n,"id"),title:M.attr(n,"title")};break;case"txbxContent":r.children.push(...t.parseBodyElements(n));break;default:const e=rt(n,t);e&&r.children.push(e);break}return r}function nt(e){var t;return{stroke:M.attr(e,"color"),"stroke-width":null!=(t=M.lengthAttr(e,"weight",x.Emu))?t:"1px"}}function at(e){return{}}function it(e){return e.split(",")}class st extends _e{constructor(){super(...arguments),this.type=ee.Comment}}class ot extends _e{constructor(e){super(),this.id=e,this.type=ee.CommentReference}}class lt extends _e{constructor(e){super(),this.id=e,this.type=ee.CommentRangeStart}}class ct extends _e{constructor(e){super(),this.id=e,this.type=ee.CommentRangeEnd}}var ut={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const ht=[],dt={oMath:ee.MmlMath,oMathPara:ee.MmlMathParagraph,f:ee.MmlFraction,func:ee.MmlFunction,fName:ee.MmlFunctionName,num:ee.MmlNumerator,den:ee.MmlDenominator,rad:ee.MmlRadical,deg:ee.MmlDegree,e:ee.MmlBase,sSup:ee.MmlSuperscript,sSub:ee.MmlSubscript,sPre:ee.MmlPreSubSuper,sup:ee.MmlSuperArgument,sub:ee.MmlSubArgument,d:ee.MmlDelimiter,nary:ee.MmlNary,eqArr:ee.MmlEquationArray,lim:ee.MmlLimit,limLow:ee.MmlLimitLower,m:ee.MmlMatrix,mr:ee.MmlMatrixRow,box:ee.MmlBox,bar:ee.MmlBar,groupChr:ee.MmlGroupChar};class ft{constructor(e){this.options=h({ignoreWidth:!1,debug:!1},e)}parseNotes(e,t,r){var n=[];for(let a of M.elements(e,t)){const e=new r;e.id=M.attr(a,"id"),e.noteType=M.attr(a,"type"),e.children=this.parseBodyElements(a),n.push(e)}return n}parseComments(e){var t=[];for(let r of M.elements(e,"comment")){const e=new st;e.id=M.attr(r,"id"),e.author=M.attr(r,"author"),e.initials=M.attr(r,"initials"),e.date=M.attr(r,"date"),e.children=this.parseBodyElements(r),t.push(e)}return t}parseDocumentFile(e){var t=M.element(e,"body"),r=M.element(e,"background"),n=M.element(t,"sectPr");return{type:ee.Document,children:this.parseBodyElements(t),props:n?te(n,M):{},cssStyle:r?this.parseBackground(r):{}}}parseBackground(e){var t={},r=mt.colorAttr(e,"color");return r&&(t["background-color"]=r),t}parseBodyElements(e){var t=[];for(let r of M.elements(e))switch(r.localName){case"p":t.push(this.parseParagraph(r));break;case"tbl":t.push(this.parseTable(r));break;case"sdt":t.push(...this.parseSdt(r,e=>this.parseBodyElements(e)));break}return t}parseStylesFile(e){var t=[];return mt.foreach(e,e=>{switch(e.localName){case"style":t.push(this.parseStyle(e));break;case"docDefaults":t.push(this.parseDefaultStyles(e));break}}),t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};return mt.foreach(e,e=>{switch(e.localName){case"rPrDefault":var r=M.element(e,"rPr");r&&t.styles.push({target:"span",values:this.parseDefaultProperties(r,{})});break;case"pPrDefault":var n=M.element(e,"pPr");n&&t.styles.push({target:"p",values:this.parseDefaultProperties(n,{})});break}}),t}parseStyle(e){var t={id:M.attr(e,"styleId"),isDefault:M.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(M.attr(e,"type")){case"paragraph":t.target="p";break;case"table":t.target="table";break;case"character":t.target="span";break}return mt.foreach(e,e=>{switch(e.localName){case"basedOn":t.basedOn=M.attr(e,"val");break;case"name":t.name=M.attr(e,"val");break;case"link":t.linked=M.attr(e,"val");break;case"next":t.next=M.attr(e,"val");break;case"aliases":t.aliases=M.attr(e,"val").split(",");break;case"pPr":t.styles.push({target:"p",values:this.parseDefaultProperties(e,{})}),t.paragraphProps=le(e,M);break;case"rPr":t.styles.push({target:"span",values:this.parseDefaultProperties(e,{})}),t.runProps=se(e,M);break;case"tblPr":case"tcPr":t.styles.push({target:"td",values:this.parseDefaultProperties(e,{})});break;case"tblStylePr":for(let r of this.parseTableStyle(e))t.styles.push(r);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: "+e.localName)}}),t}parseTableStyle(e){var t=[],r=M.attr(e,"type"),n="",a="";switch(r){case"firstRow":a=".first-row",n="tr.first-row td";break;case"lastRow":a=".last-row",n="tr.last-row td";break;case"firstCol":a=".first-col",n="td.first-col";break;case"lastCol":a=".last-col",n="td.last-col";break;case"band1Vert":a=":not(.no-vband)",n="td.odd-col";break;case"band2Vert":a=":not(.no-vband)",n="td.even-col";break;case"band1Horz":a=":not(.no-hband)",n="tr.odd-row";break;case"band2Horz":a=":not(.no-hband)",n="tr.even-row";break;default:return[]}return mt.foreach(e,e=>{switch(e.localName){case"pPr":t.push({target:n+" p",mod:a,values:this.parseDefaultProperties(e,{})});break;case"rPr":t.push({target:n+" span",mod:a,values:this.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":t.push({target:n,mod:a,values:this.parseDefaultProperties(e,{})});break}}),t}parseNumberingFile(e){var t=[],r={},n=[];return mt.foreach(e,e=>{switch(e.localName){case"abstractNum":this.parseAbstractNumbering(e,n).forEach(e=>t.push(e));break;case"numPicBullet":n.push(this.parseNumberingPicBullet(e));break;case"num":var a=M.attr(e,"numId"),i=M.elementAttr(e,"abstractNumId","val");r[i]=a;break}}),t.forEach(e=>e.id=r[e.id]),t}parseNumberingPicBullet(e){var t=M.element(e,"pict"),r=t&&M.element(t,"shape"),n=r&&M.element(r,"imagedata");return n?{id:M.intAttr(e,"numPicBulletId"),src:M.attr(n,"id"),style:M.attr(r,"style")}:null}parseAbstractNumbering(e,t){var r=[],n=M.attr(e,"abstractNumId");return mt.foreach(e,e=>{switch(e.localName){case"lvl":r.push(this.parseNumberingLevel(n,e,t));break}}),r}parseNumberingLevel(e,t,r){var n={id:e,level:M.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return mt.foreach(t,e=>{switch(e.localName){case"start":n.start=M.intAttr(e,"val");break;case"pPr":this.parseDefaultProperties(e,n.pStyle);break;case"rPr":this.parseDefaultProperties(e,n.rStyle);break;case"lvlPicBulletId":var t=M.intAttr(e,"val");n.bullet=r.find(e=>(null==e?void 0:e.id)==t);break;case"lvlText":n.levelText=M.attr(e,"val");break;case"pStyle":n.pStyleName=M.attr(e,"val");break;case"numFmt":n.format=M.attr(e,"val");break;case"suff":n.suff=M.attr(e,"val");break}}),n}parseSdt(e,t){const r=M.element(e,"sdtContent");return r?t(r):[]}parseInserted(e,t){var r,n;return{type:ee.Inserted,children:null!=(n=null==(r=t(e))?void 0:r.children)?n:[]}}parseDeleted(e,t){var r,n;return{type:ee.Deleted,children:null!=(n=null==(r=t(e))?void 0:r.children)?n:[]}}parseParagraph(e){var t={type:ee.Paragraph,children:[]};for(let r of M.elements(e))switch(r.localName){case"pPr":this.parseParagraphProperties(r,t);break;case"r":t.children.push(this.parseRun(r,t));break;case"hyperlink":t.children.push(this.parseHyperlink(r,t));break;case"smartTag":t.children.push(this.parseSmartTag(r,t));break;case"bookmarkStart":t.children.push(Qe(r,M));break;case"bookmarkEnd":t.children.push(et(r,M));break;case"commentRangeStart":t.children.push(new lt(M.attr(r,"id")));break;case"commentRangeEnd":t.children.push(new ct(M.attr(r,"id")));break;case"oMath":case"oMathPara":t.children.push(this.parseMathElement(r));break;case"sdt":t.children.push(...this.parseSdt(r,e=>this.parseParagraph(e).children));break;case"ins":t.children.push(this.parseInserted(r,e=>this.parseParagraph(e)));break;case"del":t.children.push(this.parseDeleted(r,e=>this.parseParagraph(e)));break}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{if(ce(e,t,M))return!0;switch(e.localName){case"pStyle":t.styleName=M.attr(e,"val");break;case"cnfStyle":t.className=gt.classNameOfCnfStyle(e);break;case"framePr":this.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}parseFrame(e,t){var r=M.attr(e,"dropCap");"drop"==r&&(t.cssStyle.float="left")}parseHyperlink(e,t){var r={type:ee.Hyperlink,parent:t,children:[]},n=M.attr(e,"anchor"),a=M.attr(e,"id");return n&&(r.href="#"+n),a&&(r.id=a),mt.foreach(e,e=>{switch(e.localName){case"r":r.children.push(this.parseRun(e,r));break}}),r}parseSmartTag(e,t){var r={type:ee.SmartTag,parent:t,children:[]},n=M.attr(e,"uri"),a=M.attr(e,"element");return n&&(r.uri=n),a&&(r.element=a),mt.foreach(e,e=>{switch(e.localName){case"r":r.children.push(this.parseRun(e,r));break}}),r}parseRun(e,t){var r={type:ee.Run,parent:t,children:[]};return mt.foreach(e,e=>{switch(e=this.checkAlternateContent(e),e.localName){case"t":r.children.push({type:ee.Text,text:e.textContent});break;case"delText":r.children.push({type:ee.DeletedText,text:e.textContent});break;case"commentReference":r.children.push(new ot(M.attr(e,"id")));break;case"fldSimple":r.children.push({type:ee.SimpleField,instruction:M.attr(e,"instr"),lock:M.boolAttr(e,"lock",!1),dirty:M.boolAttr(e,"dirty",!1)});break;case"instrText":r.fieldRun=!0,r.children.push({type:ee.Instruction,text:e.textContent});break;case"fldChar":r.fieldRun=!0,r.children.push({type:ee.ComplexField,charType:M.attr(e,"fldCharType"),lock:M.boolAttr(e,"lock",!1),dirty:M.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":r.children.push({type:ee.NoBreakHyphen});break;case"br":r.children.push({type:ee.Break,break:M.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":r.children.push({type:ee.Break,break:"lastRenderedPageBreak"});break;case"sym":r.children.push({type:ee.Symbol,font:M.attr(e,"font"),char:M.attr(e,"char")});break;case"tab":r.children.push({type:ee.Tab});break;case"footnoteReference":r.children.push({type:ee.FootnoteReference,id:M.attr(e,"id")});break;case"endnoteReference":r.children.push({type:ee.EndnoteReference,id:M.attr(e,"id")});break;case"drawing":let t=this.parseDrawing(e);t&&(r.children=[t]);break;case"pict":r.children.push(this.parseVmlPicture(e));break;case"rPr":this.parseRunProperties(e,r);break}}),r}parseMathElement(e){const t=e.localName+"Pr",r={type:dt[e.localName],children:[]};for(const a of M.elements(e))if(dt[a.localName])r.children.push(this.parseMathElement(a));else if("r"==a.localName){var n=this.parseRun(a);n.type=ee.MmlRun,r.children.push(n)}else a.localName==t&&(r.props=this.parseMathProperies(a));return r}parseMathProperies(e){const t={};for(const r of M.elements(e))switch(r.localName){case"chr":t.char=M.attr(r,"val");break;case"vertJc":t.verticalJustification=M.attr(r,"val");break;case"pos":t.position=M.attr(r,"val");break;case"degHide":t.hideDegree=M.boolAttr(r,"val");break;case"begChr":t.beginChar=M.attr(r,"val");break;case"endChr":t.endChar=M.attr(r,"val");break}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{switch(e.localName){case"rStyle":t.styleName=M.attr(e,"val");break;case"vertAlign":t.verticalAlign=gt.valueOfVertAlign(e,!0);break;default:return!1}return!0})}parseVmlPicture(e){const t={type:ee.VmlPicture,children:[]};for(const r of M.elements(e)){const e=rt(r,this);e&&t.children.push(e)}return t}checkAlternateContent(e){var t;if("AlternateContent"!=e.localName)return e;var r=M.element(e,"Choice");if(r){var n=M.attr(r,"Requires"),a=e.lookupNamespaceURI(n);if(ht.includes(a))return r.firstElementChild}return null==(t=M.element(e,"Fallback"))?void 0:t.firstElementChild}parseDrawing(e){for(var t of M.elements(e))switch(t.localName){case"inline":case"anchor":return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var t,r={type:ee.Drawing,children:[],cssStyle:{}},n="anchor"==e.localName;let a=null,i=M.boolAttr(e,"simplePos");M.boolAttr(e,"behindDoc");let s={relative:"page",align:"left",offset:"0"},o={relative:"page",align:"top",offset:"0"};for(var l of M.elements(e))switch(l.localName){case"simplePos":i&&(s.offset=M.lengthAttr(l,"x",x.Emu),o.offset=M.lengthAttr(l,"y",x.Emu));break;case"extent":r.cssStyle.width=M.lengthAttr(l,"cx",x.Emu),r.cssStyle.height=M.lengthAttr(l,"cy",x.Emu);break;case"positionH":case"positionV":if(!i){let e="positionH"==l.localName?s:o;var c=M.element(l,"align"),u=M.element(l,"posOffset");e.relative=null!=(t=M.attr(l,"relativeFrom"))?t:e.relative,c&&(e.align=c.textContent),u&&(e.offset=mt.sizeValue(u,x.Emu))}break;case"wrapTopAndBottom":a="wrapTopAndBottom";break;case"wrapNone":a="wrapNone";break;case"graphic":var h=this.parseGraphic(l);h&&r.children.push(h);break}return"wrapTopAndBottom"==a?(r.cssStyle.display="block",s.align&&(r.cssStyle["text-align"]=s.align,r.cssStyle.width="100%")):"wrapNone"==a?(r.cssStyle.display="block",r.cssStyle.position="relative",r.cssStyle.width="0px",r.cssStyle.height="0px",s.offset&&(r.cssStyle.left=s.offset),o.offset&&(r.cssStyle.top=o.offset)):n&&("left"==s.align||"right"==s.align)&&(r.cssStyle.float=s.align),r}parseGraphic(e){var t=M.element(e,"graphicData");for(let r of M.elements(t))switch(r.localName){case"pic":return this.parsePicture(r)}return null}parsePicture(e){var t={type:ee.Image,src:"",cssStyle:{}},r=M.element(e,"blipFill"),n=M.element(r,"blip");t.src=M.attr(n,"embed");var a=M.element(e,"spPr"),i=M.element(a,"xfrm");for(var s of(t.cssStyle.position="relative",M.elements(i)))switch(s.localName){case"ext":t.cssStyle.width=M.lengthAttr(s,"cx",x.Emu),t.cssStyle.height=M.lengthAttr(s,"cy",x.Emu);break;case"off":t.cssStyle.left=M.lengthAttr(s,"x",x.Emu),t.cssStyle.top=M.lengthAttr(s,"y",x.Emu);break}return t}parseTable(e){var t={type:ee.Table,children:[]};return mt.foreach(e,e=>{switch(e.localName){case"tr":t.children.push(this.parseTableRow(e));break;case"tblGrid":t.columns=this.parseTableColumns(e);break;case"tblPr":this.parseTableProperties(e,t);break}}),t}parseTableColumns(e){var t=[];return mt.foreach(e,e=>{switch(e.localName){case"gridCol":t.push({width:M.lengthAttr(e,"w")});break}}),t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,e=>{switch(e.localName){case"tblStyle":t.styleName=M.attr(e,"val");break;case"tblLook":t.className=gt.classNameOftblLook(e);break;case"tblpPr":this.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=M.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=M.intAttr(e,"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";break}}parseTablePosition(e,t){var r=M.lengthAttr(e,"topFromText"),n=M.lengthAttr(e,"bottomFromText"),a=M.lengthAttr(e,"rightFromText"),i=M.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=gt.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=gt.addSize(t.cssStyle["margin-left"],i),t.cssStyle["margin-right"]=gt.addSize(t.cssStyle["margin-right"],a),t.cssStyle["margin-top"]=gt.addSize(t.cssStyle["margin-top"],r)}parseTableRow(e){var t={type:ee.Row,children:[]};return mt.foreach(e,e=>{switch(e.localName){case"tc":t.children.push(this.parseTableCell(e));break;case"trPr":this.parseTableRowProperties(e,t);break}}),t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{switch(e.localName){case"cnfStyle":t.className=gt.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=M.boolAttr(e,"val");break;default:return!1}return!0})}parseTableCell(e){var t={type:ee.Cell,children:[]};return mt.foreach(e,e=>{switch(e.localName){case"tbl":t.children.push(this.parseTable(e));break;case"p":t.children.push(this.parseParagraph(e));break;case"tcPr":this.parseTableCellProperties(e,t);break}}),t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{var r;switch(e.localName){case"gridSpan":t.span=M.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!=(r=M.attr(e,"val"))?r:"continue";break;case"cnfStyle":t.className=gt.classNameOfCnfStyle(e);break;default:return!1}return!0})}parseDefaultProperties(e,t=null,r=null,n=null){return t=t||{},mt.foreach(e,a=>{if(null==n||!n(a))switch(a.localName){case"jc":t["text-align"]=gt.valueOfJc(a);break;case"textAlignment":t["vertical-align"]=gt.valueOfTextAlignment(a);break;case"color":t.color=mt.colorAttr(a,"val",null,ut.color);break;case"sz":t["font-size"]=t["min-height"]=M.lengthAttr(a,"val",x.FontSize);break;case"shd":t["background-color"]=mt.colorAttr(a,"fill",null,ut.shd);break;case"highlight":t["background-color"]=mt.colorAttr(a,"val",null,ut.highlight);break;case"vertAlign":break;case"position":t.verticalAlign=M.lengthAttr(a,"val",x.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":t.width=gt.valueOfSize(a,"w");break;case"trHeight":this.parseTrHeight(a,t);break;case"strike":t["text-decoration"]=M.boolAttr(a,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=M.boolAttr(a,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=M.boolAttr(a,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=M.boolAttr(a,"val",!0)?"uppercase":"none";break;case"smallCaps":t["font-variant"]=M.boolAttr(a,"val",!0)?"small-caps":"none";break;case"u":this.parseUnderline(a,t);break;case"ind":case"tblInd":this.parseIndentation(a,t);break;case"rFonts":this.parseFont(a,t);break;case"tblBorders":this.parseBorderProperties(a,r||t);break;case"tblCellSpacing":t["border-spacing"]=gt.valueOfMargin(a),t["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(a,t);break;case"bdr":t.border=gt.valueOfBorder(a);break;case"tcBorders":this.parseBorderProperties(a,t);break;case"vanish":M.boolAttr(a,"val",!0)&&(t.display="none");break;case"kern":break;case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(a,r||t);break;case"tblLayout":t["table-layout"]=gt.valueOfTblLayout(a);break;case"vAlign":t["vertical-align"]=gt.valueOfTextAlignment(a);break;case"spacing":"pPr"==e.localName&&this.parseSpacing(a,t);break;case"wordWrap":M.boolAttr(a,"val")&&(t["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":t.hyphens=M.boolAttr(a,"val",!0)?"none":"auto";break;case"lang":t.$lang=M.attr(a,"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: ${e.localName}.${a.localName}`);break}}),t}parseUnderline(e,t){var r=M.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":t["text-decoration"]="underline dotted";break;case"double":t["text-decoration"]="underline double";break;case"single":case"thick":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration"]="underline wavy";break;case"words":t["text-decoration"]="underline";break;case"none":t["text-decoration"]="none";break}var n=mt.colorAttr(e,"color");n&&(t["text-decoration-color"]=n)}}parseFont(e,t){var r=M.attr(e,"ascii"),n=gt.themeValue(e,"asciiTheme"),a=[r,n].filter(e=>e).join(", ");a.length>0&&(t["font-family"]=a)}parseIndentation(e,t){var r=M.lengthAttr(e,"firstLine"),n=M.lengthAttr(e,"hanging"),a=M.lengthAttr(e,"left"),i=M.lengthAttr(e,"start"),s=M.lengthAttr(e,"right"),o=M.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-"+n),(a||i)&&(t["margin-left"]=a||i),(s||o)&&(t["margin-right"]=s||o)}parseSpacing(e,t){var r=M.lengthAttr(e,"before"),n=M.lengthAttr(e,"after"),a=M.intAttr(e,"line",null),i=M.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==a)switch(i){case"auto":t["line-height"]=""+(a/240).toFixed(2);break;case"atLeast":t["line-height"]=`calc(100% + ${a/20}pt)`;break;default:t["line-height"]=t["min-height"]=a/20+"pt";break}}parseMarginProperties(e,t){mt.foreach(e,e=>{switch(e.localName){case"left":t["padding-left"]=gt.valueOfMargin(e);break;case"right":t["padding-right"]=gt.valueOfMargin(e);break;case"top":t["padding-top"]=gt.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=gt.valueOfMargin(e);break}})}parseTrHeight(e,t){switch(M.attr(e,"hRule")){case"exact":t.height=M.lengthAttr(e,"val");break;case"atLeast":default:t.height=M.lengthAttr(e,"val");break}}parseBorderProperties(e,t){mt.foreach(e,e=>{switch(e.localName){case"start":case"left":t["border-left"]=gt.valueOfBorder(e);break;case"end":case"right":t["border-right"]=gt.valueOfBorder(e);break;case"top":t["border-top"]=gt.valueOfBorder(e);break;case"bottom":t["border-bottom"]=gt.valueOfBorder(e);break}})}}const pt=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class mt{static foreach(e,t){for(var r=0;r<e.childNodes.length;r++){let n=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}static colorAttr(e,t,r=null,n="black"){var a=M.attr(e,t);if(a)return"auto"==a?n:pt.includes(a)?a:"#"+a;var i=M.attr(e,"themeColor");return i?`var(--docx-${i}-color)`:r}static sizeValue(e,t=x.Dxa){return S(e.textContent,t)}}class gt{static themeValue(e,t){var r=M.attr(e,t);return r?`var(--docx-${r}-font)`:null}static valueOfSize(e,t){var r=x.Dxa;switch(M.attr(e,"type")){case"dxa":break;case"pct":r=x.Percent;break;case"auto":return"auto"}return M.lengthAttr(e,t,r)}static valueOfMargin(e){return M.lengthAttr(e,"w")}static valueOfBorder(e){var t=M.attr(e,"val");if("nil"==t)return"none";var r=mt.colorAttr(e,"color"),n=M.lengthAttr(e,"sz",x.Border);return`${n} solid ${"auto"==r?ut.borderColor:r}`}static valueOfTblLayout(e){var t=M.attr(e,"val");return"fixed"==t?"fixed":"auto"}static classNameOfCnfStyle(e){const t=M.attr(e,"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((e,r)=>"1"==t[r]).join(" ")}static valueOfJc(e){var t=M.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}static valueOfVertAlign(e,t=!1){var r=M.attr(e,"val");switch(r){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:r}static valueOfTextAlignment(e){var t=M.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}static addSize(e,t){return null==e?t:null==t?e:`calc(${e} + ${t})`}static classNameOftblLook(e){const t=M.hexAttr(e,"val",0);let r="";return(M.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(M.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(M.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(M.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(M.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(M.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}const bt={pos:0,leader:"none",style:"left"},vt=50;function yt(e=document.body){const t=document.createElement("div");t.style.width="100pt",e.appendChild(t);const r=100/t.offsetWidth;return e.removeChild(t),r}function _t(e,t,r,n=.75){const a=e.closest("p"),i=e.getBoundingClientRect(),s=a.getBoundingClientRect(),o=getComputedStyle(a),l=(null==t?void 0:t.length)>0?t.map(e=>({pos:kt(e.position),leader:e.leader,style:e.style})).sort((e,t)=>e.pos-t.pos):[bt],c=l[l.length-1],u=s.width*n,f=kt(r);let p=c.pos+f;if(p<u)for(;p<u&&l.length<vt;p+=f)l.push(d(h({},bt),{pos:p}));const m=parseFloat(o.marginLeft),g=s.left+m,b=(i.left-g)*n,v=l.find(e=>"clear"!=e.style&&e.pos>b);if(null==v)return;let y=1;if("right"==v.style||"center"==v.style){const t=Array.from(a.querySelectorAll("."+e.className)),r=t.indexOf(e)+1,i=document.createRange();i.setStart(e,1),r<t.length?i.setEndBefore(t[r]):i.setEndAfter(a);const o="center"==v.style?.5:1,l=i.getBoundingClientRect(),c=l.left+o*l.width-(s.left-m);y=v.pos-c*n}else y=v.pos-b;switch(e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing=y.toFixed(0)+"pt",v.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline";break}}function kt(e){return parseFloat(e)}const wt={svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML"};class xt{constructor(e){this.htmlDocument=e,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.commentMap={},this.tasks=[],this.postRenderTasks=[],this.createElement=St}render(e,t,r=null,n){var a;this.document=e,this.options=n,this.className=n.className,this.rootSelector=n.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,this.tasks=[],this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight),r=r||t,Et(r),Et(t),Tt(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),e.themePart&&(Tt(r,"docxjs document theme values"),this.renderTheme(e.themePart,r)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),Tt(r,"docxjs document styles"),r.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),Tt(r,"docxjs document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),e.footnotesPart&&(this.footnoteMap=$(e.footnotesPart.notes,e=>e.id)),e.endnotesPart&&(this.endnoteMap=$(e.endnotesPart.notes,e=>e.id)),e.settingsPart&&(this.defaultTabSize=null==(a=e.settingsPart.settings)?void 0:a.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r);var i=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(i)):At(t,i),this.commentHighlight&&n.renderComments&&CSS.highlights.set(this.className+"-comments",this.commentHighlight),this.refreshTabStops(),this.postRenderTasks.forEach(e=>e())}renderTheme(e,t){var r,n;const a={},i=null==(r=e.theme)?void 0:r.fontScheme;i&&(i.majorFont&&(a["--docx-majorHAnsi-font"]=i.majorFont.latinTypeface),i.minorFont&&(a["--docx-minorHAnsi-font"]=i.minorFont.latinTypeface));const s=null==(n=e.theme)?void 0:n.colorScheme;if(s)for(let[l,c]of Object.entries(s.colors))a[`--docx-${l}-color`]="#"+c;const o=this.styleToString("."+this.className,a);t.appendChild(Nt(o))}renderFontTable(e,t){for(let r of e.fonts)for(let e of r.embedFontRefs)this.tasks.push(this.document.loadFont(e.id,e.key).then(n=>{const a={"font-family":r.name,src:`url(${n})`};("bold"==e.type||"boldItalic"==e.type)&&(a["font-weight"]="bold"),("italic"==e.type||"boldItalic"==e.type)&&(a["font-style"]="italic"),Tt(t,`docxjs ${r.name} font`);const i=this.styleToString("@font-face",a);t.appendChild(Nt(i)),this.refreshTabStops()}))}processStyleName(e){return e?`${this.className}_${L(e)}`:this.className}processStyles(e){const t=$(e.filter(e=>null!=e.id),e=>e.id);for(const n of e.filter(e=>e.basedOn)){var r=t[n.basedOn];if(r){n.paragraphProps=Z(n.paragraphProps,r.paragraphProps),n.runProps=Z(n.runProps,r.runProps);for(const e of r.styles){const t=n.styles.find(t=>t.target==e.target);t?this.copyStyleProperties(e.values,t.values):n.styles.push(d(h({},e),{values:h({},e.values)}))}}else this.options.debug&&console.warn("Can't find base style "+n.basedOn)}for(let n of e)n.cssName=this.processStyleName(n.id);return t}prodessNumberings(e){var t;for(let r of e.filter(e=>e.pStyleName)){const e=this.findStyle(r.pStyleName);null!=(t=null==e?void 0:e.paragraphProps)&&t.numbering&&(e.paragraphProps.numbering.level=r.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==ee.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var r of t.children)r.cssStyle=this.copyStyleProperties(e.cellStyle,r.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(r)}copyStyleProperties(e,t,r=null){if(!e)return t;for(var n of(null==t&&(t={}),null==r&&(r=Object.getOwnPropertyNames(e)),r))e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);return t}createPageElement(e,t){var r=this.createElement("section",{className:e});return t&&(t.pageMargins&&(r.style.paddingLeft=t.pageMargins.left,r.style.paddingRight=t.pageMargins.right,r.style.paddingTop=t.pageMargins.top,r.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(r.style.width=t.pageSize.width),this.options.ignoreHeight||(r.style.minHeight=t.pageSize.height))),r}createSectionContent(e){var t=this.createElement("article");return e.columns&&e.columns.numberOfColumns&&(t.style.columnCount=""+e.columns.numberOfColumns,t.style.columnGap=e.columns.space,e.columns.separator&&(t.style.columnRule="1px solid black")),t}renderSections(e){const t=[];this.processElement(e);const r=this.splitBySection(e.children,e.props),n=this.groupByPageBreaks(r);let a=null;for(let s=0,o=n.length;s<o;s++){this.currentFootnoteIds=[];let r=n[s][0].sectProps;const l=this.createPageElement(this.className,r);this.renderStyleValues(e.cssStyle,l),this.options.renderHeaders&&this.renderHeaderFooter(r.headerRefs,r,t.length,a!=r,l);for(const e of n[s]){var i=this.createSectionContent(e.sectProps);this.renderElements(e.elements,i),l.appendChild(i),r=e.sectProps}this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&s==o-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(r.footerRefs,r,t.length,a!=r,l),t.push(l),a=r}return t}renderHeaderFooter(e,t,r,n,a){var i,s;if(e){var o=null!=(s=null!=(i=t.titlePage&&n?e.find(e=>"first"==e.type):null)?i:r%2==1?e.find(e=>"even"==e.type):null)?s:e.find(e=>"default"==e.type),l=o&&this.document.findPartByRelId(o.id,this.document.documentPart);if(l){this.currentPart=l,this.usedHederFooterParts.includes(l.path)||(this.processElement(l.rootElement),this.usedHederFooterParts.push(l.path));const[e]=this.renderElements([l.rootElement],a);null!=t&&t.pageMargins&&(l.rootElement.type===ee.Header?(e.style.marginTop=`calc(${t.pageMargins.header} - ${t.pageMargins.top})`,e.style.minHeight=`calc(${t.pageMargins.top} - ${t.pageMargins.header})`):l.rootElement.type===ee.Footer&&(e.style.marginBottom=`calc(${t.pageMargins.footer} - ${t.pageMargins.bottom})`,e.style.minHeight=`calc(${t.pageMargins.bottom} - ${t.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(e){return e.type==ee.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}isPageBreakSection(e,t){var r,n,a,i,s,o;return!(!e||!t)&&((null==(r=e.pageSize)?void 0:r.orientation)!=(null==(n=t.pageSize)?void 0:n.orientation)||(null==(a=e.pageSize)?void 0:a.width)!=(null==(i=t.pageSize)?void 0:i.width)||(null==(s=e.pageSize)?void 0:s.height)!=(null==(o=t.pageSize)?void 0:o.height))}splitBySection(e,t){var r,n={sectProps:null,elements:[],pageBreak:!1},a=[n];for(let f of e){if(f.type==ee.Paragraph){const e=this.findStyle(f.styleName);null!=(r=null==e?void 0:e.paragraphProps)&&r.pageBreakBefore&&(n.sectProps=i,n.pageBreak=!0,n={sectProps:null,elements:[],pageBreak:!1},a.push(n))}if(n.elements.push(f),f.type==ee.Paragraph){const e=f;var i=e.sectionProps,s=-1,o=-1;if(this.options.breakPages&&e.children&&(s=e.children.findIndex(e=>{var t,r;return o=null!=(r=null==(t=e.children)?void 0:t.findIndex(this.isPageBreakElement.bind(this)))?r:-1,-1!=o})),(i||-1!=s)&&(n.sectProps=i,n.pageBreak=-1!=s,n={sectProps:null,elements:[],pageBreak:!1},a.push(n)),-1!=s){let t=e.children[s],r=o<t.children.length-1;if(s<e.children.length-1||r){var l=f.children,c=d(h({},f),{children:l.slice(s)});if(f.children=l.slice(0,s),n.elements.push(c),r){let e=t.children,r=d(h({},t),{children:e.slice(0,o)});f.children.push(r),t.children=e.slice(o)}}}}}let u=null;for(let h=a.length-1;h>=0;h--)null==a[h].sectProps?a[h].sectProps=null!=u?u:t:u=a[h].sectProps;return a}groupByPageBreaks(e){let t,r=[];const n=[r];for(let a of e)r.push(a),(this.options.ignoreLastRenderedPageBreak||a.pageBreak||this.isPageBreakSection(t,a.sectProps))&&n.push(r=[]),t=a.sectProps;return n.filter(e=>e.length>0)}renderWrapper(e){return this.createElement("div",{className:this.className+"-wrapper"},e)}renderDefaultStyle(){var e=this.className,t=`\n.${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.${e} { color: black; hyphens: auto; text-underline-position: from-font; }\nsection.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.${e}>article { margin-bottom: auto; z-index: 1; }\nsection.${e}>footer { z-index: 1; }\n.${e} table { border-collapse: collapse; }\n.${e} table td, .${e} table th { vertical-align: top; }\n.${e} p { margin: 0pt; min-height: 1em; }\n.${e} span { white-space: pre-wrap; overflow-wrap: break-word; }\n.${e} a { color: inherit; text-decoration: inherit; }\n.${e} svg { fill: transparent; }\n`;return this.options.renderComments&&(t+=`\n.${e}-comment-ref { cursor: default; }\n.${e}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; }\n.${e}-comment-ref:hover~.${e}-comment-popover { display: block; }\n.${e}-comment-author,.${e}-comment-date { font-size: 0.875rem; color: #888; }\n`),Nt(t)}renderNumbering(e,t){var r="",n=[];for(var a of e){var i="p."+this.numberingClass(a.id,a.level),s="none";if(a.bullet){let e=`--${this.className}-${a.bullet.src}`.toLowerCase();r+=this.styleToString(i+":before",{content:"' '",display:"inline-block",background:`var(${e})`},a.bullet.style),this.tasks.push(this.document.loadNumberingImage(a.bullet.src).then(r=>{var n=`${this.rootSelector} { ${e}: url(${r}) }`;t.appendChild(Nt(n))}))}else if(a.levelText){let e=this.numberingCounter(a.id,a.level);const t=e+" "+(a.start-1);a.level>0&&(r+=this.styleToString("p."+this.numberingClass(a.id,a.level-1),{"counter-reset":t})),n.push(t),r+=this.styleToString(i+":before",h({content:this.levelTextToContent(a.levelText,a.suff,a.id,this.numFormatToCssValue(a.format)),"counter-increment":e},a.rStyle))}else s=this.numFormatToCssValue(a.format);r+=this.styleToString(i,h({display:"list-item","list-style-position":"inside","list-style-type":s},a.pStyle))}return n.length>0&&(r+=this.styleToString(this.rootSelector,{"counter-reset":n.join(" ")})),Nt(r)}renderStyles(e){var t,r="";const n=this.styleMap,a=$(e.filter(e=>e.isDefault),e=>e.target);for(const l of e){var i=l.styles;if(l.linked){var s=l.linked&&n[l.linked];s?i=i.concat(s.styles):this.options.debug&&console.warn("Can't find linked style "+l.linked)}for(const e of i){var o=`${null!=(t=l.target)?t:""}.${l.cssName}`;l.target!=e.target&&(o+=" "+e.target),a[l.target]==l&&(o=`.${this.className} ${l.target}, `+o),r+=this.styleToString(o,e.values)}}return Nt(r)}renderNotes(e,t,r){var n=e.map(e=>t[e]).filter(e=>e);if(n.length>0){var a=this.createElement("ol",null,this.renderElements(n));r.appendChild(a)}}renderElement(e){switch(e.type){case ee.Paragraph:return this.renderParagraph(e);case ee.BookmarkStart:return this.renderBookmarkStart(e);case ee.BookmarkEnd:return null;case ee.Run:return this.renderRun(e);case ee.Table:return this.renderTable(e);case ee.Row:return this.renderTableRow(e);case ee.Cell:return this.renderTableCell(e);case ee.Hyperlink:return this.renderHyperlink(e);case ee.SmartTag:return this.renderSmartTag(e);case ee.Drawing:return this.renderDrawing(e);case ee.Image:return this.renderImage(e);case ee.Text:return this.renderText(e);case ee.Text:return this.renderText(e);case ee.DeletedText:return this.renderDeletedText(e);case ee.Tab:return this.renderTab(e);case ee.Symbol:return this.renderSymbol(e);case ee.Break:return this.renderBreak(e);case ee.Footer:return this.renderContainer(e,"footer");case ee.Header:return this.renderContainer(e,"header");case ee.Footnote:case ee.Endnote:return this.renderContainer(e,"li");case ee.FootnoteReference:return this.renderFootnoteReference(e);case ee.EndnoteReference:return this.renderEndnoteReference(e);case ee.NoBreakHyphen:return this.createElement("wbr");case ee.VmlPicture:return this.renderVmlPicture(e);case ee.VmlElement:return this.renderVmlElement(e);case ee.MmlMath:return this.renderContainerNS(e,wt.mathML,"math",{xmlns:wt.mathML});case ee.MmlMathParagraph:return this.renderContainer(e,"span");case ee.MmlFraction:return this.renderContainerNS(e,wt.mathML,"mfrac");case ee.MmlBase:return this.renderContainerNS(e,wt.mathML,e.parent.type==ee.MmlMatrixRow?"mtd":"mrow");case ee.MmlNumerator:case ee.MmlDenominator:case ee.MmlFunction:case ee.MmlLimit:case ee.MmlBox:return this.renderContainerNS(e,wt.mathML,"mrow");case ee.MmlGroupChar:return this.renderMmlGroupChar(e);case ee.MmlLimitLower:return this.renderContainerNS(e,wt.mathML,"munder");case ee.MmlMatrix:return this.renderContainerNS(e,wt.mathML,"mtable");case ee.MmlMatrixRow:return this.renderContainerNS(e,wt.mathML,"mtr");case ee.MmlRadical:return this.renderMmlRadical(e);case ee.MmlSuperscript:return this.renderContainerNS(e,wt.mathML,"msup");case ee.MmlSubscript:return this.renderContainerNS(e,wt.mathML,"msub");case ee.MmlDegree:case ee.MmlSuperArgument:case ee.MmlSubArgument:return this.renderContainerNS(e,wt.mathML,"mn");case ee.MmlFunctionName:return this.renderContainerNS(e,wt.mathML,"ms");case ee.MmlDelimiter:return this.renderMmlDelimiter(e);case ee.MmlRun:return this.renderMmlRun(e);case ee.MmlNary:return this.renderMmlNary(e);case ee.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case ee.MmlBar:return this.renderMmlBar(e);case ee.MmlEquationArray:return this.renderMllList(e);case ee.Inserted:return this.renderInserted(e);case ee.Deleted:return this.renderDeleted(e);case ee.CommentRangeStart:return this.renderCommentRangeStart(e);case ee.CommentRangeEnd:return this.renderCommentRangeEnd(e);case ee.CommentReference:return this.renderCommentReference(e)}return null}renderChildren(e,t){return this.renderElements(e.children,t)}renderElements(e,t){if(null==e)return null;var r=e.flatMap(e=>this.renderElement(e)).filter(e=>null!=e);return t&&At(t,r),r}renderContainer(e,t,r){return this.createElement(t,r,this.renderChildren(e))}renderContainerNS(e,t,r,n){return Pt(t,r,n,this.renderChildren(e))}renderParagraph(e){var t,r,n,a=this.createElement("p");const i=this.findStyle(e.styleName);null!=e.tabs||(e.tabs=null==(t=null==i?void 0:i.paragraphProps)?void 0:t.tabs),this.renderClass(e,a),this.renderChildren(e,a),this.renderStyleValues(e.cssStyle,a),this.renderCommonProperties(a.style,e);const s=null!=(n=e.numbering)?n:null==(r=null==i?void 0:i.paragraphProps)?void 0:r.numbering;return s&&a.classList.add(this.numberingClass(s.id,s.level)),a}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}renderHyperlink(e){var t=this.createElement("a");if(this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href)t.href=e.href;else if(e.id){const r=this.document.documentPart.rels.find(t=>t.id==e.id&&"External"===t.targetMode);t.href=null==r?void 0:r.target}return t}renderSmartTag(e){var t=this.createElement("span");return this.renderChildren(e,t),t}renderCommentRangeStart(e){var t;if(!this.options.renderComments)return null;const r=new Range;null==(t=this.commentHighlight)||t.add(r);const n=this.htmlDocument.createComment("start of comment #"+e.id);return this.later(()=>r.setStart(n,0)),this.commentMap[e.id]=r,n}renderCommentRangeEnd(e){if(!this.options.renderComments)return null;const t=this.commentMap[e.id],r=this.htmlDocument.createComment("end of comment #"+e.id);return this.later(()=>null==t?void 0:t.setEnd(r,0)),r}renderCommentReference(e){var t;if(!this.options.renderComments)return null;var r=null==(t=this.document.commentsPart)?void 0:t.commentMap[e.id];if(!r)return null;const n=new DocumentFragment,a=St("span",{className:this.className+"-comment-ref"},["💬"]),i=St("div",{className:this.className+"-comment-popover"});return this.renderCommentContent(r,i),n.appendChild(this.htmlDocument.createComment(`comment #${r.id} by ${r.author} on ${r.date}`)),n.appendChild(a),n.appendChild(i),n}renderCommentContent(e,t){t.appendChild(St("div",{className:this.className+"-comment-author"},[e.author])),t.appendChild(St("div",{className:this.className+"-comment-date"},[new Date(e.date).toLocaleString()])),this.renderChildren(e,t)}renderDrawing(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(e=>{t.src=e})),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}renderBreak(e){return"textWrapping"==e.break?this.createElement("br"):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}renderSymbol(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent=""+this.currentFootnoteIds.length,t}renderEndnoteReference(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent=""+this.currentEndnoteIds.length,t}renderTab(e){var t,r=this.createElement("span");if(r.innerHTML="&emsp;",this.options.experimental){r.className=this.tabStopClass();var n=null==(t=Rt(e,ee.Paragraph))?void 0:t.tabs;this.currentTabs.push({stops:n,span:r})}return r}renderBookmarkStart(e){var t=this.createElement("span");return t.id=e.name,t}renderRun(e){if(e.fieldRun)return null;const t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){const r=this.createElement(e.verticalAlign);this.renderChildren(e,r),t.appendChild(r)}else this.renderChildren(e,t);return t}renderTable(e){let t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement("colgroup");for(let r of e){let e=this.createElement("col");r.width&&(e.style.width=r.width),t.appendChild(e)}return t}renderTableRow(e){let t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}renderTableCell(e){let t=this.createElement("td");const r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t,t.rowSpan=1):this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){var t=St("div");return this.renderChildren(e,t),t}renderVmlElement(e){var t,r,n=Ct("svg");n.setAttribute("style",e.cssStyleText);const a=this.renderVmlChildElement(e);return null!=(t=e.imageHref)&&t.id&&this.tasks.push(null==(r=this.document)?void 0:r.loadDocumentImage(e.imageHref.id,this.currentPart).then(e=>a.setAttribute("href",e))),n.appendChild(a),requestAnimationFrame(()=>{const e=n.firstElementChild.getBBox();n.setAttribute("width",""+Math.ceil(e.x+e.width)),n.setAttribute("height",""+Math.ceil(e.y+e.height))}),n}renderVmlChildElement(e){const t=Ct(e.tagName);Object.entries(e.attrs).forEach(([e,r])=>t.setAttribute(e,r));for(let r of e.children)r.type==ee.VmlElement?t.appendChild(this.renderVmlChildElement(r)):t.appendChild(...G(this.renderElement(r)));return t}renderMmlRadical(e){var t;const r=e.children.find(e=>e.type==ee.MmlBase);if(null!=(t=e.props)&&t.hideDegree)return Pt(wt.mathML,"msqrt",null,this.renderElements([r]));const n=e.children.find(e=>e.type==ee.MmlDegree);return Pt(wt.mathML,"mroot",null,this.renderElements([r,n]))}renderMmlDelimiter(e){var t,r;const n=[];return n.push(Pt(wt.mathML,"mo",null,[null!=(t=e.props.beginChar)?t:"("])),n.push(...this.renderElements(e.children)),n.push(Pt(wt.mathML,"mo",null,[null!=(r=e.props.endChar)?r:")"])),Pt(wt.mathML,"mrow",null,n)}renderMmlNary(e){var t,r;const n=[],a=$(e.children,e=>e.type),i=a[ee.MmlSuperArgument],s=a[ee.MmlSubArgument],o=i?Pt(wt.mathML,"mo",null,G(this.renderElement(i))):null,l=s?Pt(wt.mathML,"mo",null,G(this.renderElement(s))):null,c=Pt(wt.mathML,"mo",null,[null!=(r=null==(t=e.props)?void 0:t.char)?r:"∫"]);return o||l?n.push(Pt(wt.mathML,"munderover",null,[c,l,o])):o?n.push(Pt(wt.mathML,"mover",null,[c,o])):l?n.push(Pt(wt.mathML,"munder",null,[c,l])):n.push(c),n.push(...this.renderElements(a[ee.MmlBase].children)),Pt(wt.mathML,"mrow",null,n)}renderMmlPreSubSuper(e){const t=[],r=$(e.children,e=>e.type),n=r[ee.MmlSuperArgument],a=r[ee.MmlSubArgument],i=n?Pt(wt.mathML,"mo",null,G(this.renderElement(n))):null,s=a?Pt(wt.mathML,"mo",null,G(this.renderElement(a))):null,o=Pt(wt.mathML,"mo",null);return t.push(Pt(wt.mathML,"msubsup",null,[o,s,i])),t.push(...this.renderElements(r[ee.MmlBase].children)),Pt(wt.mathML,"mrow",null,t)}renderMmlGroupChar(e){const t="bot"===e.props.verticalJustification?"mover":"munder",r=this.renderContainerNS(e,wt.mathML,t);return e.props.char&&r.appendChild(Pt(wt.mathML,"mo",null,[e.props.char])),r}renderMmlBar(e){const t=this.renderContainerNS(e,wt.mathML,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline";break}return t}renderMmlRun(e){const t=Pt(wt.mathML,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}renderMllList(e){const t=Pt(wt.mathML,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);for(let r of this.renderChildren(e))t.appendChild(Pt(wt.mathML,"mtr",null,[Pt(wt.mathML,"mtd",null,[r])]));return t}renderStyleValues(e,t){for(let r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){var t;return e&&(null==(t=this.styleMap)?void 0:t[e])}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return this.className+"-tab-stop"}styleToString(e,t,r=null){let n=e+" {\r\n";for(const a in t)a.startsWith("$")||(n+=`  ${a}: ${t[a]};\r\n`);return r&&(n+=r),n+"}\r\n"}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,r,n){var a;const i={tab:"\\9",space:"\\a0"};var s=e.replace(/%\d*/g,e=>{let t=parseInt(e.substring(1),10)-1;return`"counter(${this.numberingCounter(r,t)}, ${n})"`});return`"${s}${null!=(a=i[t])?a:""}"`}numFormatToCssValue(e){var t,r={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"};return null!=(t=r[e])?t:e}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const e=yt();for(let t of this.currentTabs)_t(t.span,t.stops,this.defaultTabSize,e)},500))}later(e){this.postRenderTasks.push(e)}}function St(e,t,r){return Pt(void 0,e,t,r)}function Ct(e,t,r){return Pt(wt.svg,e,t,r)}function Pt(e,t,r,n){var a=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(a,r),n&&At(a,n),a}function Et(e){e.innerHTML=""}function At(e,t){t.forEach(t=>e.appendChild(V(t)?document.createTextNode(t):t))}function Nt(e){return St("style",{innerHTML:e})}function Tt(e,t){e.appendChild(document.createComment(t))}function Rt(e,t){for(var r=e.parent;null!=r&&r.type!=t;)r=r.parent;return r}const Mt={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,renderChanges:!1,renderComments:!1};function Ot(e,t){const r=h(h({},Mt),t);return Ye.load(e,new ft(r),r)}function zt(e,t,r,n){return f(this,null,(function*(){const a=h(h({},Mt),n),i=new xt(window.document);return i.render(e,t,r,a),Promise.allSettled(i.tasks)}))}function Bt(e,t,r,n){return f(this,null,(function*(){const a=yield Ot(e,n);return yield zt(a,t,r,n),a}))}const Dt={ignoreLastRenderedPageBreak:!1};function It(e,t={}){return"string"==typeof e?Ft(e,t):Promise.resolve(e)}function Ft(e,t){return fetch(e,t).then(e=>200!==e.status?Promise.reject(e):e)}function Lt(e){return f(this,null,(function*(){let t;return e instanceof Blob?t=e:e instanceof Response?t=yield e.blob():e instanceof ArrayBuffer&&(t=new Blob([e])),t}))}function jt(e,t,r={}){if(!e)return t.innerHTML="",Promise.resolve();let n;return e instanceof Blob?n=e:e instanceof Response?n=e.blob():e instanceof ArrayBuffer&&(n=new Blob([e])),Bt(n,t,t,h(h({},Dt),r))}const Ut={getData:It,render:jt,getBlob:Lt};function $t(e,t){return f(this,null,(function*(){t&&(t instanceof ArrayBuffer&&(t=new Blob([t])),Wt(e,URL.createObjectURL(t)))}))}function Wt(e,t){let r=document.createElement("a");r.download=e,r.style.display="none",r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}var Ht=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vue-office-docx"},[r("div",{ref:"rootRef",staticClass:"vue-office-docx-main"})])},Vt=[];function Zt(e,t,r,n,a,i,s,o){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!e&&"undefined"!=typeof __VUE_SSR_CONTEXT__&&(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):a&&(l=o?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}const Gt=e.defineComponent({name:"VueOfficeDocx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(t,{emit:r}){const n=e.ref(null);let a=null;function i(){let e=n.value;Ut.getData(t.src,t.requestOptions).then(n=>f(this,null,(function*(){a=yield Ut.getBlob(n),Ut.render(a,e,t.options).then(()=>{r("rendered")}).catch(n=>{Ut.render("",e,t.options),r("error",n)})}))).catch(n=>{Ut.render("",e,t.options),r("error",n)})}function s(e){$t(e||`vue-office-docx-${(new Date).getTime()}.docx`,a)}return e.onMounted(()=>{t.src&&i()}),e.watch(()=>t.src,()=>{t.src?i():Ut.render("",n.value,t.options).then(()=>{r("rendered")})}),{rootRef:n,save:s}}}),Xt={};var Kt=Zt(Gt,Ht,Vt,!1,qt,null,null,null);function qt(e){for(let t in Xt)this[t]=Xt[t]}const Yt=function(){return Kt.exports}();return Yt.install=function(e){e.component(Yt.name,Yt)},Yt}))}).call(this,r("24aa"),r("b639").Buffer,r("4362"))},"8afd":function(e,t,r){"use strict";r.r(t);var n=r("2b0e"),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s,o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)};function l(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=i.next()).done)s.push(n.value)}catch(o){a={error:o}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(a)throw a.error}}return s}function u(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){var t;re(e,null===(t=z())||void 0===t?void 0:t.proxy)}var d=[],f=function(){function e(e){this.active=!0,this.effects=[],this.cleanups=[],this.vm=e}return e.prototype.run=function(e){if(this.active)try{return this.on(),e()}finally{this.off()}else 0},e.prototype.on=function(){this.active&&(d.push(this),s=this)},e.prototype.off=function(){this.active&&(d.pop(),s=d[d.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(e){return e.stop()})),this.cleanups.forEach((function(e){return e()})),this.active=!1)},e}(),p=function(e){function t(t){void 0===t&&(t=!1);var r=this,n=void 0;return M((function(){n=se(N())})),r=e.call(this,n)||this,t||m(r),r}return i(t,e),t}(f);function m(e,t){var r;if(t=t||s,t&&t.active)t.effects.push(e);else{var n=null===(r=z())||void 0===r?void 0:r.proxy;n&&n.$on("hook:destroyed",(function(){return e.stop()}))}}function g(e){return new p(e)}function b(){return s}function v(e){s&&s.cleanups.push(e)}function y(){var e,t;return(null===(e=b())||void 0===e?void 0:e.vm)||(null===(t=z())||void 0===t?void 0:t.proxy)}function _(e){if(!e.scope){var t=new f(e.proxy);e.scope=t,e.proxy.$on("hook:destroyed",(function(){return t.stop()}))}return e.scope}var k=void 0;try{var w=require("vue");w&&E(w)?k=w:w&&"default"in w&&E(w.default)&&(k=w.default)}catch(br){}var x=null,S=null,C=!0,P="__composition_api_installed__";function E(e){return e&&te(e)&&"Vue"===e.name}function A(e){return x&&W(e,P)}function N(){return x}function T(){var e=x||k;return e}function R(e){x=e,Object.defineProperty(e,P,{configurable:!0,writable:!0,value:!0})}function M(e){var t=C;C=!1;try{e()}finally{C=t}}function O(e){if(C){var t=S;null===t||void 0===t||t.scope.off(),S=e,null===S||void 0===S||S.scope.on()}}function z(){return S}var B=new WeakMap;function D(e){if(B.has(e))return B.get(e);var t={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};_(t);var r=["data","props","attrs","refs","vnode","slots"];return r.forEach((function(r){U(t,r,{get:function(){return e["$".concat(r)]}})})),U(t,"isMounted",{get:function(){return e._isMounted}}),U(t,"isUnmounted",{get:function(){return e._isDestroyed}}),U(t,"isDeactivated",{get:function(){return e._inactive}}),U(t,"emitted",{get:function(){return e._events}}),B.set(e,t),e.$parent&&(t.parent=D(e.$parent)),e.$root&&(t.root=D(e.$root)),t}var I=function(e){return Object.prototype.toString.call(e)};function F(e){return"function"===typeof e&&/native code/.test(e.toString())}var L="undefined"!==typeof Symbol&&F(Symbol)&&"undefined"!==typeof Reflect&&F(Reflect.ownKeys),j=function(e){return e};function U(e,t,r){var n=r.get,a=r.set;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:n||j,set:a||j})}function $(e,t,r,n){Object.defineProperty(e,t,{value:r,enumerable:!!n,writable:!0,configurable:!0})}function W(e,t){return Object.hasOwnProperty.call(e,t)}function H(e,t){if(!e)throw new Error("[vue-composition-api] ".concat(t))}function V(e){return Array.isArray(e)}var Z,G=Object.prototype.toString,X=function(e){return G.call(e)},K=function(e){return"[object Map]"===X(e)},q=function(e){return"[object Set]"===X(e)},Y=4294967295;function J(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)&&t<=Y}function Q(e){return null!==e&&"object"===typeof e}function ee(e){return"[object Object]"===I(e)}function te(e){return"function"===typeof e}function re(e,t){var r=T();r&&r.util?r.util.warn(e,t):console.warn("[vue-composition-api] ".concat(e))}function ne(e,t,r){if("undefined"===typeof window||"undefined"===typeof console)throw e;console.error(e)}function ae(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function ie(e,t){return t=t||z(),t}function se(e,t){void 0===t&&(t={});var r=e.config.silent;e.config.silent=!0;var n=new e(t);return e.config.silent=r,n}function oe(e){var t=N();return t&&e instanceof t}function le(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(e.$scopedSlots[t])return e.$scopedSlots[t].apply(e,r)}}function ce(e,t){var r;if(e){if(e._normalized)return e._normalized;for(var n in r={},e)e[n]&&"$"!==n[0]&&(r[n]=!0)}else r={};for(var n in t)n in r||(r[n]=!0);return r}var ue=function(){if(!Z){var e=se(N(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,r=e._data.__ob__.dep.constructor;Z={Watcher:t,Dep:r},e.$destroy()}return Z};function he(e){return L?Symbol.for(e):e}var de=he("composition-api.preFlushQueue"),fe=he("composition-api.postFlushQueue"),pe="composition-api.refKey",me=new WeakMap,ge=new WeakMap,be=new WeakMap;function ve(e,t,r){var n=N(),a=n.util,i=(a.warn,a.defineReactive);var s=e.__ob__;function o(){s&&Q(r)&&!W(r,"__ob__")&&Le(r)}if(V(e)){if(J(t))return e.length=Math.max(e.length,t),e.splice(t,1,r),o(),r;if("length"===t&&r!==e.length)return e.length=r,null===s||void 0===s||s.dep.notify(),r}return t in e&&!(t in Object.prototype)?(e[t]=r,o(),r):e._isVue||s&&s.vmCount?r:s?(i(s.value,t,r),Ie(e,t,r),o(),s.dep.notify(),r):(e[t]=r,r)}var ye=!1;function _e(){return ye}function ke(e){ye=e}var we=function(){function e(e){var t=e.get,r=e.set;U(this,"value",{get:t,set:r})}return e}();function xe(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=new we(e);r&&(n.effect=!0);var a=Object.seal(n);return t&&be.set(a,!0),a}function Se(e){var t;if(Ce(e))return e;var r=We((t={},t[pe]=e,t));return xe({get:function(){return r[pe]},set:function(e){return r[pe]=e}})}function Ce(e){return e instanceof we}function Pe(e){return Ce(e)?e.value:e}function Ee(e){if(!ee(e))return e;var t={};for(var r in e)t[r]=Ne(e,r);return t}function Ae(e){var t=Se(0);return xe(e((function(){t.value}),(function(){++t.value})))}function Ne(e,t){t in e||ve(e,t,void 0);var r=e[t];return Ce(r)?r:xe({get:function(){return e[t]},set:function(r){return e[t]=r}})}function Te(e){var t;if(Ce(e))return e;var r=$e((t={},t[pe]=e,t));return xe({get:function(){return r[pe]},set:function(e){return r[pe]=e}})}function Re(e){Ce(e)&&(ke(!0),e.value=e.value,ke(!1))}function Me(e){var t,r,n;if(Be(e))return e;var a=We((t={},t[pe]=e,t));$(a,pe,a[pe],!1);var i=function(e){U(a,e,{get:function(){return Ce(a[pe][e])?a[pe][e].value:a[pe][e]},set:function(t){if(Ce(a[pe][e]))return a[pe][e].value=Pe(t);a[pe][e]=Pe(t)}})};try{for(var s=l(Object.keys(e)),o=s.next();!o.done;o=s.next()){var c=o.value;i(c)}}catch(u){r={error:u}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return a}var Oe="__v_skip";function ze(e){var t;return Boolean(e&&W(e,"__ob__")&&"object"===typeof e.__ob__&&(null===(t=e.__ob__)||void 0===t?void 0:t[Oe]))}function Be(e){var t;return Boolean(e&&W(e,"__ob__")&&"object"===typeof e.__ob__&&!(null===(t=e.__ob__)||void 0===t?void 0:t[Oe]))}function De(e){if(!(!ee(e)||ze(e)||V(e)||Ce(e)||oe(e)||me.has(e))){me.set(e,!0);for(var t=Object.keys(e),r=0;r<t.length;r++)Ie(e,t[r])}}function Ie(e,t,r){if("__ob__"!==t&&!ze(e[t])){var n,a,i=Object.getOwnPropertyDescriptor(e,t);if(i){if(!1===i.configurable)return;n=i.get,a=i.set,n&&!a||2!==arguments.length||(r=e[t])}De(r),U(e,t,{get:function(){var a=n?n.call(e):r;return t!==pe&&Ce(a)?a.value:a},set:function(i){n&&!a||(t!==pe&&Ce(r)&&!Ce(i)?r.value=i:a?(a.call(e,i),r=i):r=i,De(i))}})}}function Fe(e){var t,r=T();if(r.observable)t=r.observable(e);else{var n=se(r,{data:{$$state:e}});t=n._data.$$state}return W(t,"__ob__")||Le(t),t}function Le(e,t){var r,n;if(void 0===t&&(t=new Set),!t.has(e)&&!W(e,"__ob__")&&Object.isExtensible(e)){$(e,"__ob__",je(e)),t.add(e);try{for(var a=l(Object.keys(e)),i=a.next();!i.done;i=a.next()){var s=i.value,o=e[s];(ee(o)||V(o))&&!ze(o)&&Object.isExtensible(o)&&Le(o,t)}}catch(c){r={error:c}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}}function je(e){return void 0===e&&(e={}),{value:e,dep:{notify:j,depend:j,addSub:j,removeSub:j}}}function Ue(){return Fe({}).__ob__}function $e(e){var t,r;if(!Q(e))return e;if(!ee(e)&&!V(e)||ze(e)||!Object.isExtensible(e))return e;var n=Fe(V(e)?[]:{}),a=n.__ob__,i=function(t){var r,i,s=e[t],o=Object.getOwnPropertyDescriptor(e,t);if(o){if(!1===o.configurable)return"continue";r=o.get,i=o.set}U(n,t,{get:function(){var e;return null===(e=a.dep)||void 0===e||e.depend(),s},set:function(t){var n;r&&!i||(_e()||s!==t)&&(i?i.call(e,t):s=t,null===(n=a.dep)||void 0===n||n.notify())}})};try{for(var s=l(Object.keys(e)),o=s.next();!o.done;o=s.next()){var c=o.value;i(c)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return n}function We(e){if(!Q(e))return e;if(!ee(e)&&!V(e)||ze(e)||!Object.isExtensible(e))return e;var t=Fe(e);return De(t),t}function He(e){if(!ee(e)&&!V(e)||!Object.isExtensible(e))return e;var t=Ue();return t[Oe]=!0,$(e,"__ob__",t),ge.set(e,!0),e}function Ve(e){var t;return ze(e)||!Object.isExtensible(e)?e:(null===(t=null===e||void 0===e?void 0:e.__ob__)||void 0===t?void 0:t.value)||e}function Ze(e){return be.has(e)}function Ge(e){return be.set(e,!0),e}function Xe(e){var t,r;if(!Q(e))return e;if(!ee(e)&&!V(e)||!Object.isExtensible(e)&&!Ce(e))return e;var n=Ce(e)?new we({}):Be(e)?Fe({}):{},a=We({}),i=a.__ob__,s=function(t){var r,a=e[t],s=Object.getOwnPropertyDescriptor(e,t);if(s){if(!1===s.configurable&&!Ce(e))return"continue";r=s.get}U(n,t,{get:function(){var t=r?r.call(e):a;return i.dep.depend(),t},set:function(e){0}})};try{for(var o=l(Object.keys(e)),c=o.next();!c.done;c=o.next()){var u=c.value;s(u)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return be.set(n,!0),n}function Ke(e,t){var r=N();r.util.warn;if(V(e)&&J(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||W(e,t)&&(delete e[t],n&&n.dep.notify())}}var qe=function(e){return"on".concat(e[0].toUpperCase()+e.slice(1))};function Ye(e){return function(t,r){var n=ie(qe(e),r);return n&&Je(N(),n,e,t)}}function Je(e,t,r,n){var a=t.proxy.$options,i=e.config.optionMergeStrategies[r],s=Qe(t,n);return a[r]=i(a[r],s),s}function Qe(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=z();O(e);try{return t.apply(void 0,u([],c(r),!1))}finally{O(a)}}}var et,tt=Ye("beforeMount"),rt=Ye("mounted"),nt=Ye("beforeUpdate"),at=Ye("updated"),it=Ye("beforeDestroy"),st=Ye("destroyed"),ot=Ye("errorCaptured"),lt=Ye("activated"),ct=Ye("deactivated"),ut=Ye("serverPrefetch");function ht(){vt(this,de)}function dt(){vt(this,fe)}function ft(e){return void 0!==e[de]}function pt(e){e[de]=[],e[fe]=[],e.$on("hook:beforeUpdate",ht),e.$on("hook:updated",dt)}function mt(e){return o({immediate:!1,deep:!1,flush:"pre"},e)}function gt(e){return o({flush:"pre"},e)}function bt(){var e=y();return e?ft(e)||pt(e):(et||(et=se(N())),e=et),e}function vt(e,t){for(var r=e[t],n=0;n<r.length;n++)r[n]();r.length=0}function yt(e,t,r){var n=function(){e.$nextTick((function(){e[de].length&&vt(e,de),e[fe].length&&vt(e,fe)}))};switch(r){case"pre":n(),e[de].push(t);break;case"post":n(),e[fe].push(t);break;default:H(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(r));break}}function _t(e,t,r,n){var a=e._watchers.length;return e.$watch(t,r,{immediate:n.immediateInvokeCallback,deep:n.deep,lazy:n.noRun,sync:n.sync,before:n.before}),e._watchers[a]}function kt(e,t){var r=e.teardown;e.teardown=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r.apply(e,n),t()}}function wt(e,t,r,n){var a;var i,s=n.flush,o="sync"===s,l=function(t){i=function(){try{t()}catch(r){ne(r,e,"onCleanup()")}}},h=function(){i&&(i(),i=null)},d=function(t){return o||e===et?t:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return yt(e,(function(){t.apply(void 0,u([],c(r),!1))}),s)}};if(null===r){var f=!1,p=function(){if(!f)try{f=!0,t(l)}finally{f=!1}},m=_t(e,p,j,{deep:n.deep||!1,sync:o,before:h});kt(m,h),m.lazy=!1;var g=m.get.bind(m);return m.get=d(g),function(){m.teardown()}}var b,v=n.deep,y=!1;if(Ce(t)?b=function(){return t.value}:Be(t)?(b=function(){return t},v=!0):V(t)?(y=!0,b=function(){return t.map((function(e){return Ce(e)?e.value:Be(e)?Et(e):te(e)?e():j}))}):b=te(t)?t:j,v){var _=b;b=function(){return Et(_())}}var k=function(e,t){if(v||!y||!e.every((function(e,r){return ae(e,t[r])})))return h(),r(e,t,l)},w=d(k);if(n.immediate){var x=w,S=function(e,t){return S=x,k(e,V(e)?[]:t)};w=function(e,t){return S(e,t)}}var C=e.$watch(b,w,{immediate:n.immediate,deep:v,sync:o}),P=e._watchers[e._watchers.length-1];return Be(P.value)&&(null===(a=P.value.__ob__)||void 0===a?void 0:a.dep)&&v&&P.value.__ob__.dep.addSub({update:function(){P.run()}}),kt(P,h),function(){C()}}function xt(e,t){var r=gt(t),n=bt();return wt(n,e,null,r)}function St(e){return xt(e,{flush:"post"})}function Ct(e){return xt(e,{flush:"sync"})}function Pt(e,t,r){var n=null;te(t)?n=t:(r=t,n=null);var a=mt(r),i=bt();return wt(i,e,n,a)}function Et(e,t){if(void 0===t&&(t=new Set),!Q(e)||t.has(e)||ge.has(e))return e;if(t.add(e),Ce(e))Et(e.value,t);else if(V(e))for(var r=0;r<e.length;r++)Et(e[r],t);else if(q(e)||K(e))e.forEach((function(e){Et(e,t)}));else if(ee(e))for(var n in e)Et(e[n],t);return e}function At(e){var t,r,n,a,i=y();if(te(e)?t=e:(t=e.get,r=e.set),i&&!i.$isServer){var s,o=ue(),l=o.Watcher,c=o.Dep;a=function(){return s||(s=new l(i,t,j,{lazy:!0})),s.dirty&&s.evaluate(),c.target&&s.depend(),s.value},n=function(e){r&&r(e)}}else{var u=se(N(),{computed:{$$state:{get:t,set:r}}});i&&i.$on("hook:destroyed",(function(){return u.$destroy()})),a=function(){return u.$$state},n=function(e){u.$$state=e}}return xe({get:a,set:n},!r,!0)}var Nt={};function Tt(e,t){var r=t;while(r){if(r._provided&&W(r._provided,e))return r._provided[e];r=r.$parent}return Nt}function Rt(e,t){var r,n=null===(r=ie("provide"))||void 0===r?void 0:r.proxy;if(n){if(!n._provided){var a={};U(n,"_provided",{get:function(){return a},set:function(e){return Object.assign(a,e)}})}n._provided[e]=t}}function Mt(e,t,r){var n;void 0===r&&(r=!1);var a=null===(n=z())||void 0===n?void 0:n.proxy;if(a){if(!e)return t;var i=Tt(e,a);return i!==Nt?i:arguments.length>1?r&&te(t)?t():t:void 0}}var Ot={},zt=function(e){var t;void 0===e&&(e="$style");var r=z();if(!r)return Ot;var n=null===(t=r.proxy)||void 0===t?void 0:t[e];return n||Ot},Bt=zt;function Dt(e,t){void 0===t&&(t=void 0);var r=N(),n=void 0,a={},i={config:r.config,use:r.use.bind(r),mixin:r.mixin.bind(r),component:r.component.bind(r),provide:function(e,t){return a[e]=t,this},directive:function(e,t){return t?(r.directive(e,t),i):r.directive(e)},mount:function(i,s){return n||(n=new r(o(o({propsData:t},e),{provide:o(o({},a),e.provide)})),n.$mount(i,s),n)},unmount:function(){n&&(n.$destroy(),n=void 0)}};return i}var It,Ft=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return null===(e=N())||void 0===e?void 0:e.nextTick.apply(this,t)},Lt=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=(null===this||void 0===this?void 0:this.proxy)||(null===(e=z())||void 0===e?void 0:e.proxy);return n?n.$createElement.apply(n,t):(It||(It=se(N()).$createElement),It.apply(It,t))};function jt(){return $t().slots}function Ut(){return $t().attrs}function $t(){var e=z();return e.setupContext}function Wt(e,t,r){var n=e.__composition_api_state__=e.__composition_api_state__||{};n[t]=r}function Ht(e,t){return(e.__composition_api_state__||{})[t]}var Vt={set:Wt,get:Ht};function Zt(e,t,r){var n=e.$options.props;t in e||n&&W(n,t)||(Ce(r)?U(e,t,{get:function(){return r.value},set:function(e){r.value=e}}):U(e,t,{get:function(){return Be(r)&&r.__ob__.dep.depend(),r},set:function(e){r=e}}))}function Gt(e){var t=Vt.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var r=e.$refs,n=Vt.get(e,"refs")||[],a=0;a<n.length;a++){var i=n[a],s=t[i];!r[i]&&s&&Ce(s)&&(s.value=null)}var o=Object.keys(r),l=[];for(a=0;a<o.length;a++){i=o[a],s=t[i];r[i]&&s&&Ce(s)&&(s.value=r[i],l.push(i))}Vt.set(e,"refs",l)}}function Xt(e){var t=[e._vnode];while(t.length){var r=t.pop();if(r&&(r.context&&Gt(r.context),r.children))for(var n=0;n<r.children.length;++n)t.push(r.children[n])}}function Kt(e,t){var r,n;if(e){var a=Vt.get(e,"attrBindings");if(a||t){if(!a){var i=We({});a={ctx:t,data:i},Vt.set(e,"attrBindings",a),U(t,"attrs",{get:function(){return null===a||void 0===a?void 0:a.data},set:function(){}})}var s=e.$attrs,o=function(t){W(a.data,t)||U(a.data,t,{get:function(){return e.$attrs[t]}})};try{for(var c=l(Object.keys(s)),u=c.next();!u.done;u=c.next()){var h=u.value;o(h)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}}}function qt(e,t){var r=e.$options._parentVnode;if(r){for(var n=Vt.get(e,"slots")||[],a=ce(r.data.scopedSlots,e.$slots),i=0;i<n.length;i++){var s=n[i];a[s]||delete t[s]}var o=Object.keys(a);for(i=0;i<o.length;i++){s=o[i];t[s]||(t[s]=le(e,s))}Vt.set(e,"slots",o)}}function Yt(e,t,r){var n=z();O(e);try{return t(e)}catch(a){if(!r)throw a;r(a)}finally{O(n)}}function Jt(e){function t(){var e=this,t=e.$options,n=t.setup,a=t.render;if(a&&(t.render=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return Yt(D(e),(function(){return a.apply(t,r)}))}),n&&te(n)){var i=t.data;t.data=function(){return r(e,e.$props),te(i)?i.call(e,e):i||{}}}}function r(e,t){void 0===t&&(t={});var r,s=e.$options.setup,o=i(e),l=D(e);if(l.setupContext=o,$(t,"__ob__",Ue()),qt(e,o.slots),Yt(l,(function(){r=s(t,o)})),r)if(te(r)){var c=r;e.$options.render=function(){return qt(e,o.slots),Yt(l,(function(){return c()}))}}else if(Q(r)){Be(r)&&(r=Ee(r)),Vt.set(e,"rawBindings",r);var u=r;Object.keys(u).forEach((function(t){var r=u[t];if(!Ce(r))if(Be(r))V(r)&&(r=Se(r));else if(te(r)){var i=r;r=r.bind(e),Object.keys(i).forEach((function(e){r[e]=i[e]}))}else Q(r)?a(r)&&n(r):r=Se(r);Zt(e,t,r)}))}else 0}function n(e,t){if(void 0===t&&(t=new Set),!t.has(e)&&ee(e)&&!Ce(e)&&!Be(e)&&!ze(e)){var r=N(),a=r.util.defineReactive;Object.keys(e).forEach((function(r){var i=e[r];a(e,r,i),i&&(t.add(i),n(i,t))}))}}function a(e,t){return void 0===t&&(t=new Map),t.has(e)?t.get(e):(t.set(e,!1),V(e)&&Be(e)?(t.set(e,!0),!0):!(!ee(e)||ze(e)||Ce(e))&&Object.keys(e).some((function(r){return a(e[r],t)})))}function i(e){var t={slots:{}},r=["root","parent","refs","listeners","isServer","ssrContext"],n=["emit"];return r.forEach((function(r){var n="$".concat(r);U(t,r,{get:function(){return e[n]},set:function(){}})})),Kt(e,t),n.forEach((function(r){var n="$".concat(r);U(t,r,{get:function(){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var a=e[n];a.apply(e,t)}}})})),t}e.mixin({beforeCreate:t,mounted:function(){Xt(this)},beforeUpdate:function(){Kt(this)},updated:function(){Xt(this)}})}function Qt(e,t){if(!e)return t;if(!t)return e;for(var r,n,a,i=L?Reflect.ownKeys(e):Object.keys(e),s=0;s<i.length;s++)r=i[s],"__ob__"!==r&&(n=t[r],a=e[r],W(t,r)?n!==a&&ee(n)&&!Ce(n)&&ee(a)&&!Ce(a)&&Qt(a,n):t[r]=a);return t}function er(e){A(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(r,n){return Qt(te(e)?e(r,n)||{}:void 0,te(t)?t(r,n)||{}:void 0)}},R(e),Jt(e))}var tr={install:function(e){return er(e)}};function rr(e){return e}function nr(e){te(e)&&(e={loader:e});var t=e.loader,r=e.loadingComponent,n=e.errorComponent,a=e.delay,i=void 0===a?200:a,s=e.timeout,o=(e.suspensible,e.onError);var l=null,c=0,u=function(){return c++,l=null,h()},h=function(){var e;return l||(e=l=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),o)return new Promise((function(t,r){var n=function(){return t(u())},a=function(){return r(e)};o(e,n,a,c+1)}));throw e})).then((function(t){return e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){var e=h();return{component:e,delay:i,timeout:s,error:n,loading:r}}}function ar(e){e=e||n["default"],e&&!e["__composition_api_installed__"]&&e.use(tr)}"undefined"!==typeof window&&window.Vue&&window.Vue.use(tr),r.d(t,"Vue2",(function(){return or})),r.d(t,"isVue2",(function(){return ir})),r.d(t,"isVue3",(function(){return sr})),r.d(t,"version",(function(){return lr})),r.d(t,"install",(function(){return ar})),r.d(t,"Fragment",(function(){return ur})),r.d(t,"Transition",(function(){return hr})),r.d(t,"TransitionGroup",(function(){return dr})),r.d(t,"Teleport",(function(){return fr})),r.d(t,"Suspense",(function(){return pr})),r.d(t,"KeepAlive",(function(){return mr})),r.d(t,"hasInjectionContext",(function(){return gr})),r.d(t,"EffectScope",(function(){return p})),r.d(t,"computed",(function(){return At})),r.d(t,"createApp",(function(){return Dt})),r.d(t,"createRef",(function(){return xe})),r.d(t,"customRef",(function(){return Ae})),r.d(t,"defineAsyncComponent",(function(){return nr})),r.d(t,"defineComponent",(function(){return rr})),r.d(t,"del",(function(){return Ke})),r.d(t,"effectScope",(function(){return g})),r.d(t,"getCurrentInstance",(function(){return z})),r.d(t,"getCurrentScope",(function(){return b})),r.d(t,"h",(function(){return Lt})),r.d(t,"inject",(function(){return Mt})),r.d(t,"isRaw",(function(){return ze})),r.d(t,"isReactive",(function(){return Be})),r.d(t,"isReadonly",(function(){return Ze})),r.d(t,"isRef",(function(){return Ce})),r.d(t,"markRaw",(function(){return He})),r.d(t,"nextTick",(function(){return Ft})),r.d(t,"onActivated",(function(){return lt})),r.d(t,"onBeforeMount",(function(){return tt})),r.d(t,"onBeforeUnmount",(function(){return it})),r.d(t,"onBeforeUpdate",(function(){return nt})),r.d(t,"onDeactivated",(function(){return ct})),r.d(t,"onErrorCaptured",(function(){return ot})),r.d(t,"onMounted",(function(){return rt})),r.d(t,"onScopeDispose",(function(){return v})),r.d(t,"onServerPrefetch",(function(){return ut})),r.d(t,"onUnmounted",(function(){return st})),r.d(t,"onUpdated",(function(){return at})),r.d(t,"provide",(function(){return Rt})),r.d(t,"proxyRefs",(function(){return Me})),r.d(t,"reactive",(function(){return We})),r.d(t,"readonly",(function(){return Ge})),r.d(t,"ref",(function(){return Se})),r.d(t,"set",(function(){return ve})),r.d(t,"shallowReactive",(function(){return $e})),r.d(t,"shallowReadonly",(function(){return Xe})),r.d(t,"shallowRef",(function(){return Te})),r.d(t,"toRaw",(function(){return Ve})),r.d(t,"toRef",(function(){return Ne})),r.d(t,"toRefs",(function(){return Ee})),r.d(t,"triggerRef",(function(){return Re})),r.d(t,"unref",(function(){return Pe})),r.d(t,"useAttrs",(function(){return Ut})),r.d(t,"useCSSModule",(function(){return Bt})),r.d(t,"useCssModule",(function(){return zt})),r.d(t,"useSlots",(function(){return jt})),r.d(t,"warn",(function(){return h})),r.d(t,"watch",(function(){return Pt})),r.d(t,"watchEffect",(function(){return xt})),r.d(t,"watchPostEffect",(function(){return St})),r.d(t,"watchSyncEffect",(function(){return Ct})),r.d(t,"Vue",(function(){return n["default"]})),ar(n["default"]);var ir=!0,sr=!1,or=n["default"],lr=n["default"].version;function cr(e){return{setup(){throw new Error("[vue-demi] "+e+" is not supported in Vue 2. It's provided to avoid compiler errors.")}}}var ur=cr("Fragment"),hr=cr("Transition"),dr=cr("TransitionGroup"),fr=cr("Teleport"),pr=cr("Suspense"),mr=cr("KeepAlive");function gr(){return!!z()}},d457:function(e,t,r){}}]);