oasis-editor 0.0.152 → 0.0.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OasisEditorApp-DjlntWNK.js → OasisEditorApp-BfdBu3ui.js} +501 -12
- package/dist/assets/importDocxWorker-DpJa1l2G.js +12 -0
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/design.d.ts +11 -0
- package/dist/core/commands/publicCommandTypes.d.ts +11 -1
- package/dist/core/model/index.d.ts +1 -1
- package/dist/core/model/types/document.d.ts +43 -0
- package/dist/core/model/types/layout.d.ts +2 -0
- package/dist/core/pluginUiTypes.d.ts +1 -1
- package/dist/export/docx/docxDocumentXml.d.ts +1 -1
- package/dist/export/docx/docxPackageXml.d.ts +2 -2
- package/dist/export/docx/themeXml.d.ts +3 -0
- package/dist/export/pdf/OasisPdfWriter.d.ts +1 -0
- package/dist/export/pdf/draw/drawPageBackground.d.ts +2 -1
- package/dist/export/pdf/writer/PdfContentStream.d.ts +1 -0
- package/dist/export/pdf/writer/pdfTypes.d.ts +1 -0
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/pt-BR.d.ts +26 -0
- package/dist/import/docx/sectionProperties.d.ts +2 -1
- package/dist/import/docx/theme.d.ts +2 -0
- package/dist/{index-D_-RY5pS.js → index-DQLjp1z0.js} +1199 -410
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +16 -1
- package/dist/plugins/internal/essentialsCommandGroups/design.d.ts +8 -0
- package/dist/ui/app/essentials/design.d.ts +4 -0
- package/dist/ui/app/essentials/types.d.ts +2 -0
- package/dist/ui/components/Toolbar/DesignGallery.d.ts +16 -0
- package/package.json +1 -1
- package/dist/assets/importDocxWorker-Ddoy1WwF.js +0 -12
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(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 r={exports:{}};
|
|
2
|
-
/*!
|
|
3
|
-
|
|
4
|
-
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
5
|
-
<http://stuartk.com/jszip>
|
|
6
|
-
|
|
7
|
-
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
8
|
-
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
9
|
-
|
|
10
|
-
JSZip uses the library pako released under the MIT license :
|
|
11
|
-
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
12
|
-
*/r.exports=function e(t,r,o){function i(s,l){if(!r[s]){if(!t[s]){if(!l&&n)return n(s);if(a)return a(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){return i(t[s][1][e]||e)},u,u.exports,e,t,r,o)}return r[s].exports}for(var a=n,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){var r=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,a,s,l,c,u=[],d=0,f=e.length,p=f,h="string"!==r.getTypeOf(e);d<e.length;)p=f-d,o=h?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<p?(15&n)<<2|o>>6:64,c=2<p?63&o:64,u.push(i.charAt(a)+i.charAt(s)+i.charAt(l)+i.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,a,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&p--,e.charAt(e.length-2)===i.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=o.uint8array?new Uint8Array(0|p):new Array(0|p);c<e.length;)t=i.indexOf(e.charAt(c++))<<2|(a=i.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=i.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=i.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=n),64!==l&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function o(e,t,n,o,a,u){var d,f,p=e.file,h=e.compression,m=u!==s.utf8encode,g=i.transformTo("string",u(p.name)),v=i.transformTo("string",s.utf8encode(p.name)),w=p.comment,b=i.transformTo("string",u(w)),y=i.transformTo("string",s.utf8encode(w)),x=v.length!==p.name.length,S=y.length!==w.length,N="",E="",_="",k=p.dir,T=p.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!x&&!S||(C|=2048);var A,R,$,D=0,P=0;k&&(D|=16),"UNIX"===a?(P=798,D|=(A=p.unixPermissions,R=k,$=A,A||($=R?16893:33204),(65535&$)<<16)):(P=20,D|=function(e){return 63&(e||0)}(p.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,f=T.getUTCFullYear()-1980,f<<=4,f|=T.getUTCMonth()+1,f<<=5,f|=T.getUTCDate(),x&&(E=r(1,1)+r(l(g),4)+v,N+="up"+r(E.length,2)+E),S&&(_=r(1,1)+r(l(b),4)+y,N+="uc"+r(_.length,2)+_);var O="";return O+="\n\0",O+=r(C,2),O+=h.magic,O+=r(d,2),O+=r(f,2),O+=r(I.crc32,4),O+=r(I.compressedSize,4),O+=r(I.uncompressedSize,4),O+=r(g.length,2),O+=r(N.length,2),{fileRecord:c.LOCAL_FILE_HEADER+O+g+N,dirRecord:c.CENTRAL_FILE_HEADER+r(P,2)+O+r(b.length,2)+"\0\0\0\0"+r(D,4)+r(o,4)+g+N+b}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,a),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n: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 n=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,i=o(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),n)this.push({data:(t=e,c.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:i.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 n,o,a,s,l,u,d=this.bytesWritten-e,f=(n=this.dirRecords.length,o=d,a=e,s=this.zipComment,l=this.encodeFileName,u=i.transformTo("string",l(s)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(o,4)+r(a,4)+r(u.length,2)+u);this.push({data:f,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!!a.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(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}return!0},u.prototype.lock=function(){a.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,n){var r=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var i=new o(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var o=function(e,t){var n=e||t,o=r[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(i)}),i.entriesCount=a}catch(s){i.error(s)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;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 r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),o=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new o.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",function(e){n(e)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var n=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var i=0;i<r.length;i++)n.push(c(r[i]));return o.Promise.all(n)}).then(function(e){for(var o=e.shift(),i=o.files,a=0;a<i.length;a++){var s=i[a],l=s.fileNameStr,c=r.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return o.zipComment.length&&(n.comment=o.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(i,o),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!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function o(e,t,n){r.call(this,t),this._helper=e;var o=this;e.on("data",function(e,t){o.push(e)||o._helper.pause(),n&&n(t)}).on("error",function(e){o.emit("error",e)}).on("end",function(){o.push(null)})}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,o=i.getTypeOf(t),s=i.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(r=h(e))&&g.call(this,r,!0);var d="string"===o&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",o="string");var v=null;v=t instanceof c||t instanceof a?t:f.isNode&&f.isStream(t)?new p(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var w=new u(e,v,s);this.files[e]=w}var o=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),h=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]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var o=e;return this.filter(function(e,t){return!t.dir&&o.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},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 n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].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,n={};try{if((n=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");i.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=d.generateWorker(this,n,r)}catch(l){(t=new a("error")).error(l)}return new s(t,n.type||"string",n.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=w},{"./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,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function o(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&o===i[3]},o.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=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.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,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.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=o},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),o=e("../utils");function i(e){r.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,r),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),o=e("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,r),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.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,n){function r(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}r.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 n=0;n<this._listeners[e].length;n++)this._listeners[e][n].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=r},{}],29:[function(e,t,n){var r=e("../utils"),o=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(f){}function u(e,t){return new l.Promise(function(n,o){var i=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,n){i.push(e),t&&t(n)}).on("error",function(e){i=[],o(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,o=null,i=0;for(n=0;n<t.length;n++)i+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(i),n=0;n<t.length;n++)o.set(t[n],r),r+=t[n].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,i),c);n(e)}catch(t){o(t)}i=[]}).resume()})}function d(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(s){this._worker=new i("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(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,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(i){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),n.blob=0===o.getBlob("application/zip").size}catch(a){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(i){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),o=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,n,r,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,o,i,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((o=e[t++])<128)l[n++]=o;else if(4<(i=s[o]))l[n++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&t<a;)o=o<<6|63&e[t++],i--;1<i?l[n++]=65533:o<65536?l[n++]=o:(o-=65536,l[n++]=55296|o>>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(o.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.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 a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(o.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(o){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(i){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],o=0,i=e.length;if(i<=n)return String.fromCharCode.apply(null,e);for(;o<i;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+n,i)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+n,i)))),o+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),o=!0;if("uint8array"===r?o=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(i){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,i.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return i.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var o=t[r];"."===o||""===o&&0!==r&&r!==t.length-1||(".."===o?n.pop():n.push(o))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&i.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,s,c){return a.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(c?t=o.decode(t):i&&!0!==s&&(t=l(u=t,r.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):a.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,n){var r=e("./reader/readerFor"),o=e("./utils"),i=e("./signature"),a=e("./zipEntry"),s=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 ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},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=s.uint8array?"uint8array":"array",n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},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,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},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 a({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===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.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 n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(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,n){var r=e("./reader/readerFor"),o=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-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 "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.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=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(o)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.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,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new o(t,n,"")},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 s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?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.")},d=0;d<c.length;d++)r.prototype[c[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,r){(function(e){var t,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="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,t=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}n.exports=function(e){1!==c.push(e)||r||t()}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function o(){}var i={},a=["REJECTED"],s=["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!==o&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(o){return i.reject(e,o)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=h(function(){t(o,r)});"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},c.reject=function(e){var t=new this(o);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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(o);++l<n;)u(e[l],l);return c;function u(e,o){t.resolve(e).then(function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(c,a))},function(e){r||(r=!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 n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,l=new this(o);++s<n;)a=e[s],t.resolve(a).then(function(e){r||(r=!0,i.resolve(l,e))},function(e){r||(r=!0,i.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=o.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,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 s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var h;if(h="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,h))!==c)throw new Error(a[n]);this._dict_set=!0}}function h(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}p.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=h,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.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 n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,f,p=this.strm,h=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(h),p.next_out=0,p.avail_out=h),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(p.output,p.next_out),c=p.next_out-l,d=i.buf2string(p.output,l),p.next_out=c,p.avail_out=h-c,c&&o.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./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,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=o=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(c){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){i=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,i,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((o=e[n++])<128)c[r++]=o;else if(4<(i=a[o]))c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&n<s;)o=o<<6|63&e[n++],i--;1<i?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var o=65535&e,i=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;i=i+(o=o+t[r++]|0)|0,--a;);o%=65521,i%=65521}return o|i<<16}},{}],44:[function(e,t,n){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,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,p=-1,h=4,m=2,g=8,v=9,w=286,b=30,y=19,x=2*w+1,S=15,N=3,E=258,_=E+N+1,k=42,T=113,I=1,C=2,A=3,R=4;function $(e,t){return e.msg=l[t],t}function D(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function O(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function L(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,O(e.strm)}function M(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 B(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+E,p=c[i+a-1],h=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===h&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<f);if(r=E-(f-i),i=f-E,a<r){if(e.match_start=t,s<=(a=r))break;p=c[i+a-1],h=c[i+a]}}}while((t=d[t&u])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function U(e){var t,n,r,i,l,c,u,d,f,p,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-_)){for(o.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;r=e.head[--t],e.head[t]=h<=r?r-h:0,--n;);for(t=n=h;r=e.prev[--t],e.prev[t]=h<=r?r-h:0,--n;);i+=h}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,p=void 0,(f=i)<(p=c.avail_in)&&(p=f),n=0===p?0:(c.avail_in-=p,o.arraySet(u,c.input,c.next_in,p,d),1===c.state.wrap?c.adler=a(c.adler,u,p,d):2===c.state.wrap&&(c.adler=s(c.adler,u,p,d)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=N)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+N-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<N)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function H(e,t){for(var n,r;;){if(e.lookahead<_){if(U(e),e.lookahead<_&&t===c)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-_&&(e.match_length=B(e,n)),e.match_length>=N)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=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 r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(L(e,!1),0===e.strm.avail_out))return I}return e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(L(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?I:C}function z(e,t){for(var n,r,o;;){if(e.lookahead<_){if(U(e),e.lookahead<_&&t===c)return I;if(0===e.lookahead)break}if(n=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=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=N-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-_&&(e.match_length=B(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===N&&4096<e.strstart-e.match_start)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-N,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=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=N-1,e.strstart++,r&&(L(e,!1),0===e.strm.avail_out))return I}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&L(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return I}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(L(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?I:C}function j(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function q(){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 o.Buf16(2*x),this.dyn_dtree=new o.Buf16(2*(2*b+1)),this.bl_tree=new o.Buf16(2*(2*y+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(S+1),this.heap=new o.Buf16(2*w+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*w+1),P(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 W(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?k:T,e.adler=2===t.wrap?0:1,t.last_flush=c,i._tr_init(t),d):$(e,f)}function G(e){var t,n=W(e);return n===d&&((t=e.state).window_size=2*t.w_size,P(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=N-1,t.match_available=0,t.ins_h=0),n}function V(e,t,n,r,i,a){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||v<i||n!==g||r<8||15<r||t<0||9<t||a<0||h<a)return $(e,f);8===r&&(r=9);var l=new q;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,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+N-1)/N),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,G(e)}r=[new j(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===c)return I;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,L(e,!1),0===e.strm.avail_out))return I;if(e.strstart-e.block_start>=e.w_size-_&&(L(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?A:R):(e.strstart>e.block_start&&(L(e,!1),e.strm.avail_out),I)}),new j(4,4,8,4,H),new j(4,5,16,8,H),new j(4,6,32,32,H),new j(4,4,16,16,z),new j(8,16,32,32,z),new j(8,16,128,128,z),new j(8,32,128,256,z),new j(32,128,258,1024,z),new j(32,258,258,4096,z)],n.deflateInit=function(e,t){return V(e,t,g,15,8,0)},n.deflateInit2=V,n.deflateReset=G,n.deflateResetKeep=W,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,o,a,l;if(!e||!e.state||5<t||t<0)return e?$(e,f):f;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&t!==u)return $(e,0===e.avail_out?-5:f);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===k)if(2===o.wrap)e.adler=0,M(o,31),M(o,139),M(o,8),o.gzhead?(M(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),M(o,255&o.gzhead.time),M(o,o.gzhead.time>>8&255),M(o,o.gzhead.time>>16&255),M(o,o.gzhead.time>>24&255),M(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),M(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(M(o,255&o.gzhead.extra.length),M(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(M(o,0),M(o,0),M(o,0),M(o,0),M(o,0),M(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),M(o,3),o.status=T);else{var p=g+(o.w_bits-8<<4)<<8;p|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(p|=32),p+=31-p%31,o.status=T,F(o,p),0!==o.strstart&&(F(o,e.adler>>>16),F(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending!==o.pending_buf_size));)M(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,M(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),O(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,M(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&O(e),o.pending+2<=o.pending_buf_size&&(M(o,255&e.adler),M(o,e.adler>>8&255),e.adler=0,o.status=T)):o.status=T),0!==o.pending){if(O(e),0===e.avail_out)return o.last_flush=-1,d}else if(0===e.avail_in&&D(t)<=D(n)&&t!==u)return $(e,-5);if(666===o.status&&0!==e.avail_in)return $(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==c&&666!==o.status){var h=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return I;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(L(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?I:C}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=E){if(U(e),e.lookahead<=E&&t===c)return I;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&0<e.strstart&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=e.strstart+E;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=E-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(n=i._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(L(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?A:R):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?I:C}(o,t):r[o.level].func(o,t);if(h!==A&&h!==R||(o.status=666),h===I||h===A)return 0===e.avail_out&&(o.last_flush=-1),d;if(h===C&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(P(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),O(e),0===e.avail_out))return o.last_flush=-1,d}return t!==u?d:o.wrap<=0?1:(2===o.wrap?(M(o,255&e.adler),M(o,e.adler>>8&255),M(o,e.adler>>16&255),M(o,e.adler>>24&255),M(o,255&e.total_in),M(o,e.total_in>>8&255),M(o,e.total_in>>16&255),M(o,e.total_in>>24&255)):(F(o,e.adler>>>16),F(o,65535&e.adler)),O(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==k&&69!==t&&73!==t&&91!==t&&103!==t&&t!==T&&666!==t?$(e,f):(e.state=null,t===T?$(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,i,s,l,c,u,p,h=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==k||n.lookahead)return f;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new o.Buf8(n.w_size),o.arraySet(p,t,h-n.w_size,n.w_size,0),t=p,h=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=h,e.next_in=0,e.input=t,U(n);n.lookahead>=N;){for(r=n.strstart,i=n.lookahead-(N-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+N-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=N-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=N-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){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,n){t.exports=function(e,t){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,w,b,y,x,S,N,E,_,k;n=e.state,r=e.next_in,_=e.input,o=r+(e.avail_in-5),i=e.next_out,k=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,h=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{h<15&&(p+=_[r++]<<h,h+=8,p+=_[r++]<<h,h+=8),b=m[p&v];t:for(;;){if(p>>>=y=b>>>24,h-=y,0==(y=b>>>16&255))k[i++]=65535&b;else{if(!(16&y)){if(!(64&y)){b=m[(65535&b)+(p&(1<<y)-1)];continue t}if(32&y){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(y&=15)&&(h<y&&(p+=_[r++]<<h,h+=8),x+=p&(1<<y)-1,p>>>=y,h-=y),h<15&&(p+=_[r++]<<h,h+=8,p+=_[r++]<<h,h+=8),b=g[p&w];n:for(;;){if(p>>>=y=b>>>24,h-=y,!(16&(y=b>>>16&255))){if(!(64&y)){b=g[(65535&b)+(p&(1<<y)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&b,h<(y&=15)&&(p+=_[r++]<<h,(h+=8)<y&&(p+=_[r++]<<h,h+=8)),l<(S+=p&(1<<y)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=y,h-=y,(y=i-a)<S){if(u<(y=S-y)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=f,(N=0)===d){if(N+=c-y,y<x){for(x-=y;k[i++]=f[N++],--y;);N=i-S,E=k}}else if(d<y){if(N+=c+d-y,(y-=d)<x){for(x-=y;k[i++]=f[N++],--y;);if(N=0,d<x){for(x-=y=d;k[i++]=f[N++],--y;);N=i-S,E=k}}}else if(N+=d-y,y<x){for(x-=y;k[i++]=f[N++],--y;);N=i-S,E=k}for(;2<x;)k[i++]=E[N++],k[i++]=E[N++],k[i++]=E[N++],x-=3;x&&(k[i++]=E[N++],1<x&&(k[i++]=E[N++]))}else{for(N=i-S;k[i++]=k[N++],k[i++]=k[N++],k[i++]=k[N++],2<(x-=3););x&&(k[i++]=k[N++],1<x&&(k[i++]=k[N++]))}break}}break}}while(r<o&&i<s);r-=x=h>>3,p&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=h}},{}],49:[function(e,t,n){var r=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,f=1,p=852,h=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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(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=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(h),t.sane=1,t.back=-1,u):d}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,w(e))):d}function y(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var x,S,N=!0;function E(e){if(N){var t;for(x=new r.Buf32(512),S=new r.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(s(l,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,S,0,e.work,{bits:5}),N=!1}e.lencode=x,e.lenbits=9,e.distcode=S,e.distbits=5}function _(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}n.inflateReset=w,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(e){return y(e,15)},n.inflateInit2=y,n.inflate=function(e,t){var n,p,h,g,v,w,b,y,x,S,N,k,T,I,C,A,R,$,D,P,O,L,M,F,B=0,U=new r.Buf8(4),H=[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 d;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,h=e.output,b=e.avail_out,g=e.next_in,p=e.input,w=e.avail_in,y=n.hold,x=n.bits,S=w,N=b,L=u;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(2&n.wrap&&35615===y){U[n.check=0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0),x=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,O=8+(15&(y>>>=4)),0===n.wbits)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<O,e.adler=n.check=1,n.mode=512&y?10:12,x=y=0;break;case 2:for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0,n.mode=3;case 3:for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.head&&(n.head.time=y),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,U[2]=y>>>16&255,U[3]=y>>>24&255,n.check=i(n.check,U,4,0)),x=y=0,n.mode=4;case 4:for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(U[0]=255&y,U[1]=y>>>8&255,n.check=i(n.check,U,2,0)),x=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(w<(k=n.length)&&(k=w),k&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,k,O)),512&n.flags&&(n.check=i(n.check,p,k,g)),w-=k,g+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===w)break e;for(k=0;O=p[g+k++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O)),O&&k<w;);if(512&n.flags&&(n.check=i(n.check,p,k,g)),w-=k,g+=k,O)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===w)break e;for(k=0;O=p[g+k++],n.head&&O&&n.length<65536&&(n.head.comment+=String.fromCharCode(O)),O&&k<w;);if(512&n.flags&&(n.check=i(n.check,p,k,g)),w-=k,g+=k,O)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}e.adler=n.check=m(y),x=y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}switch(n.last=1&y,x-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(E(n),n.mode=20,6!==t)break;y>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}y>>>=2,x-=2;break;case 14:for(y>>>=7&x,x-=7&x;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,x=y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(w<k&&(k=w),b<k&&(k=b),0===k)break e;r.arraySet(h,p,g,k,v),w-=k,g+=k,b-=k,v+=k,n.length-=k;break}n.mode=12;break;case 17:for(;x<14;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(n.nlen=257+(31&y),y>>>=5,x-=5,n.ndist=1+(31&y),y>>>=5,x-=5,n.ncode=4+(15&y),y>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.lens[H[n.have++]]=7&y,y>>>=3,x-=3}for(;n.have<19;)n.lens[H[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},L=s(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,L){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(B=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(R<16)y>>>=C,x-=C,n.lens[n.have++]=R;else{if(16===R){for(F=C+2;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y>>>=C,x-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],k=3+(3&y),y>>>=2,x-=2}else if(17===R){for(F=C+3;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}x-=C,O=0,k=3+(7&(y>>>=C)),y>>>=3,x-=3}else{for(F=C+7;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}x-=C,O=0,k=11+(127&(y>>>=C)),y>>>=7,x-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=O}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},L=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,L){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},L=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,L){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=w&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,a(e,N),v=e.next_out,h=e.output,b=e.avail_out,g=e.next_in,p=e.input,w=e.avail_in,y=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(B=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(A&&!(240&A)){for($=C,D=A,P=R;A=(B=n.lencode[P+((y&(1<<$+D)-1)>>$)])>>>16&255,R=65535&B,!($+(C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}y>>>=$,x-=$,n.back+=$}if(y>>>=C,x-=C,n.back+=C,n.length=R,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(F=n.extra;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(B=n.distcode[y&(1<<n.distbits)-1])>>>16&255,R=65535&B,!((C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(!(240&A)){for($=C,D=A,P=R;A=(B=n.distcode[P+((y&(1<<$+D)-1)>>$)])>>>16&255,R=65535&B,!($+(C=B>>>24)<=x);){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}y>>>=$,x-=$,n.back+=$}if(y>>>=C,x-=C,n.back+=C,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=R,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(F=n.extra;x<F;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(k=N-b,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),I=n.window}else I=h,T=v-n.offset,k=n.length;for(b<k&&(k=b),b-=k,n.length-=k;h[v++]=I[T++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;h[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===w)break e;w--,y|=p[g++]<<x,x+=8}if(N-=b,e.total_out+=N,n.total+=N,N&&(e.adler=n.check=n.flags?i(n.check,h,N,v-N):o(n.check,h,N,v-N)),N=b,(n.flags?y:m(y))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===w)break e;w--,y+=p[g++]<<x,x+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=y=0}n.mode=29;case 29:L=1;break e;case 30:L=-3;break e;case 31:return-4;default:return d}return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=w,n.hold=y,n.bits=x,(n.wsize||N!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&_(e,e.output,e.next_out,N-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,N-=e.avail_out,e.total_in+=S,e.total_out+=N,n.total+=N,n.wrap&&N&&(e.adler=n.check=n.flags?i(n.check,h,N,e.next_out-N):o(n.check,h,N,e.next_out-N)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==S&&0===N||4===t)&&L===u&&(L=-5),L)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&o(1,t,r,0)!==n.check?-3:_(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),o=[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],a=[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],s=[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,n,l,c,u,d,f){var p,h,m,g,v,w,b,y,x,S=f.bits,N=0,E=0,_=0,k=0,T=0,I=0,C=0,A=0,R=0,$=0,D=null,P=0,O=new r.Buf16(16),L=new r.Buf16(16),M=null,F=0;for(N=0;N<=15;N++)O[N]=0;for(E=0;E<l;E++)O[t[n+E]]++;for(T=S,k=15;1<=k&&0===O[k];k--);if(k<T&&(T=k),0===k)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(_=1;_<k&&0===O[_];_++);for(T<_&&(T=_),N=A=1;N<=15;N++)if(A<<=1,(A-=O[N])<0)return-1;if(0<A&&(0===e||1!==k))return-1;for(L[1]=0,N=1;N<15;N++)L[N+1]=L[N]+O[N];for(E=0;E<l;E++)0!==t[n+E]&&(d[L[t[n+E]]++]=E);if(w=0===e?(D=M=d,19):1===e?(D=o,P-=257,M=i,F-=257,256):(D=a,M=s,-1),N=_,v=u,C=E=$=0,m=-1,g=(R=1<<(I=T))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(b=N-C,x=d[E]<w?(y=0,d[E]):d[E]>w?(y=M[F+d[E]],D[P+d[E]]):(y=96,0),p=1<<N-C,_=h=1<<I;c[v+($>>C)+(h-=p)]=b<<24|y<<16|x,0!==h;);for(p=1<<N-1;$&p;)p>>=1;if(0!==p?($&=p-1,$+=p):$=0,E++,0==--O[N]){if(N===k)break;N=t[n+d[E]]}if(T<N&&($&g)!==m){for(0===C&&(C=T),v+=_,A=1<<(I=N-C);I+C<k&&!((A-=O[I+C])<=0);)I++,A<<=1;if(R+=1<<I,1===e&&852<R||2===e&&592<R)return 1;c[m=$&g]=T<<24|I<<16|v-u}}return 0!==$&&(c[v+$]=N-C<<24|64<<16),f.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){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,n){var r=e("../utils/common"),o=0,i=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,f=19,p=2*u+1,h=15,m=16,g=7,v=256,w=16,b=17,y=18,x=[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],S=[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],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(u+2));a(_);var k=new Array(2*d);a(k);var T=new Array(512);a(T);var I=new Array(256);a(I);var C=new Array(l);a(C);var A,R,$,D=new Array(d);function P(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function O(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function L(e){return e<256?T[e]:T[256+(e>>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,n){e.bi_valid>m-n?(e.bi_buf|=t<<e.bi_valid&65535,M(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function B(e,t,n){F(e,n[2*t],n[2*t+1])}function U(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function H(e,t,n){var r,o,i=new Array(h+1),a=0;for(r=1;r<=h;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=U(i[s]++,s))}}function z(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){8<e.bi_valid?M(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 q(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function W(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&q(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!q(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function G(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?B(e,o,t):(B(e,(i=I[o])+c+1,t),0!==(a=x[i])&&F(e,o-=C[i],a),B(e,i=L(--r),n),0!==(a=S[i])&&F(e,r-=D[i],a)),s<e.last_lit;);B(e,v,t)}function V(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)W(e,i,n);for(o=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,W(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(i=0;i<=h;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(i=g,v++),l[2*r+1]=i,c<r||(e.bl_count[i]++,a=0,m<=r&&(a=f[r-m]),s=l[2*r],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==v){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]--,v-=2}while(0<v);for(i=g;0!==i;i--)for(r=e.bl_count[i];0!==r;)c<(o=e.heap[--n])||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),H(i,c,e.bl_count)}function X(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[2*w]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*y]++,i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function Z(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<c)for(;B(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==i&&(B(e,o,e.bl_tree),s--),B(e,w,e.bl_tree),F(e,s-3,2)):s<=10?(B(e,b,e.bl_tree),F(e,s-3,3)):(B(e,y,e.bl_tree),F(e,s-11,7));i=o,c=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}a(D);var Y=!1;function Q(e,t,n,o){var i,a,l;F(e,(s<<1)+(o?1:0),3),a=t,l=n,j(i=e),M(i,l),M(i,~l),r.arraySet(i.pending_buf,i.window,a,l,i.pending),i.pending+=l}n._tr_init=function(e){Y||(function(){var e,t,n,r,o,i=new Array(h+1);for(r=n=0;r<l-1;r++)for(C[r]=n,e=0;e<1<<x[r];e++)I[n++]=r;for(I[n-1]=r,r=o=0;r<16;r++)for(D[r]=o,e=0;e<1<<S[r];e++)T[o++]=r;for(o>>=7;r<d;r++)for(D[r]=o<<7,e=0;e<1<<S[r]-7;e++)T[256+o++]=r;for(t=0;t<=h;t++)i[t]=0;for(e=0;e<=143;)_[2*e+1]=8,e++,i[8]++;for(;e<=255;)_[2*e+1]=9,e++,i[9]++;for(;e<=279;)_[2*e+1]=7,e++,i[7]++;for(;e<=287;)_[2*e+1]=8,e++,i[8]++;for(H(_,u+1,i),e=0;e<d;e++)k[2*e+1]=5,k[2*e]=U(e,5);A=new P(_,x,c+1,u,h),R=new P(k,S,0,d,h),$=new P(new Array(0),N,0,f,g)}(),Y=!0),e.l_desc=new O(e.dyn_ltree,A),e.d_desc=new O(e.dyn_dtree,R),e.bl_desc=new O(e.bl_tree,$),e.bi_buf=0,e.bi_valid=0,z(e)},n._tr_stored_block=Q,n._tr_flush_block=function(e,t,n,r){var a,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;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 o}(e)),V(e,e.l_desc),V(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),V(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*E[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?Q(e,t,n,r):4===e.strategy||s===a?(F(e,2+(r?1:0),3),G(e,_,k)):(F(e,4+(r?1:0),3),function(e,t,n,r){var o;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),o=0;o<r;o++)F(e,e.bl_tree[2*E[o]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),z(e),r&&j(e)},n._tr_tally=function(e,t,n){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&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(I[n]+c+1)]++,e.dyn_dtree[2*L(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;F(e,2,3),B(e,v,_),16===(t=e).bi_valid?(M(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){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(t,n,r){(function(e){!function(e,t){if(!e.setImmediate){var n,r,o,i,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[a]=o,n(a),a++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(l)setTimeout(f,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&f(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10);var o=t(r.exports),i={};function a(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var l=a({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var c=a({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var u=a({script:!1,style:!1,textarea:!0,title:!0});function d(e){return e===f.HTML}var f=a({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),p=Object.keys(f).map(function(e){return f[e]});var h=a({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});i.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)s(t,n)&&(e[n]=t[n]);return e},i.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(s(e,r)){var o=e[r];if(t.call(void 0,o,r,e))return o}},i.freeze=a,i.HTML_BOOLEAN_ATTRIBUTES=l,i.HTML_RAW_TEXT_ELEMENTS=u,i.HTML_VOID_ELEMENTS=c,i.hasDefaultHTMLNamespace=function(e){return d(e)||e===f.XML_XHTML_APPLICATION},i.hasOwn=s,i.isHTMLBooleanAttribute=function(e){return s(l,e.toLowerCase())},i.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&!u[t]},i.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&u[t]},i.isHTMLMimeType=d,i.isHTMLVoidElement=function(e){return s(c,e.toLowerCase())},i.isValidMimeType=function(e){return p.indexOf(e)>-1},i.MIME_TYPE=f,i.NAMESPACE=h;var m={};function g(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var v=i.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),w=Object.keys(v);function b(e){return"number"==typeof e&&e>=1&&e<=25}function y(e,t){var n;b(e)?(this.name=w[e],this.message=t||""):(this.message=e,this.name="string"==typeof(n=t)&&n.substring(n.length-v.Error.length)===v.Error?t:v.Error),Error.captureStackTrace&&Error.captureStackTrace(this,y)}g(y,!0),Object.defineProperties(y.prototype,{code:{enumerable:!0,get:function(){var e=w.indexOf(this.name);return b(e)?e:0}}});for(var x={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},S=Object.entries(x),N=0;N<S.length;N++){y[S[N][0]]=S[N][1]}function E(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,E)}g(E),m.DOMException=y,m.DOMExceptionName=v,m.ExceptionCode=x,m.ParseError=E;var _={},k={};function T(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(n){}return!1}var I=T();function C(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function A(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),I?"u":"")}function R(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var n="string"==typeof e;if(n&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return n?e:e.source}).join(""),I?"mu":"m")}function $(e){if(0===arguments.length)throw new Error("no parameters provided");return R.apply($,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var D=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;I&&(D=R("[",C(D),"\\u{10000}-\\u{10FFFF}","]"));var P=new RegExp("[^"+C(D)+"]",I?"u":""),O=/[\x20\x09\x0D\x0A]/,L=C(O),M=R(O,"+"),F=R(O,"*"),B=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;I&&(B=R("[",C(B),"\\u{10000}-\\u{10FFFF}","]"));var U=R("[",C(B),C(/[-.0-9\xB7]/),C(/[\u0300-\u036F\u203F-\u2040]/),"]"),H=R(B,U,"*"),z=R(U,"+"),j=R("&",H,";"),q=$(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),W=$(j,"|",q),G=R("%",H,";"),V=$(R('"',$(/[^%&"]/,"|",G,"|",W),"*",'"'),"|",R("'",$(/[^%&']/,"|",G,"|",W),"*","'")),X=$('"',$(/[^<&"]/,"|",W),"*",'"',"|","'",$(/[^<&']/,"|",W),"*","'"),Z=R(A(B,":"),A(U,":"),"*"),Y=R(Z,$(":",Z),"?"),Q=R("^",Y,"$"),K=R("(",Y,")"),J=$(/"[^"]*"|'[^']*'/),ee=R(/^<\?/,"(",H,")",$(M,"(",D,"*?)"),"?",/\?>/),te=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,ne=$('"',te,'*"',"|","'",A(te,"'"),"*'"),re="\x3c!--",oe=R(re,$(A(D,"-"),"|",R("-",A(D,"-"))),"*","--\x3e"),ie="#PCDATA",ae=$(R(/\(/,F,ie,$(F,/\|/,F,Y),"*",F,/\)\*/),"|",R(/\(/,F,ie,F,/\)/)),se=$("EMPTY","|","ANY","|",ae,"|",R(/\([^>]+\)/,/[?*+]?/)),le=R("<!ELEMENT",M,$(Y,"|",G),M,$(se,"|",G),F,">"),ce=R("NOTATION",M,/\(/,F,H,$(F,/\|/,F,H),"*",F,/\)/),ue=R(/\(/,F,z,$(F,/\|/,F,z),"*",F,/\)/),de=$(ce,"|",ue),fe=$(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",de),pe=$(/#REQUIRED|#IMPLIED/,"|",$($("#FIXED",M),"?",X)),he=R("<!ATTLIST",M,H,$(M,H,M,fe,M,pe),"*",F,">"),me="about:legacy-compat",ge=$('"'+me+'"',"|","'"+me+"'"),ve="SYSTEM",we="PUBLIC",be=$($(ve,M,J),"|",$(we,M,ne,M,J)),ye=R("^",$($(ve,M,"(?<SystemLiteralOnly>",J,")"),"|",$(we,M,"(?<PubidLiteral>",ne,")",M,"(?<SystemLiteral>",J,")"))),xe=R("^",ne,"$"),Se=R("^",J,"$"),Ne=$(M,"NDATA",M,H),Ee="<!ENTITY",_e=R(Ee,M,H,M,$(V,"|",$(be,Ne,"?")),F,">"),ke=$(V,"|",be),Te=$(_e,"|",R(Ee,M,"%",M,H,M,ke,F,">")),Ie=R(we,M,ne),Ce=R("<!NOTATION",M,H,M,$(be,"|",Ie),F,">"),Ae=R(F,"=",F),Re=/1[.]\d+/,$e=R(M,"version",Ae,$("'",Re,"'","|",'"',Re,'"')),De=/[A-Za-z][-A-Za-z0-9._]*/,Pe=R(/^<\?xml/,$e,$(M,"encoding",Ae,$('"',De,'"',"|","'",De,"'")),"?",$(M,"standalone",Ae,$("'",$("yes","|","no"),"'","|",'"',$("yes","|","no"),'"')),"?",F,/\?>/),Oe=R(D,"*?",/\]\]>/),Le=R(/<!\[CDATA\[/,Oe);k.chars=C,k.chars_without=A,k.detectUnicodeSupport=T,k.reg=R,k.regg=$,k.ABOUT_LEGACY_COMPAT=me,k.ABOUT_LEGACY_COMPAT_SystemLiteral=ge,k.AttlistDecl=he,k.CDATA_START="<![CDATA[",k.CDATA_END="]]>",k.CDSect=Le,k.Char=D,k.Comment=oe,k.COMMENT_START=re,k.COMMENT_END="--\x3e",k.DOCTYPE_DECL_START="<!DOCTYPE",k.elementdecl=le,k.EntityDecl=Te,k.EntityValue=V,k.ExternalID=be,k.ExternalID_match=ye,k.Name=H,k.NotationDecl=Ce,k.Reference=W,k.PEReference=G,k.PI=ee,k.PUBLIC=we,k.PubidLiteral=ne,k.PubidLiteral_match=xe,k.QName=Y,k.QName_exact=Q,k.QName_group=K,k.S=M,k.SChar_s=L,k.S_OPT=F,k.SYSTEM=ve,k.SystemLiteral=J,k.SystemLiteral_match=Se,k.InvalidChar=P,k.UNICODE_REPLACEMENT_CHARACTER="�",k.UNICODE_SUPPORT=I,k.XMLDecl=Pe;var Me=i,Fe=Me.find,Be=Me.hasDefaultHTMLNamespace,Ue=Me.hasOwn,He=Me.isHTMLMimeType,ze=Me.isHTMLRawTextElement,je=Me.isHTMLVoidElement,qe=Me.MIME_TYPE,We=Me.NAMESPACE,Ge=Symbol(),Ve=m,Xe=Ve.DOMException,Ze=Ve.DOMExceptionName,Ye=k;function Qe(e){if(e!==Ge)throw new TypeError("Illegal constructor")}function Ke(e){return""!==e}function Je(e,t){return Ue(e,t)||(e[t]=!0),e}function et(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(Ke):[]}(e);return Object.keys(t.reduce(Je,{}))}function tt(e){if(!Ye.QName_exact.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function nt(e,t){tt(t),e=e||null;var n=null,r=t;if(t.indexOf(":")>=0){var o=t.split(":");n=o[0],r=o[1]}if(null!==n&&null===e)throw new Xe(Xe.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&e!==Me.NAMESPACE.XML)throw new Xe(Xe.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===t)&&e!==Me.NAMESPACE.XMLNS)throw new Xe(Xe.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===Me.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==t)throw new Xe(Xe.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,n,r]}function rt(e,t){for(var n in e)Ue(e,n)&&(t[n]=e[n])}function ot(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};r.prototype=t.prototype,r=new r,rt(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var it={},at=it.ELEMENT_NODE=1,st=it.ATTRIBUTE_NODE=2,lt=it.TEXT_NODE=3,ct=it.CDATA_SECTION_NODE=4,ut=it.ENTITY_REFERENCE_NODE=5,dt=it.ENTITY_NODE=6,ft=it.PROCESSING_INSTRUCTION_NODE=7,pt=it.COMMENT_NODE=8,ht=it.DOCUMENT_NODE=9,mt=it.DOCUMENT_TYPE_NODE=10,gt=it.DOCUMENT_FRAGMENT_NODE=11,vt=it.NOTATION_NODE=12,wt=Me.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function bt(e,t){if(t.length<e.length)return bt(t,e);var n=null;for(var r in e){if(e[r]!==t[r])return n;n=e[r]}return n}function yt(e){return e.guid||(e.guid=Math.random()),e.guid}function xt(){}function St(e,t){this._node=e,this._refresh=t,Nt(this)}function Nt(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(dn(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Ue(e,r)&&delete e[r];rt(n,e),e._inc=t}}function Et(){}function _t(e,t){for(var n=0;n<e.length;){if(e[n]===t)return n;n++}}function kt(e,t,n,r){if(r?t[_t(t,r)]=n:(t[t.length]=n,t.length++),e){n.ownerElement=e;var o=e.ownerDocument;o&&(r&&Pt(o,e,r),function(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===We.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(o,e,n))}}function Tt(e,t,n){var r=_t(t,n);if(r>=0){for(var o=t.length-1;r<=o;)t[r]=t[++r];if(t.length=o,e){var i=e.ownerDocument;i&&Pt(i,e,n),n.ownerElement=null}}}function It(){}function Ct(e){Qe(e)}function At(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function Rt(e,t){$t(e,null,{enter:function(e){return!t(e)||$t.STOP}})}function $t(e,t,n){for(var r=[{node:e,context:t,phase:$t.ENTER}];r.length>0;){var o=r.pop();if(o.phase===$t.ENTER){var i=n.enter(o.node,o.context);if(i===$t.STOP)return $t.STOP;if(r.push({node:o.node,context:i,phase:$t.EXIT}),null==i)continue;for(var a=o.node.lastChild;a;)r.push({node:a,context:i,phase:$t.ENTER}),a=a.previousSibling}else n.exit&&n.exit(o.node,o.context)}}function Dt(e,t){Qe(e);var n=t||{};this.ownerDocument=this,this.contentType=n.contentType||qe.XML_APPLICATION,this.type=He(this.contentType)?"html":"xml"}function Pt(e,t,n,r){e&&e._inc++,n.namespaceURI===We.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Ot(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n&&!n.nextSibling)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i,delete r[r.length]}}}function Lt(e,t){if(e!==t.parentNode)throw new Xe(Xe.NOT_FOUND_ERR,"child's parent is not parent");var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,Ot(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function Mt(e){return e&&e.nodeType===Ct.DOCUMENT_TYPE_NODE}function Ft(e){return e&&e.nodeType===Ct.ELEMENT_NODE}function Bt(e){return e&&e.nodeType===Ct.TEXT_NODE}function Ut(e,t){var n=e.childNodes||[];if(Fe(n,Ft)||Mt(t))return!1;var r=Fe(n,Mt);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function Ht(e,t){var n=e.childNodes||[];if(Fe(n,function(e){return Ft(e)&&e!==t}))return!1;var r=Fe(n,Mt);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function zt(e,t,n){if(!function(e){return e&&(e.nodeType===Ct.DOCUMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.ELEMENT_NODE)}(e))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Xe(Xe.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Ct.CDATA_SECTION_NODE||e.nodeType===Ct.COMMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.DOCUMENT_TYPE_NODE||e.nodeType===Ct.ELEMENT_NODE||e.nodeType===Ct.PROCESSING_INSTRUCTION_NODE||e.nodeType===Ct.TEXT_NODE)}(t)||Mt(t)&&e.nodeType!==Ct.DOCUMENT_NODE)throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function jt(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var i=o.filter(Ft);if(i.length>1||Fe(o,Bt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!Ut(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!Ut(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Mt(t)){if(Fe(r,Mt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(r,Ft);if(n&&r.indexOf(a)<r.indexOf(n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!n&&a)throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function qt(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var i=o.filter(Ft);if(i.length>1||Fe(o,Bt))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!Ht(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ft(t)&&!Ht(e,n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(Mt(t)){if(Fe(r,function(e){return Mt(e)&&e!==n}))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var a=Fe(r,Ft);if(n&&r.indexOf(a)<r.indexOf(n))throw new Xe(Xe.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Wt(e,t,n,r){zt(e,t,n),e.nodeType===Ct.DOCUMENT_NODE&&(r||jt)(e,t,n);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===gt){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var s=n?n.previousSibling:e.lastChild;i.previousSibling=s,a.nextSibling=n,s?s.nextSibling=i:e.firstChild=i,null==n?e.lastChild=a:n.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return Ot(e.ownerDocument||e,e,t),t.nodeType==gt&&(t.firstChild=t.lastChild=null),t}function Gt(e){Qe(e),this._nsMap=Object.create(null)}function Vt(e){Qe(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Xt(e){Qe(e)}function Zt(e){Qe(e)}function Yt(e){Qe(e)}function Qt(e){Qe(e)}function Kt(e){Qe(e)}function Jt(e){Qe(e)}function en(e){Qe(e)}function tn(e){Qe(e)}function nn(e){Qe(e)}function rn(e){Qe(e)}function on(){}function an(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:null!=e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var n=[],r=this.nodeType===ht&&this.documentElement||this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return cn(this,n,a,t),n.join("")}function sn(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===r&&o===We.XML||o===We.XMLNS)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix===r)return a.namespace!==o}return!0}function ln(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,At),'"')}function cn(e,t,n,r){n||(n=[]);var o=r.nodeFilter,i=r.requireWellFormed,a=r.splitCDATASections,s="html"===(e.nodeType===ht?e:e.ownerDocument).type;$t(e,{ns:n},{enter:function(e,n){var l=n.ns;if(o){if(!(e=o(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case at:var c=e.attributes,u=c.length,d=e.tagName,f=d;if(!s&&!e.prefix&&e.namespaceURI){for(var p,h=0;h<c.length;h++)if("xmlns"===c.item(h).name){p=c.item(h).value;break}if(!p)for(var m=l.length-1;m>=0;m--){if(""===(g=l[m]).prefix&&g.namespace===e.namespaceURI){p=g.namespace;break}}if(p!==e.namespaceURI)for(m=l.length-1;m>=0;m--){var g;if((g=l[m]).namespace===e.namespaceURI){g.prefix&&(f=g.prefix+":"+d);break}}}t.push("<",f);for(var v=l.slice(),w=0;w<u;w++){"xmlns"==(b=c.item(w)).prefix?v.push({prefix:b.localName,namespace:b.value}):"xmlns"==b.nodeName&&v.push({prefix:"",namespace:b.value})}for(w=0;w<u;w++){var b;if(sn(b=c.item(w),0,v)){var y=b.prefix||"",x=b.namespaceURI;ln(t,y?"xmlns:"+y:"xmlns",x),v.push({prefix:y,namespace:x})}var S=o?o(b):b;S&&("string"==typeof S?t.push(S):ln(t,S.name,S.value))}if(d===f&&sn(e,0,v)){var N=e.prefix||"";x=e.namespaceURI;ln(t,N?"xmlns:"+N:"xmlns",x),v.push({prefix:N,namespace:x})}var E=!e.firstChild;if(E&&(s||e.namespaceURI===We.HTML)&&(E=je(d)),E)return t.push("/>"),null;if(t.push(">"),s&&ze(d)){for(var _=e.firstChild;_;)_.data?t.push(_.data):cn(_,t,v.slice(),r),_=_.nextSibling;return t.push("</",f,">"),null}return{ns:v,tag:f};case ht:case gt:if(i&&e.nodeType===ht&&null==e.documentElement)throw new Xe("The Document has no documentElement",Ze.InvalidStateError);return{ns:l};case st:return ln(t,e.name,e.value),null;case lt:if(i&&Ye.InvalidChar.test(e.data))throw new Xe("The Text node data contains characters outside the XML Char production",Ze.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,At)),null;case ct:if(i&&-1!==e.data.indexOf("]]>"))throw new Xe('The CDATASection data contains "]]>"',Ze.InvalidStateError);return a?t.push(Ye.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),Ye.CDATA_END):t.push(Ye.CDATA_START,e.data,Ye.CDATA_END),null;case pt:if(i){if(Ye.InvalidChar.test(e.data))throw new Xe("The comment node data contains characters outside the XML Char production",Ze.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new Xe('The comment node data contains "--" or ends with "-"',Ze.InvalidStateError)}return t.push(Ye.COMMENT_START,e.data,Ye.COMMENT_END),null;case mt:var k=e.publicId,T=e.systemId;if(i){if(k&&!Ye.PubidLiteral_match.test(k))throw new Xe("DocumentType publicId is not a valid PubidLiteral",Ze.InvalidStateError);if(T&&"."!==T&&!Ye.SystemLiteral_match.test(T))throw new Xe("DocumentType systemId is not a valid SystemLiteral",Ze.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new Xe('DocumentType internalSubset contains "]>"',Ze.InvalidStateError)}return t.push(Ye.DOCTYPE_DECL_START," ",e.name),k?(t.push(" ",Ye.PUBLIC," ",k),T&&"."!==T&&t.push(" ",T)):T&&"."!==T&&t.push(" ",Ye.SYSTEM," ",T),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case ft:if(i){if(-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new Xe("The ProcessingInstruction target is not well-formed",Ze.InvalidStateError);if(Ye.InvalidChar.test(e.data))throw new Xe("The ProcessingInstruction data contains characters outside the XML Char production",Ze.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new Xe('The ProcessingInstruction data contains "?>"',Ze.InvalidStateError)}return t.push("<?",e.target," ",e.data,"?>"),null;case ut:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push("</",n.tag,">")}})}function un(e,t,n){var r;return $t(t,null,{enter:function(t,o){var i=new t.constructor(Ge);for(var a in t)if(Ue(t,a)){var s=t[a];"object"!=typeof s&&s!=i[a]&&(i[a]=s)}t.childNodes&&(i.childNodes=new xt),i.ownerDocument=e;var l=n;switch(i.nodeType){case at:var c=t.attributes,u=i.attributes=new Et,d=c.length;u._ownerElement=i;for(var f=0;f<d;f++)i.setAttributeNode(un(e,c.item(f),!0));break;case st:l=!0}return null!==o?o.appendChild(i):r=i,l?i:null}}),r}function dn(e,t,n){e[t]=n}function fn(e){for(var t=[],n=e.firstChild;n;)n.nodeType===at&&t.push(n),n=n.nextSibling;return t}xt.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var n=[],r=0;r<this.length;r++)cn(this[r],n,null,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},xt.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},St.prototype.item=function(e){return Nt(this),this[e]||null},ot(St,xt),Et.prototype={length:0,item:xt.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var n=this[t];if(n.nodeName===e)return n;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Xe(Xe.INUSE_ATTRIBUTE_ERR);var n=this.getNamedItemNS(e.namespaceURI,e.localName);return n===e?e:(kt(this._ownerElement,this,e,n),n)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Xe(Xe.NOT_FOUND_ERR,e);return Tt(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);if(!n)throw new Xe(Xe.NOT_FOUND_ERR,e?e+" : "+t:t);return Tt(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){e||(e=null);for(var n=0;n<this.length;){var r=this[n];if(r.localName===t&&r.namespaceURI===e)return r;n++}return null}},Et.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},It.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=qe.XML_APPLICATION;e===We.HTML?r=qe.XML_XHTML_APPLICATION:e===We.SVG&&(r=qe.XML_SVG_IMAGE);var o=new Dt(Ge,{contentType:r});if(o.implementation=this,o.childNodes=new xt,o.doctype=n||null,n&&o.appendChild(n),t){var i=o.createElementNS(e,t);o.appendChild(i)}return o},createDocumentType:function(e,t,n,r){tt(e);var o=new Kt(Ge);return o.name=e,o.nodeName=e,o.publicId=t||"",o.systemId=n||"",o.internalSubset=r||"",o.childNodes=new xt,o},createHTMLDocument:function(e){var t=new Dt(Ge,{contentType:qe.HTML});if(t.implementation=this,t.childNodes=new xt,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var n=t.createElement("html");t.appendChild(n);var r=t.createElement("head");if(n.appendChild(r),"string"==typeof e){var o=t.createElement("title");o.appendChild(t.createTextNode(e)),r.appendChild(o)}n.appendChild(t.createElement("body"))}return t}},Ct.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var n=t.pop(),r=n.node,o=n.other;if(r.nodeType!==o.nodeType)return!1;switch(r.nodeType){case r.DOCUMENT_TYPE_NODE:if(r.name!==o.name)return!1;if(r.publicId!==o.publicId)return!1;if(r.systemId!==o.systemId)return!1;break;case r.ELEMENT_NODE:if(r.namespaceURI!==o.namespaceURI)return!1;if(r.prefix!==o.prefix)return!1;if(r.localName!==o.localName)return!1;if(r.attributes.length!==o.attributes.length)return!1;for(var i=0;i<r.attributes.length;i++){var a=r.attributes.item(i),s=o.getAttributeNodeNS(a.namespaceURI,a.localName);if(!s)return!1;t.push({node:a,other:s})}break;case r.ATTRIBUTE_NODE:if(r.namespaceURI!==o.namespaceURI)return!1;if(r.localName!==o.localName)return!1;if(r.value!==o.value)return!1;break;case r.PROCESSING_INSTRUCTION_NODE:if(r.target!==o.target||r.data!==o.data)return!1;break;case r.TEXT_NODE:case r.CDATA_SECTION_NODE:case r.COMMENT_NODE:if(r.data!==o.data)return!1}if(r.childNodes.length!==o.childNodes.length)return!1;for(i=r.childNodes.length-1;i>=0;i--)t.push({node:r.childNodes[i],other:o.childNodes[i]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Wt(this,e,t)},replaceChild:function(e,t){Wt(this,e,t,qt),t&&this.removeChild(t)},removeChild:function(e){return Lt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return un(this.ownerDocument||this,this,e)},normalize:function(){$t(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;null!==n&&n.nodeType===lt&&t.nodeType===lt?(e.removeChild(n),t.appendData(n.data)):t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(Ue(n,r)&&n[r]===e)return r;t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Ue(n,e))return n[e];t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,n=this,r=null,o=null;if(t instanceof Vt&&(t=(r=t).ownerElement),n instanceof Vt&&(n=(o=n).ownerElement,r&&t&&n===t))for(var i,a=0;i=n.attributes[a];a++){if(i===r)return wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+wt.DOCUMENT_POSITION_PRECEDING;if(i===o)return wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+wt.DOCUMENT_POSITION_FOLLOWING}if(!t||!n||n.ownerDocument!==t.ownerDocument)return wt.DOCUMENT_POSITION_DISCONNECTED+wt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(yt(n.ownerDocument)>yt(t.ownerDocument)?wt.DOCUMENT_POSITION_FOLLOWING:wt.DOCUMENT_POSITION_PRECEDING);if(o&&t===n)return wt.DOCUMENT_POSITION_CONTAINS+wt.DOCUMENT_POSITION_PRECEDING;if(r&&t===n)return wt.DOCUMENT_POSITION_CONTAINED_BY+wt.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!o&&l===n)return wt.DOCUMENT_POSITION_CONTAINED_BY+wt.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=n.parentNode;u;){if(!r&&u===t)return wt.DOCUMENT_POSITION_CONTAINS+wt.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=bt(s,c);for(var f in d.childNodes){var p=d.childNodes[f];if(p===n)return wt.DOCUMENT_POSITION_FOLLOWING;if(p===t)return wt.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(p)>=0)return wt.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(p)>=0)return wt.DOCUMENT_POSITION_PRECEDING}return 0}},rt(it,Ct),rt(it,Ct.prototype),rt(wt,Ct),rt(wt,Ct.prototype),$t.STOP=Symbol("walkDOM.STOP"),$t.ENTER=0,$t.EXIT=1,Dt.prototype={implementation:null,nodeName:"#document",nodeType:ht,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===gt){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Wt(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===at&&(this.documentElement=e),e},removeChild:function(e){var t=Lt(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Wt(this,e,t,qt),e.ownerDocument=this,t&&this.removeChild(t),Ft(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,n){var r;return $t(t,null,{enter:function(t,o){var i=t.cloneNode(!1);return i.ownerDocument=e,i.parentNode=null,null===o?r=i:o.appendChild(i),t.nodeType===st||n?i:null}}),r}(this,e,t)},getElementById:function(e){var t=null;return Rt(this.documentElement,function(n){if(n.nodeType==at&&n.getAttribute("id")==e)return t=n,!0}),t},createElement:function(e){var t=new Gt(Ge);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),Be(this.contentType)&&(t.namespaceURI=We.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new xt,(t.attributes=new Et)._ownerElement=t,t},createDocumentFragment:function(){var e=new nn(Ge);return e.ownerDocument=this,e.childNodes=new xt,e},createTextNode:function(e){var t=new Zt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createComment:function(e){var t=new Yt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new Xe(Xe.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new Qt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new rn(Ge);return n.ownerDocument=this,n.childNodes=new xt,n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){if(!Ye.QName_exact.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Vt(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!Ye.Name.test(e))throw new Xe(Xe.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Xe("document is an html document",Ze.NotSupportedError);var t=new tn(Ge);return t.ownerDocument=this,t.childNodes=new xt,t.nodeName=e,t},createElementNS:function(e,t){var n=nt(e,t),r=new Gt(Ge),o=r.attributes=new Et;return r.childNodes=new xt,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],o._ownerElement=r,r},createAttributeNS:function(e,t){var n=nt(e,t),r=new Vt(Ge);return r.ownerDocument=this,r.childNodes=new xt,r.nodeName=t,r.name=t,r.specified=!0,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],r}},ot(Dt,Ct),Gt.prototype={nodeType:at,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===We.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var n=this.getAttributeNode(e);n?n.value=n.nodeValue=""+t:((n=this.ownerDocument._createAttribute(e)).value=n.nodeValue=""+t,this.setAttributeNode(n))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n?n.value:null},setAttributeNS:function(e,t,n){var r=nt(e,t)[2],o=this.getAttributeNodeNS(e,r);o?o.value=o.nodeValue=""+n:((o=this.ownerDocument.createAttributeNS(e,t)).value=o.nodeValue=""+n,this.setAttributeNode(o))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=et(e);return new St(this,function(n){var r=[];return t.length>0&&Rt(n,function(o){if(o!==n&&o.nodeType===at){var i=o.getAttribute("class");if(i){var a=e===i;if(!a){var s=et(i);a=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}a&&r.push(o)}}var l}),r})},getElementsByTagName:function(e){var t="html"===(this.nodeType===ht?this:this.ownerDocument).type,n=e.toLowerCase();return new St(this,function(r){var o=[];return Rt(r,function(i){i!==r&&i.nodeType===at&&(("*"===e||i.getQualifiedName()===(t&&i.namespaceURI===We.HTML?n:e))&&o.push(i))}),o})},getElementsByTagNameNS:function(e,t){return new St(this,function(n){var r=[];return Rt(n,function(o){o===n||o.nodeType!==at||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||r.push(o)}),r})}},Dt.prototype.getElementsByClassName=Gt.prototype.getElementsByClassName,Dt.prototype.getElementsByTagName=Gt.prototype.getElementsByTagName,Dt.prototype.getElementsByTagNameNS=Gt.prototype.getElementsByTagNameNS,ot(Gt,Ct),Vt.prototype.nodeType=st,ot(Vt,Ct),Xt.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},ot(Xt,Ct),Zt.prototype={nodeName:"#text",nodeType:lt,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},ot(Zt,Xt),Yt.prototype={nodeName:"#comment",nodeType:pt},ot(Yt,Xt),Qt.prototype={nodeName:"#cdata-section",nodeType:ct},ot(Qt,Zt),Kt.prototype.nodeType=mt,ot(Kt,Ct),Jt.prototype.nodeType=vt,ot(Jt,Ct),en.prototype.nodeType=dt,ot(en,Ct),tn.prototype.nodeType=ut,ot(tn,Ct),nn.prototype.nodeName="#document-fragment",nn.prototype.nodeType=gt,ot(nn,Ct),rn.prototype.nodeType=ft,ot(rn,Xt),on.prototype.serializeToString=function(e,t){return an.call(e,t)},Ct.prototype.toString=an;try{Object.defineProperty&&(Object.defineProperty(St.prototype,"length",{get:function(){return Nt(this),this.$$length}}),Object.defineProperty(Ct.prototype,"textContent",{get:function(){if(this.nodeType===at||this.nodeType===gt){var e=[];return $t(this,null,{enter:function(t){return t.nodeType===at||t.nodeType===gt||(t.nodeType===ft||t.nodeType===pt?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case at:case gt:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(Gt.prototype,"children",{get:function(){return new St(this,fn)}}),Object.defineProperty(Dt.prototype,"children",{get:function(){return new St(this,fn)}}),Object.defineProperty(nn.prototype,"children",{get:function(){return new St(this,fn)}}),dn=function(e,t,n){e["$$"+t]=n})}catch(Gu){}_._updateLiveList=Nt,_.Attr=Vt,_.CDATASection=Qt,_.CharacterData=Xt,_.Comment=Yt,_.Document=Dt,_.DocumentFragment=nn,_.DocumentType=Kt,_.DOMImplementation=It,_.Element=Gt,_.Entity=en,_.EntityReference=tn,_.LiveNodeList=St,_.NamedNodeMap=Et,_.Node=Ct,_.NodeList=xt,_.Notation=Jt,_.Text=Zt,_.ProcessingInstruction=rn,_.walkDOM=$t,_.XMLSerializer=on;var pn,hn,mn={},gn={};pn=gn,hn=i.freeze,pn.XML_ENTITIES=hn({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),pn.HTML_ENTITIES=hn({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),pn.entityMap=pn.HTML_ENTITIES;var vn={},wn=i,bn=k,yn=m,xn=wn.isHTMLEscapableRawTextElement,Sn=wn.isHTMLMimeType,Nn=wn.isHTMLRawTextElement,En=wn.hasOwn,_n=wn.NAMESPACE,kn=yn.ParseError,Tn=yn.DOMException;function In(){}In.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),Pn(t,t=Object.create(null)),function(e,t,n,r,o){var i=Sn(r.mimeType);e.indexOf(bn.UNICODE_REPLACEMENT_CHARACTER)>=0&&o.warning("Unicode replacement character detected, source encoding issues?");function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=";"===e[e.length-1]?e:e+";";if(!i&&t!==e)return o.error("EntityRef: expecting ;"),e;var r=bn.Reference.exec(t);if(!r||r[0].length!==t.length)return o.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return En(n,s)?n[s]:"#"===s.charAt(0)?a(parseInt(s.substring(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>g){var n=e.substring(g,t).replace(Cn,s);f&&p(g),r.characters(n,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,f=r.locator;function p(t,n){for(;t>=u&&(n=d.exec(e));)c=u,u=n.index+n[0].length,f.lineNumber++;f.columnNumber=t-c+1}var h=[{currentNSMap:t}],m=[],g=0;for(;;){try{var v=e.indexOf("<",g);if(v<0){if(!i&&m.length>0)return o.fatalError("unclosed xml tag(s): "+m.join(", "));if(!e.substring(g).match(/^\s*$/)){var w=r.doc,b=w.createTextNode(e.substring(g));if(w.documentElement)return o.error("Extra content at the end of the document");w.appendChild(b),r.currentElement=b}return}if(v>g){var y=e.substring(g,v);i||0!==m.length||(y=y.replace(new RegExp(bn.S_OPT.source,"g"),""))&&o.error("Unexpected content outside root element: '"+y+"'"),l(v)}switch(e.charAt(v+1)){case"/":var x=e.indexOf(">",v+2),S=e.substring(v+2,x>0?x:void 0);if(!S)return o.fatalError("end tag name missing");var N=x>0&&bn.reg("^",bn.QName_group,bn.S_OPT,"$").exec(S);if(!N)return o.fatalError('end tag name contains invalid characters: "'+S+'"');if(!r.currentElement&&!r.doc.documentElement)return;var E=m[m.length-1]||r.currentElement.tagName||r.doc.documentElement.tagName||"";if(E!==N[1]){var _=N[1].toLowerCase();if(!i||E.toLowerCase()!==_)return o.fatalError('Opening and ending tag mismatch: "'+E+'" != "'+S+'"')}var k=h.pop();m.pop();var T=k.localNSMap;if(r.endElement(k.uri,k.localName,E),T)for(var I in T)En(T,I)&&r.endPrefixMapping(I);x++;break;case"?":f&&p(v),x=Mn(e,v,r,o);break;case"!":f&&p(v),x=Ln(e,v,r,o,i);break;default:f&&p(v);var C=new Fn,A=h[h.length-1].currentNSMap,R=(x=Rn(e,v,C,A,s,o,i),C.length);if(C.closed||(i&&wn.isHTMLVoidElement(C.tagName)?C.closed=!0:m.push(C.tagName)),f&&R){for(var $=An(f,{}),D=0;D<R;D++){var P=C[D];p(P.offset),P.locator=An(f,{})}r.locator=$,$n(C,r,A)&&h.push(C),r.locator=f}else $n(C,r,A)&&h.push(C);i&&!C.closed?x=Dn(e,x,C.tagName,s,r):x++}}catch(Gu){if(Gu instanceof kn)throw Gu;if(Gu instanceof Tn)throw new kn(Gu.name+": "+Gu.message,r.locator,Gu);o.error("element parse error: "+Gu),x=-1}x>g?g=x:l(Math.max(v,g)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}};var Cn=/&#?\w+;?/g;function An(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Rn(e,t,n,r,o,i,a){function s(e,t,r){return En(n.attributeNames,e)?i.fatalError("Attribute "+e+" redefined"):!a&&t.indexOf("<")>=0?i.fatalError("Unescaped '<' not allowed in attributes values"):void n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(Cn,o),r)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(i.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,f=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,f=e.slice(t,c),t),i.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(t,c)).slice(-1)&&(n.closed=!0,f=f.slice(0,-1));case 2:2===u&&(f=l),4==u?(i.warning('attribute "'+f+'" missed quot(")!'),s(l,f,t)):(a||i.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,t));break;case 3:if(!a)return i.fatalError("AttValue: ' or \" expected")}return c;case"":d=" ";default:if(d<=" ")switch(u){case 0:n.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var f=e.slice(t,c);i.warning('attribute "'+f+'" missed quot(")!!'),s(l,f,t);case 5:u=6}else switch(u){case 2:a||i.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:i.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function $n(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],s=a.qName,l=a.value;if((f=s.indexOf(":"))>0)var c=a.prefix=s.slice(0,f),u=s.slice(f+1),d="xmlns"===c&&u;else u=s,c=null,d="xmlns"===s&&"";a.localName=u,!1!==d&&(null==o&&(o=Object.create(null),Pn(n,n=Object.create(null))),n[d]=o[d]=l,a.uri=_n.XMLNS,t.startPrefixMapping(d,l))}for(i=e.length;i--;)(a=e[i]).prefix&&("xml"===a.prefix&&(a.uri=_n.XML),"xmlns"!==a.prefix&&(a.uri=n[a.prefix]));var f;(f=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,f),u=e.localName=r.slice(f+1)):(c=null,u=e.localName=r);var p=e.uri=n[c||""];if(t.startElement(p,u,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,u,r),o)for(c in o)En(o,c)&&t.endPrefixMapping(c)}function Dn(e,t,n,r,o){var i=xn(n);if(i||Nn(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);return i&&(s=s.replace(Cn,r)),o.characters(s,0,s.length),a}return t+1}function Pn(e,t){for(var n in e)En(e,n)&&(t[n]=e[n])}function On(e,t){var n=t;function r(t){return t=t||0,e.charAt(n+t)}function o(e){n+=e=e||1}function i(){return e.substring(n)}return{char:r,getIndex:function(){return n},getMatch:function(e){var t=bn.reg("^",e).exec(i());return t?(o(t[0].length),t[0]):null},getSource:function(){return e},skip:o,skipBlanks:function(){for(var t=0;n<e.length;){var i=r();if(" "!==i&&"\n"!==i&&"\t"!==i&&"\r"!==i)return t;t++,o()}return-1},substringFromIndex:i,substringStartsWith:function(t){return e.substring(n,n+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(n,n+t.length).toUpperCase()===t.toUpperCase()}}}function Ln(e,t,n,r,o){var i=On(e,t);switch(o?i.char(2).toUpperCase():i.char(2)){case"-":var a=i.getMatch(bn.Comment);return a?(n.comment(a,bn.COMMENT_START.length,a.length-bn.COMMENT_START.length-bn.COMMENT_END.length),i.getIndex()):r.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var s=i.getMatch(bn.CDSect);return s?o||n.currentElement?(n.startCDATA(),n.characters(s,bn.CDATA_START.length,s.length-bn.CDATA_START.length-bn.CDATA_END.length),n.endCDATA(),i.getIndex()):r.fatalError("CDATA outside of element"):r.fatalError("Invalid CDATA starting at position "+t);case"D":if(n.doc&&n.doc.documentElement)return r.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(o?!i.substringStartsWithCaseInsensitive(bn.DOCTYPE_DECL_START):!i.substringStartsWith(bn.DOCTYPE_DECL_START))return r.fatalError("Expected "+bn.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(bn.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return r.fatalError("Expected whitespace after "+bn.DOCTYPE_DECL_START+" at position "+i.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=i.getMatch(bn.Name),!l.name)return r.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(o&&"html"!==l.name.toLowerCase()&&r.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(bn.PUBLIC)||i.substringStartsWith(bn.SYSTEM)){var c=bn.ExternalID_match.exec(i.substringFromIndex());if(!c)return r.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),i.skip(c[0].length)}else if(o&&i.substringStartsWithCaseInsensitive(bn.SYSTEM)){if(i.skip(bn.SYSTEM.length),i.skipBlanks()<1)return r.fatalError("Expected whitespace after "+bn.SYSTEM+" at position "+i.getIndex());if(l.systemId=i.getMatch(bn.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return r.fatalError("Expected "+bn.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+bn.SYSTEM+" at position "+i.getIndex())}return o&&l.systemId&&!bn.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&r.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),o||(i.skipBlanks(),l.internalSubset=function(e,t){function n(e,t){var n=bn.PI.exec(e.substringFromIndex());return n?"xml"===n[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(n[0].length),n[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var r=e.getSource();if("["===e.char()){e.skip(1);for(var o=e.getIndex();e.getIndex()<r.length;){if(e.skipBlanks(),"]"===e.char()){var i=r.substring(o,e.getIndex());return e.skip(1),i}var a=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?a=e.getMatch(bn.elementdecl):"N"===e.char(3)&&(a=e.getMatch(bn.EntityDecl));break;case"A":a=e.getMatch(bn.AttlistDecl);break;case"N":a=e.getMatch(bn.NotationDecl);break;case"-":a=e.getMatch(bn.Comment)}else if("<"===e.char()&&"?"===e.char(1))a=n(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");a=e.getMatch(bn.PEReference)}if(!a)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(i,r)),i.skipBlanks(),">"!==i.char()?r.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),n.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),n.endDTD(),i.getIndex());default:return r.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function Mn(e,t,n,r){var o=e.substring(t).match(bn.PI);if(!o)return r.fatalError("Invalid processing instruction starting at position "+t);if("xml"===o[1].toLowerCase()){if(t>0)return r.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!bn.XMLDecl.test(e.substring(t)))return r.fatalError("xml declaration is not well-formed")}return n.processingInstruction(o[1],o[2]),t+o[0].length}function Fn(){this.attributeNames=Object.create(null)}Fn.prototype={setTagName:function(e){if(!bn.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!bn.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},vn.XMLReader=In,vn.parseUtils=On,vn.parseDoctypeCommentOrCData=Ln;var Bn=i,Un=m,Hn=gn,zn=vn,jn=_.DOMImplementation,qn=Bn.hasDefaultHTMLNamespace,Wn=Bn.isHTMLMimeType,Gn=Bn.isValidMimeType,Vn=Bn.MIME_TYPE,Xn=Bn.NAMESPACE,Zn=Un.ParseError,Yn=zn.XMLReader;function Qn(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function Kn(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||Bn.assign,this.domHandler=e.domHandler||Jn,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||Qn,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Jn(e){var t=e||{};this.mimeType=t.mimeType||Vn.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function er(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function tr(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function nr(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Kn.prototype.parseFromString=function(e,t){if(!Gn(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),r=Hn.XML_ENTITIES,o=n[""]||null;qn(t)?(r=Hn.HTML_ENTITIES,o=Xn.HTML):t===Vn.XML_SVG_IMAGE&&(o=Xn.SVG),n[""]=o,n.xml=n.xml||Xn.XML;var i=new this.domHandler({mimeType:t,defaultNamespace:o,onError:this.onError}),a=this.locator?{}:void 0;this.locator&&i.setDocumentLocator(a);var s=new Yn;return s.errorHandler=i,s.domBuilder=i,!Bn.isHTMLMimeType(t)&&"string"!=typeof e&&s.errorHandler.fatalError("source is not a string"),s.parse(this.normalizeLineEndings(String(e)),n,r),i.doc.documentElement||s.errorHandler.fatalError("missing root element"),i.doc},Jn.prototype={startDocument:function(){var e=new jn;this.doc=Wn(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,n,r){var o=this.doc,i=o.createElementNS(e,n||t),a=r.length;nr(this,i),this.currentElement=i,this.locator&&er(this.locator,i);for(var s=0;s<a;s++){e=r.getURI(s);var l=r.getValue(s),c=(n=r.getQName(s),o.createAttributeNS(e,n));this.locator&&er(r.getLocator(s),c),c.value=c.nodeValue=l,i.setAttributeNode(c)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&er(this.locator,n),nr(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=tr.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&er(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=tr.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&er(this.locator,r),nr(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var o=this.doc.implementation;if(o&&o.createDocumentType){var i=o.createDocumentType(e,t,n,r);this.locator&&er(this.locator,i),nr(this,i),this.doc.doctype=i}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(Gu){throw new Zn("Reporting "+e+' "'+t+'" caused '+Gu,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new Zn(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Jn.prototype[e]=function(){return null}}),mn.__DOMHandler=Jn,mn.DOMParser=Kn,mn.normalizeLineEndings=Qn,mn.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},mn.onWarningStopParsing=function(){throw"onWarningStopParsing"};var rr=i;rr.assign,rr.hasDefaultHTMLNamespace,rr.isHTMLMimeType,rr.isValidMimeType,rr.MIME_TYPE,rr.NAMESPACE;var or=_.XMLSerializer,ir=mn.DOMParser;function ar(e){return`${e}:${crypto.randomUUID()}`}function sr(){return ar("bookmark")}function lr(){return ar("comment")}function cr(e=""){return{id:ar("run"),text:e,kind:"text"}}function ur(e=""){return{id:ar("paragraph"),type:"paragraph",runs:[cr(e)]}}function dr(e){return{id:ar("paragraph"),type:"paragraph",runs:e.length>0?e.map(e=>function(e="",t,n,r){const o={id:ar("run"),text:e};return t&&(o.styles={...t}),n?{...o,kind:"image",image:{...n}}:r?{...o,kind:"textBox",textBox:r}:{...o,kind:"text"}}(e.text,e.styles,e.image,e.textBox)):[cr("")]}}function fr(e,t=1,n){const r={id:ar("table-cell"),blocks:e.length>0?e:[ur("")]};return t>1&&(r.colSpan=t),(null==n?void 0:n.rowSpan)&&n.rowSpan>1&&(r.rowSpan=n.rowSpan),(null==n?void 0:n.vMerge)&&(r.vMerge=n.vMerge),r}function pr(e,t){const n={id:ar("table-row"),cells:e};return(null==t?void 0:t.isHeader)&&(n.isHeader=!0),n}const hr=96,mr=hr/72,gr=9525,vr=12700,wr=1440,br=1e5,yr=6e4,xr=14.6667,Sr=e=>({width:.5,type:"solid",color:e});function Nr(e,t,n){const r=`${n?"MediumShading1":"LightShading"}-Accent${e}`,o=Sr(n?"#ffffff":t.accent);return{id:r,name:`${n?"Medium Shading 1":"Light Shading"} Accent ${e}`,type:"table",qFormat:!0,uiPriority:(n?40:20)+e,tableStyle:{rowBandSize:1,tblLook:{firstRow:!0,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!1,noVBand:!0},borders:{borderTop:o,borderRight:o,borderBottom:o,borderLeft:o,borderInsideH:o,borderInsideV:o},conditionalFormats:{wholeTable:{shading:n?t.tint:"#ffffff"},firstRow:{shading:t.accent,textStyle:{bold:!0,color:"#ffffff"}},band1Horz:{shading:t.tint}}}}}const Er={TableNormal:{id:"TableNormal",name:"Table Normal",type:"table",isDefault:!0,uiPriority:0,tableStyle:{tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},TableGrid:{id:"TableGrid",name:"Table Grid",type:"table",qFormat:!0,uiPriority:1,tableStyle:{borders:{borderTop:Sr("#7f7f7f"),borderRight:Sr("#7f7f7f"),borderBottom:Sr("#7f7f7f"),borderLeft:Sr("#7f7f7f"),borderInsideH:Sr("#7f7f7f"),borderInsideV:Sr("#7f7f7f")},tblLook:{firstRow:!1,lastRow:!1,firstCol:!1,lastCol:!1,noHBand:!0,noVBand:!0}}},...Object.fromEntries([{accent:"#4472c4",tint:"#d9e2f3"},{accent:"#ed7d31",tint:"#fce4d6"},{accent:"#a5a5a5",tint:"#e7e6e6"},{accent:"#ffc000",tint:"#fff2cc"},{accent:"#5b9bd5",tint:"#ddebf7"},{accent:"#70ad47",tint:"#e2f0d9"}].flatMap((e,t)=>{const n=t+1,r=Nr(n,e,!1),o=Nr(n,e,!0);return[[r.id,r],[o.id,o]]}))},_r={normal:{id:"normal",name:"Normal",type:"paragraph",qFormat:!0,uiPriority:0,paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:xr}},header:{id:"header",name:"Header",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",name:"Footer",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",name:"Heading 1",type:"paragraph",qFormat:!0,uiPriority:10,basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:24,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:27,color:"#2e74b5"}},heading2:{id:"heading2",name:"Heading 2",type:"paragraph",qFormat:!0,uiPriority:11,basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:17,color:"#2e74b5"}},heading3:{id:"heading3",name:"Heading 3",type:"paragraph",qFormat:!0,uiPriority:12,basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:16,color:"#1f4d78"}},footnoteText:{id:"footnoteText",name:"Footnote Text",type:"paragraph",semiHidden:!0,basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",name:"Footnote Reference",type:"character",semiHidden:!0,basedOn:"normal",textStyle:{superscript:!0}},Caption:{id:"Caption",name:"Caption",type:"paragraph",qFormat:!0,uiPriority:35,basedOn:"normal",nextStyle:"normal",paragraphStyle:{align:"center",spacingBefore:4,spacingAfter:8},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:12,italic:!0}},...Er};function kr(e,t="value"){const n=e&&"object"==typeof e&&"type"in e?e.type:e;throw new Error(`Unhandled ${t}: ${String(n)}`)}function Tr(e){return"footnoteReference"===e.kind?e.footnoteReference:void 0}function Ir(e){return"endnoteReference"===e.kind?e.endnoteReference:void 0}function Cr(e,t){switch(e.kind){case"footnoteReference":return t.footnoteReference(e);case"endnoteReference":return t.endnoteReference(e);case"fieldChar":return t.fieldChar(e);case"fieldInstruction":return t.fieldInstruction(e);case"field":return t.field(e);case"textBox":return t.textBox(e);case"image":return t.image(e);case"sym":return t.sym(e);case"math":return t.math?t.math(e):t.text(e);case"text":return t.text(e);default:return kr(e,"run kind")}}const Ar="asset:";const Rr={styleId:void 0,bold:!1,italic:!1,underline:!1,underlineStyle:null,underlineColor:null,strike:!1,doubleStrike:!1,superscript:!1,subscript:!1,smallCaps:!1,allCaps:!1,hidden:!1,noProof:!1,webHidden:!1,specVanish:!1,rtl:!1,complexScript:!1,snapToGrid:!0,fitText:null,emphasisMark:null,textBorder:null,outline:!1,shadow:!1,emboss:!1,imprint:!1,textEffect:null,characterScale:null,characterSpacing:null,baselineShift:null,kerningThreshold:null,ligatures:null,numberSpacing:null,numberForm:null,stylisticSet:null,contextualAlternates:!1,fontFamily:"Calibri, sans-serif",fontSize:xr,color:"#000000",highlight:null,shading:null,language:null,link:null},$r={styleId:void 0,align:"left",spacingBefore:0,spacingAfter:8,contextualSpacing:!1,lineHeight:1.15,lineRule:null,lineGridPitch:null,lineGridType:null,snapToGrid:!0,indentLeft:0,indentRight:0,indentFirstLine:0,indentHanging:0,mirrorIndents:!1,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0,textDirection:null,outlineLevel:null,suppressLineNumbers:!1,suppressAutoHyphens:!1,bidi:!1,kinsoku:!0,wordWrap:!0,overflowPunct:!0,topLinePunct:!1,autoSpaceDE:!0,autoSpaceDN:!0,adjustRightInd:!0,textAlignment:null,textboxTightWrap:null,divId:null,conditionalStyle:null,borderBetween:null,borderBar:null,framePrXml:null},Dr=816,Pr=1056,Or="portrait",Lr={top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0};function Mr(e){const t=e.orientation??function(e,t){return e>t?"landscape":"portrait"}(e.width,e.height),n="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:n?e.height:e.width,height:n?e.width:e.height,orientation:t,margins:{top:e.margins.top,right:e.margins.right,bottom:e.margins.bottom,left:e.margins.left,header:e.margins.header,footer:e.margins.footer,gutter:e.margins.gutter},...e.columns?{columns:e.columns}:{}}}function Fr(e){const t=e.pageSettings;return Mr({width:(null==t?void 0:t.width)??Dr,height:(null==t?void 0:t.height)??Pr,orientation:(null==t?void 0:t.orientation)??Or,margins:{top:(null==t?void 0:t.margins.top)??Lr.top,right:(null==t?void 0:t.margins.right)??Lr.right,bottom:(null==t?void 0:t.margins.bottom)??Lr.bottom,left:(null==t?void 0:t.margins.left)??Lr.left,header:(null==t?void 0:t.margins.header)??Lr.header,footer:(null==t?void 0:t.margins.footer)??Lr.footer,gutter:(null==t?void 0:t.margins.gutter)??Lr.gutter},...(null==t?void 0:t.columns)?{columns:t.columns}:{}})}function Br(){return{merge(e,t){if(!t)return{...e};const n={...e};for(const[r,o]of Object.entries(t))void 0!==o&&(n[r]=o);return n}}}const Ur=Br(),Hr=Br();function zr(e,t){return Ur.merge(e,t)}function jr(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const n=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return n?n.id:void 0}function qr(e,t){if(!e||!t||!t[e])return{};const n=t[e];return{...n.basedOn?qr(n.basedOn,t):{},...n.textStyle??{}}}function Wr(e,t){if(!e||!t||!t[e])return{};const n=t[e];return{...n.basedOn?Wr(n.basedOn,t):{},...n.paragraphStyle??{}}}function Gr(e,t,n){const r=zr(qr(t??jr(n),n),qr(null==e?void 0:e.styleId,n)),o=zr(r,e);return{...Rr,...o}}function Vr(e,t){const n=(null==e?void 0:e.styleId)??jr(t),r=Wr(n,t),o=(i=r,a={...e,styleId:n},Hr.merge(i,a));var i,a;return{...$r,...o}}function Xr(e,t){var n;if(!t)return"";if(!t.startsWith(Ar))return t;const r=t.slice(6),o=null==(n=null==e?void 0:e.assets)?void 0:n[r];return(null==o?void 0:o.url)??t}function Zr(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:Mr(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:Fr(e)}]}function Yr(e){return Zr(e)}function Qr(e){switch(e.type){case"paragraph":return[e];case"table":return e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks.flatMap(Qr)));default:return kr(e,"block")}}function Kr(e){const t=Object.fromEntries(Object.entries(Er).filter(([t])=>!(t in e)));return{...e,...t}}function Jr(e,t,n,r,o,i){const a=Mr(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins},...t.columns?{columns:t.columns}:{}}:{width:Dr,height:Pr,orientation:Or,margins:{...Lr}});return{schemaVersion:1,id:ar("document"),pageSettings:a,sections:n??[{id:"section:default",blocks:e,pageSettings:a}],styles:r?Kr(r):{..._r},metadata:o??{title:"Untitled document"},assets:i??void 0}}const eo="http://schemas.openxmlformats.org/markup-compatibility/2006",to={supportedNamespaces:new Set};function no(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function ro(e){const t=e.parentNode;return 1===(null==t?void 0:t.nodeType)?t:null}function oo(e,t){let n=e;const r=t?`xmlns:${t}`:"xmlns";for(;n;){const e=n.getAttribute(r);if(e)return e;n=ro(n)}}function io(e,t){return e.getAttributeNS(eo,t)??e.getAttribute(`mc:${t}`)??void 0}function ao(e,t){const n=[];let r=e;for(;r;)n.push(r),r=ro(r);const o=[];for(const i of n.reverse()){const e=io(i,t);if(e)for(const t of e.split(/\s+/).filter(Boolean))o.push({element:i,token:t})}return o}function so(e,t){const n=t.indexOf(":");if(n<1||n===t.length-1)return;const r=t.slice(0,n),o=t.slice(n+1),i=oo(e,r);return i?`${i}\0${o}`:void 0}function lo(e,t){var n;const r=null==(n=e.getAttribute("Requires"))?void 0:n.trim();return!!r&&r.split(/\s+/).every(n=>{const r=oo(e,n);return Boolean(r&&t.supportedNamespaces.has(r))})}function co(e,t){let n;for(const r of no(e))if(r.namespaceURI===eo){if("Choice"===r.localName&&lo(r,t))return r;"Fallback"===r.localName&&(n=r)}return n}function uo(e,t=to){const n=[],r=function(e){const t=new Set;for(const n of ao(e,"Ignorable")){const e=oo(n.element,n.token);e&&t.add(e)}return t}(e),o=function(e){const t=new Set;for(const n of ao(e,"ProcessContent")){const e=so(n.element,n.token);e&&t.add(e)}return t}(e);for(const i of no(e)){if(i.namespaceURI===eo&&"AlternateContent"===i.localName){const e=co(i,t);e&&n.push(...uo(e,t));continue}const e=i.namespaceURI??"";if(r.has(e)&&!t.supportedNamespaces.has(e)){const r=`${e}\0${i.localName??i.tagName}`;o.has(r)&&n.push(...uo(i,t));continue}n.push(i)}return n}const fo="http://schemas.openxmlformats.org/wordprocessingml/2006/main",po="http://schemas.openxmlformats.org/drawingml/2006/main",ho="http://schemas.microsoft.com/office/word/2010/wordml",mo=function(e,...t){return{supportedNamespaces:new Set([...e.supportedNamespaces,...t])}}(to,ho);function go(e,t,n){return e?uo(e).filter(e=>e.namespaceURI===t&&e.localName===n):[]}const vo=["lrTb","tbRl","btLr","lrTbV","tbRlV"];function wo(e){return vo.includes(e)?e:void 0}function bo(e,t,n){return go(e,t,n)[0]??null}function yo(e,t){return e?uo(e,mo).find(e=>e.namespaceURI===ho&&e.localName===t)??null:null}function xo(e,t){return e?e.getAttributeNS(fo,t)??e.getAttributeNS(ho,t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(t):null}function So(e,t){for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if(1===(null==r?void 0:r.nodeType)){const e=r;if(e.localName===t)return e;const n=So(e,t);if(n)return n}}return null}function No(e){const t={},n=e.attributes;for(let r=0;r<n.length;r+=1){const e=n[r];if(!e)continue;const o=e.namespaceURI;if(!o||o===fo||o===eo)continue;if("xmlns"===e.prefix||"xmlns"===e.localName)continue;const i=e.localName??e.name;if(!i)continue;t[e.prefix?`${e.prefix}:${i}`:i]=e.value}return Object.keys(t).length>0?t:void 0}function Eo(e){return"1"===e||"true"===e||"on"===e}function _o(e,t){const n=bo(e,fo,t);if(!n)return;const r=xo(n,"val");return null==r||"0"!==r&&"false"!==r&&"off"!==r&&Eo(r)}function ko(e,t){return xo(bo(e,fo,t),"val")??void 0}async function To(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}function Io(e){var t;const n=new Map;if(!e)return n;const r=null==(t=(new ir).parseFromString(e,"application/xml").documentElement)?void 0:t.childNodes;if(!r)return n;for(let o=0;o<r.length;o+=1){const e=r[o];if(1===(null==e?void 0:e.nodeType)){const t=e;if("Relationship"===t.localName){const e=t.getAttribute("Id"),r=t.getAttribute("Target");e&&r&&n.set(e,r)}}}return n}async function Co(e,t){var n;const r=t.lastIndexOf("/"),o=r>=0?t.slice(0,r):"",i=r>=0?t.slice(r+1):t,a=o?`${o}/_rels/${i}.rels`:`_rels/${i}.rels`;return Io(await(null==(n=e.file(a))?void 0:n.async("string")))}const Ao=e=>{var t;const n=bo(e,po,"latin");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||void 0},Ro=e=>{var t;const n=bo(e,po,"cs");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||Ao(e)},$o=e=>{var t;const n=bo(e,po,"ea");return(null==(t=null==n?void 0:n.getAttribute("typeface"))?void 0:t.trim())||Ao(e)};function Do(e){const t=bo(e,po,"fontScheme"),n=bo(t,po,"majorFont"),r=bo(t,po,"minorFont");return{majorHAnsi:Ao(n),minorHAnsi:Ao(r),majorEastAsia:$o(n),minorEastAsia:$o(r),majorBidi:Ro(n),minorBidi:Ro(r)}}function Po(e,t){const n=10**t;return Math.round(e*n)/n}function Oo(e,t){const n=e?Number(e):Number.NaN;return Number.isFinite(n)?Math.round(n/wr*hr):t}function Lo(e){const t=e?Number(e):Number.NaN;if(Number.isFinite(t))return Po(t/20,4)}function Mo(e){const t=null==e?void 0:e.trim();if(t&&"auto"!==t&&"none"!==t)return t.startsWith("#")?t:`#${t.toUpperCase()}`}const Fo=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Bo(e){const t=bo(e,po,"srgbClr");if(t)return Mo(xo(t,"val"));const n=bo(e,po,"sysClr");return n?Mo(xo(n,"lastClr")):void 0}function Uo(e){const t=bo(e,po,"clrScheme");if(!t)return{};const n={};for(const r of Fo){const e=Bo(bo(t,po,r));e&&(n[r]=e)}return n}function Ho(e){if(!e)return;const t=Number.parseInt(e,16);return Number.isFinite(t)?t/255:void 0}function zo(e,t,n){const r=e=>{return(t=e,Math.min(255,Math.max(0,Math.round(t)))).toString(16).padStart(2,"0").toUpperCase();var t};return`#${r(e)}${r(t)}${r(n)}`}function jo(e,t){const n=xo(e,"themeColor");if(!n)return;const r=function(e){switch(e){case"dark1":case"text1":return"dk1";case"light1":case"background1":return"lt1";case"dark2":case"text2":return"dk2";case"light2":case"background2":return"lt2";case"accent1":case"accent2":case"accent3":case"accent4":case"accent5":case"accent6":return e;case"hyperlink":return"hlink";case"followedHyperlink":return"folHlink";default:return}}(n),o=r?t[r]:void 0;if(!o)return;let i=Number.parseInt(o.slice(1,3),16),a=Number.parseInt(o.slice(3,5),16),s=Number.parseInt(o.slice(5,7),16);const l=Ho(xo(e,"themeShade"));void 0!==l&&(i*=l,a*=l,s*=l);const c=Ho(xo(e,"themeTint"));if(void 0!==c){const e=255*(1-c);i=i*c+e,a=a*c+e,s=s*c+e}return zo(i,a,s)}const qo={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},Wo={continuous:"continuous",eachSect:"eachSection"};function Go(e){if(!e)return;const t={},n=xo(bo(e,fo,"numFmt"),"val");n&&qo[n]&&(t.numberFormat=qo[n]);const r=Number.parseInt(xo(bo(e,fo,"numStart"),"val")??"",10);Number.isFinite(r)&&r>0&&(t.startAt=r);const o=xo(bo(e,fo,"numRestart"),"val");return o&&Wo[o]&&(t.restart=Wo[o]),Object.keys(t).length>0?t:void 0}function Vo(e){return e.ooxmlNumbering}function Xo(e){const t=Vo(e);if((null==t?void 0:t.format)&&t.importedKind===e.kind&&t.importedFormat===e.format)return t.format}const Zo={decimal:"decimal",lowerLetter:"lowerLetter",upperLetter:"upperLetter",lowerRoman:"lowerRoman",upperRoman:"upperRoman",bullet:"bullet"};function Yo(e){const t=xo(e,"val");if(null==t)return;const n=Number.parseInt(t,10);return Number.isFinite(n)?n:void 0}function Qo(e,t){if(!e||!/^\d+$/.test(e))return;const n=Number.parseInt(e,10);return Number.isSafeInteger(n)&&n>=t?n:void 0}function Ko(e){const t={},n=xo(bo(e,fo,"numFmt"),"val");n&&(t.kind="bullet"===n?"bullet":"ordered",t.format=Zo[n],t.rawFormat=n);const r=xo(bo(e,fo,"suff"),"val");"tab"!==r&&"space"!==r&&"nothing"!==r||(t.suffix=r);const o=Yo(bo(e,fo,"start"));void 0!==o&&(t.startAt=o),t.levelText=xo(bo(e,fo,"lvlText"),"val")??void 0;const i=xo(bo(e,fo,"lvlJc"),"val");"left"!==i&&"center"!==i&&"right"!==i||(t.alignment=i);const a=bo(e,fo,"isLgl");var s;a&&(t.legal=null==(s=xo(a,"val"))||"1"===s||"true"===s||"on"===s);const l=Yo(bo(e,fo,"lvlRestart"));void 0!==l&&(t.restartAfterLevel=l),t.paragraphStyleId=xo(bo(e,fo,"pStyle"),"val")??void 0,"bullet"===t.kind&&t.levelText&&(t.bulletGlyph=t.levelText);const c=bo(e,fo,"rPr"),u=bo(c,fo,"rFonts");t.bulletFont=xo(u,"ascii")??xo(u,"hAnsi")??void 0;const d=bo(e,fo,"pPr"),f=bo(d,fo,"ind");if(f){const e=xo(f,"left")??xo(f,"start"),n=xo(f,"hanging"),r=null!=e?Oo(e,0):void 0,o=null!=n?Oo(n,0):void 0;void 0===r&&void 0===o||(t.indent={left:r,hanging:o})}return t}function Jo(e,t,n){const r=e.numToAbstractId.get(t),o=r?e.abstractLevels.get(`${r}:${n}`):void 0;return e.numOverrideLevels.get(`${t}:${n}`)??o??{}}function ei(e){if(!e)return;const t=xo(e,"val");if("nil"===t||"none"===t)return{width:0,type:"none",color:"transparent"};const n=Number(xo(e,"sz")),r=Number.isFinite(n)&&n>0?Po(n/8,4):.75,o=Mo(xo(e,"color"))??"#000000",i=(null==t?void 0:t.toLowerCase())??"single";return{width:r,type:i.includes("dotted")||i.includes("dot")?"dotted":i.includes("dash")?"dashed":"solid",color:o}}function ti(e){return e?{borderTop:ei(bo(e,fo,"top")),borderRight:ei(bo(e,fo,"right")),borderBottom:ei(bo(e,fo,"bottom")),borderLeft:ei(bo(e,fo,"left")),borderStart:ei(bo(e,fo,"start")),borderEnd:ei(bo(e,fo,"end")),borderTopLeftToBottomRight:ei(bo(e,fo,"tl2br")),borderTopRightToBottomLeft:ei(bo(e,fo,"tr2bl")),borderBetween:ei(bo(e,fo,"between")),borderBar:ei(bo(e,fo,"bar"))}:{}}function ni(e){const t=Object.entries(e).filter(([,e])=>void 0!==e);return t.length>0?Object.fromEntries(t):void 0}function ri(e){return Object.keys(e).length>0?e:void 0}function oi(e,t){return ri({...e??{},...t??{}})}function ii(e,t){const n=Mo(xo(e,"fill"));return n||(t?jo(e,t):void 0)}function ai(e){const t=bo(e,ho,"solidFill");if(t){const e=function(e){const t=bo(e,ho,"srgbClr");if(!t)return null;const n=xo(t,"val");return n?Mo(n)??null:null}(t);if(e)return{type:"solid",color:e}}const n=bo(e,ho,"gradFill");if(n){const e=bo(n,ho,"gsLst");if(e){const t=[];for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if(o.namespaceURI!==ho||"gs"!==o.localName)continue;const i=xo(o,"pos"),a=null!==i?Number(i)/br:NaN;if(!Number.isFinite(a))continue;const s=bo(o,ho,"srgbClr");if(!s)continue;const l=xo(s,"val");if(!l)continue;const c=Mo(l);if(!c)continue;const u=bo(s,ho,"alpha"),d=u?xo(u,"val"):null,f=null!==d?Number(d)/br:void 0,p={position:a,color:c};void 0!==f&&Number.isFinite(f)&&(p.alpha=f),t.push(p)}if(t.length>0){const e=bo(n,ho,"lin"),r=e?xo(e,"ang"):null,o=null!==r?Number(r)/yr:void 0,i={type:"gradient",stops:t};return void 0!==o&&Number.isFinite(o)&&(i.angle=o),i}}}return null}function si(e){const t=bo(e,ho,"srgbClr");if(!t)return null;const n=xo(t,"val"),r=n?Mo(n)??null:null;if(!r)return null;const o=bo(t,ho,"alpha"),i=o?xo(o,"val"):null,a=null!==i&&Number.isFinite(Number(i))?Number(i)/br:void 0;return{color:r,...void 0!==a?{alpha:a}:{}}}function li(e,t){if(!e)return;const n=Gr(e,t,_r),r=Gr(void 0,t,_r),o=(e,t)=>e!==t?e:void 0,i=(e,t,n)=>void 0!==e?e:o(t,n);return ni({styleId:e.styleId,bold:i(e.bold,n.bold,r.bold),italic:i(e.italic,n.italic,r.italic),underline:o(n.underline,r.underline),underlineStyle:o(n.underlineStyle,r.underlineStyle),underlineColor:o(n.underlineColor,r.underlineColor),strike:i(e.strike,n.strike,r.strike),doubleStrike:i(e.doubleStrike,n.doubleStrike,r.doubleStrike),superscript:o(n.superscript,r.superscript),subscript:o(n.subscript,r.subscript),smallCaps:i(e.smallCaps,n.smallCaps,r.smallCaps),allCaps:i(e.allCaps,n.allCaps,r.allCaps),hidden:i(e.hidden,n.hidden,r.hidden),noProof:i(e.noProof,n.noProof,r.noProof),webHidden:i(e.webHidden,n.webHidden,r.webHidden),specVanish:i(e.specVanish,n.specVanish,r.specVanish),rtl:i(e.rtl,n.rtl,r.rtl),complexScript:i(e.complexScript,n.complexScript,r.complexScript),snapToGrid:i(e.snapToGrid,n.snapToGrid,r.snapToGrid),outline:i(e.outline,n.outline,r.outline),shadow:i(e.shadow,n.shadow,r.shadow),emboss:i(e.emboss,n.emboss,r.emboss),imprint:i(e.imprint,n.imprint,r.imprint),fitText:o(n.fitText,r.fitText),emphasisMark:o(n.emphasisMark,r.emphasisMark),textBorder:o(n.textBorder,r.textBorder),textEffect:o(n.textEffect,r.textEffect),characterScale:o(n.characterScale,r.characterScale),characterSpacing:o(n.characterSpacing,r.characterSpacing),baselineShift:o(n.baselineShift,r.baselineShift),kerningThreshold:o(n.kerningThreshold,r.kerningThreshold),ligatures:o(n.ligatures,r.ligatures),numberSpacing:o(n.numberSpacing,r.numberSpacing),numberForm:o(n.numberForm,r.numberForm),stylisticSet:o(n.stylisticSet,r.stylisticSet),contextualAlternates:o(n.contextualAlternates,r.contextualAlternates),fontFamily:i(e.fontFamily,n.fontFamily,r.fontFamily),fontSize:i(e.fontSize,n.fontSize,r.fontSize),color:o(n.color,r.color),textFill:o(n.textFill,r.textFill),textOutline:o(n.textOutline,r.textOutline),textShadow:o(n.textShadow,r.textShadow),glow:o(n.glow,r.glow),reflection:o(n.reflection,r.reflection),scene3dXml:o(n.scene3dXml,r.scene3dXml),props3dXml:o(n.props3dXml,r.props3dXml),highlight:o(n.highlight,r.highlight),shading:o(n.shading,r.shading),language:o(n.language,r.language),link:o(n.link,r.link)})}function ci(e,t){if(!e)return;const n={},r=ko(e,"rStyle");r&&(n.styleId=r);const o=_o(e,"b"),i=_o(e,"bCs");void 0===o&&void 0===i||(n.bold=!0===o||!0===i);const a=_o(e,"i"),s=_o(e,"iCs");void 0===a&&void 0===s||(n.italic=!0===a||!0===s);const l=_o(e,"strike");void 0!==l&&(n.strike=l);const c=_o(e,"dstrike");void 0!==c&&(n.doubleStrike=c);const u=_o(e,"smallCaps");void 0!==u&&(n.smallCaps=u);const d=_o(e,"caps");void 0!==d&&(n.allCaps=d);const f=_o(e,"vanish");void 0!==f&&(n.hidden=f);const p=_o(e,"noProof");void 0!==p&&(n.noProof=p);const h=_o(e,"webHidden");void 0!==h&&(n.webHidden=h);const m=_o(e,"specVanish");void 0!==m&&(n.specVanish=m);const g=_o(e,"rtl");void 0!==g&&(n.rtl=g);const v=_o(e,"cs");void 0!==v&&(n.complexScript=v);const w=_o(e,"snapToGrid");void 0!==w&&(n.snapToGrid=w);const b=_o(e,"outline");void 0!==b&&(n.outline=b);const y=_o(e,"shadow");void 0!==y&&(n.shadow=y);const x=_o(e,"emboss");void 0!==x&&(n.emboss=x);const S=_o(e,"imprint");void 0!==S&&(n.imprint=S);const N=xo(bo(e,fo,"em"),"val");"dot"!==N&&"comma"!==N&&"circle"!==N&&"underDot"!==N&&"none"!==N||(n.emphasisMark=N);const E=xo(bo(e,fo,"fitText"),"val");if(E){const e=Lo(E);void 0!==e&&e>0&&(n.fitText=e)}const _=ei(bo(e,fo,"bdr"));_&&(n.textBorder=_);const k=xo(bo(e,fo,"effect"),"val");k&&(n.textEffect=k);const T=xo(bo(e,fo,"w"),"val");if(T){const e=Number(T);Number.isFinite(e)&&e>0&&(n.characterScale=e)}const I=xo(bo(e,fo,"spacing"),"val");if(I){const e=Lo(I);void 0!==e&&(n.characterSpacing=e)}const C=xo(bo(e,fo,"position"),"val");if(C){const e=Number(C);Number.isFinite(e)&&(n.baselineShift=e/2)}const A=xo(bo(e,fo,"kern"),"val");if(A){const e=Number(A);Number.isFinite(e)&&e>=0&&(n.kerningThreshold=e/2)}const R=xo(bo(e,ho,"ligatures"),"val");"none"!==R&&"standard"!==R&&"contextual"!==R&&"historical"!==R&&"standardContextual"!==R||(n.ligatures=R);const $=xo(bo(e,ho,"numSpacing"),"val");"proportional"!==$&&"tabular"!==$||(n.numberSpacing=$);const D=xo(bo(e,ho,"numForm"),"val");"lining"!==D&&"oldStyle"!==D||(n.numberForm=D);const P=xo(bo(e,ho,"stylisticSets"),"val");if(P){const e=/^[0-9a-fA-F]+$/.test(P)&&P.length>2?Number.parseInt(P,16):Number(P);if(Number.isFinite(e)&&e>0)for(let t=1;t<=20;t+=1)if(e&1<<t-1){n.stylisticSet=t;break}}const O=xo(bo(e,ho,"cntxtAlts"),"val");null===O?bo(e,ho,"cntxtAlts")&&(n.contextualAlternates=!0):Eo(O)&&(n.contextualAlternates=!0);const L=bo(e,fo,"u"),M=xo(L,"val");if(L&&"none"!==M){n.underline=!0,M&&"single"!==M&&(n.underlineStyle=M);const e=xo(L,"color");e&&"auto"!==e&&(n.underlineColor=Mo(e))}const F=xo(bo(e,fo,"vertAlign"),"val");"superscript"===F&&(n.superscript=!0),"subscript"===F&&(n.subscript=!0);const B=bo(e,fo,"rFonts"),U=xo(B,"ascii")??xo(B,"hAnsi")??xo(B,"cs")??xo(B,"eastAsia")??function(e,t){const n=xo(e,"asciiTheme")??xo(e,"hAnsiTheme")??xo(e,"eastAsiaTheme")??xo(e,"cstheme");if(!n)return;const r="majorAscii"===n||"majorHAnsi"===n?"majorHAnsi":"minorAscii"===n||"minorHAnsi"===n?"minorHAnsi":"majorEastAsia"===n?"majorEastAsia":"minorEastAsia"===n?"minorEastAsia":"majorBidi"===n?"majorBidi":"minorBidi"===n?"minorBidi":void 0;return r?t[r]:void 0}(B,t.fonts);U&&(n.fontFamily=function(e){const t=null==e?void 0:e.trim();if(!t)return;return`${/[\s,]/.test(t)?`"${t.replace(/"/g,'\\"')}"`:t}, ${/times/i.test(t)?"serif":"sans-serif"}`}(U));const H=xo(bo(e,fo,"sz")??bo(e,fo,"szCs"),"val");if(H){const e=function(e){const t=e?Number(e):Number.NaN;return Number.isFinite(t)?Po(t/2/72*hr,4):null}(H);null!==e&&(n.fontSize=e)}const z=bo(e,fo,"color"),j=xo(z,"val");if(j&&"auto"!==j)n.color=Mo(j);else if("auto"!==j){const e=jo(z,t.colors);e&&(n.color=e)}const q=yo(e,"textFill");if(q){const e=ai(q);e&&(n.textFill=e)}const W=yo(e,"textOutline");if(W){const e=W.getAttributeNS(ho,"w"),t=null!==e?Number(e):NaN,r={widthPt:Number.isFinite(t)&&t>0?t/vr:.5},o=ai(W);o&&(r.fill=o,"solid"===o.type?r.color=o.color:"gradient"===o.type&&o.stops[0]&&(r.color=o.stops[0].color)),n.textOutline=r}const G=yo(e,"shadow");if(G){const e=function(e){const t=si(e);if(!t)return null;const n=e.getAttributeNS(ho,"blurRad"),r=e.getAttributeNS(ho,"dist"),o=e.getAttributeNS(ho,"dir"),i=n?Number(n)/vr:0,a=r?Number(r)/vr:0,s=o?Number(o)/yr:0;return{color:t.color,...void 0!==t.alpha?{alpha:t.alpha}:{},blurPt:i,distPt:a,dirDeg:s}}(G);e&&(n.textShadow=e)}const V=yo(e,"glow");if(V){const e=function(e){const t=si(e);if(!t)return null;const n=e.getAttributeNS(ho,"rad"),r=n?Number(n)/vr:0;return{color:t.color,...void 0!==t.alpha?{alpha:t.alpha}:{},radiusPt:r}}(V);e&&(n.glow=e)}const X=yo(e,"reflection");X&&(n.reflection=function(e){const t=e.getAttributeNS(ho,"blurRad"),n=e.getAttributeNS(ho,"stA"),r=e.getAttributeNS(ho,"stPos"),o=e.getAttributeNS(ho,"endA"),i=e.getAttributeNS(ho,"endPos"),a=e.getAttributeNS(ho,"dist");return{blurPt:t?Number(t)/vr:0,startAlpha:null!==n?Number(n)/br:.55,startPos:null!==r?Number(r)/br:0,endAlpha:null!==o?Number(o)/br:0,endPos:null!==i?Number(i)/br:1,distPt:a?Number(a)/vr:0}}(X));const Z=yo(e,"scene3d");Z&&(n.scene3dXml=(new or).serializeToString(Z));const Y=yo(e,"props3d");Y&&(n.props3dXml=(new or).serializeToString(Y));const Q=xo(bo(e,fo,"highlight"),"val");Q&&"none"!==Q&&(n.highlight=Q);const K=ii(bo(e,fo,"shd"),t.colors);K&&(n.shading=K);const J=bo(e,fo,"lang");if(J){const e=xo(J,"val"),t=xo(J,"eastAsia"),r=xo(J,"bidi"),o={};e&&(o.value=e),t&&(o.eastAsia=t),r&&(o.bidi=r),Object.keys(o).length>0&&(n.language=o)}return ri(n)}const ui=[["firstRow","firstRow"],["lastRow","lastRow"],["firstColumn","firstCol"],["lastColumn","lastCol"],["oddVBand","band1Vert"],["evenVBand","band2Vert"],["oddHBand","band1Horz"],["evenHBand","band2Horz"],["firstRowFirstColumn","nwCell"],["firstRowLastColumn","neCell"],["lastRowFirstColumn","swCell"],["lastRowLastColumn","seCell"]],di=[["top","borderTop"],["left","borderLeft"],["bottom","borderBottom"],["right","borderRight"],["insideH","borderInsideH"],["insideV","borderInsideV"]];function fi(e){if(!e)return;const t=xo(e,"type"),n=xo(e,"w");if("auto"===t)return"auto";if("pct"===t){if(!n)return;const e=n.trim().endsWith("%")?Number.parseFloat(n):Number(n)/50;return Number.isFinite(e)?`${Po(e,4)}%`:void 0}return Lo(n)}function pi(e,t){const n=xo(bo(e,fo,t),"val"),r=n?Number(n):Number.NaN;return Number.isFinite(r)&&r>0?Math.floor(r):void 0}function hi(e){const t=bo(e,fo,"cnfStyle");if(!t)return;const n=xo(t,"val")??"",r={};return ui.forEach(([e,o],i)=>{const a=xo(t,e);"1"===a||"true"===a||"on"===a?r[o]=!0:"0"===a||"false"===a||"off"===a?r[o]=!1:12===n.length&&"1"===n[i]&&(r[o]=!0)}),Object.keys(r).length>0?r:void 0}function mi(e){const t=xo(e,"date"),n=t?Date.parse(t):Number.NaN;return{id:xo(e,"id")??`revision:${e.localName}`,author:xo(e,"author")??"Unknown",date:Number.isFinite(n)?n:0}}function gi(e){if(!e)return;const t=t=>Lo(xo(bo(e,fo,t),"w")),n={},r=t("top"),o=t("right"),i=t("bottom"),a=t("left"),s=t("start"),l=t("end");return void 0!==r&&(n.top=r),void 0!==o&&(n.right=o),void 0!==i&&(n.bottom=i),void 0!==a&&(n.left=a),void 0!==s&&(n.start=s),void 0!==l&&(n.end=l),Object.keys(n).length>0?n:void 0}function vi(e,t){const n={};t&&(n.styleId=t);const r=xo(bo(e,fo,"tblCaption"),"val");r&&(n.altTitle=r);const o=xo(bo(e,fo,"tblDescription"),"val");o&&(n.altDescription=o);const i=fi(bo(e,fo,"tblW"));void 0!==i&&(n.width=i);const a=fi(bo(e,fo,"tblInd"));void 0!==a&&(n.indentLeft=a);const s=xo(bo(e,fo,"jc"),"val");"left"===s||"start"===s?n.align="left":"center"===s?n.align="center":"right"!==s&&"end"!==s||(n.align="right");const l=function(e){const t=xo(bo(e,fo,"tblLayout"),"type");return"fixed"===t||"autofit"===t?t:void 0}(e);l&&(n.layout=l);const c=fi(bo(e,fo,"tblCellSpacing"));void 0!==c&&(n.cellSpacing=c);const u=(d=bo(e,fo,"tblBorders"))?{...ti(d),borderInsideH:ei(bo(d,fo,"insideH")),borderInsideV:ei(bo(d,fo,"insideV"))}:{};var d;Object.keys(u).length>0&&(n.borders=u);const f=gi(bo(e,fo,"tblCellMar"));f&&(n.defaultCellMargins=f);const p=e?_o(e,"bidiVisual"):void 0;void 0!==p&&(n.bidiVisual=p);const h=xo(bo(e,fo,"tblOverlap"),"val");"overlap"!==h&&"never"!==h||(n.tblOverlap=h);const m=function(e){const t=bo(e,fo,"tblpPr");if(!t||!t.attributes||0===t.attributes.length)return;const n={};for(let l=0;l<t.attributes.length;l+=1){const e=t.attributes.item(l);(null==e?void 0:e.namespaceURI)!==fo&&"w"!==(null==e?void 0:e.prefix)||(n[e.localName||e.name.replace(/^w:/,"")]=e.value)}const r=e=>Lo(n[e]??null),o="margin"===n.horzAnchor||"page"===n.horzAnchor||"text"===n.horzAnchor?n.horzAnchor:void 0,i="margin"===n.vertAnchor||"page"===n.vertAnchor||"text"===n.vertAnchor?n.vertAnchor:void 0,a="left"===n.tblpXSpec||"center"===n.tblpXSpec||"right"===n.tblpXSpec||"inside"===n.tblpXSpec||"outside"===n.tblpXSpec?n.tblpXSpec:void 0,s="top"===n.tblpYSpec||"center"===n.tblpYSpec||"bottom"===n.tblpYSpec||"inside"===n.tblpYSpec||"outside"===n.tblpYSpec?n.tblpYSpec:void 0;return{...o?{horizontalAnchor:o}:{},...i?{verticalAnchor:i}:{},...void 0!==r("tblpX")?{x:r("tblpX")}:{},...void 0!==r("tblpY")?{y:r("tblpY")}:{},...a?{xAlign:a}:{},...s?{yAlign:s}:{},...void 0!==r("topFromText")?{distanceTop:r("topFromText")}:{},...void 0!==r("rightFromText")?{distanceRight:r("rightFromText")}:{},...void 0!==r("bottomFromText")?{distanceBottom:r("bottomFromText")}:{},...void 0!==r("leftFromText")?{distanceLeft:r("leftFromText")}:{}}}(e);m&&(n.floating=m);const g=pi(e,"tblStyleRowBandSize");void 0!==g&&(n.rowBandSize=g);const v=pi(e,"tblStyleColBandSize");void 0!==v&&(n.colBandSize=v);const w=bo(e,fo,"tblLook");if(w){const e=xo(w,"val"),t=e?Number.parseInt(e,16):Number.NaN,r=(e,n,r)=>{const o=xo(w,e);return null!==o&&""!==o?"1"===o||"true"===o||"on"===o:Number.isFinite(t)?0!==(t&n):r};n.tblLook={firstRow:r("firstRow",32,!0),lastRow:r("lastRow",64,!1),firstCol:r("firstColumn",128,!0),lastCol:r("lastColumn",256,!1),noHBand:r("noHBand",512,!1),noVBand:r("noVBand",1024,!1)}}const b=bo(e,fo,"tblPrChange"),y=bo(b,fo,"tblPr");return b&&y&&(n.revision={...mi(b),type:"property",previous:vi(y)??{}}),ri(n)}function wi(e){if(!e)return;const t={},n=_o(e,"tblHeader");void 0!==n&&(t.isHeader=n);const r=pi(e,"gridBefore");void 0!==r&&(t.gridBefore=r);const o=pi(e,"gridAfter");void 0!==o&&(t.gridAfter=o);const i=fi(bo(e,fo,"wBefore"));void 0!==i&&(t.widthBefore=i);const a=fi(bo(e,fo,"wAfter"));void 0!==a&&(t.widthAfter=a);const s=bo(e,fo,"trHeight"),l=Lo(xo(s,"val"));void 0!==l&&(t.height=l);const c=xo(s,"hRule");"auto"!==c&&"exact"!==c&&"atLeast"!==c||(t.heightRule=c);const u=fi(bo(e,fo,"tblCellSpacing"));void 0!==u&&(t.cellSpacing=u);const d=xo(bo(e,fo,"jc"),"val");"left"===d||"start"===d?t.align="left":"center"===d?t.align="center":"right"!==d&&"end"!==d||(t.align="right");const f=_o(e,"cantSplit");void 0!==f&&(t.cantSplit=f);const p=_o(e,"hidden");void 0!==p&&(t.hidden=p);const h=bo(e,fo,"trPrChange"),m=bo(h,fo,"trPr");h&&m&&(t.propertyRevision={...mi(h),type:"property",previous:wi(m)??{}});const g=bo(e,fo,"ins"),v=bo(e,fo,"del"),w=g??v;return w&&(t.revision={...mi(w),type:g?"insert":"delete"}),ri(t)}function bi(e){if(!e)return 1;const t=xo(bo(e,fo,"gridSpan"),"val"),n=t?Number(t):1;return Number.isFinite(n)&&n>1?Math.floor(n):1}function yi(e){if(!e)return;const t=bo(e,fo,"vMerge");if(!t)return;return"restart"===xo(t,"val")?"restart":"continue"}function xi(e){if(!e)return;const t=bo(e,fo,"hMerge");if(!t)return;return"restart"===xo(t,"val")?"restart":"continue"}function Si(e,t,n){if(!e)return;const r={},o=ii(bo(e,fo,"shd"),n);o&&(r.shading=o);const i=bo(e,fo,"tcW"),a=xo(i,"type"),s=xo(i,"w");if("dxa"===a){const e=Lo(s);void 0!==e&&(r.width=e)}else if("pct"===a&&s){const e=Number(s);Number.isFinite(e)&&(r.width=`${Po(e/50,4)}%`)}const l=gi(bo(e,fo,"tcMar"));l&&(void 0!==l.top&&(r.paddingTop=l.top),void 0!==l.bottom&&(r.paddingBottom=l.bottom),void 0!==l.left&&(r.paddingLeft=l.left),void 0!==l.right&&(r.paddingRight=l.right),void 0!==l.start&&(r.paddingStart=l.start),void 0!==l.end&&(r.paddingEnd=l.end));const c=function(e){if(!e)return;const t=xo(bo(e,fo,"vAlign"),"val");return"top"===t||"bottom"===t?t:"center"===t?"middle":void 0}(e);c&&(r.verticalAlign=c);const u=wo(xo(bo(e,fo,"textDirection"),"val"));u&&(r.textDirection=u);const d=_o(e,"noWrap");void 0!==d&&(r.noWrap=d);const f=_o(e,"tcFitText");void 0!==f&&(r.fitText=f);const p=_o(e,"hideMark");void 0!==p&&(r.hideMark=p);const h=xo(bo(e,fo,"headers"),"val");h&&(r.headers=h);const m=bo(e,fo,"tcPrChange"),g=bo(m,fo,"tcPr");m&&g&&(r.propertyRevision={...mi(m),type:"property",previous:Si(g,void 0,n)??{}});const v=bo(e,fo,"cellIns"),w=bo(e,fo,"cellDel"),b=bo(e,fo,"cellMerge"),y=v??w??b;if(y){const e=xo(y,"vMergeOrig");r.revision={...mi(y),type:v?"insert":w?"delete":"merge",...b&&e?{previous:{vMerge:"restart"===e?"restart":"continue"}}:{}}}for(const[x,S]of Object.entries(function(e){return e?ti(bo(e,fo,"tcBorders")):{}}(e)))S&&(r[x]=S);return ri(r)}function Ni(e){const t=bo(e,fo,"trPr");return!!t&&!0===_o(t,"tblHeader")}function Ei(e){return void 0!==(null==e?void 0:e.lineHeight)?e:{...e??{},lineHeight:1.1}}function _i(e,t){if(!e)return;const n={},r=ko(e,"pStyle");r&&(n.styleId=r);const o=xo(bo(e,fo,"jc"),"val");"left"===o||"start"===o||"center"===o||"right"===o||"end"===o||"justify"===o?n.align="start"===o?"left":"end"===o?"right":o:"both"!==o&&"distribute"!==o||(n.align="justify");const i=bo(e,fo,"spacing"),a=xo(i,"before"),s=xo(i,"after"),l=xo(i,"line"),c=xo(i,"lineRule");a&&(n.spacingBefore=Oo(a,0)),s&&(n.spacingAfter=Oo(s,0)),l&&("exact"===c||"atLeast"===c?(n.lineHeight=Po(Number(l)/1440*96,4),n.lineRule=c):n.lineHeight=Number(l)/240);const u=_o(e,"contextualSpacing");void 0!==u&&(n.contextualSpacing=u);const d=_o(e,"snapToGrid");void 0!==d&&(n.snapToGrid=d);const f=bo(e,fo,"ind"),p=xo(f,"start")??xo(f,"left"),h=xo(f,"end")??xo(f,"right"),m=xo(f,"firstLine"),g=xo(f,"hanging");p&&(n.indentLeft=Oo(p,0)),h&&(n.indentRight=Oo(h,0)),g?(n.indentHanging=Oo(g,0),n.indentFirstLine=void 0):m&&(n.indentFirstLine=Oo(m,0));const v=function(e){const t=bo(e,fo,"tabs");if(!t)return[];const n=[];for(const r of go(t,fo,"tab")){const e=Lo(xo(r,"pos"));if(void 0===e)continue;const t=xo(r,"val"),o="center"===t||"right"===t||"decimal"===t||"bar"===t||"clear"===t?t:"left",i=xo(r,"leader"),a="dot"===i||"hyphen"===i||"underscore"===i||"heavy"===i||"middleDot"===i?i:"none"===i?"none":void 0;n.push({position:e,type:o,...void 0!==a?{leader:a}:{}})}return n}(e);v.length>0&&(n.tabs=v);const w=_o(e,"pageBreakBefore");void 0!==w&&(n.pageBreakBefore=w);const b=_o(e,"keepNext");void 0!==b&&(n.keepWithNext=b);const y=_o(e,"keepLines");void 0!==y&&(n.keepLinesTogether=y);const x=_o(e,"widowControl");void 0!==x&&(n.widowControl=x);const S=_o(e,"mirrorIndents");void 0!==S&&(n.mirrorIndents=S);const N=bo(e,fo,"pBdr");if(N){const{borderTop:e,borderRight:t,borderBottom:r,borderLeft:o,borderBetween:i,borderBar:a}=ti(N);e&&(n.borderTop=e),t&&(n.borderRight=t),r&&(n.borderBottom=r),o&&(n.borderLeft=o),i&&(n.borderBetween=i),a&&(n.borderBar=a)}const E=ii(bo(e,fo,"shd"),t);E&&(n.shading=E);const _=wo(xo(bo(e,fo,"textDirection"),"val"));_&&(n.textDirection=_);const k=xo(bo(e,fo,"outlineLvl"),"val");if(void 0!==k){const e=Number(k);Number.isFinite(e)&&e>=0&&e<=8&&(n.outlineLevel=e)}const T=_o(e,"suppressLineNumbers");void 0!==T&&(n.suppressLineNumbers=T);const I=_o(e,"suppressAutoHyphens");void 0!==I&&(n.suppressAutoHyphens=I);const C=_o(e,"bidi");void 0!==C&&(n.bidi=C);const A=_o(e,"kinsoku");void 0!==A&&(n.kinsoku=A);const R=_o(e,"wordWrap");void 0!==R&&(n.wordWrap=R);const $=_o(e,"overflowPunct");void 0!==$&&(n.overflowPunct=$);const D=_o(e,"topLinePunct");void 0!==D&&(n.topLinePunct=D);const P=_o(e,"autoSpaceDE");void 0!==P&&(n.autoSpaceDE=P);const O=_o(e,"autoSpaceDN");void 0!==O&&(n.autoSpaceDN=O);const L=_o(e,"adjustRightInd");void 0!==L&&(n.adjustRightInd=L);const M=xo(bo(e,fo,"textAlignment"),"val");"auto"!==M&&"top"!==M&&"center"!==M&&"baseline"!==M&&"bottom"!==M||(n.textAlignment=M);const F=xo(bo(e,fo,"textboxTightWrap"),"val");"none"!==F&&"allLines"!==F&&"firstLineOnly"!==F&&"firstLastLine"!==F||(n.textboxTightWrap=F);const B=xo(bo(e,fo,"divId"),"val");if(null!==B){const e=Number(B);Number.isFinite(e)&&e>=0&&(n.divId=Math.floor(e))}const U=hi(e);U&&(n.conditionalStyle=U);const H=bo(e,fo,"framePr");if(H){const e=xo(H,"dropCap");e&&"none"!==e||(n.framePrXml=(new or).serializeToString(H))}return ri(n)}function ki(e){return"1"===e||"true"===e||"on"===e}function Ti(e){const t=bo(e,fo,"cols");if(!t)return;const n=Number.parseInt(xo(t,"num")??"1",10);if(!Number.isFinite(n)||n<=1)return;const r=Oo(xo(t,"space"),0),o=xo(t,"sep"),i=xo(t,"equalWidth"),a=go(t,fo,"col").map(e=>({width:Oo(xo(e,"w"),0),space:Oo(xo(e,"space"),r)})),s=null==i||ki(i);return{count:n,space:r,...ki(o)?{separator:!0}:{},...s?{}:{equalWidth:!1},...!s&&a.length>0?{columns:a}:{}}}function Ii(e){const t=bo(e,fo,"pgSz"),n=bo(e,fo,"pgMar"),r=Ti(e);let o;if(t||n||r){const e=Oo(xo(t,"w"),816),i=Oo(xo(t,"h"),1056),a=xo(t,"orient");o={width:e,height:i,orientation:"landscape"===a?"landscape":"portrait"===a?"portrait":e>i?"landscape":"portrait",margins:{top:Oo(xo(n,"top"),96),right:Oo(xo(n,"right"),96),bottom:Oo(xo(n,"bottom"),96),left:Oo(xo(n,"left"),96),header:Oo(xo(n,"header"),48),footer:Oo(xo(n,"footer"),48),gutter:Oo(xo(n,"gutter"),0)},...r?{columns:r}:{}}}const i=t=>{const n={};for(const r of go(e,fo,t)){const e=xo(r,"type")??"default";if("default"!==e&&"first"!==e&&"even"!==e)continue;const t=r.getAttribute("r:id")??r.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??null;t&&(n[e]=t)}return n},a=i("headerReference"),s=i("footerReference"),l=bo(e,fo,"docGrid"),c=xo(l,"type"),u=Oo(xo(l,"linePitch"),Number.NaN),d=xo(bo(e,fo,"type"),"val"),f="continuous"===d||"nextPage"===d||"evenPage"===d||"oddPage"===d||"nextColumn"===d?d:void 0,p=bo(e,fo,"pgNumType");let h;if(p){const e=xo(p,"start"),t=null!==e?Number.parseInt(e,10):void 0,n=xo(p,"fmt")??void 0,r=xo(p,"chapStyle")??void 0,o=xo(p,"chapSep")??void 0;(void 0!==t&&Number.isFinite(t)||n||r||o)&&(h={...void 0!==t&&Number.isFinite(t)?{start:t}:{},...n?{format:n}:{},...r?{chapterStyle:r}:{},...o?{chapterSeparator:o}:{}})}const m=xo(bo(e,fo,"vAlign"),"val"),g="center"===m||"both"===m||"bottom"===m?m:void 0,v=_o(e,"bidi");return{pageSettings:o,headerRIds:a,footerRIds:s,docGridLinePitchPx:Number.isFinite(u)&&u>0?u:void 0,docGridMode:"lines"===c||"linesAndChars"===c?"explicit":void 0,docGridType:c,breakType:f,pageNumbering:h,verticalAlignment:g,bidi:v}}function Ci(e){if(!e)return;const t=bo(e,fo,"sectPr");if(!t)return;const n=bo(t,fo,"pgSz"),r=bo(t,fo,"pgMar"),o=Ti(t);if(!n&&!r&&!o)return;const i=Oo(xo(n,"w"),816),a=Oo(xo(n,"h"),1056),s=xo(n,"orient");return{width:i,height:a,orientation:"landscape"===s?"landscape":"portrait"===s?"portrait":i>a?"landscape":"portrait",margins:{top:Oo(xo(r,"top"),96),right:Oo(xo(r,"right"),96),bottom:Oo(xo(r,"bottom"),96),left:Oo(xo(r,"left"),96),header:Oo(xo(r,"header"),48),footer:Oo(xo(r,"footer"),48),gutter:Oo(xo(r,"gutter"),0)},...o?{columns:o}:{}}}function Ai(e,t,n,r,o){var i,a,s;if(t&&n)for(const l of e){if("paragraph"===l.type){const e=(null==(i=l.style)?void 0:i.styleId)&&/heading/i.test(l.style.styleId);void 0!==(null==(a=l.style)?void 0:a.lineHeight)||!1===(null==(s=l.style)?void 0:s.snapToGrid)||e||(l.style={...l.style??{},lineGridPitch:t,lineGridType:r});continue}if(o.adjustLineHeightInTable)for(const e of l.rows)for(const i of e.cells)Ai(i.blocks,t,n,r,o)}}const Ri="http://schemas.openxmlformats.org/officeDocument/2006/math",$i=new or;function Di(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)!==o.ELEMENT_NODE||o.namespaceURI!==Ri||t&&o.localName!==t||n.push(o)}return n}function Pi(e,t){return Di(e,t)[0]}function Oi(e,t){return(null==e?void 0:e.getAttributeNS(Ri,t))??(null==e?void 0:e.getAttribute(`m:${t}`))??(null==e?void 0:e.getAttribute(t))??void 0}function Li(e){return e?Di(e).map(Mi):[]}function Mi(e){switch(e.localName){case"r":return function(e){var t;const n=(null==(t=Pi(e,"t"))?void 0:t.textContent)??"",r=Pi(e,"rPr"),o=r?{...Pi(r,"sty")?{script:Oi(Pi(r,"sty"),"val")}:{},...Pi(r,"nor")?{normalText:!0}:{},...Pi(r,"b")?{bold:"0"!==Oi(Pi(r,"b"),"val")}:{},...Pi(r,"i")?{italic:"0"!==Oi(Pi(r,"i"),"val")}:{}}:void 0;return{kind:"text",value:n,...o&&Object.keys(o).length>0?{style:o}:{}}}(e);case"f":return{kind:"fraction",numerator:Li(Pi(e,"num")),denominator:Li(Pi(e,"den"))};case"rad":return{kind:"radical",radicand:Li(Pi(e,"e")),...Pi(e,"deg")?{degree:Li(Pi(e,"deg"))}:{}};case"sSub":case"sSup":case"sSubSup":return function(e,t){const n=Li(Pi(e,"e")),r=Li(Pi(e,"sub")),o=Li(Pi(e,"sup"));return{kind:t,base:n,...r.length>0?{subscript:r}:{},...o.length>0?{superscript:o}:{}}}(e,"script");case"d":{const t=Pi(e,"dPr");return{kind:"delimiter",children:Di(e,"e").map(Li),...Oi(Pi(t,"begChr"),"val")?{begin:Oi(Pi(t,"begChr"),"val")}:{},...Oi(Pi(t,"endChr"),"val")?{end:Oi(Pi(t,"endChr"),"val")}:{},...Oi(Pi(t,"sepChr"),"val")?{separator:Oi(Pi(t,"sepChr"),"val")}:{},grow:"0"!==Oi(Pi(t,"grow"),"val")}}case"acc":{const t=Pi(e,"accPr");return{kind:"accent",accent:Oi(Pi(t,"chr"),"val")??"¯",children:Li(Pi(e,"e"))}}case"nary":{const t=Pi(e,"naryPr");return{kind:"nary",operator:Oi(Pi(t,"chr"),"val")??"∑",children:Li(Pi(e,"e")),...Di(e,"sub").length>0?{subscript:Li(Pi(e,"sub"))}:{},...Di(e,"sup").length>0?{superscript:Li(Pi(e,"sup"))}:{},grow:"0"!==Oi(Pi(t,"grow"),"val")}}case"limLow":return{kind:"limit",operator:"low",base:Li(Pi(e,"e")),limit:Li(Pi(e,"lim"))};case"limUpp":return{kind:"limit",operator:"upper",base:Li(Pi(e,"e")),limit:Li(Pi(e,"lim"))};case"m":return{kind:"matrix",rows:Di(e,"mr").map(e=>Di(e,"e").map(Li))};case"box":case"borderBox":return{kind:"box",children:Li(Pi(e,"e")),border:!0};case"phant":return{kind:"box",children:Li(Pi(e,"e")),hidden:!0};case"groupChr":{const t=Pi(e,"groupChrPr");return{kind:"accent",accent:Oi(Pi(t,"chr"),"val")??"¯",children:Li(Pi(e,"e"))}}case"func":return{kind:"group",children:[...Li(Pi(e,"fName")),...Li(Pi(e,"e"))]};default:return{kind:"raw",xml:$i.serializeToString(e),fallbackText:e.textContent??""}}}function Fi(e){const t="oMathPara"===e.localName?Pi(e,"oMath"):e;return{version:1,children:t?Di(t).map(Mi):[],display:"oMathPara"===e.localName,sourceXml:$i.serializeToString(e)}}const Bi=new Set(Object.keys({solid:[],dot:[.75,2.25],sysDot:[.75,.75],dash:[3.75,2.25],sysDash:[2.25,2.25],dashDot:[3.75,2.25,.75,2.25],lgDash:[6,2.25],lgDashDot:[6,2.25,.75,2.25],lgDashDotDot:[6,2.25,.75,2.25,.75,2.25]}));function Ui(e){return e&&Bi.has(e)?e:void 0}const Hi=/^[0-9a-fA-F]{6}$/;function zi(e){return e.trim().replace(/^#/,"")}function ji(e){if(!e)return null;const t=zi(e);return Hi.test(t)?t.toUpperCase():null}function qi(e){const t=Wi(e);return void 0===t?void 0:Math.round(t/gr)}function Wi(e){if(null==e||""===e)return;const t=parseInt(e,10);return Number.isFinite(t)?t:void 0}function Gi(e){const t=null==e?void 0:e.trim();if(!t)return null;const n=t.match(/^(-?\d+(?:\.\d+)?)(pt|px|in|cm|mm|pc)?$/i);if(!n)return null;const r=Number(n[1]);if(!Number.isFinite(r)||r<=0)return null;switch((n[2]??"px").toLowerCase()){case"pt":return Math.round(r*mr);case"in":return Math.round(r*hr);case"cm":return Math.round(r/2.54*hr);case"mm":return Math.round(r/25.4*hr);case"pc":return Math.round(12*r*mr);default:return Math.round(r)}}function Vi(e){const t=ji(e);return t?`#${t}`:void 0}const Xi={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"},Zi={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/bmp":"bmp","image/tiff":"tif","image/svg+xml":"svg","image/x-emf":"emf","image/x-wmf":"wmf"};function Yi(e){return Zi[e.toLowerCase()]??null}async function Qi(e,t,n){let r=n;r.startsWith("/")&&(r=r.slice(1)),r.startsWith("word/")||(r="word/"+n);const o=e.file(r),i=function(e){var t;const n=null==(t=e.split(".").pop())?void 0:t.toLowerCase();return n?Xi[n]??null:null}(n)??"image/png",a=await(null==o?void 0:o.async("base64"));if(a)return function(e,t,n){const r=e.byPath.get(t);if(r)return`${Ar}${r}`;const o=`img-${e.nextId}`;return e.nextId+=1,e.assets[o]={id:o,url:n},e.byPath.set(t,o),`${Ar}${o}`}(t,r,`data:${i};base64,${a}`)}function Ki(e){for(let t=0;t<e.childNodes.length;t+=1){const n=e.childNodes[t];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const r=n;if("inline"===r.localName||"anchor"===r.localName)return{element:r,kind:r.localName}}}function Ji(e){return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function ea(e,t){var n,r,o,i;const a=So(e,t);if(!a)return;const s=null==(r=null==(n=So(a,"align"))?void 0:n.textContent)?void 0:r.trim(),l=Wi(null==(i=null==(o=So(a,"posOffset"))?void 0:o.textContent)?void 0:i.trim()),c={relativeFrom:a.getAttribute("relativeFrom")??void 0,...s?{align:s}:{},...void 0!==l?{offset:l}:{}};return void 0!==c.relativeFrom||void 0!==c.align||void 0!==c.offset?c:void 0}function ta(e){const t=ea(e,"positionH"),n=ea(e,"positionV"),r=function(e){return So(e,"wrapSquare")?"square":So(e,"wrapTight")?"tight":So(e,"wrapThrough")?"through":So(e,"wrapTopAndBottom")?"topAndBottom":So(e,"wrapNone")?"none":void 0}(e),o=Wi(e.getAttribute("distT")),i=Wi(e.getAttribute("distB")),a=Wi(e.getAttribute("distL")),s=Wi(e.getAttribute("distR")),l=Ji(e.getAttribute("simplePos")),c=Wi(e.getAttribute("relativeHeight")),u=Ji(e.getAttribute("behindDoc")),d=Ji(e.getAttribute("locked")),f=Ji(e.getAttribute("layoutInCell")),p=Ji(e.getAttribute("allowOverlap"));return{type:"floating",...void 0!==o?{distT:o}:{},...void 0!==i?{distB:i}:{},...void 0!==a?{distL:a}:{},...void 0!==s?{distR:s}:{},...void 0!==l?{simplePos:l}:{},...void 0!==c?{relativeHeight:c}:{},...void 0!==u?{behindDoc:u}:{},...void 0!==d?{locked:d}:{},...void 0!==f?{layoutInCell:f}:{},...void 0!==p?{allowOverlap:p}:{},...t?{positionH:t}:{},...n?{positionV:n}:{},...r?{wrap:r}:{}}}async function na(e,t,n,r){const o=So(e,"blip");if(!o)return{text:"",image:void 0};const{embed:i,link:a}=function(e){const t={};for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];r&&("embed"===r.localName||"r:embed"===r.name?t.embed=r.value:"link"!==r.localName&&"r:link"!==r.name||(t.link=r.value))}return t}(o),s=Ki(e),l=(null==s?void 0:s.element)??e,c=So(l,"extent"),u=So(l,"docPr");let d=300,f=300;if(c){const e=c.getAttribute("cx"),t=c.getAttribute("cy");e&&(d=Math.round(parseInt(e,10)/gr)),t&&(f=Math.round(parseInt(t,10)/gr))}const p=u?xo(u,"descr")??xo(u,"title"):null,h=function(e){const t=So(e,"srcRect");if(!t)return;const n=e=>{const n=t.getAttribute(e);if(null===n||""===n)return;const r=parseInt(n,10);return Number.isFinite(r)&&0!==r?r/br:void 0},r={left:n("l"),top:n("t"),right:n("r"),bottom:n("b")};return void 0!==r.left||void 0!==r.top||void 0!==r.right||void 0!==r.bottom?r:void 0}(e),m=function(e){const t=So(e,"pic"),n=t&&So(t,"spPr");if(!n)return;let r=null;for(let l=0;l<n.childNodes.length;l+=1){const e=n.childNodes[l];if(1!==(null==e?void 0:e.nodeType))continue;const t=e;if("prstGeom"===t.localName){r=t;break}}const o=null==r?void 0:r.getAttribute("prst");if(!r||!o||"rect"===o)return;const i={},a=Array.from(r.childNodes).find(e=>1===(null==e?void 0:e.nodeType)&&"avLst"===e.localName);if(a)for(let l=0;l<a.childNodes.length;l+=1){const e=a.childNodes[l];if(1!==(null==e?void 0:e.nodeType)||"gd"!==e.localName)continue;const t=e,n=t.getAttribute("name"),r=(t.getAttribute("fmla")??"").match(/(-?\d+(?:\.\d+)?)\s*$/);n&&r&&(i[n]=Number(r[1]))}const s={preset:o,rawXml:(new or).serializeToString(r)};return Object.keys(i).length>0&&(s.adjustments=i),s}(e),g=function(e){if(So(e,"tile"))return"tile"}(e),v=function(e){var t,n;const r=So(e,"pic"),o=r&&So(r,"spPr");if(o)for(let i=0;i<o.childNodes.length;i+=1){const e=o.childNodes[i];if(1!==(null==e?void 0:e.nodeType))continue;const r=e;if("ln"!==r.localName)continue;const a=Vi(null==(t=So(r,"srgbClr"))?void 0:t.getAttribute("val"));if(!a)return;const s={color:a},l=Wi(r.getAttribute("w"));void 0!==l&&(s.widthPt=Po(l/vr,2));const c=Ui(null==(n=So(r,"prstDash"))?void 0:n.getAttribute("val"));return c&&(s.dash=c),s}}(e),w=function(e){const t=So(e,"xfrm");if(!t)return{};const n={},r=t.getAttribute("rot");if(r){const e=parseInt(r,10);Number.isFinite(e)&&0!==e&&(n.rotation=e/yr)}const o=t.getAttribute("flipH");"1"!==o&&"true"!==o||(n.flipH=!0);const i=t.getAttribute("flipV");return"1"!==i&&"true"!==i||(n.flipV=!0),n}(e),b="anchor"===(null==s?void 0:s.kind)?ta(s.element):void 0,y="anchor"===(null==s?void 0:s.kind)?function(e){const t=So(e,"wrapPolygon");if(!t)return;const n=[];for(let r=0;r<t.childNodes.length;r+=1){const e=t.childNodes[r];if(1!==(null==e?void 0:e.nodeType))continue;const o=e;if("start"!==o.localName&&"lineTo"!==o.localName)continue;const i=Wi(o.getAttribute("x")),a=Wi(o.getAttribute("y"));void 0!==i&&void 0!==a&&n.push({x:i/21600,y:a/21600})}if(n.length>=2){const e=n[0],t=n[n.length-1];Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6&&n.pop()}return n.length>=3?n:void 0}(s.element):void 0,x={width:d,height:f,...null!==p?{alt:p}:{},...h?{crop:h}:{},...m?{cropShape:m,cropFit:"fill"}:{},...g?{fillMode:g}:{},...v?{border:v}:{},...void 0!==w.rotation?{rotation:w.rotation}:{},...w.flipH?{flipH:!0}:{},...w.flipV?{flipV:!0}:{},...b?{floating:b}:{},...y?{wrapPolygon:y}:{}},S=i?n.get(i):void 0,N=a?n.get(a):void 0;if(N&&function(e){return/^[a-z][a-z0-9+.-]*:\/\//i.test(e)||e.startsWith("//")}(N))return{text:"",image:{src:"",linkedSrc:N,...x}};const E=S??N;if(E){const e=await Qi(t,r,E);if(e)return{text:"",image:{src:e,...x}}}return{text:"",image:void 0}}function ra(e){const t=null==e?void 0:e.trim();if(!t)return;if(t.endsWith("%")){const e=Number(t.slice(0,-1));return Number.isFinite(e)&&0!==e?e/100:void 0}if(/f$/i.test(t)){const e=Number(t.slice(0,-1));return Number.isFinite(e)&&0!==e?e/65536:void 0}const n=Number(t);return Number.isFinite(n)&&0!==n?n/65536:void 0}async function oa(e,t,n,r){const o=So(e,"imagedata");if(!o)return;const i=function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&("id"===n.localName||"r:id"===n.name))return n.value}}(o),a=i?n.get(i):void 0;if(!a)return;const s=So(e,"shape"),l=function(e){const t={};if(!e)return t;for(const n of e.split(";")){const e=n.indexOf(":");if(e<0)continue;const r=n.slice(0,e).trim().toLowerCase(),o=n.slice(e+1).trim();if("width"===r){const e=Gi(o);null!==e&&(t.width=e)}else if("height"===r){const e=Gi(o);null!==e&&(t.height=e)}}return t}(null==s?void 0:s.getAttribute("style")),c=function(e){const t={left:ra(xo(e,"cropleft")),top:ra(xo(e,"croptop")),right:ra(xo(e,"cropright")),bottom:ra(xo(e,"cropbottom"))};if(void 0!==t.left||void 0!==t.top||void 0!==t.right||void 0!==t.bottom)return t}(o),u=xo(o,"title")??o.getAttribute("o:title"),d=await Qi(t,r,a);return d?{src:d,width:l.width??300,height:l.height??300,...u?{alt:u}:{},...c?{crop:c}:{}}:void 0}async function ia(e,t){const n=So(e,"wsp");if(!n)return;const r=Ki(e),o=(null==r?void 0:r.element)??e,i=So(o,"extent"),a=qi(null==i?void 0:i.getAttribute("cx"))??300,s=qi(null==i?void 0:i.getAttribute("cy"))??300,l=So(o,"docPr"),c=l?xo(l,"name"):null,u=l?xo(l,"descr")??xo(l,"title"):null,d="anchor"===(null==r?void 0:r.kind)?ta(r.element):void 0,f=So(n,"txbxContent"),p=f&&t?await t(f):[],h=function(e){var t,n;const r=So(e,"spPr");if(!r)return;const o={},i=So(r,"prstGeom"),a=null==i?void 0:i.getAttribute("prst");a&&(o.preset=a);for(let s=0;s<r.childNodes.length;s+=1){const e=r.childNodes[s];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if("solidFill"===i.localName){const e=Vi(null==(t=So(i,"srgbClr"))?void 0:t.getAttribute("val"));e&&(o.fill=e)}else if("ln"===i.localName){const e=Wi(i.getAttribute("w"));void 0!==e&&(o.borderWidthPt=Po(e/vr,2));const t=Vi(null==(n=So(i,"srgbClr"))?void 0:n.getAttribute("val"));t&&(o.borderColor=t)}}return Object.keys(o).length>0?o:void 0}(n),m=function(e){const t=So(e,"bodyPr");if(!t)return;const n={},r=qi(t.getAttribute("lIns")),o=qi(t.getAttribute("tIns")),i=qi(t.getAttribute("rIns")),a=qi(t.getAttribute("bIns"));void 0!==r&&(n.paddingLeft=r),void 0!==o&&(n.paddingTop=o),void 0!==i&&(n.paddingRight=i),void 0!==a&&(n.paddingBottom=a);const s=t.getAttribute("anchor");s&&(n.anchor=s);const l=t.getAttribute("wrap");l&&(n.wrap=l);const c=t.getAttribute("vert");return"vert"!==c&&"vert270"!==c&&"wordArtVert"!==c||(n.vert=c),So(t,"spAutoFit")&&(n.autoFit=!0),Object.keys(n).length>0?n:void 0}(n),g=function(e){const t=So(e,"spPr");if(!t)return;const n=So(t,"xfrm"),r=Wi(null==n?void 0:n.getAttribute("rot"));return void 0!==r&&0!==r&&(Math.round(r/yr)%360+360)%360||void 0}(n);return{width:a,height:s,blocks:p,...d?{floating:d}:{},...void 0!==g?{rotation:g}:{},...c?{name:c}:{},...u?{alt:u}:{},...h?{shape:h}:{},...m?{body:m}:{}}}function aa(e){let t;for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if("Choice"!==o.localName)continue;const i=So(o,"drawing");if(!i)continue;void 0===t&&(t=i);const a=o.getAttribute("Requires")??"";if(/\bwps\b/.test(a))return i}return t}function sa(e){const t=xo(e,"id");if(!t)return;if("bookmarkEnd"===e.localName)return{kind:"end",docxId:t};const n=xo(e,"name")??void 0,r=xo(e,"colFirst"),o=xo(e,"colLast"),i=null!==r?Number.parseInt(r,10):void 0,a=null!==o?Number.parseInt(o,10):void 0;return{kind:"start",docxId:t,...void 0!==n?{name:n}:{},...void 0===i||Number.isNaN(i)?{}:{colFirst:i},...void 0===a||Number.isNaN(a)?{}:{colLast:a}}}function la(e){const t=xo(e,"id");if(t)return{kind:"commentRangeEnd"===e.localName?"end":"start",docxId:t}}async function ca(e,t,n,r,o){const i=[];let a,s,l,c=0;const u=[],d=[],f=e=>{i.push(e),c+=e.length},p=e.childNodes;for(let h=0;h<p.length;h+=1){const e=p[h];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if(i.namespaceURI===fo)if("t"===i.localName)f(i.textContent??"");else if("tab"===i.localName)f("\t");else if("noBreakHyphen"===i.localName)f("‑");else if("softHyphen"===i.localName)f("");else if("br"===i.localName)f("page"===xo(i,"type")?"\f":"\n");else{if("lastRenderedPageBreak"===i.localName)continue;if("bookmarkStart"===i.localName||"bookmarkEnd"===i.localName){const e=sa(i);e&&u.push({offset:c,marker:e});continue}if("commentRangeStart"===i.localName||"commentRangeEnd"===i.localName){const e=la(i);e&&d.push({offset:c,marker:e});continue}if("proofErr"===i.localName||"commentReference"===i.localName||"permStart"===i.localName||"permEnd"===i.localName)continue;if("cr"===i.localName)f("\n");else if("drawing"===i.localName){const e=await na(i,t,n,r);if(e.image)f(e.text),a=e.image;else{const e=await ia(i,o);e&&(f(""),s=e)}}else if("pict"===i.localName){const e=await oa(i,t,n,r);e&&(f(""),a=e)}else if("sym"===i.localName){const e=xo(i,"font")??"",t=xo(i,"char")??"",n=parseInt(t,16);f(Number.isFinite(n)&&n>0?String.fromCodePoint(n):"?"),l={font:e,char:t}}}else if("AlternateContent"===i.localName){const e=aa(i);if(e){const t=await ia(e,o);t&&(f(""),s=t)}}}return{text:i.join(""),image:a,...s?{textBox:s}:{},...u.length>0?{innerBookmarks:u}:{},...d.length>0?{innerComments:d}:{},...l?{sym:l}:{}}}async function ua(e,t,n,r,o,i,a,s){var l,c,u;const d=[],f=[],p=(e,t)=>{const n=xo(e,"fldCharType"),r=xo(e,"fldLock"),o=xo(e,"dirty"),i="true"===r||"1"===r,a="true"===o||"1"===o;if("begin"===n)d.push({text:"",fieldChar:{kind:"begin",...i?{fieldLock:!0}:{},...a?{dirty:!0}:{}},...t?{styles:t}:{}}),f.push({beginIndex:d.length-1,instruction:"",...t?{beginStyles:t}:{}});else if("separate"===n)d.push({text:"",fieldChar:{kind:"separate"},...t?{styles:t}:{}});else if("end"===n){d.push({text:"",fieldChar:{kind:"end"},...t?{styles:t}:{}});const e=f.pop();e&&(e=>{var t;const n=/\bNUMPAGES\b/i.test(e.instruction)?"NUMPAGES":/\bPAGE\b/i.test(e.instruction)?"PAGE":null;if(!n)return;const r=d.slice(e.beginIndex);if(r.some(e=>e.bookmark))return;const o=r.filter(e=>!e.fieldChar&&void 0===e.fieldInstruction),i=o.map(e=>e.text).join("")||"1",a=(null==(t=o.find(e=>e.styles))?void 0:t.styles)??e.beginStyles;d.length=e.beginIndex,d.push({text:i,...a?{styles:a}:{},field:{type:n}})})(e)}},h=(e,t)=>{const n=e.textContent??"";d.push({text:"",fieldInstruction:n,...t?{styles:t}:{}});const r=f[f.length-1];r&&(r.instruction+=n)};for(let m=0;m<e.childNodes.length;m+=1){const f=e.childNodes[m];if((null==f?void 0:f.nodeType)!==f.ELEMENT_NODE)continue;const g=f;if(g.namespaceURI!==Ri||"oMath"!==g.localName&&"oMathPara"!==g.localName){if(g.namespaceURI===fo){if("bookmarkStart"===g.localName||"bookmarkEnd"===g.localName){const e=sa(g);if(!e)continue;d.push({text:"",bookmark:e});continue}if("commentRangeStart"===g.localName||"commentRangeEnd"===g.localName){const e=la(g);if(!e)continue;d.push({text:"",comment:e});continue}if("r"===g.localName){const e=ci(bo(g,fo,"rPr"),i);if(go(g,fo,"fldChar").length>0||go(g,fo,"instrText").length>0){for(let t=0;t<g.childNodes.length;t+=1){const n=g.childNodes[t];if((null==n?void 0:n.nodeType)!==n.ELEMENT_NODE)continue;const r=n;r.namespaceURI===fo&&("fldChar"===r.localName?p(r,e):"instrText"===r.localName&&h(r,e))}continue}const t=bo(g,fo,"footnoteReference");if(t){const n=xo(t,"id");if(!n)continue;const r=xo(t,"customMarkFollows");let o=e;(l=o??(o={})).styleId??(l.styleId="footnoteReference"),void 0===o.superscript&&(o.superscript=!0),d.push({text:"?",styles:o,footnoteReference:{docxId:n,...r?{customMark:r}:{}}});continue}const u=bo(g,fo,"endnoteReference");if(u){const t=xo(u,"id");if(!t)continue;const n=xo(u,"customMarkFollows");let r=e;(c=r??(r={})).styleId??(c.styleId="endnoteReference"),void 0===r.superscript&&(r.superscript=!0),d.push({text:"?",styles:r,endnoteReference:{docxId:t,...n?{customMark:n}:{}}});continue}const{text:f,image:m,textBox:v,innerBookmarks:w,innerComments:b,sym:y}=await ca(g,n,r,o,s);let x=e;y&&!(null==x?void 0:x.fontFamily)&&((x??(x={})).fontFamily=y.font),a&&((x??(x={})).link=a);const S=[...(w??[]).map(e=>({offset:e.offset,run:{text:"",bookmark:e.marker}})),...(b??[]).map(e=>({offset:e.offset,run:{text:"",comment:e.marker}}))];if(S.length>0&&!m&&!v){S.sort((e,t)=>e.offset-t.offset);let e=0;for(const n of S){const t=f.slice(e,n.offset);t.length>0&&d.push({text:t,...x?{styles:x}:{}}),d.push(n.run),e=n.offset}const t=f.slice(e);t.length>0&&d.push({text:t,...x?{styles:x}:{}});continue}if(0===f.length&&!m&&!v)continue;if(d.push({text:f,...m?{image:m}:{},...v?{textBox:v}:{},...y?{sym:y}:{},...x?{styles:x}:{}}),w)for(const n of w)d.push({text:"",bookmark:n.marker});continue}if("fldSimple"===g.localName){const e=g.getAttribute("w:instr")??g.getAttributeNS(fo,"instr")??g.getAttribute("instr")??"",l=/\bNUMPAGES\b/i.test(e)?"NUMPAGES":/\bPAGE\b/i.test(e)?"PAGE":null,c=await ua(g,t,n,r,o,i,a,s);if(l){const e=c.map(e=>e.text).join("")||"1",t=null==(u=c.find(e=>e.styles))?void 0:u.styles;d.push({text:e,styles:t,field:{type:l}})}else d.push({text:"",fieldChar:{kind:"begin"}}),d.push({text:"",fieldInstruction:e}),d.push({text:"",fieldChar:{kind:"separate"}}),d.push(...c),d.push({text:"",fieldChar:{kind:"end"}});continue}if("hyperlink"===g.localName){let e=r.get(g.getAttribute("r:id")??g.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??"")??null;if(!e){const t=xo(g,"anchor");t&&(e=`#${t}`)}d.push(...await ua(g,t,n,r,o,i,e,s))}}}else d.push({text:"",math:Fi(g)})}return d}const da="http://schemas.openxmlformats.org/wordprocessingml/2006/main",fa=/<w:rPr(?:\s|\/|>)/,pa=/<w:pPr(?:\s|\/|>)/;function ha(e){if(Array.isArray(e))return e.map(ha);if(!e||"object"!=typeof e)return e;const t=e,n=function(e){return"string"==typeof e.kind||"string"==typeof e.type||Array.isArray(e.runs)||Array.isArray(e.rows)||Array.isArray(e.cells)||Array.isArray(e.blocks)}(t),r={};for(const[o,i]of Object.entries(t).sort(([e],[t])=>e.localeCompare(t)))void 0===i||"id"===o&&n||"ooxmlSource"===o||o.startsWith("__")||(r[o]=ha(i));return r}function ma(e){return JSON.stringify(ha(e))??"undefined"}function ga(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function va(e,t){const n=[];for(let r=0;r<e.childNodes.length;r+=1){const o=e.childNodes[r];(null==o?void 0:o.nodeType)===o.ELEMENT_NODE&&o.namespaceURI===da&&o.localName===t&&n.push(o)}return n}function wa(e,t){return va(e,t)[0]}function ba(e){return e?(new or).serializeToString(e):void 0}function ya(e){return ma(e)}function xa(e){return ma({...e,text:void 0})}function Sa(e,t){e.ooxmlSource={xml:t,semanticSignature:ya(e),structureSignature:xa(e)}}function Na(e){return e.ooxmlSource}function Ea(e){return ma(e)}function _a(e){return ma({style:e.style,list:e.list})}function ka(e){return e.ooxmlSource}function Ta(e){return ma(e)}function Ia(e){return ma({style:e.style})}function Ca(e){return ma({gridCols:e.gridCols,gridRevision:e.gridRevision})}function Aa(e){return ma({isHeader:e.isHeader,style:e.style,conditionalStyle:e.conditionalStyle})}function Ra(e){return ma({propertyExceptions:e.propertyExceptions,tblPrExChangeXml:e.tblPrExChangeXml})}function $a(e){return ma({colSpan:e.colSpan,rowSpan:e.rowSpan,vMerge:e.vMerge,style:e.style,conditionalStyle:e.conditionalStyle,mergeRevisionState:e.mergeRevisionState})}function Da(e){return e.ooxmlSource}function Pa(e,t){const n=ba(wa(t,"tblPr")),r=ba(wa(t,"tblGrid")),o=va(t,"tr");return o.length===e.rows.length&&o.forEach((t,n)=>{const r=e.rows[n];!function(e,t){const n={};t.rowPropertiesXml&&(n.rowProperties={xml:t.rowPropertiesXml,semanticSignature:Aa(e)}),t.propertyExceptionsXml&&(n.propertyExceptions={xml:t.propertyExceptionsXml,semanticSignature:Ra(e)}),(n.rowProperties||n.propertyExceptions)&&(e.ooxmlSource=n)}(r,{rowPropertiesXml:ba(wa(t,"trPr")),propertyExceptionsXml:ba(wa(t,"tblPrEx"))});const o=va(t,"tc");o.length===r.cells.length&&o.forEach((e,t)=>{const n=ba(wa(e,"tcPr"));n&&function(e,t){e.ooxmlSource={cellProperties:{xml:t,semanticSignature:$a(e)}}}(r.cells[t],n)})}),{tablePropertiesXml:n,tableGridXml:r}}function Oa(e){return e.ooxmlSource}function La(e,t,n){const r=new or,o=function(e,t){const n=t.serializeToString(e.cloneNode(!1)),r=n.indexOf(">");if(r<0)return;const o=n.slice(0,r+1),i=e.tagName;return o.slice(`<${i}`.length,o.endsWith("/>")?-2:-1).trim()||void 0}(e,r),i=t?bo(t,fo,"sectPr"):null,a=i?void 0:r.serializeToString(e),s=t&&!i?r.serializeToString(t):void 0,l=function(e,t){const n=[],r=e=>{for(let o=0;o<e.childNodes.length;o+=1){const i=e.childNodes[o];if((null==i?void 0:i.nodeType)!==i.ELEMENT_NODE)continue;const a=i;a.namespaceURI!==fo||"r"!==a.localName?(a.namespaceURI!==fo||"pPr"!==a.localName&&"p"!==a.localName&&"tbl"!==a.localName&&"txbxContent"!==a.localName)&&r(a):n.push(t.serializeToString(a))}};return r(e),n}(e,r),c=l.length===n.length?l:void 0;if(a||o||s||c)return{...a?{xml:a}:{},...o?{attributes:o}:{},...s?{paragraphPropertiesXml:s}:{},...c?{runXml:c}:{}}}function Ma(e){const t={id:ar("run"),text:e.text};let n;e.styles&&(t.styles={...e.styles}),n=e.fieldChar?{...t,kind:"fieldChar",fieldChar:{...e.fieldChar}}:void 0!==e.fieldInstruction?{...t,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}:e.field?{...t,kind:"field",field:{...e.field}}:e.textBox?{...t,kind:"textBox",textBox:e.textBox}:e.image?{...t,kind:"image",image:e.image}:e.sym?{...t,kind:"sym",sym:{...e.sym}}:e.math?{...t,text:"",kind:"math",math:e.math}:{...t,kind:"text"};const r=n;return e.footnoteReference&&(r.__importedFootnoteRef={...e.footnoteReference}),e.endnoteReference&&(r.__importedEndnoteRef={...e.endnoteReference}),e.bookmark&&(r.__importedBookmark={...e.bookmark}),e.comment&&(r.__importedComment={...e.comment}),r}function Fa(e,t,n,r,o){var i,a;const s=e.length>0?e.map(Ma):[{id:ar("run"),text:"",kind:"text",...r?{styles:{...r}}:{}}],l={id:ar("paragraph"),type:"paragraph",runs:s};l.style=t?{...t}:void 0;for(const c of l.runs)c.styles=li(c.styles,null==(i=l.style)?void 0:i.styleId);if(l.list=n?{...n}:void 0,(null==(a=null==o?void 0:o.runXml)?void 0:a.length)===l.runs.length)for(let c=0;c<l.runs.length;c+=1)Sa(l.runs[c],o.runXml[c]);return o&&function(e,t){const n={};t.xml&&(n.xml=t.xml,n.semanticSignature=Ea(e)),t.attributes&&(n.attributes=t.attributes),t.paragraphPropertiesXml&&(n.paragraphProperties={xml:t.paragraphPropertiesXml,semanticSignature:_a(e)}),(n.xml||n.attributes||n.paragraphProperties)&&(e.ooxmlSource=n)}(l,o),l}function Ba(e){return e.some(e=>e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment||e.text.replace(/\s/g,"").length>0)}async function Ua(e,t,n,r,o,i,a,s){const l=bo(e,fo,"pPr"),c=await ua(e,t,n,r,o,i,void 0,a),u=Ei(_i(l,i.colors)),d=ci(bo(l,fo,"rPr"),i),f=function(e,t){if(!e)return;const n=bo(e,fo,"numPr");if(!n)return;const r=xo(bo(n,fo,"numId"),"val");if(!r)return;const o=xo(bo(n,fo,"ilvl"),"val")??"0",i=Number.parseInt(o,10),a=Number.isFinite(i)?i:0,s=Jo(t,r,a),l=[];for(let m=0;m<=a;m+=1)l[m]=Jo(t,r,m).format??"decimal";const c=`${r}:${a}`,u=!t.seenInstances.has(c);t.seenInstances.add(c);const d=u?t.numStartOverrides.get(c)??s.startAt:void 0,f={kind:s.kind??"ordered",level:a,instanceId:r,suffix:s.suffix??"tab",...s.format?{format:s.format}:{},...l.length?{levelFormats:l}:{},...s.levelText?{levelText:s.levelText}:{},...s.alignment?{alignment:s.alignment}:{},...void 0!==s.legal?{legal:s.legal}:{},...void 0!==d&&1!==d?{startAt:d}:{},...s.bulletGlyph?{bulletGlyph:s.bulletGlyph}:{},...s.bulletFont?{bulletFont:s.bulletFont}:{}},p=Qo(r,1),h=Qo(t.numToAbstractId.get(r),0);return(void 0!==p||void 0!==h||s.rawFormat||void 0!==s.restartAfterLevel||s.paragraphStyleId)&&function(e,t){e.ooxmlNumbering={...t,importedFormat:e.format,importedKind:e.kind}}(f,{...void 0!==p?{sourceNumId:p}:{},...void 0!==h?{sourceAbstractNumId:h}:{},...s.rawFormat?{format:s.rawFormat}:{},...void 0!==s.restartAfterLevel?{restartAfterLevel:s.restartAfterLevel}:{},...s.paragraphStyleId?{paragraphStyleId:s.paragraphStyleId}:{}}),{list:f,indent:s.indent}}(l,t),p=null==f?void 0:f.list;let h=u;if(null==f?void 0:f.indent){const{left:e,hanging:t}=f.indent,n=u??{};h={...n,...void 0===n.indentLeft&&void 0!==e?{indentLeft:e}:{},...void 0===n.indentHanging&&void 0!==t?{indentHanging:t}:{}}}const m=function(e){if(!e)return;const t=Vr(e,_r),n=Vr(void 0,_r);return ni({styleId:e.styleId,align:t.align!==n.align?t.align:void 0,spacingBefore:t.spacingBefore!==n.spacingBefore?t.spacingBefore:void 0,spacingAfter:t.spacingAfter!==n.spacingAfter?t.spacingAfter:void 0,contextualSpacing:void 0!==e.contextualSpacing||t.contextualSpacing!==n.contextualSpacing?t.contextualSpacing:void 0,lineHeight:t.lineHeight!==n.lineHeight?t.lineHeight:void 0,lineRule:t.lineRule??void 0,lineGridPitch:e.lineGridPitch??void 0,snapToGrid:void 0!==e.snapToGrid||t.snapToGrid!==n.snapToGrid?t.snapToGrid:void 0,indentLeft:void 0!==e.indentLeft||t.indentLeft!==n.indentLeft?t.indentLeft:void 0,indentRight:void 0!==e.indentRight||t.indentRight!==n.indentRight?t.indentRight:void 0,indentFirstLine:void 0!==e.indentFirstLine||t.indentFirstLine!==n.indentFirstLine?t.indentFirstLine:void 0,indentHanging:void 0!==e.indentHanging||t.indentHanging!==n.indentHanging?t.indentHanging:void 0,mirrorIndents:void 0!==e.mirrorIndents||t.mirrorIndents!==n.mirrorIndents?t.mirrorIndents:void 0,pageBreakBefore:void 0!==e.pageBreakBefore||t.pageBreakBefore!==n.pageBreakBefore?t.pageBreakBefore:void 0,keepWithNext:void 0!==e.keepWithNext||t.keepWithNext!==n.keepWithNext?t.keepWithNext:void 0,keepLinesTogether:void 0!==e.keepLinesTogether||t.keepLinesTogether!==n.keepLinesTogether?t.keepLinesTogether:void 0,widowControl:void 0!==e.widowControl||t.widowControl!==n.widowControl?t.widowControl:void 0,shading:e.shading??void 0,borderTop:e.borderTop??void 0,borderRight:e.borderRight??void 0,borderBottom:e.borderBottom??void 0,borderLeft:e.borderLeft??void 0,tabs:e.tabs??void 0,textDirection:e.textDirection??void 0,outlineLevel:e.outlineLevel??void 0,suppressLineNumbers:void 0!==e.suppressLineNumbers||t.suppressLineNumbers!==n.suppressLineNumbers?t.suppressLineNumbers:void 0,suppressAutoHyphens:void 0!==e.suppressAutoHyphens||t.suppressAutoHyphens!==n.suppressAutoHyphens?t.suppressAutoHyphens:void 0,bidi:void 0!==e.bidi||t.bidi!==n.bidi?t.bidi:void 0,kinsoku:void 0!==e.kinsoku||t.kinsoku!==n.kinsoku?t.kinsoku:void 0,wordWrap:void 0!==e.wordWrap||t.wordWrap!==n.wordWrap?t.wordWrap:void 0,overflowPunct:void 0!==e.overflowPunct||t.overflowPunct!==n.overflowPunct?t.overflowPunct:void 0,topLinePunct:void 0!==e.topLinePunct||t.topLinePunct!==n.topLinePunct?t.topLinePunct:void 0,autoSpaceDE:void 0!==e.autoSpaceDE||t.autoSpaceDE!==n.autoSpaceDE?t.autoSpaceDE:void 0,autoSpaceDN:void 0!==e.autoSpaceDN||t.autoSpaceDN!==n.autoSpaceDN?t.autoSpaceDN:void 0,adjustRightInd:void 0!==e.adjustRightInd||t.adjustRightInd!==n.adjustRightInd?t.adjustRightInd:void 0,textAlignment:e.textAlignment??void 0,textboxTightWrap:e.textboxTightWrap??void 0,divId:e.divId??void 0,conditionalStyle:e.conditionalStyle??void 0,borderBetween:e.borderBetween??void 0,borderBar:e.borderBar??void 0,framePrXml:e.framePrXml??void 0})}(h),g=function(e,t){var n;const r=bo(e,fo,"framePr");if(!r)return null;const o=xo(r,"dropCap");if(!o||"none"===o)return null;const i=t.map(e=>e.text).join("");if(0===i.length)return null;const a=Number(xo(r,"lines"));return{text:i,lines:Number.isFinite(a)&&a>0?a:3,type:"margin"===o?"margin":"drop",style:null==(n=t[0])?void 0:n.styles}}(l,c);if(g)return{paragraphs:[],pageBreakAfter:!1,dropCapFrame:g};const{segments:v,hasPageBreak:w}=function(e){const t=[[]];let n=!1;const r=(e,n)=>{(0!==n.length||e.image||e.textBox||e.field||e.fieldChar||void 0!==e.fieldInstruction||e.bookmark||e.comment)&&t[t.length-1].push({...e,text:n})};for(const o of e){if(!o.text.includes("\f")){r(o,o.text);continue}const e=o.text.split("\f");e.forEach((i,a)=>{r(o,i),a<e.length-1&&(n=!0,t.push([]))})}return{segments:t,hasPageBreak:n}}(c);if(!w){return{paragraphs:[Fa(c,m,p,d,La(e,l,c))],pageBreakAfter:!1}}const b=[];let y=!1;for(let x=0;x<v.length;x+=1){const e=v[x];if(x>0&&(y=!0),!Ba(e))continue;const t=y?{...m??{},pageBreakBefore:!0}:m;b.push(Fa(e,t,p,d)),y=!1}return{paragraphs:b,pageBreakAfter:y}}async function Ha(e,t,n,r,o,i,a,s){return(await Ua(e,t,n,r,o,i,a)).paragraphs[0]??dr([{text:""}])}function za(e,t){if(!t.every(e=>"paragraph"===e.type))return;const n=go(e,fo,"p");n.length===t.length&&function(e,t){var n,r;const o=e=>e.style??(e.style={}),i=e.length-1;for(let a=0;a<e.length;a+=1){const n=t[a];n&&(0===a&&n.before&&(o(e[a]).spacingBefore=0),a===i&&n.after&&(o(e[a]).spacingAfter=0))}for(let a=0;a<i;a+=1){if(!(null==(n=t[a])?void 0:n.after)||!(null==(r=t[a+1])?void 0:r.before))continue;const i=o(e[a]),s=o(e[a+1]);(i.spacingAfter??0)>=(s.spacingBefore??0)?s.spacingBefore=0:i.spacingAfter=0}}(t,n.map(e=>function(e){const t=bo(e,fo,"spacing");return{before:Eo(xo(t,"beforeAutospacing")),after:Eo(xo(t,"afterAutospacing"))}}(bo(e,fo,"pPr"))))}async function ja(e,t,n,r,o,i,a,s){const l=[],c=bo(e,fo,"tblGrid");if(c)for(const w of go(c,fo,"gridCol")){const e=Lo(xo(w,"w"));void 0!==e&&l.push(e)}const u=bo(c,fo,"tblGridChange"),d=bo(e,fo,"tblPr"),f=xo(bo(d,fo,"tblStyle"),"val"),p=vi(d,f??void 0),h=function(e){const t=bo(e,fo,"tblLook"),n=e=>{const n=xo(t,e);return null===n||""===n?void 0:Eo(n)},r=xo(t,"val"),o=r?Number.parseInt(r,16):Number.NaN,i=e=>Number.isFinite(o)?0!==(o&e):void 0;return{firstRow:n("firstRow")??i(32)??!0,lastRow:n("lastRow")??i(64)??!1,firstCol:n("firstColumn")??i(128)??!0,lastCol:n("lastColumn")??i(256)??!1,noHBand:n("noHBand")??i(512)??!1,noVBand:n("noVBand")??i(1024)??!1}}(d),m=go(e,fo,"tr"),g=[];for(let w=0;w<m.length;w+=1){const e=m[w],t=bo(e,fo,"trPr"),n=hi(t),r=go(e,fo,"tc"),o=[];for(let d=0;d<r.length;d+=1){const e=r[d],t=bo(e,fo,"tcPr"),n=await a(e);za(e,n);const s=bi(t);if("continue"===xi(t)&&o.length>0){const e=o[o.length-1];e.colSpan=(e.colSpan??1)+s;continue}const l=yi(t),c=Si(t,0,i.colors),u=fr(n.length>0?n:[dr([{text:""}])],s,"restart"===l?{rowSpan:1,vMerge:l}:l?{vMerge:l}:void 0);c&&(u.style=c),u.conditionalStyle=hi(t);const f=No(e);f&&(u.extAttributes=f),"continue"===l&&(u.blocks=[]),o.push(u)}const s=pr(o,Ni(e)?{isHeader:!0}:void 0),l=wi(t);l&&(s.style=l),s.conditionalStyle=n;const c=No(e);c&&(s.extAttributes=c);const u=bo(e,fo,"tblPrEx");if(u){const e=vi(u);e&&(s.propertyExceptions=e);const t=bo(u,fo,"tblPrExChange");t&&(s.tblPrExChangeXml=(new or).serializeToString(t))}g.push(s)}for(let w=0;w<g.length;w+=1){const e=g[w];for(let t=0;t<e.cells.length;t+=1){const n=e.cells[t];if("restart"!==n.vMerge)continue;let r=1;for(let e=w+1;e<g.length;e+=1){const n=g[e].cells[t];if(!n||"continue"!==n.vMerge)break;r+=1}r>1&&(n.rowSpan=r)}}const v=function(e,t){return{id:ar("table"),type:"table",rows:e,gridCols:t}}(g,l.length>0?l:void 0);if(p&&(v.style=p),v.style?v.style.tblLook=h:f&&(v.style={tblLook:h}),u){const e=bo(u,fo,"tblGrid"),t=e?go(e,fo,"gridCol").map(e=>Lo(xo(e,"w"))).filter(e=>void 0!==e):[],n=xo(u,"date"),r=n?Date.parse(n):Number.NaN;v.gridRevision={id:xo(u,"id")??"revision:grid",author:xo(u,"author")??"Unknown",date:Number.isFinite(r)?r:0,type:"grid",previous:t}}return function(e,t){let n="string"==typeof t?{xml:t}:t;if("string"==typeof t){const r=(new ir).parseFromString(t,"application/xml").documentElement;(null==r?void 0:r.namespaceURI)===da&&"tbl"===r.localName&&(n={...n,...Pa(e,r)})}const r={xml:n.xml,semanticSignature:Ta(e)};n.tablePropertiesXml&&(r.tableProperties={xml:n.tablePropertiesXml,semanticSignature:Ia(e)}),n.tableGridXml&&(r.tableGrid={xml:n.tableGridXml,semanticSignature:Ca(e)}),e.ooxmlSource=r}(v,(new or).serializeToString(e)),v}const qa=new Set(["alias","tag","id","lock","placeholder","dataBinding","temporary","appearance","showingPlcHdr","color","text","richText","picture","comboBox","dropDownList","date","repeatingSection","repeatingSectionItem","group","equation","citation","bibliography"]);function Wa(e){if(!e)return{};const t={},n=bo(e,fo,"alias");if(n){const e=xo(n,"val");null!==e&&(t.alias=e)}const r=bo(e,fo,"tag");if(r){const e=xo(r,"val");null!==e&&(t.tag=e)}const o=bo(e,fo,"id");if(o){const e=xo(o,"val");null!==e&&(t.id=e)}const i=bo(e,fo,"lock");if(i){const e=xo(i,"val");null!==e&&(t.lock=e)}const a=bo(e,fo,"appearance");if(a){const e=xo(a,"val");null!==e&&(t.appearance=e)}const s=bo(e,fo,"showingPlcHdr");s&&(t.showingPlcHdr=Eo(xo(s,"val")));const l=bo(e,fo,"temporary");l&&(t.temporary=Eo(xo(l,"val")));const c=bo(e,fo,"color");if(c){const e=xo(c,"val");null!==e&&(t.color=e)}const u=bo(e,fo,"placeholder");if(u){const e=bo(u,fo,"docPart");if(e){const n=xo(e,"val");null!==n&&(t.placeholderDocPart=n)}}const d=bo(e,fo,"dataBinding");if(d){const e=function(e){const t=bo(e,fo,"prefixMappings"),n=bo(e,fo,"xpath"),r=bo(e,fo,"storeItemID"),o={};if(t){const e=xo(t,"val");null!==e&&(o.prefixMappings=e)}if(n){const e=xo(n,"val");null!==e&&(o.xpath=e)}if(r){const e=xo(r,"val");null!==e&&(o.storeItemID=e)}if(void 0===o.prefixMappings&&void 0===o.xpath&&void 0===o.storeItemID)return null;return o}(d);e&&(t.dataBinding=e)}const f=function(e){const t=bo(e,fo,"comboBox");if(t){const e=bo(t,fo,"lastSelectedValue");return{kind:"comboBox",listItems:Ga(t),...e?{lastSelectedValue:xo(e,"val")??void 0}:{}}}const n=bo(e,fo,"dropDownList");if(n){const e=bo(n,fo,"lastSelectedValue");return{kind:"dropDownList",listItems:Ga(n),...e?{lastSelectedValue:xo(e,"val")??void 0}:{}}}const r=bo(e,fo,"date");if(r){const e=xo(r,"fullDate")??void 0,t=bo(r,fo,"dateFormat"),n=bo(r,fo,"lid"),o=bo(r,fo,"calendar"),i=bo(r,fo,"storeMappedDataAs");return{kind:"date",fullDate:e,dateFormat:t?xo(t,"val")??void 0:void 0,lid:n?xo(n,"val")??void 0:void 0,calendar:o?xo(o,"val")??void 0:void 0,storeMappedDataAs:i?xo(i,"val")??void 0:void 0}}if(bo(e,fo,"text"))return{kind:"text"};for(const i of["richText","picture","group","equation","citation","bibliography","repeatingSection","repeatingSectionItem"])if(bo(e,fo,i))return{kind:i};const o=yo(e,"checkbox");if(o){const e=bo(o,ho,"checked"),t=bo(o,ho,"checkedState"),n=bo(o,ho,"uncheckedState"),r=e?Eo(xo(e,"val")):void 0;return{kind:"checkbox",...void 0!==r?{checked:r}:{},...t?{checkedStateFont:xo(t,"font")??void 0,checkedStateChar:xo(t,"char")??void 0}:{},...n?{uncheckedStateFont:xo(n,"font")??void 0,uncheckedStateChar:xo(n,"char")??void 0}:{}}}return}(e);f&&(t.subtype=f);const p=function(e){let t="";for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;o.localName&&o.namespaceURI===fo&&qa.has(o.localName)||(t+=(new or).serializeToString(o))}return t}(e);return p.length>0&&(t.unknownXml=p),t}function Ga(e){const t=go(e,fo,"listItem");if(0!==t.length)return t.map(e=>({displayText:xo(e,"displayText")??void 0,value:xo(e,"value")??void 0}))}async function Va(e,t,n,r,o,i,a){if(e.namespaceURI!==fo)return[];if("p"===e.localName){return(await Ua(e,t,n,r,o,i,a)).paragraphs}return"tbl"===e.localName?[await ja(e,0,0,0,0,i,a)]:"sdt"===e.localName?Xa(e,t,n,r,o,i,a):[]}async function Xa(e,t,n,r,o,i,a){const s=bo(e,fo,"sdtPr"),l=bo(e,fo,"sdtEndPr"),c={groupId:ar("sdt"),sdtPr:Wa(s),...l?{sdtEndPrXml:(new or).serializeToString(l)}:{}},u=bo(e,fo,"sdtContent"),d=[];if(u)for(let f=0;f<u.childNodes.length;f+=1){const e=u.childNodes[f];(null==e?void 0:e.nodeType)===e.ELEMENT_NODE&&d.push(...await Va(e,t,n,r,o,i,a))}for(const f of d)f.sdtWrappers=[c,...f.sdtWrappers??[]];return d}function Za(e,t,n,r,o){return i=>async function(e,t,n,r,o,i){const a=Za(t,n,r,o,i),s=[];for(let l=0;l<e.childNodes.length;l+=1){const c=e.childNodes[l];(null==c?void 0:c.nodeType)===c.ELEMENT_NODE&&s.push(...await Va(c,t,n,r,o,i,a))}return s}(i,e,t,n,r,o)}async function Ya(e,t,n,r,o,i,a){if(!e)return[];const s=(new ir).parseFromString(e,"application/xml").documentElement;if(!s)return[];const l=Za(t,n,r,o,i),c=[];for(let u=0;u<s.childNodes.length;u+=1){const e=s.childNodes[u];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const a=e;"p"===a.localName&&a.namespaceURI===fo?c.push(await Ha(a,t,n,r,o,i,l)):"tbl"===a.localName&&a.namespaceURI===fo&&c.push(await ja(a,0,0,0,0,i,l))}return c}const Qa=new Set(["separator","continuationSeparator","continuationNotice"]);async function Ka(e,t,n,r,o,i,a,s){const l={byDocxId:new Map,notes:{items:{}}};if(!t)return l;const c=(new ir).parseFromString(t,"application/xml").documentElement;if(!c)return l;const u={},d=new Map;let f,p;const h=go(c,fo,e);let m=0;const g=Za(n,r,o,i,a);for(const v of h){const t=xo(v,"id")??"",s=xo(v,"type")??"",l=[];for(let e=0;e<v.childNodes.length;e+=1){const t=v.childNodes[e];if((null==t?void 0:t.nodeType)!==t.ELEMENT_NODE)continue;const s=t;s.namespaceURI===fo&&("p"===s.localName?l.push(await Ha(s,n,r,o,i,a,g)):"tbl"===s.localName&&l.push(await ja(s,0,0,0,0,a,g)))}if(Qa.has(s)){"separator"===s?f=l:"continuationSeparator"===s&&(p=l);continue}if(("-1"===t||"0"===t)&&0===l.length)continue;m+=1;const c=`${e}:imported:${m}`,h=Number.parseInt(t,10),w={id:c,blocks:l.length>0?l:[],docxId:Number.isFinite(h)?h:void 0};u[c]=w,t&&d.set(t,w)}return{byDocxId:d,notes:{items:u,separator:f,continuationSeparator:p},separator:f,continuationSeparator:p}}function*Ja(e,t){const n=Zr(e);for(const r of n){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const n of e)for(const e of n)for(const n of Qr(e))for(const e of n.runs)e.kind===t&&(yield{paragraph:n,run:e})}}function es(e,t,n){if(!e)return{blocks:e,changed:!1};let r=!1;const o=e.map(e=>{switch(e.type){case"paragraph":{const o=function(e,t,n){let r=!1;const o=e.runs.map(e=>{const o=t.getRef(e);if(!o)return e;const i=n.get(o.id);return void 0===i||e.text===i?e:(r=!0,{...e,text:i})});return r?{...e,runs:o}:e}(e,t,n);return o!==e&&(r=!0),o}case"table":{let o=!1;const i=e.rows.map(e=>{let r=!1;const i=e.cells.map(e=>{const o=es(e.blocks,t,n);return o.changed&&o.blocks?(r=!0,{...e,blocks:o.blocks}):e});return r?(o=!0,{...e,cells:i}):e});return o?(r=!0,{...e,rows:i}):e}default:return kr(e,"block")}});return{blocks:r?o:e,changed:r}}function ts(e,t,n){var r,o;const i=(null==(r=t.settings)?void 0:r.numberFormat)??"decimal",a=(null==(o=t.settings)?void 0:o.startAt)??1,s=new Set,l=new Map;let c=a-1;for(const{run:h}of Ja(e,n.runKind)){const e=n.getRef(h);e&&(s.add(e.id),e.customMark?l.set(e.id,e.customMark):l.has(e.id)||(c+=1,l.set(e.id,n.formatMarker(c,i))))}let u=!1;const d=Zr(e).map(e=>{const t=es(e.blocks,n,l),r=es(e.header,n,l),o=es(e.firstPageHeader,n,l),i=es(e.evenPageHeader,n,l),a=es(e.footer,n,l),s=es(e.firstPageFooter,n,l),c=es(e.evenPageFooter,n,l);return t.changed||r.changed||o.changed||i.changed||a.changed||s.changed||c.changed?(u=!0,{...e,blocks:t.blocks??e.blocks,header:r.blocks,firstPageHeader:o.blocks,evenPageHeader:i.blocks,footer:a.blocks,firstPageFooter:s.blocks,evenPageFooter:c.blocks}):e}),f={};let p=!1;for(const[h,m]of Object.entries(t.items))s.has(h)||void 0!==m.docxId?f[h]=m:p=!0;return{sections:d,sectionsChanged:u,nextItems:f,itemsChanged:p}}const ns=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];function rs(e){if(e<=0)return String(e);let t=e,n="";for(const[r,o]of ns)for(;t>=r;)n+=o,t-=r;return n}function os(e){if(e<=0)return String(e);let t=e,n="";for(;t>0;){n="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+n,t=Math.floor((t-1)/26)}return n}const is=["*","†","‡","§","¶","#"];function as(e,t="decimal"){switch(t){case"lowerRoman":return rs(e);case"upperRoman":return rs(e).toUpperCase();case"lowerLetter":return os(e);case"upperLetter":return os(e).toUpperCase();case"symbol":{const t=(e-1)%is.length,n=Math.floor((e-1)/is.length)+1;return is[t].repeat(n)}default:return String(e)}}const ss={runKind:"footnoteReference",getRef:e=>{const t=Tr(e);return t?{id:t.footnoteId,customMark:t.customMark}:void 0},formatMarker:as};const ls={runKind:"endnoteReference",getRef:e=>{const t=Ir(e);return t?{id:t.endnoteId,customMark:t.customMark}:void 0},formatMarker:as};const cs=new Set(["_GoBack"]);function us(e,t,n){if("paragraph"===e.type){let r=0;const o=[];for(const i of e.runs){const a=i.__importedBookmark;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:r,seq:n.value}}),n.value+=1):(r+=i.text.length,o.push(i))}return void(o.length!==e.runs.length&&(e.runs=o.length>0?o:[cr("")]))}for(const r of e.rows)for(const e of r.cells)for(const r of e.blocks)us(r,t,n)}function ds(e){var t;const n=[],r={value:0},o=e=>{null==e||e.forEach(e=>us(e,n,r))};for(const u of e)o(u.blocks),o(u.header),o(u.firstPageHeader),o(u.evenPageHeader),o(u.footer),o(u.firstPageFooter),o(u.evenPageFooter);if(0===n.length)return;const i=new Map,a=new Map;for(const u of n){const e="start"===u.marker.kind?i:a,t=e.get(u.marker.docxId);t?t.push(u):e.set(u.marker.docxId,[u])}const s={},l=[],c=n.filter(e=>"start"===e.marker.kind);for(const u of c){const{marker:e,anchor:n}=u,r=e.name;if(!r||cs.has(r))continue;const o=Number.parseInt(e.docxId,10),i=null==(t=a.get(e.docxId))?void 0:t.shift(),c=sr(),d={id:c,name:r,start:n};r.startsWith("_")&&(d.hidden=!0),Number.isNaN(o)||(d.docxIdHint=o),void 0!==e.colFirst&&(d.colFirst=e.colFirst),void 0!==e.colLast&&(d.colLast=e.colLast),i&&(d.end=i.anchor),s[c]=d,l.push(c)}return 0!==l.length?{items:s,order:l}:void 0}function fs(e,t,n){if("paragraph"===e.type){let r=0;const o=[];for(const i of e.runs){const a=i.__importedComment;a?(t.push({marker:a,anchor:{paragraphId:e.id,offset:r,seq:n.value}}),n.value+=1):(r+=i.text.length,o.push(i))}return void(o.length!==e.runs.length&&(e.runs=o.length>0?o:[cr("")]))}for(const r of e.rows)for(const e of r.cells)for(const r of e.blocks)fs(r,t,n)}function ps(e){const t=[],n={value:0},r=e=>{null==e||e.forEach(e=>fs(e,t,n))};for(const i of e)r(i.blocks),r(i.header),r(i.firstPageHeader),r(i.evenPageHeader),r(i.footer),r(i.firstPageFooter),r(i.evenPageFooter);const o=new Map;for(const{marker:i,anchor:a}of t){const e=o.get(i.docxId)??{};"start"===i.kind?e.start=a:e.end=a,o.set(i.docxId,e)}return o}const hs="http://schemas.microsoft.com/office/word/2012/wordml";function ms(e){let t="";for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];if((null==r?void 0:r.nodeType)!==r.ELEMENT_NODE)continue;const o=r;if(o.namespaceURI===fo){if("t"===o.localName){t+=o.textContent??"";continue}if("tab"===o.localName){t+="\t";continue}if("br"===o.localName||"cr"===o.localName){t+="\n";continue}}t+=ms(o)}return t}function gs(e){if(!e)return;const t=Date.parse(e);return Number.isNaN(t)?void 0:t}function vs(e,t){const n=new Map;if(!e)return n;const r=(new ir).parseFromString(e,"application/xml").documentElement;if(!r)return n;const o=function(e){const t=new Map;if(!e)return t;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return t;for(const r of go(n,hs,"commentEx")){const e=r.getAttributeNS(hs,"paraId");if(!e)continue;const n=r.getAttributeNS(hs,"done");t.set(e,"1"===n||"true"===n)}return t}(t);for(const i of go(r,fo,"comment")){const e=xo(i,"id");if(null===e)continue;const t=xo(i,"author")??"",r=xo(i,"initials")??void 0,a=gs(xo(i,"date")),s=gs(i.getAttributeNS("http://schemas.microsoft.com/office/word/2023/wordml/word16du","dateUtc")),l=go(i,fo,"p"),c=l.map(e=>ms(e)).join("\n").trim(),u=l.length>0?xo(l[0],"paraId")??void 0:void 0,d=void 0!==u?o.get(u):void 0;n.set(e,{author:t,...r?{initials:r}:{},...void 0!==a?{date:a}:{},...void 0!==s?{dateUtc:s}:{},text:c,...d?{resolved:d}:{},...u?{paraId:u}:{}})}return n}async function ws(e,t={}){var n,r,i,a,s,l,c,u,d,f,p,h,m,g,v;null==(n=t.onProgress)||n.call(t,"opening-docx");const w=await o.loadAsync(e),b=await(null==(r=w.file("word/document.xml"))?void 0:r.async("string"));if(!b)throw new Error("Missing word/document.xml");const y=Io(await(null==(i=w.file("word/_rels/document.xml.rels"))?void 0:i.async("string"))),x=function(e){const t={abstractLevels:new Map,numOverrideLevels:new Map,numStartOverrides:new Map,numToAbstractId:new Map,seenInstances:new Set};if(!e)return t;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return t;for(const r of Array.from(n.getElementsByTagNameNS(fo,"abstractNum"))){const e=xo(r,"abstractNumId");if(e)for(const n of go(r,fo,"lvl")){const r=xo(n,"ilvl")??"0";t.abstractLevels.set(`${e}:${r}`,Ko(n))}}for(const r of Array.from(n.getElementsByTagNameNS(fo,"num"))){const e=xo(r,"numId"),n=xo(bo(r,fo,"abstractNumId"),"val");if(e&&n){t.numToAbstractId.set(e,n);for(const n of go(r,fo,"lvlOverride")){const r=xo(n,"ilvl")??"0",o=bo(n,fo,"lvl");o&&t.numOverrideLevels.set(`${e}:${r}`,Ko(o));const i=Yo(bo(n,fo,"startOverride"));void 0!==i&&t.numStartOverrides.set(`${e}:${r}`,i)}}}return t}(await(null==(a=w.file("word/numbering.xml"))?void 0:a.async("string"))??null),S=function(e){const t={adjustLineHeightInTable:!0};if(!e)return t;const n=(new ir).parseFromString(e,"application/xml"),r=Lo(xo(bo(n.documentElement,fo,"defaultTabStop"),"val"));void 0!==r&&(t.defaultTabStop=r);const o=bo(n.documentElement,fo,"autoHyphenation");if(o){const e=xo(o,"val");t.autoHyphenation="0"!==e&&"false"!==e}const i=bo(n.documentElement,fo,"doNotHyphenateCaps");if(i){const e=xo(i,"val");t.doNotHyphenateCaps="0"!==e&&"false"!==e}const a=Number.parseInt(xo(bo(n.documentElement,fo,"consecutiveHyphenLimit"),"val")??"",10);Number.isFinite(a)&&a>=0&&(t.consecutiveHyphenLimit=a);const s=Lo(xo(bo(n.documentElement,fo,"hyphenationZone"),"val"));void 0!==s&&(t.hyphenationZone=s),t.footnoteSettings=Go(bo(n.documentElement,fo,"footnotePr")),t.endnoteSettings=Go(bo(n.documentElement,fo,"endnotePr"));const l=bo(n.documentElement,fo,"compat");if(l){const e=bo(l,fo,"adjustLineHeightInTable");if(e){const n=xo(e,"val");t.adjustLineHeightInTable="0"!==n&&"false"!==n}const n=bo(l,fo,"allowSpaceOfSameStyleInTable");if(n){const e=xo(n,"val");t.allowSpaceOfSameStyleInTable="0"!==e&&"false"!==e}}return t}(await(null==(s=w.file("word/settings.xml"))?void 0:s.async("string"))??null),N=await(null==(l=w.file("word/styles.xml"))?void 0:l.async("string"))??null,E=function(e){if(!e)return;const t=(new ir).parseFromString(e,"application/xml").getElementsByTagNameNS(fo,"fonts")[0];if(!t)return;const n=[];for(const r of go(t,fo,"font")){const e=xo(r,"name");if(!e)continue;const t={name:e},o=xo(bo(r,fo,"altName"),"val");o&&(t.altName=o);const i=xo(bo(r,fo,"family"),"val");i&&(t.family=i);const a=xo(bo(r,fo,"pitch"),"val");a&&(t.pitch=a);const s=xo(bo(r,fo,"charset"),"val");s&&(t.charset=s);const l=xo(bo(r,fo,"panose1"),"val");l&&(t.panose1=l);const c=bo(r,fo,"sig");if(c){const e={};for(let t=0;t<c.attributes.length;t+=1){const n=c.attributes[t];e[n.localName??n.name]=n.value}Object.keys(e).length>0&&(t.sig=e)}n.push(t)}return n.length>0?n:void 0}(await(null==(c=w.file("word/fontTable.xml"))?void 0:c.async("string"))??null),_=function(e){if(!e)return{fonts:{},colors:{}};const t=(new ir).parseFromString(e,"application/xml").documentElement,n=t?go(t,po,"themeElements")[0]??null:null;return{fonts:Do(n),colors:Uo(n)}}(await(null==(u=w.file("word/theme/theme1.xml"))?void 0:u.async("string"))??null),k=function(e,t){if(!e)return;const n=(new ir).parseFromString(e,"application/xml").documentElement;if(!n)return;const r=bo(n,fo,"docDefaults"),o=bo(bo(r,fo,"pPrDefault"),fo,"pPr"),i=bo(bo(r,fo,"rPrDefault"),fo,"rPr"),a=o?{spacingBefore:0,spacingAfter:0,...Ei(_i(o,t.colors))}:Ei(_i(o,t.colors)),s=ci(i,t),l={};let c;for(const u of go(n,fo,"style")){const e=xo(u,"styleId"),n=xo(u,"type");if(!e||"paragraph"!==n&&"character"!==n&&"table"!==n)continue;const r=xo(bo(u,fo,"name"),"val")??e,o=xo(bo(u,fo,"basedOn"),"val")??void 0,i=xo(bo(u,fo,"next"),"val")??void 0,d=_o(u,"qFormat"),f=_o(u,"semiHidden"),p=_o(u,"unhideWhenUsed"),h=xo(bo(u,fo,"uiPriority"),"val"),m=null===h?NaN:Number(h),g=Number.isInteger(m)&&m>=0?m:void 0,v=Ei(_i(bo(u,fo,"pPr"),t.colors)),w=ci(bo(u,fo,"rPr"),t);let b;if("table"===n){const n=bo(u,fo,"tblPr"),r=e=>{const t=xo(bo(n,fo,e),"val"),r=t?Number(t):Number.NaN;return Number.isFinite(r)&&r>0?Math.floor(r):void 0},o=r("tblStyleRowBandSize"),i=r("tblStyleColBandSize"),a={};for(const e of go(u,fo,"tblStylePr")){const n=xo(e,"type");if(!n)continue;const r=bo(e,fo,"tcPr"),o=Si(r,0,t.colors),i=vi(bo(e,fo,"tblPr")),s=ii(bo(r,fo,"shd"),t.colors),l=ci(bo(e,fo,"rPr"),t),c=ri(ti(bo(r,fo,"tcBorders"))),u=_i(bo(e,fo,"pPr"),t.colors),d=wi(bo(e,fo,"trPr"));(s||l||c||u||d||o||i)&&(a[n]={...s?{shading:s}:{},...l?{textStyle:l}:{},...c?{borders:c}:{},...u?{paragraphStyle:u}:{},...d?{rowStyle:d}:{},...o?{cellStyle:o}:{},...i?{tableStyle:i}:{}})}b={...vi(n,e)??{styleId:e},...void 0!==o?{rowBandSize:o}:{},...void 0!==i?{colBandSize:i}:{},...Object.keys(a).length>0?{conditionalFormats:a}:{}}}const y="paragraph"===n&&Eo(xo(u,"default"));y&&(c=e),l[e]={id:e,name:r,type:n,isDefault:Eo(xo(u,"default")),basedOn:o,nextStyle:i,qFormat:d,uiPriority:g,semiHidden:f,unhideWhenUsed:p,paragraphStyle:"paragraph"===n&&y?oi(a,v):v,textStyle:"paragraph"===n&&y?oi(s,w):w,tableStyle:b}}return c&&l[c]?l:((a||s)&&(l.Normal={id:"Normal",name:"Normal",type:"paragraph",paragraphStyle:a,textStyle:s}),ri(l))}(N,_);null==(d=t.onProgress)||d.call(t,"parsing-document");const T=(new ir).parseFromString(b,"application/xml").getElementsByTagNameNS(fo,"body")[0];if(!T)return Jr([dr([{text:""}])]);const I={assets:{},byPath:new Map,nextId:1},C=[],A=[[]];let R=!1,$=null;const D=e=>{R&&(e.style={...e.style??{},pageBreakBefore:!0},R=!1),$&&"paragraph"===e.type&&(e.dropCap=$,$=null),A[A.length-1].push(e)};let P=0;for(let o=0;o<T.childNodes.length;o+=1){const e=T.childNodes[o];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE){const t=e;t.namespaceURI===fo&&"sectPr"!==t.localName&&(P+=1)}}let O=0;const L=()=>{var e;O+=1,P>0&&(null==(e=t.onProgress)||e.call(t,"parsing-document",O/P))},M=Za(x,w,y,I,_);for(let o=0;o<T.childNodes.length;o+=1){const e=T.childNodes[o];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const t=e;if(t.namespaceURI===fo){if("sectPr"===t.localName)C.push(Ii(t)),A.push([]),R=!1;else if("p"===t.localName){const e=await Ua(t,x,w,y,I,_,M);for(const t of e.paragraphs)D(t);e.dropCapFrame&&($=e.dropCapFrame),e.pageBreakAfter&&(R=!0);const n=bo(t,fo,"pPr"),r=n?bo(n,fo,"sectPr"):null;r&&(C.push(Ii(r)),A.push([]),R=!1),L()}else if("tbl"===t.localName)D(await ja(t,0,0,0,0,_,M)),L();else if("sdt"===t.localName){for(const e of await Xa(t,x,w,y,I,_,M))D(e);L()}await To(50,O)}}if(0===C.length){const e=bo(T,fo,"sectPr");C.push(e?Ii(e):{pageSettings:Ci(T),headerRIds:{},footerRIds:{}})}null==(f=t.onProgress)||f.call(t,"parsing-headers-footers");const F=[],B=e=>Object.keys(e.headerRIds).length>0||Object.keys(e.footerRIds).length>0,U=C.filter(B).length;let H=0;const z=()=>{var e;H+=1,U>0&&(null==(e=t.onProgress)||e.call(t,"parsing-headers-footers",H/U))};for(let o=0;o<C.length;o+=1){const e=C[o],t=A[o]??[];Ai(t,e.docGridLinePitchPx,e.docGridMode,e.docGridType,S);const n=async t=>{var n;if(!t)return[];const r=y.get(t);if(!r)return[];let o=r.startsWith("/")?r.slice(1):r;o.startsWith("word/")||(o=`word/${r}`);const i=await(null==(n=w.file(o))?void 0:n.async("string")),a=await Co(w,o),s=await Ya(i??null,x,w,a,I,_);return Ai(s,e.docGridLinePitchPx,e.docGridMode,e.docGridType,S),s},r=await n(e.headerRIds.default),i=await n(e.headerRIds.first),a=await n(e.headerRIds.even),s=await n(e.footerRIds.default),l=await n(e.footerRIds.first),c=await n(e.footerRIds.even);B(e)&&z(),await To(2,H);const u=Mr(e.pageSettings??{width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}}),d=o>0?null==(p=C[o-1])?void 0:p.breakType:void 0,f=e.pageNumbering,h=e.verticalAlignment,m=e.bidi;F.push({id:`section:${o+1}`,blocks:t.length>0?t:[dr([{text:""}])],pageSettings:u,header:r.length>0?r:void 0,firstPageHeader:i.length>0?i:void 0,evenPageHeader:a.length>0?a:void 0,footer:s.length>0?s:void 0,firstPageFooter:l.length>0?l:void 0,evenPageFooter:c.length>0?c:void 0,...d?{breakType:d}:{},...f?{pageNumbering:f}:{},...h?{verticalAlignment:h}:{},...m?{bidi:m}:{}})}const j=await(null==(h=w.file("word/footnotes.xml"))?void 0:h.async("string"))??null,q=j?await Co(w,"word/footnotes.xml"):new Map,W=await async function(e,t,n,r,o,i){const a=await Ka("footnote",e,t,n,r,o,i);return{byDocxId:a.byDocxId,footnotes:a.notes,separator:a.separator,continuationSeparator:a.continuationSeparator}}(j,x,w,q,I,_);S.footnoteSettings&&(W.footnotes.settings=S.footnoteSettings);const G=Object.keys(W.footnotes.items).length>0||W.footnotes.separator||W.footnotes.continuationSeparator||W.footnotes.settings?W.footnotes:void 0;!function(e,t){const n=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)n(t);else e.runs.forEach((n,r)=>{const o=n,i=o.__importedFootnoteRef;if(!i)return;delete o.__importedFootnoteRef;const a=t.get(i.docxId);a&&(e.runs[r]={id:n.id,text:n.text,styles:n.styles,revision:n.revision,kind:"footnoteReference",footnoteReference:{footnoteId:a.id,...i.customMark?{customMark:i.customMark}:{}}})})};bs(e,n)}(F,W.byDocxId);const V=await(null==(m=w.file("word/endnotes.xml"))?void 0:m.async("string"))??null,X=V?await Co(w,"word/endnotes.xml"):new Map,Z=await async function(e,t,n,r,o,i){const a=await Ka("endnote",e,t,n,r,o,i);return{byDocxId:a.byDocxId,endnotes:a.notes,separator:a.separator,continuationSeparator:a.continuationSeparator}}(V,x,w,X,I,_);S.endnoteSettings&&(Z.endnotes.settings=S.endnoteSettings);const Y=Object.keys(Z.endnotes.items).length>0||Z.endnotes.separator||Z.endnotes.continuationSeparator||Z.endnotes.settings?Z.endnotes:void 0;!function(e,t){const n=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)n(t);else e.runs.forEach((n,r)=>{const o=n,i=o.__importedEndnoteRef;if(!i)return;delete o.__importedEndnoteRef;const a=t.get(i.docxId);a&&(e.runs[r]={id:n.id,text:n.text,styles:n.styles,revision:n.revision,kind:"endnoteReference",endnoteReference:{endnoteId:a.id,...i.customMark?{customMark:i.customMark}:{}}})})};bs(e,n)}(F,Z.byDocxId);const Q=ds(F),K=function(e,t){const n=new Set([...e.keys(),...t.keys()]);if(0===n.size)return;const r=[...n].sort((e,t)=>{const n=Number.parseInt(e,10),r=Number.parseInt(t,10);return Number.isNaN(n)||Number.isNaN(r)?e.localeCompare(t):n-r}),o={},i=[];for(const a of r){const n=e.get(a),r=t.get(a);if(!n&&!r)continue;const s=lr(),l=Number.parseInt(a,10);o[s]={id:s,author:(null==r?void 0:r.author)??"",...(null==r?void 0:r.initials)?{initials:r.initials}:{},...void 0!==(null==r?void 0:r.date)?{date:r.date}:{},...void 0!==(null==r?void 0:r.dateUtc)?{dateUtc:r.dateUtc}:{},...(null==r?void 0:r.resolved)?{resolved:r.resolved}:{},text:(null==r?void 0:r.text)??"",...(null==n?void 0:n.start)?{start:n.start}:{},...(null==n?void 0:n.end)?{end:n.end}:{},...Number.isNaN(l)?{}:{docxIdHint:l}},i.push(s)}return i.length>0?{items:o,order:i}:void 0}(ps(F),vs(await(null==(g=w.file("word/comments.xml"))?void 0:g.async("string"))??null,await(null==(v=w.file("word/commentsExtended.xml"))?void 0:v.async("string"))??null)),J=F.length>1||F.some(e=>{var t,n,r,o,i,a;return((null==(t=e.header)?void 0:t.length)??0)>0||((null==(n=e.firstPageHeader)?void 0:n.length)??0)>0||((null==(r=e.evenPageHeader)?void 0:r.length)??0)>0||((null==(o=e.footer)?void 0:o.length)??0)>0||((null==(i=e.firstPageFooter)?void 0:i.length)??0)>0||((null==(a=e.evenPageFooter)?void 0:a.length)??0)>0||void 0!==e.breakType||void 0!==e.pageNumbering||void 0!==e.verticalAlignment||void 0!==e.bidi}),ee=Object.keys(I.assets).length>0,te=e=>{const t={};void 0!==S.defaultTabStop&&(t.defaultTabStop=S.defaultTabStop),S.allowSpaceOfSameStyleInTable&&(t.allowSpaceOfSameStyleInTable=!0),S.autoHyphenation&&(t.autoHyphenation=!0),S.doNotHyphenateCaps&&(t.doNotHyphenateCaps=!0),void 0!==S.consecutiveHyphenLimit&&(t.consecutiveHyphenLimit=S.consecutiveHyphenLimit),void 0!==S.hyphenationZone&&(t.hyphenationZone=S.hyphenationZone),Object.keys(t).length>0&&(e.settings={...e.settings??{},...t}),E&&(e.fontTable=E);let n=e;return G&&(n.footnotes=G,n=function(e){const t=e.footnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:n,sectionsChanged:r,nextItems:o,itemsChanged:i}=ts(e,t,ss);return r||i?{...e,sections:r?n:e.sections,footnotes:{...t,items:i?o:t.items}}:e}(n)),Y&&(n.endnotes=Y,n=function(e){const t=e.endnotes;if(!t||0===Object.keys(t.items).length)return e;const{sections:n,sectionsChanged:r,nextItems:o,itemsChanged:i}=ts(e,t,ls);return r||i?{...e,sections:r?n:e.sections,endnotes:{...t,items:i?o:t.items}}:e}(n)),Q&&(n.bookmarks=Q),K&&(n.comments=K),n};if(J){const e=Jr([]);return e.sections=F,1===F.length&&(e.pageSettings=F[0].pageSettings),k&&(e.styles=k),ee&&(e.assets=I.assets),te(e)}const ne=F[0],re=Jr((null==ne?void 0:ne.blocks.length)>0?ne.blocks:[dr([{text:""}])],null==ne?void 0:ne.pageSettings);return ee&&(re.assets=I.assets),k&&(re.styles=k),te(re)}function bs(e,t){var n,r,o,i,a,s;for(const l of e)l.blocks.forEach(t),null==(n=l.header)||n.forEach(t),null==(r=l.firstPageHeader)||r.forEach(t),null==(o=l.evenPageHeader)||o.forEach(t),null==(i=l.footer)||i.forEach(t),null==(a=l.firstPageFooter)||a.forEach(t),null==(s=l.evenPageFooter)||s.forEach(t)}function ys(e){return e.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}function xs(e){return e.replaceAll("\\","/").replace(/^\/+/,"")}function Ss(e){if("_rels/.rels"===e)return null;const t="/_rels/",n=e.lastIndexOf(t);if(n>=0&&e.endsWith(".rels")){return`${e.slice(0,n)}/${e.slice(n+7).slice(0,-5)}`}return e.startsWith("_rels/")&&e.endsWith(".rels")?e.slice(6,-5):void 0}function Ns(e){if(!e)return[];const t=(new ir).parseFromString(e,"application/xml").documentElement;if(!t)return[];const n=[];for(let r=0;r<t.childNodes.length;r+=1){const e=t.childNodes[r];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const o=e;if("Relationship"!==o.localName)continue;const i=o.getAttribute("Id"),a=o.getAttribute("Type"),s=o.getAttribute("Target");if(!i||!a||!s)continue;const l=o.getAttribute("TargetMode");n.push({id:i,type:a,target:s,targetMode:"External"===l?"External":"Internal"})}return n}function Es(e){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">${e.map(e=>{const t="External"===e.targetMode?' TargetMode="External"':"";return`<Relationship Id="${ys(e.id)}" Type="${ys(e.type)}" Target="${ys(e.target)}"${t}/>`}).join("")}</Relationships>`}function _s(e,t,n){return t.map(t=>{if("External"===t.targetMode)return{...t,resolvedTarget:void 0};const r=function(e,t){const n=t.replaceAll("\\","/"),r=(null==e?void 0:e.includes("/"))?e.slice(0,e.lastIndexOf("/")+1):"",o=n.startsWith("/")?n.slice(1):`${r}${n}`,i=[];for(const a of o.split("/"))if(a&&"."!==a)if(".."!==a)i.push(a);else{if(0===i.length)return null;i.pop()}return i.join("/")}(e,t.target);return r?{...t,resolvedTarget:r}:(null==n||n(t),t)})}const ks="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Ts="http://schemas.openxmlformats.org/package/2006/relationships",Is="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Cs="http://schemas.microsoft.com/office/word/2010/wordml";function As(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Rs(e,t){return Number.isFinite(e)?Math.max(0,Math.round(e/hr*wr)):t}function $s(e){return null!=e&&Number.isFinite(e)?Math.round(e/hr*wr):null}function Ds(e){return null!=e&&Number.isFinite(e)?Math.max(0,Math.round(20*e)):null}function Ps(e,t="000000"){return ji(e)??t}function Os(e){return`<w:shd w:val="clear" w:color="auto" w:fill="${Ps(e,"FFFFFF")}"/>`}function Ls(e){if("end"===e.kind)return`<w:bookmarkEnd w:id="${e.wId}"/>`;const t=(void 0!==e.colFirst?` w:colFirst="${e.colFirst}"`:"")+(void 0!==e.colLast?` w:colLast="${e.colLast}"`:"");return`<w:bookmarkStart w:id="${e.wId}" w:name="${As(e.name??"")}"${t}/>`}function Ms(e){switch(e.kind){case"start":return`<w:commentRangeStart w:id="${e.wId}"/>`;case"end":return`<w:commentRangeEnd w:id="${e.wId}"/>`;case"reference":return`<w:r><w:commentReference w:id="${e.wId}"/></w:r>`}}const Fs=`xmlns:w="${ks}" xmlns:w14="${Cs}" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du"`;function Bs(e){const t=e.comments.map(({comment:e,wId:t,paraId:n})=>{const r=void 0!==e.date?` w:date="${new Date(e.date).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",o=void 0!==e.dateUtc?` w16du:dateUtc="${new Date(e.dateUtc).toISOString().replace(/\.\d{3}Z$/,"Z")}"`:"",i=e.initials?` w:initials="${As(e.initials)}"`:"";return`<w:comment w:id="${t}" w:author="${As(e.author)}"${r}${o}${i}><w:p w14:paraId="${n}">${a=e.text,`<w:r>${a.split("\n").map((e,t)=>`${t>0?"<w:br/>":""}<w:t xml:space="preserve">${As(e)}</w:t>`).join("")}</w:r>`}</w:p></w:comment>`;var a}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${Fs}>${t}</w:comments>`}function Us(e){return void 0!==e&&Number.isSafeInteger(e)&&e>=1}function Hs(e){let t=1;for(const r of Object.values(e))Us(r.docxId)&&(t=Math.max(t,r.docxId+1));const n=new Set;return e=>{if(Us(e.docxId)&&!n.has(e.docxId))return n.add(e.docxId),e.docxId;for(;n.has(t);)t+=1;const r=t;return n.add(r),t+=1,r}}function zs(e,t="000000"){if("none"===e.type||e.width<=0)return'w:val="nil"/>';return`w:val="${"dotted"===e.type?"dotted":"dashed"===e.type?"dashed":"single"}" w:sz="${Math.max(1,Math.round(8*e.width))}" w:space="0" w:color="${Ps(e.color,t)}"/>`}function js(e){const t=[["top",e.borderTop],["left",e.borderLeft],["bottom",e.borderBottom],["right",e.borderRight],["between",e.borderBetween],["bar",e.borderBar]].filter(e=>null!=e[1]).map(([e,t])=>`<w:${e} ${zs(t)}`);return t.length>0?`<w:pBdr>${t.join("")}</w:pBdr>`:""}const qs="6F6F6F";function Ws(e){return e?Object.entries(e).map(([e,t])=>` ${e}="${As(t)}"`).join(""):""}function Gs(e){const t=/^\d+$/.test(e.id)?e.id:String(Array.from(e.id).reduce((e,t)=>31*e+t.charCodeAt(0)>>>0,0)),n=Number.isFinite(e.date)?new Date(e.date).toISOString():new Date(0).toISOString();return`w:id="${t}" w:author="${As(e.author)}" w:date="${n}"`}function Vs(e){if(!e||0===Object.keys(e).length)return"";const t=ui.filter(([,t])=>void 0!==e[t]).map(([t,n])=>`w:${t}="${e[n]?"1":"0"}"`).join(" ");return t?`<w:cnfStyle ${t}/>`:""}function Xs(e,t){return void 0===t?"":t?`<w:${e}/>`:`<w:${e} w:val="0"/>`}function Zs(e,t,n={}){if("number"==typeof t&&Number.isFinite(t))return`<w:${e} w:w="${Ds(t)??0}" w:type="dxa"/>`;if("string"==typeof t){const n=t.trim();if("auto"===n)return`<w:${e} w:w="0" w:type="auto"/>`;if(n.endsWith("%")){const t=Number.parseFloat(n.slice(0,-1));if(Number.isFinite(t))return`<w:${e} w:w="${Math.round(50*t)}" w:type="pct"/>`}const r=Number.parseFloat(n);if(Number.isFinite(r))return`<w:${e} w:w="${Math.round(r)}" w:type="dxa"/>`}return n.fallbackAuto?`<w:${e} w:w="0" w:type="auto"/>`:""}function Ys(e,t=!0){return Zs("tblW",e,{fallbackAuto:t})}function Qs(e){return zs(e??{width:.75,type:"solid",color:`#${qs}`},qs)}function Ks(e){if(!e)return"";const t=[],n=(e,n)=>{void 0!==n&&Number.isFinite(n)&&t.push(`<w:${e} w:w="${Ds(n)??0}" w:type="dxa"/>`)};return n("top",e.top),n("left",e.left),n("bottom",e.bottom),n("right",e.right),n("start",e.start),n("end",e.end),t.length>0?`<w:tblCellMar>${t.join("")}</w:tblCellMar>`:""}function Js(e,t){var n,r,o,i,a,s,l,c,u,d,f;const p=Math.max(1,Math.floor(e.colSpan??1)),h=[],m=Vs(e.conditionalStyle);m&&h.push(m);const g=Zs("tcW",(null==(n=e.style)?void 0:n.width)??t);g&&h.push(g),p>1&&h.push(`<w:gridSpan w:val="${p}"/>`),"restart"===e.vMerge?h.push('<w:vMerge w:val="restart"/>'):"continue"===e.vMerge&&h.push("<w:vMerge/>"),(null==(r=e.style)?void 0:r.shading)&&h.push(Os(e.style.shading));const v=Xs("noWrap",null==(o=e.style)?void 0:o.noWrap);v&&h.push(v);const w=Xs("tcFitText",null==(i=e.style)?void 0:i.fitText);if(w&&h.push(w),(null==(a=e.style)?void 0:a.headers)&&h.push(`<w:headers w:val="${As(e.style.headers)}"/>`),null==(s=e.style)?void 0:s.verticalAlign){const t="middle"===e.style.verticalAlign?"center":e.style.verticalAlign;h.push(`<w:vAlign w:val="${t}"/>`)}(null==(l=e.style)?void 0:l.textDirection)&&h.push(`<w:textDirection w:val="${e.style.textDirection}"/>`),h.push(function(e){const t=e.style,n=null==t?void 0:t.padding,r=Ds(n??(null==t?void 0:t.paddingTop)??0),o=Ds(n??(null==t?void 0:t.paddingBottom)??0);return`<w:tcMar><w:top w:w="${r??0}" w:type="dxa"/><w:left w:w="${Ds(n??(null==t?void 0:t.paddingLeft)??5.4)??0}" w:type="dxa"/><w:bottom w:w="${o??0}" w:type="dxa"/><w:right w:w="${Ds(n??(null==t?void 0:t.paddingRight)??5.4)??0}" w:type="dxa"/>${void 0!==(null==t?void 0:t.paddingStart)?`<w:start w:w="${Ds(t.paddingStart)??0}" w:type="dxa"/>`:""}${void 0!==(null==t?void 0:t.paddingEnd)?`<w:end w:w="${Ds(t.paddingEnd)??0}" w:type="dxa"/>`:""}</w:tcMar>`}(e)),h.push(function(e){var t,n,r,o,i,a,s,l;const c=[`<w:top ${Qs(null==(t=e.style)?void 0:t.borderTop)}`,`<w:left ${Qs(null==(n=e.style)?void 0:n.borderLeft)}`,`<w:bottom ${Qs(null==(r=e.style)?void 0:r.borderBottom)}`,`<w:right ${Qs(null==(o=e.style)?void 0:o.borderRight)}`];return(null==(i=e.style)?void 0:i.borderStart)&&c.push(`<w:start ${Qs(e.style.borderStart)}`),(null==(a=e.style)?void 0:a.borderEnd)&&c.push(`<w:end ${Qs(e.style.borderEnd)}`),(null==(s=e.style)?void 0:s.borderTopLeftToBottomRight)&&c.push(`<w:tl2br ${Qs(e.style.borderTopLeftToBottomRight)}`),(null==(l=e.style)?void 0:l.borderTopRightToBottomLeft)&&c.push(`<w:tr2bl ${Qs(e.style.borderTopRightToBottomLeft)}`),`<w:tcBorders>${c.join("")}</w:tcBorders>`}(e));const b=Xs("hideMark",null==(c=e.style)?void 0:c.hideMark);if(b&&h.push(b),null==(u=e.style)?void 0:u.propertyRevision){const t=e.style.propertyRevision,n=Js({...e,style:t.previous});h.push(`<w:tcPrChange ${Gs(t)}>${n}</w:tcPrChange>`)}if(null==(d=e.style)?void 0:d.revision){const t=e.style.revision,n="insert"===t.type?"cellIns":"delete"===t.type?"cellDel":"cellMerge",r="merge"===t.type?`${(null==(f=t.previous)?void 0:f.vMerge)?` w:vMergeOrig="${"restart"===t.previous.vMerge?"rest":"cont"}"`:""}${e.vMerge?` w:vMerge="${"restart"===e.vMerge?"rest":"cont"}"`:""}`:"";h.push(`<w:${n} ${Gs(t)}${r}/>`)}return h.length>0?`<w:tcPr>${h.join("")}</w:tcPr>`:""}function el(e,t){if(void 0===t||!Number.isFinite(t))return"";const n=Math.floor(t);return n>0?`<w:${e} w:val="${n}"/>`:""}function tl(e,t){const n="number"==typeof e?Ds(e):"string"==typeof e?Number.parseFloat(e):null,r=null!==n&&Number.isFinite(n);if(!r&&!t)return"";const o=[];return r&&o.push(`w:val="${Math.round(n)}"`),o.push(`w:hRule="${t??"atLeast"}"`),`<w:trHeight ${o.join(" ")}/>`}function nl(e){if(!e)return"";const t=[],n=el("gridBefore",e.gridBefore);n&&t.push(n);const r=el("gridAfter",e.gridAfter);r&&t.push(r);const o=Zs("wBefore",e.widthBefore);o&&t.push(o);const i=Zs("wAfter",e.widthAfter);i&&t.push(i);const a=Zs("tblCellSpacing",e.cellSpacing);a&&t.push(a);const s=tl(e.height,e.heightRule);s&&t.push(s);const l=Xs("cantSplit",e.cantSplit);l&&t.push(l);const c=Xs("hidden",e.hidden);c&&t.push(c);const u=Xs("tblHeader",e.isHeader);return u&&t.push(u),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),t.length>0?`<w:trPr>${t.join("")}</w:trPr>`:""}function rl(e){var t,n,r,o,i,a,s,l,c,u,d;const f=[],p=Vs(e.conditionalStyle);p&&f.push(p);const h=el("gridBefore",null==(t=e.style)?void 0:t.gridBefore);h&&f.push(h);const m=el("gridAfter",null==(n=e.style)?void 0:n.gridAfter);m&&f.push(m);const g=Zs("wBefore",null==(r=e.style)?void 0:r.widthBefore);g&&f.push(g);const v=Zs("wAfter",null==(o=e.style)?void 0:o.widthAfter);v&&f.push(v);const w=Zs("tblCellSpacing",null==(i=e.style)?void 0:i.cellSpacing);w&&f.push(w);const b=function(e){var t,n;return tl(null==(t=e.style)?void 0:t.height,null==(n=e.style)?void 0:n.heightRule)}(e);b&&f.push(b);const y=Xs("cantSplit",null==(a=e.style)?void 0:a.cantSplit);y&&f.push(y),((null==(s=e.style)?void 0:s.isHeader)??e.isHeader)&&f.push("<w:tblHeader/>");const x=Xs("hidden",null==(l=e.style)?void 0:l.hidden);if(x&&f.push(x),(null==(c=e.style)?void 0:c.align)&&f.push(`<w:jc w:val="${e.style.align}"/>`),null==(u=e.style)?void 0:u.propertyRevision){const t=e.style.propertyRevision;f.push(`<w:trPrChange ${Gs(t)}>${nl(t.previous)}</w:trPrChange>`)}if((null==(d=e.style)?void 0:d.revision)&&"merge"!==e.style.revision.type){const t=e.style.revision,n="insert"===t.type?"ins":"del";f.push(`<w:${n} ${Gs(t)}/>`)}return f.length>0?`<w:trPr>${f.join("")}</w:trPr>`:""}function ol(e){const t=null==e?void 0:e.borders;if(!t)return"";const n=di.map(([e,n])=>[e,t[n]]).filter(e=>!!e[1]).map(([e,t])=>`<w:${e} ${zs(t)}`).join("");return n?`<w:tblBorders>${n}</w:tblBorders>`:""}function il(e){var t,n,r,o,i,a,s,l,c,u,d,f,p,h;const m=[];if((null==(t=e.style)?void 0:t.styleId)&&m.push(`<w:tblStyle w:val="${As(e.style.styleId)}"/>`),null==(n=e.style)?void 0:n.tblLook){const t=e.style.tblLook;m.push(`<w:tblLook w:firstRow="${t.firstRow?"1":"0"}" w:lastRow="${t.lastRow?"1":"0"}" w:firstColumn="${t.firstCol?"1":"0"}" w:lastColumn="${t.lastCol?"1":"0"}" w:noHBand="${t.noHBand?"1":"0"}" w:noVBand="${t.noVBand?"1":"0"}"/>`)}(null==(r=e.style)?void 0:r.altTitle)&&m.push(`<w:tblCaption w:val="${As(e.style.altTitle)}"/>`),(null==(o=e.style)?void 0:o.altDescription)&&m.push(`<w:tblDescription w:val="${As(e.style.altDescription)}"/>`);const g=function(e){if(!e||0===Object.keys(e).length)return"";const t=e=>{const t=Ds(e);return null===t?void 0:String(t)},n={horzAnchor:e.horizontalAnchor,vertAnchor:e.verticalAnchor,tblpX:t(e.x),tblpY:t(e.y),tblpXSpec:e.xAlign,tblpYSpec:e.yAlign,topFromText:t(e.distanceTop),rightFromText:t(e.distanceRight),bottomFromText:t(e.distanceBottom),leftFromText:t(e.distanceLeft)};return`<w:tblpPr ${Object.entries(n).filter(e=>void 0!==e[1]).map(([e,t])=>`w:${e}="${As(t)}"`).join(" ")}/>`}(null==(i=e.style)?void 0:i.floating);g&&m.push(g);const v=e.gridCols&&e.gridCols.length>0?e.gridCols.reduce((e,t)=>e+t,0):void 0;m.push(Ys((null==(a=e.style)?void 0:a.width)??v)),(null==(s=e.style)?void 0:s.align)&&m.push(`<w:jc w:val="${e.style.align}"/>`);const w=Zs("tblCellSpacing",null==(l=e.style)?void 0:l.cellSpacing);w&&m.push(w);const b=Ks(null==(c=e.style)?void 0:c.defaultCellMargins);b&&m.push(b);const y=ol(e.style);y&&m.push(y);const x=Zs("tblInd",null==(u=e.style)?void 0:u.indentLeft);x&&m.push(x),m.push(`<w:tblLayout w:type="${(null==(d=e.style)?void 0:d.layout)??"fixed"}"/>`);const S=Xs("bidiVisual",null==(f=e.style)?void 0:f.bidiVisual);if(S&&m.push(S),(null==(p=e.style)?void 0:p.tblOverlap)&&m.push(`<w:tblOverlap w:val="${As(e.style.tblOverlap)}"/>`),null==(h=e.style)?void 0:h.revision){const t=e.style.revision,n=il({...e,style:t.previous});m.push(`<w:tblPrChange ${Gs(t)}>${n}</w:tblPrChange>`)}return`<w:tblPr>${m.join("")}</w:tblPr>`}function al(e,t){const n=function(e){var t,n,r;const o=[],i=[];for(let a=0;a<e.rows.length;a+=1){const r=e.rows[a];if(null==(t=r.style)?void 0:t.hidden)continue;let s=Math.max(0,Math.floor((null==(n=r.style)?void 0:n.gridBefore)??0));for(let e=0;e<r.cells.length;e+=1){for(;o[s]>0;)s+=1;const t=r.cells[e];if("continue"===t.vMerge)continue;const n=Math.max(1,t.colSpan??1),l=Math.max(1,t.rowSpan??1);i.push({rowIndex:a,cellIndex:e,visualRowIndex:a,visualColumnIndex:s,rowSpan:l,colSpan:n,cell:t});for(let e=0;e<n;e+=1)o[s+e]=Math.max(o[s+e]??0,l);s+=n}for(let e=0;e<o.length;e+=1)o[e]>0&&(o[e]-=1)}if((null==(r=e.style)?void 0:r.bidiVisual)&&i.length>0){const e=Math.max(...i.map(e=>e.visualColumnIndex+e.colSpan));for(const t of i)t.visualColumnIndex=e-t.visualColumnIndex-t.colSpan}return i}(e),r=new Map(n.map(e=>[`${e.rowIndex}:${e.cellIndex}`,e])),o=e.rows.map((n,o)=>{const i=n.cells.map((n,i)=>{const a=r.get(`${o}:${i}`),s=a&&e.gridCols?e.gridCols.slice(a.visualColumnIndex,a.visualColumnIndex+Math.max(1,a.colSpan)).reduce((e,t)=>e+t,0):void 0,l=(n.blocks.length>0?n.blocks:[{id:"",type:"paragraph",runs:[{id:"",text:"",kind:"text"}]}]).map(e=>t(e,n)).join(""),c="continue"===n.vMerge?"<w:p/>":l;return`<w:tc${Ws(n.extAttributes)}>${Js(n,s)}${c}</w:tc>`}).join("");return`<w:tr${Ws(n.extAttributes)}>${function(e,t){if(!e&&!t)return"";const n=[];void 0!==(null==e?void 0:e.width)&&n.push(Ys(e.width)),(null==e?void 0:e.align)&&n.push(`<w:jc w:val="${e.align}"/>`);const r=Zs("tblCellSpacing",null==e?void 0:e.cellSpacing);r&&n.push(r);const o=Zs("tblInd",null==e?void 0:e.indentLeft);o&&n.push(o);const i=e?ol(e):"";i&&n.push(i),(null==e?void 0:e.layout)&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);const a=Ks(null==e?void 0:e.defaultCellMargins);return a&&n.push(a),t&&n.push(t),n.length>0?`<w:tblPrEx>${n.join("")}</w:tblPrEx>`:""}(n.propertyExceptions,n.tblPrExChangeXml)}${rl(n)}${i}</w:tr>`}).join(""),i=e.gridCols?`<w:tblGrid>${e.gridCols.map(e=>`<w:gridCol w:w="${Ds(e)??0}"/>`).join("")}${e.gridRevision?`<w:tblGridChange ${Gs(e.gridRevision)}><w:tblGrid>${e.gridRevision.previous.map(e=>`<w:gridCol w:w="${Ds(e)??0}"/>`).join("")}</w:tblGrid></w:tblGridChange>`:""}</w:tblGrid>`:"";return`<w:tbl>${il(e)}${i}${o}</w:tbl>`}function sl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function ll(e){return`${e.namespaceURI??""}\0${function(e){return e.localName??e.tagName}(e)}`}function cl(e,t,n){const r=ll(e[t]);let o=0;for(let i=0;i<t;i+=1)ll(e[i])===r&&(o+=1);return n.filter(e=>ll(e)===r)[o]}function ul(e,t){!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===ks||r.namespaceURI===Is)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(e,t);const n=sl(e),r=sl(t);n.forEach((e,o)=>{const i=cl(n,o,r);if(e.namespaceURI===ks)return void(i&&ul(e,i));if(i)return void ul(e,i);const a=n.slice(o+1).map((e,t)=>cl(n,o+t+1,r)).find(e=>Boolean(e));t.insertBefore(e.cloneNode(!0),a??null)})}const dl=new Set(["tblStyle","tblpPr","tblOverlap","bidiVisual","tblStyleRowBandSize","tblStyleColBandSize","tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblLook","tblCaption","tblDescription","tblPrChange"]),fl=new Set(["gridCol","tblGridChange"]),pl=new Set(["tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar","tblPrExChange"]),hl=new Set(["cnfStyle","gridBefore","gridAfter","wBefore","wAfter","cantSplit","trHeight","tblHeader","tblCellSpacing","jc","hidden","ins","del","trPrChange"]),ml=new Set(["cnfStyle","tcW","gridSpan","hMerge","vMerge","tcBorders","shd","noWrap","tcMar","textDirection","tcFitText","vAlign","hideMark","headers","cellIns","cellDel","cellMerge","tcPrChange"]);function gl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function vl(e){return e.localName??e.tagName}function wl(e){return`${e.namespaceURI??""}\0${vl(e)}`}function bl(e,t){const n=(new ir).parseFromString(e,"application/xml").documentElement;return(null==n?void 0:n.namespaceURI)===ks&&vl(n)===t?n:void 0}function yl(e,t,n,r,o){var i;if(!e||function(e){return Boolean(e&&ga(e.xml))}(e))return t;if(e.semanticSignature===o)return e.xml;const a=bl(e.xml,n),s=function(e,t){if(e){const n=bl(e,t);if(n)return n}return(new ir).parseFromString(`<w:${t} xmlns:w="${ks}"/>`,"application/xml").documentElement}(t,n);if(!a||!s)return t;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if(!r||r.namespaceURI===Is)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(a,s);const l=gl(a),c=gl(s),u=new Map;for(const h of c){const e=wl(h),t=u.get(e)??[];t.push(h),u.set(e,t)}const d=new Map;for(const h of l){const e=wl(h),t=d.get(e)??0;d.set(e,t+1);const n=null==(i=u.get(e))?void 0:i[t];n&&ul(h,n)}const f=new Set(c.map(wl)),p=l.filter(e=>!(e.namespaceURI===ks&&r.has(vl(e))||f.has(wl(e))));for(const h of p){const e=l.indexOf(h),t=l.slice(e+1).find(e=>f.has(wl(e))),n=t?gl(s).find(e=>wl(e)===wl(t))??null:null;s.insertBefore(h.cloneNode(!0),n)}return t||function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes.item(t);if(n&&"http://www.w3.org/2000/xmlns/"!==n.namespaceURI)return!0}return!1}(s)||0!==gl(s).length?(new or).serializeToString(s):""}function xl(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Sl(e,t){return xl(e).filter(e=>e.namespaceURI===ks&&e.localName===t)}function Nl(e,t){return Sl(e,t)[0]}function El(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${ks}">${e}</oasis:root>`,"application/xml").documentElement;return n?xl(n).find(e=>e.namespaceURI===ks&&e.localName===t):void 0}function _l(e){return e?(new or).serializeToString(e):""}function kl(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Tl(e){const t=new Map;let n=0;for(const r of e)r.namespaceURI===ks&&("tblPr"===r.localName||"tblGrid"===r.localName?t.set(r,r.localName):"tr"===r.localName&&(t.set(r,`tr:${n}`),n+=1));return t}function Il(e,t){var n;const r=null==(n=Oa(e))?void 0:n.xml;if(!r)return;const o=El(r,"tbl");if(!o)return;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if(!r||r.namespaceURI===Is)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(o,t);const i=xl(o),a=xl(t),s=i.filter(e=>e.namespaceURI===ks&&"tr"===e.localName),l=a.filter(e=>e.namespaceURI===ks&&"tr"===e.localName);if(s.length!==l.length)return;const c=Tl(i),u=new Map([...Tl(a)].map(([e,t])=>[t,e]));for(let d=0;d<i.length;d+=1){const e=i[d];if(c.has(e))continue;if(kl(_l(e)))continue;const n=i.slice(d+1).map(e=>c.get(e)).find(e=>Boolean(e)),r=n?u.get(n)??null:null;t.insertBefore(e.cloneNode(!0),r)}}function Cl(e,t,n,r,o){if(!n)return void(t&&e.removeChild(t));const i=El(n,r);i&&(t?e.replaceChild(i.cloneNode(!0),t):e.insertBefore(i.cloneNode(!0),o))}function Al(e,t){const n=Nl(t,"tblPr"),r=Nl(t,"tblGrid"),o=Nl(t,"tr")??null;Cl(t,n,function(e,t){var n;return yl(null==(n=Oa(e))?void 0:n.tableProperties,t,"tblPr",dl,Ia(e))}(e,_l(n)),"tblPr",r??o);const i=Nl(t,"tblGrid");Cl(t,i,function(e,t){var n;return yl(null==(n=Oa(e))?void 0:n.tableGrid,t,"tblGrid",fl,Ca(e))}(e,_l(i)),"tblGrid",Nl(t,"tr")??null)}function Rl(e,t){const n=Sl(t,"tr");n.length===e.rows.length&&n.forEach((t,n)=>{const r=e.rows[n],o=Nl(t,"tblPrEx"),i=Nl(t,"trPr"),a=Nl(t,"tc")??null;Cl(t,o,function(e,t){var n;return yl(null==(n=Da(e))?void 0:n.propertyExceptions,t,"tblPrEx",pl,Ra(e))}(r,_l(o)),"tblPrEx",i??a);const s=Nl(t,"trPr"),l=function(e,t){var n;return yl(null==(n=Da(e))?void 0:n.rowProperties,t,"trPr",hl,Aa(e))}(r,_l(s));Cl(t,s,l.replace(/(<w:jc\b[^>]*\bw:val=")(?<value>start|end)("[^>]*\/?>)/g,(e,t,n,r)=>`${t}${"start"===n?"left":"right"}${r}`),"trPr",Nl(t,"tc")??null);const c=Sl(t,"tc");c.length===r.cells.length&&c.forEach((e,t)=>{const n=r.cells[t],o=Nl(e,"tcPr");Cl(e,o,function(e,t){var n;return yl(null==(n=function(e){return e.ooxmlSource}(e))?void 0:n.cellProperties,t,"tcPr",ml,$a(e))}(n,_l(o)),"tcPr",Nl(e,"p")??Nl(e,"tbl")??null)})})}function $l(e){for(const t of Sl(e,"tr"))for(const e of Sl(t,"tc")){for(const r of Sl(e,"tbl"))$l(r);const t=xl(e),n=t[t.length-1];if((null==n?void 0:n.namespaceURI)===ks&&"tbl"===n.localName){const t=e.ownerDocument;t&&e.appendChild(t.createElementNS(ks,"w:p"))}}}function Dl(e,t){const n=al(e,t),r=El(n,"tbl");if(!r)return n;Il(e,r),Al(e,r),Rl(e,r),$l(r);return(new or).serializeToString(r).replace(`<w:tbl xmlns:w="${ks}"`,"<w:tbl")}function Pl(e){if(!e||0===e.length)return"";const t=e.map(e=>{const t=Ds(e.position);if(null===t)return"";const n=[`w:val="${e.type}"`,`w:pos="${t}"`];return e.leader&&"none"!==e.leader?n.push(`w:leader="${e.leader}"`):"none"===e.leader&&n.push('w:leader="none"'),`<w:tab ${n.join(" ")}/>`}).filter(Boolean);return t.length>0?`<w:tabs>${t.join("")}</w:tabs>`:""}function Ol(e){const t=[];e.framePrXml&&t.push(e.framePrXml),e.suppressLineNumbers&&t.push("<w:suppressLineNumbers/>"),e.suppressAutoHyphens&&t.push("<w:suppressAutoHyphens/>"),e.bidi&&t.push("<w:bidi/>"),!1===e.kinsoku&&t.push('<w:kinsoku w:val="0"/>'),!1===e.wordWrap&&t.push('<w:wordWrap w:val="0"/>'),!1===e.overflowPunct&&t.push('<w:overflowPunct w:val="0"/>'),e.topLinePunct&&t.push("<w:topLinePunct/>"),!1===e.autoSpaceDE&&t.push('<w:autoSpaceDE w:val="0"/>'),!1===e.autoSpaceDN&&t.push('<w:autoSpaceDN w:val="0"/>'),!1===e.adjustRightInd&&t.push('<w:adjustRightInd w:val="0"/>'),e.textAlignment&&t.push(`<w:textAlignment w:val="${e.textAlignment}"/>`),e.textboxTightWrap&&t.push(`<w:textboxTightWrap w:val="${e.textboxTightWrap}"/>`),null!=e.divId&&t.push(`<w:divId w:val="${e.divId}"/>`);const n=(r=e.conditionalStyle)?`<w:cnfStyle w:val="${ui.map(([,e])=>r[e]?"1":"0").join("")}"/>`:"";var r;return n&&t.push(n),t}function Ll(e){const t=[];if(e.align&&t.push(`<w:jc w:val="${e.align}"/>`),void 0!==e.spacingBefore||void 0!==e.spacingAfter||void 0!==e.lineHeight){const n=[],r=$s(e.spacingBefore),o=$s(e.spacingAfter),i=void 0!==e.lineHeight&&null!==e.lineHeight&&Number.isFinite(e.lineHeight),a="exact"===e.lineRule||"atLeast"===e.lineRule,s=i?a?Rs(e.lineHeight,0):Math.round(240*e.lineHeight):null;null!==r&&n.push(`w:before="${r}"`),null!==o&&n.push(`w:after="${o}"`),null!==s&&n.push(`w:line="${s}"`),null!==s&&a&&n.push(`w:lineRule="${e.lineRule}"`),n.length>0&&t.push(`<w:spacing ${n.join(" ")}/>`)}if(void 0!==e.indentLeft||void 0!==e.indentRight||void 0!==e.indentFirstLine||void 0!==e.indentHanging){const n=[],r=$s(e.indentLeft),o=$s(e.indentRight),i=$s(e.indentFirstLine),a=$s(e.indentHanging);null!==r&&n.push(`w:left="${r}"`),null!==o&&n.push(`w:right="${o}"`),null!==i&&n.push(`w:firstLine="${i}"`),null!==a&&n.push(`w:hanging="${a}"`),n.length>0&&t.push(`<w:ind ${n.join(" ")}/>`)}const n=Pl(e.tabs);n&&t.push(n),e.pageBreakBefore&&t.push("<w:pageBreakBefore/>"),e.keepWithNext&&t.push("<w:keepNext/>"),e.keepLinesTogether&&t.push("<w:keepLines/>"),!1===e.widowControl&&t.push('<w:widowControl w:val="0"/>'),e.contextualSpacing&&t.push("<w:contextualSpacing/>"),e.mirrorIndents&&t.push("<w:mirrorIndents/>");const r=js(e);return r&&t.push(r),e.shading&&t.push(Os(e.shading)),e.textDirection&&t.push(`<w:textDirection w:val="${e.textDirection}"/>`),null!=e.outlineLevel&&t.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`),t.push(...Ol(e)),t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function Ml(e,t,n,r){var o,i;const a=[],s=function(e,t){const n=Vr(e.style,t);return{align:n.align,spacingBefore:n.spacingBefore,spacingAfter:n.spacingAfter,contextualSpacing:n.contextualSpacing,lineHeight:n.lineHeight,lineRule:n.lineRule,indentLeft:n.indentLeft,indentRight:n.indentRight,indentFirstLine:n.indentFirstLine,indentHanging:n.indentHanging,mirrorIndents:n.mirrorIndents,pageBreakBefore:n.pageBreakBefore,keepWithNext:n.keepWithNext,keepLinesTogether:n.keepLinesTogether,widowControl:n.widowControl,shading:n.shading,borderTop:n.borderTop,borderRight:n.borderRight,borderBottom:n.borderBottom,borderLeft:n.borderLeft,tabs:n.tabs,textDirection:n.textDirection,outlineLevel:n.outlineLevel,suppressLineNumbers:n.suppressLineNumbers,suppressAutoHyphens:n.suppressAutoHyphens,bidi:n.bidi,kinsoku:n.kinsoku,wordWrap:n.wordWrap,overflowPunct:n.overflowPunct,topLinePunct:n.topLinePunct,autoSpaceDE:n.autoSpaceDE,autoSpaceDN:n.autoSpaceDN,adjustRightInd:n.adjustRightInd,textAlignment:n.textAlignment,textboxTightWrap:n.textboxTightWrap,divId:n.divId,conditionalStyle:n.conditionalStyle,borderBetween:n.borderBetween,borderBar:n.borderBar,framePrXml:n.framePrXml}}(e,n),l=(null==(o=e.style)?void 0:o.align)??(null==r?void 0:r.align)??s.align;if((null==(i=e.style)?void 0:i.styleId)&&a.push(`<w:pStyle w:val="${As(e.style.styleId)}"/>`),l&&a.push(`<w:jc w:val="${l}"/>`),void 0!==s.spacingBefore||void 0!==s.spacingAfter||void 0!==s.lineHeight){const e=[],t=$s(s.spacingBefore),n=$s(s.spacingAfter),r=void 0!==s.lineHeight&&null!==s.lineHeight&&Number.isFinite(s.lineHeight),o="exact"===s.lineRule||"atLeast"===s.lineRule,i=r?o?Rs(s.lineHeight,0):Math.round(240*s.lineHeight):null;null!==t&&e.push(`w:before="${t}"`),null!==n&&e.push(`w:after="${n}"`),null!==i&&e.push(`w:line="${i}"`),null!==i&&o&&e.push(`w:lineRule="${s.lineRule}"`),e.length>0&&a.push(`<w:spacing ${e.join(" ")}/>`)}if(void 0!==s.indentLeft||void 0!==s.indentRight||void 0!==s.indentFirstLine||void 0!==s.indentHanging){const e=[],t=$s(s.indentLeft),n=$s(s.indentRight),r=$s(s.indentFirstLine),o=$s(s.indentHanging);null!==t&&e.push(`w:left="${t}"`),null!==n&&e.push(`w:right="${n}"`),null!==r&&e.push(`w:firstLine="${r}"`),null!==o&&e.push(`w:hanging="${o}"`),e.length>0&&a.push(`<w:ind ${e.join(" ")}/>`)}const c=Pl(s.tabs);c&&a.push(c),s.pageBreakBefore&&a.push("<w:pageBreakBefore/>"),s.keepWithNext&&a.push("<w:keepNext/>"),s.keepLinesTogether&&a.push("<w:keepLines/>"),!1===s.widowControl&&a.push('<w:widowControl w:val="0"/>'),s.contextualSpacing&&a.push("<w:contextualSpacing/>"),s.mirrorIndents&&a.push("<w:mirrorIndents/>");const u=js(s);u&&a.push(u),s.shading&&a.push(Os(s.shading)),s.textDirection&&a.push(`<w:textDirection w:val="${s.textDirection}"/>`),null!=s.outlineLevel&&a.push(`<w:outlineLvl w:val="${s.outlineLevel}"/>`),a.push(...Ol(s));const d=t.get(e.id);return d&&a.push(`<w:numPr><w:ilvl w:val="${d.level}"/><w:numId w:val="${d.numId}"/></w:numPr>`),a.length>0?`<w:pPr>${a.join("")}</w:pPr>`:""}const Fl={black:[0,0,0],blue:[0,0,255],cyan:[0,255,255],green:[0,128,0],magenta:[255,0,255],red:[255,0,0],yellow:[255,255,0],white:[255,255,255],darkBlue:[0,0,139],darkCyan:[0,139,139],darkGreen:[0,100,0],darkMagenta:[139,0,139],darkRed:[139,0,0],darkYellow:[184,134,11],darkGray:[169,169,169],lightGray:[211,211,211]},Bl={ffff00:"yellow",fef08a:"yellow",ff0000:"red","00ff00":"green","0000ff":"blue","00ffff":"cyan",ff00ff:"magenta","000000":"black",ffffff:"white"},Ul="http://schemas.openxmlformats.org/markup-compatibility/2006";function Hl(e){return`<w14:solidFill><w14:srgbClr w14:val="${Ps(e)}"/></w14:solidFill>`}function zl(e){if("solid"===e.type)return Hl(e.color);return`<w14:gradFill><w14:gsLst>${e.stops.map(e=>{const t=Ps(e.color);return`<w14:gs w14:pos="${Math.round(e.position*br)}"><w14:srgbClr w14:val="${t}">${void 0!==e.alpha?`<w14:alpha w14:val="${Math.round(e.alpha*br)}"/>`:""}</w14:srgbClr></w14:gs>`}).join("")}</w14:gsLst><w14:lin w14:ang="${Math.round((e.angle??0)*yr)}" w14:scaled="0"/></w14:gradFill>`}function jl(e,t){return`<w14:srgbClr w14:val="${Ps(e)}">${void 0!==t?`<w14:alpha w14:val="${Math.round(t*br)}"/>`:""}</w14:srgbClr>`}function ql(e){return`<mc:AlternateContent xmlns:mc="${Ul}"><mc:Choice Requires="w14">${e}</mc:Choice><mc:Fallback/></mc:AlternateContent>`}function Wl(e){return null!=e&&Number.isFinite(e)?Math.round(20*e):null}const Gl=function(e){if(!e)return null;const t=zi(e);return Hi.test(t)?[Number.parseInt(t.slice(0,2),16),Number.parseInt(t.slice(2,4),16),Number.parseInt(t.slice(4,6),16)]:null};function Vl(e){if(!e)return"";const t=[];if(e.bold&&t.push("<w:b/>","<w:bCs/>"),e.italic&&t.push("<w:i/>","<w:iCs/>"),e.underline){const n=e.underlineStyle??"single",r=e.underlineColor?` w:color="${As(e.underlineColor.replace(/^#/,""))}"`:"";t.push(`<w:u w:val="${As(n)}"${r}/>`)}if(e.strike&&t.push("<w:strike/>"),e.doubleStrike&&t.push("<w:dstrike/>"),e.outline&&t.push("<w:outline/>"),e.shadow&&t.push("<w:shadow/>"),e.emboss&&t.push("<w:emboss/>"),e.imprint&&t.push("<w:imprint/>"),e.smallCaps&&t.push("<w:smallCaps/>"),e.allCaps&&t.push("<w:caps/>"),e.hidden&&t.push("<w:vanish/>"),e.noProof&&t.push("<w:noProof/>"),e.webHidden&&t.push("<w:webHidden/>"),e.specVanish&&t.push("<w:specVanish/>"),!1===e.snapToGrid&&t.push('<w:snapToGrid w:val="0"/>'),e.textEffect&&t.push(`<w:effect w:val="${As(e.textEffect)}"/>`),e.textBorder&&t.push(`<w:bdr ${zs(e.textBorder)}`),void 0!==e.characterScale&&null!==e.characterScale&&Number.isFinite(e.characterScale)&&t.push(`<w:w w:val="${Math.max(1,Math.round(e.characterScale))}"/>`),void 0!==e.characterSpacing&&null!==e.characterSpacing){const n=Wl(e.characterSpacing);null!==n&&t.push(`<w:spacing w:val="${n}"/>`)}void 0!==e.baselineShift&&null!==e.baselineShift&&Number.isFinite(e.baselineShift)&&t.push(`<w:position w:val="${Math.round(2*e.baselineShift)}"/>`),void 0!==e.kerningThreshold&&null!==e.kerningThreshold&&Number.isFinite(e.kerningThreshold)&&t.push(`<w:kern w:val="${Math.max(0,Math.round(2*e.kerningThreshold))}"/>`);const n=function(e){switch(e){case"none":return"none";case"standard":return"standard";case"contextual":return"contextual";case"historical":return"historical";case"standardContextual":return"standardContextual";default:return null}}(e.ligatures);n&&t.push(`<w14:ligatures w14:val="${n}"/>`);const r=function(e){switch(e){case"proportional":return"proportional";case"tabular":return"tabular";default:return null}}(e.numberSpacing);r&&t.push(`<w14:numSpacing w14:val="${r}"/>`);const o=function(e){switch(e){case"lining":return"lining";case"oldStyle":return"oldStyle";default:return null}}(e.numberForm);o&&t.push(`<w14:numForm w14:val="${o}"/>`);const i="number"!=typeof(a=e.stylisticSet)||a<1||a>20?null:(1<<a-1).toString(16).toUpperCase().padStart(8,"0");var a;if(i&&t.push(`<w14:stylisticSets w14:val="${i}"/>`),e.contextualAlternates&&t.push('<w14:cntxtAlts w14:val="1"/>'),e.superscript?t.push('<w:vertAlign w:val="superscript"/>'):e.subscript&&t.push('<w:vertAlign w:val="subscript"/>'),e.fontFamily&&t.push(`<w:rFonts w:ascii="${As(e.fontFamily)}" w:hAnsi="${As(e.fontFamily)}" w:cs="${As(e.fontFamily)}"/>`),void 0!==e.fontSize&&null!==e.fontSize){const n=function(e){return null!=e&&Number.isFinite(e)?Math.round(e/hr*72*2):null}(e.fontSize);null!==n&&t.push(`<w:sz w:val="${n}"/>`,`<w:szCs w:val="${n}"/>`)}if(e.textFill){const n="solid"===e.textFill.type?e.textFill.color:e.color;t.push(function(e,t){const n=zl(e),r=Ps(t??"000000");return`<mc:AlternateContent xmlns:mc="${Ul}"><mc:Choice Requires="w14"><w14:textFill>${n}</w14:textFill></mc:Choice><mc:Fallback><w:color w:val="${r}"/></mc:Fallback></mc:AlternateContent>`}(e.textFill,n??null))}else e.color&&t.push(`<w:color w:val="${As(e.color.replace(/^#/,""))}"/>`);if(e.textOutline&&t.push(function(e){const t=Math.round(Math.max(0,e.widthPt)*vr),n=e.fill?zl(e.fill):e.color?Hl(e.color):"";return`<mc:AlternateContent xmlns:mc="${Ul}"><mc:Choice Requires="w14"><w14:textOutline w14:w="${t}" w14:cap="flat" w14:cmpd="sng" w14:algn="ctr">`+n+"</w14:textOutline></mc:Choice><mc:Fallback><w:outline/></mc:Fallback></mc:AlternateContent>"}(e.textOutline)),e.textShadow&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*vr),n=Math.round(Math.max(0,e.distPt)*vr),r=Math.round(e.dirDeg*yr),o=jl(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${Ul}"><mc:Choice Requires="w14"><w14:shadow w14:blurRad="${t}" w14:dist="${n}" w14:dir="${r}" w14:sx="100000" w14:sy="100000" w14:kx="0" w14:ky="0" w14:algn="ctr">`+o+"</w14:shadow></mc:Choice><mc:Fallback><w:shadow/></mc:Fallback></mc:AlternateContent>"}(e.textShadow)),e.glow&&t.push(function(e){const t=Math.round(Math.max(0,e.radiusPt)*vr),n=jl(e.color,e.alpha);return`<mc:AlternateContent xmlns:mc="${Ul}"><mc:Choice Requires="w14"><w14:glow w14:rad="${t}">${n}</w14:glow></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.glow)),e.reflection&&t.push(function(e){const t=Math.round(Math.max(0,e.blurPt)*vr),n=Math.round(e.startAlpha*br),r=Math.round(e.startPos*br),o=Math.round(e.endAlpha*br),i=Math.round(e.endPos*br),a=Math.round(Math.max(0,e.distPt)*vr);return`<mc:AlternateContent xmlns:mc="${Ul}"><mc:Choice Requires="w14"><w14:reflection w14:blurRad="${t}" w14:stA="${n}" w14:stPos="${r}" w14:endA="${o}" w14:endPos="${i}" w14:dist="${a}" w14:dir="5400000" w14:fadeDir="5400000" w14:sx="100000" w14:sy="-100000" w14:kx="0" w14:ky="0" w14:algn="bl"/></mc:Choice><mc:Fallback/></mc:AlternateContent>`}(e.reflection)),e.scene3dXml&&t.push(ql(e.scene3dXml)),e.props3dXml&&t.push(ql(e.props3dXml)),e.highlight&&t.push(`<w:highlight w:val="${As(function(e){if(e in Fl)return e;const t=e.trim().replace(/^#/,"").toLowerCase(),n=Bl[t];if(n)return n;const r=Gl(e);if(!r)return"yellow";let o="yellow",i=Number.POSITIVE_INFINITY;for(const[a,s]of Object.entries(Fl)){const e=(s[0]-r[0])**2+(s[1]-r[1])**2+(s[2]-r[2])**2;e<i&&(i=e,o=a)}return o}(e.highlight))}"/>`),e.shading&&t.push(Os(e.shading)),void 0!==e.fitText&&null!==e.fitText&&Number.isFinite(e.fitText)){const n=Wl(e.fitText);null!==n&&n>0&&t.push(`<w:fitText w:val="${n}"/>`)}if(e.rtl&&t.push("<w:rtl/>"),e.complexScript&&t.push("<w:cs/>"),e.emphasisMark&&t.push(`<w:em w:val="${As(e.emphasisMark)}"/>`),e.language){const n=[];e.language.value&&n.push(`w:val="${As(e.language.value)}"`),e.language.eastAsia&&n.push(`w:eastAsia="${As(e.language.eastAsia)}"`),e.language.bidi&&n.push(`w:bidi="${As(e.language.bidi)}"`),n.length>0&&t.push(`<w:lang ${n.join(" ")}/>`)}return t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function Xl(e){if(0===e.length)return"";var t;return`<w:t${/^\s|\s$/.test(t=e)||t.includes(" ")?' xml:space="preserve"':""}>${As(e)}</w:t>`}function Zl(e){if(0===e.length)return"<w:t></w:t>";let t="",n="";for(const r of e)"\n"!==r?"\t"!==r?"‑"!==r?""!==r?n+=r:(t+=Xl(n),n="",t+="<w:softHyphen/>"):(t+=Xl(n),n="",t+="<w:noBreakHyphen/>"):(t+=Xl(n),n="",t+="<w:tab/>"):(t+=Xl(n),n="",t+="<w:br/>");return t+=Xl(n),t||"<w:t></w:t>"}function Yl(e,t){return e??t?"1":"0"}function Ql(e,t,n){const r=As((null==t?void 0:t.relativeFrom)??n);if(null==t?void 0:t.align)return`<wp:${e} relativeFrom="${r}"><wp:align>${As(t.align)}</wp:align></wp:${e}>`;return`<wp:${e} relativeFrom="${r}"><wp:posOffset>${(null==t?void 0:t.offset)??0}</wp:posOffset></wp:${e}>`}function Kl(e){if(!e||e.length<3)return"";const t=e=>Math.round(21600*Math.min(1,Math.max(0,e))),n=(e,n)=>`<wp:${n} x="${t(e.x)}" y="${t(e.y)}"/>`,r=e[0];return`<wp:wrapPolygon edited="0">${[n(r,"start"),...e.slice(1).map(e=>n(e,"lineTo")),n(r,"lineTo")].join("")}</wp:wrapPolygon>`}function Jl(e){const{cx:t,cy:n,floating:r,docPrId:o,docPrName:i,altAttr:a,graphicXml:s}=e,l=As(i);if(!r)return`<w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/><wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:inline></w:drawing>`;const c=r.distT??0,u=r.distB??0,d=r.distL??0,f=r.distR??0,p=Ql("positionH",r.positionH,"column"),h=Ql("positionV",r.positionV,"paragraph"),m=function(e,t){switch(e){case"square":return'<wp:wrapSquare wrapText="bothSides"/>';case"tight":{const e=Kl(t);return e?`<wp:wrapTight wrapText="bothSides">${e}</wp:wrapTight>`:'<wp:wrapTight wrapText="bothSides"/>'}case"through":{const e=Kl(t);return e?`<wp:wrapThrough wrapText="bothSides">${e}</wp:wrapThrough>`:'<wp:wrapThrough wrapText="bothSides"/>'}case"topAndBottom":return"<wp:wrapTopAndBottom/>";default:return"<wp:wrapNone/>"}}(r.wrap,e.wrapPolygon);return`<w:drawing><wp:anchor distT="${c}" distB="${u}" distL="${d}" distR="${f}" simplePos="${Yl(r.simplePos,!1)}" relativeHeight="${r.relativeHeight??0}" behindDoc="${Yl(r.behindDoc,!1)}" locked="${Yl(r.locked,!1)}" layoutInCell="${Yl(r.layoutInCell,!0)}" allowOverlap="${Yl(r.allowOverlap,!0)}"><wp:simplePos x="0" y="0"/>${p}${h}<wp:extent cx="${t}" cy="${n}"/><wp:effectExtent l="0" t="0" r="0" b="0"/>${m}<wp:docPr id="${o}" name="${l}"${a}/>${s}</wp:anchor></w:drawing>`}function ec(e,t,n,r){const o=n.images.find(e=>e.rId===t);if(!o)return null;const i=(parseInt(t.replace(/\D+/g,""),10)||0)+1,a=void 0!==o.alt?` descr="${As(o.alt)}" title="${As(o.alt)}"`:"",s=function(e){let t="";if(e.rotation){const n=Math.round(e.rotation*yr);0!==n&&(t+=` rot="${n}"`)}return e.flipH&&(t+=' flipH="1"'),e.flipV&&(t+=' flipV="1"'),t}(o),l=function(e){if(!e)return"";const t=e=>e?Math.round(e*br):0,n=t(e.left),r=t(e.top),o=t(e.right),i=t(e.bottom);return 0===n&&0===r&&0===o&&0===i?"":`<a:srcRect l="${n}" t="${r}" r="${o}" b="${i}"/>`}(o.crop),c=(u=o.border)?`<a:ln${void 0!==u.widthPt?` w="${Math.round(u.widthPt*vr)}"`:""}><a:solidFill><a:srgbClr val="${As(u.color.replace(/^#/,""))}"/></a:solidFill>${u.dash?`<a:prstDash val="${u.dash}"/>`:""}</a:ln>`:"";var u;const d="tile"===o.fillMode?"<a:tile/>":"<a:stretch><a:fillRect/></a:stretch>",f="linked"===o.kind?`r:link="${t}"`:`r:embed="${t}"`,p=function(e){if(!e)return'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>';if(e.rawXml&&!e.adjustments)return e.rawXml;const t=Object.entries(e.adjustments??{}).map(([e,t])=>`<a:gd name="${As(e)}" fmla="val ${Number.isFinite(t)?t:0}"/>`).join(""),n=t?`<a:avLst>${t}</a:avLst>`:"<a:avLst/>";return`<a:prstGeom prst="${As(e.preset)}">${n}</a:prstGeom>`}(o.cropShape),h=function(e,t,n,r){return Jl({cx:e.cx,cy:e.cy,floating:e.floating,docPrId:t,docPrName:"Picture",altAttr:n,graphicXml:r,wrapPolygon:e.wrapPolygon})}(o,i,a,`<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:nvPicPr><pic:cNvPr id="0" name="Picture"${a}/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip ${f} xmlns:r="${Is}"/>${l}${d}</pic:blipFill><pic:spPr><a:xfrm${s}><a:off x="0" y="0"/><a:ext cx="${o.cx}" cy="${o.cy}"/></a:xfrm>${p}${c}</pic:spPr></pic:pic></a:graphicData></a:graphic>`);return`<w:r>${r}${h}</w:r>`}function tc(e,t,n,r,o,i){const a=Math.round(t.width*gr),s=Math.round(t.height*gr),l=n.textBoxDocPrIds.get(e.id)??1,c=t.name??"Text Box",u=void 0!==t.alt?` descr="${As(t.alt)}" title="${As(t.alt)}"`:"",d=function(e,t,n,r,o,i){const a=e.shape,s=As((null==a?void 0:a.preset)??"rect"),l=e.rotation?Math.round(e.rotation*yr):0,c=0!==l?` rot="${l}"`:"",u=(null==a?void 0:a.fill)?`<a:solidFill><a:srgbClr val="${As(a.fill.replace(/^#/,""))}"/></a:solidFill>`:"";let d="";((null==a?void 0:a.borderColor)||void 0!==(null==a?void 0:a.borderWidthPt))&&(d=`<a:ln${void 0!==(null==a?void 0:a.borderWidthPt)?` w="${Math.round(a.borderWidthPt*vr)}"`:""}>${(null==a?void 0:a.borderColor)?`<a:solidFill><a:srgbClr val="${As(a.borderColor.replace(/^#/,""))}"/></a:solidFill>`:""}<a:miter lim="800000"/></a:ln>`);const f=e.body,p=['rot="0"',`vert="${As((null==f?void 0:f.vert)??"horz")}"`];p.push(`wrap="${As((null==f?void 0:f.wrap)??"square")}"`),void 0!==(null==f?void 0:f.paddingLeft)&&p.push(`lIns="${Math.round(f.paddingLeft*gr)}"`),void 0!==(null==f?void 0:f.paddingTop)&&p.push(`tIns="${Math.round(f.paddingTop*gr)}"`),void 0!==(null==f?void 0:f.paddingRight)&&p.push(`rIns="${Math.round(f.paddingRight*gr)}"`),void 0!==(null==f?void 0:f.paddingBottom)&&p.push(`bIns="${Math.round(f.paddingBottom*gr)}"`),p.push(`anchor="${As((null==f?void 0:f.anchor)??"t")}"`),p.push('anchorCtr="0"');const h=(null==f?void 0:f.autoFit)?"<a:spAutoFit/>":"",m=e.blocks.length>0,g=m?i(e.blocks,r,o):"";return'<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"><wps:wsp>'+(m?'<wps:cNvSpPr txBox="1"><a:spLocks noChangeArrowheads="1"/></wps:cNvSpPr>':"<wps:cNvSpPr/>")+`<wps:spPr bwMode="auto"><a:xfrm${c}><a:off x="0" y="0"/><a:ext cx="${t}" cy="${n}"/></a:xfrm><a:prstGeom prst="${s}"><a:avLst/></a:prstGeom>`+u+d+"</wps:spPr>"+(m?`<wps:txbx><w:txbxContent>${g}</w:txbxContent></wps:txbx>`:"")+`<wps:bodyPr ${p.join(" ")}>${h}</wps:bodyPr></wps:wsp></a:graphicData></a:graphic>`}(t,a,s,n,r,i);return`<w:r>${o}${Jl({cx:a,cy:s,floating:t.floating,docPrId:l,docPrName:c,altAttr:u,graphicXml:d})}</w:r>`}const nc={footnote:"FootnoteReference",endnote:"EndnoteReference"};function rc(e){return`<w:r><w:rPr><w:rStyle w:val="${nc[e]}"/><w:vertAlign w:val="superscript"/></w:rPr><w:${e}Ref/></w:r>`}function oc(e,t,n,r){if(!t)return null;const o="footnote"===e?r.footnoteIdMap:r.endnoteIdMap,i=null==o?void 0:o.get(t.noteId);if(void 0===i)return null;const a={...n??{},superscript:!0},s=t.customMark?' w:customMarkFollows="1"':"",l=t.customMark?`<w:t xml:space="preserve">${As(t.customMark)}</w:t>`:"";return`<w:r>${Vl(a)}<w:${e}Reference${s} w:id="${i}"/>${l}</w:r>`}function ic(e,t){return void 0===t?"":` m:${e}="${As(String(t))}"`}function ac(e){return e.map(sc).join("")}function sc(e){switch(e.kind){case"text":return function(e){const t=e.style;return`<m:r>${t?`<m:rPr>${t.bold?"<m:b/>":""}${t.italic?"<m:i/>":""}${t.normalText?"<m:nor/>":""}${t.script?`<m:sty m:val="${As(t.script)}"/>`:""}</m:rPr>`:""}<m:t xml:space="preserve">${As(e.value)}</m:t></m:r>`}(e);case"fraction":return`<m:f>${!1===e.bar?'<m:fPr><m:type m:val="noBar"/></m:fPr>':""}<m:num>${ac(e.numerator)}</m:num><m:den>${ac(e.denominator)}</m:den></m:f>`;case"radical":return e.degree?`<m:rad><m:deg>${ac(e.degree)}</m:deg><m:e>${ac(e.radicand)}</m:e></m:rad>`:`<m:rad><m:e>${ac(e.radicand)}</m:e></m:rad>`;case"script":{const t=e.subscript&&e.superscript?"sSubSup":e.subscript?"sSub":"sSup";return`<m:${t}><m:e>${ac(e.base)}</m:e>${e.subscript?`<m:sub>${ac(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${ac(e.superscript)}</m:sup>`:""}</m:${t}>`}case"delimiter":return`<m:d><m:dPr>${ic("begChr",e.begin)}${ic("endChr",e.end)}${ic("sepChr",e.separator)}${!1===e.grow?'<m:grow m:val="0"/>':""}</m:dPr>${e.children.map(e=>`<m:e>${ac(e)}</m:e>`).join("")}</m:d>`;case"accent":return`<m:acc><m:accPr><m:chr${ic("val",e.accent)}/></m:accPr><m:e>${ac(e.children)}</m:e></m:acc>`;case"nary":return`<m:nary><m:naryPr><m:chr${ic("val",e.operator)}/>${!1===e.grow?'<m:grow m:val="0"/>':""}</m:naryPr>${e.subscript?`<m:sub>${ac(e.subscript)}</m:sub>`:""}${e.superscript?`<m:sup>${ac(e.superscript)}</m:sup>`:""}<m:e>${ac(e.children)}</m:e></m:nary>`;case"limit":return"low"===e.operator?`<m:limLow><m:e>${ac(e.base)}</m:e><m:lim>${ac(e.limit)}</m:lim></m:limLow>`:`<m:limUpp><m:e>${ac(e.base)}</m:e><m:lim>${ac(e.limit)}</m:lim></m:limUpp>`;case"matrix":return`<m:m>${e.rows.map(e=>`<m:mr>${e.map(e=>`<m:e>${ac(e)}</m:e>`).join("")}</m:mr>`).join("")}</m:m>`;case"box":return`<m:${e.hidden?"phant":e.border?"borderBox":"box"}><m:e>${ac(e.children)}</m:e></m:${e.hidden?"phant":e.border?"borderBox":"box"}>`;case"group":return ac(e.children);case"raw":return e.xml}}const lc="http://schemas.openxmlformats.org/markup-compatibility/2006",cc=new Set(["t","tab","br","cr","noBreakHyphen","softHyphen"]),uc=new Set([...cc,"drawing","pict","sym","fldChar","instrText","footnoteReference","endnoteReference","separator","continuationSeparator"]),dc=new Set(["rStyle","rFonts","b","bCs","i","iCs","caps","smallCaps","strike","dstrike","outline","shadow","emboss","imprint","noProof","snapToGrid","vanish","webHidden","color","spacing","w","kern","position","sz","szCs","highlight","u","effect","bdr","shd","fitText","vertAlign","rtl","cs","em","lang","eastAsianLayout","specVanish","oMath"]),fc=new Set(["ligatures","numSpacing","numForm","stylisticSets","cntxtAlts","textFill","textOutline","shadow","glow","reflection","scene3d","props3d"]);function pc(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function hc(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function mc(e){return e.localName??e.tagName}function gc(e,t,n){return hc(e).find(e=>e.namespaceURI===t&&mc(e)===n)}function vc(e){return`${e.namespaceURI??""}\0${mc(e)}`}function wc(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return t&&"r"===mc(t)?t:void 0}function bc(e){const t=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${ks}" xmlns:w14="${Cs}" xmlns:r="${Is}" xmlns:mc="${lc}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!t)return;const n=hc(t);return 1===n.length&&"r"===mc(n[0])?n[0]:void 0}function yc(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function xc(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&!yc(n)&&n.namespaceURI!==Is)return!0}return!1}function Sc(e){const t=mc(e);return e.namespaceURI===ks?dc.has(t):e.namespaceURI===Cs?fc.has(t):e.namespaceURI===lc&&"AlternateContent"===t}function Nc(e,t){const n=gc(e,ks,"rPr");if(!n)return;const r=hc(n),o=gc(t,ks,"rPr"),i=o?hc(o):[],a=new Set(i.map(vc)),s=r.filter(e=>!Sc(e)&&!a.has(vc(e)));if(0===s.length)return;const l=function(e){const t=gc(e,ks,"rPr");if(t)return t;const n=e.ownerDocument.createElementNS(ks,"w:rPr");return e.insertBefore(n,e.firstChild),n}(t);for(const c of s){const e=r.indexOf(c),t=r.slice(e+1).find(e=>a.has(vc(e))),n=t?hc(l).find(e=>vc(e)===vc(t))??null:null;l.insertBefore(c.cloneNode(!0),n)}}function Ec(e){const t=mc(e);return e.namespaceURI===lc&&"AlternateContent"===t?function(e){const t=e=>hc(e).some(e=>{const n=mc(e);return!(e.namespaceURI!==ks||!uc.has(n))||t(e)});return t(e)}(e):e.namespaceURI===ks&&("rPr"===t||uc.has(t))}function _c(e){const t=Na(e);if(t&&!pc(t.xml)&&(n=t.xml,!fa.test(n))){var n;if(t.semanticSignature===ya(e))return t.xml;if(t.structureSignature===xa(e))return function(e,t){if("text"!==e.kind)return;const n=wc(t);if(!n)return;const r=hc(n),o=r.filter(e=>e.namespaceURI===ks&&cc.has(mc(e))),i=o[0]??r.find(e=>!(e.namespaceURI===ks&&"rPr"===mc(e)))??null,a=bc(`<w:r>${Zl(e.text)}</w:r>`);if(!a)return;const s=hc(a);for(const l of s)n.insertBefore(l.cloneNode(!0),i);for(const l of o)n.removeChild(l);return(new or).serializeToString(n)}(e,t.xml)}}function kc(e,t){const n=Na(e);if(!n||pc(n.xml))return t;const r=wc(n.xml);if(!r||!function(e){if(xc(e))return!0;const t=gc(e,ks,"rPr");return!(!t||!xc(t)&&!hc(t).some(e=>!Sc(e)))||hc(e).some(e=>!Ec(e))}(r))return t;const o=bc(t);return o?(function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Is)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(r,o),Nc(r,o),function(e,t){const n=hc(e),r=hc(t),o=new Set(r.map(vc)),i=n.filter(e=>!Ec(e)&&!o.has(vc(e)));for(const a of i){const e=n.indexOf(a),r=n.slice(e+1).find(e=>Ec(e)),o=r?hc(t).find(e=>vc(e)===vc(r))??null:null;t.insertBefore(a.cloneNode(!0),o)}}(r,o),(new or).serializeToString(o)):t}function Tc(e,t,n,r,o){if(e.__isFootnoteRefMarker)return rc("footnote");if(e.__isEndnoteRefMarker)return rc("endnote");const i=_c(e);if(i)return i;const a=function(e,t,n){var r;const o=Gr(e.styles,t,n),i={bold:o.bold,italic:o.italic,underline:o.underline,underlineStyle:o.underlineStyle,underlineColor:o.underlineColor,strike:o.strike,doubleStrike:o.doubleStrike,superscript:o.superscript,subscript:o.subscript,smallCaps:o.smallCaps,allCaps:o.allCaps,hidden:o.hidden,noProof:o.noProof,webHidden:o.webHidden,specVanish:o.specVanish,rtl:o.rtl,complexScript:o.complexScript,snapToGrid:o.snapToGrid,fitText:o.fitText,emphasisMark:o.emphasisMark,textBorder:o.textBorder,outline:o.outline,shadow:o.shadow,emboss:o.emboss,imprint:o.imprint,textEffect:o.textEffect,characterScale:o.characterScale,characterSpacing:o.characterSpacing,baselineShift:o.baselineShift,kerningThreshold:o.kerningThreshold,ligatures:o.ligatures,numberSpacing:o.numberSpacing,numberForm:o.numberForm,stylisticSet:o.stylisticSet,contextualAlternates:o.contextualAlternates,fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color,textFill:o.textFill,textOutline:o.textOutline,textShadow:o.textShadow,glow:o.glow,reflection:o.reflection,scene3dXml:o.scene3dXml,props3dXml:o.props3dXml,highlight:o.highlight,shading:o.shading,language:o.language};return(null==(r=e.styles)?void 0:r.link)&&(i.link=e.styles.link),i}(e,n,r),s=()=>Vl(a),l=()=>`<w:r>${s()}${Zl(e.text)}</w:r>`,c=Cr(e,{footnoteReference:e=>function(e,t,n){const r=Tr(e);return oc("footnote",r?{noteId:r.footnoteId,customMark:r.customMark}:void 0,t,n)}(e,a,t)??l(),endnoteReference:e=>function(e,t,n){const r=Ir(e);return oc("endnote",r?{noteId:r.endnoteId,customMark:r.customMark}:void 0,t,n)}(e,a,t)??l(),fieldChar:e=>function(e,t){const n=(e.fieldLock?' w:fldLock="true"':"")+(e.dirty?' w:dirty="true"':"");return`<w:r>${t}<w:fldChar w:fldCharType="${e.kind}"${n}/></w:r>`}(e.fieldChar,s()),fieldInstruction:e=>{return t=e.fieldInstruction,`<w:r>${s()}<w:instrText xml:space="preserve">${As(t)}</w:instrText></w:r>`;var t},field:e=>{return t=e.field.type,n=s(),`<w:fldSimple w:instr="${"PAGE"===t?" PAGE ":" NUMPAGES "}"><w:r>${n}<w:t>1</w:t></w:r></w:fldSimple>`;var t,n},textBox:e=>tc(e,e.textBox,t,r,s(),o),image:e=>{const n=t.imageMap.get(e.id);if(n){const r=ec(e.id,n,t,s());if(null!==r)return r}return l()},sym:e=>`<w:r>${s()}<w:sym w:font="${As(e.sym.font)}" w:char="${e.sym.char}"/></w:r>`,math:e=>function(e){const t=`<m:oMath>${ac(e.children)}</m:oMath>`;return e.display?`<m:oMathPara>${t}</m:oMathPara>`:t}(e.math),text:()=>l()});return kc(e,c)}function Ic(e,t,n,r,o){var i;const a=Tc(e,t,n,r,o),s=null==(i=e.styles)?void 0:i.link;return s?function(e,t,n){if(t.startsWith("#"))return`<w:hyperlink w:anchor="${As(t.slice(1))}">${e}</w:hyperlink>`;const r=n.hyperlinkMap.get(t);return r?`<w:hyperlink r:id="${r}">${e}</w:hyperlink>`:e}(a,s,t):a}function Cc(e){if(!(void 0!==e.alias||void 0!==e.tag||void 0!==e.id||void 0!==e.lock||void 0!==e.appearance||void 0!==e.showingPlcHdr||void 0!==e.temporary||void 0!==e.color||void 0!==e.placeholderDocPart||void 0!==e.dataBinding||void 0!==e.subtype||(e.unknownXml??"").length>0))return"<w:sdtPr/>";let t="";return void 0!==e.alias&&(t+=`<w:alias w:val="${As(e.alias)}"/>`),void 0!==e.tag&&(t+=`<w:tag w:val="${As(e.tag)}"/>`),void 0!==e.id&&(t+=`<w:id w:val="${As(e.id)}"/>`),void 0!==e.lock&&(t+=`<w:lock w:val="${As(e.lock)}"/>`),void 0!==e.placeholderDocPart&&(t+=`<w:placeholder><w:docPart w:val="${As(e.placeholderDocPart)}"/></w:placeholder>`),void 0!==e.dataBinding&&(t+=function(e){let t="";void 0!==e.prefixMappings&&(t+=`<w:prefixMappings w:val="${As(e.prefixMappings)}"/>`);void 0!==e.xpath&&(t+=`<w:xpath w:val="${As(e.xpath)}"/>`);void 0!==e.storeItemID&&(t+=`<w:storeItemID w:val="${As(e.storeItemID)}"/>`);return t?`<w:dataBinding>${t}</w:dataBinding>`:""}(e.dataBinding)),void 0!==e.temporary&&(t+=`<w:temporary w:val="${e.temporary?"true":"false"}"/>`),void 0!==e.subtype&&(t+=function(e){switch(e.kind){case"text":return"<w:text/>";case"richText":return"<w:richText/>";case"picture":return"<w:picture/>";case"group":return"<w:group/>";case"equation":return"<w:equation/>";case"citation":return"<w:citation/>";case"bibliography":return"<w:bibliography/>";case"repeatingSection":return"<w:repeatingSection/>";case"repeatingSectionItem":return"<w:repeatingSectionItem/>";case"comboBox":case"dropDownList":{const t=(e.listItems??[]).map(Ac).join(""),n=void 0!==e.lastSelectedValue?`<w:lastSelectedValue w:val="${As(e.lastSelectedValue)}"/>`:"";return`<w:${e.kind}>${t}${n}</w:${e.kind}>`}case"date":{const t=void 0!==e.fullDate?` w:fullDate="${As(e.fullDate)}"`:"";let n="";return void 0!==e.dateFormat&&(n+=`<w:dateFormat w:val="${As(e.dateFormat)}"/>`),void 0!==e.lid&&(n+=`<w:lid w:val="${As(e.lid)}"/>`),void 0!==e.calendar&&(n+=`<w:calendar w:val="${As(e.calendar)}"/>`),void 0!==e.storeMappedDataAs&&(n+=`<w:storeMappedDataAs w:val="${As(e.storeMappedDataAs)}"/>`),`<w:date${t}>${n}</w:date>`}case"checkbox":{let t="";if(void 0!==e.checked&&(t+=`<w14:checked w14:val="${e.checked?"1":"0"}"/>`),void 0!==e.checkedStateFont||void 0!==e.checkedStateChar){t+=`<w14:checkedState${void 0!==e.checkedStateFont?` w14:font="${As(e.checkedStateFont)}"`:""}${void 0!==e.checkedStateChar?` w14:char="${As(e.checkedStateChar)}"`:""}/>`}if(void 0!==e.uncheckedStateFont||void 0!==e.uncheckedStateChar){t+=`<w14:uncheckedState${void 0!==e.uncheckedStateFont?` w14:font="${As(e.uncheckedStateFont)}"`:""}${void 0!==e.uncheckedStateChar?` w14:char="${As(e.uncheckedStateChar)}"`:""}/>`}return`<w14:checkbox>${t}</w14:checkbox>`}default:return e}}(e.subtype)),void 0!==e.appearance&&(t+=`<w:appearance w:val="${As(e.appearance)}"/>`),void 0!==e.showingPlcHdr&&(t+=`<w:showingPlcHdr w:val="${e.showingPlcHdr?"true":"false"}"/>`),void 0!==e.color&&(t+=`<w:color w:val="${As(e.color)}"/>`),e.unknownXml&&(t+=e.unknownXml),`<w:sdtPr>${t}</w:sdtPr>`}function Ac(e){return`<w:listItem${void 0!==e.displayText?` w:displayText="${As(e.displayText)}"`:""}${void 0!==e.value?` w:value="${As(e.value)}"`:""}/>`}const Rc=new Set(["pStyle","keepNext","keepLines","pageBreakBefore","framePr","widowControl","numPr","suppressLineNumbers","pBdr","shd","tabs","suppressAutoHyphens","kinsoku","wordWrap","overflowPunct","topLinePunct","autoSpaceDE","autoSpaceDN","bidi","adjustRightInd","snapToGrid","spacing","ind","contextualSpacing","mirrorIndents","suppressOverlap","jc","textDirection","textAlignment","textboxTightWrap","outlineLvl","divId","cnfStyle","rPr","sectPr","pPrChange"]);function $c(e){return/\br:(?:id|embed|link)\s*=/.test(e)}function Dc(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Pc(e){return e.localName??e.tagName}function Oc(e){return`${e.namespaceURI??""}\0${Pc(e)}`}function Lc(e,t){var n;if(!e||$c(e))return t;const r=function(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return(null==t?void 0:t.namespaceURI)===ks&&"pPr"===Pc(t)?t:void 0}(e),o=function(e){if(e){const t=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${ks}">${e}</oasis:root>`,"application/xml").documentElement,n=t?Dc(t):[];if(1===n.length&&n[0].namespaceURI===ks&&"pPr"===Pc(n[0]))return n[0]}return(new ir).parseFromString(`<w:pPr xmlns:w="${ks}"/>`,"application/xml").documentElement}(t);if(!r||!o)return t;!function(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes[n];if(!r||r.namespaceURI===Is)continue;const o=r.localName??r.name;(r.namespaceURI?t.hasAttributeNS(r.namespaceURI,o):t.hasAttribute(r.name))||(r.namespaceURI?t.setAttributeNS(r.namespaceURI,r.name,r.value):t.setAttribute(r.name,r.value))}}(r,o);const i=Dc(r),a=Dc(o),s=new Map;for(const d of a){const e=Oc(d),t=s.get(e)??[];t.push(d),s.set(e,t)}const l=new Map;for(const d of i){const e=Oc(d),t=l.get(e)??0;l.set(e,t+1);const r=null==(n=s.get(e))?void 0:n[t];r&&ul(d,r)}const c=new Set(a.map(Oc)),u=i.filter(e=>{return!(t=e,t.namespaceURI===ks&&Rc.has(Pc(t))||c.has(Oc(e)));var t});for(const d of u){const e=i.indexOf(d),t=i.slice(e+1).find(e=>c.has(Oc(e))),n=t?Dc(o).find(e=>Oc(e)===Oc(t))??null:null;o.insertBefore(d.cloneNode(!0),n)}return t||1!==o.attributes.length||0!==Dc(o).length?(new or).serializeToString(o):""}const Mc=new Set(["pPr","r","hyperlink","fldSimple","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd"]);function Fc(e){const t=[];for(let n=0;n<e.childNodes.length;n+=1){const r=e.childNodes[n];(null==r?void 0:r.nodeType)===r.ELEMENT_NODE&&t.push(r)}return t}function Bc(e){return e.localName??e.tagName}function Uc(e,t){const n=(new ir).parseFromString(`<oasis:root xmlns:oasis="urn:oasis:docx" xmlns:w="${ks}" xmlns:w14="${Cs}" xmlns:r="${Is}" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">${e}</oasis:root>`,"application/xml").documentElement;if(!n)return;const r=Fc(n);return 1===r.length&&r[0].namespaceURI===ks&&Bc(r[0])===t?r[0]:void 0}function Hc(e){return"http://www.w3.org/2000/xmlns/"===e.namespaceURI||"xmlns"===e.prefix||"xmlns"===e.name}function zc(e,t){const n=(r="pPr",Fc(e).find(e=>e.namespaceURI===ks&&Bc(e)===r));var r;if(!t)return n&&e.removeChild(n),!0;const o=Uc(t,"pPr");if(!o)return!1;const i=o.cloneNode(!0);return n?e.replaceChild(i,n):e.insertBefore(i,e.firstChild),!0}function jc(e,t,n,r){var o,i;const a=null==(o=ka(e))?void 0:o.xml;if(!a||r.hasOverrides||r.hasBoundaryTokens||e.dropCap||/\br:(?:id|embed|link)\s*=/.test(a))return;const s=function(e){const t=(new ir).parseFromString(e,"application/xml").documentElement;return(null==t?void 0:t.namespaceURI)===ks&&"p"===Bc(t)?t:void 0}(a);if(!s||!function(e){for(let t=0;t<e.attributes.length;t+=1){const n=e.attributes[t];if(n&&!Hc(n)&&n.namespaceURI!==Is)return!0}return Fc(e).some(e=>{const t=Bc(e);return e.namespaceURI!==ks||!Mc.has(t)})}(s))return;const l=function(e){const t=[],n=e=>{for(const r of Fc(e)){const e=Bc(r);r.namespaceURI!==ks||"r"!==e?(r.namespaceURI!==ks||"pPr"!==e&&"p"!==e&&"tbl"!==e&&"txbxContent"!==e)&&n(r):t.push(r)}};return n(e),t}(s);if(l.length!==n.length)return;const c=n.map(e=>Uc(e,"r"));if(!c.some(e=>!e)&&zc(s,t)){for(let e=0;e<l.length;e+=1)null==(i=l[e].parentNode)||i.replaceChild(c[e].cloneNode(!0),l[e]);return(new or).serializeToString(s)}}function qc(e){return"text"===e.kind||"sym"===e.kind}function Wc(e,t){return e.rows.some(e=>e.cells.some(e=>e.blocks.some(e=>function(e,t){var n,r;switch(e.type){case"paragraph":return Boolean((null==(n=t.bookmarkEventsByParagraph)?void 0:n.has(e.id))||(null==(r=t.commentEventsByParagraph)?void 0:r.has(e.id)));case"table":return Wc(e,t);default:return kr(e,"block")}}(e,t))))}function Gc(e,t,n){var r;switch(e.type){case"paragraph":return Xc(e,t,n);case"table":{const o=(null==(r=e.style)?void 0:r.pageBreakBefore)?'<w:p><w:r><w:br w:type="page"/></w:r></w:p>':"",i=function(e){var t;const n=null==(t=Oa(e))?void 0:t.xml;return Boolean(n&&/<w:trPr(?:\s|>)[\s\S]*?<w:jc\b[^>]*\bw:val="(?:start|end)"/.test(n))}(e)?void 0:function(e,t){const n=Oa(e);if(n&&!t.hasBoundaryTokens&&!ga(n.xml))return n.semanticSignature===Ta(e)?n.xml:void 0}(e,{hasBoundaryTokens:Wc(e,t)});return o+(i??Dl(e,(e,r)=>function(e,t,n,r){var o;return"paragraph"===e.type?Xc(e,n,r,{align:null==(o=t.style)?void 0:o.horizontalAlign}):Gc(e,n,r)}(e,r,t,n)))}default:return kr(e,"block")}}function Vc(e,t,n){var r,o,i;let a="",s=0;for(;s<e.length;){const l=e[s],c=null==(r=l.sdtWrappers)?void 0:r[0];if(!c){a+=Gc(l,t,n),s+=1;continue}const u=[];let d=s;for(;d<e.length&&(null==(i=null==(o=e[d].sdtWrappers)?void 0:o[0])?void 0:i.groupId)===c.groupId;){const t=e[d].sdtWrappers.slice(1);u.push({...e[d],sdtWrappers:t.length>0?t:void 0}),d+=1}const f=Vc(u,t,n);a+=`<w:sdt>${Cc(c.sdtPr)}${c.sdtEndPrXml??""}<w:sdtContent>${f}</w:sdtContent></w:sdt>`,s=d}return a}function Xc(e,t,n,r){var o,i,a;const s=e.runs.length>0?e.runs:[{id:"",text:"",kind:"text"}],l=e.dropCap?function(e){const t=Vl(e.style);var n;return`<w:p><w:pPr><w:keepNext/><w:framePr w:dropCap="${e.type}" w:lines="${e.lines}" w:wrap="around" w:vAnchor="text" w:hAnchor="text"/><w:spacing w:after="0"/>${t?`<w:rPr>${n=t,n.replace(/^<w:rPr>/,"").replace(/<\/w:rPr>$/,"")}</w:rPr>`:""}</w:pPr><w:r>${t}${Zl(e.text)}</w:r></w:p>`}(e.dropCap):"",c=null==(o=t.bookmarkEventsByParagraph)?void 0:o.get(e.id),u=null==(i=t.commentEventsByParagraph)?void 0:i.get(e.id),d=[...(c??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Ls(e)})),...(u??[]).map(e=>({offset:e.offset,seq:e.seq,xml:Ms(e)}))],f=function(e,t){const n=ka(e);if(!(!(null==n?void 0:n.xml)||!n.semanticSignature||t.hasOverrides||t.hasBoundaryTokens||ga(n.xml)||fa.test(n.xml)||pa.test(n.xml)))return n.semanticSignature===Ea(e)?n.xml:void 0}(e,{hasOverrides:Boolean(r),hasBoundaryTokens:d.length>0});if(f)return f;const p=0===d.length?s.map(r=>{var o;return Ic(r,t,null==(o=e.style)?void 0:o.styleId,n,Vc)}):void 0,h=p?p.join(""):function(e,t,n,r,o){const i=[...t].sort((e,t)=>e.offset-t.offset||e.seq-t.seq);let a=0,s=0,l="";const c=e=>{for(;a<i.length&&i[a].offset<=e;)l+=i[a].xml,a+=1};for(const u of e){const e=s,t=e+u.text.length;if(c(e),qc(u)&&u.text.length>0){let s=e;for(;a<i.length&&i[a].offset<t;){const t=i[a];t.offset>s&&(l+=Ic({...u,text:u.text.slice(s-e,t.offset-e)},n,r,o,Vc)),l+=t.xml,a+=1,s=t.offset}s<t&&(l+=Ic({...u,text:u.text.slice(s-e)},n,r,o,Vc))}else l+=Ic(u,n,r,o,Vc);s=t}return c(Number.POSITIVE_INFINITY),l}(s,d,t,null==(a=e.style)?void 0:a.styleId,n),m=function(e){var t;return null==(t=ka(e))?void 0:t.attributes}(e),g=m?` ${m}`:"",v=Ml(e,t.numberingInfo,n,r),w=function(e,t,n){var r;const o=null==(r=ka(e))?void 0:r.paragraphProperties;return!o||$c(o.xml)?t:n||e.list||o.semanticSignature!==_a(e)?Lc(o.xml,t):o.xml}(e,v,Boolean(r));if(p){const t=jc(e,w,p,{hasOverrides:Boolean(r),hasBoundaryTokens:!1});if(t)return t}return`${l}<w:p${g}>${w}${h}</w:p>`}function Zc(e){var t;const n=null==(t=e.footnotes)?void 0:t.items;if(!n)return[];const r=new Map,o=Hs(n);for(const{run:i}of function(e){return Ja(e,"footnoteReference")}(e)){const e=Tr(i);if(!e||r.has(e.footnoteId))continue;const t=n[e.footnoteId];t&&r.set(e.footnoteId,{footnoteId:e.footnoteId,docxId:o(t),footnote:t})}return Array.from(r.values())}function Yc(e){if(0===e.length)return[Qc()];const[t,...n]=e;return"paragraph"!==t.type?[Qc(!0),t,...n]:[(r=t,{...r,runs:[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0},...r.runs],style:(null==(o=r.style)?void 0:o.styleId)?r.style:{...r.style??{},styleId:"FootnoteText"}}),...n];var r,o}function Qc(e=!0){return{id:"synthetic:footnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:footnoteRef",text:"",kind:"text",styles:{styleId:"FootnoteReference",superscript:!0},__isFootnoteRefMarker:!0}]:[],{id:"synthetic:footnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"FootnoteText"}}}function Kc(e){var t;const n=null==(t=e.endnotes)?void 0:t.items;if(!n)return[];const r=new Map,o=Hs(n);for(const{run:i}of function(e){return Ja(e,"endnoteReference")}(e)){const e=Ir(i);if(!e||r.has(e.endnoteId))continue;const t=n[e.endnoteId];t&&r.set(e.endnoteId,{endnoteId:e.endnoteId,docxId:o(t),endnote:t})}return Array.from(r.values())}function Jc(e){if(0===e.length)return[eu()];const[t,...n]=e;return"paragraph"!==t.type?[eu(!0),t,...n]:[(r=t,{...r,runs:[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0},...r.runs],style:(null==(o=r.style)?void 0:o.styleId)?r.style:{...r.style??{},styleId:"EndnoteText"}}),...n];var r,o}function eu(e=!0){return{id:"synthetic:endnote-body-empty",type:"paragraph",runs:[...e?[{id:"synthetic:endnoteRef",text:"",kind:"text",styles:{styleId:"EndnoteReference",superscript:!0},__isEndnoteRefMarker:!0}]:[],{id:"synthetic:endnote-body-empty-text",text:"",kind:"text"}],style:{styleId:"EndnoteText"}}}const tu=["wholeTable","band1Horz","band2Horz","band1Vert","band2Vert","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function nu(e){const t={...e.borders?{...e.borders.borderTop?{borderTop:e.borders.borderTop}:{},...e.borders.borderLeft?{borderLeft:e.borders.borderLeft}:{},...e.borders.borderBottom?{borderBottom:e.borders.borderBottom}:{},...e.borders.borderRight?{borderRight:e.borders.borderRight}:{}}:{},...e.shading?{shading:e.shading}:{},...e.cellStyle};return Object.keys(t).length>0?Js({id:"table-style-cell",blocks:[],style:t}):""}function ru(e,t){if("number"==typeof t)return`<w:${e} w:w="${Ds(t)??0}" w:type="dxa"/>`;if("string"==typeof t&&t.endsWith("%")){const n=Number.parseFloat(t);return Number.isFinite(n)?`<w:${e} w:w="${Math.round(50*n)}" w:type="pct"/>`:""}return"auto"===t?`<w:${e} w:w="0" w:type="auto"/>`:""}function ou(e){if(!e)return"";const t=[];void 0!==e.rowBandSize&&t.push(`<w:tblStyleRowBandSize w:val="${e.rowBandSize}"/>`),void 0!==e.colBandSize&&t.push(`<w:tblStyleColBandSize w:val="${e.colBandSize}"/>`);const n=ru("tblW",e.width);n&&t.push(n);const r=ru("tblInd",e.indentLeft);r&&t.push(r);const o=ru("tblCellSpacing",e.cellSpacing);if(o&&t.push(o),e.align&&t.push(`<w:jc w:val="${e.align}"/>`),e.layout&&t.push(`<w:tblLayout w:type="${e.layout}"/>`),void 0!==e.bidiVisual&&t.push(`<w:bidiVisual w:val="${e.bidiVisual?"1":"0"}"/>`),e.defaultCellMargins){const n=Object.entries(e.defaultCellMargins).map(([e,t])=>`<w:${e} w:w="${Ds(t)??0}" w:type="dxa"/>`).join("");n&&t.push(`<w:tblCellMar>${n}</w:tblCellMar>`)}if(e.borders){const{borders:n}=e,r=di.filter(([,e])=>!!n[e]).map(([e,t])=>`<w:${e} ${zs(n[t])}`).join("");r&&t.push(`<w:tblBorders>${r}</w:tblBorders>`)}return t.length>0?`<w:tblPr>${t.join("")}</w:tblPr>`:""}function iu(e,t){const n=[],r=t.paragraphStyle?Ll(t.paragraphStyle):"";r&&n.push(r);const o=t.textStyle?Vl(t.textStyle):"";o&&n.push(o);const i=ou(t.tableStyle);i&&n.push(i);const a=t.rowStyle?nl(t.rowStyle):"";a&&n.push(a);const s=nu(t);return s&&n.push(s),0===n.length?"":`<w:tblStylePr w:type="${As(e)}">${n.join("")}</w:tblStylePr>`}function au(e){const t=[];if(t.push(`<w:name w:val="${As(e.name)}"/>`),e.basedOn&&t.push(`<w:basedOn w:val="${As(e.basedOn)}"/>`),e.nextStyle&&t.push(`<w:next w:val="${As(e.nextStyle)}"/>`),void 0!==e.uiPriority&&t.push(`<w:uiPriority w:val="${Math.max(0,Math.floor(e.uiPriority))}"/>`),void 0!==e.qFormat&&t.push(`<w:qFormat w:val="${e.qFormat?"1":"0"}"/>`),void 0!==e.semiHidden&&t.push(`<w:semiHidden w:val="${e.semiHidden?"1":"0"}"/>`),void 0!==e.unhideWhenUsed&&t.push(`<w:unhideWhenUsed w:val="${e.unhideWhenUsed?"1":"0"}"/>`),("paragraph"===e.type||"table"===e.type)&&e.paragraphStyle){const n=Ll(e.paragraphStyle);n&&t.push(n)}if(e.textStyle){const n=Vl(e.textStyle);n&&t.push(n)}if("table"===e.type&&e.tableStyle){const n=e.tableStyle,r=ou(n);if(r&&t.push(r),n.conditionalFormats){const e=[...tu.filter(e=>e in n.conditionalFormats),...Object.keys(n.conditionalFormats).filter(e=>!tu.includes(e))];for(const r of e){const e=n.conditionalFormats[r];if(e){const n=iu(r,e);n&&t.push(n)}}}}return`<w:style w:type="${"character"===e.type?"character":"table"===e.type?"table":"paragraph"}" w:styleId="${As(e.id)}"${e.isDefault?' w:default="1"':""}>${t.join("")}</w:style>`}function su(e,t,n,r,o,i,a,s,l){const c=r.map(e=>{const t="header"===e.kind?"application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml":"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml";return`<Override PartName="/word/${e.path}" ContentType="${t}"/>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>${function(e){const t=new Set;let n="";for(const r of e){const e=r.toLowerCase();if(t.has(e))continue;const o=Xi[e];o&&(t.add(e),n+=`<Default Extension="${e}" ContentType="${o}"/>`)}return n}(t)}<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>${a?'<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>':""}${e?'<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>':""}${n?'<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>':""}${o?'<Override PartName="/word/footnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"/>':""}${i?'<Override PartName="/word/endnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"/>':""}${s?'<Override PartName="/word/comments.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"/><Override PartName="/word/commentsExtended.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml"/>':""}${l?'<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>':""}${c}</Types>`}const lu={decimal:"decimal",lowerRoman:"lowerRoman",upperRoman:"upperRoman",lowerLetter:"lowerLetter",upperLetter:"upperLetter",symbol:"symbol"},cu={continuous:"continuous",eachSection:"eachSect"};function uu(e,t){if(!t)return null;const n=[];return t.numberFormat&&n.push(`<w:numFmt w:val="${lu[t.numberFormat]}"/>`),void 0!==t.startAt&&n.push(`<w:numStart w:val="${Math.max(1,t.startAt)}"/>`),t.restart&&n.push(`<w:numRestart w:val="${cu[t.restart]}"/>`),n.length>0?`<w:${e}>${n.join("")}</w:${e}>`:null}function du(e,t){let n="";for(const r of t)n+=`<Relationship Id="${r.rId}" Type="${Is}/hyperlink" Target="${As(r.href)}" TargetMode="External"/>`;for(const r of e){const e="linked"===r.kind?' TargetMode="External"':"";n+=`<Relationship Id="${r.rId}" Type="${Is}/image" Target="${As(r.target)}"${e}/>`}return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Ts}">${n}</Relationships>`}function fu(e,t){t(e);for(const n of e.runs)"textBox"===n.kind&&pu(n.textBox.blocks,t)}function pu(e,t){for(const n of e)switch(n.type){case"paragraph":fu(n,t);break;case"table":for(const e of n.rows)for(const n of e.cells)pu(n.blocks,t);break;default:kr(n,"block")}}function hu(e,t){for(let n=0;n<e.attributes.length;n+=1){const r=e.attributes.item(n);if((null==r?void 0:r.localName)===t)return r.value}}function mu(e,t,n){if(!e)return 0;const r=(new ir).parseFromString(e,"application/xml");let o=0;for(const i of Array.from(r.getElementsByTagNameNS(ks,t))){const e=hu(i,n);if(!e||!/^\d+$/.test(e))continue;const t=Number.parseInt(e,10);Number.isSafeInteger(t)&&(o=Math.max(o,t))}return o}function gu(e,t){return void 0!==e&&Number.isSafeInteger(e)&&e>=t}function vu(e){const t=new Map,n=new Map,r=[],o=new Set,i=new Set,a=function(e){var t;const n=e.sourcePackage;if(!n)return;const r=n.parts[n.mainDocumentPart],o=null==(t=null==r?void 0:r.relationships)?void 0:t.find(e=>"External"!==e.targetMode&&e.type.endsWith("/numbering")&&Boolean(e.resolvedTarget)),i=(null==o?void 0:o.resolvedTarget)?n.parts[o.resolvedTarget]:void 0;return"xml"===(null==i?void 0:i.kind)?i.data:void 0}(e);let s=Math.max(1,mu(a,"abstractNum","abstractNumId")+1),l=Math.max(1,mu(a,"num","numId")+1);const c=e=>{if(gu(e,0)&&!o.has(e))return o.add(e),e;for(;o.has(s);)s+=1;const t=s;return s+=1,o.add(t),t},u=e=>{if(gu(e,1)&&!i.has(e))return i.add(e),e;for(;i.has(l);)l+=1;const t=l;return l+=1,i.add(t),t},d=[],f=e=>{e.list&&d.push(e)};for(const p of Yr(e))pu(p.blocks,f),p.header&&pu(p.header,f),p.firstPageHeader&&pu(p.firstPageHeader,f),p.evenPageHeader&&pu(p.evenPageHeader,f),p.footer&&pu(p.footer,f),p.firstPageFooter&&pu(p.firstPageFooter,f),p.evenPageFooter&&pu(p.evenPageFooter,f);for(const p of d){const e=p.list,o=Math.max(0,e.level??0),i=e.bulletGlyph??"",a=e.instanceId?`instance:${e.instanceId}`:`legacy:${e.kind}:${o}:${i}`;let s=n.get(a);if(!s){const t=Vo(e),o=void 0!==(null==t?void 0:t.sourceNumId)&&e.instanceId===String(t.sourceNumId);s={abstractNumId:c(o?t.sourceAbstractNumId:void 0),numId:u(o?t.sourceNumId:void 0),levels:[]},n.set(a,s),r.push(s)}if(!s.levels.some(e=>e.level===o)){const t=Vo(e),n=Xo(e);s.levels.push({kind:e.kind,level:o,format:e.format,startAt:e.startAt,levelText:e.levelText,suffix:e.suffix,alignment:e.alignment,legal:e.legal,bulletGlyph:e.bulletGlyph,bulletFont:e.bulletFont,...t?{ooxml:{...t,...n?{format:n}:{format:void 0}}}:{}})}t.set(p.id,{numId:s.numId,level:o})}return{numberingInfo:t,definitions:r}}const wu=`xmlns:w="${ks}" xmlns:w14="${Cs}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:r="${Is}"`;function bu(e,t,n){const r=Yr(e),o=r.map((o,i)=>{var a;const s=Vc(o.blocks,t,e.styles),l=function(e,t,n,r){var o,i,a,s,l,c,u,d,f;const p=Rs(e.width,12240),h=Rs(e.height,15840),m=e.margins,g="landscape"===e.orientation?' w:orient="landscape"':"",v=[(null==(o=null==t?void 0:t.header)?void 0:o.first)?`<w:headerReference w:type="first" r:id="${t.header.first.relId}"/>`:"",(null==(i=null==t?void 0:t.header)?void 0:i.even)?`<w:headerReference w:type="even" r:id="${t.header.even.relId}"/>`:"",(null==(a=null==t?void 0:t.header)?void 0:a.default)?`<w:headerReference w:type="default" r:id="${t.header.default.relId}"/>`:"",(null==(s=null==t?void 0:t.footer)?void 0:s.first)?`<w:footerReference w:type="first" r:id="${t.footer.first.relId}"/>`:"",(null==(l=null==t?void 0:t.footer)?void 0:l.even)?`<w:footerReference w:type="even" r:id="${t.footer.even.relId}"/>`:"",(null==(c=null==t?void 0:t.footer)?void 0:c.default)?`<w:footerReference w:type="default" r:id="${t.footer.default.relId}"/>`:""].join(""),w=(null==(u=null==t?void 0:t.header)?void 0:u.first)||(null==(d=null==t?void 0:t.footer)?void 0:d.first)?"<w:titlePg/>":"",b=r&&"nextPage"!==r?`<w:type w:val="${r}"/>`:"",y=e.columns;let x="";if(y&&y.count>1){const e=Rs(y.space,0),t=y.separator?' w:sep="1"':"";if(!1===y.equalWidth&&(null==(f=y.columns)?void 0:f.length)){const n=y.columns.map(e=>`<w:col w:w="${Rs(e.width,0)}" w:space="${Rs(e.space,0)}"/>`).join("");x=`<w:cols w:num="${y.count}" w:space="${e}" w:equalWidth="0"${t}>${n}</w:cols>`}else x=`<w:cols w:num="${y.count}" w:space="${e}"${t}/>`}const S=n.pageNumbering;let N="";if(S){const e=[];void 0!==S.start&&e.push(`w:start="${S.start}"`),S.format&&e.push(`w:fmt="${As(S.format)}"`),S.chapterStyle&&e.push(`w:chapStyle="${As(S.chapterStyle)}"`),S.chapterSeparator&&e.push(`w:chapSep="${As(S.chapterSeparator)}"`),e.length>0&&(N=`<w:pgNumType ${e.join(" ")}/>`)}const E=n.verticalAlignment&&"top"!==n.verticalAlignment?`<w:vAlign w:val="${n.verticalAlignment}"/>`:"",_=n.bidi?"<w:bidi/>":"";return`<w:sectPr>${v}${w}${b}<w:pgSz w:w="${p}" w:h="${h}"${g}/><w:pgMar w:top="${Rs(m.top,1440)}" w:right="${Rs(m.right,1440)}" w:bottom="${Rs(m.bottom,1440)}" w:left="${Rs(m.left,1440)}" w:header="${Rs(m.header,720)}" w:footer="${Rs(m.footer,720)}" w:gutter="${Rs(m.gutter,0)}"/>${N}${x}${E}${_}</w:sectPr>`}(o.pageSettings,n[i],o,null==(a=r[i+1])?void 0:a.breakType);return s+l}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document ${wu}><w:body>${o}</w:body></w:document>`}function yu(e,t,n,r){const o="header"===e?"hdr":"ftr";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:${o} ${wu}>${Vc(t,n,r)}</w:${o}>`}function xu(e){return Array.isArray(e)?e.map(xu):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,xu(t)])):e}function Su(e){const t={id:e.id,text:e.text,styles:(n=e.styles,n?{...n}:void 0),revision:e.revision?{...e.revision}:void 0};var n;return function(e,t){const n=Na(e);return n&&(t.ooxmlSource={...n}),t}(e,Cr(e,{text:()=>({...t,kind:"text"}),image:e=>({...t,kind:"image",image:{...e.image}}),textBox:e=>{return{...t,kind:"textBox",textBox:(n=e.textBox,{...n,floating:n.floating?{...n.floating,positionH:n.floating.positionH?{...n.floating.positionH}:void 0,positionV:n.floating.positionV?{...n.floating.positionV}:void 0}:void 0,shape:n.shape?{...n.shape}:void 0,body:n.body?{...n.body}:void 0,blocks:Eu(n.blocks)})};var n},field:e=>({...t,kind:"field",field:{...e.field}}),fieldChar:e=>({...t,kind:"fieldChar",fieldChar:{...e.fieldChar}}),fieldInstruction:e=>({...t,kind:"fieldInstruction",fieldInstruction:e.fieldInstruction}),footnoteReference:e=>({...t,kind:"footnoteReference",footnoteReference:{...e.footnoteReference}}),endnoteReference:e=>({...t,kind:"endnoteReference",endnoteReference:{...e.endnoteReference}}),sym:e=>({...t,kind:"sym",sym:{...e.sym}}),math:e=>{return{...t,kind:"math",math:(n=e.math,xu(n))};var n}}))}function Nu(e){return{...e,runs:e.runs.map(Su),style:e.style?{...e.style}:void 0,list:e.list?{...e.list}:void 0}}function Eu(e){return e.map(e=>{switch(e.type){case"paragraph":return Nu(e);case"table":return{...e,style:e.style?{...e.style,defaultCellMargins:e.style.defaultCellMargins?{...e.style.defaultCellMargins}:void 0,floating:e.style.floating?{...e.style.floating}:void 0,revision:e.style.revision?{...e.style.revision,previous:{...e.style.revision.previous}}:void 0}:void 0,gridRevision:e.gridRevision?{...e.gridRevision,previous:[...e.gridRevision.previous]}:void 0,rows:e.rows.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,cells:e.cells.map(e=>({...e,conditionalStyle:e.conditionalStyle?{...e.conditionalStyle}:void 0,mergeRevisionState:e.mergeRevisionState?{...e.mergeRevisionState,previousCells:e.mergeRevisionState.previousCells.map(e=>({...e,mergeRevisionState:void 0,style:e.style?{...e.style}:void 0,blocks:Eu(e.blocks)}))}:void 0,style:e.style?{...e.style,revision:e.style.revision?{...e.style.revision}:void 0,propertyRevision:e.style.propertyRevision?{...e.style.propertyRevision,previous:{...e.style.propertyRevision.previous}}:void 0}:void 0,blocks:Eu(e.blocks)}))}))};default:return kr(e,"block")}})}function _u(e){var t,n;if(!e)return!1;return"caption"===(null==(n=null==(t=e.style)?void 0:t.styleId)?void 0:n.toLowerCase())&&e.runs.some(e=>{const t=function(e){return"fieldInstruction"===e.kind?e.fieldInstruction:void 0}(e);return void 0!==t&&new RegExp("\\bSEQ\\s+Figure\\b","i").test(t)})}function ku(e,t){return e.map(e=>{switch(e.type){case"paragraph":return _u(e)?function(e,t){if(!_u(e))return Nu(e);let n=!1,r=!1;const o=e.runs.map(e=>"fieldChar"===e.kind&&"separate"===e.fieldChar.kind?(n=!0,{...e,fieldChar:{...e.fieldChar}}):"fieldChar"===e.kind&&"end"===e.fieldChar.kind?(n=!1,{...e,fieldChar:{...e.fieldChar}}):n&&""!==e.text?e.text===String(t)?{...e}:(r=!0,{...e,text:String(t)}):{...e});return r?{...Nu(e),runs:o}:Nu(e)}(e,t.next++):Nu(e);case"table":return{...e,rows:e.rows.map(e=>({...e,cells:e.cells.map(e=>({...e,blocks:ku(e.blocks,t)}))}))};default:return kr(e,"block")}})}function Tu(e,t,n,r){const o=[],i=new Map,a=new Map,s=[],l=new Map;return pu(e,e=>{var t;for(const c of e.runs){const e=null==(t=c.styles)?void 0:t.link;if(e&&!e.startsWith("#")&&!l.has(e)){const t=`rIdLink${s.length+1}`;l.set(e,t),s.push({rId:t,href:e})}if("textBox"!==c.kind||a.has(c.id)||(a.set(c.id,n.nextTextBoxDocPrId),n.nextTextBoxDocPrId+=1),"image"!==c.kind)continue;const u=n.nextImageId,d=`rIdImg${u}`,f={rId:d,runId:c.id,cx:Math.round(c.image.width*gr),cy:Math.round(c.image.height*gr),alt:c.image.alt,crop:c.image.crop,cropShape:c.image.cropShape,cropFit:c.image.cropFit,fillMode:c.image.fillMode,border:c.image.border,rotation:c.image.rotation,flipH:c.image.flipH,flipV:c.image.flipV,floating:c.image.floating,wrapPolygon:c.image.wrapPolygon};if(c.image.linkedSrc){o.push({...f,kind:"linked",target:c.image.linkedSrc}),i.set(c.id,d),n.nextImageId+=1;continue}const p=Xr(r,c.image.src).match(/^data:([^;,]+);base64,(.*)$/);if(!p)continue;const h=Yi(p[1]);if(!h)continue;const m=p[2],g=`media/image${u}.${h}`;o.push({...f,kind:"embedded",target:g,base64:m}),i.set(c.id,d),n.nextImageId+=1}}),{numberingInfo:t.numberingInfo,definitions:t.definitions,images:o,imageMap:i,textBoxDocPrIds:a,hyperlinks:s,hyperlinkMap:l}}function Iu(e,t,n){n&&(e.file(`word/${t}.xml`,n.xml),(n.partContext.images.length>0||n.partContext.hyperlinks.length>0)&&e.file(`word/_rels/${t}.xml.rels`,du(n.partContext.images,n.partContext.hyperlinks)))}async function Cu(e){var t,n,r,i,a,s,l,c,u,d,f,p,h,m,g,v,w;e=function(e){const t={next:1},n=Yr(e).map(e=>({...e,blocks:ku(e.blocks,t),header:e.header?Eu(e.header):void 0,footer:e.footer?Eu(e.footer):void 0}));return{...e,sections:n}}(e);const b=new o,y=vu(e),x={nextImageId:1,nextTextBoxDocPrId:1000001},S=Yr(e),N=Zc(e),E=function(e){const t=new Map;for(const n of e)t.set(n.footnoteId,n.docxId);return t}(N),_=N.length>0,k=Kc(e),T=function(e){const t=new Map;for(const n of e)t.set(n.endnoteId,n.docxId);return t}(k),I=k.length>0,C=function(e){const t=e.bookmarks;if(!t||0===t.order.length)return;const n=new Map,r=new Set;for(const s of t.order){const e=t.items[s];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!r.has(o)&&(n.set(s,o),r.add(o))}let o=0;for(const s of t.order)if(!n.has(s)){for(;r.has(o);)o+=1;n.set(s,o),r.add(o),o+=1}const i=new Map,a=(e,t)=>{const n=i.get(e);n?n.push(t):i.set(e,[t])};for(const s of t.order){const e=t.items[s];if(!e)continue;const r=n.get(s);e.start&&a(e.start.paragraphId,{kind:"start",offset:e.start.offset,seq:e.start.seq??0,wId:r,name:e.name,...void 0!==e.colFirst?{colFirst:e.colFirst}:{},...void 0!==e.colLast?{colLast:e.colLast}:{}}),e.end&&a(e.end.paragraphId,{kind:"end",offset:e.end.offset,seq:e.end.seq??0,wId:r})}return i}(e),A=function(e){const t=e.comments;if(!t||0===t.order.length)return;const n=new Map,r=new Set;for(const l of t.order){const e=t.items[l];if(!e)continue;const o=e.docxIdHint;void 0!==o&&o>=0&&!r.has(o)&&(n.set(l,o),r.add(o))}let o=0;for(const l of t.order)if(!n.has(l)){for(;r.has(o);)o+=1;n.set(l,o),r.add(o),o+=1}const i=new Map,a=(e,t)=>{const n=i.get(e);n?n.push(t):i.set(e,[t])},s=[];return t.order.forEach((e,r)=>{const o=t.items[e];if(!o)return;const i=n.get(e),l=(1073741824+r).toString(16).toUpperCase();s.push({comment:o,wId:i,paraId:l}),o.start&&a(o.start.paragraphId,{kind:"start",offset:o.start.offset,seq:o.start.seq??0,wId:i}),o.end&&(a(o.end.paragraphId,{kind:"end",offset:o.end.offset,seq:o.end.seq??0,wId:i}),a(o.end.paragraphId,{kind:"reference",offset:o.end.offset,seq:(o.end.seq??0)+.5,wId:i}))}),{eventsByParagraph:i,comments:s}}(e),R=e=>(e.footnoteIdMap=E,e.endnoteIdMap=T,e.bookmarkEventsByParagraph=C,e.commentEventsByParagraph=null==A?void 0:A.eventsByParagraph,e),$=R(Tu(S.flatMap(e=>e.blocks),y,x,e)),D=void 0!==A,P=[],O=S.map(()=>({}));let L=1,M=1;S.forEach((t,n)=>{const r=(t,r,o)=>{var i;if(!o||0===o.length)return;const a="header"===t?L:M,s=`${t}${a}.xml`,l=`rId${"header"===t?"Header":"Footer"}${a}`,c=R(Tu(o,y,x,e));P.push({kind:t,type:r,path:s,relId:l,blocks:o,context:c});const u="header"===t?"header":"footer";((i=O[n])[u]??(i[u]={}))[r]={relId:l},"header"===t?L+=1:M+=1};r("header","first",t.firstPageHeader),r("header","even",t.evenPageHeader),r("header","default",t.header),r("footer","first",t.firstPageFooter),r("footer","even",t.evenPageFooter),r("footer","default",t.footer)});const F=y.definitions.length>0,B=S.some(e=>{var t,n;return((null==(t=e.evenPageHeader)?void 0:t.length)??0)>0||((null==(n=e.evenPageFooter)?void 0:n.length)??0)>0}),U=B||void 0!==(null==(t=e.settings)?void 0:t.defaultTabStop)||void 0!==(null==(n=e.settings)?void 0:n.allowSpaceOfSameStyleInTable)||void 0!==(null==(r=e.settings)?void 0:r.autoHyphenation)||void 0!==(null==(i=e.settings)?void 0:i.consecutiveHyphenLimit)||void 0!==(null==(a=e.settings)?void 0:a.hyphenationZone)||void 0!==(null==(s=e.settings)?void 0:s.doNotHyphenateCaps)||void 0!==(null==(l=e.footnotes)?void 0:l.settings)||void 0!==(null==(c=e.endnotes)?void 0:c.settings),H=[...$.images,...P.flatMap(e=>e.context.images)],z=_?function(e,t,n,r,o,i,a){const s=o(t.flatMap(e=>Yc(e.footnote.blocks)));s.footnoteIdMap=a;const l=t.map(e=>{const t=Vc(Yc(e.footnote.blocks),s,i);return`<w:footnote w:id="${e.docxId}">${t}</w:footnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:footnotes xmlns:w="${ks}" xmlns:w14="${Cs}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Is}"><w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote><w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>${l}</w:footnotes>`,partContext:s}}(0,N,0,0,t=>Tu(t,y,x,e),e.styles,E):null;z&&H.push(...z.partContext.images);const j=I?function(e,t,n,r,o,i,a){const s=o(t.flatMap(e=>Jc(e.endnote.blocks)));s.endnoteIdMap=a;const l=t.map(e=>{const t=Vc(Jc(e.endnote.blocks),s,i);return`<w:endnote w:id="${e.docxId}">${t}</w:endnote>`}).join("");return{xml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:endnotes xmlns:w="${ks}" xmlns:w14="${Cs}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="${Is}"><w:endnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:endnote><w:endnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:endnote>${l}</w:endnotes>`,partContext:s}}(0,k,0,0,t=>Tu(t,y,x,e),e.styles,T):null;j&&H.push(...j.partContext.images);const q=H.filter(e=>"embedded"===e.kind).map(e=>{var t;return null==(t=e.target.split(".").pop())?void 0:t.toLowerCase()}).filter(e=>Boolean(e)),W=null!=e.styles&&Object.keys(e.styles).length>0,G=((null==(u=e.fontTable)?void 0:u.length)??0)>0;b.file("[Content_Types].xml",su(F,q,U,P,_,I,W,D,G)),b.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Ts}"><Relationship Id="rId1" Type="${Is}/officeDocument" Target="word/document.xml"/></Relationships>`),b.file("word/document.xml",bu(e,$,O)),W&&b.file("word/styles.xml",function(e){const t=Object.values(e).map(au).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="${Cs}">${t}</w:styles>`}(e.styles)),F&&b.file("word/numbering.xml",function(e){const t=e.map(({abstractNumId:e,levels:t})=>`<w:abstractNum w:abstractNumId="${e}">${t.sort((e,t)=>e.level-t.level).map(({kind:e,level:t,format:n,startAt:r,levelText:o,suffix:i,alignment:a,legal:s,bulletGlyph:l,bulletFont:c,ooxml:u})=>{const d="bullet"===e?"bullet":(null==u?void 0:u.format)??n??"decimal",f=o??("bullet"===e?l??"":`%${t+1}.`),p=r??1,h="bullet"===e?c??"Symbol":void 0,m=h?`<w:rPr><w:rFonts w:ascii="${As(h)}" w:hAnsi="${As(h)}" w:hint="default"/></w:rPr>`:"",g=i&&"tab"!==i?`<w:suff w:val="${i}"/>`:"",v=s?"<w:isLgl/>":"",w=void 0!==(null==u?void 0:u.restartAfterLevel)?`<w:lvlRestart w:val="${u.restartAfterLevel}"/>`:"",b=(null==u?void 0:u.paragraphStyleId)?`<w:pStyle w:val="${As(u.paragraphStyleId)}"/>`:"";return`<w:lvl w:ilvl="${t}"><w:start w:val="${p}"/><w:numFmt w:val="${As(d)}"/>${w}${b}<w:lvlText w:val="${As(f)}"/><w:lvlJc w:val="${a??"left"}"/>${g}${v}${m}</w:lvl>`}).join("")}</w:abstractNum>`).join(""),n=e.map(({abstractNumId:e,numId:t})=>`<w:num w:numId="${t}"><w:abstractNumId w:val="${e}"/></w:num>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:numbering xmlns:w="${ks}">${t}${n}</w:numbering>`}(y.definitions)),(W||F||U||$.images.length>0||$.hyperlinks.length>0||P.length>0||_||I||D||G)&&b.file("word/_rels/document.xml.rels",function(e,t,n,r,o,i,a,s,l,c){let u="";s&&(u+=`<Relationship Id="rIdStyles" Type="${Is}/styles" Target="styles.xml"/>`),e&&(u+=`<Relationship Id="rIdNum" Type="${Is}/numbering" Target="numbering.xml"/>`),t&&(u+=`<Relationship Id="rIdSettings" Type="${Is}/settings" Target="settings.xml"/>`);for(const d of r)u+=`<Relationship Id="${d.rId}" Type="${Is}/hyperlink" Target="${As(d.href)}" TargetMode="External"/>`;for(const d of n){const e="linked"===d.kind?' TargetMode="External"':"";u+=`<Relationship Id="${d.rId}" Type="${Is}/image" Target="${As(d.target)}"${e}/>`}for(const d of o){const e="header"===d.kind?"header":"footer";u+=`<Relationship Id="${d.relId}" Type="${Is}/${e}" Target="${d.path}"/>`}return i&&(u+=`<Relationship Id="rIdFootnotes" Type="${Is}/footnotes" Target="footnotes.xml"/>`),a&&(u+=`<Relationship Id="rIdEndnotes" Type="${Is}/endnotes" Target="endnotes.xml"/>`),l&&(u+=`<Relationship Id="rIdComments" Type="${Is}/comments" Target="comments.xml"/>`,u+='<Relationship Id="rIdCommentsExtended" Type="http://schemas.microsoft.com/office/2011/relationships/commentsExtended" Target="commentsExtended.xml"/>'),c&&(u+=`<Relationship Id="rIdFontTable" Type="${Is}/fontTable" Target="fontTable.xml"/>`),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="${Ts}">${u}</Relationships>`}(F,U,$.images,$.hyperlinks,P,_,I,W,D,G)),G&&b.file("word/fontTable.xml",function(e){const t=e.map(e=>{const t=[];if(e.altName&&t.push(`<w:altName w:val="${As(e.altName)}"/>`),e.panose1&&t.push(`<w:panose1 w:val="${As(e.panose1)}"/>`),e.charset&&t.push(`<w:charset w:val="${As(e.charset)}"/>`),e.family&&t.push(`<w:family w:val="${As(e.family)}"/>`),e.pitch&&t.push(`<w:pitch w:val="${As(e.pitch)}"/>`),e.sig){const n=Object.entries(e.sig).map(([e,t])=>`w:${e}="${As(t)}"`).join(" ");n&&t.push(`<w:sig ${n}/>`)}return`<w:font w:name="${As(e.name)}">${t.join("")}</w:font>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:fonts xmlns:w="${ks}">${t}</w:fonts>`}(e.fontTable)),U&&b.file("word/settings.xml",function(e,t,n,r,o,i){const a=[],s=Ds(t);null!==s&&a.push(`<w:defaultTabStop w:val="${s}"/>`),(null==i?void 0:i.autoHyphenation)&&a.push("<w:autoHyphenation/>"),void 0!==(null==i?void 0:i.consecutiveHyphenLimit)&&i.consecutiveHyphenLimit>=0&&a.push(`<w:consecutiveHyphenLimit w:val="${i.consecutiveHyphenLimit}"/>`);const l=Ds(null==i?void 0:i.hyphenationZone);null!==l&&a.push(`<w:hyphenationZone w:val="${l}"/>`),(null==i?void 0:i.doNotHyphenateCaps)&&a.push("<w:doNotHyphenateCaps/>");const c=uu("footnotePr",n);c&&a.push(c);const u=uu("endnotePr",r);return u&&a.push(u),e&&a.push("<w:evenAndOddHeaders/>"),o&&a.push("<w:compat><w:allowSpaceOfSameStyleInTable/></w:compat>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:settings xmlns:w="${ks}">${a.join("")}</w:settings>`}(B,null==(d=e.settings)?void 0:d.defaultTabStop,null==(f=e.footnotes)?void 0:f.settings,null==(p=e.endnotes)?void 0:p.settings,null==(h=e.settings)?void 0:h.allowSpaceOfSameStyleInTable,{autoHyphenation:null==(m=e.settings)?void 0:m.autoHyphenation,consecutiveHyphenLimit:null==(g=e.settings)?void 0:g.consecutiveHyphenLimit,hyphenationZone:null==(v=e.settings)?void 0:v.hyphenationZone,doNotHyphenateCaps:null==(w=e.settings)?void 0:w.doNotHyphenateCaps}));for(const o of P)b.file(`word/${o.path}`,yu(o.kind,o.blocks,o.context,e.styles)),(o.context.images.length>0||o.context.hyperlinks.length>0)&&b.file(`word/_rels/${o.path}.rels`,du(o.context.images,o.context.hyperlinks));Iu(b,"footnotes",z),Iu(b,"endnotes",j),A&&(b.file("word/comments.xml",Bs(A)),b.file("word/commentsExtended.xml",function(e){const t=e.comments.map(({comment:e,paraId:t})=>`<w15:commentEx w15:paraId="${t}" w15:done="${e.resolved?"1":"0"}"/>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${Fs}>${t}</w15:commentsEx>`}(A)));for(const o of H)"embedded"===o.kind&&o.base64&&b.file(`word/${o.target}`,o.base64,{base64:!0});return b.generateAsync({type:"arraybuffer"})}function Au(e){let t=2166136261;for(const n of e)t^=n,t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}async function Ru(e){return async function(e){const t=await o.loadAsync(e),n={};for(const[r,o]of Object.entries(t.files))o.dir||(n[xs(r)]=Au(await o.async("uint8array")));return n}(await Cu(e))}const $u="word/document.xml";function Du(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function Pu(e,t){const n=t.overrides[e];if(n)return n;const r=e.includes(".")?e.slice(e.lastIndexOf(".")+1).toLowerCase():"";return t.defaults[r]}function Ou(e,t){return!(!e.endsWith(".xml")&&!e.endsWith(".rels"))||("application/xml"===t||Boolean(null==t?void 0:t.endsWith("+xml")))}async function Lu(e){var t;const n=await o.loadAsync(e),r=[],i=await(null==(t=n.file("[Content_Types].xml"))?void 0:t.async("string")),a=function(e){var t;const n={defaults:{},overrides:{}};if(!e)return n;const r=(new ir).parseFromString(e,"application/xml").documentElement;if(!r)return n;for(let o=0;o<r.childNodes.length;o+=1){const e=r.childNodes[o];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const i=e;if("Default"===i.localName){const e=null==(t=i.getAttribute("Extension"))?void 0:t.toLowerCase(),r=i.getAttribute("ContentType");e&&r&&(n.defaults[e]=r)}else if("Override"===i.localName){const e=i.getAttribute("PartName"),t=i.getAttribute("ContentType");e&&t&&(n.overrides[xs(e)]=t)}}return n}(i);i||r.push({level:"warning",code:"missing-content-types",message:"The DOCX package does not contain [Content_Types].xml."});const s={};for(const[o,d]of Object.entries(n.files)){if(d.dir)continue;const e=xs(o),t=Pu(e,a),n=Ou(e,t)?"xml":"binary",r="xml"===n?await d.async("string"):await d.async("base64");s[e]={path:e,...t?{contentType:t}:{},kind:n,data:r,encoding:"xml"===n?"utf8":"base64",originalHash:Du(r)}}let l=[];for(const[o,d]of Object.entries(s)){const e=Ss(o);if(void 0===e||"xml"!==d.kind)continue;const t=_s(e,Ns(d.data),t=>{r.push({level:"warning",code:"unsafe-relationship-target",message:`Relationship ${t.id} points outside the OPC package.`,...e?{partPath:e}:{},relationshipId:t.id})});if(null===e){l=t;continue}const n=s[e];n?n.relationships=t:r.push({level:"warning",code:"orphan-relationships-part",message:`Relationship part ${o} has no owning package part.`,partPath:o})}const c=l.find(e=>"External"!==e.targetMode&&e.type.endsWith("/officeDocument"));let u=null==c?void 0:c.resolvedTarget;if(!u||!s[u]){if(!s[$u])throw new Error("DOCX package has no resolvable officeDocument relationship or word/document.xml fallback.");u=$u,r.push({level:"warning",code:"main-document-fallback",message:"The officeDocument relationship was absent or invalid; word/document.xml was used as a compatibility fallback."})}return{format:"docx",mainDocumentPart:u,contentTypes:a,rootRelationships:l,parts:s,...r.length>0?{diagnostics:r}:{}}}const Mu="word/document.xml",Fu={"/styles":"word/styles.xml","/numbering":"word/numbering.xml","/settings":"word/settings.xml","/fontTable":"word/fontTable.xml","/theme":"word/theme/theme1.xml","/footnotes":"word/footnotes.xml","/endnotes":"word/endnotes.xml","/comments":"word/comments.xml","/commentsExtended":"word/commentsExtended.xml"};function Bu(e){const t=e.lastIndexOf("/"),n=t>=0?e.slice(0,t):"",r=t>=0?e.slice(t+1):e;return n?`${n}/_rels/${r}.rels`:`_rels/${r}.rels`}function Uu(e,t,n){"base64"===n.encoding?e.file(t,n.data,{base64:!0}):e.file(t,n.data)}function Hu(e){return`word/__oasis_source__/${e}`}function zu(e){return e?e.map(e=>"External"!==e.targetMode&&e.resolvedTarget?{...e,target:`/${Hu(e.resolvedTarget)}`,resolvedTarget:void 0}:e):[]}function ju(e){for(const[t,n]of Object.entries(Fu))if(e.type.endsWith(t))return n}async function qu(e,t){if(!function(e){var t;if(e.mainDocumentPart!==Mu)return!0;const n=e.parts[e.mainDocumentPart];return Boolean(null==(t=null==n?void 0:n.relationships)?void 0:t.some(e=>{const t=ju(e);return Boolean(t&&e.resolvedTarget&&e.resolvedTarget!==t)}))}(t))return e;const n=new o;for(const o of Object.values(t.parts))Uu(n,o.path,o);for(const o of Object.values(t.parts)){if(o.path.endsWith(".rels")||"[Content_Types].xml"===o.path)continue;const e=Hu(o.path);Uu(n,e,o);const t=zu(o.relationships);t.length>0&&n.file(Bu(e),Es(t))}const r=t.parts[t.mainDocumentPart];if(!r)throw new Error(`DOCX source package is missing its main part: ${t.mainDocumentPart}`);Uu(n,Mu,r);const i=zu(r.relationships);i.length>0&&n.file(Bu(Mu),Es(i));for(const o of r.relationships??[]){if("External"===o.targetMode||!o.resolvedTarget)continue;const e=ju(o),r=t.parts[o.resolvedTarget];if(!e||!r)continue;Uu(n,e,r);const i=zu(r.relationships);i.length>0&&n.file(Bu(e),Es(i))}return n.generateAsync({type:"arraybuffer"})}function Wu(e){globalThis.postMessage(e)}globalThis.addEventListener("message",async e=>{const t=e.data;if("import-docx"===(null==t?void 0:t.type))try{const e=await Lu(t.buffer),n=await qu(t.buffer,e),r=await ws(n,{onProgress:(e,n)=>{Wu({type:"progress",id:t.id,stage:e,progress:n})}});await async function(e,t){try{t.rebuiltPartHashes=await Ru(e)}catch(n){(t.diagnostics??(t.diagnostics=[])).push({level:"warning",code:"rebuilt-baseline-unavailable",message:`The imported document could not be fingerprinted for granular source-part preservation: ${n instanceof Error?n.message:String(n)}`})}}(r,e),r.sourcePackage=e,Wu({type:"done",id:t.id,document:r})}catch(n){Wu({type:"error",id:t.id,error:n instanceof Error?n.message:String(n)})}})}();
|